/* KIDS COURSE - THEMED STYLES */
/* ========================= PART 1============================== */
body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9fafb;
}

.hero-section {
  background: linear-gradient(to right, #ecf4f8, #ffffff);
  padding: 80px 40px;
}

.hero-text h1 {
  font-size: 2.8rem;
  color: #1f2937;
  font-family: 'Poppins', sans-serif;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 30px;
  font-family: 'Poppins', sans-serif;
}

.hero-btn {
  background: linear-gradient(to right, #06b6d4, #3b82f6);
  color: white;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.hero-btn:hover {
  background: #338099;
}

/* Video Styling */
.hero-video video {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* =============================Footer ============================= */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}


/* 
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-btn {
    padding: 10px 20px;
  }

  .feature-cards {
    grid-template-columns: 1fr;
  }
} */

/* ================= Responsive Enhancements ===================== */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    padding: 60px 20px;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-btn {
    font-size: 0.95rem;
    padding: 10px 20px;
  }

  .hero-video video {
    border-radius: 12px;
  }

  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Mobiles (<= 768px) */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 16px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .hero-text p {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .hero-video video {
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    border-radius: 10px;
  }

  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* === Better Mobile Experience Fixes === */

/* Collapse Nav (example if you're using a flex nav) */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .logo {
    margin-bottom: 10px;
  }
}

/* Ensure images and videos scale inside mobile */
img,
video {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin: auto;
}

/* Fix overflow caused by wide flex/grid containers */
.projects-wrapper,
.about-content,
.summary-container,
.teaching-content {
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* Fix grid wrapping on mobile */
@media (max-width: 768px) {
  .feature-cards,
  .summary-container,
  .details-grid,
  .review-grid,
  .syllabus-grid {
    grid-template-columns: 1fr !important;
  }

  .highlight-card,
  .expertise-card,
  .project-card,
  .publication-card {
    max-width: 100%;
  }

  .about-text {
    text-align: center;
  }

  .about-buttons {
    flex-direction: column;
    align-items: center;
  }

  .project-video {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .project-video video {
    width: 100%;
    height: auto;
    border-radius: 16px;
  }

  .teaching-slider {
    width: 100%;
  }

  .slider-track {
    animation: none; /* stop horizontal scroll on small screens */
  }
}

