/* ===== SSES Website Styles ===== */
:root {
  --navy: #14245a;
  --navy-dark: #0b1638;
  --gold: #f5c518;
  --gold-soft: #fff6d1;
  --cyan: #12b3d1;
  --red: #c8102e;
  --ink: #1d2433;
  --muted: #5b6475;
  --bg: #ffffff;
  --bg-alt: #f4f6fb;
  --line: #e3e7f0;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(20, 36, 90, .10);
  --serif: "Merriweather", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body { font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ----- Government strip ----- */
.gov-strip { background: var(--navy-dark); color: #c9d2ee; font-size: 13px; padding: 6px 0; text-align: center; letter-spacing: .02em; }

/* ----- Masthead ----- */
.masthead { background: #fff; border-bottom: 4px solid var(--gold); }
.masthead-inner { display: flex; align-items: center; gap: 14px; padding: 16px 0; }
.mast-logo { width: 78px; height: 78px; object-fit: contain; flex-shrink: 0; }
.mast-logo.main { width: 96px; height: 96px; margin-left: auto; }
.mast-text { padding-left: 8px; }
.mast-text h1 { font-family: var(--serif); color: var(--navy); font-size: clamp(20px, 3vw, 32px); line-height: 1.2; font-weight: 900; }
.mast-text p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* ----- Navbar ----- */
.navbar { position: sticky; top: 0; z-index: 50; background: var(--navy); box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.nav-brand { color: var(--gold); font-family: var(--serif); font-weight: 900; letter-spacing: .08em; }
.nav-links { list-style: none; display: flex; gap: 4px; }
.nav-links a { display: block; color: #e8ecf8; text-decoration: none; padding: 16px 16px; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; transition: .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .25s; }

/* ----- Shared section styles ----- */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; margin-bottom: 8px; }
.eyebrow.light { color: var(--gold); }
.center { text-align: center; }
.section-title { font-family: var(--serif); color: var(--navy); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25; margin-bottom: 18px; }
.section-title.center { margin-bottom: 44px; }
.lead { color: var(--muted); font-size: 18px; }

/* ----- Hero / Carousel ----- */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(18,179,209,.25), transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(245,197,24,.18), transparent 40%),
    linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; padding: 56px 0 48px; text-align: center;
}
.hero-title { font-family: var(--serif); font-size: clamp(22px, 3.4vw, 36px); margin-bottom: 34px; }

.carousel { position: relative; display: flex; align-items: center; gap: 12px; }
.car-viewport { overflow: hidden; flex: 1; border-radius: 20px; }
.car-track { display: flex; transition: transform .6s cubic-bezier(.65,.05,.36,1); }
.slide { min-width: 100%; padding: 6px; }
.slide-card {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: #fff; color: var(--ink); border-radius: 20px; padding: 36px 44px; text-align: left;
  box-shadow: 0 20px 50px rgba(0,0,0,.25); min-height: 340px;
}
.slide-photo, .fac-photo {
  width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover;
  border: 6px solid var(--gold); box-shadow: 0 0 0 6px var(--gold-soft);
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 900;
}
.slide-photo { width: 260px; justify-self: center; font-size: 76px; }
.badge { display: inline-block; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 99px; margin-bottom: 14px; }
.badge.gold { background: var(--gold); color: var(--navy-dark); }
.slide-name { font-family: var(--serif); color: var(--navy); font-size: clamp(22px, 3vw, 34px); line-height: 1.2; }
.slide-pos { color: var(--red); font-weight: 700; font-size: 18px; margin: 6px 0 16px; }
.slide-msg { color: var(--muted); font-size: 18px; border-left: 4px solid var(--gold); padding-left: 16px; font-style: italic; }

.car-btn {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4);
  background: rgba(255,255,255,.1); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; flex-shrink: 0; transition: .2s;
}
.car-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-dark); }
.car-dots { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.car-dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; transition: .3s; }
.car-dots button.active { width: 30px; background: var(--gold); }

/* ----- Welcome ----- */
.welcome-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.focus-cards { display: grid; gap: 16px; }
.focus-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.focus-card:nth-child(2) { border-left-color: var(--gold); }
.focus-card:nth-child(3) { border-left-color: var(--red); }
.focus-icon { font-size: 30px; line-height: 1; }
.focus-card h3 { color: var(--navy); font-size: 19px; }
.focus-card p { color: var(--muted); font-size: 15px; }

/* ----- About ----- */
.vm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.vm-card { background: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); border-top: 5px solid var(--navy); }
.vm-card h3 { font-family: var(--serif); color: var(--navy); margin-bottom: 12px; }
.vm-card p { color: var(--muted); margin-bottom: 10px; }
.vm-card ul { padding-left: 20px; color: var(--muted); }
.vm-card li { margin-bottom: 8px; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.value { background: var(--navy); color: var(--gold); text-align: center; font-family: var(--serif); font-weight: 700; padding: 18px 10px; border-radius: var(--radius); }

/* ----- Faculty ----- */
.faculty-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.fac-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: transform .2s; }
.fac-card:hover { transform: translateY(-4px); }
.fac-card.principal { border: 2px solid var(--gold); background: linear-gradient(#fff, var(--gold-soft)); }
.fac-photo { width: 130px; margin: 0 auto 16px; font-size: 40px; border-width: 4px; box-shadow: 0 0 0 4px var(--gold-soft); }
.fac-card h3 { color: var(--navy); font-size: 18px; line-height: 1.3; }
.fac-card p { color: var(--red); font-weight: 600; font-size: 15px; }

/* ----- News ----- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.news-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.news-date { display: inline-block; align-self: flex-start; background: var(--gold-soft); color: var(--navy); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.news-card h3 { color: var(--navy); font-size: 19px; line-height: 1.35; }
.news-card p { color: var(--muted); font-size: 15px; }

/* ----- Gallery ----- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gal-item { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: zoom-in; background: var(--bg-alt); }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gal-item:hover img { transform: scale(1.06); }
.gal-item span { position: absolute; inset: auto 0 0 0; padding: 10px 14px; color: #fff; font-size: 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 50px 20px; border: 2px dashed var(--line); border-radius: var(--radius); }

/* ----- Contact ----- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
.contact-list { list-style: none; display: grid; gap: 18px; margin-top: 10px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > span { font-size: 22px; width: 44px; height: 44px; display: grid; place-items: center; background: #fff; border-radius: 50%; box-shadow: var(--shadow); flex-shrink: 0; }
.contact-list strong { color: var(--navy); }
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 360px; background: #dde3ee; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ----- Footer ----- */
.footer { background: var(--navy-dark); color: #b8c2e0; text-align: center; padding: 44px 0 30px; border-top: 4px solid var(--gold); }
.footer-logos { display: flex; justify-content: center; gap: 16px; margin-bottom: 16px; }
.footer-logos img { width: 60px; height: 60px; object-fit: contain; }
.footer-name { font-family: var(--serif); color: #fff; font-size: 20px; margin-bottom: 4px; }
.footer .small { font-size: 13px; margin-top: 18px; color: #8f9bc0; }

/* ----- Back to top ----- */
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--gold); color: var(--navy-dark); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: .3s; z-index: 60; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ----- Lightbox ----- */
.lightbox { position: fixed; inset: 0; background: rgba(5,10,30,.92); display: none; flex-direction: column; align-items: center; justify-content: center; padding: 24px; z-index: 100; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 80vh; border-radius: 10px; }
.lightbox p { color: #fff; margin-top: 12px; }
.lb-close { position: absolute; top: 14px; right: 22px; background: none; border: 0; color: #fff; font-size: 42px; cursor: pointer; }

/* ----- Reveal animation ----- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .welcome-grid, .vm-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .slide-card { grid-template-columns: 1fr; text-align: center; padding: 30px 22px; gap: 20px; }
  .slide-photo { width: 190px; font-size: 56px; }
  .slide-msg { border-left: 0; padding-left: 0; }
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .masthead-inner { flex-wrap: wrap; justify-content: center; text-align: center; }
  .mast-logo, .mast-logo.main { width: 62px; height: 62px; margin: 0; }
  .mast-text { order: 4; width: 100%; padding: 0; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--navy); max-height: 0; overflow: hidden; transition: max-height .35s; }
  .nav-links.open { max-height: 400px; }
  .nav-links a { border-bottom: 1px solid rgba(255,255,255,.08); border-left: 3px solid transparent; }
  .nav-links a.active { border-bottom-color: rgba(255,255,255,.08); border-left-color: var(--gold); }
  .car-btn { display: none; }
  .section { padding: 56px 0; }
  .gov-strip { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .car-track, .reveal { transition: none; }
}
/* News photos */
.news-card { overflow: hidden; }
.news-img { width: calc(100% + 52px); max-width: none; margin: -26px -26px 6px; aspect-ratio: 16 / 9; object-fit: cover; }

/* Compact hero so the carousel fits below the header */
.hero { padding: 28px 0 32px; }
.hero-title { font-size: clamp(20px, 2.6vw, 28px); margin-bottom: 20px; }
.slide-card { padding: 28px 40px; min-height: 300px; }
.slide-photo { width: 220px; }
