/* ==========================================
   SANSKAR ACADEMY - MAIN STYLESHEET
   ========================================== */

/* ---------- GLOBAL RESETS & VARIABLES ---------- */
:root {
  --primary-color: #0B2C5F;
  --primary-dark: #071D40;
  --accent-color: #F4C430;
  --accent-hover: #e0b020;
  --text-dark: #1E293B;
  --text-muted: #64748B;
  --bg-light: #d4ebfe;
  --white: #ffffff;
  --max-width: 1280px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

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

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

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

/* Import Responsive Top Bar & Sticky Navbar */
@import url("navbar.css");

/* ---------- CONTAINER UTILITY ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- HERO SECTION ---------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 90px 8% 110px;
  background: url("hero.jpeg.jpeg") no-repeat center center/cover;
}

.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 24, 54, 0.85) 0%, rgba(11, 44, 95, 0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  color: var(--white);
  max-width: 720px;
  z-index: 5;
}

.hero-content h5 {
  color: var(--accent-color);
  letter-spacing: 4px;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: 1.1;
  margin: 10px 0 16px;
  font-weight: 800;
  letter-spacing: -1px;
}

.hero-content h1 span {
  color: var(--accent-color);
}

.hero-content h3 {
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 16px;
  font-weight: 500;
  color: #e2e8f0;
}

.hero-content p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 36px;
  color: #cbd5e1;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  text-decoration: none;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.45);
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.btn-secondary {
  text-decoration: none;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 13px 30px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-color);
  transform: translateY(-3px);
}

/* ---------- FEATURE CARDS ---------- */
.features {
  max-width: var(--max-width);
  margin: -60px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  z-index: 20;
}

.feature-card {
  background: var(--white);
  padding: 36px 24px;
  text-align: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

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

.feature-card i {
  font-size: 38px;
  color: var(--primary-color);
  margin-bottom: 20px;
  background: #eff6ff;
  width: 76px;
  height: 76px;
  line-height: 76px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.feature-card:hover i {
  background: var(--accent-color);
  color: var(--primary-dark);
  transform: scale(1.08);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ---------- ABOUT SECTION ---------- */
.about {
  max-width: var(--max-width);
  margin: 80px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-image {
  position: relative;
  width: 100%;
}

.about-image img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.about-content .sub-tag {
  color: #d97706;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.about-content h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  line-height: 1.25;
  margin-bottom: 12px;
  font-weight: 800;
}

.about-content .tagline {
  color: #b45309;
  font-size: 15px;
  font-weight: 600;
  display: block;
  margin-bottom: 18px;
}

.about-content p {
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 15px;
  margin-bottom: 16px;
}

.about-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 32px;
}

.point {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
}

.point i {
  color: #d97706;
  font-size: 18px;
}

/* ---------- SPECIAL CLASSES / STATS SECTION ---------- */
.stats {
  width: 100%;
  background: var(--primary-color);
  padding: 70px 24px;
  margin-top: 80px;
}

.stats-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr repeat(3, 1fr);
  gap: 24px;
  align-items: center;
}

.stat-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--accent-color);
  font-weight: 800;
  line-height: 1.2;
}

.stat-box {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 32px 24px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.stat-box:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-6px);
}

.special-card i {
  font-size: 42px;
  color: var(--accent-color);
  margin-bottom: 16px;
  display: inline-block;
  transition: var(--transition);
}

.stat-box:hover .special-card i {
  transform: rotate(10deg) scale(1.15);
}

.stat-box p {
  color: var(--white);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

/* ---------- FACILITIES SECTION ---------- */
.facilities {
  max-width: var(--max-width);
  margin: 90px auto;
  padding: 0 24px;
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title span {
  color: #d97706;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 13px;
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.section-title h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--primary-color);
  font-weight: 800;
  line-height: 1.25;
}

.section-title p {
  color: var(--text-muted);
  margin-top: 12px;
  font-size: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

.facility-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.facility-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-color);
}

.facility-card i {
  font-size: 38px;
  color: #d97706;
  margin-bottom: 18px;
  background: #fef3c7;
  width: 76px;
  height: 76px;
  line-height: 76px;
  border-radius: 50%;
  display: inline-block;
  transition: var(--transition);
}

.facility-card:hover i {
  background: var(--primary-color);
  color: var(--accent-color);
}

.facility-card h3 {
  color: var(--primary-color);
  margin-bottom: 12px;
  font-size: 20px;
  font-weight: 700;
}

.facility-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 14px;
}

/* ---------- FOOTER SECTION ---------- */
footer {
  background: #04152f;
  color: var(--white);
  padding: 70px 24px 30px;
}

.footer-logo {
  width: 50px;
  height: 50px;
  margin: 0;
  border-radius: 50%;
  background: var(--white);
  padding: 0;
  box-shadow: none;
  object-fit: cover;
}

/* ---------- RESPONSIVE MEDIA QUERIES ---------- */

/* Laptop / Small Desktop (<= 1024px) */
@media (max-width: 1024px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
    margin-top: -40px;
  }
  
  .about {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .about-image img {
    height: 380px;
  }

  .about-points {
    justify-content: center;
  }

  .point {
    justify-content: center;
  }

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

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

/* Tablet / Mobile (<= 768px) */
@media (max-width: 768px) {
  .hero {
    min-height: 75vh;
    padding: 80px 20px 100px;
    text-align: center;
    justify-content: center;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-buttons {
    justify-content: center;
  }

  .btn-primary,
  .btn-secondary {
    padding: 12px 28px;
    font-size: 14px;
  }

  .features {
    grid-template-columns: 1fr;
    margin-top: -30px;
    margin-bottom: 60px;
  }

  .about {
    margin: 60px auto;
  }

  .stats {
    padding: 50px 16px;
    margin-top: 60px;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .facilities {
    margin: 60px auto;
  }

  .facility-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Small Mobile (<= 480px) */
@media (max-width: 480px) {
  .about-points {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}