/* =========================
   RESET & BASE
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Inter, sans-serif;
  background: #fff;
  color: #0f172a;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 24px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #fff7ed;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

/* LOGO SECTION */
.logo {
  display: flex;
  align-items: center;
  gap: 18px;
  text-decoration: none;
}

/* Logo Image Bigger */
.logo img {
  width: 100px;        /* 🔥 bada kar diya */
  height: 70px;
  object-fit: contain;
}

.logo span {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
  transition: 0.3s;
}

.logo:hover span {
  color: #0f172a;
}

/* NAV LINKS */
.nav-links {
  display: flex;
  gap: 25px;
}

.nav-links a {
  position: relative;
  padding: 8px 0;
  font-weight: 500;
  color: #0f172a;
  text-decoration: none;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #1e3a8a;
}


/* MOBILE */
@media (max-width: 900px) {

  .nav-links {
    position: absolute;
    top: 75px;
    right: 20px;
    background: white;
    flex-direction: column;
    padding: 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .logo span {
    font-size: 16px;
  }
}


/* HAMBURGER */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #0f172a;
  border-radius: 2px;
}

/* MOBILE MENU */
@media (max-width: 768px) {

  .hamburger {
    display: flex;
    margin-right: 15px;
  }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff7ed;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 24px 0;

    display: none;          /* hidden by default */
  }

  .nav-links.active {
    display: flex;          /* open on click */
  }
}

/* ================= ABOUT SECTION ================= */

.about-section {
  position: relative;
  padding: 120px 20px 140px;
  background: #f3efe6; /* soft beige */
  text-align: center;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
}

/* Title */
.about-title {
  font-size: 48px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 80px;
}

/* Grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

/* Cards */
.about-card {
  background: #e5e7eb;
  border: 2px solid #0f172a;
  border-radius: 36px;
  padding: 60px 40px;
  transition: all 0.3s ease;
}

.about-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

/* Card Text */
.about-card h4 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 10px;
  color: #0f172a;
}

.about-card h3 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #0f172a;
}

.about-card p {
  font-size: 16px;
  line-height: 1.8;
  color: #1f2937;
  max-width: 420px;
  margin: auto;
}

/* ================= Decorative Shapes ================= */

.shape {
  position: absolute;
  z-index: 0;
}

.circle {
  width: 18px;
  height: 18px;
  border: 4px solid #22c55e;
  border-radius: 50%;
  top: 40px;
  left: 60px;
}

.star {
  width: 18px;
  height: 18px;
  background: #facc15;
  transform: rotate(45deg);
  top: 60px;
  right: 80px;
  border-radius: 4px;
}

.dots {
  width: 70px;
  height: 70px;
  background: radial-gradient(#3b82f6 6px, transparent 6px);
  background-size: 20px 20px;
  top: 80px;
  right: 40px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

  .about-title {
    font-size: 36px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-card {
    padding: 40px 30px;
  }

  .about-card h3 {
    font-size: 32px;
  }
}

@media (max-width: 600px) {

  .about-section {
    padding: 80px 16px 100px;
  }

  .about-title {
    font-size: 28px;
    margin-bottom: 50px;
  }

  .about-card {
    border-radius: 24px;
    padding: 30px 20px;
  }

  .about-card h3 {
    font-size: 26px;
  }

  .about-card p {
    font-size: 15px;
  }
}

/* ================= SCHOOL HISTORY SECTION ================= */

.school-history {
  padding: 120px 20px;
  background: linear-gradient(135deg, #065f46, #059669);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.history-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 70px;
  align-items: center;
}

/* TITLE */
.section-title {
  font-size: 44px;
  font-weight: 800;
  margin-bottom: 25px;
}

/* INTRO */
.history-intro {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 40px;
  color: #e2e8f0;
}

/* TIMELINE */
.timeline-item {
  margin-bottom: 25px;
  padding-left: 20px;
  border-left: 3px solid #facc15;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.year {
  font-weight: 700;
  color: #facc15;
  display: block;
  margin-bottom: 5px;
}

/* STATS */
.school-stats {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.stat-box {
  background: #ffffff;
  color: #0f172a;
  padding: 20px 30px;
  border-radius: 18px;
  text-align: center;
  min-width: 140px;
  transition: transform 0.3s ease;
}

.stat-box:hover {
  transform: translateY(-6px);
}

.stat-box h3 {
  font-size: 28px;
  font-weight: 800;
  color: #1e3a8a;
}

.stat-box span {
  font-size: 14px;
}

/* DIRECTOR */
.director {
  margin-top: 30px;
  font-size: 15px;
  color: #cbd5e1;
}

/* IMAGE */
.history-image img {
  width: 100%;
  border-radius: 28px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transition: transform 0.5s ease;
}

.history-image img:hover {
  transform: scale(1.05);
}

/* ================= ANIMATION ================= */

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

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {

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

  .section-title {
    font-size: 32px;
  }

  .school-stats {
    justify-content: center;
  }

  .history-image {
    margin-top: 40px;
  }
}

@media (max-width: 600px) {

  .school-history {
    padding: 80px 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .history-intro {
    font-size: 15px;
  }

  .stat-box {
    padding: 16px 20px;
  }
}

/* COMMON */
.section-title {
  font-size: 40px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  color: #0f172a;
}

.section-title.light {
  color: #ffffff;
}


/* ================= COUNTERS ================= */

.achievements-section {
  padding: 100px 20px;
  background: linear-gradient(135deg,#1e3a8a,#0f172a);
  color: #fff;
}

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

.counter-box {
  background: rgba(255,255,255,0.08);
  padding: 40px;
  border-radius: 24px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform .3s;
}

.counter-box:hover {
  transform: translateY(-8px);
}

.counter-box h3 {
  font-size: 40px;
  color: #facc15;
}

/* ================= BADGES ================= */

.badges-section {
  padding: 100px 20px;
  background: #facc15;
}

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

.badge-card {
  background: #fff;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  font-weight: 600;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  transition: transform .3s;
}

.badge-card:hover {
  transform: scale(1.05);
}

/* ================= FACILITIES ================= */

.facilities-section {
  padding: 100px 20px;
  background: #0f172a;
}

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

.facility-card {
  background: #1e293b;
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: #fff;
  transition: 0.3s;
}

.facility-card:hover {
  background: #facc15;
  color: #0f172a;
}

/* ================= RESULT GRAPH ================= */

.result-section {
  padding: 100px 20px;
  background: #ffffff;
}

.graph {
  max-width: 800px;
  margin: auto;
}

.bar {
  margin-bottom: 25px;
}

.bar span {
  font-weight: 600;
}

.progress {
  height: 18px;
  background: #1e3a8a;
  border-radius: 20px;
  width: 0;
  transition: width 2s ease;
}

/* ================= RESPONSIVE ================= */

@media(max-width: 992px){
  .counter-grid,
  .badge-grid {
    grid-template-columns: repeat(2,1fr);
  }

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

@media(max-width: 600px){
  .counter-grid,
  .badge-grid,
  .facility-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }
}

/* ================= LOCATION SECTION ================= */

.location-section {
  padding: 120px 20px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #ffffff;
}

.location-container {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* INFO CARD */
.location-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  padding: 50px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  transition: 0.4s ease;
}

.location-card:hover {
  transform: translateY(-10px);
}

.location-card h2 {
  font-size: 38px;
  margin-bottom: 20px;
}

.location-card p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 30px;
  color: #e2e8f0;
}

.location-details div {
  margin-bottom: 15px;
  font-size: 15px;
}

.location-details span {
  margin-left: 8px;
  color: #cbd5e1;
}

/* BUTTON */
.location-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 24px;
  background: #facc15;
  color: #0f172a;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.location-btn:hover {
  background: #ffffff;
}

/* MAP */
.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border-radius: 30px;
  border: none;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transition: 0.4s ease;
}

.map-wrapper iframe:hover {
  transform: scale(1.02);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 900px) {
  .location-container {
    grid-template-columns: 1fr;
  }

  .location-card {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .location-section {
    padding: 80px 16px;
  }

  .location-card {
    padding: 30px;
  }

  .location-card h2 {
    font-size: 26px;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

/* ================= CTA SECTION ================= */

.cta-wrap {
  padding: 100px 20px;
  background: transparent;   /* ❗ white hatao */
  position: relative;
  z-index: 5;
}

.cta-card {
  max-width: 1200px;
  margin: auto;
  background: #facc15;
  border-radius: 48px;
  padding: 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

/* TEXT */
.cta-text h4 {
  font-size: 20px;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 8px;
}

.cta-text h2 {
  font-size: 44px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 18px;
}

.cta-text p {
  font-size: 16px;
  line-height: 1.7;
  color: #1e293b;
  max-width: 520px;
  margin-bottom: 28px;
}

/* BUTTONS */
.cta-btns {
  display: flex;
  gap: 16px;
}

.btn-white {
  background: #ffffff;
  color: #0f172a;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-outline-yellow {
  background: transparent;
  color: #0f172a;
  padding: 14px 26px;
  border-radius: 14px;
  font-weight: 600;
  border: 2px solid #0f172a;
  cursor: pointer;
}

/* IMAGE */
.cta-img {
  position: relative;
  text-align: right;
}

.cta-img img {
  width: 100%;
  max-width: 360px;
}

/* ================= FOOTER ================= */

.footer-main {
  background: #00b853;
  margin-top: -220px;
  padding: 260px 80px 140px;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

.footer-grid {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
}

/* BRAND */
.footer-brand h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 320px;
  margin-bottom: 25px;
}

/* SOCIAL ICONS */
.footer-social {
  display: flex;
  gap: 14px;
}

.social-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 18px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  transform: translateY(-6px);
  background: #ffffff;
  color: #00b853;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* LINKS */
.footer-links h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-links a {
  display: block;
  font-size: 15px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
  padding-left: 6px;
}


/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    .footer-main {
   margin-top: -160px;
    padding-top: 220px;
    padding-bottom: 120px;
  }


   .cta-wrap {
    padding: 60px 20px 40px;    /* 🔥 Reduced top/bottom padding */
    margin-bottom: -80px;       /* 🔥 Less negative margin */
  }

  .cta-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 32px;         /* 🔥 Reduced from 60px */
    border-radius: 32px;        /* 🔥 Slightly smaller radius */
  }

  .cta-text h4 {
    font-size: 16px;            /* 🔥 Compact heading */
    margin-bottom: 6px;
  }

  .cta-text h2 {
    font-size: 32px;            /* 🔥 Smaller title */
    margin-bottom: 14px;
    line-height: 1.2;
  }

  .cta-text p {
    font-size: 15px;            /* 🔥 Compact text */
    line-height: 1.6;
    margin-bottom: 22px;
    max-width: 100%;
  }

  .cta-btns {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;                  /* 🔥 Tighter button gap */
  }

  .btn-white,
  .btn-outline-yellow {
    padding: 12px 22px;         /* 🔥 Smaller buttons */
    font-size: 15px;
  }

  .cta-img {
    margin-top: 28px;           /* 🔥 Reduced from 40px */
    text-align: center;
  }

  .cta-img img {
    max-width: 240px;           /* 🔥 Smaller image */
  }

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

  .footer-brand p {
    margin: auto;
  }
}

@media (max-width: 480px) {

     .cta-wrap {
    padding: 50px 16px 30px;
  }

  .cta-card {
    padding: 32px 24px;         /* 🔥 Even more compact */
    border-radius: 28px;
  }

  .cta-text h2 {
    font-size: 28px;
  }

  .cta-text p {
    font-size: 14px;
    margin-bottom: 20px;
  }

  .cta-img {
    margin-top: 24px;
  }

  .cta-img img {
    max-width: 200px;           /* 🔥 Compact for small screens */
  }

  .footer-main {
  margin-top: -120px;
    padding-top: 190px;
    padding-bottom: 100px
  }
}