/* Modern homepage: scoped to the main index; original content remains intact. */
html { scroll-behavior: smooth; }
body { background: #f4f7fb; }
#news-section, #motto-section, #gallery-section, #director-section { scroll-margin-top: 90px; }
.home-hero {
    position: relative; isolation: isolate; overflow: hidden;
    background: radial-gradient(circle at 90% 10%, #4778b8 0%, transparent 38%),
                linear-gradient(120deg, #122b48 0%, #164e79 55%, #2b75ad 100%);
    border: none; color: #fff; padding: 0 !important;
}
.home-hero__photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center 52%; z-index:-2; }
.home-hero__shade {
    position:absolute; inset:0; z-index:-1;
    background: linear-gradient(93deg, rgba(6,21,40,.90) 0%, rgba(11,35,55,.74) 53%, rgba(14,41,58,.40) 100%),
                linear-gradient(0deg, rgba(9,25,46,.65), transparent 42%);
}
.home-hero__body { padding-top: clamp(4rem, 7vw, 7rem); padding-bottom: clamp(6.5rem, 9vw, 9rem); }
.home-hero__eyebrow { display:flex; flex-wrap:wrap; align-items:center; gap:.6rem; color:#dceaf9; font-size:.88rem; font-weight:700; letter-spacing:.01em; }
.home-hero__dot { width:.55rem; height:.55rem; border-radius:50%; background:#ffc56c; box-shadow:0 0 0 5px rgba(255,197,108,.16); }
.home-hero__academic { border-left:1px solid rgba(255,255,255,.35); padding-left:.85rem; margin-left:.2rem; }
.home-hero .hero-school-logo { width:80px; height:80px; border:2px solid rgba(255,255,255,.7); background:#fff; border-radius:20px; padding:8px; box-shadow:0 12px 28px rgba(0,0,0,.20); }
.home-hero__school-code { display:inline-block; color:#fff; font-size:.86rem; font-weight:700; }
.home-hero__title { font-size:clamp(2.3rem,5vw,4.7rem); line-height:1.18; letter-spacing:-.025em; font-weight:800; color:#fff; text-wrap:balance; text-shadow:0 2px 16px rgba(0,0,0,.17); }
.home-hero__subtitle { color:#d4eaff; font-weight:600; letter-spacing:.025em; font-size:clamp(1rem,2vw,1.35rem); }
.home-hero__affiliation { color:#e9f3fc; font-weight:600; font-size:.98rem; line-height:1.75; }
.home-hero__vision { max-width:700px; color:#e6eef8; font-size:1rem; line-height:1.9; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:3; overflow:hidden; }
.home-hero .btn { border-radius:12px; padding:.83rem 1.5rem; font-weight:800; }
.home-hero__primary-btn { background:#ffd07e; color:#19314b; box-shadow:0 10px 25px rgba(0,0,0,.15); border:1px solid transparent; }
.home-hero__primary-btn:hover { background:#ffe0aa; color:#15304b; transform:translateY(-2px); }
.home-hero__secondary-btn { border:1px solid rgba(255,255,255,.53); color:white; background:rgba(255,255,255,.11); backdrop-filter:blur(8px); }
.home-hero__secondary-btn:hover { background:rgba(255,255,255,.25); color:white; }
.home-hero__information { background:rgba(255,255,255,.94); color:#172b42; border:1px solid rgba(255,255,255,.85); border-radius:22px; box-shadow:0 24px 60px rgba(0,0,0,.23); padding:1.7rem; backdrop-filter:blur(16px); }
.home-hero__info-kicker { font-size:.75rem; font-weight:800; color:#527397; letter-spacing:.05em; text-transform:uppercase; }
.home-hero__info-icon { width:48px; height:48px; display:grid; place-items:center; color:#fff; border-radius:14px; background:var(--theme-gradient); flex-shrink:0; }
.home-hero__metric { display:flex; align-items:center; gap:1rem; padding:1rem 0; border-top:1px solid #e3eaf0; }
.home-hero__metric-icon { flex-shrink:0; width:46px; height:46px; display:grid; place-items:center; border-radius:13px; background:#e5effb; color:#1b5d94; font-size:1.15rem; }
.home-hero__metric-label { color:#5d6e81; font-size:.84rem; font-weight:600; }
.home-hero__metric-value { font-size:1.6rem; color:#1b3753; font-weight:800; line-height:1.25; font-variant-numeric:tabular-nums; }
.home-hero__metric-value small { font-size:.8rem; font-weight:600; color:#5b7089; }
.home-hero__data-link { color:#1c6eaf; text-decoration:none; font-weight:800; display:inline-flex; align-items:center; margin-top:.9rem; }
.home-hero__data-link:hover { text-decoration:underline; }
.home-shortcuts { position:relative; z-index:3; margin-top:-58px; margin-bottom:20px; }
.home-shortcuts__grid { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); background:#fff; padding:13px; border-radius:20px; box-shadow:0 18px 55px rgba(30,58,91,.16); gap:5px; }
.home-shortcut { display:flex; align-items:center; gap:12px; border-radius:14px; padding:17px 14px; text-decoration:none; color:#19314e; transition:background .2s,transform .2s; min-width:0; }
.home-shortcut:hover { background:#eef5fc; color:#11569c; transform:translateY(-2px); }
.home-shortcut__icon { width:44px; height:44px; background:#e9f4fc; border-radius:12px; color:#1d6aa6; display:grid; place-items:center; flex-shrink:0; }
.home-shortcut strong, .home-shortcut small { display:block; }
.home-shortcut strong { font-size:.92rem; line-height:1.4; }
.home-shortcut small { color:#8494a5; font-size:.7rem; }
.home-shortcut__arrow { color:#9fb0bf; font-size:.76rem; margin-left:auto; }
#schoolMainCarousel { box-shadow:0 20px 45px rgba(28,54,82,.13); border-radius:20px; border:0; }
#schoolMainCarousel .main-carousel-item { height:clamp(260px,36vw,440px); }
#news-section .modern-card, #gallery-section .modern-card { border-radius:18px; }
#stats-section .compact-school-stats { border-radius:20px; }
@media (max-width: 1199.98px) {
  .home-shortcuts__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width: 991.98px) {
  .home-hero__body { padding-top:4rem; padding-bottom:6rem; }
  .home-hero__information { max-width:580px; }
}
@media (max-width: 575.98px) {
  .home-hero__body { padding-top:3rem; padding-bottom:4.4rem; }
  .home-hero .hero-school-logo { width:68px; height:68px; }
  .home-hero__title { font-size:2.25rem; }
  .home-hero__information { padding:1.25rem; }
  .home-shortcuts { margin-top:-22px; }
  .home-shortcuts__grid { padding:8px; gap:3px; }
  .home-shortcut { padding:12px 7px; gap:8px; }
  .home-shortcut__icon { width:34px; height:34px; border-radius:9px; font-size:.9rem; }
  .home-shortcut strong { font-size:.78rem; }
  .home-shortcut small { font-size:.62rem; }
  .home-shortcut__arrow { display:none; }
  #schoolMainCarousel .main-carousel-item { height:240px; }
}
@media (prefers-reduced-motion:reduce) { html {scroll-behavior:auto;} .home-shortcut {transition:none;} }
