/* ============= STATS SECTION ============= */
.stats-section {
  background: linear-gradient(135deg, #003b77 0%, #e53333 100%);
  color: #fff;
  padding: 60px 20px;
  border-radius: 12px;
  margin: 0;
}

.stats-section h2 {
  color: #fff;
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-8px);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.4);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.stat-label {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.stat-desc {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive adjustments for stats section */

/* Reduce padding on smaller screens */
@media (max-width: 768px) {
  .stats-section {
    padding: 40px 15px;
  }

  .stats-section h2 {
    font-size: 1.75rem;
    margin-bottom: 35px;
  }

  .stat-card {
    padding: 25px 20px;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 1.1rem;
  }

  .stat-desc {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .stats-section {
    padding: 30px 10px;
  }

  .stats-section h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .stat-card {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 1.9rem;
  }

  .stat-label {
    font-size: 1rem;
  }

  .stat-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 350px) {
  .stat-card {
    padding: 18px 10px;
  }

  .stat-number {
    font-size: 1.7rem;
  }

  .stat-label {
    font-size: 0.95rem;
  }

  .stat-desc {
    font-size: 0.75rem;
  }
}


/* ============= TOPPERS SECTION ============= */
.toppers-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.toppers-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 10px;
  font-size: 2rem;
}

.section-intro {
  text-align: center;
  color: #777;
  margin-bottom: 30px;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  background: #f0f0f0;
  color: #003b77;
  padding: 10px 20px;
  border: 2px solid transparent;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: #e53333;
  color: #fff;
  border-color: #e53333;
}

/* Toppers Grid */
.toppers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.topper-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative;
}

.topper-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(229,51,51,0.2);
}

.topper-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e53333;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: bold;
}

.topper-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.topper-info {
  padding: 25px;
}

.topper-info h3 {
  color: #003b77;
  margin: 0 0 8px 0;
  font-size: 1.2rem;
}

.topper-exam {
  color: #e53333;
  font-weight: 600;
  margin: 5px 0;
  font-size: 0.95rem;
}

.topper-score {
  color: #777;
  margin: 8px 0 12px 0;
  font-size: 0.9rem;
}

.topper-story {
  color: #666;
  font-style: italic;
  line-height: 1.6;
  font-size: 0.9rem;
}

/* ============= SUCCESS RATE SECTION ============= */
.success-rate-section {
  background: #f7fafd;
  padding: 50px 20px;
  margin: 50px 0;
  border-radius: 12px;
}

.success-rate-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

.success-rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.rate-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-top: 4px solid #e53333;
}

.rate-exam {
  color: #003b77;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 15px;
}

.rate-container {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
}

.progress-bar {
  flex-grow: 1;
  height: 12px;
  background: #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #003b77 0%, #e53333 100%);
  border-radius: 10px;
  transition: width 0.5s ease;
}

.rate-percentage {
  color: #e53333;
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 45px;
  text-align: right;
}

.rate-stats {
  font-size: 0.85rem;
  color: #777;
}

.rate-stats p {
  margin: 4px 0;
}

/* ============= SUCCESS STORIES SECTION ============= */
.success-stories-section {
  margin: 50px auto;
  max-width: 1200px;
  padding: 0 20px;
}

.success-stories-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.story-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-left: 4px solid #e53333;
  transition: all 0.3s ease;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(229,51,51,0.15);
}

.story-header {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  align-items: center;
}

.story-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #e53333;
  flex-shrink: 0;
}

.story-title h3 {
  color: #003b77;
  margin: 0;
  font-size: 1.1rem;
}

.story-title p {
  color: #e53333;
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  font-weight: 600;
}

.story-content {
  font-size: 0.9rem;
  line-height: 1.7;
}

.story-content p {
  color: #555;
  margin: 10px 0;
}

.story-content strong {
  color: #003b77;
}

.story-quote {
  font-style: italic;
  color: #e53333;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 2px solid #f0f0f0;
}

.student-testimonials-section {
  background: #f7fafd;
  padding: 50px 20px;
  margin: 50px 0;
  border-radius: 12px;
}

.student-testimonials-section h2 {
  text-align: center;
  color: #003b77;
  margin-bottom: 40px;
  font-size: 2rem;
}

/* Remove horizontal scroll and allow wrapping */
.testimonials-carousel {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;       /* Allow cards to wrap */
  gap: 25px;
  padding: 20px 0;
  overflow: visible;     /* Remove scroll */
  justify-content: center; /* Center cards */
}

/* Each testimonial card */
.testimonial-item {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  flex-shrink: 0;
  width: calc(50% - 12.5px); /* Two cards per row with gap */
  box-sizing: border-box;
}

/* Adjust card width for smaller screens */
@media (max-width: 768px) {
  .testimonial-item {
    width: 100%;  /* Full width on small devices */
  }
}

/* Stars styling remains the same */
.testimonial-star {
  color: #ffc107;
  margin-bottom: 15px;
  font-size: 1rem;
}

.testimonial-star i {
  margin-right: 3px;
}

.testimonial-text {
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

/* Author section styling */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #f0f0f0;
}

.author-img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
}

.author-info {
  flex-grow: 1;
}

.author-name {
  color: #003b77;
  font-weight: 600;
  margin: 0;
}

.author-exam {
  color: #e53333;
  font-size: 0.85rem;
  margin: 3px 0 0 0;
}


/* ============= RESULTS CTA SECTION ============= */
.results-cta {
  background: linear-gradient(135deg, #e53333 0%, #003b77 100%);
  color: #fff;
  padding: 50px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 50px auto;
  max-width: 1200px;
}

.results-cta h2 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 12px;
}

.results-cta p {
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #fff;
  color: #08158d;
  padding: 12px 30px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background: #f01313;
  color: white;
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
}

.btn-secondary:hover {
  background: white;
  color: rgb(247, 20, 20);
}