/* =========================
   Base Styles & Layout
   ========================= */
body {
  font-family: 'Poppins', 'Open Sans', sans-serif;
  background-color: #f0f4fa;
  color: #00264d;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

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

/* =========================
   Section Headers & Titles
   ========================= */
.section-header,
.category-header {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 50px;
}

.section-title {
  font-size: 2.8rem;
  font-weight: 700;
  color: #00264d;
}

.section-title span {
  color: #0066cc;
  position: relative;
}

.section-title span::after {
  content: '';
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 100%;
  height: 3px;
  background: #ffcc00;
  border-radius: 5px;
}

.section-subtitle,
.category-description {
  font-size: 1.1rem;
  color: #4d5d6c;
}

.category-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: #0066cc;
  margin-bottom: 8px;
}

.category-description {
  color: #455a64;
  font-size: 1rem;
}

/* =========================
   Testimonial Grid & Cards
   ========================= */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #dbe4ed;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

/* =========================
   Card Header & Avatar
   ========================= */
.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffcc00;
}

.person-info h4 {
  font-size: 1.2rem;
  margin: 0;
  color: #00264d;
}

.role {
  font-size: 0.95rem;
  color: #4d5d6c;
}

/* =========================
   Message Styling
   ========================= */
.message {
  font-style: italic;
  padding-left: 20px;
  position: relative;
  margin-bottom: 20px;
  color: #34495e;
}

.message::before {
  content: '"';
  font-size: 1.8rem;
  color: #0066cc;
  position: absolute;
  left: 0;
  top: -10px;
  opacity: 0.3;
}

/* =========================
   Video Testimonials Section
   ========================= */
.video-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  border: 1px solid #e1e4ea;
  display: flex;
  flex-direction: column;
  padding: 0;
}

.instagram-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 460px;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(135deg, #e6f4fb 0%, #ccefff 100%);
  position: relative;
  box-sizing: border-box;
  overflow-x: auto;
}

.instagram-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,102,204,0.08) 0%, rgba(255,255,255,0.12) 100%);
  pointer-events: none;
  z-index: 1;
}

.instagram-wrapper blockquote.instagram-media {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  z-index: 2;
}

.video-info {
  padding: 16px;
  border-top: 1px dashed #e0e0e0;
  text-align: left;
}

.video-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #00264d;
}

.video-info .role {
  font-size: 0.95rem;
  color: #4d5d6c;
  margin-top: 4px;
}

/* =========================
   Subject Tabs
   ========================= */
.subject-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.tab-button {
  padding: 10px 22px;
  border: none;
  background: #dbe4ed;
  border-radius: 30px;
  color: #00264d;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: #0066cc;
  color: white;
}

.subject-content {
  display: none;
}

.subject-content.active {
  display: block;
}

/* =========================
   Progress Bar
   ========================= */
.progress-bar {
  background: #ecf0f1;
  border-radius: 6px;
  height: 15px;
  margin-top: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, #0066cc, #00bcd4);
  color: white;
  font-size: 0.7rem;
  padding-right: 6px;
  text-align: right;
  border-radius: 6px;
}

/* =========================
   Junior Section
   ========================= */
.junior-section .testimonial-card {
  background: #f9fbff;
}

.parent-note {
  font-size: 0.85rem;
  color: #6c757d;
  font-style: italic;
  text-align: right;
}

/* =========================
   Results Showcase
   ========================= */
.results-showcase {
  background: #00264d;
  color: white;
  padding: 50px 20px;
  border-radius: 15px;
  margin: 60px 0;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  transition: 0.3s ease;
}

.stat-card:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  color: #ffcc00;
  font-weight: 700;
}

.stat-label {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* =========================
   Quote Section
   ========================= */
.quote-container {
  text-align: center;
  max-width: 800px;
  margin: 60px auto;
}

.highlight-quote {
  font-size: 1.6rem;
  font-style: italic;
  position: relative;
  padding: 0 30px;
  color: #00264d;
}

.quote-icon {
  font-size: 2.5rem;
  color: #0066cc;
  opacity: 0.2;
}

.quote-author {
  margin-top: 20px;
  font-weight: 600;
  color: #0066cc;
}

/* =========================
   Awards Section
   ========================= */
.awards-section {
  text-align: center;
  margin: 60px 0;
}

.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.award-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: 0.3s ease;
}

.award-card:hover {
  transform: translateY(-5px);
}

.award-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
}

/* =========================
   Responsive Styles
   ========================= */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  .video-card {
    border-radius: 8px;
  }
  .instagram-wrapper {
    min-height: 320px;
    border-radius: 8px 8px 0 0;
    padding: 0;
    width: 100vw;
    max-width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
    box-sizing: border-box;
    overflow-x: auto;
  }
  .instagram-wrapper blockquote.instagram-media {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }
  .highlight-quote {
    font-size: 1.4rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}