@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap");

:root {
  --navy: #0d1b2a;
  --navy-mid: #162436;
  --teal: #1a7f74;
  --teal-light: #22a396;
  --teal-pale: #e0f4f2;
  --gold: #c9913d;
  --gold-light: #f2d196;
  --gold-pale: #fdf6e7;
  --slate: #4a5568;
  --mist: #f5f7fa;
  --white: #ffffff;
  --border: #dde3ed;
  --red: #c0392b;
  --green: #1a7f4b;
  --shadow: 0 8px 32px rgba(13, 27, 42, 0.08);
  --radius: 12px;
  --header-h: 64px;
  --utility-h: 36px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--navy);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  padding-bottom: 72px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-light); }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; line-height: 1.2; }
.container { width: min(1140px, 92vw); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.utility-bar {
  background: var(--navy-mid);
  color: rgba(255,255,255,0.85);
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 200;
}
.utility-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  align-items: center;
  min-height: var(--utility-h);
  padding: 6px 0;
}
.utility-bar a { color: var(--teal-light); }
.utility-bar strong { color: #fff; }

.site-header {
  background: var(--navy);
  position: sticky;
  top: var(--utility-h);
  z-index: 150;
  transition: box-shadow 0.2s;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}
.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 12px;
}
.site-logo-mark {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  margin: 0 auto 16px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.page-hero .site-logo-mark {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.hero-content .site-logo-mark {
  margin-left: 0;
  margin-right: auto;
}
.brand-text { font-size: 15px; font-weight: 600; line-height: 1.2; }
.brand-text span { display: block; font-size: 10px; font-weight: 300; color: rgba(255,255,255,0.5); }
.brand-text .brand-location { color: var(--teal-light); font-weight: 500; font-size: 11px; }
.hero-location {
  font-size: 1.25rem;
  color: var(--gold-light);
  font-weight: 500;
  margin: -4px 0 12px;
  letter-spacing: 0.02em;
}
.footer-location { color: var(--teal-light); font-weight: 500; margin: -4px 0 8px; font-size: 14px; }
.mpd-table a { font-weight: 600; word-break: break-word; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: #fff;
  margin: 5px 0; transition: 0.2s;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-link {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: #fff; background: rgba(255,255,255,0.08); }
.nav-link.mpd { background: var(--teal); color: #fff; font-weight: 600; }
.nav-link.mpd:hover { background: var(--teal-light); color: #fff; }
.nav-link.cta { background: var(--gold); color: var(--navy); font-weight: 700; }
.nav-link.cta:hover { background: var(--gold-light); color: var(--navy); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 24px; border-radius: 8px; font-weight: 600;
  font-size: 14px; border: none; cursor: pointer; transition: 0.2s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); color: var(--navy); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--teal-light); color: #fff; }
.btn-outline { background: transparent; border: 2px solid #fff; color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.btn-block { width: 100%; }

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,27,42,0.35) 0%, rgba(13,27,42,0.85) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 0 48px;
  width: 100%;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin-bottom: 12px; }
.hero-tagline { font-size: 1.15rem; color: var(--teal-light); font-style: italic; margin-bottom: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.stat-strip {
  background: var(--navy);
  color: #fff;
  padding: 28px 0;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: "DM Serif Display", serif;
  font-size: 1.75rem;
  color: var(--gold-light);
}
.stat-item span { font-size: 13px; color: rgba(255,255,255,0.7); }

.notice-ticker {
  background: var(--gold-pale);
  border-bottom: 1px solid var(--gold-light);
  padding: 10px 0;
  font-size: 14px;
}
.notice-ticker .container { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.notice-label {
  background: var(--gold);
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  flex-shrink: 0;
}

section { padding: 64px 0; }
section.alt { background: var(--mist); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head .label {
  font-family: "DM Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 12px; }
.section-head p { color: var(--slate); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-icon {
  width: 48px; height: 48px;
  background: var(--teal-pale);
  color: var(--teal);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--slate); font-size: 14px; }

.results-strip {
  background: var(--teal);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.results-strip h2 { margin-bottom: 8px; }
.results-strip p { opacity: 0.9; margin-bottom: 24px; }
.results-numbers {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.results-numbers div strong {
  font-family: "DM Serif Display", serif;
  font-size: 2.5rem;
  display: block;
}

.cta-band {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 56px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { margin-bottom: 24px; opacity: 0.85; max-width: 520px; margin-left: auto; margin-right: auto; }

.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}
.event-date {
  background: var(--teal);
  color: #fff;
  padding: 12px 20px;
  font-family: "DM Mono", monospace;
  font-size: 13px;
}
.event-card .body { padding: 20px; }
.event-card h3 { font-size: 1.1rem; margin-bottom: 8px; }

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.testimonial {
  background: #fff;
  border-left: 4px solid var(--gold);
  padding: 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
}
.testimonial blockquote { font-style: italic; color: var(--slate); margin-bottom: 12px; }
.testimonial cite { font-size: 13px; font-weight: 600; color: var(--navy); }

.gallery-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-preview img, .gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 8px;
}
.gallery-preview a:first-child { grid-row: span 2; }
.gallery-preview a:first-child img { aspect-ratio: auto; height: 100%; min-height: 200px; }

.principal-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}
.principal-photo {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.principal-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.principal-message .signature { margin-top: 16px; font-weight: 600; color: var(--teal); }
.principal-block.reverse { direction: rtl; }
.principal-block.reverse > * { direction: ltr; }
.cultural-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.cultural-feature img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cultural-feature figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--slate);
  text-align: center;
}

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.page-hero p { opacity: 0.8; margin-top: 8px; max-width: 600px; margin-left: auto; margin-right: auto; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.value-card {
  background: var(--teal-pale);
  padding: 24px;
  border-radius: var(--radius);
}
.value-card h3 { color: var(--teal); font-size: 1rem; margin-bottom: 8px; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0;
}
.data-table th, .data-table td {
  border: 1px solid var(--border);
  padding: 10px 14px;
  text-align: left;
}
.data-table th { background: var(--mist); font-weight: 600; }
.data-table tbody tr:nth-child(even) { background: var(--mist); }

.tabs { margin-top: 24px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tab-btn {
  padding: 10px 18px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}
.tab-btn.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; }
.timeline-step {
  text-align: center;
  padding: 24px 16px;
  background: var(--mist);
  border-radius: var(--radius);
  position: relative;
}
.timeline-step .num {
  width: 36px; height: 36px;
  background: var(--teal);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-weight: 700;
}

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: 13px; color: var(--slate); margin-top: 8px; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  background: none;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--navy);
}
.faq-question::after { content: "+"; font-size: 20px; color: var(--teal); }
.faq-item.open .faq-question::after { content: "−"; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s; }
.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 18px; }
.faq-answer p { color: var(--slate); font-size: 14px; }

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filter {
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 20px;
  cursor: pointer;
  font-size: 13px;
}
.gallery-filter.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.gallery-item { position: relative; }
.gallery-item.hidden { display: none; }
.gallery-item button {
  padding: 0; border: none; background: none; cursor: pointer; width: 100%;
}
.gallery-item img { border-radius: var(--radius); }

#lightbox {
  position: fixed; inset: 0;
  background: rgba(13,27,42,0.92);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
#lightbox[hidden] { display: none !important; }
#lightbox img { max-height: 90vh; max-width: 90vw; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: #fff;
  font-size: 32px; cursor: pointer;
}

.mpd-page .mpd-nav {
  position: sticky;
  top: calc(var(--utility-h) + var(--header-h));
  background: #fff;
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 12px 0;
}
.mpd-nav .container { display: flex; flex-wrap: wrap; gap: 8px; }
.mpd-nav a {
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
}
.mpd-nav a.active, .mpd-nav a:hover { background: var(--teal-pale); color: var(--teal); }
.mpd-section { padding: 40px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 140px; }
.mpd-section h2 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  color: var(--teal);
}
.mpd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.mpd-table th, .mpd-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  vertical-align: top;
}
.mpd-table th { width: 38%; background: var(--mist); text-align: left; font-weight: 600; }
.doc-link { font-weight: 600; }
.doc-pending { font-size: 11px; color: var(--slate); font-weight: 400; }
.mpd-disclaimer {
  background: var(--gold-pale);
  border: 1px solid var(--gold-light);
  padding: 16px 20px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--slate);
  margin-top: 32px;
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.map-wrap { border-radius: var(--radius); overflow: hidden; min-height: 320px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 320px; border: 0; }

.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
}
.site-footer h3, .site-footer h4 { color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,0.75); }
.footer-links a:hover { color: var(--teal-light); }
.mpd-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--teal);
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.mpd-badge:hover { background: var(--teal-light); color: #fff !important; }
.footer-note { font-size: 12px; opacity: 0.7; margin-top: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 16px 0;
  font-size: 13px;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  bottom: 88px;
  right: 20px;
  z-index: 300;
  background: #25d366;
  color: #fff !important;
  padding: 12px 16px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}
.whatsapp-float:hover { color: #fff !important; filter: brightness(1.05); }

.mobile-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 250;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

.campus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.campus-grid img { border-radius: 8px; aspect-ratio: 1; object-fit: cover; width: 100%; }

@media (max-width: 900px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .principal-block, .two-col, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .gallery-preview { grid-template-columns: 1fr 1fr; }
  .gallery-preview a:first-child { grid-row: span 1; }
  .campus-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { padding-bottom: 64px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: calc(var(--utility-h) + var(--header-h));
    left: 0; right: 0;
    background: var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 4px;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.25s;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-cta { display: block; }
  .whatsapp-float { bottom: 76px; }
  .values-grid { grid-template-columns: 1fr; }
}

@media print {
  .utility-bar, .site-header, .whatsapp-float, .mobile-cta, .mpd-nav { display: none !important; }
  .mpd-section { page-break-inside: avoid; }
}
