/* RESET AND FONT */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
}

body {
  background: linear-gradient(135deg, #f8f9fb, #e4ebf3);
  color: #111;
  scroll-behavior: smooth;
}

/* NAVBAR */
nav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav h3 {
  padding-left: 8px;
}

nav img {
  height: 55px;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav ul li a {
  text-decoration: none;
  color: #222;
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #0077ff;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #0077ff;
}

nav ul li a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #111;
  border-radius: 3px;
  transition: 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

/* MOBILE NAVBAR */
@media(max-width:768px) {
  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    width: 220px;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 15px 0 0 15px;
  }

  .nav-links.active {
    right: 10px;
  }

  .hamburger {
    display: flex;
  }

  nav ul {
    flex-direction: column;
  }
}

/* SECTION BASE (Scroll Animation) */
section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 3rem 1rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease;
}

section.active {
  opacity: 1;
  transform: translateY(0);
}

/* INTRO SECTION */
.intro {
  margin-top: 120px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  padding: 2rem;
  border-radius: 25px;
  text-align: center;
  max-width: 500px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.intro img {
  width: 200px;
  margin-bottom: 1rem;
}

.intro h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  margin-bottom: 0.8rem;
}

.intro p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* CEO SECTION */
.ceo-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  margin-top: 2rem;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
}

.ceo-text {
  flex: 1 1 45%;
  margin-bottom: 1rem;
}

.ceo-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
}

.ceo-text p {
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.signature {
  font-family: 'Brush Script MT', cursive;
  font-size: 1.6rem;
  color: #555;
}

.ceo-image {
  flex: 1 1 45%;
  text-align: center;
}

.ceo-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.25);
}

/* TEACHERS SECTION */
.teachers-section {
  padding: 2rem;
  width: 100%;
  text-align: center;
}

.teachers-section h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.teacher-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  width: 220px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.teacher-card img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.teacher-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111;
}

.teacher-card p {
  font-size: 1rem;
  color: #333;
  margin-top: 0.3rem;
}

/* STUDENTS SECTION - STATS */
.students {
  padding: 2rem;
  text-align: center;
}

.students h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.student-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  width: 220px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 2rem;
  color: #0077ff;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: #333;
  font-size: 1rem;
}

/* STUDENTS SECTION - CARDS */
.top-students {
  padding: 2rem;
  text-align: center;
}

.top-students h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.student-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  justify-items: center;
}

.student-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(20px);
  border-radius: 15px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.1);
}

.student-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.5rem;
}

.student-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.student-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 0;
}

.student-card.hidden {
  display: none;
  margin-top: 1rem;
}

#view-all-btn {
  margin-top: 1.5rem;
  padding: 0.6rem 1.5rem;
  border: none;
  background: #0077ff;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

#view-all-btn:hover {
  background: #005dc1;
}


/* CLASSROOMS SECTION */
#classrooms {
  min-height: auto;
  padding-top: 5rem;
  padding-bottom: 5rem;
}


#classrooms h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: #111;
}

.classroom-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
  padding: 0 1rem;
}

.class-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.class-card img {
  height: 90px;
  border-radius: 12px;
}

.class-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.class-card i {
  font-size: 2.5rem;
  color: #0077ff;
  margin-bottom: 1rem;
}

.class-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.5rem;
}

.class-card p {
  color: #555;
  font-size: 1rem;
}

/* REVIEW SLIDER - CRITICAL SECTION */
#reviews {
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  margin-top: 1rem;
  overflow: hidden;
}

/* Container for positioning buttons */
.review-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 0 1rem;
  /* Added padding to give space for the buttons on edges */
}

/* The element that will shift using translateX() */
.review-slider {
  display: flex;
  overflow: hidden;
  gap: 0;
  /* CRITICAL: Must be 0 */
  width: 250px;
  /* DEFAULT Desktop width */
  height: 350px;
  border-radius: 40px;
  transition: transform 0.5s ease-in-out;
  transform-style: preserve-3d;
  /* Helps prevent subpixel rendering issues */
}

/* Each video takes up 100% of the slider's viewport width */
.reel-video {
  flex: 0 0 100%;
  /* CRITICAL: Each video is exactly the width of the .review-slider */
  height: 100%;
  margin: 0;
  /* Ensure no margins */
  padding: 0;
  /* Ensure no padding */
  object-fit: cover;
  border-radius: 40px;
  cursor: pointer;
}

/* Navigation Buttons */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
  font-size: 1.2rem;
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.left-btn {
  left: 0;
}

.right-btn {
  right: 0;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: default;
}


/* FOOTER CSS (No Changes) */
footer {
  background: rgba(16, 16, 16, 0.925);
  backdrop-filter: blur(20px);
  padding: 3rem 2rem 1.5rem;
  border-radius: 25px 25px 0 0;
  color: #fff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bio,
.footer-links,
.footer-contact {
  flex: 1 1 250px;
}

.footer-bio h3,
.footer-links h3,
.footer-contact h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #fff;
}

.footer-bio p {
  line-height: 1.6;
  color: #ddd;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links ul li {
  margin-bottom: 0.7rem;
  font-size: 1rem;
}

.footer-links ul li i {
  margin-right: 0.5rem;
  color: #00aaff;
}

.footer-links ul li a {
  color: #fff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-links ul li a:hover {
  color: #00aaff;
}

.footer-contact p {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  color: #ddd;
}

.footer-contact p a {
  color: whitesmoke;
  text-decoration: none;
}

.footer-contact i {
  margin-right: 0.5rem;
  color: #00aaff;
}

.footer-social a {
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 1.4rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0.6rem;
  border-radius: 12px;
  transition: 0.3s;
}

.footer-social a:hover {
  background: #00aaff;
  color: #fff;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.95rem;
  color: #ccc;
}

.footer-bottom a {
  color: #00aaff;
  text-decoration: none;
  transition: 0.3s;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* MEDIA QUERIES (CLEANED UP) */
@media(max-width:768px) {
  .ceo-section {
    flex-direction: column;
    text-align: center;
  }

  .ceo-text,
  .ceo-image {
    flex: 1 1 100%;
    margin-bottom: 1rem;
  }

  .teachers {
    grid-template-columns: 1fr;
  }

  .student-stats {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    gap: 1.5rem;
  }

  /* CORRECTED MOBILE VIDEO SLIDER WIDTH */
  .review-slider {
    width: 80vw;
    /* This defines the exact width for the JS calculation */
    height: 60vh;
  }
}