/* ============================================================
   Student portal landing · site/index
   Neutral-first editorial UI. Bootstrap 5 handles structure;
   this file contains only page-specific visual primitives.
   ============================================================ */

/* ---------- Page rhythm ---------- */
.gh-section {
    padding-block: clamp(4rem, 7vw, 6.5rem);
}

.gh-section--compact {
    padding-block: clamp(3rem, 5vw, 4.5rem);
}

.gh-section--muted {
    background: var(--g-surface-2);
    border-block: 1px solid var(--g-border);
}

/* Dark mode keeps the whole page on one background (see guest.css). */
[data-guest-theme="dark"] .gh-section--muted {
    background: var(--g-bg);
}

.gh-kicker {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--g-accent-ink);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.gh-kicker::before {
    width: 1.25rem;
    height: 2px;
    border-radius: 999px;
    background: var(--g-gradient);
    content: "";
}

.gh-heading {
    max-width: 46rem;
}

.gh-heading h2 {
    margin: .75rem 0 0;
    color: var(--g-text);
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.gh-heading p {
    max-width: 39rem;
    margin: .85rem 0 0;
    color: var(--g-text-muted);
    font-size: .96rem;
    line-height: 1.7;
}

/* ---------- Hero notice ticker ----------
   A thin full-width bar at the top of the hero. Shares the mega-menu's notice
   language (date chip + clamped title) so the two read as one component. */
.gh-ticker {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: .85rem;
    width: 100%;
    margin: 0 0 clamp(2.5rem, 5vw, 3.75rem);
    padding: .4rem .45rem .4rem 1rem;
    border: 1px solid var(--g-border);
    border-radius: 999px;
    background: color-mix(in srgb, var(--g-surface) 86%, transparent);
    backdrop-filter: blur(10px) saturate(1.3);
    box-shadow: var(--g-shadow-sm);
}

.gh-ticker__label {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex: none;
    padding-right: .85rem;
    border-right: 1px solid var(--g-border);
    color: var(--g-accent-ink);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.gh-ticker__label i { font-size: .8rem; }

/* Fixed-height stage. Items are stacked and rolled through it, so there is no
   track width to measure; the viewport just absorbs the free row space.
   --gh-shift is the travel distance (one viewport height) and its sign is the
   direction: positive means the next notice rises from below. */
.gh-ticker__viewport {
    --gh-shift: 2.25rem;
    --gh-roll: cubic-bezier(.22, .68, .32, 1);
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    height: 2.25rem;
    overflow: hidden;
}
.gh-ticker[data-gh-dir="prev"] .gh-ticker__viewport { --gh-shift: -2.25rem; }

.gh-ticker__item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: .6rem;
    opacity: 0;
    text-decoration: none;
    pointer-events: none;
    transition: opacity .34s var(--g-ease);
}
.gh-ticker__item.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* The parent only crossfades; the three parts roll on a short stagger, which
   reads as one line of type lifting into place rather than a block swap.
   Outgoing parts leave together in the opposite direction, so the notice
   passes through the strip instead of bouncing back the way it came. */
.gh-ticker__date,
.gh-ticker__title,
.gh-ticker__go {
    transform: translateY(var(--gh-shift));
    transition: transform .5s var(--gh-roll);
}
.gh-ticker__item.is-active > * { transform: none; }
.gh-ticker__item.is-active > .gh-ticker__title { transition-delay: .05s; }
.gh-ticker__item.is-active > .gh-ticker__go { transition-delay: .1s; }
.gh-ticker__item.is-leaving > * { transform: translateY(calc(var(--gh-shift) * -1)); }
/* One frame with no transition, while js/index.js moves a parked notice back
   to the entry side. See prime(). */
.gh-ticker__item.is-priming > * { transition: none; }

/* Date chip — same proportions as .gmm__notice-date. */
.gh-ticker__date {
    display: grid;
    width: 32px;
    flex: none;
    padding: .15rem 0;
    justify-items: center;
    border-radius: 7px;
    background: var(--g-surface-2);
    color: var(--g-text-muted);
    font-size: .56rem;
    font-weight: 600;
    line-height: 1.15;
    text-transform: uppercase;
}
.gh-ticker__date b {
    color: var(--g-text);
    font-size: .78rem;
    font-weight: 750;
}

.gh-ticker__title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--g-text);
    font-size: .82rem;
    font-weight: 600;
}
.gh-ticker__go { flex: none; color: var(--g-text-faint); font-size: .72rem; }
.gh-ticker__item:hover .gh-ticker__title { color: var(--g-accent-strong); }
.gh-ticker__item:hover .gh-ticker__go { color: var(--g-accent-ink); }
/* Inset, because the viewport clips anything drawn outside its box. */
.gh-ticker__item:focus-visible { outline: 2px solid var(--g-accent); outline-offset: -2px; border-radius: 8px; }

.gh-ticker__nav {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: none;
    padding-left: .25rem;
}

.gh-ticker__btn {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--g-text-faint);
    font-size: .7rem;
    cursor: pointer;
    transition: background-color .16s var(--g-ease), color .16s var(--g-ease);
}
.gh-ticker__btn:hover { background: var(--g-surface-2); color: var(--g-text); }
.gh-ticker__btn:focus-visible { outline: 2px solid var(--g-accent); outline-offset: 1px; }

.gh-ticker__dots { display: inline-flex; align-items: center; gap: .25rem; }
.gh-ticker__dot {
    width: .3rem;
    height: .3rem;
    border-radius: 50%;
    background: var(--g-border-strong);
    transition: background-color .25s var(--g-ease), width .25s var(--g-ease);
}
.gh-ticker__dot.is-active { width: .85rem; border-radius: 999px; background: var(--g-accent); }

.gh-ticker__all {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: none;
    margin-left: .15rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    color: var(--g-accent-ink);
    font-size: .72rem;
    font-weight: 650;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .16s var(--g-ease);
}
.gh-ticker__all:hover { background: color-mix(in srgb, var(--g-accent) 10%, transparent); color: var(--g-accent-strong); }

[data-guest-theme="dark"] .gh-ticker {
    background: color-mix(in srgb, var(--g-surface) 70%, transparent);
}

/* Narrow screens: drop the label text and the "view all" tail so the rotator
   keeps the width it needs without wrapping the bar. */
@media (max-width: 767.98px) {
    .gh-ticker { gap: .55rem; padding-left: .7rem; }
    .gh-ticker__label-text,
    .gh-ticker__all { display: none; }
    .gh-ticker__label { padding-right: .6rem; }
}

@media (max-width: 420px) {
    .gh-ticker__dots { display: none; }
}

/* Autoplay is already off under this setting (see js/index.js); arrow presses
   become a plain crossfade so nothing slides. */
@media (prefers-reduced-motion: reduce) {
    .gh-ticker__item > * { transform: none; transition-delay: 0s; }
}

/* ---------- Hero ---------- */

.gh-hero {
    position: relative;
    padding-block: clamp(4rem, 8vw, 7.5rem);
    /* Transparent so the page-level fixed glow backdrop (.g-body::before) shows
       through; no own background/overflow so there is no hard top edge that
       cuts the gradient when an alert sits above the hero. */
    background: transparent;
    border-bottom: 1px solid var(--g-border);
}

/* Logged-in: the "welcome back" card is taller than the guest sign-in card,
   so with equal padding the whole row sits low and looks bottom-weighted.
   Trimming the top padding lifts the row back toward the optical centre of
   the viewport. Bottom padding is unchanged so the section keeps its footing. */
.gh-hero--member {
    padding-top: clamp(2rem, 4vw, 3.5rem);
}

/* With a ticker present, the bar takes over most of the hero's top padding
   rather than adding to it — otherwise it floats in the middle of a tall gap,
   far from both the header and the hero row. Last so it also wins for the
   logged-in hero above. */
.gh-hero--ticker { padding-top: clamp(1.5rem, 3vw, 2.25rem); }

/* Corner glows now live on the page-level fixed backdrop (.g-body::before in
   guest.css) so they never shift or get cut by an alert above the hero. */

.gh-hero__content,
.gh-hero__access {
    position: relative;
    z-index: 1;
}

.gh-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .45rem .8rem;
    border: 1px solid var(--g-border);
    border-radius: 999px;
    background: var(--g-surface);
    color: var(--g-text-muted);
    box-shadow: var(--g-shadow-sm);
    font-size: .76rem;
    font-weight: 600;
}

/* Secondary (slate) tile, not the accent gradient — the badge is a quiet
   label above the headline, so it shouldn't compete with the CTA below it. */
.gh-hero__eyebrow-icon {
    display: grid;
    width: 1.55rem;
    height: 1.55rem;
    place-items: center;
    border-radius: 50%;
    background: var(--g-surface-2);
    box-shadow: inset 0 0 0 1px var(--g-border);
    color: var(--g-text-muted);
}

.gh-hero__title {
    /* Wide enough to keep the base name (everything before the comma) on a
       single line, so the explicit <br> before the city is the only break and
       the headline reads as two lines — base, then the emphasised city — rather
       than wrapping the base across two lines of its own. */
    max-width: 24ch;
    margin: 1.4rem 0 1.3rem;
    color: var(--g-text);
    font-size: clamp(2.1rem, 4.6vw, 4.4rem);
    font-weight: 790;
    letter-spacing: -.05em;
    line-height: 1.02;
    text-wrap: balance;
}

.gh-hero__title em {
    position: relative;
    display: inline-block;
    color: var(--g-text);
    font-style: normal;
    white-space: nowrap;
}

/* A clean, straight accent underline under the emphasised phrase — a crisp
   bar in the brand gradient with softly rounded ends. Replaces the earlier
   hand-drawn marker swoosh, which read as informal against an institutional
   portal. Sized in em so it tracks the headline at every clamp step. */
.gh-hero__title em::after {
    position: absolute;
    right: 0;
    bottom: -.12em;
    left: 0;
    height: .11em;
    min-height: 3px;
    border-radius: 999px;
    background: var(--g-gradient);
    content: "";
    pointer-events: none;
}

.gh-hero__lead {
    max-width: 39rem;
    margin: 1.6rem 0 .5rem;
    color: var(--g-text-muted);
    font-size: clamp(1rem, 1.5vw, 1.12rem);
    line-height: 1.72;
}

/* Institution name in the lead — bold, with the same gradient underline
   accent used on the hero title's emphasis. */
.gh-hero__inst {
    position: relative;
    color: var(--g-text);
    font-weight: 700;
    white-space: nowrap;
}

/* The straight accent bar uses --g-gradient, which is already theme-aware, so
   the dark theme needs no separate stroke override. */

.gh-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.8rem;
}

.gh-hero__button {
    display: inline-flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .75rem 1.2rem;
    border-radius: var(--g-r-md);
    font-size: .9rem;
    font-weight: 650;
    text-decoration: none;
}

.gh-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 1.15rem;
    margin-top: 1.5rem;
    color: var(--g-text-muted);
    font-size: .78rem;
}

.gh-hero__trust span {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.gh-hero__trust i {
    color: var(--g-accent-ink);
}

/* ---------- Hero dark access card (right column) ---------- */
.gh-access {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 2rem);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--g-r-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .18), transparent 42%),
        linear-gradient(145deg, var(--g-navy-2), var(--g-navy));
    color: #fff;
    box-shadow: 0 28px 70px -32px rgba(2, 6, 23, .75);
}

.gh-access::before {
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: var(--g-gradient);
    content: "";
}

.gh-access__header {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.gh-access__overline {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
    color: #bfdbfe;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gh-access__divider {
    margin: 1rem 0 1.3rem;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    opacity: 1;
}

.gh-access__title {
    margin: 0 0 .5rem;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 740;
    letter-spacing: -.03em;
}

.gh-access__copy {
    margin: 0;
    color: rgba(255, 255, 255, .62);
    font-size: .86rem;
    line-height: 1.65;
}

.gh-access__primary,
.gh-access__secondary {
    display: flex;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: var(--g-r-md);
    font-size: .88rem;
    font-weight: 650;
    text-decoration: none;
    transition: transform .18s var(--g-ease), background .18s var(--g-ease), border-color .18s var(--g-ease);
}

.gh-access__primary {
    margin-top: 1.4rem;
    background: #fff;
    color: #111827;
}

/* Member card: dashboard CTA shares a row with a compact logout button.
   Dashboard takes the lion's share (~2/3), logout a tidy third on its right. */
.gh-access__cta-row {
    display: flex;
    gap: .5rem;
    margin-top: 1.1rem;
    align-items: stretch;
}

.gh-access__cta-row .gh-access__primary {
    flex: 2 1 0;
    margin-top: 0;
}

.gh-access__logout {
    flex: 1 1 0;
    display: flex;
    margin: 0;
    padding: 0;
}

.gh-access__logout button {
    display: flex;
    width: 100%;
    min-height: 3rem;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--g-r-md);
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font: inherit;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s var(--g-ease), border-color .18s var(--g-ease), color .18s var(--g-ease), transform .18s var(--g-ease);
}

.gh-access__logout button i { font-size: 1rem; }

.gh-access__logout button:hover {
    background: rgba(248, 113, 113, .14);
    border-color: rgba(248, 113, 113, .4);
    color: #fecaca;
    transform: translateY(-1px);
}

.gh-access__logout button:focus-visible {
    outline: 2px solid #bfdbfe;
    outline-offset: 2px;
}

.gh-access__primary:hover {
    color: #111827;
    transform: translateY(-1px);
}

/* Custom line icons for the member card. Stroke-based and currentColor-driven
   so one rule sizes and colours them wherever they appear — the dashboard CTA
   inherits the button's dark ink, the meta labels inherit the accent. */
.gh-ico {
    width: 1.05em;
    height: 1.05em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

/* On the white dashboard button the 4-tile mark reads better a hair bolder. */
.gh-access__primary .gh-ico {
    width: 1.15em;
    height: 1.15em;
    stroke-width: 1.9;
}

/* Rounded accent tile behind the meta-row icons. Gives the enrolment/email
   glyphs a soft chip of colour so they read as crisp, deliberate marks on the
   dark card rather than loose line art. */
.gh-ico-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    flex: none;
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(96, 165, 250, .22), rgba(96, 165, 250, .08));
    border: 1px solid rgba(96, 165, 250, .22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.gh-ico-tile .gh-ico {
    width: 1.05rem;
    height: 1.05rem;
    stroke-width: 1.65;
}

.gh-member__meta-row:hover .gh-ico-tile {
    background: linear-gradient(145deg, rgba(96, 165, 250, .32), rgba(96, 165, 250, .12));
    border-color: rgba(96, 165, 250, .4);
    transform: translateY(-1px);
}

.gh-access__secondary {
    margin-top: .65rem;
    border: 1px solid rgba(255, 255, 255, .18);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.gh-access__secondary:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .1);
    color: #fff;
    transform: translateY(-1px);
}

.gh-access__links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem;
    margin-top: 1rem;
}

.gh-access__link {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    padding: .75rem .35rem;
    border-radius: 10px;
    color: rgba(255, 255, 255, .64);
    font-size: .69rem;
    text-align: center;
    text-decoration: none;
    transition: background .18s var(--g-ease), color .18s var(--g-ease);
}

.gh-access__link i {
    color: rgba(255, 255, 255, .9);
    font-size: 1rem;
}

.gh-access__link:hover {
    background: rgba(255, 255, 255, .07);
    color: #fff;
}

.gh-access__status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .5);
    font-size: .68rem;
}

.gh-access__status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 3px rgba(52, 211, 153, .25);
    content: "";
}

/* ---------- Logged-in (member) variant of the access card ---------- */
.gh-member {
    display: flex;
    align-items: center;
    gap: .85rem;
}

.gh-member__avatar {
    display: grid;
    width: 3rem;
    height: 3rem;
    flex: none;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: var(--g-gradient);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .02em;
    box-shadow: 0 6px 18px -8px rgba(37, 99, 235, .8);
}

.gh-member__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gh-member__id {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.gh-member__name {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 720;
    letter-spacing: -.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-member__role {
    color: rgba(255, 255, 255, .55);
    font-size: .76rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-member__meta {
    display: grid;
    gap: 0;
    margin: 1.25rem 0 0;
    padding: .35rem 1rem;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--g-r-md);
    background: rgba(255, 255, 255, .04);
}

/* Each field is a label row above its value, with a hairline divider between
   fields. This gives the email the full card width instead of a cramped,
   right-aligned truncation and keeps the uppercase labels aligned. */
.gh-member__meta-row {
    display: grid;
    gap: .2rem;
    padding: .7rem 0;
}

.gh-member__meta-row + .gh-member__meta-row {
    border-top: 1px solid rgba(255, 255, 255, .08);
}

.gh-member__meta dt {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    margin: 0;
    color: rgba(255, 255, 255, .5);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.gh-member__meta dt .gh-ico { color: #bfdbfe; }

.gh-member__meta dd {
    min-width: 0;
    margin: 0;
    padding-left: 2.45rem;
    color: #fff;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
}

/* Enrolment is a short code — size it up a touch and give it a monospace feel
   so it reads as an identifier. */
.gh-member__meta-row:not(.gh-member__meta-row--email) dd {
    font-size: .95rem;
    letter-spacing: .04em;
}

/* Email can be long: let it wrap/break instead of truncating, since it now
   owns a full-width row. */
.gh-member__meta-row--email dd {
    font-weight: 500;
    font-size: .84rem;
    word-break: break-all;
}

.gh-member__truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Member card now carries Sign out in the CTA row, so its secondary link
   row holds just two items — split them evenly. */
.gh-access--member .gh-access__links {
    grid-template-columns: repeat(2, 1fr);
}

/* ---------- Featured banner (separate full-width section) ---------- */
.gh-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--g-border);
    border-radius: var(--g-r-xl);
    background: #fff;
    box-shadow: var(--g-shadow);
}

/* Fixed-height frame. The sharp image is centred (contain); any gap is
   filled by a blurred, scaled copy of the same image so edges blend. */
.gh-banner .carousel-inner,
.gh-banner .carousel-item,
.gh-banner__slide {
    height: clamp(14rem, 22vw, 19rem);
}

.gh-banner__slide {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
}

/* Blurred backdrop — same image, covers the frame, scaled so blur edges
   don't show, dimmed slightly so the foreground image stays dominant. */
.gh-banner__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.15);
    filter: blur(26px) saturate(1.15) brightness(.92);
}

/* Sharp foreground image — centred both axes, never cropped. */
.gh-banner__img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.gh-banner .carousel-indicators {
    margin-bottom: .7rem;
}

.gh-banner .carousel-indicators [data-bs-target] {
    width: 22px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .55);
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
    opacity: 1;
}

.gh-banner .carousel-indicators .active {
    width: 32px;
    background: #fff;
}

.gh-banner .carousel-control-prev-icon,
.gh-banner .carousel-control-next-icon {
    padding: 1rem;
    border-radius: 50%;
    background-color: rgba(15, 23, 42, .55);
    background-size: 45%;
}

.gh-banner .carousel-control-prev,
.gh-banner .carousel-control-next {
    width: 8%;
    opacity: 0;
    transition: opacity .2s var(--g-ease);
}

/* Hidden until hover, so keyboard focus must reveal it too, or Tab lands on
   an invisible control. The ring sits on the arrow circle, not the strip. */
.gh-banner .carousel-control-prev:focus-visible,
.gh-banner .carousel-control-next:focus-visible { opacity: 1; outline: 0; }
.gh-banner .carousel-control-prev:focus-visible .carousel-control-prev-icon,
.gh-banner .carousel-control-next:focus-visible .carousel-control-next-icon {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--g-accent);
}

.gh-banner:hover .carousel-control-prev,
.gh-banner:hover .carousel-control-next {
    opacity: .9;
}

/* ---------- Services bento ---------- */
.gh-bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
}

.gh-service {
    position: relative;
    display: flex;
    min-height: 12rem;
    flex-direction: column;
    padding: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--g-border);
    border-radius: var(--g-r-lg);
    background: var(--g-surface);
    color: var(--g-text);
    text-decoration: none;
    transition: transform .2s var(--g-ease), box-shadow .2s var(--g-ease), border-color .2s var(--g-ease);
}

.gh-service:hover {
    border-color: var(--g-border-strong);
    color: var(--g-text);
    box-shadow: var(--g-shadow);
    transform: translateY(-2px);
}

.gh-service--wide {
    grid-column: span 6;
}

.gh-service--small {
    grid-column: span 3;
}

.gh-service--navy {
    border-color: transparent;
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .18), transparent 45%),
        var(--g-navy);
    color: #fff;
}

.gh-service--navy:hover {
    border-color: rgba(255, 255, 255, .15);
    color: #fff;
}

.gh-service__icon {
    display: grid;
    width: 2.75rem;
    height: 2.75rem;
    place-items: center;
    border-radius: 12px;
    background: var(--g-surface-2);
    color: var(--g-text-muted);
    font-size: 1.15rem;
}

.gh-service--navy .gh-service__icon {
    background: rgba(255, 255, 255, .09);
    color: #fff;
}

.gh-service__arrow {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border: 1px solid var(--g-border);
    border-radius: 50%;
    color: var(--g-text-faint);
    transition: transform .18s var(--g-ease), color .18s var(--g-ease);
}

.gh-service--navy .gh-service__arrow {
    border-color: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .65);
}

.gh-service:hover .gh-service__arrow {
    color: var(--g-accent-ink);
    transform: translate(2px, -2px);
}

.gh-service--navy:hover .gh-service__arrow {
    color: #fff;
}

.gh-service__eyebrow {
    margin-top: auto;
    color: var(--g-text-faint);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gh-service--navy .gh-service__eyebrow {
    color: rgba(255, 255, 255, .48);
}

.gh-service h3 {
    margin: .55rem 0 .35rem;
    color: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.gh-service--wide h3 {
    font-size: 1.35rem;
}

.gh-service p {
    margin: 0;
    color: var(--g-text-muted);
    font-size: .82rem;
    line-height: 1.55;
}

.gh-service--navy p {
    max-width: 31rem;
    color: rgba(255, 255, 255, .6);
}

/* Tone-specific neutral icon accents; not large coloured surfaces. */
.gh-service--amber .gh-service__icon { background: #fffbeb; color: #b45309; }
.gh-service--emerald .gh-service__icon { background: #ecfdf5; color: #047857; }
.gh-service--rose .gh-service__icon { background: #fff1f2; color: #be123c; }
[data-guest-theme="dark"] .gh-service--amber .gh-service__icon { background: rgba(180, 83, 9, .14); color: #fbbf24; }
[data-guest-theme="dark"] .gh-service--emerald .gh-service__icon { background: rgba(4, 120, 87, .16); color: #34d399; }
[data-guest-theme="dark"] .gh-service--rose .gh-service__icon { background: rgba(190, 18, 60, .15); color: #fb7185; }

/* ---------- Student journey ---------- */
.gh-journey {
    position: relative;
}

.gh-journey__steps {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2.5rem;
}

.gh-journey__steps::before {
    position: absolute;
    top: 1.45rem;
    right: 12.5%;
    left: 12.5%;
    height: 1px;
    background: var(--g-border-strong);
    content: "";
}

.gh-step {
    position: relative;
    z-index: 1;
    text-align: center;
}

.gh-step__number {
    display: grid;
    width: 2.9rem;
    height: 2.9rem;
    margin: 0 auto 1rem;
    place-items: center;
    border: 1px solid var(--g-border-strong);
    border-radius: 50%;
    background: var(--g-surface);
    color: var(--g-text);
    box-shadow: var(--g-shadow-sm);
    font-size: .82rem;
    font-weight: 700;
}

.gh-step:first-child .gh-step__number {
    border-color: transparent;
    background: var(--g-gradient);
    color: #fff;
}

.gh-step h3 {
    margin: 0 0 .4rem;
    color: var(--g-text);
    font-size: .94rem;
    font-weight: 700;
}

.gh-step p {
    margin: 0 auto;
    color: var(--g-text-muted);
    font-size: .78rem;
    line-height: 1.5;
}

/* ---------- Updates ---------- */
.gh-updates {
    overflow: hidden;
    border: 1px solid var(--g-border);
    border-radius: var(--g-r-xl);
    background: var(--g-surface);
    box-shadow: var(--g-shadow-sm);
}

.gh-updates__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    border-bottom: 1px solid var(--g-border);
}

.gh-updates__head h3 {
    margin: 0;
    color: var(--g-text);
    font-size: 1rem;
    font-weight: 700;
}

.gh-updates__head a {
    color: var(--g-accent-ink);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none;
}

.gh-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: .9rem;
    padding: .9rem 1.1rem;
    border-bottom: 1px solid var(--g-border);
    color: var(--g-text);
    text-decoration: none;
    transition: background .18s var(--g-ease);
}

.gh-notice:last-child {
    border-bottom: 0;
}

.gh-notice:hover {
    background: var(--g-surface-2);
    color: var(--g-text);
}

.gh-notice__date {
    min-width: 3rem;
    color: var(--g-text-faint);
    font-size: .69rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.gh-notice__date b {
    display: block;
    color: var(--g-text);
    font-size: 1rem;
}

.gh-notice__title {
    min-width: 0;
    overflow: hidden;
    font-size: .86rem;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-notice__arrow {
    color: var(--g-text-faint);
}

.gh-link-list {
    display: grid;
    gap: .6rem;
    padding: 1rem;
}

.gh-link {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem .9rem;
    border: 1px solid var(--g-border);
    border-radius: var(--g-r-md);
    background: var(--g-surface);
    color: var(--g-text);
    text-decoration: none;
    transition: border-color .18s var(--g-ease), box-shadow .18s var(--g-ease), background .18s var(--g-ease);
}

.gh-link:hover {
    border-color: var(--g-border-strong);
    background: var(--g-surface-2);
    color: var(--g-text);
}

.gh-link__icon {
    display: grid;
    width: 2.3rem;
    height: 2.3rem;
    flex: none;
    place-items: center;
    border: 1px solid var(--g-border);
    border-radius: 10px;
    background: var(--g-surface);
    color: var(--g-text-muted);
    font-size: 1.05rem;
    transition: color .18s var(--g-ease), border-color .18s var(--g-ease);
}

.gh-link:hover .gh-link__icon {
    border-color: var(--g-border-strong);
    color: var(--g-text-muted);
}

/* icon keeps its soft accent on hover — no jarring gradient flip */

.gh-link strong {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    font-size: .83rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.gh-link__arrow {
    display: grid;
    width: 1.6rem;
    height: 1.6rem;
    flex: none;
    place-items: center;
    color: var(--g-text-faint);
    transition: transform .18s var(--g-ease), color .18s var(--g-ease);
}

.gh-link:hover .gh-link__arrow {
    color: var(--g-text-muted);
    transform: translate(2px, 0);
}

/* ---------- Institution story ---------- */
.gh-story {
    overflow: hidden;
    border: 1px solid var(--g-border);
    border-radius: var(--g-r-xl);
    background: var(--g-surface);
    box-shadow: var(--g-shadow-sm);
}

.gh-story__institution {
    height: 100%;
    padding: clamp(1.7rem, 4vw, 3rem);
}

.gh-story__institution h2 {
    margin: .75rem 0 1rem;
    color: var(--g-text);
    font-size: clamp(1.5rem, 2.8vw, 2.2rem);
    font-weight: 750;
    letter-spacing: -.035em;
}

.gh-story__institution p {
    margin: 0;
    color: var(--g-text-muted);
    font-size: .9rem;
    line-height: 1.75;
}

.gh-story__meta {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 1rem;
    color: var(--g-text-muted);
    font-size: .8rem;
}

.gh-story__meta i {
    margin-top: .15rem;
    color: var(--g-accent-ink);
}

.gh-story__meta a {
    color: var(--g-accent-ink);
    text-decoration: none;
}

.gh-story__samarth {
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.7rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .20), transparent 48%),
        var(--g-navy);
    color: #fff;
}

/* Samarth brand mark — bold white "S" in a purple circle */
.gh-story__samarth-icon {
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border-radius: 50%;
    background: var(--g-gradient);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 20px -8px rgba(37, 99, 235, .7);
}

.gh-story__samarth h3 {
    margin: 1.5rem 0 .8rem;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 720;
    letter-spacing: -.025em;
}

.gh-story__samarth p {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: .86rem;
    line-height: 1.7;
}

/* Tagline: one notch above the body; the second half carries the weight. */
/* Tagline: a quiet line under the heading, regular weight at half
   strength, a little apart from it. */
.gh-story__samarth .gh-story__samarth-tag {
    margin: .7rem 0 1.35rem;
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.4;
}
.gh-story__samarth-text strong { color: rgba(255, 255, 255, .92); font-weight: 650; }
.gh-story__samarth-tag-em { color: rgba(255, 255, 255, .9); font-weight: 600; }
.gh-story__samarth a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.75rem;
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
}

.gh-story__samarth a:hover {
    gap: .6rem;
    color: #fff;
}
/* Explore link: half strength at rest; on hover or focus it comes up to
   full and only the words are underlined, not the arrow. */
.gh-story__samarth a { opacity: .75; transition: opacity .15s ease, gap .15s ease; }
.gh-story__samarth a:hover,
.gh-story__samarth a:focus-visible { opacity: 1; }
.gh-story__samarth a:hover .gh-story__samarth-link-text,
.gh-story__samarth a:focus-visible .gh-story__samarth-link-text {
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
    .gh-story__samarth a { transition: none; }
}

/* ---------- Final CTA ---------- */
.gh-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 4.5rem);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--g-r-xl);
    background:
        radial-gradient(circle at 100% 0%, rgba(37, 99, 235, .24), transparent 44%),
        radial-gradient(circle at 0% 100%, rgba(59, 130, 246, .18), transparent 46%),
        var(--g-navy);
    color: #fff;
    box-shadow: var(--g-shadow-lg);
}

.gh-cta__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .9rem;
    color: #bfdbfe;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.gh-cta h2 {
    margin: 0 0 .7rem;
    color: #fff;
    font-size: clamp(1.65rem, 3.2vw, 2.5rem);
    font-weight: 760;
    letter-spacing: -.035em;
    line-height: 1.1;
}

.gh-cta p {
    margin: 0;
    color: rgba(255, 255, 255, .6);
    font-size: .92rem;
}

/* Shared CTA button base — both variants share identical box so they
   align to the same height and baseline. */
.gh-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    height: 3rem;
    padding: 0 1.3rem;
    border: 1px solid transparent;
    border-radius: var(--g-r-md);
    font-size: .85rem;
    font-weight: 650;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none;
    transition: background .18s var(--g-ease), border-color .18s var(--g-ease), box-shadow .18s var(--g-ease);
}

.gh-cta__primary {
    background: #fff;
    color: #111827;
    box-shadow: 0 8px 20px -14px rgba(0, 0, 0, .55);
}

.gh-cta__primary:hover {
    background: #f3f4f6;
    color: #111827;
    box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .6);
}

.gh-cta__secondary {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

.gh-cta__secondary:hover {
    border-color: rgba(255, 255, 255, .38);
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
    .gh-hero {
        padding-block: 3.5rem;
    }

    .gh-hero__title {
        max-width: none;
    }

    .gh-service--wide {
        grid-column: span 12;
    }

    .gh-service--small {
        grid-column: span 6;
    }

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

    .gh-journey__steps::before {
        display: none;
    }

    .gh-cta__actions {
        margin-top: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .gh-notice__title {
        white-space: normal;
    }
}

@media (max-width: 575.98px) {
    .gh-hero__title em,
    .gh-hero__inst {
        white-space: normal;
    }

    .gh-service--small {
        grid-column: span 12;
    }

    .gh-journey__steps {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .gh-step {
        text-align: left;
    }

    .gh-step__number {
        margin: 0 0 .8rem;
    }

    .gh-cta__actions {
        flex-direction: column;
    }
}
