/* Topic Hub — single efcfo_custom_topic (topic/*) */

.single-efcfo_custom_topic .cfo-top-bar {
    display: none;
}

.single-efcfo_custom_topic #cfo-premium-body {
    background: #000 !important;
}

.thub-page {
    background: #000;
    color: #e8e4db;
    min-height: 100vh;
    padding-top: 0;
    margin-top: 0;
}

.thub-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Hero — master class style banner */
.thub-hero {
    position: relative;
    overflow: hidden;
    /* padding-top: 104px; */
    padding-bottom: 3.5rem;
    text-align: center;
    background:
        radial-gradient(circle at 20% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(201, 168, 76, 0.04) 0%, transparent 50%),
        #0a0a0a;
    border-bottom: none;
}

.thub-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(201, 168, 76, 0.25), transparent);
}

body.admin-bar .thub-hero {
    /* padding-top: calc(32px + 104px); */
}

@media screen and (max-width: 782px) {
    body.admin-bar .thub-hero {
        /* padding-top: calc(46px + 104px); */
    }
}

.thub-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.5rem 2rem 0;
}

.thub-brand-header {
    margin-bottom: 2rem;
}

.thub-brand-text {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.thub-brand-text span {
    color: #c9a84c;
    background: rgba(201, 168, 76, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
}

.thub-series-tag {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 5px;
    color: #c9a84c;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.thub-breadcrumb {
    margin-bottom: 2rem;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 4px;
    color: #64748b;
    text-transform: uppercase;
}

.thub-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thub-breadcrumb a:hover {
    color: #c9a84c;
}

.thub-breadcrumb .sep {
    margin: 0 0.5rem;
    opacity: 0.6;
}

.thub-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 auto 1.25rem;
    max-width: 960px;
    background: linear-gradient(135deg, #ffffff 0%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.thub-desc {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 1.15rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.68);
    max-width: 720px;
    margin: 0 auto 2.5rem;
}

.thub-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    margin: 0 auto 0;
    background: linear-gradient(90deg, transparent, #c9a84c, transparent);
    opacity: 0.35;
}

/* Stats — pill row like master class series */
.thub-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin: 0 auto 2.25rem;
    max-width: 960px;
}

.thub-stat-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 108px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.thub-stat-pill:hover {
    border-color: rgba(201, 168, 76, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

.thub-stat-pill-total {
    border-color: rgba(201, 168, 76, 0.22);
    background: rgba(201, 168, 76, 0.06);
}

.thub-stat-num {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 800;
    color: #f5f0e6;
    line-height: 1;
}

.thub-stat-pill-total .thub-stat-num {
    color: #c9a84c;
}

.thub-stat-lbl {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(200, 210, 230, 0.45);
    text-transform: capitalize;
}

/* CTAs */
.thub-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.thub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.2px;
    text-decoration: none !important;
    transition: opacity 0.2s ease, background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
}

.thub-btn:hover {
    transform: translateY(-1px);
}

.thub-btn-primary {
    background: #c9a84c;
    color: #050505 !important;
    border: 1px solid #c9a84c;
}

.thub-btn-primary:hover {
    opacity: 0.9;
}

.thub-btn-outline {
    background: #000;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.thub-btn-outline:hover {
    background: rgba(201, 168, 76, 0.08);
}

/* Content sections */
.thub-content {
    padding: 3.5rem 0 5.5rem;
}

.thub-section {
    margin-bottom: 4rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.thub-section:first-child {
    border-top: none;
    padding-top: 0;
}

.thub-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.thub-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f5f0e6;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

.thub-section-sub {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #7a7684;
}

.thub-section-count {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: #c9a84c;
    white-space: nowrap;
    padding: 8px 14px;
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 6px;
}

/* Card grid */
.thub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.thub-section-expandable:not(.is-expanded) .thub-grid > :nth-child(n+21) {
    display: none;
}

.thub-section-mc-accordion .thub-section-head {
    margin-bottom: 2.25rem;
}

.thub-mc-accordion-shell {
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.thub-mc-groups {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.thub-mc-category-group {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.thub-mc-category-group:last-child {
    border-bottom: none;
}

.thub-mc-category-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    width: 100%;
    margin: 0;
    padding: 1.65rem 1.75rem 1.75rem 1.5rem;
    border: none;
    border-left: 3px solid transparent;
    background: transparent;
    text-align: left;
    cursor: pointer;
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        padding 0.25s ease;
}

.thub-mc-category-head:hover {
    background: rgba(201, 168, 76, 0.04);
    border-left-color: rgba(201, 168, 76, 0.45);
}

.thub-mc-category-group.is-expanded .thub-mc-category-head {
    background: rgba(201, 168, 76, 0.07);
    border-left-color: #c9a84c;
    padding-bottom: 1.35rem;
}

.thub-mc-category-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding-right: 1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.05rem, 1.8vw, 1.35rem);
    font-weight: 600;
    color: #f5f0e6;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.thub-mc-category-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.thub-mc-category-count {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #c9a84c;
    white-space: nowrap;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.28);
    background: rgba(201, 168, 76, 0.08);
}

.thub-mc-expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(201, 168, 76, 0.35);
    background: rgba(201, 168, 76, 0.1);
    color: #c9a84c;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.thub-mc-category-head:hover .thub-mc-expand-btn,
.thub-mc-category-group.is-expanded .thub-mc-expand-btn {
    background: rgba(201, 168, 76, 0.18);
    border-color: rgba(201, 168, 76, 0.55);
}

.thub-mc-expand-icon {
    display: block;
    transition: transform 0.25s ease;
}

.thub-mc-category-group:not(.is-expanded) .thub-mc-expand-icon {
    transform: rotate(-90deg);
}

.thub-mc-category-panel {
    padding: 0.5rem 1.75rem 2rem 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.thub-mc-category-panel[hidden] {
    display: none !important;
}

.thub-mc-category-panel .thub-grid {
    margin-top: 0.25rem;
}

.thub-mc-category-link-wrap {
    margin: 0 0 1.25rem;
    padding-bottom: 0.25rem;
}

.thub-mc-category-archive-link {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #c9a84c;
    text-decoration: none;
    transition: color 0.2s ease;
}

.thub-mc-category-archive-link:hover {
    color: #e8d5a3;
}

@media (max-width: 768px) {
    .thub-mc-category-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.35rem 1.25rem 1.45rem;
    }

    .thub-mc-category-meta {
        width: 100%;
        justify-content: space-between;
    }

    .thub-mc-category-title {
        padding-right: 0;
    }

    .thub-mc-category-panel {
        padding: 0.5rem 1.25rem 1.5rem;
    }
}

.thub-view-more-wrap {
    text-align: center;
    margin-top: 2.25rem;
    padding-top: 0.5rem;
}

.thub-section-expandable.is-expanded .thub-view-more-wrap {
    display: none;
}

.thub-view-more {
    cursor: pointer;
    min-width: 220px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.thub-view-more-icon {
    flex-shrink: 0;
    display: block;
}

.thub-view-more:hover {
    border-color: rgba(201, 168, 76, 0.45);
    background: rgba(201, 168, 76, 0.06);
}

.thub-card {
    display: flex;
    flex-direction: column;
    min-height: 220px;
    padding: 22px 22px 18px;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.07) 0%, #0e0e0e 38%, #0a0a0a 100%);
    border: 1px solid rgba(201, 168, 76, 0.14);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.thub-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.1) 0%, #121212 38%, #0d0d0d 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 168, 76, 0.08);
}

.thub-card-label {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.8px;
    color: #c9a84c;
    text-transform: uppercase;
    margin-bottom: 14px;
    opacity: 0.9;
}

.thub-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: #f5f0e6;
    line-height: 1.45;
    margin: 0;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.thub-card-footer {
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    padding-top: 4px;
}

.thub-card-tag {
    display: inline-block;
    align-self: flex-start;
    margin-top: 0;
    margin-bottom: 10px;
    padding: 5px 12px;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    line-height: 1.35;
    color: rgba(201, 168, 76, 0.9);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 999px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.thub-card-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    width: 100%;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 1px;
    color: #c9a84c;
    transition: color 0.2s ease;
}

.thub-card:hover .thub-card-action {
    color: #e8d5a3;
}

.thub-card-video {
    cursor: pointer;
}

/* Video lightbox (shared with videos-new page) */
.cfov-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

#cfov-lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.4rem;
    z-index: 100;
}

.cfov-lb-content {
    display: flex;
    width: min(1280px, 95vw);
    max-height: 85vh;
    background: #000;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.8);
}

.cfov-lb-main {
    flex: 1;
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

#cfov-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#cfov-lb-sidebar {
    width: 360px;
    background: #0f0f0f;
    display: none;
    flex-direction: column;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
}

.cfov-lb-sidebar-head {
    padding: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cfov-lb-sidebar-head h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #fff;
    font-weight: 700;
}

#cfov-lb-pl-count {
    font-size: 0.8rem;
    color: #666;
    margin-top: 5px;
    display: block;
}

#cfov-lb-pl-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.cfov-lb-pl-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.2s;
    margin-bottom: 5px;
    border: 1px solid transparent;
}

.cfov-lb-pl-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.cfov-lb-pl-active {
    background: rgba(184, 148, 63, 0.1);
    border-color: rgba(184, 148, 63, 0.2);
}

.cfov-lb-pl-thumb {
    width: 100px;
    position: relative;
    flex-shrink: 0;
}

.cfov-lb-pl-thumb img {
    width: 100%;
    border-radius: 8px;
}

.cfov-lb-pl-thumb span {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    font-size: 0.65rem;
    color: #fff;
    padding: 1px 5px;
    border-radius: 4px;
}

.cfov-lb-pl-info h4 {
    font-size: 0.85rem;
    color: #fff;
    margin: 0 0 4px;
    font-weight: 600;
    line-height: 1.3;
}

.cfov-lb-pl-info span {
    font-size: 0.75rem;
    color: #666;
}

.cfov-lb-pl-active .cfov-lb-pl-info h4 {
    color: #b8943f;
}

.cfov-custom-scroll::-webkit-scrollbar {
    width: 5px;
}

.cfov-custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

@media (max-width: 768px) {
    .cfov-lb-content {
        flex-direction: column;
        width: 98vw;
        max-height: 95vh;
        margin: 10px;
    }

    #cfov-lb-sidebar {
        width: 100%;
        max-height: 35vh;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .cfov-lb-main {
        width: 100%;
        flex: none;
    }

    #cfov-lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
}

.thub-chev {
    flex-shrink: 0;
    display: block;
    width: 12px;
    height: 12px;
}

.thub-empty {
    text-align: center;
    padding: 4rem 2rem;
    border: 1px dashed rgba(201, 168, 76, 0.25);
    border-radius: 8px;
}

.thub-empty h2 {
    font-family: 'Playfair Display', serif;
    color: #f5f0e6;
    margin-bottom: 0.5rem;
}

.thub-empty p {
    color: #6e6a78;
    max-width: 520px;
    margin: 0 auto;
}

/* Related Topics */
.thub-related {
    margin-top: 1rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.thub-related-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    color: #f5f0e6;
    margin: 0 0 0.75rem;
}

.thub-related-desc {
    margin: 0 0 1.75rem;
    max-width: 720px;
    font-size: 13px;
    line-height: 1.6;
    color: #6e6a78;
}

.thub-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.thub-related-card {
    display: flex;
    flex-direction: column;
    min-height: 190px;
    padding: 24px 24px 20px;
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.05) 0%, transparent 55%);
    border: 1px solid rgba(201, 168, 76, 0.16);
    border-radius: 12px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.thub-related-card:hover {
    border-color: rgba(201, 168, 76, 0.38);
    background: linear-gradient(165deg, rgba(201, 168, 76, 0.1) 0%, rgba(255, 255, 255, 0.02) 55%);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
}

.thub-related-xref {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #7a7684;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.thub-related-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5f0e6;
    line-height: 1.35;
    margin: 0 0 auto;
}

.thub-related-link {
    margin-top: 18px;
    font-size: 12px;
    color: #c9a84c;
}

@media (max-width: 1100px) {
    .thub-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .thub-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .thub-wrap {
        padding: 0 20px;
    }

    .thub-hero {
        padding-top: 100px;
        padding-bottom: 2.5rem;
    }

    body.admin-bar .thub-hero {
        padding-top: calc(46px + 100px);
    }

    .thub-hero-inner {
        padding: 1.75rem 1.25rem 0;
    }

    .thub-series-tag {
        font-size: 0.65rem;
        letter-spacing: 3px;
    }

    .thub-breadcrumb {
        letter-spacing: 2px;
        font-size: 0.62rem;
    }

    .thub-stats {
        gap: 10px;
    }

    .thub-stat-pill {
        min-width: 0;
        flex: 1 1 calc(50% - 10px);
        padding: 10px 12px;
    }

    .thub-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .thub-related-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .thub-card {
        min-height: 200px;
        padding: 20px 18px 16px;
    }

    .thub-stats {
        gap: 1.25rem 1.5rem;
    }

    .thub-section-head {
        flex-direction: column;
        align-items: flex-start;
    }
}
