/* ── Reset & Variables ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #1a4fa0;
  --accent:  #f4a825;
  --dark:    #0d1b2a;
  --light:   #f5f7fb;
  --text:    #333;
  --muted:   #666;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(0,0,0,0.10);
  --transition: 0.3s ease;
  --max-w:   1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

/* ── Utility ─────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: 80px 0; }
.section-alt{ background: var(--light); }
.section-dark { background: var(--dark); color: var(--white); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-dark .section-header h2 { color: var(--accent); }
.section-dark .section-header p  { color: rgba(255,255,255,.65); }

.divider {
  display: block;
  width: 60px; height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 14px auto 0;
}

/* ── Navbar ──────────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10,25,55,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--accent);
  transition: var(--transition);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.nav-logo {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent); display: flex; align-items: center;
  justify-content: center; font-size: 1.4rem; font-weight: 800;
  color: var(--dark); flex-shrink: 0;
}
.nav-brand-name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.nav-brand-name small { display: block; font-size: .7rem; font-weight: 400; opacity: .7; }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  text-decoration: none; color: rgba(255,255,255,.85);
  font-size: .9rem; font-weight: 500; padding: 8px 14px;
  border-radius: 6px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: var(--accent); color: var(--dark);
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px; background: none; border: none;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: var(--transition);
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(160deg, #071628 0%, #0f2d6b 45%, #1a4fa0 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 68px; text-align: center;
}

/* decorative background circles */
.hero-circle {
  position: absolute; border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hero-circle-1 { width: 600px; height: 600px; top: -150px; right: -150px; }
.hero-circle-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: rgba(244,168,37,.06); }

.hero-inner {
  display: flex; flex-direction: column; align-items: center;
  gap: 0; position: relative; z-index: 1;
  padding: 60px 0;
}

/* emblem */
.hero-emblem { margin-bottom: 28px; }
.emblem-ring {
  width: 110px; height: 110px; border-radius: 50%;
  border: 3px solid rgba(244,168,37,.5);
  display: flex; align-items: center; justify-content: center;
  animation: pulse-ring 3s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244,168,37,.3); }
  50%       { box-shadow: 0 0 0 16px rgba(244,168,37,.0); }
}
.emblem-core {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #e09a1a);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(244,168,37,.4);
}
.emblem-letter {
  font-size: 2.4rem; font-weight: 900; color: var(--dark); line-height: 1;
}

/* title */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 800; color: var(--white);
  line-height: 1.1; margin-bottom: 14px;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255,255,255,.7);
  font-style: italic; margin-bottom: 32px;
  max-width: 540px;
}

/* highlight chips */
.hero-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  justify-content: center; margin-bottom: 36px;
}
.hero-chip {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  padding: 8px 18px; border-radius: 50px;
  font-size: .88rem; font-weight: 500;
  backdrop-filter: blur(6px);
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* scroll cue */
.hero-scroll {
  margin-top: 56px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,.4); font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase;
}
.scroll-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.6s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50%       { transform: translateY(8px); opacity: .4; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 8px;
  font-size: .95rem; font-weight: 600; text-decoration: none;
  cursor: pointer; border: 2px solid transparent;
  transition: var(--transition);
}
.btn-primary {
  background: var(--accent); color: var(--dark);
}
.btn-primary:hover { background: #e09a1a; transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* ── Stats ───────────────────────────────────────────────────── */
#stats {
  background: var(--primary);
  padding: 50px 0;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; text-align: center;
}
.stat-item { color: var(--white); }
.stat-value {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800; color: var(--accent);
  display: block; line-height: 1;
}
.stat-label { font-size: .9rem; opacity: .75; margin-top: 6px; }

/* ── About / Principal ───────────────────────────────────────── */
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.about-image-wrap { position: relative; }
.about-image {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--light); min-height: 360px;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
  overflow: hidden;
}
.about-image img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.about-badge {
  position: absolute; bottom: -20px; right: -20px;
  background: var(--accent); color: var(--dark);
  font-weight: 800; text-align: center;
  padding: 16px 20px; border-radius: 10px;
  box-shadow: var(--shadow);
}
.about-badge span { display: block; font-size: 1.8rem; line-height: 1; }
.about-badge small { font-size: .75rem; }
.about-content h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700;
  color: var(--primary); margin-bottom: 16px;
}
.about-content p { color: var(--muted); margin-bottom: 16px; }
.about-meta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.meta-row {
  display: flex; gap: 10px; align-items: center;
  font-size: .95rem;
}
.meta-row strong { color: var(--primary); min-width: 160px; }

/* ── Principal Message ───────────────────────────────────────── */
.principal-card {
  background: var(--white); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
  border-left: 5px solid var(--primary);
  display: flex; gap: 28px; align-items: flex-start;
}
.principal-avatar {
  width: 90px; height: 90px; border-radius: 50%; flex-shrink: 0;
  background: var(--light); display: flex; align-items: center;
  justify-content: center; font-size: 2.5rem;
  border: 3px solid var(--primary); overflow: hidden;
}
.principal-avatar img { width: 100%; height: 100%; object-fit: cover; }
.principal-quote {
  font-style: italic; color: var(--muted);
  font-size: 1.05rem; line-height: 1.8; margin-bottom: 16px;
}
.principal-quote::before { content: '"'; font-size: 2rem; color: var(--accent); line-height: 0; vertical-align: -0.5rem; margin-right: 4px; }
.principal-name { font-weight: 700; color: var(--primary); font-size: 1rem; }
.principal-title { font-size: .85rem; color: var(--muted); }

/* ── Achievements ────────────────────────────────────────────── */
.achievements-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.achievement-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  border: 1px solid #e8edf5;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.achievement-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.achievement-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.12); }
.achievement-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.achievement-icon { font-size: 1.8rem; }
.achievement-year {
  background: var(--light); color: var(--primary);
  font-size: .78rem; font-weight: 700; padding: 4px 10px;
  border-radius: 50px; margin-left: auto;
}
.achievement-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.achievement-card p  { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── Facilities ──────────────────────────────────────────────── */
.facilities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.facility-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); padding: 28px;
  transition: var(--transition); text-align: center;
}
.facility-card:hover { background: rgba(255,255,255,.1); transform: translateY(-4px); }
.facility-icon { font-size: 2.4rem; margin-bottom: 14px; }
.facility-card h3 { color: var(--accent); font-size: 1.05rem; margin-bottom: 8px; }
.facility-card p  { color: rgba(255,255,255,.65); font-size: .88rem; }

/* ── Gallery ─────────────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; aspect-ratio: 4/3;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  opacity: 0; transition: var(--transition);
  display: flex; align-items: flex-end; padding: 16px;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span { color: var(--white); font-weight: 600; font-size: .9rem; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92); align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 8px; object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: var(--white); cursor: pointer;
  background: none; border: none; line-height: 1;
}
.lightbox-caption {
  position: absolute; bottom: 20px;
  color: rgba(255,255,255,.8); font-size: .95rem;
}

/* ── Management ──────────────────────────────────────────────── */
.management-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px; margin-top: 20px;
}
.mgmt-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px; text-align: center; box-shadow: var(--shadow);
  border: 1px solid #e8edf5; transition: var(--transition);
}
.mgmt-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.mgmt-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  margin: 0 auto 16px; display: flex; align-items: center;
  justify-content: center; font-size: 1.8rem; color: var(--white);
  font-weight: 800;
}
.mgmt-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: 6px; }
.mgmt-role { font-size: .82rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* ── Contact ─────────────────────────────────────────────────── */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.contact-info h3 { font-size: 1.3rem; color: var(--primary); margin-bottom: 20px; }
.contact-items { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.c-icon {
  width: 44px; height: 44px; background: var(--primary);
  border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.c-label { font-size: .78rem; color: var(--muted); margin-bottom: 2px; }
.c-val { font-weight: 600; color: var(--dark); }
.contact-map {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); min-height: 300px;
  background: var(--light); display: flex;
  align-items: center; justify-content: center;
  font-size: 3rem;
}
.contact-map iframe { width: 100%; height: 300px; border: none; }

/* ── Footer ──────────────────────────────────────────────────── */
#footer {
  background: #070e1a; color: rgba(255,255,255,.65);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p  { font-size: .88rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: var(--accent); font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.social-links { display: flex; gap: 10px; margin-top: 20px; }
.social-link {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; font-size: 1rem; transition: var(--transition);
}
.social-link:hover { background: var(--accent); color: var(--dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px; text-align: center;
  font-size: .82rem; color: rgba(255,255,255,.35);
}

/* ── Back-to-top ─────────────────────────────────────────────── */
#back-top {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: var(--dark);
  border: none; cursor: pointer; font-size: 1.1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(16px);
  transition: var(--transition);
}
#back-top.visible { opacity: 1; transform: translateY(0); }
#back-top:hover { background: #e09a1a; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-wrap { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(10,25,55,.97); padding: 16px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .section { padding: 56px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .principal-card { flex-direction: column; align-items: center; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .btn { padding: 12px 20px; font-size: .88rem; }
}
