/* =========================================================================
   Home page styles: hero (video), marquee, sections.
   ========================================================================= */

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 82svh;
    display: flex;
    align-items: flex-start;
    padding-top: calc(var(--header-h) + 38px);
    padding-bottom: 84px;
    overflow: hidden;
    isolation: isolate;
    /* Pronounced slanted bottom edge for a bold, dynamic finish into the light page. */
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 90px));
}

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.05);
}
.hero__video--yt {
    border: 0;
    pointer-events: none;
    transform: scale(1.35);
    object-fit: unset;
    filter: none;
}
.video-card__frame video {
    object-fit: cover;
    background: #000;
}
/* Transparent black cinematic scrim over the video. */
.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.74) 0%, rgba(0, 0, 0, 0.55) 42%, rgba(0, 0, 0, 0.34) 68%, rgba(0, 0, 0, 0.5) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.45) 100%);
}
.hero__grain {
    position: absolute;
    inset: 0;
    opacity: 0.06;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
    width: 100%;
}

.hero__inner > * { min-width: 0; }
.hero__content { max-width: 640px; color: #fff; }

/* Hero CTAs tuned for the red backdrop (form submit keeps its own styling). */
.hero__actions .btn--primary {
    background: #fff;
    color: var(--red-600);
    border-color: transparent;
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45);
}
.hero__actions .btn--primary:hover { background: #fff; box-shadow: 0 22px 50px -12px rgba(0, 0, 0, 0.55); }
.hero__actions .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero__actions .btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.hero__badge {
    display: inline-block;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    color: #fff;
    margin-bottom: 16px;
}

.hero__title {
    font-size: clamp(2.05rem, 4.6vw, 3.75rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.04;
    margin-bottom: 14px;
    text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero__line { display: block; }

.hero__line-group {
    display: block;
}

.hero__line--place {
    color: #fff;
}

.hero__line--place-sub {
    margin-top: -0.04em;
    letter-spacing: -0.03em;
}

/* University name highlight in brand red on the dark hero. */
.hero .text-gradient {
    background: linear-gradient(100deg, #ff5a64 0%, var(--red) 60%, var(--red-600) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__lead {
    font-size: clamp(0.94rem, 1.35vw, 1.08rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 480px;
    margin-bottom: 20px;
    line-height: 1.55;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero__actions .btn--lg { padding: 14px 26px; font-size: 0.98rem; }

.hero__stats {
    display: flex;
    gap: clamp(16px, 3vw, 36px);
    flex-wrap: wrap;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stat-num {
    font-family: var(--font-head);
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 800;
    line-height: 1;
    color: #fff;
}
.hero__stats { padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.hero__stats span { color: rgba(255, 255, 255, 0.78); font-size: 0.84rem; margin-top: 5px; }

/* Kinetic line reveal */
[data-hero-line] {
    opacity: 0;
    transform: translateY(28px);
    animation: heroLineUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero__title [data-hero-line]:nth-child(1) { animation-delay: 0.15s; }
.hero__title [data-hero-line]:nth-child(2) { animation-delay: 0.28s; }
.hero__title .hero__line-group [data-hero-line]:nth-child(1) { animation-delay: 0.41s; }
.hero__title .hero__line-group [data-hero-line]:nth-child(2) { animation-delay: 0.52s; }
.hero__lead[data-hero-line] { animation-delay: 0.64s; }
.hero__actions[data-hero-line] { animation-delay: 0.76s; }
.hero__stats[data-hero-line] { animation-delay: 0.88s; }

@keyframes heroLineUp {
    to { opacity: 1; transform: none; }
}

/* Hero form card (glassmorphism) */
.hero__form { position: relative; }
.hero__form-card {
    position: relative;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(22px) saturate(140%);
    -webkit-backdrop-filter: blur(22px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: var(--radius-lg);
    padding: clamp(18px, 2.2vw, 26px);
    box-shadow: var(--shadow-lg);
    animation: heroLineUp 1s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    opacity: 0;
    transform: translateY(28px);
}

/* Compact density for the hero application form. */
.hero__form-card .apply-form { gap: 11px; }
.hero__form-card .apply-form__head { margin-bottom: 0; }
.hero__form-card .apply-form__title { font-size: 1.32rem; }
.hero__form-card .apply-form__subtitle { font-size: 0.76rem; margin-top: 3px; }
.hero__form-card .apply-form__field { gap: 5px; }
.hero__form-card .apply-form__row { gap: 11px; }
.hero__form-card .apply-form input,
.hero__form-card .apply-form select,
.hero__form-card .apply-form textarea { padding: 10px 13px; font-size: 0.92rem; }
.hero__form-card .apply-form textarea { min-height: 54px; }
.hero__form-card .apply-form__submit { margin-top: 2px; }
.hero__form-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(255, 77, 87, 0.55), transparent 40%, rgba(255, 255, 255, 0.12));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
}

.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    width: 26px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
    z-index: 1;
}
.hero__scroll-dot {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: #fff;
    animation: scrollDot 1.6s ease-in-out infinite;
}
@keyframes scrollDot {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ---------- Hero diagonal accent figure (IKU signature) ---------- */
.hero-accent {
    position: relative;
    height: 0;
    z-index: 4;
    pointer-events: none;
}
.hero-accent__mark {
    position: absolute;
    bottom: 12px;
    left: clamp(20px, 6vw, 104px);
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-accent__dot {
    flex: none;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.15);
    animation: heroAccentPulse 2.6s ease-in-out infinite;
}
.hero-accent__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    white-space: nowrap;
}
.hero-accent__text strong {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--red-600);
}
.hero-accent__text span {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}
.hero-accent__svg {
    width: clamp(120px, 16vw, 200px);
    height: auto;
    margin-left: 6px;
    overflow: visible;
}
@keyframes heroAccentPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}
@media (prefers-reduced-motion: reduce) {
    .hero-accent__dot { animation: none; }
}

/* ---------- Infographic bar (under hero) ---------- */
.infobar {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.5);
}
.infobar__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.infobar__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px clamp(16px, 2vw, 28px);
    position: relative;
}
.infobar__item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 22%;
    height: 56%;
    width: 1px;
    background: var(--border);
}
.infobar__icon {
    flex: none;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--red);
    background: rgba(227, 6, 19, 0.08);
    border: 1px solid rgba(227, 6, 19, 0.16);
}
.infobar__icon svg { width: 24px; height: 24px; }
.infobar__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.infobar__title { font-family: var(--font-head); font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.infobar__sub { color: var(--text-muted); font-size: 0.84rem; }

/* ---------- Nationalities globe (illustration) ---------- */
.globe-section {
    position: relative;
    padding: clamp(48px, 7vw, 92px) 0;
    background:
        radial-gradient(120% 120% at 50% -10%, rgba(227, 6, 19, 0.05), transparent 55%),
        linear-gradient(180deg, #fff 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    scroll-margin-top: calc(var(--header-h) + 16px);
}
.globe-section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(10px, 2vw, 26px); }
.globe-section__title {
    font-size: clamp(1.8rem, 3.6vw, 2.9rem);
    letter-spacing: -0.02em;
    margin: 10px 0 12px;
}
.globe-section__title .text-red { color: var(--red); }
.globe-section__lead { color: var(--text-muted); font-size: clamp(1rem, 1.4vw, 1.14rem); }
.globe-section__tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
    padding: 0;
    list-style: none;
}
.globe-section__tags li {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--red-600);
    background: rgba(227, 6, 19, 0.07);
    border: 1px solid rgba(227, 6, 19, 0.16);
    padding: 7px 14px;
    border-radius: 999px;
}

.globe { max-width: 1000px; margin: 0 auto; }
.globe__svg { width: 100%; height: auto; display: block; overflow: hidden; border-radius: var(--radius); }

.globe__map { opacity: 0.13; }

.globe__rings circle { fill: none; stroke: rgba(227, 6, 19, 0.22); stroke-width: 1; stroke-dasharray: 2 5; }
.globe__route {
    fill: none;
    stroke: var(--red);
    stroke-width: 1.6;
    opacity: 0.3;
    stroke-linecap: round;
    stroke-dasharray: 5 9;
    animation: routeflow 16s linear infinite;
}
@keyframes routeflow { to { stroke-dashoffset: -280; } }

.globe__hub-core { fill: var(--red); }
.globe__hub-ring { fill: none; stroke: var(--red); stroke-width: 1.5; animation: hubpulse 2.8s ease-out infinite; }
@keyframes hubpulse {
    0% { r: 6; opacity: 0.8; }
    100% { r: 26; opacity: 0; }
}
.globe__hub-label {
    fill: var(--text);
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.12em;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 3px;
    stroke-linejoin: round;
}

.globe__card { fill: #fff; stroke: rgba(15, 23, 42, 0.08); stroke-width: 1; }
.globe__flag { clip-path: inset(0 round 5px); transition: opacity 0.45s ease; }
.globe__flag.is-swapping { opacity: 0; }
.globe__pin { transition: transform 0.3s ease; transform-box: fill-box; transform-origin: center; }
.globe__pin:hover { transform: translateY(-4px) scale(1.06); }

@media (prefers-reduced-motion: reduce) {
    .globe__route, .globe__hub-ring { animation: none; }
}

/* ---------- News & Events widget ---------- */
.news-section {
    background:
        radial-gradient(circle at 8% 18%, rgba(227, 6, 19, 0.05), transparent 34%),
        radial-gradient(circle at 92% 82%, rgba(15, 23, 42, 0.04), transparent 36%),
        var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.news-section.section {
    padding-top: clamp(40px, 5vw, 72px);
    padding-bottom: clamp(24px, 3vw, 40px);
}
.news-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(28px, 4vw, 44px);
}
.news-section__intro { max-width: 680px; }
.news-section__all { flex: none; white-space: nowrap; }
.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}
.news-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) + 2px);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(227, 6, 19, 0.22);
    box-shadow: var(--shadow-lg);
}
.news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}
.news-card__media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--surface-2);
}
.news-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.news-card:hover .news-card__img { transform: scale(1.06); }
.news-card__tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 1;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--red-600);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px -12px rgba(15, 23, 42, 0.45);
}
.news-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    padding: 20px 20px 22px;
}
.news-card__date {
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.news-card__title {
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}
.news-card__text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card__more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
    color: var(--red);
    font-weight: 700;
    font-size: 0.88rem;
}
.news-card__more svg {
    width: 16px;
    height: 16px;
    transition: transform 0.25s ease;
}
.news-card:hover .news-card__more svg { transform: translateX(4px); }

/* ---------- Stat grid ---------- */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.stat-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.stat-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.stat-card__num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-card__label { display: block; font-weight: 600; margin: 8px 0 10px; }
.stat-card__text { color: var(--text-muted); font-size: 0.94rem; }

/* ---------- Why section: stock image blended into the right background ---------- */
.why-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.why-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(54%, 720px);
    background-image: url('../../assets/img/students.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
    -webkit-mask-image:
        linear-gradient(to left, #000 26%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to left, #000 26%, transparent 100%),
        linear-gradient(to bottom, transparent 0%, #000 16%, #000 84%, transparent 100%);
    mask-composite: intersect;
}
.why-section > .container {
    position: relative;
    z-index: 1;
}

/* Tighten the gap between quick-links and the coop band below. */
.why-section.section {
    padding-top: clamp(24px, 3vw, 40px);
    padding-bottom: clamp(12px, 2vw, 24px);
}

/* ---------- Partnership stats band + info strip ---------- */
.coop-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(56px, 8vw, 96px) 0 clamp(48px, 7vw, 80px);
    color: #fff;
}
.coop-band__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.coop-band__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.coop-band__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 14, 24, 0.72) 0%, rgba(10, 14, 24, 0.78) 55%, rgba(10, 14, 24, 0.88) 100%);
}
.coop-band__inner {
    position: relative;
    z-index: 2;
    text-align: center;
}
.coop-band__title {
    margin: 0 auto 36px;
    max-width: 20ch;
    font-family: var(--font-head);
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    color: #fff;
}
.coop-band__title span {
    position: relative;
    display: inline-block;
}
.coop-band__title span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 3px;
    border-radius: 2px;
    background: var(--red);
}
.coop-stats {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 4vw, 40px);
    max-width: 920px;
}
.coop-stats__item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
}
.coop-stats__icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: #fff;
}
.coop-stats__icon svg { width: 34px; height: 34px; }
.coop-stats__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.coop-stats__num {
    font-family: var(--font-head);
    font-size: clamp(1.8rem, 3.4vw, 2.45rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.coop-stats__label {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    font-weight: 500;
}

.info-strip {
    background: #2f343c;
    color: #fff;
    padding: clamp(28px, 4vw, 40px) 0;
}
.info-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}
.info-strip__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 18px 16px;
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease, transform 0.2s ease;
}
.info-strip__item:hover,
.info-strip__item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}
.info-strip__icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: #fff;
}
.info-strip__icon svg { width: 36px; height: 36px; }
.info-strip__title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
}
.info-strip__text {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.86rem;
    line-height: 1.45;
    max-width: 28ch;
}

.videos-section.section {
    padding-top: clamp(40px, 6vw, 64px);
    padding-bottom: clamp(20px, 3vw, 36px);
}

/* ---------- International IKU photo gallery ---------- */
.gallery-section.section {
    padding-top: clamp(28px, 4vw, 48px);
    padding-bottom: clamp(40px, 6vw, 72px);
}
.gallery-section__head {
    text-align: center;
    max-width: 640px;
    margin: 0 auto clamp(22px, 3vw, 34px);
}
.gallery-section__title {
    margin: 6px 0 10px;
    font-family: var(--font-head);
    font-size: clamp(1.7rem, 3.4vw, 2.4rem);
    font-weight: 700;
    line-height: 1.15;
}
.gallery-section__title .text-red { color: var(--red); }
.gallery-section__lead {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.photo-gallery__item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    cursor: zoom-in;
    background: var(--bg-2);
    aspect-ratio: 4 / 3;
    box-shadow: var(--shadow-md);
}
.photo-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.photo-gallery__item:hover img,
.photo-gallery__item:focus-visible img {
    transform: scale(1.05);
}
.photo-gallery__zoom {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #c53a42;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.55);
}
.photo-gallery__zoom svg { width: 16px; height: 16px; }
.photo-gallery__item:hover .photo-gallery__zoom,
.photo-gallery__item:focus-visible .photo-gallery__zoom {
    opacity: 1;
    transform: translateY(0);
}

.photo-gallery__item--link {
    text-decoration: none;
    color: inherit;
}

.photo-gallery__event {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(227, 6, 19, 0.92);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.photo-gallery__item--link:hover .photo-gallery__event,
.photo-gallery__item--link:focus-visible .photo-gallery__event {
    opacity: 1;
    transform: none;
}

.home-lightbox[hidden] { display: none !important; }
.home-lightbox {
    position: fixed;
    inset: 0;
    z-index: 220;
    display: grid;
    place-items: center;
    padding: 24px;
}
.home-lightbox__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    background: rgba(12, 17, 30, 0.82);
    backdrop-filter: blur(4px);
    cursor: zoom-out;
}
.home-lightbox__dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 1080px);
    max-height: calc(100vh - 48px);
}
.home-lightbox__img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 48px);
    object-fit: contain;
    border-radius: 14px;
    background: #0f172a;
    box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.65);
}
.home-lightbox__close {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 2;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
}
.home-lightbox__close svg { width: 18px; height: 18px; }
.home-lightbox__close:hover { color: #c53a42; }
.home-lightbox__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transform: translateY(-50%);
}
.home-lightbox__nav svg { width: 20px; height: 20px; }
.home-lightbox__nav:hover { color: #c53a42; }
.home-lightbox__nav--prev { left: -8px; }
.home-lightbox__nav--next { right: -8px; }
body.home-lightbox-open { overflow: hidden; }

/* ---------- Quick-access image tiles ---------- */
.quick-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: clamp(28px, 4vw, 48px);
}
.quick-tile {
    position: relative;
    display: block;
    min-height: 300px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.quick-tile__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}
.quick-tile:hover .quick-tile__img { transform: scale(1.07); }
.quick-tile__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.15) 0%, rgba(15, 23, 42, 0.55) 55%, rgba(12, 17, 30, 0.88) 100%);
    transition: background 0.3s ease;
}
.quick-tile:hover .quick-tile__shade {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.25) 0%, rgba(120, 8, 15, 0.55) 55%, rgba(120, 8, 15, 0.9) 100%);
}
.quick-tile__body {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px 22px 24px;
    color: #fff;
}
.quick-tile__title {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.22rem;
    line-height: 1.2;
}
.quick-tile__text {
    font-size: 0.9rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.86);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}
.quick-tile:hover .quick-tile__text,
.quick-tile:focus-visible .quick-tile__text {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}
.quick-tile__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
}
.quick-tile__cta svg {
    width: 17px;
    height: 17px;
    transition: transform 0.3s ease;
}
.quick-tile:hover .quick-tile__cta svg { transform: translateX(4px); }

/* ---------- Video widget (YouTube facade) ---------- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: clamp(28px, 4vw, 46px);
}
.video-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 0;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    background: #0c111e;
    box-shadow: var(--shadow-md);
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.video-card__thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.6s ease;
}
.video-card:hover .video-card__thumb { transform: scale(1.06); }
.video-card__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(12, 17, 30, 0) 40%, rgba(12, 17, 30, 0.82) 100%);
}
.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--red);
    box-shadow: 0 10px 30px -8px rgba(15, 23, 42, 0.6);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.video-card__play svg { width: 26px; height: 26px; margin-left: 3px; }
.video-card:hover .video-card__play,
.video-card:focus-visible .video-card__play {
    background: var(--red);
    color: #fff;
    transform: translate(-50%, -50%) scale(1.08);
}
.video-card__title {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 3;
    padding: 16px 18px;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.25;
    text-align: left;
}
.video-card__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    z-index: 4;
}

/* ---------- Feature band ---------- */
.feature-band__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(32px, 5vw, 70px);
    align-items: center;
}
.feature-band__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.feature-band__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 5 / 6; }
.feature-band__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}
.feature-band__badge strong { display: block; font-family: var(--font-head); font-size: 1.2rem; }
.feature-band__badge span { color: var(--text-muted); font-size: 0.86rem; }

.feature-list { display: grid; gap: 20px; }
.feature-list__item { display: flex; gap: 16px; align-items: flex-start; }
.feature-list__marker {
    flex: none;
    width: 14px;
    height: 14px;
    margin-top: 6px;
    border-radius: 4px;
    background: linear-gradient(135deg, var(--red), var(--red-600));
    box-shadow: 0 0 0 4px rgba(227, 6, 19, 0.14);
}
.feature-list__title { font-size: 1.12rem; margin-bottom: 4px; }
.feature-list__text { color: var(--text-muted); font-size: 0.96rem; }

/* ---------- Program preview grid ---------- */
.program-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.program-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.program-card::after {
    content: '';
    position: absolute;
    inset: auto -40% -60% auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.22), transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.program-card:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--shadow-lg); }
.program-card:hover::after { opacity: 1; }
.program-card__title { font-size: 1.3rem; margin-bottom: 10px; position: relative; }
.program-card__text { color: var(--text-muted); margin-bottom: 18px; position: relative; }
.program-card__link { color: var(--accent); font-weight: 600; position: relative; }
.program-card__link:hover { color: var(--red); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: minmax(0, 1fr); gap: 40px; }
    .hero { min-height: auto; padding-bottom: 60px; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 60px)); }
    .hero__content { max-width: 640px; }
    .hero__scroll { display: none; }
    .infobar__grid { grid-template-columns: repeat(2, 1fr); }
    .infobar__item:nth-child(2)::after { display: none; }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .news-section__head { flex-direction: column; align-items: flex-start; }
    .quick-links { grid-template-columns: repeat(2, 1fr); }
    .video-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-band__grid { grid-template-columns: 1fr; }
    .feature-band__media { max-width: 480px; }
    .info-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .coop-band__title { max-width: 22ch; }
    .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .program-grid { grid-template-columns: 1fr; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .infobar__grid { grid-template-columns: 1fr; }
    .infobar__item::after { display: none !important; }
    .infobar__item { padding: 16px 18px; border-bottom: 1px solid var(--border); }
    .infobar__item:last-child { border-bottom: 0; }
    .hero-accent { display: none; }
    .globe-section__tags li { font-size: 0.74rem; padding: 6px 11px; }
    .news-grid { grid-template-columns: 1fr; }
    .news-section__all { width: 100%; }
    .quick-links { grid-template-columns: 1fr; }
    .video-grid { grid-template-columns: 1fr; }
    .quick-tile { min-height: 240px; }
    /* Touch devices have no hover: reveal the description by default. */
    .quick-tile__text { max-height: 120px; opacity: 1; transform: none; }
    .coop-stats {
        grid-template-columns: 1fr;
        gap: 22px;
        max-width: 280px;
    }
    .coop-stats__item { justify-content: flex-start; }
    .info-strip__grid { grid-template-columns: 1fr; }
    .info-strip__text { max-width: none; }
    .photo-gallery { grid-template-columns: 1fr; gap: 12px; }
    .photo-gallery__zoom { opacity: 1; transform: none; }
    .home-lightbox__nav--prev { left: 8px; }
    .home-lightbox__nav--next { right: 8px; }
    .home-lightbox__close { top: 8px; right: 8px; }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .stat-card { padding: 20px 18px; }
    .stat-card__num { font-size: 1.9rem; }
}

/* ---------- Homepage dormitories + FAQ widgets ---------- */
.home-widget--dorm {
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.9), #fff 40%),
        radial-gradient(ellipse at 10% 20%, rgba(227, 6, 19, 0.06), transparent 55%);
}

.home-widget__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}

.home-widget__media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 280px;
}

.home-widget__media img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
    display: block;
}

.home-dorm-pills {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-dorm-pills li {
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
}

.home-widget__content .section__lead {
    margin-bottom: 22px;
}

.home-widget__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 26px;
    padding: 0;
    list-style: none;
}

.home-widget__stats li {
    display: grid;
    gap: 4px;
    padding: 14px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
}

.home-widget__stats strong {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--red);
    line-height: 1.1;
}

.home-widget__stats span {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.35;
}

.home-widget--faq {
    padding-top: clamp(28px, 4vw, 48px);
}

.home-widget__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: clamp(22px, 3vw, 34px);
}

.home-widget__head .section__lead {
    margin-bottom: 0;
    max-width: 56ch;
}

.home-faq-accordion.accordion {
    display: grid;
    gap: 10px;
}

.home-faq-accordion .accordion__item {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #fff;
    overflow: hidden;
}

.home-faq-accordion .accordion__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
    padding: 16px 18px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 650;
    color: var(--text);
}

.home-faq-accordion .accordion__icon {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.home-faq-accordion .accordion__icon::before,
.home-faq-accordion .accordion__icon::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 12px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
}

.home-faq-accordion .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.2s ease;
}

.home-faq-accordion .accordion__trigger[aria-expanded="true"] .accordion__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.home-faq-accordion .accordion__panel {
    padding: 0 18px 16px;
}

.home-faq-accordion .accordion__panel p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.6;
}

.home-widget__foot {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.home-widget__empty {
    color: var(--text-muted);
}

@media (max-width: 900px) {
    .home-widget__grid { grid-template-columns: 1fr; }
    .home-widget__media img { min-height: 240px; }
    .home-widget__head {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .home-widget__stats { grid-template-columns: 1fr; }
    .home-dorm-pills li { font-size: 0.72rem; }
}
