/* ===============================
   GLOBAL RESET & BASE
================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  color: #1f2937;
  line-height: 1.6;
}

/* ===============================
   NAVBAR
================================ */
.navbar {
  background: linear-gradient(90deg, #0f172a, #1e40af);
  padding: 16px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.4);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.navbar a {
  color: white;
  text-decoration: none;
  margin-left: 22px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar a:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* ===============================
   HERO SECTION
================================ */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding: 90px 60px;
  background: radial-gradient(circle at top right, #3b82f6, #1e40af, #0f172a);
  color: white;
  box-shadow: inset 0 -40px 80px rgba(0,0,0,0.35);
}

.hero h2 {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  color: #e5edff;
}

.hero button {
  margin-top: 28px;
  padding: 14px 34px;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 20px 35px rgba(245, 158, 11, 0.55);
  transition: all 0.35s ease;
}

.hero button:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 30px 50px rgba(245, 158, 11, 0.7);
}

.hero img {
  width: 40%;
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    inset 0 0 0 1px rgba(255,255,255,0.2);
}

/* ===============================
   SECTION BASE
================================ */
section {
  padding: 70px 60px;
  margin: 30px;
  border-radius: 24px;
}

section h2 {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 40px;
  color: #0f172a;
}

.light {
  background: linear-gradient(180deg, #f1f5f9, #e0e7ff);
  box-shadow: inset 0 20px 50px rgba(0,0,0,0.05);
}

/* ===============================
   CARD GRID
================================ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

/* ===============================
   CARD (3D EFFECT)
================================ */
.card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 28px;
  border-radius: 18px;
  position: relative;
  box-shadow:
    0 25px 45px rgba(15,23,42,0.18),
    inset 0 1px 0 rgba(255,255,255,0.8);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: linear-gradient(120deg, transparent, rgba(245,158,11,0.25), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-3deg);
  box-shadow:
    0 40px 70px rgba(15,23,42,0.35),
    inset 0 1px 0 rgba(255,255,255,0.9);
}

.card h3 {
  color: #1e40af;
  margin-bottom: 10px;
  font-size: 20px;
}

/* ===============================
   TESTIMONIALS
================================ */
#testimonials {
  background: radial-gradient(circle at top, #1e40af, #0f172a);
  color: white;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.4);
}

#testimonials h2 {
  color: white;
}

.testimonial-box {
  max-width: 700px;
  margin: auto;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  color: #1f2937;
  padding: 40px;
  border-radius: 20px;
  border-left: 8px solid #f59e0b;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
  font-size: 18px;
}

/* ===============================
   ADMISSION FORM
================================ */
.admission-form {
  max-width: 520px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admission-form input,
.admission-form select {
  padding: 14px;
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #c7d2fe;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.admission-form input:focus,
.admission-form select:focus {
  outline: none;
  border-color: #1e40af;
  box-shadow: 0 0 0 4px rgba(30,64,175,0.25);
}

.admission-form button {
  margin-top: 10px;
  padding: 16px;
  font-size: 18px;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #1e40af, #3b82f6);
  border: none;
  border-radius: 40px;
  cursor: pointer;
  box-shadow: 0 25px 45px rgba(30,64,175,0.45);
  transition: all 0.35s ease;
}

.admission-form button:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 35px 60px rgba(30,64,175,0.65);
}

/* ===============================
   GALLERY
================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 20px;
}

.gallery img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 25px 45px rgba(0,0,0,0.35);
  transition: transform 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.06);
}

/* ===============================
   FOOTER
================================ */
footer {
  background: linear-gradient(90deg, #0f172a, #020617);
  color: #e5edff;
  text-align: center;
  padding: 20px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -20px 40px rgba(0,0,0,0.4);
}

/* ===============================
   MOBILE RESPONSIVE
================================ */
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    gap: 10px;
  }

  .hero {
    flex-direction: column;
    padding: 60px 20px;
    text-align: center;
  }

  .hero img {
    width: 90%;
  }

  section {
    padding: 50px 20px;
    margin: 16px;
  }

  .cards {
    grid-template-columns: 1fr;
  }
}
/* FOUNDATION SUBJECT CARDS */
#courses .cards .card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-radius: 50px;
  padding: 26px 30px;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow:
    0 18px 35px rgba(15,23,42,0.15),
    inset 0 1px 0 rgba(255,255,255,0.9);
  transition: all 0.35s ease;
}

/* hover 3D effect */
#courses .cards .card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow:
    0 30px 60px rgba(15,23,42,0.30),
    inset 0 1px 0 rgba(255,255,255,1);
}

/* icon styling inside subject cards */
#courses .cards .card span,
#courses .cards .card i {
  font-size: 22px;
  color: #1e40af;
}
#courses {
  background: radial-gradient(circle at top, #eef2ff, #f8fafc);
  box-shadow: inset 0 25px 60px rgba(0,0,0,0.05);
}
.light .card {
  border-left: 6px solid #1e40af;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

/* card title highlight */
.light .card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1e40af;
}

/* hover premium lift */
.light .card:hover {
  transform: translateY(-14px) rotateX(4deg);
  box-shadow:
    0 45px 80px rgba(15,23,42,0.35),
    inset 0 1px 0 rgba(255,255,255,0.95);
}
section h2 {
  position: relative;
}

section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #f59e0b, #1e40af);
  margin: 14px auto 0;
  border-radius: 4px;
}
.cards {
  margin-top: 40px;
}

section {
  margin-bottom: 60px;
}
/* REAL CLASSROOM IMAGE HIGHLIGHT */
.gallery img {
  border-radius: 10px;
  box-shadow:
    0 25px 50px rgba(0,0,0,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.4);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery img:hover {
  transform: scale(1.05) rotateX(3deg);
  box-shadow: 0 40px 70px rgba(0,0,0,0.45);
}
/* ===============================
   FOUNDATION BATCH SECTION
================================ */
#courses {
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
  border-radius: 28px;
  padding: 80px 60px;
  box-shadow:
    inset 0 30px 80px rgba(30,64,175,0.08),
    0 40px 80px rgba(15,23,42,0.12);
}

/* Subject Pills */
#courses .card {
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  border-radius: 60px;
  padding: 26px 34px;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  border: 2px solid rgba(30,64,175,0.12);
  box-shadow:
    0 20px 40px rgba(15,23,42,0.18),
    inset 0 2px 4px rgba(255,255,255,0.9);
  transition: all 0.4s ease;
}

/* Hover 3D */
#courses .card:hover {
  background: linear-gradient(135deg, #eef2ff, #ffffff);
  border-color: #1e40af;
  transform: translateY(-10px) scale(1.05);
  box-shadow:
    0 35px 65px rgba(15,23,42,0.35);
}
/* ===============================
   CLASS 11–12 & COMPETITIVE
================================ */
.light {
  background: linear-gradient(180deg, #eef2ff, #e0e7ff);
  border-radius: 30px;
  padding: 90px 60px;
  box-shadow:
    inset 0 40px 90px rgba(30,64,175,0.12),
    0 50px 100px rgba(15,23,42,0.18);
}

/* Course Cards */
.light .card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border-left: 8px solid #1e40af;
  padding: 32px;
  border-radius: 22px;
  box-shadow:
    0 25px 50px rgba(15,23,42,0.22),
    inset 0 1px 0 rgba(255,255,255,0.95);
  transition: all 0.45s ease;
}

/* Title */
.light .card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #1e40af;
}

/* Hover effect */
.light .card:hover {
  transform: translateY(-14px) rotateX(5deg);
  border-left-color: #f59e0b;
  box-shadow:
    0 45px 80px rgba(15,23,42,0.38);
}
section h2 {
  color: #0f172a;
  letter-spacing: 0.4px;
}

section h2::after {
  content: "";
  display: block;
  width: 90px;
  height: 5px;
  margin: 16px auto 0;
  border-radius: 6px;
  background: linear-gradient(90deg, #f59e0b, #1e40af);
}
/* HERO IMAGE CONTAINER */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

/* HERO IMAGE */
.hero-image img {
  width: 700px;
  max-width: 100%;
  border-radius: 22px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

/* Hover 3D effect */
.hero-image img:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 45px 80px rgba(0,0,0,0.45);
}
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-image  {
  width: 520px;
  height: 100px;          /* 🔥 size increased */
  max-width: 100%;
  border-radius: 22px;
  box-shadow:
    0 30px 60px rgba(0,0,0,0.35),
    inset 0 0 0 2px rgba(255,255,255,0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

}
.hero h2 {
  font-size: 44px;
  font-weight: 800;
  color: #d3fb24; /* gold */
  text-shadow: 0 6px 20px rgba(251,191,36,0.5);
}
/* ===============================
   TOP CONTACT BAR
================================ */
.top-bar {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  color: #0f172a;
  padding: 8px 40px;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.top-bar a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 800;
}

.top-bar a:hover {
  text-decoration: underline;
}
/* ===============================
   FOUNDATION BATCH – COLOURFUL
================================ */
#courses {
  background: linear-gradient(
    135deg,
    #e0f2fe,
    #eef2ff,
    #f0fdf4
  );
  border-radius: 32px;
  padding: 90px 60px;
  box-shadow:
    inset 0 40px 100px rgba(59,130,246,0.12),
    0 40px 80px rgba(15,23,42,0.15);
}
#courses .card {
  background: linear-gradient(
    135deg,
    #ffffff,
    #f0f9ff
  );
  border-radius: 60px;
  border: 2px solid rgba(59,130,246,0.2);
}

#courses .card:nth-child(1) { border-color: #38bdf8; } /* Maths */
#courses .card:nth-child(2) { border-color: #22c55e; } /* Science */
#courses .card:nth-child(3) { border-color: #a855f7; } /* English */
#courses .card:nth-child(4) { border-color: #f59e0b; } /* SST */
/* ===============================
   CLASS 11–12 & COMPETITIVE
================================ */
.light {
  background: linear-gradient(
    135deg,
    #eef2ff,
    #e0e7ff,
    #f8fafc
  );
  border-radius: 36px;
  padding: 100px 60px;
  box-shadow:
    inset 0 50px 120px rgba(30,64,175,0.15),
    0 50px 90px rgba(15,23,42,0.2);
}
.light .card {
  background: linear-gradient(
    180deg,
    #ffffff,
    #f1f5f9
  );
  border-left: 8px solid #2563eb;
}

.light .card:nth-child(1) { border-left-color: #2563eb; } /* Class 11–12 */
.light .card:nth-child(2) { border-left-color: #dc2626; } /* JEE */
.light .card:nth-child(3) { border-left-color: #16a34a; } /* NEET */
section h2 {
  color: #0f172a;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

section h2::after {
  background: linear-gradient(
    90deg,
    #2563eb,
    #22c55e,
    #f59e0b
  );
}
input, select, textarea {
    width: 100%;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    border: 1px solid #cfd9ff;
    font-size: 16px;
    box-sizing: border-box;
    outline: none;
}

textarea {
    min-height: 120px;
    resize: vertical; /* user can resize vertically only */
}
.active {
  border-bottom: 2px solid white;
}
.review-section {
  background: linear-gradient(135deg, #0f1c3f, #1b2a6b);
  padding: 80px 20px;
  text-align: center;
  color: white;
}

.review-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.review-card {
  background: white;
  color: #222;
  max-width: 700px;
  margin: auto;
  padding: 40px 35px;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.35);
}

.review-card p {
  font-size: 20px;
  line-height: 1.7;
  font-style: italic;
}

.review-card h4 {
  margin-top: 25px;
  color: #1e90ff;
  font-weight: 700;
}

/* Animation */
.fade {
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .review-card p {
    font-size: 17px;
  }
}
/* LOGO STYLING */
/*.logo img {
  height: 55px;      /* perfect for navbar */
  /*width: auto;
} */

/* NAVBAR FIX */
/*.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  background: #c81b1bb6;
}*/
/* CENTER LOGO NAVBAR */
/* =========================
   LEFT LOGO + RIGHT NAV
========================= */

/*.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, nav right */
 /* padding: 12px 40px;
  background: #0fcac1;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}*/

/* LOGO */
/*.logo img {
  height: 75px;   /* adjust size here *//*
}*/

/* NAV 
.navbar nav {
  display: flex;
  gap: 22px;
}

/* LINKS 
.navbar nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
}

.navbar nav a:hover {
  color: #1e90ff;
}

/* ENQUIRY BUTTON */
.enquiry-btn {
  background: #1e90ff;
  color: white !important;
  padding: 6px 16px;
  border-radius: 20px;
}

/* =========================
   MOBILE RESPONSIVE
========================= *
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar nav {
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo img {
    height: 65px;
  }
}
/* ABOUT SECTION *
.about {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  line-height: 1.7;
}

/* FOUNDER SECTION */
/* FOUNDER CARD STYLE */
/* CENTER THE ENTIRE CARD */
.founder-card {
  max-width: 900px;
  margin: 120px auto;          /* centers horizontally */
  background: #ffffff;
  border-radius: 20px;
  padding-top: 160px;          /* space for BIG image */
  text-align: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(0,0,0,0.12);
}

/* CENTER & ENLARGE IMAGE */
/* OUT-OF-BOX PASSPORT FRAME */
.founder-avatar {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  
  width: 260px;
  height: 260px;

  background: #ffcc33;          /* yellow border */
  border-radius: 18px;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 20px 35px rgba(0,0,0,0.25);
}

/* PASSPORT IMAGE */
.founder-avatar img {
  width: 220px;
  height: 220px;
  object-fit: cover;          /* crop automatically */
  object-position: center top; /* focus on face */
  border-radius: 12px;
  background: white;
}


/* TEXT */
.founder-info {
  padding: 20px 50px 40px;
}

.founder-info h2 {
  color: #1e90ff;
  margin-bottom: 12px;
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .founder-card {
    margin: 100px 15px;
    padding-top: 130px;
  }

  .founder-avatar {
    width: 180px;
    height: 180px;
    top: -90px;
  }

  .founder-avatar img {
    width: 150px;
    height: 150px;
  }
}
/* MOBILE RESPONSIVE FIX */
@media (max-width: 768px) {

  body {
    overflow-x: hidden;
  }

  /*.navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar nav {
    flex-wrap: wrap;
    justify-content: center;
  }*/

  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero img {
    width: 100%;
    max-width: 400px;
  }
}
/* ===============================
   FORCE COMPACT MOBILE NAVBAR
================================ */
@media (max-width: 768px) {

  .top-bar {
    font-size: 12px;
    padding: 6px 10px;
    text-align: center;
  }

  /*.navbar {
    padding: 8px 10px !important;
    min-height: auto !important;
  }

  .logo img {
    height: 38px !important;
    margin-bottom: 6px;
  }

  .navbar nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    width: 100%;
  }

  .navbar nav a {
    font-size: 13px !important;
    padding: 6px 4px !important;
    line-height: 1.2;
  }*/

  .enquiry-btn {
    grid-column: span 2;
    padding: 8px 0 !important;
    font-size: 14px !important;
  }
}
/* =======================
   TOP BAR
======================= */
.top-bar {
  background: linear-gradient(to right, #ff9800, #ffc107);
  color: #000;
  font-size: 14px;
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* =======================
   NAVBAR (DESKTOP)
======================= */
.navbar {
  background: #18c7bb;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo img {
  height: 55px;
}

.navbar nav {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.navbar nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 15px;
}

.enquiry-btn {
  background: #2979ff;
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
}

/* =======================
 /* ===== ULTRA COMPACT MOBILE NAV ===== */
@media (max-width: 768px) {

  .navbar {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
  }

  .logo {
    margin-bottom: 2px !important;
  }

  .logo img {
    height: 30px !important;
  }

  .navbar nav {
    margin-top: 2px !important;
    row-gap: 2px !important;
  }

  .navbar nav a {
    padding: 2px 2px !important;
    line-height: 1 !important;
    font-size: 12px !important;
  }

  .enquiry-btn {
    padding: 4px 0 !important;
    margin-top: 2px !important;
    font-size: 12px !important;
  }
}
/* ===== FINAL MOBILE NAV FIX (NO OVERFLOW, LOW HEIGHT) ===== */
/* ===== FINAL MOBILE NAV (COMPACT + NO OVERFLOW) ===== */
@media (max-width: 768px) {

  .navbar {
    padding: 6px 8px !important;
  }

  .logo img {
    height: 40px !important;
    margin-bottom: 4px;
  }

  /* 2-row compact navigation */
  .navbar nav {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 6px !important;
    width: 100%;
    text-align: center;
  }

  .navbar nav a {
    font-size: 12px !important;
    padding: 4px 2px !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

  .enquiry-btn {
    padding: 4px 0 !important;
    font-size: 12px !important;
  }
}
/* ===============================
   GLOBAL FIX FOR ALL NAV LINKS
   =============================== */

/* Height of navbar (desktop + mobile safe) */
:root {
  --nav-offset: 110px;
}

/* Apply offset to ALL sections that are linked */
section,
[id] {
  scroll-margin-top: var(--nav-offset);
}

/* Mobile adjustment */
@media (max-width: 768px) {
  :root {
    --nav-offset: 130px;
  }
}
