/* V5 "The Authority" - Fusion Theme */

:root {
    --premium-white: #ffffff;
    --premium-cream: #fbfbf9;
    --premium-charcoal: #0a0a0a;
    --premium-gold: #c5a059;
    --premium-gold-bright: #d4af37;
    --premium-turquoise: #008080;
    --premium-crimson: #a52a2a;
    --premium-slate: #555555;

    --font-heading: 'Playfair Display', serif;
    --font-monument: 'Manrope', sans-serif;
    /* Fallback for Monument Extended if missing */
    --font-body: 'Manrope', sans-serif;
    --curve: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Specificity Boost */
body.page-template-template-homepage-premium {
    background-color: var(--premium-white);
    color: var(--premium-charcoal);
    font-family: var(--font-body);
    margin: 0;
    overflow-x: hidden;
}

.premium-v5 {
    background: var(--premium-white);
}

.premium-v5 .container-v5 {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* ============================================= */
/* 1. HERO - KINETIC TITLE */
/* ============================================= */
.hero-v5 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f4f4f4 0%, #ffffff 100%);
    text-align: center;
    position: relative;
}

.kinetic-title-wrap {
    display: flex;
    overflow: hidden;
    margin-top: -10vh;
}

.kinetic-letter {
    font-size: clamp(4rem, 15vw, 12vw);
    font-weight: 800;
    line-height: 0.8;
    color: var(--premium-charcoal);
    display: inline-block;
    transition: all 0.4s var(--curve);
    transform: translateY(100%);
    opacity: 0;
}

.kinetic-letter:hover {
    color: var(--premium-gold);
    transform: translateY(-20px);
}

.hero-search-wrap {
    margin-top: 4rem;
    width: 100%;
    max-width: 700px;
}

.stat-badge {
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--premium-gold);
    font-weight: 700;
    display: block;
    margin-bottom: 2rem;
}

.search-box {
    position: relative;
    display: flex;
    background: white;
    border: 1px solid rgba(197, 160, 89, 0.2);
    border-radius: 50px;
    padding: 0.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: all 0.4s var(--curve);
}

.search-box:focus-within {
    border-color: var(--premium-gold);
    box-shadow: 0 15px 50px rgba(197, 160, 89, 0.1);
    transform: scale(1.02);
}

.search-box input {
    width: 100%;
    border: none;
    background: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    outline: none;
    color: var(--premium-charcoal);
}

.search-btn {
    background: var(--premium-gold);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.search-btn:hover {
    background: var(--premium-charcoal);
}

.quick-tags {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.quick-tags span {
    font-size: 0.8rem;
    color: var(--premium-slate);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.quick-tags span:hover {
    color: var(--premium-gold);
    border-color: var(--premium-gold);
}

/* ============================================= */
/* 2. TRUST STRIP */
/* ============================================= */
.trust-strip {
    padding: 3rem 0;
    background: white;
    border-bottom: 1px solid #eee;
}

.trust-strip .eyebrow {
    text-align: center;
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--premium-slate);
    margin-bottom: 2rem;
}


.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-weight: 700;
}

.trust-item img {
    height: 25px;
    filter: grayscale(100%);
}

.trust-logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
}

/* ============================================= */
/* 3. TURQUOISE STANDARD (Horizontal Accordion) */
/* ============================================= */
.turquoise-standard-v5 {
    background: var(--premium-charcoal);
    color: white;
    padding: 10rem 0;
    position: relative;
    overflow: hidden;
}

.standard-header {
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 2;
}

.standard-label {
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    color: var(--premium-gold);
    display: block;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.standard-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1;
    color: white;
}

/* Accordion Wrapper */
.standard-accordion-wrap {
    display: flex;
    gap: 2rem;
    height: 600px;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Individual Pillar */
.std-pillar {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transition: all 0.6s var(--curve);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
}

/* Interaction: Active / Hover */
.std-pillar:hover,
.std-pillar.active {
    flex: 3;
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--premium-turquoise);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.std-pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--premium-turquoise);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s var(--curve);
}

.std-pillar:hover::before,
.std-pillar.active::before {
    transform: scaleX(1);
}

/* Pillar Content */
.pillar-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.pillar-num {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.05);
    position: absolute;
    top: -6rem;
    left: 0;
    transition: 0.4s;
    font-family: var(--font-heading);
}

.std-pillar:hover .pillar-num,
.std-pillar.active .pillar-num {
    color: rgba(0, 128, 128, 0.2); /* Turquoise tint */
    transform: translateY(-20px);
}

.std-pillar h3 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    white-space: nowrap;
    color: white !important;
    transition: 0.4s;
}

.std-pillar:hover h3,
.std-pillar.active h3 {
    color: var(--premium-gold) !important;
}

.std-pillar p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #aaa;
    max-width: 0; /* Hidden by default */
    opacity: 0;
    overflow: hidden;
    transition: all 0.6s var(--curve);
    white-space: normal;
}

/* Reveal Text on Expand */
.std-pillar:hover p,
.std-pillar.active p {
    max-width: 500px;
    opacity: 1;
    margin-top: 1rem;
}

.pillar-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--premium-gold);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.6s var(--curve);
}

.std-pillar:hover .pillar-icon,
.std-pillar.active .pillar-icon {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .standard-accordion-wrap {
        flex-direction: column;
        height: auto;
    }

    .std-pillar {
        height: 120px;
        justify-content: center;
        padding: 2rem;
    }

    .std-pillar:hover,
    .std-pillar.active {
        height: 350px;
        flex: none;
    }

    .std-pillar h3 {
        font-size: 1.5rem;
        white-space: normal;
    }

    .pillar-num {
        top: 1rem;
        right: 1rem;
        left: auto;
        font-size: 3rem;
    }
}

/* ============================================= */
/* 4. EDITORIAL COLLECTIONS */
/* ============================================= */
.editorial-v5 {
    padding: 10rem 0;
}

.category-tag {
    color: var(--premium-crimson);
    font-size: 0.7rem;
    letter-spacing: 0.5em;
    font-weight: 700;
    display: block;
    margin-bottom: 1rem;
}

.big-year {
    font-size: 10vw;
    color: #f4f4f4;
    font-weight: 900;
    line-height: 1;
    margin-bottom: -4vw;
    user-select: none;
}

.editorial-title {
    font-size: 4rem;
    font-weight: 900;
    color: var(--premium-charcoal) !important;
    position: relative;
    z-index: 2;
}

.editorial-articles {
    margin-top: 8rem;
    display: flex;
    flex-direction: column;
    gap: 12rem;
}

.editorial-row {
    display: flex;
    align-items: center;
    gap: 6rem;
}

.editorial-row.rev {
    flex-direction: row-reverse;
}

.ed-image-wrap {
    flex: 1;
    position: relative;
    height: 600px;
}

.ed-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: 0.8s;
}

.editorial-row:hover .ed-image-wrap img {
    filter: grayscale(0%);
}

.accent-box {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 100%;
    height: 100%;
    border: 2px solid;
    z-index: -1;
    transition: 0.5s;
}

.editorial-row.rev .accent-box {
    right: auto;
    left: -30px;
}

.editorial-row[data-accent="turquoise"] .accent-box {
    border-color: rgba(0, 128, 128, 0.3);
}

.editorial-row[data-accent="crimson"] .accent-box {
    border-color: rgba(165, 42, 42, 0.3);
}

.editorial-row[data-accent="gold"] .accent-box {
    border-color: rgba(197, 160, 89, 0.3);
}

.ed-content {
    flex: 0.8;
}

.ed-cat {
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--premium-slate);
    display: block;
    margin-bottom: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    display: inline-block;
}

.ed-content h3 {
    font-size: 4rem;
    line-height: 0.9;
    font-weight: 900;
    margin-bottom: 2.5rem !important;
}

.ed-content p {
    font-size: 1.3rem;
    color: #666;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.ed-link {
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: var(--premium-charcoal);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ed-link span {
    width: 40px;
    height: 1px;
    background: var(--premium-charcoal);
    transition: 0.4s;
}

.ed-link:hover span {
    width: 80px;
    background: var(--premium-gold);
}

/* ============================================= */
/* 5. KNOWLEDGE NEXUS */
/* ============================================= */
.nexus-v5 {
    padding: 8rem 0;
    background: #fdfdfd;
    overflow: hidden;
    border-top: 1px solid #eee;
}

.nexus-head {
    text-align: center;
    margin-bottom: 6rem;
}

.nexus-label {
    color: var(--premium-turquoise);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    font-weight: 700;
}

.nexus-title {
    font-size: 4rem;
    font-weight: 900;
    margin-top: 1rem;
}

.marquee-wrap {
    transform: rotate(-2deg) scale(1.1);
}

.marquee-track {
    display: flex;
    gap: 4rem;
    padding: 1rem 0;
    white-space: nowrap;
}

.marquee-track span {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.08);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
    transition: 0.4s;
    cursor: pointer;
}

.marquee-track span:hover {
    -webkit-text-stroke-color: var(--premium-gold);
    color: var(--premium-gold);
}

.m-ancient span {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 5rem;
}

.m-cultural span {
    -webkit-text-stroke-color: rgba(197, 160, 89, 0.3);
}

/* ============================================= */
/* 6. ACCORDION */
/* ============================================= */
.accordion-v5 {
    padding: 10rem 0;
    background: white;
}

.accordion-v5 .section-title {
    font-size: 4rem;
    font-weight: 900;
}

.accordion-container-v5 {
    display: flex;
    gap: 1rem;
    height: 600px;
    margin-top: 4rem;
}

.acc-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    transition: flex 0.8s var(--curve);
    text-decoration: none;
}

.acc-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 60%);
}

.acc-card.active,
.acc-card:hover {
    flex: 4;
}

.acc-content {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    right: 3rem;
    color: white;
}

.acc-card .acc-cat {
    color: var(--premium-gold);
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.5rem;
}

.acc-card h3 {
    font-size: 2rem;
    color: white !important;
    font-weight: 900;
}

.acc-card .acc-desc {
    font-size: 1rem;
    color: #ccc;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.5s;
    margin-top: 1rem;
}

.acc-card.active .acc-desc,
.acc-card:hover .acc-desc {
    max-width: 400px;
    opacity: 1;
}

/* ============================================= */
/* RESPONSIVE */
/* ============================================= */
@media (max-width: 1000px) {
    .premium-v5 .container-v5 {
        padding: 0 2rem;
    }

    .manifesto-grid {
        grid-template-columns: 1fr;
    }

    .editorial-row,
    .editorial-row.rev {
        flex-direction: column;
        gap: 3rem;
    }

    .ed-content h3 {
        font-size: 3rem;
    }

    .accordion-container-v5 {
        flex-direction: column;
        height: auto;
    }

    .acc-card {
        height: 150px;
        flex: none;
    }

    .acc-card.active,
    .acc-card:hover {
        height: 400px;
    }
}

/* ============================================= */
/* REFINEMENT ADDITIONS */
/* ============================================= */

/* Trust Stats */
.trust-stat-item {
    text-align: center;
}

.trust-stat-item .trust-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--premium-gold);
    line-height: 1;
    font-family: var(--font-heading);
}

.trust-stat-item .trust-desc {
    display: block;
    font-size: 0.75rem;
    color: var(--premium-slate);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.25rem;
}

/* Quick Tags as Links */
.quick-tags a {
    font-size: 0.8rem;
    color: var(--premium-slate);
    cursor: pointer;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
    text-decoration: none;
}

.quick-tags a:hover {
    color: var(--premium-gold);
    border-color: var(--premium-gold);
}

/* Marquee Track Links */
.marquee-track a {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.25);
    color: rgba(0, 0, 0, 0.08);
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
    transition: 0.4s;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.marquee-track a:hover {
    -webkit-text-stroke-color: var(--premium-gold);
    color: var(--premium-gold);
}

.m-ancient a {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 5rem;
}

.m-cultural a {
    -webkit-text-stroke-color: rgba(197, 160, 89, 0.3);
}

@media (max-width: 768px) {
    .trust-stat-item .trust-number {
        font-size: 1.75rem;
    }
}

/* ============================================= */
/* HERO ALIGNMENT FIXES */
/* ============================================= */

.hero-v5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 120px;
    padding-bottom: 60px;
}

.hero-v5 .container-v5 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.kinetic-title-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.hero-search-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 700px;
    margin: 3rem auto 0;
}

.stat-badge {
    text-align: center;
    display: block;
    margin: 0 auto 2rem;
}

.search-box {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.quick-tags {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin: 1.5rem auto 0;
    width: 100%;
}


.press-logo-item {
    flex: 0 0 auto;
}



@media (max-width: 768px) {

    /* Press Logo Items - for Trusted By section */
    .trust-logos-v5 {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 3.5rem;
        flex-wrap: wrap;
        padding: 1.5rem 0;
    }

    a.press-logo-item {
        flex: 0 0 auto;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    a.press-logo-item:hover {
        transform: scale(1.05);
    }

    .press-logo-item img {
        height: 45px;
        width: auto;
        max-width: 160px;
        opacity: 0.5;
        filter: grayscale(100%) brightness(0);
        transition: all 0.3s ease;
    }

    .press-logo-item:hover img {
        opacity: 0.8;
        filter: grayscale(100%) brightness(0);
    }

    @media (max-width: 768px) {
        .trust-logos-v5 {
            gap: 2rem;
        }

        .press-logo-item img {
            height: 35px;
            max-width: 120px;
        }
    }

    /* Force unified grayscale logos */
    .trust-strip .press-logo-item img,
    .trust-logos-v5 .press-logo-item img,
    a.press-logo-item img {
        height: 45px !important;
        width: auto !important;
        max-width: 160px !important;
        opacity: 0.4 !important;
        filter: grayscale(100%) brightness(0) !important;
        -webkit-filter: grayscale(100%) brightness(0) !important;
        transition: all 0.3s ease !important;
    }

    .trust-strip .press-logo-item:hover img,
    .trust-logos-v5 .press-logo-item:hover img,
    a.press-logo-item:hover img {
        opacity: 0.7 !important;
        filter: grayscale(100%) brightness(0) !important;
        -webkit-filter: grayscale(100%) brightness(0) !important;
    }

    .trust-logos-v5 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        flex-wrap: wrap !important;
    }

    /* Vertical logo layout */
    .trust-logos-v5 {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 3rem !important;
        flex-wrap: nowrap !important;
    }

    @media (max-width: 900px) {
        .trust-logos-v5 {
            flex-wrap: wrap !important;
            gap: 2rem !important;
        }
    }

    /* Hero alignment fix */
    .hero-v5 .container-v5 {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .kinetic-title-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-search-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    .search-box {
        width: 100%;
    }

    .quick-tags {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    /* ============================================= */
    /* HERO ALIGNMENT FIX - Centering all elements */
    /* ============================================= */
    .hero-v5 .container-v5 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .kinetic-title-wrap {
        justify-content: center;
        width: 100%;
    }

    .hero-search-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    /* Trust strip alignment with hero */
    .trust-strip {
        text-align: center;
    }

    .trust-strip .container-v5 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ============================================= */
    /* ENHANCED CATEGORY ACCORDION - Text Orientation */
    /* ============================================= */

    /* When collapsed: title rotated vertically for space efficiency */
    .acc-card:not(.active):not(:hover) .acc-title {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        white-space: nowrap;
        font-size: 1.5rem;
    }

    .acc-card:not(.active):not(:hover) .acc-cat {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        white-space: nowrap;
    }

    .acc-card:not(.active):not(:hover) .acc-content {
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        text-align: center;
    }

    /* When expanded: normal horizontal text */
    .acc-card.active .acc-title,
    .acc-card:hover .acc-title {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 2.5rem;
    }

    .acc-card.active .acc-cat,
    .acc-card:hover .acc-cat {
        writing-mode: horizontal-tb;
        transform: none;
    }

    .acc-card.active .acc-content,
    .acc-card:hover .acc-content {
        bottom: 3rem;
        left: 3rem;
        transform: none;
        right: 3rem;
        text-align: left;
    }

    /* Smooth transition for text orientation */
    .acc-title,
    .acc-cat,
    .acc-content {
        transition: all 0.5s var(--curve);
    }

    /* ============================================= */
    /* HERO ALIGNMENT FIX */
    /* ============================================= */
    .hero-v5 {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-v5 .container-v5 {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .kinetic-title-wrap {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    /* Make letters visible by default as fallback */
    .kinetic-letter {
        opacity: 1;
        transform: translateY(0);
    }

    .hero-search-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 700px;
        margin: 0 auto;
    }

    /* Trust strip alignment */
    .trust-strip {
        text-align: center;
    }

    .trust-strip .container-v5 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* ============================================= */
    /* EXPLORE TOPICS - Darker text for readability */
    /* ============================================= */
    .marquee-track a {
        color: rgba(10, 10, 10, 0.5) !important;
        transition: color 0.3s ease;
    }

    .marquee-track a:hover {
        color: var(--premium-gold) !important;
    }

    /* ============================================= */
    /* FIX: Category Card Text - Vertical when collapsed */
    /* ============================================= */

    /* Default state: vertical text for collapsed cards */
    .accordion-container-v5 .acc-card .acc-content {
        position: absolute;
        bottom: 1.5rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        text-align: center;
        transition: all 0.5s ease;
    }

    .accordion-container-v5 .acc-card .acc-title {
        writing-mode: vertical-rl;
        text-orientation: mixed;
        transform: rotate(180deg);
        font-size: 1.2rem !important;
        white-space: nowrap;
        margin: 0 auto;
    }

    .accordion-container-v5 .acc-card .acc-cat {
        display: none;
    }

    .accordion-container-v5 .acc-card .acc-desc {
        display: none;
    }

    /* Active/Hover state: horizontal text */
    .accordion-container-v5 .acc-card.active .acc-content,
    .accordion-container-v5 .acc-card:hover .acc-content {
        bottom: 3rem;
        left: 3rem;
        right: 3rem;
        transform: none;
        text-align: left;
    }

    .accordion-container-v5 .acc-card.active .acc-title,
    .accordion-container-v5 .acc-card:hover .acc-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed;
        transform: none !important;
        font-size: 2.5rem !important;
        white-space: normal;
    }

    .accordion-container-v5 .acc-card.active .acc-cat,
    .accordion-container-v5 .acc-card:hover .acc-cat {
        display: block;
    }

    .accordion-container-v5 .acc-card.active .acc-desc,
    .accordion-container-v5 .acc-card:hover .acc-desc {
        display: block;
        max-width: 400px;
        opacity: 1;
    }

    /* ============================================= */
    /* FORCE VERTICAL TEXT ON COLLAPSED CARDS */
    /* ============================================= */
    .accordion-v5 .accordion-container-v5 .acc-card:not(.active) .acc-title {
        writing-mode: vertical-rl !important;
        text-orientation: mixed !important;
        transform: rotate(180deg) !important;
        font-size: 1.4rem !important;
        white-space: nowrap !important;
        position: absolute !important;
        bottom: 2rem !important;
        left: 50% !important;
        margin-left: -0.7rem !important;
    }

    .accordion-v5 .accordion-container-v5 .acc-card:not(.active) .acc-cat,
    .accordion-v5 .accordion-container-v5 .acc-card:not(.active) .acc-desc {
        display: none !important;
    }

    .accordion-v5 .accordion-container-v5 .acc-card:not(.active) .acc-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: 0 !important;
        display: flex !important;
        align-items: flex-end !important;
        justify-content: center !important;
        padding-bottom: 2rem !important;
    }

    /* FORCE HORIZONTAL TEXT ON ACTIVE/HOVER CARDS */
    .accordion-v5 .accordion-container-v5 .acc-card.active .acc-title,
    .accordion-v5 .accordion-container-v5 .acc-card:hover .acc-title {
        writing-mode: horizontal-tb !important;
        text-orientation: mixed !important;
        transform: none !important;
        font-size: 2.5rem !important;
        white-space: normal !important;
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        margin-left: 0 !important;
    }

    .accordion-v5 .accordion-container-v5 .acc-card.active .acc-cat,
    .accordion-v5 .accordion-container-v5 .acc-card:hover .acc-cat,
    .accordion-v5 .accordion-container-v5 .acc-card.active .acc-desc,
    .accordion-v5 .accordion-container-v5 .acc-card:hover .acc-desc {
        display: block !important;
    }

    .accordion-v5 .accordion-container-v5 .acc-card.active .acc-content,
    .accordion-v5 .accordion-container-v5 .acc-card:hover .acc-content {
        position: absolute !important;
        bottom: 3rem !important;
        left: 3rem !important;
        right: 3rem !important;
        top: auto !important;
        display: block !important;
        padding-bottom: 0 !important;
        align-items: initial !important;
        justify-content: initial !important;
    }

    /* ============================================= */
    /* EXPLORE TOPICS - Much Darker text */
    /* ============================================= */
    .nexus-v5 .marquee-track a {
        color: #333 !important;
        -webkit-text-stroke: 1px #666 !important;
    }

    .nexus-v5 .marquee-track a:hover {
        color: var(--premium-gold) !important;
        -webkit-text-stroke: 1px var(--premium-gold) !important;
    }

    /* ============================================= */
    /* SIMPLIFIED CATEGORY CARD - Show titles always */
    /* ============================================= */
    .accordion-container-v5 .acc-card .acc-title {
        opacity: 1 !important;
        visibility: visible !important;
        color: white !important;
    }

    /* ============================================= */
    /* NEW CATEGORIES LAYOUT (2 Featured + 5 Grid) */
    /* ============================================= */
    .categories-v6 {
        padding: 8rem 0;
        background: linear-gradient(180deg, #fafafa 0%, #ffffff 100%);
    }

    .categories-v6 .section-title {
        font-size: 3.5rem;
        font-weight: 900;
        margin-bottom: 3rem;
    }

    /* 2 Featured Cards - Side by Side */
    .categories-featured {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
        margin-bottom: 2rem;
    }

    .cat-featured-card {
        position: relative;
        height: 400px;
        border-radius: 20px;
        overflow: hidden;
        text-decoration: none;
        display: block;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .cat-featured-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    }

    .cat-featured-img {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transition: transform 0.6s ease;
    }

    .cat-featured-card:hover .cat-featured-img {
        transform: scale(1.05);
    }

    .cat-featured-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
        z-index: 1;
    }

    .cat-featured-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 2.5rem;
        z-index: 2;
        color: white;
    }

    .cat-featured-content .cat-label {
        display: inline-block;
        background: var(--premium-gold);
        color: white;
        padding: 0.4rem 1rem;
        border-radius: 20px;
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.1em;
        margin-bottom: 1rem;
    }

    .cat-featured-content h3 {
        font-size: 2.5rem;
        font-weight: 900;
        margin: 0 0 0.5rem 0;
        color: white;
    }

    .cat-featured-content p {
        font-size: 1rem;
        color: rgba(255, 255, 255, 0.8);
        margin: 0 0 1rem 0;
        max-width: 300px;
    }

    .cat-featured-content .cat-link {
        color: var(--premium-gold);
        font-weight: 700;
        font-size: 0.9rem;
        transition: color 0.3s ease;
    }

    .cat-featured-card:hover .cat-link {
        color: white;
    }

    /* 5 Grid Cards - Row */
    .categories-grid {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        gap: 1.5rem;
    }

    .cat-grid-card {
        position: relative;
        height: 280px;
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        display: block;
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }

    .cat-grid-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    }

    .cat-grid-img {
        position: absolute;
        inset: 0;
        background-size: cover;
        background-position: center;
        transition: transform 0.5s ease;
    }

    .cat-grid-card:hover .cat-grid-img {
        transform: scale(1.08);
    }

    .cat-grid-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
        z-index: 1;
    }

    .cat-grid-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 1.5rem;
        z-index: 2;
        color: white;
        text-align: center;
    }

    .cat-grid-content h4 {
        font-size: 1.4rem;
        font-weight: 800;
        margin: 0 0 0.3rem 0;
        color: white;
    }

    .cat-grid-content span {
        font-size: 0.8rem;
        color: var(--premium-gold);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
    }

    /* Responsive */
    @media (max-width: 1200px) {
        .categories-grid {
            grid-template-columns: repeat(3, 1fr);
        }
    }

    @media (max-width: 900px) {
        .categories-featured {
            grid-template-columns: 1fr;
        }

        .cat-featured-card {
            height: 350px;
        }

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

    @media (max-width: 600px) {
        .categories-grid {
            grid-template-columns: 1fr;
        }

        .cat-grid-card {
            height: 200px;
        }
    }

    /* Force Categories V6 Styles - Higher Specificity */
    .premium-v5 .categories-v6 .categories-featured {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        margin-bottom: 2rem !important;
    }

    .premium-v5 .categories-v6 .cat-featured-card {
        position: relative !important;
        height: 400px !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        text-decoration: none !important;
        display: block !important;
    }

    .premium-v5 .categories-v6 .cat-featured-img {
        position: absolute !important;
        inset: 0 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .premium-v5 .categories-v6 .cat-featured-card::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%) !important;
        z-index: 1 !important;
    }

    .premium-v5 .categories-v6 .cat-featured-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 2.5rem !important;
        z-index: 2 !important;
        color: white !important;
    }

    .premium-v5 .categories-v6 .cat-featured-content h3 {
        font-size: 2.5rem !important;
        font-weight: 900 !important;
        color: white !important;
        margin: 0 0 0.5rem 0 !important;
    }

    .premium-v5 .categories-v6 .categories-grid {
        display: grid !important;
        grid-template-columns: repeat(5, 1fr) !important;
        gap: 1.5rem !important;
    }

    .premium-v5 .categories-v6 .cat-grid-card {
        position: relative !important;
        height: 280px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        text-decoration: none !important;
        display: block !important;
    }

    .premium-v5 .categories-v6 .cat-grid-img {
        position: absolute !important;
        inset: 0 !important;
        background-size: cover !important;
        background-position: center !important;
    }

    .premium-v5 .categories-v6 .cat-grid-card::before {
        content: '' !important;
        position: absolute !important;
        inset: 0 !important;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%) !important;
        z-index: 1 !important;
    }

    .premium-v5 .categories-v6 .cat-grid-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1.5rem !important;
        z-index: 2 !important;
        color: white !important;
        text-align: center !important;
    }

    .premium-v5 .categories-v6 .cat-grid-content h4 {
        font-size: 1.4rem !important;
        font-weight: 800 !important;
        color: white !important;
        margin: 0 0 0.3rem 0 !important;
    }

    /* EXPLORE TOPICS - Final Dark Text Override */
    .nexus-v5 .marquee-track span,
    .nexus-v5 .marquee-track a {
        color: rgba(0, 0, 0, 0.15) !important;
        -webkit-text-stroke: 2px rgba(0, 0, 0, 0.35) !important;
    }

    .nexus-v5 .marquee-track span:hover,
    .nexus-v5 .marquee-track a:hover {
        color: var(--premium-gold) !important;
        -webkit-text-stroke: 2px var(--premium-gold) !important;
    }

    /* HERO CENTERING AND SPACING FIX */
    .hero-v5 {
        height: auto !important;
        min-height: 70vh !important;
        padding: 100px 0 40px 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-v5 .container-v5 {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .kinetic-title-wrap {
        justify-content: center !important;
        margin-top: 0 !important;
    }

    .hero-search-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 700px !important;
        margin: 0 auto !important;
    }

    /* TRUSTED BY - Less spacing */
    .trust-strip {
        padding: 30px 0 !important;
        margin-top: 0 !important;
    }

    .trust-strip .eyebrow {
        text-align: center !important;
        display: block !important;
        margin-bottom: 1.5rem !important;
    }

    /* OUR MISSION - Fix dark on dark text */
    .manifesto-v5 .decree-text,
    .manifesto-v5 .pillar-desc,
    .manifesto-v5 p {
        color: rgba(255, 255, 255, 0.85) !important;
    }

    .manifesto-v5 h3,
    .manifesto-v5 .pillar-title {
        color: #ffffff !important;
    }

    .manifesto-v5 .pillar-title span {
        color: var(--premium-gold) !important;
    }

    /* REDUCE HERO TO TRUSTED BY SPACING */
    .hero-v5 {
        padding-bottom: 20px !important;
        margin-bottom: 0 !important;
    }

    .trust-strip {
        padding-top: 20px !important;
        padding-bottom: 40px !important;
        margin-top: 0 !important;
    }

    .hero-search-wrap .quick-tags {
        margin-bottom: 0 !important;
    }

    /* CENTER SEARCH ELEMENTS */
    .hero-search-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .stat-badge {
        display: block !important;
        text-align: center !important;
        margin: 0 auto 1rem auto !important;
    }

    .search-box {
        margin: 0 auto !important;
        display: flex !important;
        justify-content: center !important;
    }

    .quick-tags {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1rem !important;
        flex-wrap: wrap !important;
        margin: 1.5rem auto 0 auto !important;
        text-align: center !important;
    }

    /* HIGHLIGHT QUICK TAGS BETTER */
    .quick-tags a {
        background: rgba(0, 0, 0, 0.06) !important;
        color: #333 !important;
        padding: 0.6rem 1.2rem !important;
        border-radius: 25px !important;
        font-weight: 600 !important;
        font-size: 0.9rem !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        border: 1px solid rgba(0, 0, 0, 0.1) !important;
    }

    .quick-tags a:hover {
        background: var(--premium-gold) !important;
        color: white !important;
        border-color: var(--premium-gold) !important;
        transform: translateY(-2px) !important;
    }

    /* ============================================= */
    /* FINAL HERO CENTERING FIX */
    /* ============================================= */
    .hero-v5,
    .hero-v5 .container-v5,
    .hero-v5 .hero-search-wrap,
    .hero-v5 .kinetic-title-wrap {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .hero-v5 .kinetic-title-wrap {
        flex-direction: row !important;
    }

    .hero-v5 .stat-badge {
        margin: 0 auto 1.5rem auto !important;
        display: inline-block !important;
    }

    .hero-v5 .search-box {
        margin: 0 auto !important;
        width: 100% !important;
        max-width: 650px !important;
    }

    .hero-v5 .quick-tags {
        margin: 1.5rem auto 0 auto !important;
        justify-content: center !important;
    }

    /* ============================================= */
    /* OUR MISSION - MAKE TEXT READABLE */
    /* ============================================= */
    .manifesto-v5 {
        background: #1a1a1a !important;
    }

    .manifesto-v5 .decree-eyebrow,
    .manifesto-v5 .eyebrow {
        color: var(--premium-gold) !important;
    }

    .manifesto-v5 .decree-title,
    .manifesto-v5 h2 {
        color: #ffffff !important;
    }

    .manifesto-v5 .decree-title span,
    .manifesto-v5 h2 span {
        color: var(--premium-gold) !important;
    }

    .manifesto-v5 .pillar-number {
        color: var(--premium-gold) !important;
    }

    .manifesto-v5 .pillar-title,
    .manifesto-v5 h3 {
        color: #ffffff !important;
    }

    .manifesto-v5 .pillar-title span {
        color: var(--premium-gold) !important;
    }

    .manifesto-v5 .pillar-desc,
    .manifesto-v5 .decree-text,
    .manifesto-v5 p {
        color: rgba(255, 255, 255, 0.85) !important;
        line-height: 1.7 !important;
    }

    /* ========================================
   QA FIXES - December 2024
   ======================================== */

    /* 1. HERO MOTIF PATTERN OVERLAY */
    .hero-v5::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C9A227' stroke-width='0.5' opacity='0.08'%3E%3Cpath d='M40 0 L80 40 L40 80 L0 40 Z'/%3E%3Ccircle cx='40' cy='40' r='20'/%3E%3Ccircle cx='40' cy='40' r='10'/%3E%3Cpath d='M40 20 Q50 30 40 40 Q30 50 40 60 Q50 50 40 40 Q30 30 40 20'/%3E%3C/g%3E%3C/svg%3E");
        background-size: 80px 80px;
        pointer-events: none;
        z-index: 0;
        opacity: 1;
    }

    .hero-v5 .container-v5,
    .hero-v5 .kinetic-title-wrap,
    .hero-v5 .hero-search-wrap {
        position: relative;
        z-index: 1;
    }

    /* 2. HERO SKELETON LOADER */
    .hero-v5 .kinetic-letter {
        animation: skeletonPulse 1.5s ease-in-out infinite;
        animation-delay: calc(var(--letter-index, 0) * 0.1s);
    }

    .hero-v5.loaded .kinetic-letter {
        animation: none;
        opacity: 1;
        transform: translateY(0);
    }

    @keyframes skeletonPulse {

        0%,
        100% {
            opacity: 0.3;
        }

        50% {
            opacity: 0.6;
        }
    }

    /* 3. FIX MISSION & EXPERTS VISIBILITY - Bright gold outline with glow on dark backgrounds */
    .manifesto-v5 .text-outline {
        -webkit-text-stroke: 2px #d4af37 !important;
        /* Brighter Gold */
        color: transparent !important;
        text-shadow: 0 0 20px rgba(212, 175, 55, 0.4), 0 0 40px rgba(212, 175, 55, 0.2) !important;
        display: inline-block;
    }

    .manifesto-v5 h2,
    .manifesto-v5 h3 {
        color: #ffffff !important;
        /* Ensure base text is pure white */
    }

    /* 4. SMOOTHER MARQUEE ANIMATION */
    .marquee-track {
        animation-timing-function: linear !important;
        will-change: transform;
    }

    .marquee-track a,
    .marquee-track span {
        transition: color 0.3s ease, transform 0.3s ease !important;
    }

    /* 5. REDUCE EXCESSIVE SECTION SPACING */
    .hero-v5 {
        padding-bottom: 2rem !important;
        min-height: 85vh !important;
        height: auto !important;
    }

    .trust-strip {
        padding: 2rem 0 !important;
    }

    .manifesto-v5 {
        padding: 5rem 0 !important;
    }

    .nexus-v5 {
        padding: 4rem 0 !important;
    }

    .editorial-v5 {
        padding: 4rem 0 !important;
    }

    .categories-v5 {
        padding: 4rem 0 !important;
    }

    /* Ensure all section gaps are consistent */
    section+section {
        margin-top: 0 !important;
    }



    /* Redundant blocks removed and consolidated into Section 3 above */


    /* PREVENT HEADER CLS - Reserve space for icons before they load */
    .site-header i[class*='fa-'],
    .main-navigation i[class*='fa-'],
    .search-btn i,
    .mobile-toggle i,
    header i[class*='fa-'] {
        min-width: 1em;
        min-height: 1em;
        display: inline-block;
    }

    /* Stabilize header during load */
    .site-header,
    header.entry-header,
    .main-navigation {
        min-height: 60px;
    }

    /* Prevent icon flash */
    .fa-solid,
    .fa-brands,
    .fa-regular {
        font-display: block;
    }}

/* GLOBAL FIX - MISSION & EXPERTS TEXT VISIBILITY */
.manifesto-v5 .text-outline {
    -webkit-text-stroke: 2px #d4af37 !important;
    color: transparent !important;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.3) !important;
}

.manifesto-v5 .manifesto-title .text-outline,
.manifesto-v5 .manifesto-item h3 .text-outline {
    -webkit-text-stroke: 2px #d4af37 !important;
    color: transparent !important;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.5), 0 0 60px rgba(212, 175, 55, 0.3) !important;
}


/* Make OUR text white on dark background */
.manifesto-v5 .text-white {
    color: #ffffff !important;
}


/* SMOOTHER & FASTER MARQUEE */
.marquee-track {
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-perspective: 1000px;
    perspective: 1000px;
}

.marquee-wrap {
    overflow: hidden;
    -webkit-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}


/* PAUSE MARQUEE ON HOVER */
.marquee-wrap:hover .marquee-track {
    animation-play-state: paused !important;
}


/* HIDE KADENCE FOOTER ATTRIBUTION */
.site-info,
.site-footer-bottom-wrap .site-footer-wrap,
.footer-html,
a[href*="developer.wordpress.org"],
a[href*="developer.wordpress"],
.site-footer-bottom-wrap a[href*="developer"] {
    display: none !important;
}

/* Also hide any Powered by text */
.powered-by-developer,
.developer-credit {
    display: none !important;
}

/* FIX LANGUAGE BUTTON WIDTH SHIFT */
.language-btn,
[class*="language"] button,
.lang-switcher-btn {
    min-width: 140px !important;
    text-align: center !important;
}

/* FIX BUTTON ACCESSIBILITY - Visual indicator for icon buttons */
.search-btn,
button[type="submit"]:not([aria-label]) {
    position: relative;
}


/* FIX LANGUAGE BUTTON GREETING SHIFT */
.greeting-cycle {
    display: inline-block;
    min-width: 70px;
    text-align: left;
}

.lang-count {
    white-space: nowrap;
}

/* Language button container stability */
.lang-btn-wrap,
.language-selector {
    min-width: 160px;
}


/* ===== MOBILE HERO FIX - NO FLICKERING ===== */
@media (max-width: 768px) {
    /* Remove skeleton pulse animation on mobile - no flickering */
    .hero-v5 .kinetic-letter {
        animation: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        will-change: auto;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    .hero-v5.loaded .kinetic-letter {
        animation: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    /* Ensure kinetic letters display properly without animation */
    .kinetic-letter {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Disable hover effects on mobile */
    .kinetic-letter:hover {
        transform: none !important;
        color: var(--premium-charcoal) !important;
    }
}

/* ===== MOBILE COMPREHENSIVE FIXES ===== */
@media (max-width: 768px) {
    
    /* 1. STAT BADGE - More space from TURKPIDYA */
    .stat-badge {
        margin-top: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* 2. REDUCE EMPTY SPACE - Hero to Trusted By */
    .hero-v5 {
        padding-bottom: 40px !important;
    }
    
    .trust-strip {
        padding-top: 20px !important;
        padding-bottom: 30px !important;
    }
    
    .quick-tags {
        margin-top: 1rem !important;
        margin-bottom: 0 !important;
    }
    
    /* 3. EXPLORE TOPICS - Smaller font on mobile */
    .marquee-track span,
    .marquee-track a {
        font-size: 1.8rem !important;
    }
    
    .marquee-wrap {
        transform: rotate(-2deg) scale(1.05) !important;
    }
    
    .marquee-track {
        gap: 2rem !important;
    }
    
    /* 4. CARDS - Show full text on mobile */
    .acc-card .acc-desc {
        display: block !important;
        opacity: 1 !important;
        max-height: none !important;
        overflow: visible !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
    }
    
    .acc-card .acc-title,
    .acc-card h3 {
        font-size: 1.1rem !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .acc-card .acc-cat {
        font-size: 0.7rem !important;
    }
    
    .acc-card .acc-content {
        writing-mode: horizontal-tb !important;
        transform: none !important;
    }
    
    /* Category cards text visibility */
    .category-card .category-desc,
    .category-card .category-title {
        display: block !important;
        opacity: 1 !important;
        white-space: normal !important;
        overflow: visible !important;
    }
    
    .category-card .category-title {
        font-size: 1.2rem !important;
    }
    
    .category-card .category-desc {
        font-size: 0.85rem !important;
        -webkit-line-clamp: 4 !important;
        line-clamp: 4 !important;
    }
}

/* Even smaller screens */
@media (max-width: 480px) {
    .marquee-track span,
    .marquee-track a {
        font-size: 1.4rem !important;
    }
    
    .marquee-track {
        gap: 1.5rem !important;
    }
    
    .stat-badge {
        margin-top: 2rem !important;
        font-size: 0.6rem !important;
    }
    
    .acc-card .acc-title,
    .acc-card h3 {
        font-size: 1rem !important;
    }
}

/* ===== STRONGER MOBILE FIXES v2 ===== */
@media (max-width: 768px) {
    
    /* MARQUEE - Much smaller and fits screen */
    .knowledge-nexus-v5 .marquee-track span,
    .knowledge-nexus-v5 .marquee-track a,
    .marquee-track span,
    .marquee-track a {
        font-size: 1.5rem !important;
        -webkit-text-stroke: 1px rgba(0, 0, 0, 0.25) !important;
    }
    
    .knowledge-nexus-v5,
    section.knowledge-nexus-v5 {
        padding: 3rem 0 !important;
        overflow: hidden !important;
    }
    
    .marquee-wrap {
        transform: rotate(-1deg) scale(1) !important;
        overflow: hidden !important;
    }
    
    .marquee-track {
        gap: 1.5rem !important;
        animation-duration: 40s !important;
    }
    
    /* CATEGORY CARDS - Force mobile grid */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }
    
    .cat-grid-card {
        height: 180px !important;
    }
    
    .cat-grid-card h4 {
        font-size: 1.1rem !important;
    }
    
    .cat-grid-card span {
        font-size: 0.65rem !important;
    }
    
    .cat-grid-content {
        padding: 1rem !important;
    }
    
    /* FEATURED CARDS - Stack and smaller */
    .categories-featured {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .cat-featured-card {
        height: 280px !important;
        width: 100% !important;
    }
    
    .cat-featured-card h3 {
        font-size: 1.6rem !important;
    }
    
    .cat-featured-card p {
        font-size: 0.85rem !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }
    
    .cat-featured-content {
        padding: 1.5rem !important;
    }
    
    .cat-label {
        font-size: 0.65rem !important;
        padding: 0.3rem 0.8rem !important;
    }
}

@media (max-width: 480px) {
    /* Even smaller screens */
    .marquee-track span,
    .marquee-track a {
        font-size: 1.2rem !important;
    }
    
    .marquee-track {
        gap: 1rem !important;
    }
    
    .cat-grid-card {
        height: 150px !important;
    }
    
    .cat-grid-card h4 {
        font-size: 0.95rem !important;
    }
    
    .cat-featured-card {
        height: 240px !important;
    }
    
    .cat-featured-card h3 {
        font-size: 1.4rem !important;
    }
}

/* ===== FORCE CARD TEXT VISIBLE ON MOBILE ===== */
@media (max-width: 768px) {
    
    /* Grid cards - force text visible */
    .cat-grid-card .cat-grid-content,
    .cat-grid-card .cat-grid-content * {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
    }
    
    .cat-grid-card .cat-grid-content h4 {
        font-size: 1rem !important;
        line-height: 1.2 !important;
        margin: 0 0 0.25rem 0 !important;
        color: #ffffff !important;
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
    }
    
    .cat-grid-card .cat-grid-content span {
        font-size: 0.6rem !important;
        display: block !important;
        color: #c9a227 !important;
        white-space: normal !important;
    }
    
    .cat-grid-content {
        padding: 0.8rem !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        position: absolute !important;
        z-index: 5 !important;
    }
    
    /* Featured cards - force text visible */
    .cat-featured-card .cat-featured-content,
    .cat-featured-card .cat-featured-content * {
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    .cat-featured-card .cat-featured-content h3 {
        font-size: 1.5rem !important;
        line-height: 1.2 !important;
        margin: 0 0 0.4rem 0 !important;
        color: #ffffff !important;
    }
    
    .cat-featured-card .cat-featured-content p {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
        color: rgba(255,255,255,0.85) !important;
        margin: 0 0 0.8rem 0 !important;
        display: block !important;
    }
    
    .cat-featured-content {
        padding: 1.2rem !important;
        z-index: 5 !important;
    }
    
    .cat-featured-card .cat-label {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.6rem !important;
        margin-bottom: 0.6rem !important;
    }
    
    .cat-featured-card .cat-link {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .cat-grid-card .cat-grid-content h4 {
        font-size: 0.85rem !important;
    }
    
    .cat-grid-card .cat-grid-content span {
        font-size: 0.55rem !important;
    }
    
    .cat-featured-card .cat-featured-content h3 {
        font-size: 1.3rem !important;
    }
    
    .cat-featured-card .cat-featured-content p {
        font-size: 0.75rem !important;
    }
}

/* ===== FIX GRID CARDS (Culture, History, etc.) ===== */
@media (max-width: 768px) {
    
    /* Make grid cards taller so text fits */
    .categories-grid .cat-grid-card,
    a.cat-grid-card {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    /* Ensure content is at bottom and visible */
    .cat-grid-card > .cat-grid-content,
    a.cat-grid-card > div.cat-grid-content {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        padding: 1rem !important;
        z-index: 10 !important;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 70%, transparent 100%) !important;
    }
    
    /* Force h4 visible */
    .cat-grid-card h4,
    a.cat-grid-card h4,
    .cat-grid-content h4 {
        font-size: 1.1rem !important;
        font-weight: 800 !important;
        color: #ffffff !important;
        margin: 0 0 0.3rem 0 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Force span visible */
    .cat-grid-card span,
    a.cat-grid-card span,
    .cat-grid-content span {
        font-size: 0.65rem !important;
        color: #c9a227 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        text-transform: uppercase !important;
    }
}

@media (max-width: 480px) {
    /* Single column on very small phones */
    .categories-grid {
        grid-template-columns: 1fr !important;
    }
    
    .categories-grid .cat-grid-card,
    a.cat-grid-card {
        height: 180px !important;
    }
    
    .cat-grid-card h4,
    .cat-grid-content h4 {
        font-size: 1.2rem !important;
    }
    
    .cat-grid-card span,
    .cat-grid-content span {
        font-size: 0.7rem !important;
    }
}

/* ===== SHOW FULL TEXT - NO TRUNCATION ===== */
@media (max-width: 768px) {
    
    /* Remove all text truncation */
    .cat-grid-card h4,
    .cat-grid-card span,
    .cat-grid-content h4,
    .cat-grid-content span,
    .cat-featured-card h3,
    .cat-featured-card p,
    .cat-featured-content h3,
    .cat-featured-content p {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: unset !important;
        -webkit-line-clamp: unset !important;
        line-clamp: unset !important;
        display: block !important;
        max-height: none !important;
    }
    
    /* Remove overflow hidden from cards */
    .cat-grid-card,
    .cat-featured-card {
        overflow: visible !important;
    }
    
    /* Give content more room */
    .cat-grid-content {
        padding: 1.2rem !important;
        overflow: visible !important;
    }
    
    .cat-featured-content {
        padding: 1.5rem !important;
        overflow: visible !important;
    }
}

/* ===== GRID CARDS SINGLE COLUMN ON MOBILE ===== */
@media (max-width: 768px) {
    
    /* Force single column for all 5 grid cards */
    .categories-grid {
        grid-template-columns: 1fr !important;
        display: grid !important;
        gap: 1rem !important;
    }
    
    /* Make each card full width and good height */
    .categories-grid .cat-grid-card,
    .categories-grid a.cat-grid-card {
        width: 100% !important;
        height: 160px !important;
        min-height: 160px !important;
    }
    
    /* Text now has room */
    .cat-grid-content h4 {
        font-size: 1.4rem !important;
    }
    
    .cat-grid-content span {
        font-size: 0.75rem !important;
    }
}

/* ===== 5 GRID CARDS - SINGLE COLUMN STACK ===== */
@media (max-width: 768px) {
    
    .categories-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .categories-grid .cat-grid-card {
        width: 100% !important;
        height: 140px !important;
    }
    
    .cat-grid-content {
        text-align: left !important;
        padding: 1.2rem !important;
    }
    
    .cat-grid-content h4 {
        font-size: 1.5rem !important;
    }
    
    .cat-grid-content span {
        font-size: 0.8rem !important;
    }
}

/* ===== CATEGORIES GRID - DESKTOP & MOBILE ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .categories-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .categories-grid .cat-grid-card {
        width: 100% !important;
        height: 150px !important;
    }
}

/* ===== FINAL OVERRIDE - MOBILE GRID SINGLE COLUMN ===== */
@media screen and (max-width: 768px) {
    .categories-v6 .categories-grid,
    .premium-v5 .categories-grid,
    div.categories-grid,
    .categories-grid {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
    }
    
    .categories-grid > a,
    .categories-grid > .cat-grid-card,
    .categories-grid a.cat-grid-card,
    a.cat-grid-card {
        width: 100% !important;
        flex: 0 0 100% !important;
        height: 150px !important;
    }
}

/* ===== FEATURED CARDS MATCH GRID CARDS ON MOBILE ===== */
@media (max-width: 768px) {
    /* Center text like grid cards */
    .cat-featured-card .cat-featured-content {
        text-align: center !important;
        padding: 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        height: 100% !important;
        bottom: 0 !important;
        top: 0 !important;
    }
    
    /* Hide description and explore link on mobile */
    .cat-featured-card p,
    .cat-featured-card .cat-link {
        display: none !important;
    }
    
    /* Make label smaller like grid cards */
    .cat-featured-card .cat-label {
        font-size: 0.6rem !important;
        padding: 0.2rem 0.6rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    /* Title size like grid cards */
    .cat-featured-card h3 {
        font-size: 1.4rem !important;
        margin: 0 !important;
    }
    
    /* Same height as grid cards */
    .cat-featured-card {
        height: 150px !important;
    }
}

/* ===== FEATURED CARDS - FLIP LABEL AND TITLE ORDER ON MOBILE ===== */
@media (max-width: 768px) {
    .cat-featured-card .cat-featured-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Title first */
    .cat-featured-card h3 {
        order: 1 !important;
        font-size: 1.4rem !important;
        margin: 0 0 0.3rem 0 !important;
    }
    
    /* Label second (like subtitle) */
    .cat-featured-card .cat-label {
        order: 2 !important;
        background: transparent !important;
        color: #c9a227 !important;
        padding: 0 !important;
        font-size: 0.65rem !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }
}

/* ===== RTL LANGUAGE FIXES (Arabic, Hebrew, Persian) ===== */
[dir="rtl"] .manifesto-v5,
.rtl .manifesto-v5,
.lang-ar .manifesto-v5,
.lang-he .manifesto-v5,
.lang-fa .manifesto-v5 {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .manifesto-item h3,
.rtl .manifesto-item h3,
.lang-ar .manifesto-item h3,
.lang-he .manifesto-item h3,
.lang-fa .manifesto-item h3 {
    font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Segoe UI", Tahoma, sans-serif;
    font-size: 1.8rem;
    line-height: 1.4;
    letter-spacing: 0;
    word-spacing: 0.05em;
}

[dir="rtl"] .manifesto-label,
.rtl .manifesto-label,
.lang-ar .manifesto-label,
.lang-he .manifesto-label,
.lang-fa .manifesto-label {
    font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Segoe UI", Tahoma, sans-serif;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
}

[dir="rtl"] .manifesto-item p,
.rtl .manifesto-item p,
.lang-ar .manifesto-item p,
.lang-he .manifesto-item p,
.lang-fa .manifesto-item p {
    font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Segoe UI", Tahoma, sans-serif;
    line-height: 1.9;
    font-style: normal;
}

[dir="rtl"] .m-num,
.rtl .m-num,
.lang-ar .m-num,
.lang-he .m-num,
.lang-fa .m-num {
    text-align: right;
}

/* RTL fixes for hero section */
[dir="rtl"] .hero-search-wrap,
.rtl .hero-search-wrap,
.lang-ar .hero-search-wrap,
.lang-he .hero-search-wrap,
.lang-fa .hero-search-wrap {
    direction: rtl;
}

[dir="rtl"] .search-box input,
.rtl .search-box input,
.lang-ar .search-box input,
.lang-he .search-box input,
.lang-fa .search-box input {
    text-align: right;
    direction: rtl;
}

/* RTL fixes for nexus/explore section */
[dir="rtl"] .nexus-head,
.rtl .nexus-head,
.lang-ar .nexus-head,
.lang-he .nexus-head,
.lang-fa .nexus-head {
    direction: rtl;
    text-align: center;
}

/* RTL fixes for categories */
[dir="rtl"] .section-head,
.rtl .section-head,
.lang-ar .section-head,
.lang-he .section-head,
.lang-fa .section-head {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .cat-featured-content,
.rtl .cat-featured-content,
.lang-ar .cat-featured-content,
.lang-he .cat-featured-content,
.lang-fa .cat-featured-content {
    text-align: right;
}

/* Arabic specific - larger font for better readability */
.lang-ar .manifesto-item h3 {
    font-size: 1.6rem;
}

/* Hebrew specific */
.lang-he .manifesto-item h3 {
    font-size: 1.7rem;
}

/* Persian specific */
.lang-fa .manifesto-item h3 {
    font-size: 1.6rem;
    font-family: "Vazirmatn", "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif;
}

/* ===== RTL MARQUEE FIXES (Arabic, Hebrew, Persian) ===== */
[dir="rtl"] .marquee-wrap,
.rtl .marquee-wrap,
.lang-ar .marquee-wrap,
.lang-he .marquee-wrap,
.lang-fa .marquee-wrap {
    direction: ltr; /* Keep marquee moving left-to-right */
}

[dir="rtl"] .marquee-track,
.rtl .marquee-track,
.lang-ar .marquee-track,
.lang-he .marquee-track,
.lang-fa .marquee-track {
    gap: 2.5rem; /* Reduce gap for RTL languages */
    animation-duration: 45s !important; /* Slower speed */
}

[dir="rtl"] .marquee-track a,
.rtl .marquee-track a,
.lang-ar .marquee-track a,
.lang-he .marquee-track a,
.lang-fa .marquee-track a {
    font-family: "Noto Sans Arabic", "Noto Sans Hebrew", "Vazirmatn", sans-serif;
    font-size: 3.5rem;
    direction: rtl;
    unicode-bidi: bidi-override;
    padding: 0 1rem;
}

/* Slow down all marquee tracks for RTL */
.lang-ar .m-ancient,
.lang-ar .m-modern,
.lang-ar .m-cultural,
.lang-ar .m-places,
.lang-he .m-ancient,
.lang-he .m-modern,
.lang-he .m-cultural,
.lang-he .m-places,
.lang-fa .m-ancient,
.lang-fa .m-modern,
.lang-fa .m-cultural,
.lang-fa .m-places {
    animation-duration: 50s !important;
}

/* ===== FIX: Keep TURKPIDYA logo LTR on RTL pages ===== */
[dir="rtl"] .kinetic-title,
.rtl .kinetic-title,
.lang-ar .kinetic-title,
.lang-he .kinetic-title,
.lang-fa .kinetic-title {
    direction: ltr !important;
    unicode-bidi: bidi-override !important;
}

[dir="rtl"] .kinetic-letter,
.rtl .kinetic-letter,
.lang-ar .kinetic-letter,
.lang-he .kinetic-letter,
.lang-fa .kinetic-letter {
    direction: ltr !important;
}
