/* The landing page. Colours and type are the university theme's (kfu-theme.css); the layout is the page's own. */

/* ---------- hero: the campus map behind the words */
.kh-hero { position: relative; display: flex; flex-direction: column; min-height: min(92vh, 50rem); padding-top: var(--kfu-nav-h); overflow: hidden; isolation: isolate;
    background: radial-gradient(120% 90% at 20% 10%, var(--kfu-800), var(--kfu-950) 70%); color: #fff; }
.kh-map { position: absolute; inset: 0; z-index: -2; opacity: 0; transition: opacity 1.2s ease; pointer-events: none; }
.kh-map.is-ready { opacity: 1; }
.kh-map .maplibregl-canvas { outline: none; }
.kh-map .maplibregl-marker, .kh-map .maplibregl-control-container { display: none; }
/* Dark on the side of the words, clear where the campus shows. */
.kh-shade { position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to right, rgba(9, 42, 30, .96) 0%, rgba(9, 42, 30, .9) 34%, rgba(9, 42, 30, .35) 62%, rgba(9, 42, 30, .08) 100%), linear-gradient(to top, rgba(9, 42, 30, .75), transparent 32%); }
[dir=rtl] .kh-shade { background: linear-gradient(to left, rgba(9, 42, 30, .96) 0%, rgba(9, 42, 30, .9) 34%, rgba(9, 42, 30, .35) 62%, rgba(9, 42, 30, .08) 100%), linear-gradient(to top, rgba(9, 42, 30, .75), transparent 32%); }

.kh-hero-in { flex: 1 1 auto; display: flex; align-items: center; width: 100%; padding-block: 3.5rem 2rem; }
.kh-hero-text { flex: 0 1 36rem; min-width: 0; }
.kh-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .9rem; border: 1px solid rgba(225, 196, 142, .55); border-radius: 999px; color: var(--kfu-gold-300); font-size: .85rem; font-weight: 600; }
.kh-title { margin: 1.1rem 0 .9rem; color: #fff; font-size: clamp(2.1rem, 1.2rem + 3.4vw, 3.7rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.kh-title span { color: var(--kfu-gold-400); }
.kh-lead { max-width: 32rem; margin: 0 0 1.75rem; color: rgba(255, 255, 255, .82); font-size: 1.08rem; line-height: 1.9; }

.kh-search { display: flex; align-items: center; gap: .4rem; padding: .45rem; padding-inline-start: 1.1rem; border-radius: 1rem; background: #fff; box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
.kh-search > i { flex: none; color: var(--kfu-600); font-size: 1.15rem; }
.kh-search input { flex: 1 1 auto; min-width: 0; padding: .75rem .5rem; border: 0; background: transparent; color: var(--kfu-ink); font: inherit; font-size: 1.02rem; }
.kh-search input:focus { outline: none; }
.kh-search:focus-within { box-shadow: 0 0 0 3px var(--kfu-gold-400), 0 18px 44px rgba(0, 0, 0, .32); }
.kh-search .kfu-btn { flex: none; padding: .7rem 1.4rem; font-size: 1rem; }

.kh-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.1rem; }
.kh-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .08); color: #fff; font-size: .9rem; font-weight: 500; text-decoration: none; backdrop-filter: blur(6px); transition: background .15s ease, border-color .15s ease; }
.kh-chip:hover, .kh-chip:focus-visible { background: rgba(255, 255, 255, .18); border-color: var(--kfu-gold-300); color: #fff; }
.kh-actions { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.6rem; }
.kh-link { display: inline-flex; align-items: center; gap: .45rem; color: var(--kfu-gold-300); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; }
.kh-link:hover, .kh-link:focus-visible { color: #fff; border-bottom-color: var(--kfu-gold-400); }
.kh-hero :focus-visible, .kh-cta :focus-visible { outline: 3px solid var(--kfu-gold-400); outline-offset: 3px; }

/* The figures, counted from the map, along the foot of the hero. */
.kh-stats-wrap { width: 100%; padding-bottom: 2rem; }
.kh-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); max-width: 44rem; border: 1px solid rgba(255, 255, 255, .16); border-radius: 1.1rem; background: rgba(9, 42, 30, .55); backdrop-filter: blur(10px); }
.kh-stat { display: flex; flex-direction: column; gap: .1rem; padding: 1rem 1.25rem; }
.kh-stat + .kh-stat { border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.kh-stat b { color: var(--kfu-gold-400); font-size: 1.9rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.kh-stat span { color: rgba(255, 255, 255, .78); font-size: .88rem; }

/* ---------- sections */
.kh-section { padding: 5rem 0; background: #fff; }
.kh-section-alt { background: var(--kfu-surface-alt); }
.kh-head { max-width: 40rem; margin-bottom: 2.75rem; }
.kh-eyebrow { display: inline-block; margin-bottom: .6rem; color: var(--kfu-gold-600); font-size: .85rem; font-weight: 700; letter-spacing: .04em; }
.kh-eyebrow::before { content: ""; display: inline-block; width: 1.75rem; height: 2px; margin-inline-end: .6rem; background: var(--kfu-gold-500); vertical-align: middle; }
.kh-head h2 { margin: 0; color: var(--kfu-900); font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 700; line-height: 1.4; }
.kh-head p { margin: .8rem 0 0; color: var(--kfu-muted); font-size: 1.02rem; line-height: 1.9; }

/* Three steps along one line. */
.kh-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.kh-step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--kfu-100); }
.kh-step::before { content: ""; position: absolute; top: -2px; inset-inline-start: 0; width: 3.5rem; height: 2px; background: var(--kfu-600); }
.kh-step-n { position: absolute; top: 1rem; inset-inline-end: 0; color: var(--kfu-100); font-size: 3.4rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kh-step > i { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .9rem; background: var(--kfu-600); color: #fff; font-size: 1.3rem; }
.kh-step h3 { margin: 1.1rem 0 .4rem; color: var(--kfu-900); font-size: 1.25rem; font-weight: 700; }
.kh-step p { margin: 0; color: var(--kfu-muted); line-height: 1.9; }

/* What the guide offers: six cards, three in a row. */
.kh-features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.1rem; }
.kh-feature { grid-column: span 2; padding: 1.6rem; border: 1px solid var(--kfu-line); border-radius: var(--kfu-radius-lg); background: #fff; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.kh-feature:hover { border-color: var(--kfu-300); box-shadow: var(--kfu-shadow-lg); transform: translateY(-3px); }
.kh-feature > i { display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: .85rem; background: var(--kfu-50); color: var(--kfu-700); font-size: 1.3rem; }
.kh-feature:nth-child(3n+2) > i { background: var(--kfu-gold-50); color: var(--kfu-gold-700); }
.kh-feature h3 { margin: 1rem 0 .4rem; color: var(--kfu-900); font-size: 1.12rem; font-weight: 700; }
.kh-feature p { margin: 0; color: var(--kfu-muted); line-height: 1.9; }

/* ---------- closing band */
.kh-cta { padding: 4rem 0; background: var(--kfu-900); background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.5px); background-size: 22px 22px; color: #fff; }
.kh-cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.kh-cta h2 { margin: 0 0 .5rem; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 700; }
.kh-cta p { max-width: 34rem; margin: 0; color: rgba(255, 255, 255, .8); line-height: 1.9; }
.kh-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.kh-btn-lg { padding: .85rem 1.7rem; font-size: 1.05rem; }

@media (max-width: 991.98px) {
    .kh-hero { min-height: 0; }
    .kh-shade, [dir=rtl] .kh-shade { background: linear-gradient(to bottom, rgba(9, 42, 30, .95) 0%, rgba(9, 42, 30, .9) 55%, rgba(9, 42, 30, .6) 100%); }
    .kh-hero-in { padding-block: 2.5rem 1.5rem; }
    .kh-steps { grid-template-columns: 1fr; gap: 1.75rem; }
    .kh-feature { grid-column: span 3; }
    .kh-section { padding: 3.5rem 0; }
}
@media (max-width: 575.98px) {
    .kh-feature { grid-column: span 6; }
    .kh-stats { grid-template-columns: repeat(2, 1fr); }
    .kh-stat:nth-child(3) { border-inline-start: 0; }
    .kh-stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
    .kh-search .kfu-btn { padding-inline: 1rem; }
    .kh-lead { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .kh-map, .kh-chip, .kh-feature { transition: none; }
    .kh-feature:hover { transform: none; }
}
