﻿/* Header and editorial news slider transferred from the Yemen Scholars theme. */
/* ==========================================================================
   HERO — resources/views/frontEnd/layouts/slider.blade.php
   Not inside .landing-block (it's a layout partial), so it's its own
   self-contained cinematic treatment: slow background pan, glowing brand
   orbs, a rotating hexagon watermark (echoes the MEU logo mark), a staged
   text reveal with a drawn accent underline, a pulsing CTA and a scroll cue.
   ========================================================================== */
#hero {
    position: relative;
    background: #0b1420;
}

/* slow cinematic pan instead of a static photo */
#hero .carousel-inner .carousel-item.active {
    animation: heroPan 16s ease-in-out infinite alternate;
}

@keyframes heroPan {
    0% {
        background-position: 50% 30%;
    }
    100% {
        background-position: 50% 58%;
    }
}

/* richer, on-brand scrim on top of the dashboard-controlled overlay color */
#hero .carousel-item::before {
    background-image: linear-gradient(135deg, rgba(6, 14, 24, .82) 0%, rgba(6, 14, 24, .48) 45%, rgba(30, 22, 6, .35) 100%);
}

/* moving accent sheen sweeping across the hero */
#hero .carousel-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image: linear-gradient(115deg, transparent 0%, rgba(47, 127, 214, .16) 45%, transparent 65%);
    background-size: 250% 250%;
    animation: heroSheen 9s ease-in-out infinite;
}

@keyframes heroSheen {
    0%, 100% {
        background-position: 130% -20%;
    }
    50% {
        background-position: -20% 60%;
    }
}

#hero .carousel-container {
    z-index: 2;
}

/* floating brand glows + rotating hexagon watermark */
.hero-fx {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.hero-fx-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    animation: heroOrbFloat 16s ease-in-out infinite;
}

.hero-fx-orb-1 {
    width: 380px;
    height: 380px;
    top: -120px;
    inset-inline-start: -100px;
    background: radial-gradient(circle, var(--meu-accent) 0%, transparent 70%);
    opacity: .35;
}

.hero-fx-orb-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    inset-inline-end: 6%;
    background: radial-gradient(circle, #ffffff 0%, transparent 70%);
    opacity: .10;
    animation-duration: 22s;
    animation-delay: -6s;
}

.hero-fx-orb-3 {
    width: 200px;
    height: 200px;
    top: 18%;
    inset-inline-end: -60px;
    background: radial-gradient(circle, var(--meu-accent) 0%, transparent 70%);
    opacity: .22;
    animation-duration: 13s;
    animation-delay: -9s;
}

@keyframes heroOrbFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(24px, -28px) scale(1.08);
    }
}

.hero-fx-hex {
    position: absolute;
    width: 520px;
    height: 600px;
    bottom: -220px;
    inset-inline-end: -140px;
    opacity: .05;
    background: #fff;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    animation: heroHexSpin 90s linear infinite;
}

@keyframes heroHexSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* staged text reveal */
#hero .slider-title {
    display: inline-block;
    font-size: clamp(2.2rem, 5vw, 3.75rem) !important;
    line-height: 1.18 !important;
    text-shadow: 0 10px 30px rgba(0, 0, 0, .45);
    animation: heroTitleReveal 1s cubic-bezier(.22, .8, .3, 1) both !important;
}

#hero .slider-title::after {
    content: "";
    display: block;
    height: 4px;
    width: 0;
    margin-top: 16px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--meu-accent), rgba(47, 127, 214, 0));
    animation: heroDraw 1s ease-out .9s both;
}

[dir="rtl"] #hero .slider-title::after {
    background: linear-gradient(-90deg, var(--meu-accent), rgba(47, 127, 214, 0));
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(38px) scale(.97);
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes heroDraw {
    to {
        width: 92px;
    }
}

#hero .slider-details {
    font-size: 1.15rem !important;
    line-height: 1.85 !important;
    opacity: .92;
    text-shadow: 0 4px 18px rgba(0, 0, 0, .35);
    animation: heroFadeUp .9s ease-out .45s both !important;
}

@keyframes heroFadeUp {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

#hero .slider-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    border-radius: 999px !important;
    padding: 14px 38px !important;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: none !important;
    transition: transform .3s ease;
    animation: heroPop .8s ease-out .65s both, heroGlow 2.6s ease-in-out 2.2s infinite;
}

#hero .slider-link:hover {
    transform: translateY(-4px);
}

@keyframes heroPop {
    0% {
        opacity: 0;
        transform: translateY(16px) scale(.9);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes heroGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(47, 127, 214, .45);
    }
    50% {
        box-shadow: 0 0 28px 6px rgba(47, 127, 214, .55);
    }
}

/* scroll cue */
.hero-scroll-cue {
    position: absolute;
    bottom: 28px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, .55);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    animation: heroCueFade 2.4s ease-in-out infinite;
}

.hero-scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 2px;
    background: var(--meu-accent);
    animation: heroCueDot 1.8s ease-in-out infinite;
}

@keyframes heroCueDot {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    70% {
        transform: translateY(14px);
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

@keyframes heroCueFade {
    0%, 100% {
        opacity: .5;
    }
    50% {
        opacity: 1;
    }
}

/* elegant custom indicators + glass arrow controls (covers li or button markup) */
#hero .carousel-indicators {
    z-index: 4;
    bottom: 26px;
    gap: 8px;
}

#hero .carousel-indicators li,
#hero .carousel-indicators button {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .45) !important;
    border: 0 !important;
    opacity: 1 !important;
    margin: 0 !important;
    transition: all .3s ease;
}

#hero .carousel-indicators li.active,
#hero .carousel-indicators button.active {
    background: var(--meu-accent) !important;
    width: 28px !important;
    border-radius: 6px !important;
}

#hero .carousel-control-prev,
#hero .carousel-control-next {
    z-index: 4;
}

#hero .carousel-control-prev-icon,
#hero .carousel-control-next-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px !important;
    color: #fff;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12) !important;
    border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
    transition: background .3s ease, transform .3s ease;
}

#hero .carousel-control-prev:hover .carousel-control-prev-icon,
#hero .carousel-control-next:hover .carousel-control-next-icon {
    background: var(--meu-accent) !important;
    border-color: var(--meu-accent);
    transform: scale(1.08);
}


@media (prefers-reduced-motion: reduce) {
    #hero .carousel-inner .carousel-item.active,
    #hero .carousel-item::after,
    .hero-fx-orb,
    .hero-fx-hex,
    #hero .slider-title,
    #hero .slider-title::after,
    #hero .slider-details,
    #hero .slider-link,
    .hero-scroll-cue,
    .hero-scroll-cue span,
    .breadcrumbs h1,
    .breadcrumbs ol {
        animation: none !important;
    }
}

/* ---- Cinematic hero composition v3 ---- */
#hero.meu-hero {
    height: 89vh;
    /* min-height: 650px; */
    padding: 0 !important;
    overflow: hidden;
    background: var(--meu-navy-ink, #0a1d36);
}

#hero.meu-hero .hero-container,
#hero.meu-hero .hero-slider,
#hero.meu-hero #heroCarousel,
#hero.meu-hero .carousel-inner,
#hero.meu-hero .carousel-item {
    height: 100%;
}

#hero.meu-hero .carousel-item {
    background-position: center center;
    background-size: cover;
}

#hero.meu-hero .carousel-item::before {
    inset: 0;
    z-index: 0;
    background-color: rgba(5, 15, 28, .1) !important;
    background-image:
        linear-gradient(90deg, rgba(5, 15, 28, .18) 0%, rgba(5, 15, 28, .38) 52%, rgba(5, 15, 28, .68) 100%),
        linear-gradient(180deg, rgba(5, 15, 28, .06), rgba(5, 15, 28, .28));
}

[dir="ltr"] #hero.meu-hero .carousel-item::before {
    background-image:
        linear-gradient(270deg, rgba(5, 15, 28, .18) 0%, rgba(5, 15, 28, .38) 52%, rgba(5, 15, 28, .68) 100%),
        linear-gradient(180deg, rgba(5, 15, 28, .06), rgba(5, 15, 28, .28));
}

#hero.meu-hero .carousel-item::after {
    background-image:
        radial-gradient(circle at 76% 44%, rgba(47, 127, 214, .18), transparent 32%),
        linear-gradient(112deg, transparent 25%, rgba(106, 180, 239, .1) 48%, transparent 66%);
    background-size: 100% 100%, 240% 240%;
}

#hero.meu-hero .hero-fx-grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 42%, #000 100%);
    mask-image: linear-gradient(90deg, transparent, #000 42%, #000 100%);
}

[dir="ltr"] #hero.meu-hero .hero-fx-grid {
    -webkit-mask-image: linear-gradient(270deg, transparent, #000 42%, #000 100%);
    mask-image: linear-gradient(270deg, transparent, #000 42%, #000 100%);
}

#hero.meu-hero .hero-fx-scan {
    position: absolute;
    top: 0;
    bottom: 0;
    left: -12%;
    width: 1px;
    background: linear-gradient(180deg, transparent 8%, rgba(106, 180, 239, .75) 48%, transparent 92%);
    box-shadow: 0 0 28px 4px rgba(47, 127, 214, .24);
    opacity: 0;
    animation: heroScan 9s ease-in-out infinite;
}

#hero.meu-hero .hero-fx-wordmark {
    position: absolute;
    inset-inline-end: -1.5vw;
    bottom: -4vh;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, .09);
    font-size: clamp(150px, 24vw, 380px);
    font-weight: 900;
    line-height: .8;
    letter-spacing: -.08em;
    opacity: .58;
    animation: heroWordmarkBreath 7s ease-in-out infinite;
}

#hero.meu-hero .hero-fx-hex {
    width: 420px;
    height: 480px;
    inset-inline-start: -160px;
    inset-inline-end: auto;
    bottom: -210px;
    opacity: .055;
}

#hero.meu-hero .carousel-container {
    z-index: 3;
}

#hero.meu-hero .carousel-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding-inline: clamp(64px, 8vw, 128px) !important;
    text-align: start !important;
}

#hero.meu-hero .slider-content {
    position: relative;
    width: min(720px, 68%);
    padding: 38px 36px 38px 0;
    border-inline-start: 1px solid rgba(255, 255, 255, .2);
}

[dir="rtl"] #hero.meu-hero .slider-content {
    padding: 38px 36px 38px 0;
}

[dir="ltr"] #hero.meu-hero .slider-content {
    padding: 38px 0 38px 36px;
}

#hero.meu-hero .slider-content::before {
    /* content: ""; */
    position: absolute;
    z-index: -1;
    inset: -90px -120px;
    background: radial-gradient(ellipse at center, rgba(5, 15, 28, .46), transparent 68%);
    pointer-events: none;
}

#hero.meu-hero .hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 22px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

#hero.meu-hero .hero-slide-meta-mark {
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--meu-accent-light, #6ab4ef);
    box-shadow: 0 0 14px rgba(106, 180, 239, .65);
}

#hero.meu-hero .hero-slide-count {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    margin-inline-start: auto;
    color: #fff;
    font-size: 18px;
    letter-spacing: .03em;
}

#hero.meu-hero .hero-slide-count small {
    color: rgba(255, 255, 255, .38);
    font-size: 11px;
}

#hero.meu-hero .slider-title {
    display: block;
    max-width: 12ch;
    margin: 0 0 24px;
    color: #fff;
    font-size: clamp(3rem, 6.2vw, 5.8rem) !important;
    font-weight: 850 !important;
    line-height: 1.05 !important;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 16px 45px rgba(0, 0, 0, .42);
}

#hero.meu-hero .slider-title::after {
    height: 5px;
    margin-top: 20px;
    background: linear-gradient(90deg, var(--meu-accent-light), var(--meu-accent), transparent);
}

[dir="rtl"] #hero.meu-hero .slider-title::after {
    background: linear-gradient(-90deg, var(--meu-accent-light), var(--meu-accent), transparent);
}

#hero.meu-hero .slider-details {
    width: 100%;
    max-width: 62ch;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.35vw, 1.16rem) !important;
    line-height: 1.95 !important;
    text-shadow: 0 5px 20px rgba(0, 0, 0, .42);
}

#hero.meu-hero .slider-link {
    isolation: isolate;
    gap: 13px;
    min-height: 54px;
    padding: 14px 27px !important;
    overflow: hidden;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .2) !important;
    border-radius: 15px !important;
    background: linear-gradient(135deg, var(--meu-accent-dark), var(--meu-accent)) !important;
    box-shadow: 0 18px 40px -18px rgba(47, 127, 214, .75) !important;
}

#hero.meu-hero .slider-link::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(135deg, var(--meu-navy), var(--meu-accent-dark));
    opacity: 0;
    transition: opacity .35s ease;
}

#hero.meu-hero .slider-link:hover::before {
    opacity: 1;
}

#hero.meu-hero .slider-link i {
    font-size: 18px;
    transition: transform .3s ease;
}

#hero.meu-hero .slider-link:hover i {
    transform: translateX(-5px);
}

[dir="ltr"] #hero.meu-hero .slider-link i {
    transform: scaleX(-1);
}

[dir="ltr"] #hero.meu-hero .slider-link:hover i {
    transform: scaleX(-1) translateX(-5px);
}

#hero.meu-hero .hero-slide-progress {
    width: min(360px, 75%);
    height: 2px;
    margin-top: 38px;
    overflow: hidden;
    background: rgba(255, 255, 255, .16);
}

#hero.meu-hero .hero-slide-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--meu-accent-light), var(--meu-accent));
    box-shadow: 0 0 14px rgba(106, 180, 239, .65);
}

#hero.meu-hero .carousel-item.active .hero-slide-progress span {
    animation: heroProgress 5s linear both;
}

#hero.meu-hero .carousel-item:not(.active) .hero-slide-meta,
#hero.meu-hero .carousel-item:not(.active) .slider-title,
#hero.meu-hero .carousel-item:not(.active) .slider-title::after,
#hero.meu-hero .carousel-item:not(.active) .slider-details,
#hero.meu-hero .carousel-item:not(.active) .slider-link {
    opacity: 0;
    animation: none !important;
}

#hero.meu-hero .carousel-item:not(.active) .slider-title::after {
    width: 0;
}

/* #hero.meu-hero .carousel-item.active .hero-slide-meta {
    animation: heroMetaIn .65s ease-out .12s backwards;
} */

#hero.meu-hero .carousel-item.active .slider-title {
    animation: heroTitleReveal 1s cubic-bezier(.22, .8, .3, 1) .2s backwards !important;
}

#hero.meu-hero .carousel-item.active .slider-title::after {
    animation: heroDraw 1s ease-out .9s backwards;
}

#hero.meu-hero .carousel-item.active .slider-details {
    animation: heroFadeUp .85s ease-out .48s backwards !important;
}

#hero.meu-hero .carousel-item.active .slider-link {
    animation: heroPop .75s ease-out .68s backwards !important;
}

#hero.meu-hero #heroCarousel:hover .carousel-item.active .hero-slide-progress span {
    animation-play-state: paused;
}

#hero.meu-hero .carousel-indicators {
    inset-inline-start: auto;
    inset-inline-end: clamp(64px, 8vw, 128px);
    right: auto;
    left: auto;
    width: auto;
    margin: 0;
    bottom: 38px;
}

#hero.meu-hero .hero-single-slide .carousel-indicators {
    display: none;
}

#hero.meu-hero .carousel-control-prev,
#hero.meu-hero .carousel-control-next {
    width: 7%;
    visibility: visible;
    opacity: .7;
    transition: opacity .3s ease;
}

#hero.meu-hero .carousel-control-prev:hover,
#hero.meu-hero .carousel-control-next:hover {
    opacity: 1;
}

#hero.meu-hero .carousel-control-prev-icon,
#hero.meu-hero .carousel-control-next-icon {
    width: 50px;
    height: 50px;
    font-size: 17px !important;
    border-color: rgba(255, 255, 255, .22);
    background: rgba(7, 24, 45, .46) !important;
    box-shadow: 0 12px 32px -16px rgba(0, 0, 0, .6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

#hero.meu-hero .hero-scroll-cue {
    bottom: 24px;
    opacity: .7;
}

@keyframes heroScan {
    0%, 12% { left: -12%; opacity: 0; }
    22% { opacity: .8; }
    72% { left: 112%; opacity: .5; }
    78%, 100% { left: 112%; opacity: 0; }
}

@keyframes heroWordmarkBreath {
    0%, 100% { opacity: .38; transform: translateY(0); }
    50% { opacity: .62; transform: translateY(-8px); }
}

@keyframes heroMetaIn {
    from { opacity: 0; transform: translateX(22px); }
    to { opacity: 1; transform: translateX(0); }
}

[dir="ltr"] #hero.meu-hero .carousel-item.active .hero-slide-meta {
    animation-name: heroMetaInLtr;
}

@keyframes heroMetaInLtr {
    from { opacity: 0; transform: translateX(-22px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes heroProgress {
    from { width: 0; }
    to { width: 100%; }
}

@media (max-width: 991.98px) {
    /* #hero.meu-hero {
        height: max(640px, 78svh);
        min-height: 640px;
    } */

    #hero.meu-hero .carousel-content {
        padding-inline: 62px !important;
    }

    #hero.meu-hero .slider-content {
        width: min(680px, 100%);
    }

    #hero.meu-hero .hero-fx-wordmark {
        font-size: 220px;
    }

    #hero.meu-hero .carousel-control-prev,
    #hero.meu-hero .carousel-control-next {
        width: 58px;
    }
}

@media (max-width: 575.98px) {
    #hero.meu-hero {
        height: 80vh;
    }

    #hero.meu-hero .carousel-content {
        padding-inline: 28px !important;
    }

    #hero.meu-hero .slider-content,
    [dir="rtl"] #hero.meu-hero .slider-content,
    [dir="ltr"] #hero.meu-hero .slider-content {
        width: 100%;
        padding: 26px 20px;
    }

    #hero.meu-hero .slider-title {
        max-width: 100%;
        font-size: clamp(2.35rem, 12vw, 3.5rem) !important;
    }

    #hero.meu-hero .slider-details {
        display: -webkit-box;
        overflow: hidden;
        font-size: .95rem !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
    }

    #hero.meu-hero .hero-slide-progress {
        margin-top: 28px;
    }

    #hero.meu-hero .carousel-control-prev,
    #hero.meu-hero .carousel-control-next,
    #hero.meu-hero .hero-scroll-cue,
    #hero.meu-hero .hero-fx-wordmark,
    #hero.meu-hero .hero-fx-grid {
        display: none;
    }

    #hero.meu-hero .carousel-indicators {
        inset-inline-end: 28px;
        bottom: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #hero.meu-hero .hero-fx-scan,
    #hero.meu-hero .hero-fx-wordmark,
    #hero.meu-hero .carousel-item.active .hero-slide-meta,
    #hero.meu-hero .carousel-item.active .hero-slide-progress span {
        animation: none !important;
    }

    #hero.meu-hero .carousel-item.active .hero-slide-progress span {
        width: 100%;
    }
}

/*
 * Yemen Scholars Media Platform
 * The visual system intentionally consumes the colors defined by the CMS in
 * frontEnd/layouts/colors.blade.php. No brand accent is hard-coded here.
 */

:root {
    --scholars-white: #fff;
    --scholars-ink: color-mix(in srgb, var(--brand-secondary) 88%, #111);
    --scholars-muted: color-mix(in srgb, var(--brand-secondary) 56%, #fff);
    --scholars-paper: color-mix(in srgb, var(--brand-surface) 24%, #fff);
    --scholars-soft: color-mix(in srgb, var(--brand-surface) 58%, #fff);
    --scholars-border: color-mix(in srgb, var(--brand-line) 62%, transparent);
    --scholars-shadow: 0 24px 65px -38px color-mix(in srgb, var(--brand-secondary) 42%, transparent);
    --scholars-radius: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    color: var(--scholars-ink);
    background: var(--scholars-paper);
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
    line-height: 1.75;
}

body.search-overlay-open,
body.mobile-menu-open {
    overflow: hidden;
}

h1, h2, h3, h4, h5, h6,
.navbar a,
.btn-theme {
    font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

::selection {
    color: var(--scholars-white);
    background: var(--brand-primary);
}

/* Header ------------------------------------------------------------------ */
#header.scholars-header {
    top: 0 !important;
    padding: 0;
    color: var(--scholars-ink);
    background: color-mix(in srgb, var(--scholars-white) 96%, var(--brand-surface)) !important;
    box-shadow: 0 12px 45px -34px color-mix(in srgb, var(--brand-secondary) 65%, transparent) !important;
    transition: box-shadow .3s ease, transform .3s ease;
}

#header.scholars-header.header-scrolled {
    background: color-mix(in srgb, var(--scholars-white) 97%, var(--brand-surface)) !important;
    box-shadow: 0 18px 50px -30px color-mix(in srgb, var(--brand-secondary) 75%, transparent) !important;
}

#header.scholars-header::after {
    display: none;
}

.landing-page{
    position: relative;
}

.scholars-ornament {
    position: absolute;
    height: 50px;
    width: 100%;
    overflow: hidden;
    background: var(--brand-secondary);
}

.scholars-ornament::before,
.scholars-ornament::after,
.scholars-ornament span {
    content: "";
    position: absolute;
    inset: 0;
}

.scholars-ornament::before {
    background:
        linear-gradient(135deg, transparent 37%, var(--brand-primary) 38% 62%, transparent 63%) 0 0 / 28px 14px,
        linear-gradient(45deg, transparent 37%, var(--brand-primary) 38% 62%, transparent 63%) 14px 0 / 28px 14px;
    opacity: .36;
}

.scholars-ornament::after {
    background: linear-gradient(90deg, transparent, var(--brand-line), transparent);
    opacity: .72;
}

.scholars-masthead {
    position: relative;
    min-height: 88px;
    border-bottom: 1px solid var(--scholars-border);
}

.scholars-masthead > .container {
    min-height: 88px;
}

.scholars-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 20px;
    color: var(--scholars-ink) !important;
}

.scholars-brand-logo {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
}

#header .scholars-brand-logo img {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 68px;
    object-fit: contain;
    transition: transform .3s ease;
}

.scholars-brand:hover .scholars-brand-logo img {
    transform: translateY(-2px);
}

.scholars-brand-copy {
    display: grid;
    min-width: 0;
    padding-inline-start: 20px;
    border-inline-start: 1px solid var(--scholars-border);
}

.scholars-brand-copy strong {
    color: var(--brand-secondary);
    font-size: clamp(1rem, 1.4vw, 1.32rem);
    font-weight: 800;
    line-height: 1.45;
}

.scholars-brand-copy small {
    max-width: 530px;
    margin-top: 3px;
    overflow: hidden;
    color: var(--scholars-muted);
    font-size: 12px;
    line-height: 1.5;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scholars-search-trigger {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 18px;
    color: var(--brand-secondary);
    border: 1px solid var(--scholars-border);
    border-radius: 999px;
    background: var(--scholars-white);
    box-shadow: 0 10px 28px -22px var(--brand-secondary);
    font-weight: 700;
    transition: color .25s ease, border-color .25s ease, background-color .25s ease, transform .25s ease;
}

.scholars-search-trigger:hover {
    color: var(--scholars-white);
    border-color: var(--brand-primary);
    background: var(--brand-primary);
    transform: translateY(-2px);
}

.scholars-navigation {
    min-height: 54px;
    background: var(--scholars-white);
}

.scholars-navigation > .container {
    min-height: 54px;
}

.scholars-navigation .navbar {
    width: 100%;
    padding: 0;
}

.scholars-navigation .navbar > ul {
    width: 100%;
    justify-content: flex-start;
}

.scholars-navigation .navbar > ul > li {
    padding: 0;
}

.scholars-navigation .navbar > ul > li > a {
    min-height: 54px;
    padding: 15px 14px !important;
    color: var(--brand-secondary) !important;
    font-size: 14px;
    font-weight: 700;
}

.scholars-navigation .navbar > ul > li > a::after {
    inset-inline: 14px;
    bottom: 0;
    height: 3px;
    background: var(--brand-primary);
}

.scholars-navigation .navbar > ul > li > a:hover,
.scholars-navigation .navbar > ul > li > a.active {
    color: var(--brand-primary-dark) !important;
}

.scholars-navigation .navbar .dropdown > ul {
    border: 1px solid var(--scholars-border);
    border-top: 3px solid var(--brand-primary);
    border-radius: 0 0 16px 16px;
    background: var(--scholars-white);
    box-shadow: var(--scholars-shadow);
}

.scholars-navigation .navbar .dropdown ul a:hover {
    color: var(--brand-primary-dark) !important;
    background: color-mix(in srgb, var(--brand-primary) 8%, var(--scholars-white));
    border-inline-start-color: var(--brand-primary);
}

.navbar > ul > li.nav-lang-switch {
    margin-inline-start: auto;
}

.navbar > ul > li.nav-lang-switch > a {
    color: var(--brand-primary-dark) !important;
}

main.fixed-top-margin {
    margin-top: 149px !important;
}

/* Search overlay ---------------------------------------------------------- */
.scholars-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    background:
        linear-gradient(color-mix(in srgb, var(--brand-secondary-dark) 91%, transparent), color-mix(in srgb, var(--brand-secondary) 94%, transparent));
    backdrop-filter: blur(10px);
    transition: opacity .25s ease, visibility .25s ease;
}

.scholars-search-overlay.open {
    visibility: visible;
    opacity: 1;
}

.scholars-search-overlay .header-form-search {
    display: flex;
    width: min(780px, 100%);
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--brand-line) 48%, transparent);
    border-radius: 18px;
    background: var(--scholars-white);
    box-shadow: 0 34px 90px -36px #000;
}

.scholars-search-overlay input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    color: var(--scholars-ink);
    border: 0;
    outline: 0;
    background: transparent;
    font-size: clamp(16px, 2vw, 21px);
}

.scholars-search-overlay .btn-theme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border: 0;
    border-radius: 12px;
    color: var(--scholars-white);
    background: var(--brand-primary);
    font-weight: 700;
    width: 100%;
    text-align: center;
    justify-content: center;
}

.scholars-search-close {
    position: absolute;
    top: 28px;
    inset-inline-end: 32px;
    width: 48px;
    height: 48px;
    padding: 0;
    color: var(--scholars-white);
    border: 1px solid color-mix(in srgb, var(--brand-line) 38%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 18%, transparent);
    font-size: 24px;
}

/* Hero -------------------------------------------------------------------- */
#hero.meu-hero {
    height: clamp(540px, 72vh, 760px);
    min-height: 540px;
    color: var(--scholars-white);
    background: var(--brand-secondary-dark);
}

#hero.meu-hero .carousel-item {
    background-position: center;
}

#hero.meu-hero .carousel-item::before {
    background-color: transparent !important;
    background-image:
        linear-gradient(90deg,
            color-mix(in srgb, var(--brand-secondary-dark) 35%, transparent) 0%,
            color-mix(in srgb, var(--brand-secondary-dark) 64%, transparent) 52%,
            color-mix(in srgb, var(--brand-secondary-dark) 92%, transparent) 100%) !important;
}

[dir="ltr"] #hero.meu-hero .carousel-item::before {
    background-image:
        linear-gradient(270deg,
            color-mix(in srgb, var(--brand-secondary-dark) 35%, transparent) 0%,
            color-mix(in srgb, var(--brand-secondary-dark) 64%, transparent) 52%,
            color-mix(in srgb, var(--brand-secondary-dark) 92%, transparent) 100%) !important;
}

#hero.meu-hero .carousel-item::after {
    background-image:
        radial-gradient(circle at 76% 44%, color-mix(in srgb, var(--brand-primary) 28%, transparent), transparent 34%),
        linear-gradient(112deg, transparent 28%, color-mix(in srgb, var(--brand-line) 16%, transparent) 50%, transparent 68%);
}

#hero.meu-hero .hero-fx-grid {
    opacity: .18;
    background-image:
        linear-gradient(color-mix(in srgb, var(--brand-line) 18%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--brand-line) 18%, transparent) 1px, transparent 1px);
    background-size: 64px 64px;
}

#hero.meu-hero .hero-fx-wordmark {
    inset-inline-end: -80px;
    bottom: -180px;
    width: 480px;
    height: 480px;
    border: 1px solid color-mix(in srgb, var(--brand-line) 16%, transparent);
    border-radius: 50%;
    opacity: .7;
    animation: none;
}

#hero.meu-hero .hero-fx-wordmark::before,
#hero.meu-hero .hero-fx-wordmark::after {
    content: "";
    position: absolute;
    inset: 70px;
    border: 1px solid color-mix(in srgb, var(--brand-line) 14%, transparent);
    transform: rotate(45deg);
}

#hero.meu-hero .hero-fx-wordmark::after {
    inset: 125px;
    border-color: color-mix(in srgb, var(--brand-primary) 35%, transparent);
}

#hero.meu-hero .hero-fx-scan,
#hero.meu-hero .hero-fx-orb {
    display: none;
}

#hero.meu-hero .carousel-content {
    padding-inline: clamp(24px, 7vw, 112px) !important;
}

#hero.meu-hero .slider-content {
    width: min(760px, 72%);
    padding: 34px 34px 34px 0;
    border-inline-start: 3px solid var(--brand-primary);
}

[dir="ltr"] #hero.meu-hero .slider-content {
    padding: 34px 0 34px 34px;
}

#hero.meu-hero .hero-slide-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    color: color-mix(in srgb, var(--brand-line) 72%, var(--scholars-white));
}

#hero.meu-hero .hero-slide-meta-mark {
    width: 34px;
    height: 3px;
    background: var(--brand-primary);
}

#hero.meu-hero .hero-slide-brand {
    max-width: min(460px, 64vw);
    overflow: hidden;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#hero.meu-hero .hero-slide-count {
    margin-inline-start: auto;
    font-variant-numeric: tabular-nums;
}

#hero.meu-hero .slider-title {
    max-width: 18ch;
    margin-bottom: 20px;
    color: var(--scholars-white) !important;
    font-size: clamp(2rem, 4.7vw, 4.4rem);
    font-weight: 900;
    line-height: 1.25;
    letter-spacing: -.035em;
    text-shadow: 0 4px 25px color-mix(in srgb, var(--brand-secondary-dark) 78%, transparent);
}

#hero.meu-hero .slider-title::after {
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-line), transparent);
}

#hero.meu-hero .slider-details {
    max-width: 62ch;
    color: color-mix(in srgb, var(--scholars-white) 88%, var(--brand-line));
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.9;
    text-shadow: none;
}

#hero.meu-hero .slider-link {
    color: var(--scholars-white) !important;
    border: 1px solid color-mix(in srgb, var(--brand-primary) 82%, var(--scholars-white));
    border-radius: 999px;
    background: var(--brand-primary);
    box-shadow: 0 16px 34px -22px var(--brand-primary);
}

#hero.meu-hero .slider-link:hover {
    color: var(--brand-secondary) !important;
    background: var(--scholars-white);
}

#hero.meu-hero .hero-slide-progress span,
#hero.meu-hero .carousel-indicators .active {
    background: var(--brand-primary) !important;
}

#hero.meu-hero .carousel-control-prev-icon,
#hero.meu-hero .carousel-control-next-icon {
    border-color: color-mix(in srgb, var(--brand-line) 48%, transparent);
    background-color: color-mix(in srgb, var(--brand-secondary-dark) 46%, transparent);
}

/* Editorial inner-page shell --------------------------------------------- */
/* Dark appearance keeps the same configured brand colors. ---------------- */
.dark {
    --scholars-ink: color-mix(in srgb, var(--scholars-white) 88%, var(--brand-line));
    --scholars-muted: color-mix(in srgb, var(--scholars-white) 58%, var(--brand-line));
    --scholars-paper: var(--brand-secondary-dark);
    --scholars-soft: color-mix(in srgb, var(--brand-secondary) 84%, #000);
    --scholars-border: color-mix(in srgb, var(--brand-line) 18%, transparent);
}

.dark #header.scholars-header,
.dark #header.scholars-header.header-scrolled,
.dark .scholars-navigation {
    background: color-mix(in srgb, var(--brand-secondary-dark) 94%, #000) !important;
}

.dark .scholars-brand-copy strong,
.dark .scholars-navigation .navbar > ul > li > a,
.dark .mobile-nav-toggle {
    color: var(--scholars-white) !important;
}

.dark .scholars-search-trigger,
.dark .post-card,
.dark .topic-article-card,
.dark .right-sidebar .widget,
.dark .sidebar-card,
.dark .no-data.card {
    color: var(--scholars-ink);
    background: color-mix(in srgb, var(--brand-secondary) 88%, #000) !important;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .scholars-brand-copy small {
        max-width: 360px;
    }

    .scholars-navigation .navbar > ul > li > a {
        padding-inline: 10px !important;
        font-size: 13px;
    }
}

@media (max-width: 991.98px) {
    .scholars-masthead,
    .scholars-masthead > .container {
        min-height: 76px;
    }

    #header .scholars-brand-logo img {
        max-width: 180px;
        max-height: 56px;
    }

    .scholars-brand-copy {
        display: none;
    }

    .scholars-search-trigger span {
        display: none;
    }

    .scholars-search-trigger {
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
    }

    .scholars-navigation,
    .scholars-navigation > .container {
        min-height: 48px;
    }

    .scholars-navigation .navbar {
        min-height: 48px;
    }

    .scholars-navigation .mobile-nav-toggle {
        margin-inline-start: 0;
    }

    .scholars-navigation .navbar-mobile > ul {
        inset: 14px;
        margin: 0;
        padding: 14px;
        border-radius: 18px;
        background: var(--scholars-white);
        box-shadow: 0 30px 80px -28px #000;
    }

    .scholars-navigation .navbar-mobile > ul > li > a {
        min-height: 46px;
        color: var(--brand-secondary) !important;
    }

    .navbar > ul > li.nav-lang-switch {
        margin-inline-start: 0;
    }

    main.fixed-top-margin {
        margin-top: 131px !important;
    }

    #hero.meu-hero {
        height: 620px;
        min-height: 620px;
    }

    #hero.meu-hero .slider-content {
        width: min(700px, 88%);
    }

    .right-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 767.98px) {
    .scholars-ornament {
        height: 5px;
    }

    #header .scholars-brand-logo img {
        max-width: 155px;
        max-height: 52px;
    }

    main.fixed-top-margin {
        margin-top: 129px !important;
    }

    .scholars-search-overlay .header-form-search {
        display: grid;
        gap: 8px;
    }

    .scholars-search-overlay .btn-theme {
        justify-content: center;
    }

    #hero.meu-hero {
        height: 540px;
        min-height: 540px;
    }

    #hero.meu-hero .carousel-content {
        align-items: flex-end;
        padding: 0 22px 82px !important;
    }

    #hero.meu-hero .slider-content,
    [dir="rtl"] #hero.meu-hero .slider-content,
    [dir="ltr"] #hero.meu-hero .slider-content {
        width: 100%;
        padding: 22px 20px;
        border: 0;
        border-inline-start: 3px solid var(--brand-primary);
        background: color-mix(in srgb, var(--brand-secondary-dark) 48%, transparent);
        backdrop-filter: blur(5px);
    }

    #hero.meu-hero .slider-title {
        max-width: 100%;
        font-size: clamp(1.65rem, 8vw, 2.5rem);
    }

    #hero.meu-hero .slider-details {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    #hero.meu-hero .hero-slide-count,
    #hero.meu-hero .hero-scroll-cue,
    #hero.meu-hero .hero-fx-grid {
        display: none;
    }

    .breadcrumbs,
    .meu-topic-view .topic-hero {
        min-height: auto;
        padding: 22px 0 !important;
    }

    #content,
    .meu-topic-view .topic-content-section {
        padding: 0px 0;
    }

    #footer .footer-top {
        padding: 54px 0 34px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Refined art direction: editorial cover, index menu, architectural footer. */

/* Editorial cover hero ---------------------------------------------------- */
#hero.meu-hero.scholars-editorial-hero {
    position: relative;
    height: clamp(560px, 67vw, 720px);
    min-height: 560px;
    overflow: hidden;
    color: var(--scholars-ink);
    background:
        radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--brand-line) 18%, transparent), transparent 24%),
        linear-gradient(135deg, color-mix(in srgb, var(--brand-surface) 50%, #fff), #fff 62%);
}

#hero.meu-hero.scholars-editorial-hero::before {
    content: "";
    position: absolute;
    inset: 24px clamp(18px, 3vw, 48px);
    z-index: 1;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 9%, transparent);
    border-radius: 28px;
}

#hero.meu-hero.scholars-editorial-hero .hero-container,
#hero.meu-hero.scholars-editorial-hero #heroCarousel,
#hero.meu-hero.scholars-editorial-hero .carousel-inner,
#hero.meu-hero.scholars-editorial-hero .carousel-item {
    height: 100%;
}

#hero.meu-hero.scholars-editorial-hero .carousel-item {
    isolation: isolate;
    background: transparent !important;
}

#hero.meu-hero.scholars-editorial-hero .carousel-item::before {
    display: none;
}

#hero.meu-hero.scholars-editorial-hero .carousel-item::after {
    inset: auto auto 10% 4%;
    width: 180px;
    height: 180px;
    opacity: .2;
    background:
        repeating-conic-gradient(from 22.5deg, var(--brand-primary) 0 8deg, transparent 8deg 22.5deg);
    border-radius: 50%;
    -webkit-mask: radial-gradient(circle, transparent 0 34%, #000 35% 38%, transparent 39% 51%, #000 52% 55%, transparent 56%);
    mask: radial-gradient(circle, transparent 0 34%, #000 35% 38%, transparent 39% 51%, #000 52% 55%, transparent 56%);
}

#hero.meu-hero.scholars-editorial-hero .hero-fx {
    z-index: 0;
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-grid {
    inset: 0;
    opacity: .36;
    background-image:
        linear-gradient(45deg, transparent 48%, color-mix(in srgb, var(--brand-secondary) 6%, transparent) 49% 51%, transparent 52%);
    background-size: 48px 48px;
    -webkit-mask-image: linear-gradient(90deg, #000, transparent 42%);
    mask-image: linear-gradient(90deg, #000, transparent 42%);
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-rosette {
    position: absolute;
    inset-inline-start: clamp(-120px, -7vw, -70px);
    top: 50%;
    width: 330px;
    aspect-ratio: 1;
    opacity: .08;
    border: 1px solid var(--brand-secondary);
    transform: translateY(-50%) rotate(45deg);
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-rosette::before,
#hero.meu-hero.scholars-editorial-hero .hero-fx-rosette::after {
    content: "";
    position: absolute;
    inset: 38px;
    border: inherit;
    border-radius: 50%;
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-rosette::after {
    inset: 88px;
    border-radius: 0;
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-arch {
    position: absolute;
    top: 28px;
    inset-inline-end: clamp(18px, 3vw, 48px);
    width: clamp(310px, 54vw, 790px);
    height: calc(100% - 56px);
    border: 1px solid color-mix(in srgb, var(--brand-line) 34%, transparent);
    border-radius: 240px 240px 24px 24px;
    opacity: .52;
}

#hero.meu-hero.scholars-editorial-hero .hero-image-stage {
    position: absolute;
    top: 48px;
    bottom: 48px;
    inset-inline-end: max(calc((100vw - 1320px) / 2), 36px);
    z-index: -1;
    width: min(54vw, 760px);
    overflow: hidden;
    background-position: center;
    background-size: cover;
    border-radius: 210px 210px 22px 22px;
    box-shadow: 0 35px 80px -48px color-mix(in srgb, var(--brand-secondary) 70%, transparent);
    transform: scale(1.015);
    transition: transform 7s ease;
}

#hero.meu-hero.scholars-editorial-hero .carousel-item.active .hero-image-stage {
    transform: scale(1);
}

#hero.meu-hero.scholars-editorial-hero .hero-image-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--brand-secondary-dark) 12%, transparent), transparent 55%),
        linear-gradient(0deg, color-mix(in srgb, var(--brand-secondary-dark) 42%, transparent), transparent 38%);
}

[dir="ltr"] #hero.meu-hero.scholars-editorial-hero .hero-image-stage::after {
    background:
        linear-gradient(270deg, color-mix(in srgb, var(--brand-secondary-dark) 12%, transparent), transparent 55%),
        linear-gradient(0deg, color-mix(in srgb, var(--brand-secondary-dark) 42%, transparent), transparent 38%);
}

#hero.meu-hero.scholars-editorial-hero .hero-image-frame {
    position: absolute;
    inset: 14px;
    z-index: 2;
    pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--scholars-white) 46%, transparent);
    border-radius: inherit;
}

#hero.meu-hero.scholars-editorial-hero .hero-image-corner {
    position: absolute;
    inset-inline-end: 28px;
    bottom: 26px;
    z-index: 2;
    width: 54px;
    height: 54px;
    border: 1px solid color-mix(in srgb, var(--brand-line) 72%, transparent);
    transform: rotate(45deg);
}

#hero.meu-hero.scholars-editorial-hero .carousel-container {
    z-index: 3;
}

#hero.meu-hero.scholars-editorial-hero .carousel-content {
    align-items: center;
    padding-inline: 12px !important;
}

#hero.meu-hero.scholars-editorial-hero .slider-content,
[dir="rtl"] #hero.meu-hero.scholars-editorial-hero .slider-content,
[dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
    width: min(540px, 46%);
    margin-inline-end: auto;
    padding: clamp(30px, 4vw, 54px);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 10%, transparent);
    border-inline-start: 4px solid var(--brand-primary);
    border-radius: 6px 26px 26px 6px;
    background: color-mix(in srgb, var(--scholars-white) 93%, transparent);
    box-shadow: 0 30px 80px -54px var(--brand-secondary);
    backdrop-filter: blur(16px);
}

[dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
    border-radius: 26px 6px 6px 26px;
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-meta {
    margin-bottom: 18px;
    color: var(--scholars-muted);
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-meta-mark {
    width: 24px;
    height: 2px;
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-brand {
    color: var(--brand-primary-dark);
    font-size: 11px;
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-count {
    color: var(--brand-secondary);
    font-size: 13px;
    font-weight: 800;
}

#hero.meu-hero.scholars-editorial-hero .slider-title {
    max-width: 14ch;
    margin-bottom: 14px;
    color: var(--brand-secondary) !important;
    font-size: clamp(2rem, 4.2vw, 4rem);
    font-weight: 900;
    line-height: 1.28;
    letter-spacing: -.045em;
    text-shadow: none;
}

#hero.meu-hero.scholars-editorial-hero .slider-details {
    display: -webkit-box;
    max-width: 48ch;
    margin-bottom: 22px;
    overflow: hidden;
    color: var(--scholars-muted);
    font-size: clamp(14px, 1.2vw, 17px);
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

#hero.meu-hero.scholars-editorial-hero .slider-link {
    min-height: 44px;
    padding: 10px 19px;
    border: 0;
    border-radius: 8px;
    box-shadow: none;
}

#hero.meu-hero.scholars-editorial-hero .slider-link:hover {
    color: var(--scholars-white) !important;
    background: var(--brand-secondary);
    transform: translateY(-2px);
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-progress {
    right: auto;
    left: auto;
    width: 100%;
    margin-top: 24px;
    opacity: .45;
}

#hero.meu-hero.scholars-editorial-hero .carousel-control-prev,
#hero.meu-hero.scholars-editorial-hero .carousel-control-next {
    z-index: 6;
    width: 72px;
    opacity: 1;
}

#hero.meu-hero.scholars-editorial-hero .carousel-control-prev-icon,
#hero.meu-hero.scholars-editorial-hero .carousel-control-next-icon {
    width: 42px;
    height: 42px;
    color: var(--brand-secondary);
    border: 1px solid var(--scholars-border);
    background-color: color-mix(in srgb, var(--scholars-white) 90%, transparent);
    box-shadow: 0 12px 30px -22px var(--brand-secondary);
    backdrop-filter: blur(8px);
}

#hero.meu-hero.scholars-editorial-hero .carousel-indicators {
    z-index: 7;
    bottom: 36px;
}

#hero.meu-hero.scholars-editorial-hero .carousel-indicators li {
    width: 7px;
    height: 7px;
    border: 0;
    border-radius: 50%;
    background: color-mix(in srgb, var(--brand-secondary) 28%, transparent);
}

#hero.meu-hero.scholars-editorial-hero .carousel-indicators li.active {
    width: 28px;
    border-radius: 999px;
}

#hero.meu-hero.scholars-editorial-hero .hero-scroll-cue {
    display: none;
}

/* Compact editorial index menu ------------------------------------------ */
@media (min-width: 992px) {
    #navbar .mega-dropdown > .mega-menu {
        top: calc(100% + 0px);
        grid-template-columns: minmax(210px, .55fr) minmax(0, 1.7fr);
        gap: 20px;
        width: min(1080px, calc(100vw - 56px));
        min-height: 0;
        padding: 18px;
        overflow: hidden;
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 10%, transparent);
        border-top: 3px solid var(--brand-primary);
        border-radius: 0 0 24px 24px;
        background:
            linear-gradient(135deg, color-mix(in srgb, var(--brand-surface) 36%, #fff), #fff 62%);
        box-shadow: 0 32px 72px -42px color-mix(in srgb, var(--brand-secondary) 72%, transparent);
        /* transform: translate(-50%, 8px); */
    }

    #navbar .mega-dropdown > .mega-menu::before {
        content: "";
        position: absolute;
        inset: 0 0 auto;
        height: 7px;
        opacity: .25;
        background:
            linear-gradient(135deg, transparent 37%, var(--brand-primary) 38% 62%, transparent 63%) 0 0 / 22px 11px,
            linear-gradient(45deg, transparent 37%, var(--brand-line) 38% 62%, transparent 63%) 11px 0 / 22px 11px;
    }

    #navbar .mega-dropdown:hover > .mega-menu,
    #navbar .mega-dropdown:focus-within > .mega-menu {
        /* transform: translate(-50%, 0); */
    }

    #navbar .mega-menu-intro,
    #navbar .mega-menu-topic-columns > .mega-menu-intro {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
        min-height: 205px;
        padding: 32px 26px 26px;
        overflow: hidden;
        color: var(--scholars-white);
        border: 0;
        border-radius: 82px 16px 16px 16px;
        background:
            radial-gradient(circle at 18% 10%, color-mix(in srgb, var(--brand-primary) 34%, transparent), transparent 36%),
            var(--brand-secondary);
    }

    [dir="ltr"] #navbar .mega-menu-intro,
    [dir="ltr"] #navbar .mega-menu-topic-columns > .mega-menu-intro {
        border-radius: 16px 82px 16px 16px;
    }

    #navbar .mega-menu-intro::after {
        content: "";
        position: absolute;
        inset-inline-end: -34px;
        bottom: -42px;
        width: 130px;
        height: 130px;
        opacity: .18;
        border: 1px solid var(--brand-line);
        transform: rotate(45deg);
    }

    #navbar .mega-menu-intro h3 {
        position: relative;
        z-index: 1;
        margin-bottom: 9px;
        color: var(--scholars-white);
        font-size: 20px;
    }

    #navbar .mega-menu-intro p {
        position: relative;
        z-index: 1;
        display: -webkit-box;
        margin-bottom: 18px;
        overflow: hidden;
        color: color-mix(in srgb, var(--scholars-white) 68%, var(--brand-line));
        font-size: 12px;
        line-height: 1.8;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    #navbar .mega-menu-intro .mega-menu-more,
    #navbar .mega-menu-intro .mega-menu-more:focus {
        position: relative;
        z-index: 1;
        color: var(--scholars-white) !important;
        border-bottom-color: color-mix(in srgb, var(--brand-line) 45%, transparent);
    }

    #navbar .mega-menu-intro .mega-menu-more i {
        color: var(--brand-line);
    }

    #navbar .mega-menu-topic-columns > .mega-sections-area {
        grid-column: 2;
        padding: 0;
    }

    #navbar .mega-sections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    #navbar .mega-section-column {
        padding: 15px;
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 8%, transparent);
        border-radius: 13px;
        background: color-mix(in srgb, var(--scholars-white) 88%, transparent);
        transition: border-color .22s ease, transform .22s ease, box-shadow .22s ease;
    }

    #navbar .mega-section-column:hover {
        border-color: color-mix(in srgb, var(--brand-primary) 32%, transparent);
        box-shadow: 0 18px 34px -30px var(--brand-secondary);
        transform: translateY(-2px);
    }

    #navbar .mega-section-heading,
    #navbar .mega-section-heading:focus {
        padding: 0 0 9px !important;
        color: var(--brand-secondary);
        font-size: 13px;
        border-bottom: 1px solid color-mix(in srgb, var(--brand-primary) 30%, transparent);
    }

    #navbar .mega-section-heading > i {
        color: var(--brand-primary);
    }

    #navbar .mega-menu-topic-columns .mega-topic-list {
        margin-top: 6px !important;
    }

    #navbar .mega-menu-topic-columns .mega-topic-list > li > a,
    #navbar .mega-menu-topic-columns .mega-topic-list > li > a:focus {
        padding: 5px 0 !important;
        color: var(--scholars-muted);
        font-size: 12px;
        line-height: 1.55;
    }

    #navbar .mega-menu-topic-columns .mega-topic-list > li > a::before {
        width: 4px;
        height: 4px;
        background: var(--brand-primary);
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) {
        margin: 0;
        padding-inline: 14px;
        border-bottom-color: color-mix(in srgb, var(--brand-secondary) 9%, transparent);
        background: color-mix(in srgb, var(--scholars-white) 80%, transparent);
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) > a {
        min-height: 43px;
        color: var(--brand-secondary);
    }
}

/* Architectural footer --------------------------------------------------- */
/* Final hero proportions ------------------------------------------------- */
#hero.meu-hero.scholars-editorial-hero {
    height: clamp(500px, 58vw, 620px);
    min-height: 500px;
}

#hero.meu-hero.scholars-editorial-hero::before {
    inset-block: 20px;
    border-color: color-mix(in srgb, var(--brand-secondary) 7%, transparent);
    border-radius: 24px;
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-arch {
    top: 32px;
    height: calc(100% - 64px);
    border-color: color-mix(in srgb, var(--brand-line) 24%, transparent);
}

#hero.meu-hero.scholars-editorial-hero .hero-image-stage {
    top: 38px;
    bottom: 38px;
    width: min(53vw, 720px);
    border-radius: 190px 190px 18px 18px;
    box-shadow: none !important;
}

#hero.meu-hero.scholars-editorial-hero .hero-image-stage::after {
    display: none !important;
    background: none !important;
}

#hero.meu-hero.scholars-editorial-hero .hero-image-frame {
    inset: 12px;
    border-color: color-mix(in srgb, var(--scholars-white) 38%, transparent);
}

#hero.meu-hero.scholars-editorial-hero .slider-content,
[dir="rtl"] #hero.meu-hero.scholars-editorial-hero .slider-content,
[dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
    width: min(510px, 44%);
    padding: clamp(26px, 3.3vw, 42px);
    border-color: color-mix(in srgb, var(--brand-secondary) 8%, transparent);
    border-inline-start-color: var(--brand-primary);
    border-radius: 5px 20px 20px 5px;
    box-shadow: none !important;
    backdrop-filter: blur(10px);
}

[dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
    border-radius: 20px 5px 5px 20px;
}

#hero.meu-hero.scholars-editorial-hero .slider-title {
    margin-bottom: 12px;
    font-size: clamp(1.9rem, 3.7vw, 3.5rem);
    line-height: 1.24;
}

#hero.meu-hero.scholars-editorial-hero .slider-details {
    margin-bottom: 18px;
    font-size: clamp(13px, 1.05vw, 16px);
    line-height: 1.8;
}

#hero.meu-hero.scholars-editorial-hero .slider-link,
#hero.meu-hero.scholars-editorial-hero .carousel-control-prev-icon,
#hero.meu-hero.scholars-editorial-hero .carousel-control-next-icon {
    box-shadow: none !important;
}

#hero.meu-hero.scholars-editorial-hero .hero-slide-progress {
    margin-top: 18px;
}

#hero.meu-hero.scholars-editorial-hero .hero-fx-rosette {
    width: 260px;
    opacity: .055;
}

@media (max-width: 991.98px) {
    #hero.meu-hero.scholars-editorial-hero {
        height: 560px;
        min-height: 560px;
    }

    #hero.meu-hero.scholars-editorial-hero .hero-image-stage {
        width: min(57vw, 530px);
    }

    #hero.meu-hero.scholars-editorial-hero .slider-content,
    [dir="rtl"] #hero.meu-hero.scholars-editorial-hero .slider-content,
    [dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
        width: min(450px, 55%);
        padding: 27px;
    }
}

@media (max-width: 767.98px) {
    #hero.meu-hero.scholars-editorial-hero {
        height: 590px;
        min-height: 590px;
    }

    #hero.meu-hero.scholars-editorial-hero .hero-fx-arch {
        top: 20px;
        height: 266px;
    }

    #hero.meu-hero.scholars-editorial-hero .hero-image-stage {
        top: 24px;
        height: 266px;
        border-radius: 125px 125px 15px 15px;
    }

    #hero.meu-hero.scholars-editorial-hero .carousel-content {
        padding-bottom: 28px !important;
    }

    #hero.meu-hero.scholars-editorial-hero .slider-content,
    [dir="rtl"] #hero.meu-hero.scholars-editorial-hero .slider-content,
    [dir="ltr"] #hero.meu-hero.scholars-editorial-hero .slider-content {
        width: 100%;
        padding: 21px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #footer .footer-pattern-rail span {
        animation: none;
    }
}

/* Calm footer direction -------------------------------------------------- */
/* Refined compact submenu ------------------------------------------------ */
@media (min-width: 992px) {
    #navbar .mega-dropdown > .mega-menu {
        top: calc(100% + 0px);
        grid-template-columns: 220px minmax(0, 1fr);
        grid-auto-rows: max-content;
        align-items: start;
        gap: 12px 16px;
        width: min(920px, calc(100vw - 48px));
        min-height: 0;
        max-height: min(620px, calc(100vh - 150px));
        padding: 14px;
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 9%, transparent);
        border-top: 3px solid var(--brand-primary);
        border-radius: 0 0 18px 18px;
        background: #fff;
        box-shadow: 0 22px 55px -38px color-mix(in srgb, var(--brand-secondary) 55%, transparent);
    }

    #navbar .mega-dropdown > .mega-menu::before {
        display: none;
    }

    #navbar .mega-menu-intro,
    #navbar .mega-menu-topic-columns > .mega-menu-intro {
        position: relative;
        grid-column: 1;
        grid-row: 1;
        align-self: stretch;
        min-height: 0;
        padding: 22px 19px;
        overflow: hidden;
        color: var(--scholars-ink);
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 8%, transparent);
        border-radius: 13px;
        background:
            radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--brand-primary) 9%, transparent), transparent 38%),
            color-mix(in srgb, var(--brand-surface) 24%, #fff);
    }

    #navbar .mega-menu-intro::before {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: 3px;
        background: var(--brand-primary);
    }

    #navbar .mega-menu-intro::after {
        inset-inline-end: -48px;
        bottom: -55px;
        width: 125px;
        height: 125px;
        opacity: .08;
        border-color: var(--brand-secondary);
    }

    #navbar .mega-menu-intro h3 {
        margin: 0 0 8px;
        color: var(--brand-secondary);
        font-size: 17px;
        line-height: 1.45;
    }

    #navbar .mega-menu-intro p {
        margin: 0 0 15px;
        color: var(--scholars-muted);
        font-size: 11px;
        line-height: 1.75;
    }

    #navbar .mega-menu-intro .mega-menu-more,
    #navbar .mega-menu-intro .mega-menu-more:focus {
        gap: 7px;
        padding-bottom: 4px !important;
        color: var(--brand-primary-dark) !important;
        border-bottom-color: color-mix(in srgb, var(--brand-primary) 25%, transparent);
        font-size: 11px;
    }

    #navbar .mega-menu-intro .mega-menu-more i {
        color: var(--brand-primary);
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) {
        grid-template-columns: 220px minmax(300px, 1fr);
        width: min(720px, calc(100vw - 48px));
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) {
        grid-column: 2;
        min-width: 0;
        margin: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        border-radius: 9px;
        background: transparent;
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) > a,
    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) > a:focus {
        min-height: 42px;
        padding: 9px 13px !important;
        color: var(--brand-secondary);
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 7%, transparent);
        border-radius: 9px;
        background: color-mix(in srgb, var(--brand-surface) 8%, #fff);
        font-size: 12px;
        font-weight: 700;
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) > a:hover {
        padding-inline-start: 16px !important;
        color: var(--brand-primary-dark);
        border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
        background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > li:not(.mega-menu-intro) > a::after {
        color: var(--brand-primary);
        opacity: .7;
    }

    #navbar .mega-dropdown > .mega-menu.mega-menu-topic-columns {
        grid-template-columns: 205px minmax(0, 1fr);
        gap: 16px;
        width: min(1040px, calc(100vw - 48px));
        padding: 14px;
    }

    #navbar .mega-menu-topic-columns > .mega-sections-area {
        grid-column: 2;
        grid-row: 1;
    }

    #navbar .mega-sections-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    #navbar .mega-section-column {
        min-height: 0;
        padding: 13px;
        border-color: color-mix(in srgb, var(--brand-secondary) 7%, transparent);
        border-radius: 10px;
        box-shadow: none;
    }

    #navbar .mega-section-column:hover {
        border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
        box-shadow: none;
        transform: translateY(-1px);
    }

    #navbar .mega-section-heading,
    #navbar .mega-section-heading:focus {
        padding-bottom: 8px !important;
        font-size: 12px;
    }

    #navbar .mega-menu-topic-columns .mega-topic-list > li > a,
    #navbar .mega-menu-topic-columns .mega-topic-list > li > a:focus {
        padding: 4px 0 !important;
        font-size: 11px;
    }
}

@media (max-width: 991.98px) {
    #navbar.navbar-mobile .mega-dropdown > .mega-menu {
        margin: 5px 3px 10px !important;
        padding: 6px !important;
        border-inline-start: 2px solid color-mix(in srgb, var(--brand-primary) 45%, transparent);
        border-radius: 10px;
        background: color-mix(in srgb, var(--brand-surface) 12%, #fff) !important;
    }

    #navbar.navbar-mobile .mega-menu-intro {
        margin-bottom: 6px;
        padding: 13px;
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 7%, transparent);
        border-inline-start: 3px solid var(--brand-primary);
        border-radius: 8px;
        background: #fff;
    }

    #navbar.navbar-mobile .mega-menu-intro h3 {
        color: var(--brand-secondary);
        font-size: 14px;
    }

    #navbar.navbar-mobile .mega-menu-intro p {
        color: var(--scholars-muted);
    }

    #navbar.navbar-mobile .mega-section-column {
        padding: 10px;
        border-radius: 8px;
        box-shadow: none;
    }
}

/* Keep simple submenu links independent from the intro card height. */
@media (min-width: 992px) {
    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns)::after {
        content: "";
        position: absolute;
        inset-inline-end: -54px;
        bottom: -82px;
        z-index: 0;
        width: 190px;
        height: 190px;
        pointer-events: none;
        opacity: .055;
        border: 1px solid var(--brand-secondary);
        border-radius: 50%;
        box-shadow:
            0 0 0 28px color-mix(in srgb, var(--brand-primary) 28%, transparent),
            0 0 0 56px color-mix(in srgb, var(--brand-secondary) 18%, transparent);
    }

    #navbar .mega-menu-intro {
        background:
            linear-gradient(135deg,
                transparent 47%,
                color-mix(in srgb, var(--brand-primary) 5%, transparent) 48% 51%,
                transparent 52%) 0 0 / 28px 28px,
            radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--brand-primary) 9%, transparent), transparent 38%),
            color-mix(in srgb, var(--brand-surface) 24%, #fff);
    }

    #navbar .mega-dropdown > .mega-menu:not(.mega-menu-topic-columns) > .mega-links-area {
        position: relative;
        z-index: 1;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        padding: 0;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list {
        position: static !important;
        inset: auto !important;
        display: grid !important;
        grid-template-columns: 1fr;
        gap: 9px;
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible;
        visibility: visible !important;
        opacity: 1 !important;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        transform: none !important;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list > li {
        position: relative;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 9px;
        background: transparent;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list > li > a,
    #navbar .mega-dropdown > .mega-menu .mega-links-list > li > a:focus {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 9px 13px !important;
        color: var(--brand-secondary);
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 7%, transparent);
        border-radius: 9px;
        background: color-mix(in srgb, var(--brand-surface) 9%, #fff);
        font-size: 15px;
        font-weight: 500;
        transition: color .2s ease, border-color .2s ease, background-color .2s ease, padding .2s ease;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list > li > a::after {
        content: "\F285";
        flex: 0 0 auto;
        margin-inline-start: auto;
        color: var(--brand-primary);
        font-family: "bootstrap-icons";
        font-size: 11px;
        opacity: .7;
    }

    [dir="rtl"] #navbar .mega-dropdown > .mega-menu .mega-links-list > li > a::after {
        content: "\F284";
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list > li.dropdown > a::after {
        display: none;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list > li > a:hover {
        padding-inline-start: 16px !important;
        color: var(--brand-primary-dark);
        border-color: color-mix(in srgb, var(--brand-primary) 22%, transparent);
        background: color-mix(in srgb, var(--brand-primary) 5%, #fff);
    }
}

@media (max-width: 991.98px) {
    #navbar.navbar-mobile .mega-links-area {
        padding: 0;
        border: 0;
    }

    #navbar.navbar-mobile .mega-links-list {
        position: static !important;
        inset: auto !important;
        display: grid !important;
        gap: 5px;
        margin: 0 !important;
        padding: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
        border: 0;
        background: transparent !important;
        box-shadow: none !important;
        transform: none !important;
    }

    #navbar.navbar-mobile .mega-links-list > li > a {
        min-height: 40px;
        padding: 8px 10px !important;
        border: 1px solid color-mix(in srgb, var(--brand-secondary) 7%, transparent);
        border-radius: 7px;
        background: #fff;
    }
}

/* Prevent hidden dropdown layers from covering the hero. */
@media (min-width: 992px) {
    #navbar .mega-dropdown > .mega-menu {
        pointer-events: none;
    }

    #navbar .mega-dropdown:hover > .mega-menu,
    #navbar .mega-dropdown:focus-within > .mega-menu {
        pointer-events: auto;
    }

    #navbar .mega-dropdown > .mega-menu .mega-links-list,
    #navbar .mega-dropdown > .mega-menu .mega-topic-list {
        visibility: inherit !important;
        pointer-events: inherit;
    }
}

@media (max-width: 991.98px) {
    #navbar.navbar-mobile .mega-dropdown > .mega-menu,
    #navbar.navbar-mobile .mega-dropdown > .mega-menu .mega-links-list,
    #navbar.navbar-mobile .mega-dropdown > .mega-menu .mega-topic-list {
        pointer-events: auto;
    }
}
