/* =========================================================
   PREMIUM SCHOOL THEME – NAVY + GOLD (Modern Redesign)
   Clean, Professional, Fully Responsive
   ========================================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f5f7fb;
  color: #0a1a2f;
  line-height: 1.6;
}

/* ---------- COLOR SYSTEM ---------- */
:root {
  --primary: #0a1a2f;
  --primary-light: #102947;
  --primary-soft: #1a3558;

  --gold: #f4b400;
  --gold-light: #ffdd66;

  --success: #1b9c66;
  --warning: #faae00;
  --error: #d13232;

  --ink: #0a1a2f;
  --muted: #6b7280;
  --surface: #ffffff;
  --border: #e2e8f0;
  --shadow: 0 8px 20px rgba(0,0,0,0.08);

  --radius: 14px;
}

/* ---------- CONTAINER ---------- */
.container {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding: 0 24px;
}

/* ---------- SPECIAL BUTTONS ---------- */
.nav-cta, .donate-btn, .contact-btn {
  font-weight: 700;
  border-radius: 12px;
}

.nav-cta {
  background: var(--gold);
  color: #000 !important;
}
.nav-cta:hover { background: var(--gold-light); }

.donate-btn {
  background: var(--error);
  color: #fff !important;
}
.donate-btn:hover { background: #a62828; }

.contact-btn {
  background: var(--success);
  color: #fff !important;
}
.contact-btn:hover { background: #157a4f; }

.active-link {
  background: var(--gold);
  color: #000 !important;
  border-radius: 12px;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-soft));
  color: #fff;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 32px;
}

.hero h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 12px;
}

.hero p {
  font-size: clamp(16px, 1.8vw, 20px);
  color: #dbe2ee;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero .btn.primary {
  background: var(--gold);
  color: #000;
}
.hero .btn.primary:hover { background: var(--gold-light); }

.hero .btn.ghost {
  border-color: #fff; color: #fff;
}
.hero .btn.ghost:hover { background: rgba(255,255,255,0.15); }

.hero .media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

@media (max-width: 960px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ---------- SECTION WRAPPER ---------- */
.section {
  padding: 60px 0;
}

.section h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
}

.section p.lead {
  font-size: 17px;
  color: var(--muted);
}
/* =========================================================
   WHY CHOOSE US (Cards)
   ========================================================= */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: .3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
}

.why-card .icon i {
  font-size: 36px;
  color: var(--gold);
  margin-bottom: 12px;
}

/* =========================================================
   UPDATES LIST
   ========================================================= */
.updates-list { display: flex; flex-direction: column; gap: 14px; }

.update-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  transition: .25s ease;
}

.update-item:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: .35s ease;
}
.gallery img:hover { transform: scale(1.04); border-color: var(--gold); }

/* =========================================================
   TABLES
   ========================================================= */
.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.table th {
  background: var(--primary);
  color: #fff;
  padding: 16px;
}
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
}
.table tr:hover { background: #f9f4e4; }

/* =========================================================
   FORMS
   ========================================================= */
input, textarea, select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
input:focus, textarea:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(244,180,0,0.25);
  outline: none;
}

/* =========================================================
   POPUP
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  width: 90%;
  max-width: 450px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  position: relative;
}

.close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  cursor: pointer;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  background: var(--primary);
  color: #fff;
  padding: 60px 0 32px;
}

.footer-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}

.footer-left h3 { color: var(--gold); }
.footer-right h4 { color: var(--gold); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.15);
}
/* =========================================================
   UTILITIES
   ========================================================= */
.text-center { text-align: center; }
.text-right { text-align: right; }
.bold { font-weight: 700; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

.shadow { box-shadow: var(--shadow); }
.rounded { border-radius: var(--radius); }

.slideshow-container {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}

.slide-img {
  position: absolute;     /* REQUIRED */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
}

.slide-img:first-child {
  opacity: 1;   /* First image visible initially */
}





/* =========================================================
   FINAL PREMIUM HEADER (Unified, Clean)
   ========================================================= */

.premium-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 9999;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 40px;
}

.logo-box {
  width: 90px;
  height: 90px;
}
.school-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-title {
  font-size: 28px;
  font-weight: 800;
  text-align: center;
  color: #0f172a;
  flex: 1;
}

/* -------- NAVBAR -------- */
.nav-bar {
  background: #0f2c6e;
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 12px 40px;
}

.nav-link {
  color: #fff;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: .3s;
}

.nav-link:hover { background: #1d4ed8; }

.highlight {
  background: #ffbf00;
  color: #000 !important;
  font-weight: 700;
}

/* MOBILE */
@media (max-width: 768px) {
  .header-top { padding: 10px 20px; }
  .logo-box { width: 70px; height: 70px; }
  .school-title { font-size: 22px; }

  .nav-bar {
    flex-wrap: wrap;
    gap: 16px;
    padding: 10px;
  }
}


/* =============================
   LIGHT THEME HERO SECTION
   ============================= */

.hero {
  padding: 80px 0;
  background: #f7faff !important;    /* very light pastel blue */
  color: #003366 !important;          /* clean dark-blue text */
}

.hero h1 {
  color: #003366 !important;
}

.hero p {
  color: #445b7c !important;
}

.hero .btn.primary {
  background: #ffcc33 !important;
  color: #000 !important;
}

.hero .btn.primary:hover {
  background: #ffd766 !important;
}

.hero .btn.ghost {
  border: 2px solid #003366 !important;
  color: #003366 !important;
}

.hero .btn.ghost:hover {
  background: rgba(0,0,0,0.06) !important;
}

/* =======================================
   LIGHT THEME BUTTONS (FIXED & MODERN)
   ======================================= */

/* Base button */
.btn {
  display: inline-block;
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: 0.25s ease-in-out;
  cursor: pointer;
}

/* Yellow Primary Button */
.btn.primary {
  background: #ffcc33 !important;
  color: #000 !important;
  border: none !important;
}

.btn.primary:hover {
  background: #ffd965 !important;
}

/* Simple Outline Button */
.btn.ghost {
  border: 2px solid #003366 !important;
  color: #003366 !important;
  background: transparent !important;
}

.btn.ghost:hover {
  background: #e8f0fe !important;   /* light pastel hover */
  color: #003366 !important;
}


.alumni-section {
    padding: 60px 0;
}

.alumni-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.alumni-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.alumni-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.alumni-photo {
    width: 100%;
    height: 260px;          /* FIXED HEIGHT */
    object-fit: cover;      /* CROPS NICELY */
    border-radius: 14px;
}

.alumni-card h3 {
    font-size: 20px;
    margin-top: 12px;
    font-weight: 700;
}

.alumni-card .year {
    color: #475569;
    margin-bottom: 10px;
    font-size: 14px;
}

.alumni-card .achievement {
    font-weight: 600;
    color: #1e3a8a;
    margin-bottom: 10px;
}

.alumni-card .message {
    font-style: italic;
    color: #374151;
}

.alumni-card-link {
    text-decoration: none;
    color: inherit;
}
.alumni-card-link:hover .alumni-card {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}


.year {
    color: #555;
    margin-bottom: 6px;
}

.achievement {
    font-weight: 600;
    color: #1e3a8a;
}

.message {
    font-style: italic;
    color: #555;
}

/* Only for Alumni page */
.alumni-section .alumni-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* EXACTLY 2 CARDS */
    gap: 25px;
    margin-top: 30px;
}

.alumni-section .alumni-card {
    background: #ffffff;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s ease;
}

.alumni-section .alumni-photo {
    width: 100%;
    height: 300px;
    object-fit: contain;      /* Prevents cutting */
    background: #f5f5f5;      /* Adds soft background behind images */
    border-radius: 14px;
    padding: 8px;             /* Adds breathing space */
}


@media (max-width: 768px) {
    .alumni-section .alumni-grid {
        grid-template-columns: 1fr;
    }
}

/* .social-icons a img {
  width: 32px;
  height: 32px;
  transition: 0.3s;
  filter: brightness(0) invert(1);
}

.social-icons a:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px #fff);
} */


.footer-links h4 {
  color: #ffcc00;
  margin-bottom: 10px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffcc00;
}

/* MAP */
.footer-map {
  margin-top: 30px;
  padding: 0 20px;
}

.footer-map iframe {
  width: 100%;
  height: 250px;
  border: 0;
  border-radius: 10px;
}

/* QUICK LINKS – TWO COLUMN LAYOUT */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;

  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  column-gap: 40px;
}

.footer-links ul li {
  margin-bottom: 8px;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: #ffcc00;
}

/* MOBILE – STACK TO ONE COLUMN */
@media (max-width: 768px) {
  .footer-links ul {
    grid-template-columns: 1fr;
  }
}

/* ================================
   Monthly Activities - Mobile Table Fix
   ================================ */

.table-wrap {
  width: 100%;
  overflow-x: auto;                 /* smooth horizontal scroll */
  -webkit-overflow-scrolling: touch;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  background: #fff;
}

.activities-table {
  width: 100%;
  min-width: 720px;                 /* IMPORTANT: prevents squishing columns */
  border-collapse: collapse;
}

/* Make header sticky inside scroll */
.activities-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Mobile polish */
@media (max-width: 768px) {

  .section h2 {
    font-size: 26px;
    line-height: 1.2;
  }

  .lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .activities-table th,
  .activities-table td {
    padding: 10px 12px;
    font-size: 14px;
    white-space: nowrap;            /* keeps each column readable */
  }

  .badge {
    display: inline-block;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
  }
}

