:root {
    --ink: #171717;
    --ink2: #242424;
    --cream: #f7f4ed;
    --paper: #fffefa;
    --red: #c8102e;
    --gold: #f6c445;
    --gold2: #d6ae52;
    --muted: #696456;
    --line: rgba(23, 23, 23, 0.1);
    --radius: 26px;
    --shadow: 0 18px 55px rgba(28, 22, 12, 0.09);
}
* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}
body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family:
        "DM Sans",
        Inter,
        system-ui,
        -apple-system,
        "Segoe UI",
        sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input {
    font: inherit;
}
button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}
img,
svg {
    max-width: 100%;
}
.wrap {
    width: min(1220px, calc(100% - 48px));
    margin: auto;
}
.section {
    padding: 92px 0;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--red);
    font-size: 0.73rem;
    font-weight: 850;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.eyebrow:before {
    content: "";
    width: 25px;
    height: 2px;
    background: var(--gold2);
}
h1,
h2,
h3 {
    font-family: Manrope, "DM Sans", system-ui, sans-serif;
    letter-spacing: -0.045em;
    line-height: 1.08;
    margin: 0;
}
h1 {
    font-size: clamp(3.2rem, 7vw, 6.3rem);
    max-width: 720px;
}
h2 {
    font-size: clamp(2.2rem, 4.2vw, 3.6rem);
}
h3 {
    font-size: 1.35rem;
}
.lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #e9e3d8;
    max-width: 540px;
}
.muted {
    color: var(--muted);
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 23px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.94rem;
    border: 1px solid transparent;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}
.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px #0002;
}
.btn-gold {
    background: var(--gold);
    color: var(--ink);
}
.btn-outline {
    border-color: #d6ae52;
    color: var(--cream);
    background: transparent;
}
.btn-red {
    background: var(--red);
    color: white;
}
.btn-dark {
    background: var(--ink);
    color: var(--cream);
}
/* navigation */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 23, 23, 0.96);
    color: var(--cream);
    backdrop-filter: blur(14px);
    border-bottom: none;
    isolation: isolate;
}

/* Continuous Ugandan flag animation */
.nav::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        #000000,
        #FCDC04,
        #D90000,
        #000000
    );

    background-size: 200% 100%;
    background-position: 0% 50%;

    animation: ugandaFlagMove 12s linear infinite;
    pointer-events: none;
}

@keyframes ugandaFlagMove {
    from {
        background-position: 0% 50%;
    }
    to {
        background-position: 200% 50%;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .nav::after {
        animation: none;
        background-position: center;
    }
}


.nav-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-family: Manrope, sans-serif;
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}
.brand-mark {
    width: 30%;
    height: 100%;
    /* border-left: 4px solid var(--red);
    border-bottom: 2px solid var(--gold); */
    display: grid;
    place-items: center;
    font-size: 0.78rem;
}
@media (max-width: 550px) {
    .brand-mark {
        width: 40%;
    }
}



.links {
    display: flex;
    align-items: center;
    gap: 4px;
}
.links a {
    padding: 10px 13px;
    border-radius: 999px;
    color: #e7e1d7;
    font-size: 0.9rem;
    font-weight: 450;
    transition:
        background 0.2s,
        color 0.2s;
}
.links a:hover,
.links a.active {
    background: #ffffff12;
    color: var(--gold);
}
.nav-join {
    padding: 11px 18px;
}
.menu-toggle {
    display: none;
    background: transparent;
    color: white;
    border: 1px solid #ffffff30;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 1rem;
}
/* hero */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--cream);
    padding: 94px 0 88px;
    isolation: isolate;
    background-image: 
        linear-gradient(
            115deg,
            #171717 0%,
            rgba(44, 44, 44, 0.86) 42%,
            rgba(44, 44, 44, 0.66) 74%,
            rgba(44, 44, 44, 0.25) 100%
        ),
        url("../img/bg/caau_gathering.jpeg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.hero:before {
    content: "中国";
    position: absolute;
    z-index: -1;
    right: 9%;
    top: -105px;
    font-family: "Noto Sans SC", sans-serif;
    font-size: clamp(19rem, 38vw, 34rem);
    font-weight: 800;
    color: var(--red);
    opacity: 0.105;
    line-height: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 60px;
    align-items: center;
}
.hero h1 {
    margin: 21px 0 24px;
}
.hero h1 span {
    color: var(--gold);
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
.hero-visual {
    position: relative;
    min-height: 470px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1.15fr 0.85fr;
    gap: 15px;
}
.visual-tile {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 180px;
    background: linear-gradient(145deg, #48423a, #242424);
    border: 1px solid #ffffff18;
    box-shadow: 0 25px 60px #0004;
}
.visual-tile:before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, #f6c44544, transparent 45%),
        linear-gradient(145deg, transparent, #0008);
}
.visual-tile:after {
    content: attr(data-glyph);
    position: absolute;
    right: 13px;
    top: -24px;
    font-family: "Noto Sans SC", sans-serif;
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--gold);
    opacity: 0.23;
}
.visual-tile.tall {
    grid-row: span 2;
    /* background: linear-gradient(155deg, #7f1d2d, #2a171a 75%); */
    background:url("../img/caau_study_life.jpg") center / cover no-repeat;
}
.visual-tile.campus {
    /* background: linear-gradient(140deg, #a17b35, #514021); */
    background:url("../img/caau_china_campus_days.jpeg") center / cover no-repeat;
}
.visual-tile.community {
    /* background: linear-gradient(140deg, #454d4a, #171d1c); */
    background:url("../img/caau_alumni_community.jpeg") center / cover no-repeat;
}
.tile-label {
    position: absolute;
    left: 17px;
    bottom: 17px;
    z-index: 1;
    background: #0009;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 0.75rem;
    color: #fff;
}
.hero-flags {
    position: absolute;
    right: -8px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #fff;
    color: var(--ink);
    border-radius: 18px;
    box-shadow: var(--shadow);
    animation: float 5s ease-in-out infinite;
}
.flag {
    width: 43px;
    height: 29px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px #0003;
    flex: none;
}
.flag-ug {
    display: flex;
    flex-direction: column;
}
.flag-ug i {
    height: 16.666%;
    display: block;
}
.flag-ug i:nth-child(3n + 1) {
    background: #171717;
}
.flag-ug i:nth-child(3n + 2) {
    background: #f6c445;
}
.flag-ug i:nth-child(3n) {
    background: #c8102e;
}
.flag-cn {
    background: #de2910;
    position: relative;
}
.flag-cn:before {
    content: "★";
    position: absolute;
    left: 7px;
    top: 3px;
    color: #ffde00;
    font-size: 14px;
}
.flag-cn:after {
    content: "";
    position: absolute;
    left: 22px;
    top: 5px;
    width: 4px;
    height: 4px;
    background: #ffde00;
    border-radius: 50%;
    box-shadow:
        7px 5px #ffde00,
        4px 13px #ffde00,
        -2px 17px #ffde00;
}
.flag-sep {
    color: #a79d8a;
    font-size: 1.1rem;
    font-weight: 700;
}
/* common content */
.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 36px;
}
.section-head p {
    max-width: 480px;
    margin: 0;
    color: var(--muted);
}
/* .pathway {
    padding-top: 80px;
} */
.pathway {
    position: relative;
    isolation: isolate;
    padding-top: 80px;
    overflow: hidden;
}

/* Decorative PNG at bottom-right */
.pathway::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;

    width: 1100px;
    height: 1000px;

    background-image: url("../img/bg/caau_kampala.png");
    background-repeat: no-repeat;
    background-position: bottom right;
    background-size: contain;

    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .pathway::after {
        width: 900px;
        height: 500px;
        opacity: 0.3;
    }
}

.tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 25px 0 17px;
}
.tab {
    border: 1px solid var(--gold2);
    background: transparent;
    color: var(--ink);
    padding: 10px 19px;
    border-radius: 999px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.tab[aria-selected="true"],
.tab:hover {
    background: var(--gold);
    border-color: var(--gold);
    transform: translateY(-2px);
}
/* .path-card {
    background: var(--ink2);
    color: var(--cream);
    padding: 38px 42px;
    border-radius: var(--radius);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;
    box-shadow: var(--shadow);
} */

.path-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.75) 45%,
            rgba(0, 0, 0, 0.25) 100%
        ),
        var(--path-bg, url("../img/bg/study_in_china.jpg"));

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    color: var(--cream);
    padding: 38px 42px;
    min-height: 220px;
    border-radius: var(--radius);

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    flex-wrap: wrap;

    box-shadow: var(--shadow);
    transition: background-image 0.3s ease;
}

/* Background image layer */
.path-card::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;

    background-image: var(--path-bg);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    transform: scale(1);
    transition: transform 0.8s ease;
}

/* Black-to-transparent gradient layer */
.path-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.92) 0%,
        rgba(0, 0, 0, 0.78) 40%,
        rgba(0, 0, 0, 0.48) 75%,
        rgba(0, 0, 0, 0.20) 100%
    );

    pointer-events: none;
}

/* Keep the content above both background layers */
.path-card > * {
    position: relative;
    z-index: 1;
}

/* Subtle image movement on hover */
.path-card:hover::before {
    transform: scale(1.04);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .path-card {
        padding: 30px 24px;
        min-height: 240px;
    }

    .path-card::after {
        background: linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88),
            rgba(0, 0, 0, 0.65)
        );
    }
}

@media (prefers-reduced-motion: reduce) {
    .path-card::before {
        transition: none;
    }

    .path-card:hover::before {
        transform: none;
    }
}

.path-card h2 {
    color: var(--gold);
    font-size: clamp(2rem, 4vw, 3rem);
}
.path-card p {
    margin: 10px 0 0;
    font-size: 1.1rem;
    color: #e7e1d7;
}

.explore {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-top: 30px;
}

.explore::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;

    width: 1100px;
    height: 800px;

    background-image: url("../img/bg/caau_china.png");
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: contain;

    opacity: 0.5;
    pointer-events: none;
    z-index: -1;
}

/* Keep Explore content above the decoration */
.explore .wrap {
    position: relative;
    z-index: 1;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .explore::before {
        width: 900px;
        height: 500px;
        opacity: 0.2;
    }
}

@media (prefers-reduced-motion: reduce) {
    .explore::before {
        transition: none;
    }
}

.explore-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
}
.explore-card {
    display: block;
    min-width: 0;
}
.explore-card .visual-tile {
    height: 250px;
    min-height: 250px;
    transition:
        transform 0.35s,
        box-shadow 0.35s;
}
.explore-card:hover .visual-tile {
    transform: translateY(-7px);
    box-shadow: 0 22px 45px #0002;
}
.explore-card h3 {
    margin: 17px 0 5px;
    transition: color 0.2s;
}
.explore-card:hover h3 {
    color: var(--red);
}
.explore-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}
/* mission */
.mission {
    background: #eee9df;
    position: relative;
    overflow: hidden;
    background-image: 
        linear-gradient(
            115deg,
            #eee9df 0%,
            rgba(238, 233, 223, 0.86) 42%,
            rgba(238, 233, 223, 0.66) 74%,
            rgba(238, 233, 223, 0.25) 100%
        ),
        url("../img/bg/caau_meetup.jpeg");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
}
.mission:after {
    content: "友";
    position: absolute;
    right: -10px;
    bottom: 145px;
    font:
        800 22rem/1 "Noto Sans SC",
        sans-serif;
    color: #c8102e;
    opacity: 0.045;
    pointer-events: none;
}
.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    position: relative;
    z-index: 1;
}
.mission-card {
    position: relative;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid #fff;
    border-radius: var(--radius);
    padding: 38px;
    box-shadow: 0 12px 36px #29200d0a;
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.mission-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}
.mission-card.vision {
    background: var(--ink);
    color: var(--cream);
}
.mission-icon {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    display: grid;
    place-items: center;
    background: #f6c4452b;
    color: #9b7110;
    font-size: 1.5rem;
    margin-bottom: 26px;
}
.vision .mission-icon {
    background: #c8102e2e;
    color: #ff6c80;
}
.mission-card h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}
.mission-card p {
    margin: 0;
    color: var(--muted);
    font-size: 1.04rem;
    max-width: 560px;
}
.vision p {
    color: #e2ddd4;
}
.card-index {
    position: absolute;
    right: 28px;
    top: 23px;
    color: #d6ae52;
    font:
        800 2.8rem Manrope,
        sans-serif;
    opacity: 0.35;
}
/* connection strip */
.friendship {
    background: var(--ink);
    color: var(--cream);
    padding: 52px 0;
}
.friendship-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}
.friendship-copy {
    max-width: 680px;
}
.friendship h2 {
    font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.friendship p {
    margin: 10px 0 0;
    color: #d2cabe;
}
.friendship-flags {
    display: flex;
    align-items: center;
    gap: 15px;
}
.friendship-flags .flag {
    width: 62px;
    height: 42px;
}
.friendship-flags .flag-sep {
    font-size: 1.5rem;
}

/* =========================================
   JOIN CAAU
========================================= */

.join {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background: var(--red);
    color: #fff;
    padding: 90px 0 85px;
}

/* Subtle decorative background */
.join::before {
    content: "中";
    position: absolute;
    z-index: -1;
    right: 3%;
    top: 2%;
    font-family: "Noto Sans SC", sans-serif;
    font-size: clamp(15rem, 30vw, 28rem);
    font-weight: 800;
    line-height: 1;
    color: rgba(255,255,255,.045);
    pointer-events: none;
}

/* Intro layout */
.join-intro {
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    align-items: center;
    gap: 55px;
    padding-bottom: 75px;
}

.join .eyebrow {
    display: inline-block;
    color: #ffe6a0;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.join h2 {
    font-size: clamp(2.5rem, 5vw, 4.4rem);
    line-height: 1.04;
    letter-spacing: -.045em;
    margin: 14px 0 22px;
}

.join-lead {
    max-width: 680px;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    line-height: 1.8;
    color: rgba(255,255,255,.93);
}

.join-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 27px 0;
}

.join-benefits span {
    padding: 9px 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 30px;
    font-size: .83rem;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,.07);
}

.join-note {
    max-width: 620px;
    font-size: .94rem;
    line-height: 1.8;
    color: rgba(255,255,255,.78);
}

/* Membership action panel */
.join-action {
    padding: 34px;
    background: #fff;
    color: var(--ink, #171717);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(0,0,0,.16);
}

.join-action-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff1d0;
    color: var(--red);
    font-family: "Noto Sans SC", sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
}

.join-action h3 {
    margin: 22px 0 12px;
    font-size: 1.65rem;
    line-height: 1.25;
}

.join-action p {
    color: #626262;
    line-height: 1.75;
    margin-bottom: 24px;
}

.join-action .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    text-decoration: none;
}

.join-action-caption {
    display: block;
    margin-top: 15px;
    font-size: .76rem;
    color: #777;
}

/* =========================================
   CAAU LEADERSHIP
========================================= */

.leadership {
    padding-top: 65px;
    border-top: 1px solid rgba(255,255,255,.25);
}

.leadership-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 35px;
}

.leadership-heading h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin: 12px 0 0;
}

.leadership-heading > p {
    max-width: 390px;
    color: rgba(255,255,255,.8);
    font-size: .96rem;
    line-height: 1.75;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.leader-card {
    min-width: 0;
    overflow: hidden;
    background: #fff;
    color: #171717;
    border-radius: 13px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.leader-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.leader-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 4.5;
    overflow: hidden;
    background: #e9e3d8;
}

.leader-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transition: transform .5s ease;
}

.leader-card:hover .leader-photo img {
    transform: scale(1.045);
}

.leader-info {
    padding: 20px 18px 22px;
}

.leader-position {
    display: block;
    color: var(--red);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.leader-info h3 {
    font-size: 1.12rem;
    line-height: 1.35;
    margin: 0;
}

@media (max-width: 1000px) {
    .join-intro {
        grid-template-columns: 1fr .8fr;
        gap: 30px;
    }

    .leadership-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 700px) {
    .join {
        padding: 65px 0;
    }

    .join-intro {
        grid-template-columns: 1fr;
        gap: 35px;
        padding-bottom: 55px;
    }

    .join-action {
        padding: 27px;
    }

    .leadership {
        padding-top: 45px;
    }

    .leadership-heading {
        display: block;
    }

    .leadership-heading > p {
        margin-top: 16px;
    }

    .leadership-grid {
        gap: 14px;
    }

    .leader-info {
        padding: 15px 13px 18px;
    }

    .leader-info h3 {
        font-size: .98rem;
    }

    .leader-position {
        font-size: .65rem;
    }
}

@media (max-width: 420px) {
    .leadership-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .leader-photo {
        aspect-ratio: 4 / 4.8;
    }

    .leader-info {
        padding: 13px 10px 15px;
    }

    .leader-info h3 {
        font-size: .88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leader-card,
    .leader-photo img {
        transition: none;
    }

    .leader-card:hover {
        transform: none;
    }
}

/* =========================================
   CAAU NEWS & INSIGHTS
========================================= */

.news-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding-top: 90px;
    padding-bottom: 90px;

    background: linear-gradient(
        115deg,
        #f4eddd,
        #fffaf0
    );
}

/* Decorative Chinese character */
.news-section::after {
    content: "闻";
    position: absolute;
    right: 3%;
    top: -65px;

    font: 800 18rem/1 "Noto Sans SC", sans-serif;

    color: var(--gold2);
    opacity: 0.09;

    pointer-events: none;
    z-index: -1;
}

/* Keep content above decoration */
.news-section .wrap {
    position: relative;
    z-index: 1;
}

/* News grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 25px;

    align-items: stretch;
    margin-top: 40px;
}

/* Individual card */
.news-card {
    min-width: 0;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;

    box-shadow: 0 8px 25px rgba(23, 23, 23, 0.07);

    border: 1px solid rgba(23, 23, 23, 0.06);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.news-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 16px 35px rgba(23, 23, 23, 0.13);
}

/* Image area */
.news-image {
    display: block;
    width: 100%;

    aspect-ratio: 16 / 9;
    overflow: hidden;

    background: #e9e2d3;
}

.news-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.06);
}

/* Card content */
.news-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;

    padding: 21px 21px 19px;
}

/* Category and date */
.news-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;

    margin-bottom: 13px;

    font-size: 0.72rem;
}

.news-meta span {
    color: #a17b35;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.07em;
}

.news-meta time {
    color: #888;
    font-weight: 500;
}

/* Heading: consistent height */
.news-card h3 {
    font-size: 1.12rem;
    line-height: 1.4;
    font-weight: 750;

    color: var(--ink);

    margin: 0 0 12px;

    height: 3.15em;
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* Description: exactly three lines of space */
.news-description {
    font-size: 0.88rem;
    line-height: 1.65;

    color: #686868;

    margin: 0 0 20px;

    height: 4.95em;
    overflow: hidden;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* Read more link */
.news-read {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    width: fit-content;

    margin-top: auto;

    padding: 10px 0;

    color: #b18a3d;
    font-size: 0.88rem;
    font-weight: 800;

    text-decoration: none;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}

.news-read:hover {
    color: #c8102e;
    gap: 14px;
}

.news-read span {
    font-size: 1.1rem;
}

/* Publisher attribution */
.news-source {
    display: block;

    margin-top: 7px;
    padding-top: 11px;

    border-top: 1px solid rgba(23, 23, 23, 0.08);

    color: #999;
    font-size: 0.72rem;
}

/* =========================================
   RESPONSIVE LAYOUT
========================================= */

@media (max-width: 1100px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
    }
}

@media (max-width: 850px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .news-section {
        padding-top: 70px;
        padding-bottom: 70px;
    }
}

@media (max-width: 540px) {
    .news-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .news-card-content {
        padding: 20px;
    }

    .news-card h3 {
        font-size: 1.15rem;
    }

    .news-section::after {
        font-size: 12rem;
        right: -15px;
        top: -30px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-image img,
    .news-read {
        transition: none;
    }

    .news-card:hover {
        transform: none;
    }

    .news-card:hover .news-image img {
        transform: none;
    }
}


footer {
    background: var(--ink);
    color: #e8e3da;
    padding: 34px 0;
    font-size: 0.9rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}
.footer-brand {
    font-family: Manrope, sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
}
.footer-note {
    max-width: 700px;
    color: #bdb5a8;
    text-align: right;
}
/* motion */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in-view {
    opacity: 1;
    transform: none;
}
.delay-1 {
    transition-delay: 0.12s;
}
.delay-2 {
    transition-delay: 0.22s;
}
.delay-3 {
    transition-delay: 0.32s;
}
.float-mark {
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-9px);
    }
}
@media (hover: hover) {
    .visual-tile {
        transition: transform 0.4s;
    }
    .visual-tile:hover {
        transform: scale(1.015);
    }
}
:focus-visible {
    outline: 3px solid var(--red);
    outline-offset: 4px;
    border-radius: 5px;
}
@media (max-width: 980px) {
    .hero-grid {
        gap: 35px;
    }
    .explore-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .newsletter-inner {
        gap: 32px;
    }
    .links a {
        padding: 9px 9px;
        font-size: 0.84rem;
    }
}
@media (max-width: 760px) {
    .wrap {
        width: min(100% - 36px, 600px);
    }
    .section {
        padding: 70px 0;
    }
    .nav-inner {
        min-height: 70px;
    }
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 8px;
    }
    .links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;
        padding: 14px 18px 20px;
        background: #171717;
        border-top: 1px solid #ffffff20;
        box-shadow: 0 18px 30px #0004;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .links.open {
        display: flex;
    }
    .links a {
        padding: 13px 15px;
        border-radius: 12px;
        font-size: 0.96rem;
    }
    .nav-join {
        display: none;
    }
    .hero {
        padding: 70px 0 65px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-visual {
        min-height: 380px;
    }
    .hero-flags {
        right: 0;
        bottom: -12px;
    }
    .section-head {
        display: block;
    }
    .section-head p {
        margin-top: 14px;
    }
    .mission-grid {
        grid-template-columns: 1fr;
    }
    .mission-card {
        padding: 30px;
    }
    .friendship-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .newsletter-inner {
        grid-template-columns: 1fr;
        gap: 26px;
    }
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer-note {
        text-align: left;
    }
}
@media (max-width: 480px) {
    .wrap {
        width: calc(100% - 30px);
    }
    h1 {
        font-size: clamp(2.9rem, 13vw, 4rem);
    }
    .hero-visual {
        min-height: 330px;
        gap: 10px;
    }
    .visual-tile {
        border-radius: 18px;
    }
    .visual-tile.tall {
        min-height: 330px;
    }
    .visual-tile.campus,
    .visual-tile.community {
        min-height: 155px;
    }
    .explore-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }
    .explore-card .visual-tile {
        height: 175px;
        min-height: 175px;
    }
    .explore-card h3 {
        font-size: 1.08rem;
        margin-top: 12px;
    }
    .explore-card p {
        font-size: 0.83rem;
    }
    .path-card {
        padding: 27px 24px;
    }
    .path-card .btn {
        width: 100%;
    }
    .subscribe-form {
        display: grid;
        grid-template-columns: 1fr;
        padding: 10px;
    }
    .subscribe-form input {
        padding: 12px;
    }
    .subscribe-form button {
        width: 100%;
    }
    .mission-card {
        padding: 27px;
    }
    .friendship-flags .flag {
        width: 54px;
        height: 36px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* Podcasts Hero Section */
.podcasts-hero{
    background: var(--red);
    /* background: linear-gradient(145deg, #48423a, #242424); */
}