/* ─────────────────────────────────────────────────────────────
   The Foundation Academy — style.css
   Blue + White + Red accent theme
   ───────────────────────────────────────────────────────────── */

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #f8faff;
  color: #1e2a4a;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── CSS Variables ────────────────────────────────────────── */
:root {
  --blue:       #1a3a8f;
  --blue-dark:  #0d2257;
  --blue-light: #f0f4ff;
  --red:        #c0392b;
  --red-dark:   #a93226;
  --white:      #ffffff;
  --gray-100:   #f8faff;
  --gray-200:   #e8edf5;
  --gray-500:   #6b7a9b;
  --gray-700:   #374161;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 2px 8px rgba(26,58,143,.08);
  --shadow-md:  0 6px 20px rgba(26,58,143,.13);
  --shadow-lg:  0 12px 32px rgba(26,58,143,.18);
  --transition: .2s ease;
}

/* ── Utility: Container ────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ── Utility: Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .6rem 1.4rem;
  border: none;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition);
  text-align: center;
}
.btn:hover  { transform: translateY(-2px); opacity: .92; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

.btn-red   { background: var(--red);  color: var(--white); }
.btn-blue  { background: var(--blue); color: var(--white); }
.btn-white { background: var(--white); color: var(--blue); }
.btn-lg    { padding: .75rem 2rem; font-size: 1rem; }
.btn-full  { width: 100%; padding: .85rem; font-size: 1rem; }

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.nav-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}
.nav-brand-text  { display: flex; flex-direction: column; }
.nav-title       { font-size: .9rem; font-weight: 800; color: var(--blue); line-height: 1.2; }
.nav-tagline     { font-size: .72rem; color: var(--gray-500); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-link {
  padding: .45rem .75rem;
  font-size: .84rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.nav-link:hover { background: var(--blue-light); color: var(--blue); }
.nav-cta { margin-left: .5rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
@media (max-width: 1024px) {
  .hamburger { display: flex; }
  .nav-links {
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    padding: .75rem 1.25rem 1rem;
    gap: .2rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: .65rem .9rem; font-size: .9rem; }
  .nav-cta  { margin: .35rem 0 0; text-align: center; }
}

/* ── Section base ─────────────────────────────────────────── */
.section          { padding: 5rem 0; }
.section-white    { background: var(--white); }
.section-blue-light { background: var(--blue-light); }

.section-header   { text-align: center; margin-bottom: 3rem; }
.section-badge {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .75rem;
  font-weight: 600;
  padding: .3rem .9rem;
  border-radius: 100px;
  margin-bottom: .75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.section-title        { font-size: 2rem; font-weight: 800; color: var(--blue); line-height: 1.2; }
.section-title.left   { text-align: left; }
.section-sub          { font-size: .9rem; color: var(--gray-500); margin-top: .4rem; }
.section-divider      { width: 72px; height: 4px; background: var(--red); border-radius: 4px; margin: .9rem auto 0; }
.section-divider.left { margin-left: 0; }

/* ── Feature cards (Why Choose) ──────────────────────────── */
.cards-grid {
  display: grid;
  gap: 1.25rem;
}
.cards-grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon  { font-size: 2.2rem; margin-bottom: .75rem; }
.feature-card h3 { font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.feature-card p  { font-size: .83rem; color: var(--gray-500); line-height: 1.55; }

/* ── About grid ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

.about-text { display: flex; flex-direction: column; gap: 1rem; }
.about-text p { font-size: .95rem; color: var(--gray-700); line-height: 1.7; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: .75rem;
}
.stat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.stat-num   { display: block; font-size: 1.5rem; font-weight: 900; color: var(--blue); }
.stat-label { display: block; font-size: .75rem; color: var(--gray-500); margin-top: .2rem; }

/* About info card */
.about-card {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.about-brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.about-logo  { width: 60px; height: 60px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 4px; }
.about-card-title { font-weight: 700; font-size: 1rem; }
.about-card-sub   { font-size: .8rem; color: rgba(255,255,255,.65); font-style: italic; }
.about-list { display: flex; flex-direction: column; gap: .7rem; }
.about-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: rgba(255,255,255,.88); }
.check { color: #4ade80; font-weight: 700; flex-shrink: 0; }

/* ── Vision & Mission ─────────────────────────────────────── */
.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 640px) { .vm-grid { grid-template-columns: 1fr; } }

.vm-card {
  background: linear-gradient(135deg, var(--blue-light), var(--white));
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.vm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.vm-icon { font-size: 2rem; margin-bottom: 1rem; }
.vm-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: .75rem; }
.vm-card p  { font-size: .92rem; color: var(--gray-700); line-height: 1.7; }
.highlight-red  { font-style: italic; font-weight: 700; color: var(--red); }
.highlight-blue { font-style: italic; font-weight: 700; color: var(--blue); }

.quote-strip {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  text-align: center;
}
.quote-strip-text { font-style: italic; color: rgba(255,255,255,.9); font-size: .95rem; line-height: 1.65; }
.quote-strip-cite { margin-top: .6rem; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.6); }

/* ── Gallery ──────────────────────────────────────────────── */
.gallery-sub-heading { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 1rem; }

.gallery-videos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.gallery-video-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-thumb {
  background: var(--blue);
  height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.play-btn {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--white);
}
.video-label { color: var(--white); font-size: .85rem; font-weight: 500; }
.gallery-caption { padding: .75rem 1rem; font-size: .8rem; color: var(--gray-500); }

.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.gallery-photo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-photo-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.photo-thumb {
  background: linear-gradient(135deg, #c8d8ff, #dce8ff);
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.gallery-photo-card p { padding: .6rem .5rem; font-size: .8rem; font-weight: 500; color: var(--gray-700); }

/* ── Classes ──────────────────────────────────────────────── */
.classes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
@media (max-width: 768px) { .classes-grid { grid-template-columns: 1fr; } }

.sub-heading { font-size: 1.1rem; font-weight: 700; color: var(--blue); margin-bottom: 1.25rem; }

.salient-list { display: flex; flex-direction: column; gap: 1rem; }
.salient-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--blue-light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.salient-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.salient-letter {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
}
.salient-item p { font-size: .9rem; color: var(--gray-700); line-height: 1.5; padding-top: .4rem; }

.classes-offered {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.class-pill {
  background: var(--blue-light);
  border: 1.5px solid var(--blue);
  color: var(--blue);
  border-radius: var(--radius);
  padding: .75rem .5rem;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
  transition: background var(--transition), color var(--transition);
  cursor: default;
}
.class-pill:hover { background: var(--blue); color: var(--white); }

.ptm-box {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}
.ptm-box h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.ptm-box p  { font-size: .85rem; color: rgba(255,255,255,.8); line-height: 1.6; }

/* ── Contact ──────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-col { display: flex; flex-direction: column; gap: 2rem; }

.contact-card {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
.contact-item:last-child { margin-bottom: 0; }
.contact-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.contact-label { font-size: .8rem; font-weight: 600; color: rgba(255,255,255,.7); margin-bottom: .2rem; }
.contact-value { font-size: .85rem; color: rgba(255,255,255,.85); line-height: 1.5; }
.contact-link  { font-size: .85rem; color: rgba(255,255,255,.75); transition: color var(--transition); }
.contact-link:hover { color: var(--white); }

.visiting-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.visiting-card h3 { font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: .4xrem; }
.visiting-card p  { font-size: .85rem; color: var(--gray-500); line-height: 1.7; }

/* ── Enquiry form ─────────────────────────────────────────── */
.enquiry-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.enquiry-form h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue); }

.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

label { font-size: .83rem; font-weight: 500; color: var(--gray-700); }

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: .6rem .9rem;
  font-family: inherit;
  font-size: .88rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--gray-700);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,58,143,.12);
}
input.error, select.error, textarea.error { border-color: var(--red); }
textarea { resize: vertical; }

.field-error { font-size: .75rem; color: var(--red); min-height: 1rem; }

/* Success message */
.success-msg {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.success-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.success-msg h3 { font-size: 1.4rem; font-weight: 700; color: var(--blue); margin-bottom: .5rem; }
.success-msg p  { font-size: .9rem; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── Footer ───────────────────────────────────────────────── */
.footer { background: var(--blue-dark); color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 2.5rem;
  padding: 3.5rem 0;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } }

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1rem;
}
.footer-logo { width: 52px; height: 52px; object-fit: contain; background: var(--white); border-radius: 10px; padding: 4px; }
.footer-name { font-weight: 700; font-size: .95rem; }
.footer-tag  { font-size: .75rem; color: rgba(255,255,255,.55); font-style: italic; }
.footer-desc { font-size: .83rem; color: rgba(255,255,255,.65); line-height: 1.7; }

.footer-links h4,
.footer-contact h4 {
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-links ul  { display: flex; flex-direction: column; gap: .55rem; }
.footer-links a   { font-size: .83rem; color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-links a:hover { color: var(--white); }

.footer-contact p { font-size: .83rem; color: rgba(255,255,255,.65); margin-bottom: .6rem; line-height: 1.5; }
.footer-contact a { color: rgba(255,255,255,.65); transition: color var(--transition); }
.footer-contact a:hover { color: var(--white); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 0;
  font-size: .78rem;
  color: rgba(255,255,255,.4);
}
@media (max-width: 560px) {
  .footer-bottom-inner { flex-direction: column; gap: .3rem; text-align: center; }
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1a3a8f 0%, #0d2257 55%, #1e4499 100%);
  padding: 5rem 0 6rem;
  text-align: center;
}
.hero-circle {
  position: absolute;
  border-radius: 50%;
  background: #3b6cd4;
  opacity: .12;
  pointer-events: none;
}
.hero-circle-1 { width: 380px; height: 380px; top: -120px; right: -80px; }
.hero-circle-2 { width: 280px; height: 280px; bottom: -90px; left: -60px; }

.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.hero-logo-wrap {
  background: var(--white);
  border-radius: 18px;
  padding: .9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.hero-logo { width: 100px; height: 100px; object-fit: contain; }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.hero-tagline {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: rgba(200,218,255,.85);
  font-style: italic;
}
.hero-quote {
  max-width: 640px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  padding: 1.25rem 1.75rem;
  backdrop-filter: blur(8px);
}
.hero-quote p    { font-size: .96rem; color: rgba(255,255,255,.9); font-style: italic; line-height: 1.7; }
.hero-quote cite { display: block; margin-top: .6rem; font-size: .82rem; font-weight: 600; color: rgba(200,218,255,.75); font-style: normal; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: .5rem; }

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 640px) {
  .section { padding: 3.5rem 0; }
  .section-title { font-size: 1.6rem; }
  .hero { padding: 3.5rem 0 4.5rem; }
}



.map-container {
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 1px solid #ccc;
  border-radius: 10px;
}



.gallery-videos,
.gallery-photos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.gallery-photo-card img {
  width: 100%;
  /* border-radius: 10px; */
  height: 220px;          
  /* object-fit: cover;  */
    object-fit: contain;   /* no crop, but may add empty space */
  background: #0d2257;
}

.gallery-video-card video {
  border-radius: 10px;
}