/* ===========================
   BASE & RESET
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:    #1a3a6b;
  --blue-d:  #112850;
  --gold:    #c8902a;
  --gold-l:  #e8a83a;
  --white:   #ffffff;
  --light:   #f5f7fa;
  --gray:    #6b7280;
  --dark:    #1f2937;
  --shadow:  0 4px 24px rgba(0,0,0,.10);
  --radius:  10px;
  --trans:   0.3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
}

a { text-decoration: none; color: inherit; transition: color var(--trans); }
ul { list-style: none; }
img { max-width: 100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   TOP BAR
=========================== */
.topbar {
  background: var(--blue-d);
  color: #cdd5e0;
  font-size: .82rem;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 7px 24px;
  flex-wrap: wrap;
}

/* ===========================
   HEADER
=========================== */
.header {
  background: var(--white);
  padding: 18px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}

.logo-circle.small {
  width: 40px; height: 40px; font-size: .95rem;
}

.school-name h1 {
  font-family: 'Merriweather', serif;
  font-size: 1.25rem;
  color: var(--blue);
  line-height: 1.2;
}

.tagline {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: .5px;
  margin-top: 2px;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--blue);
  cursor: pointer;
}

/* ===========================
   NAVBAR
=========================== */
.navbar {
  background: var(--blue);
}

.navbar ul {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
}

.navbar ul li a {
  display: block;
  padding: 14px 20px;
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .3px;
  transition: background var(--trans), color var(--trans);
}

.navbar ul li a:hover,
.navbar ul li a.active {
  background: var(--gold);
  color: var(--white);
}

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 88vh;
  background:
    linear-gradient(160deg, rgba(26,58,107,.88) 40%, rgba(200,144,42,.7) 100%),
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,.03) 0px,
      rgba(255,255,255,.03) 2px,
      transparent 2px,
      transparent 20px
    ),
    var(--blue-d);
  display: flex;
  align-items: center;
}

.hero-overlay {
  width: 100%;
  padding: 80px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-sub {
  color: var(--gold-l);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h2 {
  font-family: 'Merriweather', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--white);
  line-height: 1.2;
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-desc {
  color: rgba(255,255,255,.8);
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--trans);
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-l); transform: translateY(-2px); }

.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue); }

.full-width { width: 100%; text-align: center; }

/* ===========================
   STATS BAND
=========================== */
.stats-band {
  background: var(--gold);
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 32px 24px;
  gap: 24px;
}

.stat {
  text-align: center;
  color: var(--white);
}

.stat-num {
  display: block;
  font-family: 'Merriweather', serif;
  font-size: 2.2rem;
  font-weight: 700;
}

.stat-label {
  font-size: .88rem;
  font-weight: 600;
  opacity: .9;
  letter-spacing: .5px;
}

/* ===========================
   SECTIONS
=========================== */
.section { padding: 88px 0; }
.bg-light { background: var(--light); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-badge {
  display: inline-block;
  background: rgba(200,144,42,.12);
  color: var(--gold);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-badge.light { background: rgba(255,255,255,.2); color: var(--gold-l); }

.section-title {
  font-family: 'Merriweather', serif;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--blue);
  margin-bottom: 14px;
  line-height: 1.3;
}

.section-sub { color: var(--gray); font-size: .98rem; }

/* ===========================
   TWO COLUMN LAYOUT
=========================== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ===========================
   ABOUT
=========================== */
.about-img-placeholder {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-d) 100%);
  border-radius: 16px;
  height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: .95rem;
}

.img-icon { font-size: 5rem; margin-bottom: 12px; }

.about-text { padding: 8px 0; }
.about-text p { color: var(--gray); margin-bottom: 16px; }

.check-list { margin: 20px 0 28px; }
.check-list li {
  color: var(--blue);
  font-weight: 600;
  font-size: .95rem;
  padding: 5px 0;
}

/* ===========================
   PRINCIPAL'S MESSAGE
=========================== */
.principal-msg {
  background: linear-gradient(135deg, var(--blue-d) 0%, var(--blue) 100%);
  padding: 72px 0;
}

.principal-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  max-width: 900px;
  margin: 0 auto;
}

.principal-avatar {
  font-size: 6rem;
  flex-shrink: 0;
  background: rgba(255,255,255,.1);
  border-radius: 50%;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--gold);
}

.principal-text blockquote {
  font-family: 'Merriweather', serif;
  font-size: 1.1rem;
  color: rgba(255,255,255,.9);
  line-height: 1.8;
  font-style: italic;
  margin: 14px 0 18px;
  border-left: 3px solid var(--gold);
  padding-left: 20px;
}

.principal-name {
  color: var(--gold-l);
  font-weight: 700;
  font-size: 1rem;
}

.principal-role {
  color: rgba(255,255,255,.6);
  font-size: .88rem;
}

/* ===========================
   CARDS
=========================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--blue);
  transition: transform var(--trans);
}

.card:hover { transform: translateY(-6px); }

.card-highlight { border-top-color: var(--gold); }

.card-icon { font-size: 2.4rem; margin-bottom: 14px; }

.card h3 {
  font-family: 'Merriweather', serif;
  color: var(--blue);
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.card > p:first-of-type {
  font-size: .82rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}

.card > p:last-of-type { color: var(--gray); font-size: .92rem; }

/* ===========================
   FACILITIES
=========================== */
.facilities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}

.facility-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--trans), box-shadow var(--trans);
}

.facility-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(26,58,107,.15);
}

.facility-icon { font-size: 2.8rem; margin-bottom: 14px; }

.facility-item h4 {
  font-family: 'Merriweather', serif;
  color: var(--blue);
  font-size: 1rem;
  margin-bottom: 8px;
}

.facility-item p { color: var(--gray); font-size: .88rem; }

/* ===========================
   NEWS
=========================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 0;
  overflow: hidden;
  transition: transform var(--trans);
}
.news-card:hover { transform: translateY(-4px); }

.news-date {
  background: var(--blue);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 16px 8px;
  flex-shrink: 0;
}

.news-date .day {
  font-family: 'Merriweather', serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1;
}

.news-date .mon {
  font-size: .78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .8;
}

.news-body { padding: 20px; }

.news-tag {
  background: rgba(200,144,42,.12);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: 8px;
}

.news-body h4 {
  font-family: 'Merriweather', serif;
  color: var(--blue);
  font-size: .98rem;
  margin-bottom: 8px;
}

.news-body p { color: var(--gray); font-size: .88rem; }

/* ===========================
   GALLERY
=========================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  cursor: pointer;
  transition: transform var(--trans);
}
.gallery-item:hover { transform: scale(1.02); }

.gallery-item span {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .5px;
  padding: 10px 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,.5);
}

.gallery-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.6) 0%, transparent 60%);
  z-index: 1;
}

.g1 { background: linear-gradient(135deg, #1a3a6b 0%, #c8902a 100%); grid-column: span 2; }
.g2 { background: linear-gradient(135deg, #0f4c75 0%, #1b262c 100%); }
.g3 { background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%); }
.g4 { background: linear-gradient(135deg, #c8902a 0%, #1a3a6b 100%); grid-column: span 2; }
.g5 { background: linear-gradient(135deg, #8e2de2 0%, #4a00e0 100%); }
.g6 { background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%); }

/* ===========================
   CONTACT
=========================== */
.contact-info { padding: 8px 0; }
.contact-info p { color: var(--gray); margin-bottom: 24px; }

.info-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong { display: block; color: var(--blue); margin-bottom: 4px; font-size: .95rem; }
.info-item p { color: var(--gray); font-size: .9rem; margin: 0; }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form h3 {
  font-family: 'Merriweather', serif;
  color: var(--blue);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .92rem;
  color: var(--dark);
  outline: none;
  transition: border-color var(--trans);
  background: var(--light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
}

.form-group textarea { resize: vertical; }

.form-success {
  display: none;
  margin-top: 14px;
  color: #16a34a;
  font-weight: 600;
  text-align: center;
  background: #f0fdf4;
  border-radius: var(--radius);
  padding: 10px;
  font-size: .9rem;
}

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--blue-d);
  color: rgba(255,255,255,.75);
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--white);
  font-family: 'Merriweather', serif;
  font-size: .95rem;
}

.footer p { font-size: .88rem; line-height: 1.7; }

.footer-col h4 {
  color: var(--gold-l);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .5px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
  color: rgba(255,255,255,.65);
  font-size: .88rem;
  transition: color var(--trans);
}

.footer-col ul li a:hover { color: var(--gold-l); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  text-align: center;
  padding: 20px 24px;
  font-size: .82rem;
  color: rgba(255,255,255,.45);
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .navbar ul {
    flex-direction: column;
    align-items: stretch;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--trans);
    padding: 0 24px;
  }

  .navbar.open ul { max-height: 400px; }

  .two-col { grid-template-columns: 1fr; gap: 40px; }

  .principal-card { flex-direction: column; align-items: center; text-align: center; }
  .principal-text blockquote { border-left: none; padding-left: 0; border-top: 3px solid var(--gold); padding-top: 16px; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .g1, .g4 { grid-column: span 1; }

  .footer-inner { grid-template-columns: 1fr 1fr; }

  .topbar { gap: 12px; font-size: .75rem; }
  .school-name h1 { font-size: 1rem; }

  .stats-band { gap: 16px; }
  .stat-num { font-size: 1.7rem; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .contact-form { padding: 28px 20px; }
  .hero { min-height: 70vh; }
}
