/* ══════════════════════════════════════════
   STANFORD CONVENT SCHOOL — style.css
══════════════════════════════════════════ */

/* ── CSS VARIABLES ── */
:root {
  --red:    #cc1f1f;
  --gold:   #e8a020;
  --blue:   #1a3a6b;
  --light:  #f7f5f0;
  --dark:   #1a1a1a;
  --gray:   #666;
  --border: #e0d8cc;

  --font-display: 'Playfair Display', serif;
  --font-body:    'Lato', sans-serif;

  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12);

  --transition: .2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; }

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ══════════════════════════════════════════
   TOP BAR
══════════════════════════════════════════ */
.topbar {
  /* background: var(--blue); */
background-image: linear-gradient(to right, #33338d, #6e3a8d, #95458b, #b45789, #cc6d89, #d76e82, #e0717a, #e87471, #e9605a, #e74a41, #e43026, #de0000);  justify-content: flex-end;
  align-items: center;
  padding: 3px 24px;
  gap: 4px;
  color: white;
  font-weight: 1000;
  letter-spacing: 0.05em;

}

.marquee {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
  line-height: 1.35;
}
/* 
.topbar a {
  color: rgba(255,255,255,.85);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-right: 1px solid rgb(252, 252, 252);
  /* transition: color var(--transition); */
 

.topbar a:last-child { border-right: none; }

.topbar a:hover { color: var(--gold); }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */



header {
  background: #fff;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "logo name portal"
    "logo address portal";
  align-items: center;
  column-gap: 24px;
  row-gap: 4px;
  padding: 22px 32px;
  border-bottom: 3px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: padding var(--transition), box-shadow var(--transition);
}

header > br {
  display: none;
}

header.scrolled {
  padding: 12px 32px;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
}

/* Logo */
.logo-wrap {
  grid-area: logo;
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 150px;
  height: 150px;
  /* border-radius: 5%; */
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: -1px;
  flex-shrink: 0;
  /* border: 3px solid var(--gold); */
  transition: transform var(--transition);
 
  /* box-shadow: 0 4px 12px rgba(0,0,0,.2); */
}

.logo-wrap:hover .logo-circle {
  /* transform: rotate(-5deg) scale(1.05); */
  zoom: 1.05;
}

.school-name {
  grid-area: name;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1.1;
  align-self: end;
  min-width: 0;
}

.school-name span { color: var(--blue); }

.school-address {
  grid-area: address;
  color: var(--blue);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
  margin-top: 0;
  align-self: start;
  white-space: normal;
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Parent Portal Button */
.parent-portal-btn {
  margin-left: auto;
  background: var(--blue);
  color: #fff;
  border: 2px solid var(--blue);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
}

.parent-portal-btn:hover {
  background: transparent;
  color: var(--blue);
}

.elementor-button-wrapper {
  grid-area: portal;
  margin-left: auto;
}

/* ══════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════ */
nav { background: var(--red); }

nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
}

nav ul li a {
  display: block;
  color: #fff;
  padding: 13px 22px;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background var(--transition), color var(--transition);
}

nav ul li a:hover,
nav ul li a.active {
  background: #fff;
  color: var(--red);
}

/* Dropdown */
.has-dropdown { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  min-width: 190px;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  z-index: 200;
  border-top: 3px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  animation: dropDown .2s ease;
}

@keyframes dropDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.has-dropdown:hover .dropdown { display: block; }

.dropdown li a {
  color: var(--dark);
  padding: 10px 18px;
  font-size: 0.85rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  border-bottom: 1px solid var(--border);
}

.dropdown li:last-child a { border-bottom: none; }

.dropdown li a:hover {
  background: var(--light);
  color: var(--red);
}

/* Mobile menu toggle (hidden on desktop) */
.menu-toggle {
  grid-area: menu;
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════
   HERO BANNER
══════════════════════════════════════════ */
.hero {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a6b 0%, #cc1f1f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 60%, rgba(255,200,50,.18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 40%, rgba(204,31,31,.28) 0%, transparent 55%);
}

/* Animated hand shapes */
.hero-hands {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.hand {
  width: 62px;
  height: 115px;
  border-radius: 30px 30px 0 0;
  opacity: .5;
  animation: sway 3s ease-in-out infinite alternate;
}

.hand:nth-child(1) { background: #e8a020; animation-delay: 0.0s; transform: rotate(-12deg); }
.hand:nth-child(2) { background: #cc1f1f; animation-delay: 0.3s; transform: rotate(-5deg);  }
.hand:nth-child(3) { background: #2196F3; animation-delay: 0.6s; transform: rotate( 2deg);  }
.hand:nth-child(4) { background: #4CAF50; animation-delay: 0.9s; transform: rotate( 8deg);  }
.hand:nth-child(5) { background: #9C27B0; animation-delay: 1.2s; transform: rotate(14deg);  }

@keyframes sway {
  from { transform: rotate(var(--r, 0deg)) translateY(0);    }
  to   { transform: rotate(var(--r, 0deg)) translateY(-10px); }
}

/* Hero text */
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  animation: fadeUp .9s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0);    }
}

.hero-text h2 {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 900;
  line-height: 1.25;
  text-shadow: 0 2px 16px rgba(0,0,0,.4);
}

.hero-text h2 em {
  font-style: normal;
  color: var(--gold);
}

.hero-text p {
  margin-top: 14px;
  font-size: 1.05rem;
  opacity: .82;
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════ */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px;
}

/* ── Welcome Section ── */
.welcome-section { animation: fadeUp .8s ease both; }

.welcome-section h3 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  border-left: 5px solid var(--red);
  padding-left: 16px;
}

.welcome-section p {
  color: var(--gray);
  line-height: 1.85;
  font-size: 0.97rem;
}

/* Divider */
.divider {
  border: none;
  border-top: 2px solid var(--border);
  margin: 44px 0;
}

/* ── Principal's Message ── */
.principal-section h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--red);
  margin-bottom: 8px;
  font-weight: 700;
}

.principal-section blockquote {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  color: var(--blue);
  border-left: 5px solid var(--gold);
  padding: 14px 22px;
  margin: 18px 0 22px;
  background: rgba(232,160,32,.07);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.principal-section p {
  color: var(--gray);
  line-height: 1.85;
  font-size: 0.97rem;
}

/* ── Feature Cards ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: default;
}

.card:nth-child(2) { border-top-color: var(--gold); }
.card:nth-child(3) { border-top-color: var(--blue); }
.card:nth-child(4) { border-top-color: #4CAF50;     }

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

.card-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
  transition: transform .3s ease;
}

.card:hover .card-icon { transform: scale(1.2); }

.card h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--dark);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.65;
}

/* Public Disclosure */
.disclosure-main {
  max-width: 1120px;
}

.disclosure-title {
  color: #05055f;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 8px;
}

.disclosure-section {
  margin-top: 22px;
}

.disclosure-section h2 {
  color: var(--blue);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0 0 12px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.disclosure-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  color: #123047;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.82rem;
}

.disclosure-table th {
  background: #48458f;
  color: #fff;
  font-weight: 700;
  text-align: left;
  padding: 16px 18px;
}

.disclosure-table td {
  padding: 17px 18px;
  vertical-align: top;
  background: #f7f7f7;
  text-transform: uppercase;
}

.disclosure-table tbody tr:nth-child(even) td {
  background: #f1f1f1;
}

.disclosure-table th:first-child,
.disclosure-table td:first-child {
  width: 70px;
}

.disclosure-table a {
  color: #c22020;
  font-weight: 600;
}

.disclosure-note {
  color: #666;
  font-size: 0.86rem;
  line-height: 1.7;
  margin-top: 14px;
  text-transform: uppercase;
}

.disclosure-note strong {
  color: #333;
}

.infra-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.infra-card {
  background: #fff;
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  text-align: center;
}

.infra-card:nth-child(2) { border-top-color: var(--gold); }
.infra-card:nth-child(3) { border-top-color: var(--blue); }
.infra-card:nth-child(4) { border-top-color: #4CAF50; }

.infra-card h3 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.infra-card p {
  color: var(--gray);
  font-size: 0.86rem;
  font-weight: 700;
}

.infra-title,
.infra-section h2 {
  color: var(--blue);
}

/* Admission Page */
.admission-main {
  max-width: 1060px;
}

.admission-intro {
  background: #fff;
  border-left: 5px solid var(--red);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}

.admission-intro h1,
.admission-card h2,
.admission-info h2 {
  color: var(--blue);
  font-family: var(--font-display);
}

.admission-intro h1 {
  font-size: 2rem;
  margin-bottom: 12px;
}

.admission-intro p,
.admission-card li,
.admission-info p {
  color: var(--gray);
  line-height: 1.75;
}

.admission-cta {
  display: inline-block;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  margin-top: 18px;
  padding: 11px 18px;
  transition: background var(--transition), transform var(--transition);
}

.admission-cta:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.admission-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.admission-card,
.admission-info {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.admission-card h2,
.admission-info h2 {
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.admission-card ol,
.admission-card ul {
  list-style-position: inside;
}

.admission-info {
  margin-top: 28px;
  border-top: 4px solid var(--gold);
}

/* Contact Page */
.contact-main {
  max-width: 1120px;
}

.contact-intro {
  text-align: center;
  margin-bottom: 28px;
}

.contact-intro h1 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 8px;
}

.contact-intro p {
  color: var(--gray);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card,
.map-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-card {
  border-top: 4px solid var(--red);
  padding: 30px;
}

.contact-card h2 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 16px;
}

.contact-card p {
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 14px;
}

.contact-card a {
  color: var(--blue);
  font-weight: 700;
}

.map-link {
  display: inline-block;
  background: var(--red);
  color: #fff !important;
  border-radius: var(--radius);
  margin-top: 8px;
  padding: 11px 16px;
  transition: background var(--transition), transform var(--transition);
}

.map-link:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.map-card {
  overflow: hidden;
  min-height: 420px;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
  display: block;
}

/* Events Page */
.events-main {
  max-width: 1120px;
}

.events-intro {
  text-align: center;
  margin-bottom: 30px;
}

.events-intro h1 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
}

.events-intro p {
  color: var(--gray);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card-block {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--red);
  padding: 26px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-card-block:nth-child(2),
.event-card-block:nth-child(5) {
  border-top-color: var(--gold);
}

.event-card-block:nth-child(3),
.event-card-block:nth-child(6) {
  border-top-color: var(--blue);
}

.event-card-block:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.event-date {
  width: 54px;
  height: 54px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  margin-bottom: 16px;
}

.event-card-block h2 {
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.event-card-block p {
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* Gallery Page */
.gallery-main {
  max-width: 1120px;
}

.gallery-intro {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-intro h1 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
}

.gallery-intro p {
  color: var(--gray);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.gallery-item {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.gallery-art {
  min-height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.gallery-item h2 {
  color: var(--dark);
  font-family: var(--font-display);
  font-size: 1.14rem;
  padding: 18px 18px 8px;
}

.gallery-item p {
  color: var(--gray);
  font-size: 0.86rem;
  line-height: 1.65;
  padding: 0 18px 20px;
}

.gallery-item.celebration .gallery-art { background: linear-gradient(135deg, #ff9933, #138808); }
.gallery-item.sports .gallery-art { background: linear-gradient(135deg, #1a3a6b, #20b2aa); }
.gallery-item.function .gallery-art { background: linear-gradient(135deg, #cc1f1f, #e8a020); }
.gallery-item.classroom .gallery-art { background: linear-gradient(135deg, #48458f, #7d75d8); }
.gallery-item.culture .gallery-art { background: linear-gradient(135deg, #b45789, #de0000); }
.gallery-item.art .gallery-art { background: linear-gradient(135deg, #9c27b0, #ff6f61); }
.gallery-item.science .gallery-art { background: linear-gradient(135deg, #0f766e, #22c55e); }
.gallery-item.activity .gallery-art { background: linear-gradient(135deg, #334155, #e8a020); }

/* Administration Page */
.admin-main {
  max-width: 1120px;
}

.admin-intro {
  text-align: center;
  margin-bottom: 28px;
}

.admin-intro h1 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 10px;
}

.admin-intro p {
  color: var(--gray);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.75;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.admin-profile,
.admin-card,
.admin-table-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.admin-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  border-top: 4px solid var(--red);
}

.admin-avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
}

.admin-profile h2,
.admin-card h2,
.admin-table-section h2 {
  color: var(--blue);
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin-bottom: 10px;
}

.admin-role {
  color: var(--red) !important;
  font-weight: 900;
  margin-bottom: 8px;
}

.admin-profile p,
.admin-card li {
  color: var(--gray);
  line-height: 1.75;
}

.admin-card {
  border-top: 4px solid var(--gold);
}

.admin-card ul {
  list-style-position: inside;
}

.admin-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 26px 0;
}

.admin-links a {
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius);
  font-weight: 800;
  padding: 14px 16px;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
}

.admin-links a:hover {
  background: var(--red);
  transform: translateY(-2px);
}

.admin-table-section {
  border-top: 4px solid var(--blue);
}

/* ── Back to Top Button ── */
#backToTop {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition), background var(--transition), transform var(--transition);
  z-index: 999;
}

#backToTop.visible {
  opacity: 1;
  pointer-events: auto;
}

#backToTop:hover {
  background: var(--blue);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
footer {
  background-image: linear-gradient(115deg, #143a6b 0%, #4b4a9b 28%, #b95788 62%, #d63f3a 100%);
  margin-top: 64px;
  font-weight: 499px;
 
}

.footer-top {
  max-width: 960px;
  margin: 0 auto;
  padding: 52px 24px 36px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
}

/* Brand column */
.footer-brand h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color:#fff;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: .95;
  color: #fff;
  font-weight: 450px;
}

/* Contact column */
.footer-contact strong,
.footer-links strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
}

.footer-contact p {
  font-size: 0.85rem;
  opacity: .95;
  line-height: 2;
  color: #fff;
  font-weight: 450px;
}

/* Links column */
.footer-links ul li { margin-bottom: 8px; }

.footer-links ul li a {
  color: rgba(255,255,255,.85);
  font-size: 0.85rem;
  transition: color var(--transition), padding-left var(--transition);
  display: inline-block;
}

.footer-links ul li a:hover {
  color: var(--blue);
  padding-left: 6px;
}

/* Footer bottom bar */
.footer-bottom {
  background: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.8rem;
  opacity: .75;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  width: 34px;
  height: 34px;
  background: var(--blue);
  border: 1px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.social-icons a:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--blue);
  transform: translateY(-3px);
}

.social-icons a[title="Facebook"] {
  background: #1877f2;
  border-color: #1877f2;
}

.social-icons a[title="YouTube"] {
  background: #ff0000;
  border-color: #ff0000;
}

.social-icons svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

/* ══════════════════════════════════════════
   SCROLL REVEAL (JS-driven class)
══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 768px) {
  .topbar {
    padding: 3px 10px;
  }

  .marquee { font-size: 0.72rem; }

  /* Header */
  header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "logo name"
      "address address"
      "portal portal";
    gap: 10px;
    padding: 17px 16px;
    width: 100vw;
    max-width: 100vw;
    overflow: visible;
  }

  header.scrolled { padding: 12px 16px; }

  .logo-circle {
    width: 58px;
    height: 58px;
    font-size: 1.1rem;
  }

  .school-name {
    font-size: 1.08rem;
    align-self: center;
    text-align: left;
    overflow-wrap: anywhere;
    padding-right: 46px;
  }

  .school-address {
    justify-self: center;
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    font-size: 0.78rem;
    margin-top: 0;
    text-align: center;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
  }

  .elementor-button-wrapper {
    grid-column: 1 / -1;
    margin-left: 0;
    width: 100%;
  }

  .parent-portal-btn {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-left: 0;
    padding: 11px 16px;
    font-size: 0.8rem;
  }

  /* Mobile nav toggle */
  .menu-toggle {
    display: none;
    position: fixed;
    top: 42px;
    right: auto;
    left: calc(100dvw - 56px);
    width: 44px;
    min-width: 40px;
    min-height: 40px;
    z-index: 120;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
  }

  .menu-toggle::before {
    content: "\2630";
    color: var(--blue);
    display: block;
    font-size: 1.45rem;
    font-weight: 900;
    line-height: 1;
  }

  .menu-toggle span {
    display: none;
  }

  nav {
    position: sticky;
    top: 86px;
    z-index: 90;
    max-height: 520px;
    opacity: 1;
    overflow: hidden;
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease;
    transform: translateY(0);
  }

  nav.mobile-nav-hidden {
    height: 0;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-8px);
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 86px);
    overflow-y: auto;
  }

  nav ul.open { display: flex; }

  nav ul li a {
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    font-size: 0.82rem;
  }

  .has-dropdown .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--gold);
    border-radius: 0;
    display: none;
  }

  .has-dropdown.open .dropdown { display: block; }

  /* Hero */
  .hero {
    min-height: 340px;
    height: auto;
    padding: 56px 0 96px;
  }

  .hero-hands {
    transform: translateX(-50%) scale(.78);
    transform-origin: bottom center;
  }

  .hero-text { padding: 0 18px; }
  .hero-text h2 { font-size: 1.65rem; }
  .hero-text p {
    font-size: 0.9rem;
    letter-spacing: 0.02em;
  }

  main { padding: 38px 18px; }

  .welcome-section h3 {
    font-size: 1.45rem;
    padding-left: 12px;
  }

  .welcome-section p,
  .principal-section p {
    font-size: 0.94rem;
    line-height: 1.75;
  }

  .principal-section blockquote {
    font-size: 1.05rem;
    padding: 12px 16px;
  }

  .disclosure-title {
    font-size: 1.15rem;
  }

  .disclosure-section h2 {
    font-size: 0.92rem;
  }

  .disclosure-table {
    min-width: 700px;
    font-size: 0.76rem;
  }

  .disclosure-table th,
  .disclosure-table td {
    padding: 13px 14px;
  }

  .infra-highlights {
    grid-template-columns: repeat(2, 1fr);
  }

  .admission-intro,
  .admission-card,
  .admission-info {
    padding: 22px;
  }

  .admission-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px;
  }

  .map-card,
  .map-card iframe {
    min-height: 340px;
  }

  .events-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-links {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Cards */
  .cards { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-top {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 38px 18px 30px;
  }

  .footer-bottom { flex-direction: column; text-align: center; padding: 14px 20px; }
}

@media (max-width: 480px) {
  header {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 14px 12px;
  }

  .logo-circle {
    width: 48px;
    height: 48px;
  }

  .school-name {
    font-size: 0.92rem;
    line-height: 1.2;
  }

  .school-address {
    font-size: 0.66rem;
    line-height: 1.35;
  }

  .parent-portal-btn {
    padding: 10px 14px;
    font-size: 0.76rem;
  }

  nav { top: 75px; }

  nav ul {
    max-height: calc(100vh - 75px);
  }

  .hero {
    min-height: 310px;
    padding: 48px 0 88px;
  }

  .hero-hands {
    transform: translateX(-50%) scale(.62);
  }

  .hero-text h2 { font-size: 1.28rem; }

  .hero-text p {
    font-size: 0.82rem;
  }

  main { padding: 32px 14px; }

  .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    padding: 24px 18px;
  }

  .welcome-section h3 { font-size: 1.4rem; }

  .disclosure-main {
    padding-inline: 12px;
  }

  .disclosure-table {
    min-width: 640px;
  }

  .infra-highlights {
    grid-template-columns: 1fr;
  }

  .admission-intro h1 {
    font-size: 1.55rem;
  }

  .contact-intro h1 {
    font-size: 1.55rem;
  }

  .events-intro h1 {
    font-size: 1.55rem;
  }

  .events-grid {
    grid-template-columns: 1fr;
  }

  .gallery-intro h1 {
    font-size: 1.55rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .admin-intro h1 {
    font-size: 1.55rem;
  }

  .admin-profile {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .admin-avatar {
    margin: 0 auto;
  }

  .admin-links {
    grid-template-columns: 1fr;
  }

  .footer-top { padding-inline: 16px; }

  .footer-bottom {
    font-size: 0.75rem;
  }
}
