* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.7; color: #333; overflow-x: hidden; }

:root {
  --primary: #3e2723;
  --accent: #eea412;
  --light: #fdf8f0;
}

/* ==================== HEADER ==================== */
header {
  background: var(--primary);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  padding: 8px 0;
  min-height: 80px;
}

/* FIX HERO IMAGE BEING HIDDEN BY FIXED HEADER */
.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-img {
  height: 60px;
  width: auto;
}

/* Logo + School Name Container */
.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.school-name {
  color: white;
  font-size: 1.75rem;
  font-weight: 900;
  white-space: nowrap;
}

/* ==================== NAVIGATION ==================== */
nav {
  margin-left: auto;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 1.5rem;
  font-weight: 600;
  position: relative;
  padding-bottom: 18px;
}

nav a::after {
  content: '•••';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  letter-spacing: 8px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

nav a:hover::after,
nav a.active::after {
  opacity: 1;
}

nav a.active::after {
  color: #ffb300;
}

.menu-toggle { 
  display: none; 
  font-size: 1.9rem; 
  cursor: pointer; 
  color: white; 
}

/* ==================== MOBILE HEADER – FULLY FIXED ==================== */
@media (max-width: 768px) {
  header {
    min-height: 70px;
    padding: 8px 0;
  }

  .header-inner {
    padding: 0 15px;
    justify-content: space-between;
  }

  .logo-container {
    gap: 8px;
  }

  .logo-img {
    height: 56px;
    margin-left: 0 !important;   /* Critical: no negative margin */
  }

  .school-name {
    font-size: 1.35rem;
    font-weight: 900;
  }

  .menu-toggle {
    display: block;
  }

  nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    display: none;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
  }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 400px) {
  .logo-img {
    height: 50px;
  }
  .school-name {
    font-size: 1.2rem;
  }
  .header-inner {
    padding: 0 10px;
  }
}

/* ==================== GENERAL SECTIONS ==================== */
section { padding: 100px 20px; }
h2 { font-size: 3rem; color: var(--primary); text-align: center; margin-bottom: 60px; position: relative; }
/*h2::after { content: ''; width: 100px; height: 5px; background: var(--accent); position: absolute; bottom: -20px; left: 50%; transform: translateX(-50%); border-radius: 3px; }*/

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; max-width: 1200px; margin: 0 auto; }
.card { background: white; border-radius: 15px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: transform 0.4s; }
.card:hover { transform: translateY(-15px); }
.card img {
    width: 100%;
    height: 300px;
    /* Increased from 200px → gives breathing room */
    object-fit: cover;
    object-position: center top !important;
    /* ← CRITICAL: keeps heads visible */
    display: block;
    border-radius: 15px 15px 0 0;
    /* matches your card radius */
}

/* Tablet & medium screens – make it even taller so heads never get cut */
@media (min-width: 768px) and (max-width: 1200px) {
    .card img {
        height: 380px !important;
        /* Perfect height for tablets */
        object-position: center top !important;
    }
}

/* Large tablets & laptops */
@media (min-width: 1201px) {
    .card img {
        height: 340px !important;
    }
}

/* Mobile – keep compact but still show full heads */
@media (max-width: 767px) {
    .card img {
        height: 260px !important;
    }
}
.card-body { padding: 25px; text-align: center; }
.card-body h3 { color: var(--primary); margin-bottom: 15px; }

.btn { background: var(--accent); color: #3e2723; padding: 16px 40px; border: none; border-radius: 50px; font-weight: bold; font-size: 1.1rem; cursor: pointer; transition: all 0.4s; box-shadow: 0 10px 30px rgba(238,164,18,0.4); }
.btn:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(238,164,18,0.6); }

.float-btn {
  position: fixed; bottom: 20px; right: 20px;
  background: var(--accent); color: #3e2723;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.8rem; font-weight: bold;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  z-index: 999;
  animation: pulse 2s infinite;
}


/* ==================== GOLD SEPARATOR ==================== */
.yellow-separator {
  height: 16px;
  background: #f1b434;
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: 0 4px 15px rgba(238,164,18,0.5);
}
.yellow-separator::before,
.yellow-separator::after { display: none !important; }

/* Remove unwanted space before footer */
main, section:last-child, .hero-carousel, .page-banner { margin-bottom: 0 !important; padding-bottom: 0 !important; }

/* ==================== FOOTER ==================== */
.site-footer {
  background: #3e2723;
  position: relative;
  overflow: hidden;
  margin-top: 0 !important;
}
.site-footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('assets/images/map.jpg') center/cover no-repeat fixed;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  z-index: 1;
  pointer-events: none;
}
.footer-main {
  position: relative;
  z-index: 2;
  padding: 90px 20px 70px;
  color: #ddd;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.3fr;
  gap: 60px;
}
.footer-column h3 {
  color: var(--accent);
  font-size: 1.5rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
}
.footer-column h3::after {
  content: ''; width: 50px; height: 3px; background: var(--accent);
  position: absolute; left: 0; bottom: 0;
}
.footer-column p, .footer-column ul li a { color: #ccc; line-height: 1.9; font-size: 1.02rem; }
.footer-column ul { list-style: none; }
.footer-column ul li { margin-bottom: 14px; }
.footer-column ul li a { text-decoration: none; transition: color 0.3s; }
.footer-column ul li a:hover { color: var(--accent); }
.social-icons a {
  display: inline-block; width: 44px; height: 44px; background: rgba(238,164,18,0.2);
  color: var(--accent); line-height: 44px; text-align: center; border-radius: 50%;
  margin-right: 12px; font-size: 1.1rem; transition: all 0.4s;
}
.social-icons a:hover { background: var(--accent); color: #3e2723; transform: translateY(-6px); }

.copyright-bar {
  background: #000000;
  padding: 24px 20px;
  text-align: center;
  color: #666 !important;
  font-size: 0.95rem;
  width: 100%;
  margin: 0;
}

@media (max-width: 768px) {
  .container { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .footer-column h3::after { left: 50%; transform: translateX(-50%); }
}

/* ==================== CONTACT PAGE ==================== */
.contact-container {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  background: #f8f5f0;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}
.contact-form {
  background: #1a1a1a;
  padding: 50px 40px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 15px 40px rgba(0,0,0,0.4);
}
.contact-form h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--accent);
}
.contact-form p { 
  margin-bottom: 30px; 
  opacity: 0.9; 
  line-height: 1.7; 
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 8px;
  background: #333;
  color: white;
  font-size: 1rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #aaa; }
.contact-form textarea { resize: vertical; margin-bottom: 30px; }
.submit-btn {
  background: var(--accent);
  color: #1a1a1a;
  padding: 16px 40px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
}
.submit-btn:hover {
  background: #ffb300;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(238,164,18,0.4);
}
.contact-map iframe {
  width: 100%;
  height: 450px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}
@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  .contact-form { padding: 40px 30px; }
}

/* Add this block near your other contact page media queries */
@media (max-width: 576px) {
  /* This ensures inputs like First Name and Last Name stack vertically */
  .form-row {
    grid-template-columns: 1fr; /* Changes 1fr 1fr to 1fr (single column) */
    gap: 0; /* Optional: reduce space between stacked inputs */
  }
}
/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, -30%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(238,164,18,0.7); }
  70% { box-shadow: 0 0 0 15px rgba(238,164,18,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,164,18,0); }
}
/* Footer – School name turns gold on hover */
.copyright-bar p {
  transition: color 0.4s ease;
  cursor: default;
}

.school-name-footer {
  color: #ffffff;                 /* default white */
  font-weight: 600;
  transition: color 0.4s ease;
}

.school-name-footer:hover {
  color: var(--accent) !important;   /* gold color on hover */
  color: #eea412 !important;        /* fallback if --accent not working */
}
/* ==================== CONTACT PAGE – FULL WIDTH SCHOOL IMAGE BANNER ==================== */
.contact-page-banner {
  position: relative;
  width: 100%;
  margin-top: 80px;               /* clears your fixed header */
  overflow: hidden;
}

.contact-banner-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
  filter: brightness(0.85);
}

.contact-banner-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  width: 90%;
  max-width: 900px;
  z-index: 2;
}

.contact-banner-overlay h1 {
  font-size: 4.2rem;
  font-weight: 900;
  margin-bottom: 15px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.7);
  color: var(--accent);         /* Gold title */
}

.contact-banner-overlay p {
  font-size: 1.5rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

/* Mobile Responsive */
@media (max-width: 992px) {
  .contact-banner-img { height: 420px; }
  .contact-banner-overlay h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
  .contact-banner-img { height: 398px; }
  .contact-banner-overlay h1 { font-size: 3rem; }
  .contact-banner-overlay p { font-size: 1.3rem; }
}

@media (max-width: 480px) {
  .contact-banner-overlay h1 { font-size: 2.5rem; }
  .contact-banner-overlay p { font-size: 1.15rem; }
  .contact-page-banner { margin-top: 70px; }
}
/* FULL MOBILE RESPONSIVENESS */
@media (max-width: 768px) {
  main { padding: 40px 15px !important; }
  .contact-container,
  .contact-form,
  .contact-map,
  .contact-map iframe {
      height: auto !important;
      min-height: auto !important;
  }
  .page-banner {
      height: 80vh !important;
      padding: 20px !important;
  }
  .page-banner h1 { font-size: 3rem !important; }
}

.why-choose {
  text-align: center;
  padding: 50px 20px;
}

.why-choose h2 {
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #4a2c14;
}

.choose-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
}

.choose-card {
  background: #fff;
  width: 300px;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 5px 18px rgba(0,0,0,0.1);
  transition: 0.3s ease-in-out;
}

.choose-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ==================== WHY CHOOSE US CARDS – FULLY RESPONSIVE ICONS ==================== */
.choose-icon {
    width: 100% !important;
    height: 220px !important;
    /* Slightly taller than before */
    object-fit: cover !important;
    object-position: center top !important;
    /* ← Keeps students' heads safe */
    border-radius: 8px;
    display: block;
    margin: 0 auto 15px;
}

/* Tablet fix for Why Choose cards */
@media (min-width: 768px) and (max-width: 1200px) {
    .choose-icon {
        height: 280px !important;
    }
}

@media (max-width: 767px) {
    .choose-icon {
        height: 200px !important;
    }
}

.choose-card h3 {
  font-size: 20px;
  color: #4a2c14;
  margin-bottom: 10px;
  font-weight: 700;
}

.choose-card p {
  font-size: 15px;
  line-height: 1.5;
  color: #444;
}

/* Responsive */
@media (max-width: 768px) {
  .choose-container {
      flex-direction: column;
      align-items: center;
  }

  .choose-card {
      width: 90%;
  }
}

/* SIMPLEST & FASTEST HERO – 2025 GOLD STANDARD */
.hero-stack-section {
  position: relative;
  width: 100%;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
}

.hero-stack {
  position: absolute;
  inset: 0;
}

.stack-image {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;   /* Fast & smooth fade */
}

.stack-image.active {
  opacity: 1;
}

.stack-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Mobile & Tablet: NO CROPPING EVER */
@media (max-width: 992px) {
  .hero-stack-section { height: 75vh; }
  .stack-image img { object-fit: contain; background: #000; }
}
@media (max-width: 576px) {
  .hero-stack-section { height: 70vh; }
}

/* Dots – tiny and clean */
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  background: rgba(255,255,255,0.5);
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}
.dot.active {
  background: #f9a826;
}