/* Hostels page. All class names use the ho- prefix to avoid clashing with the site header/footer.
   Reveal animations only apply when JS has added .ho-js to <html>, so content never stays hidden. */
:root{--ho-navy:#1b2f6b;--ho-dark:#0f1b45;--ho-gold:#f4a23c;--ho-soft:#f3f7fd;--ho-mut:#5b6b8f}
.ho-eye{margin:0 0 8px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.85rem;color:#b8651b}
main h2{color:var(--ho-navy)}

/* Hero */
.ho-hero{position:relative;display:grid;grid-template-columns:3fr 2fr;min-height:560px;background:var(--ho-soft)}
.ho-hero-img{min-height:420px;border-radius:0}
.ho-hero-card{align-self:center;margin:32px 32px 32px -90px;position:relative;z-index:2;background:#fff;padding:36px;box-shadow:0 16px 40px rgba(27,47,107,.18);border-top:5px solid var(--ho-gold)}
.ho-hero-card h1{margin:0 0 14px;font-size:clamp(2.2rem,4.4vw,3.4rem);line-height:1.1;color:var(--ho-navy)}
.ho-hero-card p{line-height:1.65;color:var(--ho-dark)}
.ho-crumb{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:0 0 16px;padding:0;font-size:.9rem}
.ho-crumb li+li::before{content:"/";margin-right:6px;color:var(--ho-mut)}
.ho-crumb a{color:var(--ho-navy);font-weight:600;text-decoration:none}
.ho-crumb a:hover{text-decoration:underline}
.ho-crumb [aria-current]{color:var(--ho-mut)}
.ho-btns{display:flex;flex-wrap:wrap;gap:12px;margin-top:20px}
.ho-b{display:inline-block;padding:13px 24px;border-radius:6px;background:var(--ho-navy);color:#fff!important;font-weight:700;text-decoration:none;border:2px solid var(--ho-navy);transition:background .2s,color .2s}
.ho-b:hover{background:var(--ho-dark);border-color:var(--ho-dark)}
.ho-b.o{background:transparent;color:var(--ho-navy)!important}
.ho-b.o:hover{background:var(--ho-navy);color:#fff!important}
.ho-b.o.w{color:#fff!important;border-color:#fff}
.ho-b.o.w:hover{background:#fff;color:var(--ho-navy)!important}
.ho-b:focus-visible,.ho-tabs button:focus-visible{outline:3px solid var(--ho-gold);outline-offset:3px}

/* Image frame: image slides up from below inside the frame */
.ho-img{position:relative;overflow:hidden;background:linear-gradient(135deg,#dbe7f7,#bcd0ee)}
.ho-img img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.ho-fb{position:absolute;left:50%;top:50%;width:84px;height:84px;margin:-42px 0 0 -42px;fill:none;stroke:var(--ho-navy);stroke-width:2;stroke-linecap:round;opacity:.35}
.ho-img img+.ho-fb{display:none}
.ho-js .ho-img img{transform:translateY(35%) scale(1.12);opacity:0;transition:transform 1.1s cubic-bezier(.2,.7,.2,1),opacity .9s ease}
.ho-js .ho-img.in img{transform:none;opacity:1}

/* Text rises gently */
.ho-js .ho-up{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
.ho-js .ho-up.in{opacity:1;transform:none}

/* Stats band */
.ho-band{background:linear-gradient(180deg,var(--ho-navy),var(--ho-dark));color:#fff}
.ho-band-in{max-width:1180px;margin:0 auto;padding:44px 20px;display:grid;grid-template-columns:repeat(4,1fr);gap:28px;text-align:center}
.ho-st svg{width:56px;height:56px;fill:none;stroke:#f5b560;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ho-st b{display:block;margin:10px 0 4px;font-size:2.2rem;font-weight:800;line-height:1.1}
.ho-st p{margin:0;color:#c9d6f2;font-weight:600}

/* Alternating rows */
.ho-row{max-width:1180px;margin:0 auto;padding:72px 20px;display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:center}
.ho-row.rev .ho-txt{order:2}
.ho-txt h2{margin:0 0 14px;font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.2}
.ho-txt p{line-height:1.7;color:var(--ho-dark)}
.ho-pic{aspect-ratio:4/3;border-radius:14px;box-shadow:0 16px 40px rgba(27,47,107,.18)}
.ho-ul{margin:16px 0 0;padding:0 0 0 20px;display:grid;gap:10px;line-height:1.6;color:var(--ho-dark)}
.ho-ul li::marker{color:var(--ho-gold)}

/* Curriculum */
.ho-cur{background:var(--ho-soft);padding:72px 20px;scroll-margin-top:100px}
.ho-cur-in{max-width:1080px;margin:0 auto}
.ho-cur h2{margin:0 0 12px;font-size:clamp(1.6rem,3vw,2.2rem)}
.ho-lead{max-width:720px;line-height:1.7;color:var(--ho-dark)}
.ho-panel{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.ho-col{background:#fff;border-radius:14px;padding:22px;border-top:5px solid var(--ho-gold);box-shadow:0 8px 24px rgba(27,47,107,.08)}
.ho-col h3{margin:0 0 8px;font-size:1.15rem;color:var(--ho-navy)}
.ho-col p{margin:0 0 12px;line-height:1.6;color:var(--ho-dark)}
.ho-chips{list-style:none;display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0}
.ho-chips li{padding:6px 13px;border-radius:999px;background:var(--ho-soft);border:1px solid #bcd0ee;font-weight:600;font-size:.9rem;color:var(--ho-navy)}

/* CTA */
.ho-cta{background:linear-gradient(135deg,var(--ho-navy),#2c4796);color:#fff;text-align:center;padding:64px 20px}
.ho-cta h2{margin:0 0 10px;color:#fff;font-size:clamp(1.6rem,3vw,2.2rem)}
.ho-cta p{margin:0;color:#dbe7f7}
.ho-cta a:not(.ho-b){color:#f5b560;font-weight:700}
.ho-cta .ho-btns{justify-content:center}
.ho-cta .ho-b:not(.o){background:var(--ho-gold);border-color:var(--ho-gold);color:var(--ho-dark)!important}
.ho-cta .ho-b:not(.o):hover{background:#f5b560;border-color:#f5b560}

@media(max-width:960px){
 .ho-hero{grid-template-columns:1fr}
 .ho-hero-img{min-height:300px}
 .ho-hero-card{margin:-60px 16px 24px}
 .ho-band-in{grid-template-columns:1fr 1fr}
 .ho-row{grid-template-columns:1fr;gap:28px;padding:48px 20px}
 .ho-row.rev .ho-txt{order:0}
 .ho-panel{grid-template-columns:1fr}
}
@media(max-width:480px){.ho-band-in{grid-template-columns:1fr}.ho-hero-card{padding:24px}}
@media(prefers-reduced-motion:reduce){
 .ho-js .ho-img img,.ho-js .ho-up{transition:none;transform:none;opacity:1}
}

/* Campus strip */
.ho-camp{max-width:1080px;margin:0 auto;padding:8px 20px 64px;text-align:center}
.ho-camp h2{margin:0 0 6px;font-size:clamp(1.5rem,3vw,2rem)}
.ho-camp p{color:var(--ho-mut)}
.ho-camp-in{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:22px}
.ho-camp-in div{background:#fff;border:1px solid #dbe7f7;border-radius:14px;padding:20px;font-weight:700;color:var(--ho-navy);box-shadow:0 8px 24px rgba(27,47,107,.08)}
.ho-camp-in svg{display:block;margin:0 auto 8px;width:44px;height:44px;fill:none;stroke:var(--ho-gold);stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Gallery */
.ho-gal{background:var(--ho-soft);padding:72px 20px}
.ho-gal-in{max-width:1180px;margin:0 auto}
.ho-gal h2{margin:0 0 8px;font-size:clamp(1.6rem,3vw,2.2rem)}
.ho-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-top:28px}
.ho-fig{position:relative;margin:0;aspect-ratio:1/1;border-radius:6px;overflow:hidden;border:1px solid #bcd0ee;background:linear-gradient(135deg,#dbe7f7,#bcd0ee);box-shadow:0 8px 24px rgba(27,47,107,.12)}
.ho-fig.wide{grid-column:span 2;aspect-ratio:2/1}
.ho-fig img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .6s ease}
.ho-js .ho-fig img{transform:translateY(35%) scale(1.12);opacity:0;transition:transform 1.1s cubic-bezier(.2,.7,.2,1),opacity .9s ease}
.ho-js .ho-fig.in img{transform:none;opacity:1}
.ho-fig.has{cursor:zoom-in}
.ho-fig.has:hover img{transform:scale(1.06)}
.ho-ic{position:absolute;left:50%;top:44%;width:64px;height:64px;margin:-32px 0 0 -32px;fill:none;stroke:var(--ho-navy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;opacity:.4}
.ho-fig.has .ho-ic{display:none}
.ho-fig figcaption{position:absolute;left:0;right:0;bottom:0;padding:26px 14px 12px;background:linear-gradient(transparent,rgba(15,27,69,.85));color:#fff;font-weight:700;font-size:1.05rem}
.ho-fig:not(.has) figcaption{background:linear-gradient(transparent,rgba(15,27,69,.55))}
.ho-fig:focus-visible{outline:3px solid var(--ho-gold);outline-offset:3px}

/* Lightbox */
.ho-lb{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;background:rgba(10,16,40,.92);padding:20px}
.ho-lb.open{display:flex}
.ho-lb figure{margin:0;max-width:min(1000px,92vw);text-align:center}
.ho-lb img{max-width:100%;max-height:78vh;border-radius:6px}
.ho-lb figcaption{margin-top:10px;color:#fff;font-weight:700;font-size:1.1rem}
.ho-lb button{position:absolute;border:0;background:rgba(255,255,255,.16);color:#fff;width:46px;height:46px;border-radius:50%;font-size:1.6rem;cursor:pointer}
.ho-lb button:hover{background:var(--ho-gold);color:var(--ho-dark)}
.ho-lb .x{top:18px;right:18px}.ho-lb .p{left:16px;top:50%}.ho-lb .n{right:16px;top:50%}
.ho-lb button:focus-visible{outline:3px solid #fff}

@media(max-width:960px){.ho-grid{grid-template-columns:1fr 1fr}.ho-camp-in{grid-template-columns:1fr}}
@media(max-width:480px){.ho-grid{grid-template-columns:1fr}.ho-fig.wide{grid-column:auto;aspect-ratio:1/1}}
@media(prefers-reduced-motion:reduce){.ho-js .ho-fig img{transition:none;transform:none;opacity:1}}
