/**
 * Single Post Page Styles
 * Beautiful modern post layout with hero section
 *
 * @package EHF
 * @since 1.0.0
 */

/* Page container — prevent horizontal overflow from full-width elements */
.single-post-page {
    overflow-x: hidden;
}

/* ==========================================================================
   Post Hero Section
   ========================================================================== */
.post-hero {
    width: 100%;
    position: relative;
    aspect-ratio: 3 / 4;
    max-height: 80vh;
    background-size: cover;
    background-position: center;
    background-color: #F8F6F4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.4) 50%,
        rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: var(--ehf-spacing-3xl) 0;
    width: 100%;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    gap: var(--ehf-spacing-sm);
    margin-bottom: var(--ehf-spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.category-link {
    display: inline-block;
    padding: calc(var(--ehf-spacing-xs) * 0.75) var(--ehf-spacing-md);
    background: rgba(209, 183, 159, 0.9);
    color: #ffffff;
    font-size: var(--ehf-font-size-sm);
    font-weight: var(--ehf-font-weight-medium);
    text-decoration: none;
    border-radius: 0;
    transition: all var(--ehf-transition-normal);
}

.category-link:hover {
    background: #D1B79F;
    transform: translateY(-2px);
}

/* Hero Title */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: var(--ehf-font-weight-bold);
    line-height: 1.2;
    margin: 0 auto var(--ehf-spacing-xl);
    max-width: 900px;
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hero Meta */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--ehf-spacing-xl);
    flex-wrap: wrap;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
}

.meta-author img {
    width: 48px;
    height: 48px;
    border-radius: 0;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.author-info {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.author-name a {
    color: #ffffff;
    font-weight: var(--ehf-font-weight-semibold);
    text-decoration: none;
    transition: opacity var(--ehf-transition-fast);
}

.author-name a:hover {
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.post-date {
    font-size: var(--ehf-font-size-sm);
    opacity: 0.9;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-xs);
    font-size: var(--ehf-font-size-sm);
}

.reading-time i {
    width: 16px;
    height: 16px;
}

/* Scroll Indicator */
.scroll-indicator {
    color: #ffffff;
    position: absolute;
    bottom: var(--ehf-spacing-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator i,
.scroll-indicator svg {
    width: 24px;
    height: 24px;
    color: #ffffff;
    opacity: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================================================
   Content Layout
   ========================================================================== */
.post-content-wrapper {
    padding: var(--ehf-spacing-3xl) 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: var(--ehf-spacing-3xl);
    max-width: 900px;
    margin: 0 auto;
}

/* ==========================================================================
   Post Sidebar
   ========================================================================== */
.post-sidebar {
    position: relative;
}

.share-sticky {
    position: sticky;
    top: calc(var(--ehf-header-height) + var(--ehf-spacing-xl));
    text-align: center;
}

.share-title {
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-500);
    margin-bottom: var(--ehf-spacing-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--ehf-spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 0;
    background: var(--ehf-gray-50);
    color: var(--ehf-gray-600);
    text-decoration: none;
    transition: all var(--ehf-transition-normal);
    border: none;
    cursor: pointer;
}

.share-btn:hover {
    transform: scale(1.1);
    background: #D1B79F;
    color: #ffffff;
}

.share-btn i {
    width: 20px;
    height: 20px;
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: var(--ehf-header-height);
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 100;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #D1B79F 0%, #E4CDB8 100%);
    width: 0%;
    transition: width 0.2s ease;
}

/* ==========================================================================
   Post Content
   ========================================================================== */
.post-content {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
}

.entry-content {
    font-size: calc(var(--ehf-font-size-base) * 1.125);
    line-height: 1.8;
    color: var(--ehf-gray-700);
    min-width: 0;
}

.entry-content > * {
    margin-bottom: var(--ehf-spacing-lg);
}

.entry-content h2 {
    margin-top: var(--ehf-spacing-2xl);
    margin-bottom: var(--ehf-spacing-lg);
    font-size: var(--ehf-font-size-2xl);
    font-weight: var(--ehf-font-weight-bold);
    color: var(--ehf-gray-900);
}

.entry-content h3 {
    margin-top: var(--ehf-spacing-xl);
    margin-bottom: var(--ehf-spacing-md);
    font-size: var(--ehf-font-size-xl);
    font-weight: var(--ehf-font-weight-semibold);
    color: var(--ehf-gray-800);
}

.entry-content p {
    margin-bottom: var(--ehf-spacing-md);
}

.entry-content blockquote,
.entry-content .wp-block-quote,
.wp-block-quote {
    position: relative;
    padding: 24px 24px 24px 56px;
    margin: 40px 0;
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-left: none !important;
}

.entry-content blockquote::before,
.entry-content .wp-block-quote::before,
.wp-block-quote::before {
    content: "\201C";
    position: absolute;
    left: 0;
    top: -8px;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: #D1B79F;
    opacity: 0.5;
    font-style: normal;
}

.entry-content blockquote p,
.entry-content .wp-block-quote p,
.wp-block-quote p {
    margin: 0 !important;
    font-family: "Playfair Display", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    line-height: 1.75;
    color: #4A4A4A;
}

.entry-content blockquote cite,
.entry-content .wp-block-quote cite,
.wp-block-quote cite {
    display: block;
    margin-top: 12px;
    font-size: 0.875rem;
    font-style: normal;
    color: #9CA3AF;
}

.entry-content blockquote cite::before,
.entry-content .wp-block-quote cite::before,
.wp-block-quote cite::before {
    content: "— ";
}

.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--ehf-border-radius-lg);
    margin: var(--ehf-spacing-xl) 0;
}

.entry-content ul {
    padding-left: var(--ehf-spacing-xl);
    margin: var(--ehf-spacing-lg) 0;
    list-style: none;
}

.entry-content ol {
    padding-left: var(--ehf-spacing-xl);
    margin: var(--ehf-spacing-lg) 0;
    list-style: none;
    counter-reset: ehf-ol;
}

.entry-content ul > li {
    position: relative;
    padding-left: 1.4em;
    margin-bottom: var(--ehf-spacing-sm);
    line-height: 1.7;
}

.entry-content ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 7px;
    height: 7px;
    background: var(--ehf-primary-color, #D1B79F);
    border-radius: 0;
}

.entry-content ol > li {
    position: relative;
    padding-left: 2em;
    margin-bottom: var(--ehf-spacing-sm);
    line-height: 1.7;
    counter-increment: ehf-ol;
}

.entry-content ol > li::before {
    content: counter(ehf-ol);
    position: absolute;
    left: 0;
    top: 0;
    width: 1.5em;
    height: 1.5em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ehf-primary-color, #D1B79F);
    color: #fff;
    font-size: 0.8em;
    font-weight: 600;
    font-family: "Work Sans", system-ui, sans-serif;
}

.entry-content li > ul,
.entry-content li > ol {
    margin-top: var(--ehf-spacing-xs);
    margin-bottom: 0;
}

.entry-content ul > li > ul > li::before {
    width: 5px;
    height: 5px;
    background: transparent;
    border: 1.5px solid var(--ehf-primary-color, #D1B79F);
}


/* Tables — override Gutenberg .wp-block-table defaults */
.entry-content .wp-block-table {
    margin: var(--ehf-spacing-xl) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.entry-content .wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95em;
    line-height: 1.6;
}

.entry-content .wp-block-table thead {
    border-bottom: none;
}

.entry-content .wp-block-table tfoot {
    border-top: none;
}

.entry-content .wp-block-table th,
.entry-content .wp-block-table td {
    border: none;
    padding: 14px 20px;
    text-align: left;
    border-bottom: 1px solid var(--ehf-gray-200, #E8E4E0);
}

.entry-content .wp-block-table th {
    font-family: 'Work Sans', system-ui, sans-serif;
    font-weight: 600;
    font-size: 0.85em;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--ehf-primary-color, #D1B79F);
    border-bottom: 2px solid var(--ehf-primary-color, #D1B79F);
}

.entry-content .wp-block-table tbody td {
    color: var(--ehf-gray-700, #555);
}

.entry-content .wp-block-table tbody tr:hover td {
    background: var(--ehf-primary-light, #F5F1EC);
}

.entry-content .wp-block-table caption {
    padding: 8px 0;
    font-size: 0.85em;
    color: var(--ehf-gray-500, #888);
    text-align: left;
    caption-side: bottom;
}

@media (max-width: 768px) {
    .entry-content .wp-block-table table {
        font-size: 0.85em;
    }

    .entry-content .wp-block-table th,
    .entry-content .wp-block-table td {
        padding: 10px 14px;
    }
}

/* Post Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--ehf-spacing-sm);
    margin: var(--ehf-spacing-2xl) 0;
    padding-top: var(--ehf-spacing-xl);
    border-top: 1px solid var(--ehf-gray-200);
}

.post-tags i {
    width: 18px;
    height: 18px;
    color: var(--ehf-gray-500);
}

.tag-link {
    display: inline-block;
    padding: var(--ehf-spacing-xs) var(--ehf-spacing-md);
    background: var(--ehf-gray-50);
    color: var(--ehf-gray-600);
    text-decoration: none;
    border-radius: 0;
    font-size: var(--ehf-font-size-sm);
    transition: all var(--ehf-transition-fast);
}

.tag-link:hover {
    background: #D1B79F;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Author Box
   ========================================================================== */
.author-box {
    display: flex;
    gap: var(--ehf-spacing-lg);
    padding: var(--ehf-spacing-xl);
    background: linear-gradient(135deg, #F8F6F4 0%, #FBF9F7 100%);
    border-radius: var(--ehf-border-radius-lg);
    margin-top: var(--ehf-spacing-3xl);
}

.author-avatar img {
    width: 96px;
    height: 96px;
    border-radius: 0;
    object-fit: cover;
}

.author-details {
    flex: 1;
}

.author-title {
    font-size: var(--ehf-font-size-lg);
    font-weight: var(--ehf-font-weight-bold);
    margin-bottom: var(--ehf-spacing-sm);
    color: var(--ehf-gray-900);
}

.author-bio {
    color: var(--ehf-gray-600);
    line-height: 1.6;
    margin-bottom: var(--ehf-spacing-md);
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: var(--ehf-spacing-xs);
    color: #D1B79F;
    text-decoration: none;
    font-weight: var(--ehf-font-weight-medium);
    transition: gap var(--ehf-transition-fast);
}

.author-link:hover {
    gap: var(--ehf-spacing-sm);
}

.author-link i {
    width: 16px;
    height: 16px;
}

.author-links {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-lg);
    flex-wrap: wrap;
}

.author-instagram {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ehf-gray-500);
    text-decoration: none;
    font-size: 13px;
    transition: color var(--ehf-transition-fast);
}

.author-instagram:hover {
    color: #E1306C;
}

.author-instagram svg {
    flex-shrink: 0;
}

/* ==========================================================================
   Related Posts
   ========================================================================== */
.related-posts {
    padding: var(--ehf-spacing-3xl) 0;
    background: var(--ehf-gray-50);
}

.section-title {
    text-align: center;
    font-size: var(--ehf-font-size-2xl);
    font-weight: var(--ehf-font-weight-bold);
    margin-bottom: var(--ehf-spacing-2xl);
    color: var(--ehf-gray-900);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--ehf-spacing-xl);
}

.related-card {
    background: var(--ehf-white);
    border-radius: var(--ehf-border-radius-lg);
    overflow: hidden;
    transition: all var(--ehf-transition-normal);
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ehf-shadow-lg);
}

.card-image {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--ehf-transition-slow);
}

.related-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--ehf-spacing-lg);
}

.card-title {
    font-size: var(--ehf-font-size-lg);
    margin-bottom: var(--ehf-spacing-sm);
    line-height: 1.4;
}

.card-title a {
    color: var(--ehf-gray-900);
    text-decoration: none;
    transition: color var(--ehf-transition-fast);
}

.card-title a:hover {
    color: #D1B79F;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-md);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-500);
}

.card-meta::before {
    content: '•';
    order: 1;
}

.card-date {
    order: 0;
}

.card-reading {
    order: 2;
}

/* ==========================================================================
   Post Navigation
   ========================================================================== */
.post-navigation {
    padding: var(--ehf-spacing-2xl) 0;
    border-top: 1px solid var(--ehf-gray-200);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    gap: var(--ehf-spacing-xl);
}

.nav-previous,
.nav-next {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--ehf-spacing-xs);
    padding: var(--ehf-spacing-lg);
    background: var(--ehf-gray-50);
    border-radius: var(--ehf-border-radius-lg);
    text-decoration: none;
    transition: all var(--ehf-transition-normal);
}

.nav-next {
    text-align: right;
    align-items: flex-end;
}

.nav-previous:hover,
.nav-next:hover {
    background: #F5F1EC;
    transform: translateY(-2px);
}

.nav-label {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-xs);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.nav-label i {
    width: 16px;
    height: 16px;
}

.nav-title {
    font-size: var(--ehf-font-size-lg);
    font-weight: var(--ehf-font-weight-semibold);
    color: var(--ehf-gray-900);
    line-height: 1.3;
}

/* ==========================================================================
   Comments Section
   ========================================================================== */
.comments-section {
    padding: var(--ehf-spacing-3xl) 0;
    background: var(--ehf-white);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .post-hero {
        width: 100vw;
        margin-left: calc(-1 * (100vw - 100%) / 2);
        aspect-ratio: 9 / 16;
        max-height: 85vh;
        min-height: 70vh;
        align-items: flex-end;
        border-radius: 0;
    }

    .post-hero .hero-overlay {
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0.03) 30%,
            rgba(0, 0, 0, 0.35) 60%,
            rgba(0, 0, 0, 0.75) 85%,
            rgba(0, 0, 0, 0.85) 100%);
    }

    .post-hero .hero-content {
        padding: 0 var(--ehf-spacing-lg) var(--ehf-spacing-3xl);
        text-align: left;
    }

    .post-hero .category-badge {
        justify-content: flex-start;
        margin-bottom: var(--ehf-spacing-md);
    }

    .post-hero .category-link {
        font-size: 11px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        padding: 5px 14px;
        background: rgba(209, 183, 159, 0.9);
    }

    .hero-title {
        font-size: clamp(1.6rem, 7vw, 2.4rem);
        text-align: left;
        margin: 0;
        line-height: 1.15;
        text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
    }

    .hero-meta {
        gap: var(--ehf-spacing-lg);
    }

    .scroll-indicator {
        display: none;
    }

    .content-layout {
        grid-template-columns: 1fr;
        gap: var(--ehf-spacing-xl);
    }

    .post-sidebar {
        display: none;
    }

    .share-sticky {
        position: fixed;
        bottom: var(--ehf-spacing-lg);
        right: var(--ehf-spacing-lg);
        top: auto;
        z-index: 100;
        background: var(--ehf-white);
        padding: var(--ehf-spacing-sm);
        border-radius: var(--ehf-border-radius-lg);
        box-shadow: var(--ehf-shadow-lg);
    }

    .share-buttons {
        flex-direction: row;
    }

    .author-box {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: var(--ehf-spacing-lg);
    }

    .author-avatar {
        margin-bottom: var(--ehf-spacing-sm);
    }

    .author-avatar img {
        width: 80px;
        height: 80px;
    }

    .author-bio {
        font-size: var(--ehf-font-size-sm);
    }

    .author-title {
        font-size: var(--ehf-font-size-base);
    }

    .nav-links {
        flex-direction: column;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }
}
/* ==========================================================================
   Table of Contents Widget
   ========================================================================== */
.toc-widget {
    background: transparent;
    border-radius: 0;
    padding: var(--ehf-spacing-lg);
    margin-top: var(--ehf-spacing-xl);
    border: 1px solid rgba(209, 183, 159, 0.2);
}

.toc-title {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
    font-size: var(--ehf-font-size-sm);
    font-weight: var(--ehf-font-weight-semibold);
    color: #4A4A4A;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--ehf-spacing-md) 0;
    padding-bottom: var(--ehf-spacing-sm);
    border-bottom: 1px solid rgba(209, 183, 159, 0.3);
}

.toc-title i,
.toc-title svg {
    width: 16px;
    height: 16px;
    color: #D1B79F;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-item {
    margin-bottom: var(--ehf-spacing-xs);
}

.toc-item a {
    display: block;
    padding: var(--ehf-spacing-xs) 0;
    color: #4A4A4A;
    font-size: var(--ehf-font-size-sm);
    text-decoration: none;
    transition: all var(--ehf-transition-fast);
    border-left: 2px solid transparent;
    padding-left: var(--ehf-spacing-sm);
}

.toc-item a:hover {
    color: #D1B79F;
    border-left-color: #D1B79F;
    background: rgba(209, 183, 159, 0.08);
}

.toc-item-sub {
    margin-bottom: var(--ehf-spacing-xs);
}

.toc-item-sub a {
    display: block;
    padding: calc(var(--ehf-spacing-xs) * 0.75) 0;
    padding-left: calc(var(--ehf-spacing-lg) + var(--ehf-spacing-sm));
    color: #6B7280;
    font-size: calc(var(--ehf-font-size-sm) * 0.9);
    text-decoration: none;
    transition: all var(--ehf-transition-fast);
    border-left: 2px solid transparent;
}

.toc-item-sub a:hover {
    color: #D1B79F;
    border-left-color: #D1B79F;
    background: rgba(209, 183, 159, 0.05);
}

/* Active state for TOC */
.toc-item.active > a,
.toc-item-sub.active > a {
    color: #D1B79F;
    border-left-color: #D1B79F;
    font-weight: var(--ehf-font-weight-medium);
}

/* Mobile: Hide TOC in sidebar, show inline */
@media (max-width: 1023px) {
    .post-sidebar .toc-widget {
        display: none;
    }
}

/* ==========================================================================
   TOC Section (Under Hero)
   ========================================================================== */
.toc-section {
    background: transparent;
    border-bottom: 1px solid rgba(209, 183, 159, 0.2);
    padding: var(--ehf-spacing-lg) 0;
}

.toc-section .toc-widget {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
    max-width: 800px;
    margin: 0 auto;
}

.toc-section .toc-title {
    justify-content: center;
    border-bottom: none;
    margin-bottom: var(--ehf-spacing-md);
}

.toc-section .toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--ehf-spacing-xs) var(--ehf-spacing-lg);
    justify-content: center;
}

.toc-section .toc-item,
.toc-section .toc-item-sub {
    margin: 0;
}

.toc-section .toc-item a,
.toc-section .toc-item-sub a {
    padding: var(--ehf-spacing-xs) var(--ehf-spacing-sm);
    border-left: none;
    border-radius: 0;
    font-size: var(--ehf-font-size-sm);
}

.toc-section .toc-item a:hover,
.toc-section .toc-item-sub a:hover {
    background: rgba(209, 183, 159, 0.15);
    border-left: none;
}

.toc-section .toc-item-sub a {
    padding-left: var(--ehf-spacing-sm);
    font-size: calc(var(--ehf-font-size-sm) * 0.9);
    color: #6B7280;
}

@media (max-width: 768px) {
    .toc-section .toc-list {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ehf-spacing-xs);
    }
    
    .toc-section .toc-item a,
    .toc-section .toc-item-sub a {
        display: block;
        width: 100%;
    }
}

/* ==========================================================================
   TOC Collapsible - UPDATED
   ========================================================================== */
.toc-section .toc-widget {
    max-width: 900px;
}

.toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--ehf-spacing-md) var(--ehf-spacing-lg);
    background: #ffffff;
    border: 1px solid rgba(209, 183, 159, 0.3);
    border-radius: 0;
    cursor: pointer;
    transition: all var(--ehf-transition-normal);
    font-family: inherit;
}

.toc-toggle:hover {
    border-color: #D1B79F;
    box-shadow: 0 2px 8px rgba(209, 183, 159, 0.15);
}

.toc-toggle-text {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
    font-size: var(--ehf-font-size-base);
    font-weight: var(--ehf-font-weight-semibold);
    color: #4A4A4A;
}

.toc-toggle-text i,
.toc-toggle-text svg {
    width: 18px;
    height: 18px;
    color: #D1B79F;
}

.toc-count {
    color: #9CA3AF;
    font-weight: var(--ehf-font-weight-normal);
}

.toc-toggle-icon {
    width: 20px;
    height: 20px;
    color: #9CA3AF;
    transition: transform var(--ehf-transition-normal);
}

.toc-widget.open .toc-toggle-icon {
    transform: rotate(180deg);
}

.toc-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.toc-widget.open .toc-content {
    max-height: 1000px;
    padding-top: var(--ehf-spacing-md);
}

.toc-section .toc-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--ehf-spacing-xs) var(--ehf-spacing-xl);
    padding: var(--ehf-spacing-md);
    background: transparent;
    border-radius: 0;
    margin: 0;
}

.toc-section .toc-item,
.toc-section .toc-item-sub {
    margin: 0;
}

.toc-section .toc-item a {
    display: block;
    padding: var(--ehf-spacing-sm);
    color: #4A4A4A;
    font-size: var(--ehf-font-size-sm);
    font-weight: var(--ehf-font-weight-medium);
    text-decoration: none;
    border-radius: 0;
    transition: all var(--ehf-transition-fast);
    border-left: 3px solid transparent;
}

.toc-section .toc-item a:hover {
    background: rgba(209, 183, 159, 0.12);
    color: #D1B79F;
    border-left-color: #D1B79F;
}

.toc-section .toc-item-sub a {
    padding-left: var(--ehf-spacing-lg);
    color: #6B7280;
    font-size: calc(var(--ehf-font-size-sm) * 0.9);
    font-weight: var(--ehf-font-weight-normal);
}

.toc-section .toc-item-sub a:hover {
    color: #D1B79F;
}

@media (max-width: 768px) {
    .toc-section .toc-list {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Content Layout - Share Sidebar Fix
   ========================================================================== */
.content-layout {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--ehf-spacing-xl);
    max-width: 900px;
    margin: 0 auto;
}

.post-sidebar {
    position: relative;
}

.share-sticky {
    position: sticky;
    top: calc(var(--ehf-header-height) + var(--ehf-spacing-xl));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--ehf-spacing-sm);
}

.share-title {
    font-size: var(--ehf-font-size-xs);
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--ehf-spacing-xs);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--ehf-spacing-sm);
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: #F5F5F4;
    border: none;
    color: #6B7280;
    cursor: pointer;
    transition: all var(--ehf-transition-normal);
}

.share-btn:hover {
    background: #D1B79F;
    color: #ffffff;
    transform: translateY(-2px);
}

.share-btn i,
.share-btn svg {
    width: 18px;
    height: 18px;
}

@media (max-width: 1023px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    
    .post-sidebar {
        display: none;
    }
}

/* ==========================================================================
   Comments Section - Magazine Style
   ========================================================================== */
.comments-section {
    padding: var(--ehf-spacing-3xl) 0;
    background: transparent;
}

.comments-section .container {
    max-width: 800px;
}

/* Comments Title */
.comments-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.75rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: var(--ehf-spacing-xl);
    text-align: center;
}

/* Comment List */
.comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .comment {
    margin-bottom: var(--ehf-spacing-xl);
    padding: var(--ehf-spacing-lg);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.comment-list .children {
    list-style: none;
    margin: var(--ehf-spacing-lg) 0 0 var(--ehf-spacing-xl);
    padding: 0;
    border-left: none;
}

.comment-list .children .comment {
    margin-bottom: var(--ehf-spacing-md);
    background: transparent;
}

/* Comment Meta */
.comment-meta {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-md);
    margin-bottom: var(--ehf-spacing-md);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
}

.comment-author .avatar {
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: cover;
}

.comment-author .fn,
.comment-author .fn a {
    font-weight: 600;
    color: #2D2D2D;
    text-decoration: none;
    font-size: 1rem;
}

.comment-author .says {
    display: none;
}

.comment-metadata {
    margin-left: auto;
}

.comment-metadata a {
    font-size: 0.8rem;
    color: #9CA3AF;
    text-decoration: none;
}

.comment-metadata a:hover {
    color: #D1B79F;
}

/* Comment Content */
.comment-content {
    color: #4A4A4A;
    line-height: 1.7;
    font-size: 0.95rem;
}

.comment-content p {
    margin: 0 0 var(--ehf-spacing-sm) 0;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* Reply Link */
.reply {
    margin-top: var(--ehf-spacing-md);
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #D1B79F;
    background: transparent;
    border: 1px solid rgba(209, 183, 159, 0.4);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.2s ease;
}

.comment-reply-link:hover {
    background: #D1B79F;
    color: #ffffff;
    border-color: #D1B79F;
}

/* Comment Form */
.comment-respond {
    margin-top: var(--ehf-spacing-2xl);
    padding: var(--ehf-spacing-xl);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.comment-reply-title {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #2D2D2D;
    margin-bottom: var(--ehf-spacing-lg);
}

.comment-reply-title small {
    display: block;
    font-size: 0.875rem;
    font-weight: 400;
    margin-top: 8px;
}

.comment-reply-title small a {
    color: #D1B79F;
    text-decoration: none;
}

.logged-in-as {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: var(--ehf-spacing-md);
}

.logged-in-as a {
    color: #D1B79F;
    text-decoration: none;
}

.comment-form-comment label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 8px;
}

.comment-form-comment textarea,
.comment-form textarea {
    width: 100%;
    min-height: 150px;
    padding: var(--ehf-spacing-md);
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.6;
    color: #2D2D2D;
    background: transparent;
    border: 1px solid rgba(209, 183, 159, 0.3);
    border-radius: 0;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form-comment textarea:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #D1B79F;
    box-shadow: 0 0 0 3px rgba(209, 183, 159, 0.15);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"] {
    width: 100%;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 1rem;
    color: #2D2D2D;
    background: transparent;
    border: 1px solid rgba(209, 183, 159, 0.3);
    border-radius: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus {
    outline: none;
    border-color: #D1B79F;
    box-shadow: 0 0 0 3px rgba(209, 183, 159, 0.15);
}

.form-submit {
    margin-top: var(--ehf-spacing-lg);
}

.comment-form input[type="submit"],
.form-submit input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #D1B79F 0%, #C4A88A 100%);
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-form input[type="submit"]:hover,
.form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(209, 183, 159, 0.4);
}

/* No Comments */
.no-comments {
    text-align: center;
    color: #9CA3AF;
    font-size: 1rem;
    padding: var(--ehf-spacing-xl);
}

/* Comment Navigation */
.comment-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--ehf-spacing-xl);
    padding: var(--ehf-spacing-md);
    background: #ffffff;
    border-radius: 0;
}

.comment-navigation a {
    color: #D1B79F;
    text-decoration: none;
    font-weight: 500;
}

.comment-navigation a:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Comments - Nested Replies & Spacing Fix
   ========================================================================== */

/* Base comment styling */
.comment-list > .comment,
.commentlist > .comment,
#comments .comment.depth-1 {
    margin-bottom: var(--ehf-spacing-xl);
    padding: var(--ehf-spacing-lg);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Nested replies - depth 2+ */
#comments .comment.depth-2,
#comments .comment.depth-3,
#comments .comment.depth-4,
.comment-list .children .comment {
    margin-left: 48px;
    margin-top: var(--ehf-spacing-md);
    margin-bottom: var(--ehf-spacing-md);
    padding: var(--ehf-spacing-md) var(--ehf-spacing-lg);
    background: transparent;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
    position: relative;
}

/* Reply indicator */
#comments .comment.depth-2::before,
#comments .comment.depth-3::before,
#comments .comment.depth-4::before {
    content: "↳ Reply";
    position: absolute;
    top: -20px;
    left: 0;
    font-size: 0.75rem;
    color: #D1B79F;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Fix comment body spacing */
.comment-body {
    padding-bottom: var(--ehf-spacing-sm);
}

/* Comment header with avatar and meta */
.comment-meta.commentmetadata,
.comment-author.vcard {
    margin-bottom: var(--ehf-spacing-sm);
}

/* Avatar styling */
.comment .avatar {
    width: 48px;
    height: 48px;
    border-radius: 0;
    margin-right: var(--ehf-spacing-sm);
    float: left;
}

/* Nested comment smaller avatar */
.comment.depth-2 .avatar,
.comment.depth-3 .avatar {
    width: 40px;
    height: 40px;
}

/* Author name */
.comment-author .fn {
    font-weight: 600;
    color: #2D2D2D;
}

.comment-author .fn a {
    color: #2D2D2D;
    text-decoration: none;
}

/* Comment date */
.comment-metadata,
.commentmetadata {
    font-size: 0.8rem;
    color: #9CA3AF;
}

.comment-metadata a,
.commentmetadata a {
    color: #9CA3AF;
    text-decoration: none;
}

/* Comment content */
.comment-content {
    clear: both;
    padding-top: var(--ehf-spacing-sm);
    color: #4A4A4A;
    line-height: 1.7;
}

/* Clear float after avatar */
.comment-body::after {
    content: "";
    display: table;
    clear: both;
}

/* Children wrapper */
.comment-list .children,
.commentlist .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ==========================================================================
   Comments - Fix for ol.commentlist structure
   ========================================================================== */
ol.commentlist {
    list-style: none;
    margin: 0;
    padding: 0;
}

ol.commentlist > li.comment {
    margin-bottom: var(--ehf-spacing-xl);
    padding: var(--ehf-spacing-lg);
    background: #ffffff;
    border-radius: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

/* Nested replies */
ol.commentlist li.comment li.comment,
ol.commentlist .children li.comment,
li.comment.depth-2,
li.comment.depth-3 {
    margin-left: 40px !important;
    margin-top: var(--ehf-spacing-md) !important;
    padding: var(--ehf-spacing-md) var(--ehf-spacing-lg) !important;
    background: transparent !important;
    border-radius: 0 !important;
    border-left: none !important;
    box-shadow: none !important;
}

/* Reply label for nested comments */
li.comment.depth-2 > .comment-body::before,
li.comment.depth-3 > .comment-body::before {
    content: "↳ Reply";
    display: block;
    font-size: 0.7rem;
    color: #D1B79F;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

/* Children list */
ol.commentlist .children {
    list-style: none;
    margin: var(--ehf-spacing-md) 0 0 0;
    padding: 0;
}

/* ==========================================================================
   Remove underline on hover - Tags & Navigation
   ========================================================================== */
.post-tags a:hover,
.tag-link:hover,
.nav-previous:hover,
.nav-next:hover,
.nav-previous a:hover,
.nav-next a:hover,
.post-navigation a:hover,
.nav-title:hover,
.nav-label:hover {
    text-decoration: none !important;
}

/* === Post Meta Section (between TOC and Content) === */
.post-meta-section {
    padding: var(--ehf-spacing-lg) 0;
    background: var(--ehf-white);
}

.post-meta-section .container {
    max-width: 800px;
}

.post-meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--ehf-spacing-md);
    padding: var(--ehf-spacing-md) 0;
    border-bottom: none;
}

.post-meta-bar .meta-author {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
}

.post-meta-bar .meta-author img {
    width: 40px;
    height: 40px;
    border-radius: 0;
    object-fit: cover;
}

.post-meta-bar .author-info {
    display: flex;
    flex-direction: column;
}

.post-meta-bar .author-name a {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    font-weight: var(--ehf-font-weight-semibold);
    color: var(--ehf-gray-900);
    text-decoration: none;
    transition: color var(--ehf-transition-normal);
}

.post-meta-bar .author-name a:hover {
    color: var(--ehf-primary-color);
    text-decoration: none;
}

.post-meta-bar .meta-details {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-lg);
}

.post-meta-bar .post-date,
.post-meta-bar .reading-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-500);
}

.post-meta-bar .post-date i,
.post-meta-bar .reading-time i {
    width: 16px;
    height: 16px;
    color: var(--ehf-gray-400);
}

/* Responsive */
@media (max-width: 600px) {
    .post-meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--ehf-spacing-sm);
    }
    
    .post-meta-bar .meta-details {
        gap: var(--ehf-spacing-md);
    }
}

/* === Like Button === */
.like-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--ehf-gray-300);
    border-radius: 0;
    cursor: pointer;
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-500);
    transition: all var(--ehf-transition-normal);
}

.like-button:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.like-button:hover .like-icon {
    color: #e74c3c;
}

.like-button.liked {
    background: #fef2f2;
    border-color: #e74c3c;
    color: #e74c3c;
    cursor: default;
}

.like-button.liked .like-icon {
    color: #e74c3c;
    fill: #e74c3c;
}

.like-button .like-icon {
    width: 16px;
    height: 16px;
    color: var(--ehf-gray-400);
    transition: all var(--ehf-transition-normal);
}

.like-button .like-count {
    font-weight: var(--ehf-font-weight-medium);
}

/* === Inline TOC (inside content) === */
.toc-inline {
    margin-bottom: var(--ehf-spacing-xl);
}

.toc-inline .toc-wrapper {
    background: var(--ehf-gray-50);
    border: 1px solid var(--ehf-gray-200);
    border-radius: var(--ehf-border-radius-lg);
}

/* === TOC Section Sizing === */
.toc-section {
    padding: var(--ehf-spacing-sm) 0;
}

.toc-section .container {
    max-width: 800px;
}

.post-meta-section {
    padding: var(--ehf-spacing-md) 0;
}

/* === Equal Spacing Between Sections === */
.post-meta-section {
    padding: 24px 0 !important;
}

.toc-section {
    padding: 0 0 24px 0 !important;
}

.post-content-wrapper {
    padding-top: 24px;
}

/* === TOC Hover - only color change, no background === */
.toc-item a:hover,
.toc-item-sub a:hover,
.toc-section .toc-item a:hover,
.toc-section .toc-item-sub a:hover {
    background: none !important;
    color: var(--ehf-primary-color) !important;
}

/* === TOC Clean Hover - remove all borders and backgrounds === */
.toc-item a,
.toc-item-sub a,
.toc-section .toc-item a,
.toc-section .toc-item-sub a {
    border-left: none !important;
    background: none !important;
}

.toc-item a:hover,
.toc-item-sub a:hover,
.toc-section .toc-item a:hover,
.toc-section .toc-item-sub a:hover,
.toc-list a:hover,
.toc-wrapper a:hover {
    background: none !important;
    border-left: none !important;
    border-left-color: transparent !important;
    color: var(--ehf-primary-color) !important;
}

/* === Author Name Hover - clean, no shadows === */
.post-meta-bar .author-name a:hover,
.meta-author .author-name a:hover {
    color: var(--ehf-primary-color) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* === Author Name Hover - remove drop-shadow filter === */
.author-name a:hover,
.post-meta-bar .author-name a:hover,
.meta-author .author-name a:hover,
.hero-meta .author-name a:hover {
    filter: none !important;
    -webkit-filter: none !important;
    color: var(--ehf-primary-color) !important;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* === FAQ Section Styles === */
.ehf-faq-section {
    margin: var(--ehf-spacing-2xl) 0;
    padding: var(--ehf-spacing-xl);
    background: linear-gradient(135deg, #FDFCFB 0%, #F8F6F4 100%);
    border-radius: var(--ehf-border-radius-xl);
    border: 1px solid var(--ehf-gray-200);
}

.ehf-faq-title {
    display: flex;
    align-items: center;
    gap: var(--ehf-spacing-sm);
    font-family: var(--ehf-font-family-headings);
    font-size: var(--ehf-font-size-xl);
    font-weight: var(--ehf-font-weight-semibold);
    color: var(--ehf-gray-900);
    margin: 0 0 var(--ehf-spacing-lg) 0;
    padding-bottom: var(--ehf-spacing-md);
    border-bottom: 1px solid var(--ehf-gray-200);
}

.ehf-faq-title i {
    width: 24px;
    height: 24px;
    color: var(--ehf-primary-color);
}

.ehf-faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--ehf-spacing-sm);
}

.ehf-faq-item {
    background: var(--ehf-white);
    border-radius: var(--ehf-border-radius-lg);
    border: 1px solid var(--ehf-gray-200);
    overflow: hidden;
    transition: all var(--ehf-transition-normal);
}

.ehf-faq-item:hover {
    border-color: var(--ehf-gray-300);
}

.ehf-faq-item.is-open {
    border-color: var(--ehf-primary-color);
    box-shadow: 0 4px 12px rgba(209, 183, 159, 0.15);
}

.ehf-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--ehf-spacing-md) var(--ehf-spacing-lg);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: all var(--ehf-transition-normal);
}

.ehf-faq-question:hover {
    background: var(--ehf-gray-50);
}

.ehf-faq-question-text {
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-base);
    font-weight: var(--ehf-font-weight-medium);
    color: var(--ehf-gray-800);
    line-height: 1.5;
    padding-right: var(--ehf-spacing-md);
}

.ehf-faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ehf-gray-400);
    transition: transform var(--ehf-transition-normal);
}

.ehf-faq-item.is-open .ehf-faq-icon {
    transform: rotate(180deg);
    color: var(--ehf-primary-color);
}

.ehf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.ehf-faq-answer-inner {
    padding: 0 var(--ehf-spacing-lg) var(--ehf-spacing-lg);
    font-family: var(--ehf-font-family);
    font-size: var(--ehf-font-size-sm);
    color: var(--ehf-gray-600);
    line-height: var(--ehf-line-height-relaxed);
}

.ehf-faq-answer-inner p {
    margin: 0 0 var(--ehf-spacing-sm) 0;
}

.ehf-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

.ehf-faq-answer-inner a {
    color: var(--ehf-primary-color);
    text-decoration: none;
}

.ehf-faq-answer-inner a:hover {
    text-decoration: underline;
}

/* Mobile responsive */
@media (max-width: 600px) {
    .ehf-faq-section {
        padding: var(--ehf-spacing-md);
        margin: var(--ehf-spacing-xl) 0;
    }
    
    .ehf-faq-question {
        padding: var(--ehf-spacing-sm) var(--ehf-spacing-md);
    }
    
    .ehf-faq-answer-inner {
        padding: 0 var(--ehf-spacing-md) var(--ehf-spacing-md);
    }
    
    .ehf-faq-question-text {
        font-size: var(--ehf-font-size-sm);
    }
}

/* === FAQ Section - Improved Styles === */
.ehf-faq-section {
    margin: var(--ehf-spacing-3xl) 0;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.ehf-faq-header {
    text-align: center;
    margin-bottom: var(--ehf-spacing-xl);
}

.ehf-faq-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--ehf-primary-color);
    color: var(--ehf-white);
    font-family: var(--ehf-font-family);
    font-size: 12px;
    font-weight: var(--ehf-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 0;
    margin-bottom: var(--ehf-spacing-sm);
}

.ehf-faq-title {
    font-family: var(--ehf-font-family-headings) !important;
    font-size: clamp(1.5rem, 4vw, 2rem) !important;
    font-weight: var(--ehf-font-weight-semibold) !important;
    color: var(--ehf-gray-900) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    display: block !important;
}

.ehf-faq-title i {
    display: none;
}

.ehf-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ehf-faq-item {
    background: var(--ehf-white);
    border: 1px solid var(--ehf-gray-200);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.2s ease;
}

.ehf-faq-item:hover {
    border-color: var(--ehf-gray-300);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ehf-faq-item.is-open {
    border-color: var(--ehf-primary-color);
    box-shadow: 0 4px 16px rgba(209, 183, 159, 0.2);
}

.ehf-faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
}

.ehf-faq-question:hover {
    background: var(--ehf-gray-50);
}

.ehf-faq-q-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--ehf-primary-color);
    color: var(--ehf-white);
    font-family: var(--ehf-font-family-headings);
    font-size: 14px;
    font-weight: var(--ehf-font-weight-semibold);
    border-radius: 0;
}

.ehf-faq-item.is-open .ehf-faq-q-icon {
    background: var(--ehf-gray-900);
}

.ehf-faq-question-text {
    flex: 1;
    font-family: var(--ehf-font-family);
    font-size: 16px;
    font-weight: var(--ehf-font-weight-medium);
    color: var(--ehf-gray-800);
    line-height: 1.4;
}

.ehf-faq-chevron {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--ehf-gray-400);
    transition: transform 0.25s ease;
}

.ehf-faq-item.is-open .ehf-faq-chevron {
    transform: rotate(180deg);
    color: var(--ehf-primary-color);
}

.ehf-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.ehf-faq-answer-inner {
    padding: 0 20px 20px 60px;
    font-family: var(--ehf-font-family);
    font-size: 15px;
    color: var(--ehf-gray-600);
    line-height: 1.7;
}

.ehf-faq-answer-inner p {
    margin: 0 0 12px 0;
}

.ehf-faq-answer-inner p:last-child {
    margin-bottom: 0;
}

@media (max-width: 600px) {
    .ehf-faq-question {
        padding: 14px 16px;
        gap: 10px;
    }
    
    .ehf-faq-q-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }
    
    .ehf-faq-question-text {
        font-size: 14px;
    }
    
    .ehf-faq-answer-inner {
        padding: 0 16px 16px 50px;
        font-size: 14px;
    }
}

/* === FAQ Answer Padding Fix === */
.ehf-faq-answer-inner {
    padding: 16px 24px 24px 60px !important;
}

@media (max-width: 600px) {
    .ehf-faq-answer-inner {
        padding: 12px 16px 20px 50px !important;
    }
}

/* ============================================
   Portrait Hero — Desktop only
   Blurred background + centered portrait image
   ============================================ */

/* Hide portrait-specific elements by default (mobile uses standard bg cover) */
.hero-blur-bg,
.hero-portrait-img {
    display: none;
}

@media (min-width: 769px) {
    /* Portrait hero on desktop */
    .post-hero.hero-portrait {
        background-size: 0;
        background-color: #0a0a0a;
        aspect-ratio: auto;
        max-height: none;
        min-height: 80vh;
        align-items: flex-end;
    }

    .post-hero.hero-portrait .hero-blur-bg {
        display: block;
        position: absolute;
        inset: -20px;
        background-size: cover;
        background-position: center;
        filter: blur(40px) brightness(0.5) saturate(1.2);
        z-index: 0;
        transform: scale(1.1);
    }

    .post-hero.hero-portrait .hero-portrait-img {
        display: block;
        position: relative;
        z-index: 1;
        max-width: var(--ehf-container-md);
        width: 100%;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }

    .post-hero.hero-portrait .hero-overlay {
        z-index: 2;
        background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.6) 80%,
            rgba(0, 0, 0, 0.85) 100%);
    }

    .post-hero.hero-portrait .hero-content {
        z-index: 3;
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding-bottom: var(--ehf-spacing-3xl);
    }

    .post-hero.hero-portrait .hero-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
        max-width: var(--ehf-container-md);
    }

    .post-hero.hero-portrait .category-badge {
        margin-bottom: var(--ehf-spacing-sm);
    }

    .post-hero.hero-portrait .scroll-indicator {
        z-index: 4;
    }
}




/* Inline Affiliate Disclosure */
.post-meta-section .inline-disclosure {
    font-size: 11px;
    line-height: 1.4;
    color: #bbb;
    margin: 8px 0 0 0;
    padding: 0 var(--ehf-spacing-md, 16px);
    font-style: italic;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    box-sizing: border-box;
}
.post-meta-section .inline-disclosure a {
    color: #bbb;
    text-decoration: underline;
}
.post-meta-section .inline-disclosure a:hover {
    color: #999;
}
