/* ==========================================================================
   AHS Education - Student Success Stories ("Meet Our Rising Stars")
   Pure CSS3 with custom variables, responsive design, and smooth animations
   ========================================================================== */

:root {
  /* Brand Color Tokens */
  --primary-orange: #FF7E1D;
  --primary-orange-dark: #E85B17;
  --primary-orange-light: #FFF4EC;
  --secondary-navy: #0C2340;
  --navy-dark: #07172B;

  --text-dark: #1E293B;
  --text-muted: #64748B;
  --text-light-muted: #94A3B8;
  --border-light: #E2E8F0;
  --card-bg-white: #FFFFFF;

  /* Fonts */
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 10px 28px rgba(12, 35, 64, 0.05);
  --shadow-card-hover: 0 16px 36px rgba(12, 35, 64, 0.1);
  --shadow-modal: 0 24px 60px rgba(12, 35, 64, 0.3);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: #FFFDF9;
  line-height: 1.5;
  overflow-x: hidden;
}

/* Container Utility */
.container {
  width: 100%;
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ==========================================================================
   1. HERO SECTION: MEET OUR RISING STARS
   Taller height with center-top alignment so Captain AHS hat & stars stay full
   ========================================================================== */
.hero-section {
  position: relative;
  width: 100%;
  min-height: 620px;
  background-color: #FFAE2E;
  background-image: url('/assets/img/summer-camp-student-stories/hero-bg.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 0 90px;
  overflow: hidden;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-content {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #E65100;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 22px;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(180, 60, 0, 0.25);
  margin-bottom: 20px;
}

/* Hero Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  display: flex;
  flex-direction: column;
}

.title-navy {
  color: #0C2340;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.08));
}

.title-orange {
  color: #FF7A00;
  -webkit-text-stroke: 3px #FFFFFF;
  paint-order: stroke fill;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}

/* Subtitle */
.hero-subtitle {
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 600;
  color: #173866;
  line-height: 1.6;
  max-width: 440px;
}

/* ==========================================================================
   2. SECTION DIVIDERS (Dot - Line - Title - Line - Dot)
   ========================================================================== */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
  width: 100%;
}

.divider-dot {
  width: 7px;
  height: 7px;
  background-color: var(--primary-orange);
  border-radius: 50%;
  flex-shrink: 0;
}

.divider-line {
  width: 46px;
  height: 2.5px;
  background-color: var(--secondary-navy);
  border-radius: 2px;
}

.divider-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  color: var(--secondary-navy);
  letter-spacing: 0.3px;
  padding: 0 4px;
  white-space: nowrap;
}

/* ==========================================================================
   3. FEATURED STUDENT VIDEOS SECTION
   ========================================================================== */
.page-content {
  padding-top: 55px;
  padding-bottom: 80px;
}

.section-featured-videos {
  margin-bottom: 70px;
}

.video-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.video-card {
  position: relative;
  border-radius: 20px;
  overflow: visible;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
}

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

/* Cute sunshine doodle accents over cards */
.rays-doodle {
  position: absolute;
  top: -12px;
  display: flex;
  gap: 4px;
  z-index: 5;
  pointer-events: none;
}

.rays-top-left {
  left: -8px;
  transform: rotate(-25deg);
}

.rays-top-right {
  right: -8px;
  transform: rotate(25deg);
}

.rays-doodle span {
  display: block;
  width: 3px;
  height: 12px;
  background-color: #FFA726;
  border-radius: 3px;
}

.rays-doodle span:nth-child(2) {
  height: 16px;
  background-color: #FFB74D;
}

/* Video media container */
.video-media-wrapper {
  position: relative;
  width: 100%;
  height: 260px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(12, 35, 64, 0.08);
}

.video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.video-card:hover .video-thumb {
  transform: scale(1.04);
}

.video-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* Play button */
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform var(--transition-fast), background var(--transition-fast);
  z-index: 3;
}

.play-btn svg {
  margin-left: 3px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(255, 126, 29, 0.9);
  border-color: #FFFFFF;
}

/* Student Badge Pill */
.student-pill {
  position: absolute;
  bottom: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 9999px;
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.pill-star {
  color: #FFD700;
  font-size: 15px;
  line-height: 1;
}

.pill-purple {
  background-color: #5B45BA;
}

.pill-green {
  background-color: #2E7D32;
}

.pill-blue {
  background-color: #1976D2;
}

/* ==========================================================================
   4. MEET MORE OF OUR RISING STARS (Reviews Grid)
   ========================================================================== */
.section-more-stars {
  margin-bottom: 75px;
}

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

.review-card {
  background-color: #FFFFFF;
  border-radius: 20px;
  padding: 26px 24px 22px;
  box-shadow: var(--shadow-card);
  border: 1.5px solid #F1F5F9;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: #FFE6D5;
}

.review-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: #475569;
  margin-bottom: 20px;
}

.review-divider {
  border: none;
  height: 1px;
  background-color: #F1F5F9;
  margin-bottom: 16px;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.avatar-green {
  background-color: #DCFCE7;
  color: #15803D;
}

.avatar-pink {
  background-color: #FFE4E6;
  color: #BE123C;
}

.avatar-blue {
  background-color: #E0F2FE;
  color: #0369A1;
}

.author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-navy);
}

/* ==========================================================================
   5. JOIN OUR STUDENT COMMUNITY CTA BANNER (100% Match to reference)
   Uses cta-bg.png which has mascot on left and backpack on right
   ========================================================================== */
.section-community-cta {
  margin-top: 15px;
  margin-bottom: 60px;
}

.community-banner {
  position: relative;
  width: 100%;
  max-width: 1140px;
  min-height: 240px;
  margin: 0 auto;
  background-color: #FFB74D;
  background-image: url('/assets/img/summer-camp-student-stories/cta-bg.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(232, 91, 23, 0.16);
  display: flex;
  align-items: center;
  padding: 30px 40px;
}

.community-banner-content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* Padding keeps text cleanly situated between mascot on left & backpack on right */
  padding-left: clamp(170px, 24vw, 290px);
  padding-right: clamp(140px, 19vw, 220px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.community-text-group {
  flex: 1;
}

.community-title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 28px);
  font-weight: 600;
  color: var(--secondary-navy);
  margin-bottom: 8px;
  line-height: 1.25;
  letter-spacing: 0.2px;
}

.title-stars {
  font-size: 20px;
  margin-left: 4px;
}

.community-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: #1E293B;
  font-weight: 500;
  max-width: 440px;
}

.btn-community-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(180deg, #FFC107 0%, #FFA000 100%);
  color: #0C2340;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  padding: 13px 28px;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(255, 160, 0, 0.4);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  flex-shrink: 0;
}

.btn-community-join:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 24px rgba(255, 160, 0, 0.55);
}

.btn-arrow {
  font-size: 16px;
  transition: transform var(--transition-fast);
}

.btn-community-join:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   6. VIDEO PLAYER MODAL
   ========================================================================== */
.sc-student-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 35, 64, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.sc-student-modal-overlay.is-active {
  display: flex;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sc-student-modal-dialog {
  background-color: #000000;
  border-radius: 20px;
  width: 100%;
  max-width: 820px;
  box-shadow: var(--shadow-modal);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.sc-student-modal-overlay.is-active .sc-student-modal-dialog {
  transform: translateY(0) scale(1);
}

.sc-student-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: #111111;
  border-bottom: 1px solid #222222;
}

.sc-student-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.sc-student-modal-close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: #CCCCCC;
  cursor: pointer;
  padding: 0 4px;
  transition: color var(--transition-fast);
}

.sc-student-modal-close:hover {
  color: var(--primary-orange);
}

.sc-student-video-container video {
  width: 100%;
  height: auto;
  max-height: 75vh;
  display: block;
}

/* ==========================================================================
   7. RESPONSIVE DESIGN (Media Queries)
   ========================================================================== */

/* Large Tablets & Small Desktops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-section {
    min-height: 540px;
    padding: 60px 0 70px;
  }

  .video-cards-grid {
    gap: 18px;
  }

  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .community-banner-content {
    padding-left: clamp(150px, 22vw, 200px);
    padding-right: clamp(120px, 18vw, 160px);
    gap: 16px;
  }

  .btn-community-join {
    padding: 11px 22px;
    font-size: 14px;
  }
}

/* Tablets (<= 860px) */
@media (max-width: 860px) {
  .hero-section {
    min-height: 480px;
    padding: 50px 0 60px;
    background-position: 70% top;
  }

  .community-banner {
    padding: 30px 20px;
    min-height: auto;
    background-position: center;
  }

  .community-banner-content {
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    text-align: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 24px 20px;
    border-radius: 20px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }

  .community-subtitle {
    max-width: 100%;
  }
}

/* Phablets & Mobile (<= 768px) */
@media (max-width: 768px) {
  .page-content {
    padding-top: 40px;
    padding-bottom: 60px;
  }

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

  .video-cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

/* Small Mobile Devices (<= 480px) */
@media (max-width: 480px) {
  .hero-section {
    min-height: 420px;
    padding: 40px 0 50px;
  }

  .hero-badge {
    font-size: 11.5px;
    padding: 6px 16px;
  }

  .hero-title {
    font-size: 32px;
  }

  .divider-title {
    font-size: 19px;
  }

  .divider-line {
    width: 24px;
  }

  .review-card {
    padding: 20px 18px;
  }

  .community-title {
    font-size: 21px;
  }
}
