:root { --red: #ee3124; --peach: #fdf2f0; --dark: #1e1e2d; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--dark); background: #fff; }
* { box-sizing: border-box; }
img { max-width: 100%; }
button, a, input, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid #1468b2; outline-offset: 4px; }
.skip-link { position: fixed; top: -100px; left: 15px; z-index: 20000; padding: 12px 20px; background: white; color: #1e1e2d; }
.skip-link:focus { top: 10px; }
.mobile-icon { border: 0; background: transparent; padding: 8px; min-width: 44px; min-height: 44px; }
.news-ticker-container { background: var(--red); color: white; padding: 10px 20px; display: flex; gap: 20px; align-items: center; }
.ticker-label { flex-shrink: 0; background: white; color: #bc241a; padding: 4px 12px; border-radius: 4px; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.ticker-label i { margin-right: 6px; }
.ticker-copy { font-size: 14px; margin: 0; }
#hero { min-height: 620px; max-height: 900px; padding-bottom: 35px; }
#hero .hero-bento-container { min-height: 450px; flex-shrink: 0; }
#hero .bento-img { width: 100%; object-fit: cover; }
#hero .bento-content > .d-flex { flex-wrap: wrap; }
#hero .stat-icon-box { flex-shrink: 0; }
#about .position-absolute { transform: translate(0, 12%) !important; }
.portrait-placeholder { width: 120px; height: 120px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 40px; margin-bottom: 15px; background: var(--peach); color: var(--red); }
.stu-name { overflow-wrap: anywhere; }
footer { padding-bottom: 28px; }
.admission-dialog { padding: 0; width: min(500px, calc(100% - 30px)); border: 4px solid var(--red); border-radius: 30px; color: var(--dark); }
.admission-dialog::backdrop { background: rgb(0 0 0 / 65%); backdrop-filter: blur(3px); }
.popup-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 2px solid var(--red); border-radius: 50%; background: white; color: var(--red); font-size: 25px; line-height: 1; }
.popup-body { padding: 62px 30px 30px; text-align: center; }
.popup-body h2 { font-size: 28px; font-weight: 800; margin: 12px 0; }
.popup-body p { color: #555; font-size: 15px; line-height: 1.65; }
.admission-year { font-size: 12px; letter-spacing: .15em; color: #b8271d; font-weight: 800; }
@media (max-width: 991px) {
  #about .row.g-5 { --bs-gutter-x: 1.5rem; }
  #hero { min-height: 0; max-height: none; padding-bottom: 35px; }
  #hero .hero-bento-container { min-height: 0; }
  #hero .stats-floating-grid .row { --bs-gutter-y: 10px; --bs-gutter-x: 10px; }
  #hero .stats-floating-grid .col { width: 50%; }
  #hero .stat-card { height: 100%; padding: 16px 12px; }
  #hero .stat-icon-box { margin-right: 12px; width: 40px; height: 40px; }
  #hero .bento-content { padding-bottom: 18px; }
  #hero .stats-floating-grid { margin-top: 20px; }
  .portrait-placeholder { width: 80px; height: 80px; font-size: 30px; }
}
@media (max-width: 575px) {
  .news-ticker-container { padding: 10px 15px; gap: 10px; align-items: flex-start; }
  .ticker-label { font-size: 10px; padding: 4px 7px; }
  .ticker-label i { display: none; }
  .ticker-copy { font-size: 12px; }
  #hero .bento-image-box { height: 280px; }
  #hero .bento-content h1 { font-size: 2.6rem; }
  #hero .bento-content p.lead { font-size: 1.05rem; }
  #hero .bento-content .btn { padding: 12px 22px !important; }
  #hero .stat-card p { font-size: 12px; }
  #hero .stat-card .h4 { font-size: 21px; }
  #hero .stat-icon-box { width: 32px; height: 32px; margin-right: 9px; }
  #gallery .g-item { height: 180px; }
  .popup-body { padding: 60px 20px 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
