/* =========================================================
   STELLA SPECTRUM — RESOURCES PAGE
   Uses the existing Stella header/footer from index.css.
   ========================================================= */

.resources-site {
    background: #f5f8fa;
}

.resources-main {
    width: 100%;
    overflow: hidden;
    background: #f5f8fa;
}

.resources-shell {
    width: min(calc(100% - 110px), 1420px);
    margin: 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.resources-hero {
    position: relative;
    min-height: 690px;
    padding-top: 128px;
    overflow: hidden;

    background-image: url("../images/resources-hero-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.resources-hero-inner {
    min-height: 562px;
    display: flex;
    align-items: center;
}

.resources-hero-copy {
    width: min(590px, 46%);
    padding: 70px 0 55px;
}

.resources-kicker,
.resources-section-kicker {
    display: flex;
    align-items: center;
    gap: 13px;
}

.resources-kicker {
    margin-bottom: 17px;
}

.resources-kicker > span,
.resources-section-kicker > span {
    width: 30px;
    height: 1px;
    flex: 0 0 auto;
    background: var(--gold);
}

.resources-kicker p,
.resources-section-kicker p {
    margin: 0;
    color: #294556;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.resources-hero h1 {
    margin: 0;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(55px, 5vw, 78px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.045em;
}

.resources-hero h1 span {
    display: block;
}

.resources-hero h1 em {
    color: #bd8213;
    font-style: italic;
    font-weight: 400;
}

.resources-hero-description {
    max-width: 540px;
    margin: 25px 0 0;
    color: rgba(23,50,68,.78);
    font-size: 15px;
    line-height: 1.55;
}

.resources-explore {
    width: fit-content;
    margin-top: 30px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.resources-explore-circle {
    width: 43px;
    height: 43px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #a97516;
    background: rgba(255,255,255,.18);
    font-size: 17px;
    transition: transform .25s ease, background .25s ease;
}

.resources-explore > span:last-child {
    color: #173244;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.resources-explore:hover .resources-explore-circle {
    transform: translateX(4px);
    background: rgba(255,255,255,.68);
}


/* =========================================================
   SHARED SECTION TYPOGRAPHY
   ========================================================= */

.resources-section-kicker {
    margin-bottom: 11px;
}

.resources-heading {
    margin: 0;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 3.4vw, 55px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.04em;
}

.resources-heading em {
    font-style: italic;
    font-weight: 400;
}


/* =========================================================
   FEATURED INSIGHT
   ========================================================= */

.featured-insight {
    padding: 28px 0 36px;
    background: rgba(249,252,253,.98);
}

.featured-card {
    display: grid;
    grid-template-columns: 1.18fr .95fr;
    min-height: 330px;
    overflow: hidden;
    border: 1px solid rgba(38,61,76,.08);
    border-radius: 16px;
    background: rgba(255,255,255,.78);
    box-shadow: 0 14px 38px rgba(34,59,76,.06);
}

.featured-image {
    min-height: 330px;
    overflow: hidden;
}

.featured-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.featured-copy {
    padding: 34px 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.content-type {
    color: #c18414;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .20em;
    text-transform: uppercase;
}

.featured-copy h2 {
    margin: 10px 0 0;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 3vw, 52px);
    font-weight: 400;
    line-height: .94;
    letter-spacing: -.035em;
}

.featured-copy h2 span {
    display: block;
}

.featured-copy h3 {
    margin: 16px 0 0;
    color: #173244;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
}

.featured-copy p {
    max-width: 520px;
    margin: 13px 0 0;
    color: rgba(23,50,68,.76);
    font-size: 14px;
    line-height: 1.55;
}

.outline-button,
.question-button {
    width: fit-content;
    min-width: 166px;
    height: 44px;
    margin-top: 22px;
    padding: 0 18px 0 21px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: #173244;
    background: rgba(255,255,255,.18);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    transition: background .25s ease, transform .25s ease;
}

.outline-button span:last-child,
.question-button span:last-child {
    color: #b98216;
    font-size: 16px;
}

.outline-button:hover,
.question-button:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.72);
}


/* =========================================================
   TOPIC CARDS
   ========================================================= */

.resource-topics {
    padding: 30px 0 38px;
    background:
        linear-gradient(180deg, #f9fcfd 0%, #f2f7fa 100%);
}

.topic-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 17px;
}

.topic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(38,61,76,.09);
    border-radius: 9px;
    background: rgba(255,255,255,.84);
    box-shadow: 0 10px 30px rgba(35,58,73,.04);
    transition: transform .25s ease, box-shadow .25s ease;
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(35,58,73,.09);
}

.topic-card > img {
    width: 100%;
    aspect-ratio: 1.62 / 1;
    display: block;
    object-fit: cover;
}

.topic-copy {
    min-height: 150px;
    padding: 17px 17px 15px;
    display: flex;
    flex-direction: column;
}

.topic-copy h3 {
    margin: 0;
    color: #173244;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.topic-copy p {
    margin: 8px 0 0;
    color: rgba(23,50,68,.70);
    font-size: 12px;
    line-height: 1.3;
}

.topic-copy a {
    width: 32px;
    height: 32px;
    margin-top: auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #b98216;
    font-size: 14px;
    transition: transform .25s ease, background .25s ease;
}

.topic-copy a:hover {
    transform: translateX(3px);
    background: rgba(200,149,39,.08);
}


/* =========================================================
   LATEST INSIGHTS
   ========================================================= */

.latest-insights {
    padding: 30px 0 34px;
    background: #f8fbfc;
}

.insights-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}

.view-all-link {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #173244;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.view-all-circle {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: #b98216;
    font-size: 14px;
}

.insight-grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.insight-card {
    overflow: hidden;
    border: 1px solid rgba(38,61,76,.08);
    border-radius: 9px;
    background: rgba(255,255,255,.88);
    box-shadow: 0 12px 34px rgba(35,58,73,.045);
}

.insight-card > img {
    width: 100%;
    aspect-ratio: 1.78 / 1;
    display: block;
    object-fit: cover;
}

.insight-copy {
    min-height: 245px;
    padding: 17px 20px 20px;
    display: flex;
    flex-direction: column;
}

.insight-source {
    color: rgba(23,50,68,.66);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.insight-copy h3 {
    margin: 10px 0 0;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 400;
    line-height: .98;
    letter-spacing: -.03em;
}

.insight-copy p {
    margin: 12px 0 0;
    color: rgba(23,50,68,.72);
    font-size: 12px;
    line-height: 1.48;
}

.insight-copy > a {
    width: fit-content;
    margin-top: auto;
    padding-top: 18px;
    color: #c18414;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.insight-copy > a span {
    margin-left: 9px;
    font-size: 16px;
}

.source-note {
    max-width: 900px;
    margin: 18px 0 0;
    color: rgba(38,61,76,.56);
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   QUESTION CTA
   ========================================================= */

.resources-question {
    position: relative;
    min-height: 300px;
    overflow: hidden;

    background-image: url("../images/resources-bottom-bg.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.question-inner {
    min-height: 300px;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 60px;
}

.question-copy {
    padding: 40px 0;
}

.question-copy h2 {
    margin: 9px 0 0;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 3.7vw, 58px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.045em;
}

.question-copy h2 span {
    display: block;
}

.question-copy > p {
    margin: 12px 0 0;
    color: rgba(23,50,68,.78);
    font-size: 14px;
}

.question-benefits {
    width: 78%;
    justify-self: end;
    transform: translate(35px, 65px);

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;

    background: transparent;
    border-radius: 0;
    backdrop-filter: none;
}

.benefit-item {
    min-height: 110px;
    padding: 17px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-left: 1px solid rgba(200,149,39,.62);
}

.benefit-item:first-child {
    border-left: 0;
}

.benefit-icon {
    margin-bottom: 8px;
    color: #173244;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    line-height: 1;
}

.benefit-item span {
    color: #173244;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .10em;
    text-transform: uppercase;
}


/* =========================================================
   FLOATING NAVIGATION — CANONICAL STELLA VERSION
   ========================================================= */

.floating-nav {
    position: fixed;
    z-index: 9000;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -18px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .28s ease, transform .28s ease, visibility .28s ease;
}

.floating-nav.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.floating-nav-inner {
    min-height: 54px;
    padding: 7px 9px 7px 25px;
    display: flex;
    align-items: center;
    gap: 29px;
    border: 1px solid rgba(82,103,119,.14);
    border-radius: 34px;
    background: rgba(245,248,250,.88);
    box-shadow: 0 12px 35px rgba(23,43,56,.12);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.floating-nav-inner > a:not(.floating-nav-button) {
    position: relative;
    padding: 18px 0 16px;
    color: #173244;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    white-space: nowrap;
}

.floating-nav-inner > a:not(.floating-nav-button)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 8px;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    background: var(--gold);
    transition: width .25s ease;
}

.floating-nav-inner > a:not(.floating-nav-button):hover::after,
.floating-nav-inner > a.active::after {
    width: 28px;
}

.floating-nav-button {
    min-width: 128px;
    height: 40px;
    padding: 0 17px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 1px solid var(--gold);
    border-radius: 25px;
    color: #173244;
    background: rgba(255,255,255,.38);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background .25s ease;
}

.floating-nav-button:hover {
    background: rgba(200,149,39,.08);
}

.floating-nav-button span:last-child {
    color: #b98216;
    font-size: 14px;
}


/* =========================================================
   RESPONSIVE — TABLET / SMALL LAPTOP
   ========================================================= */

@media (max-width: 1100px) {

    .floating-nav {
        display: none;
    }

    .resources-shell {
        width: calc(100% - 48px);
    }

    .resources-hero {
        min-height: 650px;
        background-position: 58% center;
    }

    .resources-hero-inner {
        min-height: 522px;
    }

    .resources-hero-copy {
        width: 52%;
    }

    .topic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .topic-card:nth-child(4),
    .topic-card:nth-child(5) {
        grid-column: span 1;
    }

    .question-inner {
        gap: 30px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

    .resources-shell {
        width: calc(100% - 32px);
    }

    .resources-hero {
        min-height: 720px;
        padding-top: 110px;
        background-position: 62% center;
    }

    .resources-hero::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            90deg,
            rgba(245,248,250,.98) 0%,
            rgba(245,248,250,.94) 48%,
            rgba(245,248,250,.48) 75%,
            rgba(245,248,250,.08) 100%
        );
        pointer-events: none;
    }

    .resources-hero-inner {
        position: relative;
        z-index: 2;
        min-height: 610px;
        align-items: center;
    }

    .resources-hero-copy {
        width: min(100%, 470px);
        padding: 60px 0;
    }

    .resources-hero h1 {
        font-size: clamp(48px, 13vw, 65px);
    }

    .resources-hero-description {
        max-width: 420px;
        font-size: 13px;
    }

    .featured-insight {
        padding-top: 24px;
    }

    .featured-card {
        grid-template-columns: 1fr;
    }

    .featured-image {
        min-height: 0;
    }

    .featured-image img {
        aspect-ratio: 1.55 / 1;
    }

    .featured-copy {
        padding: 28px 24px 30px;
    }

    .featured-copy h2 {
        font-size: 42px;
    }

    .topic-grid,
    .insight-grid {
        grid-template-columns: 1fr;
    }

    .topic-card {
        display: grid;
        grid-template-columns: 42% 58%;
    }

    .topic-card > img {
        height: 100%;
        aspect-ratio: auto;
    }

    .topic-copy {
        min-height: 150px;
    }

    .insights-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .view-all-link {
        margin: 0;
    }

    .insight-copy {
        min-height: 225px;
    }

    .question-inner {
        min-height: 520px;
        padding: 48px 0;
        grid-template-columns: 1fr;
    }

    .question-copy {
        padding: 0;
    }

    .question-benefits {
        grid-template-columns: 1fr;
    }

    .benefit-item {
        min-height: 85px;
        flex-direction: row;
        gap: 16px;
        border-left: 0;
        border-top: 1px solid rgba(200,149,39,.50);
    }

    .benefit-item:first-child {
        border-top: 0;
    }

    .benefit-icon {
        margin: 0;
    }

}


/* =========================================================
   RESPONSIVE — SMALL PHONE
   ========================================================= */

@media (max-width: 480px) {

    .resources-hero {
        min-height: 680px;
    }

    .resources-hero h1 {
        font-size: clamp(44px, 13.5vw, 58px);
    }

    .resources-heading {
        font-size: 39px;
    }

    .featured-copy h2 {
        font-size: 38px;
    }

    .topic-card {
        grid-template-columns: 1fr;
    }

    .topic-card > img {
        width: 100%;
        aspect-ratio: 1.7 / 1;
    }

    .question-copy h2 {
        font-size: 42px;
    }

}
