/**
 * Sidebar Styles
 * Modern, clean sidebar design
 */

/* Layout Containers */
.page-wrapper,
.single-post-wrapper {
    padding: 2rem 0 3rem;
    min-height: 60vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

[class*="col-"] {
    padding: 0 15px;
    width: 100%;
}

/* Content Area */
.content-area {
    margin-bottom: 2rem;
}

.content-area.has-sidebar {
    width: 100%;
}

@media (min-width: 768px) {
    .col-md-8 {
        flex: 0 0 66.666667%;
        max-width: 66.666667%;
    }
    
    .col-md-4 {
        flex: 0 0 33.333333%;
        max-width: 33.333333%;
    }
}

@media (min-width: 992px) {
    .col-lg-9 {
        flex: 0 0 75%;
        max-width: 75%;
    }
    
    .col-lg-3 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
}

/* Entry Content */
.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #666;
    padding: 1rem 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-thumbnail {
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
}

.entry-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-footer {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.post-tags {
    font-size: 0.95rem;
}

.post-tags a {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.post-tags a:hover {
    background: #667eea;
    color: white;
}

/* Post Navigation */
.post-navigation {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 2px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-subtitle {
    display: block;
    font-size: 0.85rem;
    color: #999;
    margin-bottom: 0.5rem;
}

.nav-title {
    display: block;
    font-weight: 600;
    color: #667eea;
}

/* Sidebar Styles */
.sidebar-area {
    margin-bottom: 2rem;
}

.sidebar-area.order-first {
    order: -1;
}

.sidebar-inner {
    position: sticky;
    top: 100px;
}

/* Widget Styles */
.widget {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.widget:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.widget-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid #667eea;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 50px;
    height: 3px;
    background: #764ba2;
}

/* Widget Lists */
.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    /* display: flex; */
    /* justify-content: space-between; */
    /* align-items: center; */
}

.widget ul li a:hover {
    color: #667eea;
    padding-left: 0.5rem;
}

/* Widget Categories Count */
.widget_categories ul li a .count,
.widget_archive ul li a .count {
    background: #f5f5f5;
    color: #667eea;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Search Widget */
.widget_search form {
    position: relative;
}

.widget_search input[type="search"] {
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.widget_search input[type="search"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.widget_search button[type="submit"] {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.widget_search button[type="submit"]:hover {
    background: #764ba2;
}

/* Recent Posts Widget */
.widget_recent_entries ul li {
    padding: 1rem 0;
}

.widget_recent_entries ul li a {
    font-weight: 500;
    line-height: 1.4;
}

/* Tag Cloud Widget */
.widget_tag_cloud .tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.widget_tag_cloud .tagcloud a {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: #f5f5f5;
    color: #667eea;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem !important;
    transition: all 0.3s ease;
}

.widget_tag_cloud .tagcloud a:hover {
    background: #667eea;
    color: white;
}

/* Calendar Widget */
.widget_calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget_calendar th,
.widget_calendar td {
    text-align: center;
    padding: 0.5rem;
}

.widget_calendar th {
    background: #667eea;
    color: white;
    font-weight: 600;
}

.widget_calendar td a {
    color: #667eea;
    font-weight: 600;
}

/* Comments */
.entry-comments {
    margin-top: 3rem;
}

/* No Content */
.no-content {
    text-align: center;
    padding: 4rem 2rem;
}

.no-content h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 767px) {
    .page-wrapper,
    .single-post-wrapper {
        padding: 5rem 0 2rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .sidebar-area {
        margin-top: 3rem;
    }
    
    .sidebar-inner {
        position: static;
    }
    
    .nav-links {
        flex-direction: column;
    }
}

/* Page Links (Pagination within content) */
.page-links {
    margin: 2rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
    font-weight: 600;
}

.page-links a {
    color: #667eea;
    text-decoration: none;
    margin: 0 0.5rem;
}

.page-links a:hover {
    text-decoration: underline;
}

/* Article Spacing */
article {
    margin-bottom: 3rem;
}

/* Accessibility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Legacy order sidebar blocks (old theme parity) */
.sidebar-inner .widget.eltdf-expert-list-widget {
    padding: 14px 17px 20px;
    background-color: #42495b;
    border-radius: 6px;
    border: 0;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-widget-title,
.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-title a {
    color: #ffffff;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cl-item {
    margin-bottom: 12px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cl-item:last-child {
    margin-bottom: 0;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-image {
    float: left;
    width: 74px;
    margin-right: 12px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-image img {
    width: 74px;
    height: 74px;
    border-radius: 999px;
    object-fit: cover;
    display: block;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-text-holder {
    overflow: hidden;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-title {
    margin: 0 0 6px;
    font-size: 20px;
    line-height: 1.2;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-rating-inner {
    font-size: 11px;
    margin-left: 2px;
    line-height: 1;
}

.sidebar-inner .legacy-order-form-sidebar .deadline-input {
    position: relative;
}

.sidebar-inner .legacy-order-form-sidebar .page-count-btn-wrap {
    display: inline-block;
}

.sidebar-inner .legacy-order-form-sidebar .page-count-btn-wrap-dec {
    position: absolute;
}

.sidebar-inner .legacy-order-form-sidebar .hidden-file-upload {
    display: none;
}

.sidebar-inner .legacy-order-form-sidebar .order-submit-wrap {
    display: block;
    text-align: center;
}

.sidebar-inner .legacy-order-form-sidebar .order-submit-btn {
    margin-top: 0;
    color: #fff;
}



.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-expert-review-count {
    color: #d1d5db;
    font-size: 12px;
    margin-top: 3px;
    line-height: 1.2;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-top-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-instructor-name {
    color: #d1d5db;
    font-size: 14px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-ci-price-holder a {
    background: #5dd9d5;
    color: #fff;
    border-radius: 999px;
    padding: 6px 20px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

/* Expert widget minimal design (4th design option) */
.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal {
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-widget-title,
.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cli-title a {
    color: #111827;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cl-item {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cl-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: 0;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cli-image {
    width: 60px;
    margin-right: 10px;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cli-image img {
    width: 60px;
    height: 60px;
    border-radius: 999px;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-cli-title {
    margin: 0 0 4px;
    font-size: 16px;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-expert-review-count,
.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-instructor-name {
    color: #6b7280;
    font-size: 12px;
}

.sidebar-inner .widget.eltdf-expert-list-widget.eltdf-expert-list-widget--minimal .eltdf-ci-price-holder a {
    background: #1f2937;
    color: #fff;
    padding: 5px 14px;
    font-size: 12px;
}

.sidebar-inner .widget.eltdf-raw-html-widget {
    box-shadow: none;
    border: 0;
    padding: 0;
    background: transparent;
}

.sidebar-inner .widget.eltdf-raw-html-widget .live-reviews-box {
    min-height: 400px;
    max-height: 500px;
    padding: 31px 27px 46px;
    background-color: #ebebeb9e;
    border-radius: 6px;
    display: block;
    overflow-y: scroll;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment {
    margin-top: 22px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-widget-title {
    color: #4a4f5c;
    font-size: 30px;
    line-height: 1.25;
    margin: 0 0 10px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv > strong {
    display: block;
    color: #6b7280;
    font-size: 32px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-review-title {
    color: #3568f4;
    font-size: 20px;
    margin-bottom: 6px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-text-holder p {
    color: #6f7680;
    font-size: 16px;
    line-height: 1.35;
    margin-top: 4px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment-info h5 {
    color: #4b5563;
    margin: 0 0 2px;
    font-size: 24px;
    line-height: 1.2;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment-info > div {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment-image {
    width: 52px;
    height: 52px;
    float: left;
    margin-right: 12px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment-image img {
    width: 52px;
    height: 52px;
    border-radius: 999px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-comment-text {
    overflow: hidden;

    min-height: 52px;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-post-info-date {
    display: inline-block;
    font-style: italic;
    color: #7d7878;
    font-size: 13px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-rating-inner,
.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-rating-inner {
    margin-left: 2px;
    line-height: 1;
}

.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-rating-inner {
    font-size: 12px;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-rating-inner .star-filled,
.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-rating-inner .star-filled {
    color: #f7be68;
}

.sidebar-inner .widget.eltdf-expert-list-widget .eltdf-rating-inner .star-empty,
.sidebar-inner .widget.eltdf-raw-html-widget .reviewDiv .eltdf-rating-inner .star-empty {
    color: rgba(247, 190, 104, 0.45);
}

@media (max-width: 767px) {
    .sidebar-inner .widget.eltdf-expert-list-widget .eltdf-cli-title {
        font-size: 18px;
    }
}
