﻿:root {
  --navy: #061d4f;
  --navy-2: #0a2d6f;
  --gold: #f6b318;
  --text: #0f234e;
  --muted: #5d6d88;
  --card: #ffffff;
  --bg: #f4f7fb;
  --shadow: 0 12px 28px rgba(15, 35, 78, 0.12);
  --radius: 18px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Poppins', 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); }
a { text-decoration: none; color: inherit; }
.page-wrap { width: 100%; overflow-x: hidden; }
.container { width: min(1320px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  background: linear-gradient(90deg, #06215a 0%, #03153d 100%);
  color: #fff;
  height: 92px;
  display: flex;
  align-items: center;
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: 0.02em; }
.brand-small { display: block; font-size: 12px; letter-spacing: 0.14em; margin-top: 2px; opacity: 0.95; }
.main-nav { display: flex; align-items: center; gap: 30px; text-transform: uppercase; font-size: 13px; font-weight: 600; }
.main-nav a { opacity: 0.95; }
.portal-btn {
  background: var(--gold);
  color: #08265b;
  border-radius: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero {
  position: relative;
  min-height: 560px;
  background: #0b2a67;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  background-size: cover;
  background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 18, 49, 0.76) 0%, rgba(6, 27, 72, 0.36) 58%, rgba(8, 34, 84, 0.1) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  min-height: 560px;
  display: flex;
  align-items: center;
}
.hero-copy {
  max-width: 520px;
  color: #fff;
}
.hero-title {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 0.95;
  font-weight: 800;
  text-transform: uppercase;
}
.hero-title span { color: var(--gold); display: block; margin-top: 4px; }
.hero-sub { margin-top: 16px; font-size: 34px; line-height: 1.28; opacity: 0.95; }
.hero-cta {
  margin-top: 26px;
  background: var(--gold);
  color: #0a2a67;
  padding: 14px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  text-transform: uppercase;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.92);
  color: #0b2d6e;
  font-size: 19px;
  z-index: 3;
  cursor: pointer;
}
.hero-arrow.left { left: 24px; }
.hero-arrow.right { right: 24px; }
.hero-dots {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 4;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  cursor: pointer;
}
.hero-dots button.active { width: 34px; border-radius: 100px; background: var(--gold); }

.quick-links {
  margin-top: -34px;
  position: relative;
  z-index: 5;
}
.quick-links-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  padding: 18px;
}
.quick-item { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; }
.quick-item .iconify { font-size: 36px; }
.quick-item h4 { margin: 0; font-size: 20px; line-height: 1.05; }
.quick-item p { margin: 4px 0 0; font-size: 12px; color: var(--muted); line-height: 1.3; }

.section { padding: 54px 0; }
.section-label { color: #e2a813; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.section-title { margin: 8px 0 16px; font-size: clamp(34px, 3.2vw, 56px); line-height: 1.05; }

.story-grid { display: grid; grid-template-columns: 1fr 1.12fr; gap: 32px; align-items: stretch; }
.story-left p { color: #4c5f7b; font-size: 20px; line-height: 1.52; }
.story-btn { margin-top: 18px; background: #0a2b67; color: #fff; border-radius: 10px; padding: 13px 22px; display: inline-flex; gap: 8px; font-weight: 700; font-size: 14px; }
.story-media { border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 180px; }
.story-media img.main { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.story-stats { background: #0a2b67; color: #fff; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding: 24px 20px; }
.story-stat strong { display: block; font-size: 42px; color: var(--gold); }
.story-stat span { font-size: 13px; opacity: .9; }

.box-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 26px; }
.panel-head { text-align: center; margin-bottom: 18px; }
.panel-head h3 { margin: 0; font-size: 34px; text-transform: uppercase; }
.panel-head .line { width: 66px; height: 3px; background: var(--gold); border-radius: 99px; margin: 10px auto 0; }

.carousel-row { position: relative; }
.carousel-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.academic-card, .news-card, .teacher-card { border: 1px solid #e5ebf6; border-radius: 14px; overflow: hidden; background: #fff; }
.academic-card img, .news-card img { width: 100%; height: 164px; object-fit: cover; }
.academic-body, .news-body { padding: 12px 12px 14px; }
.academic-body h4, .news-body h4 { margin: 0; font-size: 22px; }
.academic-body p, .news-body p { margin: 10px 0 0; font-size: 14px; color: var(--muted); line-height: 1.45; }

.blue-section {
  background: radial-gradient(circle at 20% 0%, #0f3a88 0%, #051b4d 68%);
  color: #fff;
  padding: 58px 0;
}
.teacher-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.teacher-card { text-align: center; padding: 20px 12px; border-color: rgba(255,255,255,0.2); background: #fff; color: #102a5f; }
.teacher-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; border: 5px solid #eaf0fa; }
.teacher-icon-fallback {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 5px solid #eaf0fa;
  background: linear-gradient(180deg, #f1f6ff 0%, #dfeaff 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.teacher-icon-fallback .iconify {
  font-size: 54px;
}
.teacher-card h4 { margin: 10px 0 4px; font-size: 18px; }
.teacher-card p { margin: 0; font-size: 13px; color: #4a5d7a; }
.center-cta { text-align: center; margin-top: 24px; }
.center-cta .btn { background: var(--gold); color: #08265b; padding: 14px 24px; border-radius: 10px; font-weight: 700; display: inline-flex; gap: 8px; }

.news-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.news-date {
  position: absolute;
  left: 12px;
  bottom: -22px;
  width: 54px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(12,31,70,0.18);
  text-align: center;
  padding: 8px 4px;
}
.news-date strong { display: block; font-size: 18px; color: #102a5f; }
.news-date span { font-size: 10px; color: #6a7b95; text-transform: uppercase; }
.news-image-wrap { position: relative; margin-bottom: 24px; }
.news-link { margin-top: 12px; display: inline-flex; color: #123c84; font-size: 12px; font-weight: 700; text-transform: uppercase; }

.bottom-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.gallery-groups-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.gallery-group-card {
  border: 1px solid #e5ebf6;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gallery-group-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(10, 35, 80, 0.14);
}
.gallery-group-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}
.gallery-group-body {
  padding: 10px 12px 12px;
}
.gallery-group-body h4 {
  margin: 0;
  font-size: 18px;
}
.gallery-group-body p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.gallery-group-count {
  margin-top: 8px;
  font-size: 12px;
  color: #0d3a86;
  font-weight: 700;
}
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
}
.gallery-modal.open {
  display: block;
}
.gallery-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 11, 30, 0.72);
}
.gallery-modal-dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, calc(100% - 34px));
  margin: 34px auto;
  max-height: calc(100vh - 68px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}
.gallery-modal-close {
  position: sticky;
  top: 0;
  float: right;
  border: 0;
  background: #0c2f75;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}
.gallery-modal-dialog h3 {
  margin: 0 0 4px;
  font-size: 28px;
}
.gallery-modal-dialog p {
  margin: 0 0 12px;
  color: var(--muted);
}
.gallery-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.gallery-modal-thumb {
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}
.gallery-modal-thumb.active {
  border-color: var(--gold);
}
.gallery-modal-thumb img {
  width: 100%;
  height: 92px;
  object-fit: cover;
  display: block;
}
.gallery-modal-viewer {
  margin-top: 14px;
  border: 1px solid #e5ebf6;
  border-radius: 12px;
  padding: 8px;
  background: #f8fbff;
}
.gallery-modal-viewer img {
  width: 100%;
  max-height: 62vh;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}
.contact-list { display: grid; gap: 12px; margin-top: 8px; }
.contact-item { display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: start; }
.contact-item .iconify { font-size: 26px; color: #0b2d6d; }
.map-wrap iframe { width: 100%; min-height: 248px; border: 0; border-radius: 12px; }

.footer {
  margin-top: 42px;
  background: linear-gradient(90deg, #03184a 0%, #06225e 100%);
  color: #fff;
  padding: 34px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr .8fr; gap: 26px; }
.footer h4 { margin: 0 0 10px; font-size: 16px; text-transform: uppercase; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer p { margin: 0; color: rgba(255,255,255,0.84); font-size: 14px; line-height: 1.5; }
.footer-social { display: flex; gap: 10px; }
.footer-social .iconify { font-size: 30px; }
.footer-bottom { margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.18); padding-top: 12px; display: flex; justify-content: space-between; gap: 16px; font-size: 13px; color: rgba(255,255,255,0.85); }

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid #c7d2e8;
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #163c86;
  cursor: pointer;
}
.carousel-control.left { left: -12px; }
.carousel-control.right { right: -12px; }

@media (max-width: 1200px) {
  .main-nav { display: none; }
  .quick-links-card { grid-template-columns: repeat(3, 1fr); }
  .story-grid { grid-template-columns: 1fr; }
  .carousel-track, .teacher-track, .news-track { grid-template-columns: repeat(2, 1fr); }
  .bottom-grid { grid-template-columns: 1fr; }
  .gallery-groups-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { width: min(1320px, calc(100% - 24px)); }
  .topbar { height: 78px; }
  .brand-text { font-size: 28px; }
  .hero, .hero-content { min-height: 430px; }
  .hero-sub { font-size: 22px; }
  .quick-links-card { grid-template-columns: 1fr 1fr; }
  .carousel-track, .teacher-track, .news-track { grid-template-columns: 1fr; }
  .gallery-groups-grid { grid-template-columns: 1fr; }
  .story-media { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
