/* ===== FONTS & RESET ===== */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@300;400;500;600;700&family=Nunito:wght@400;600;700;800&display=swap');
@font-face {
  font-family: 'Lazy Dog';
  src: url('lazy_dog/lazy_dog.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --coral: #E8573E;
  --coral-dark: #D14530;
  --yellow: #F5C518;
  --yellow-light: #FFF3B0;
  --teal: #2EC4B6;
  --teal-dark: #1FA89B;
  --green: #7BC950;
  --white: #FFFFFF;
  --off-white: #FFF9F0;
  --dark: #2D2D2D;
  --purple: #9B59B6;
  --purple-dark: #8244A0;
  --gray: #666;
  --light-gray: #F5F5F5;
  --shadow: 0 4px 20px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.3s ease;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark);
  background: var(--off-white);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fredoka', sans-serif;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* ===== DECORATIVE CIRCLES (brand motif) ===== */
.deco-circle {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.12);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
}

.nav-logo .logo-level {
  color: var(--coral);
}

.nav-logo .logo-up {
  color: var(--yellow);
}

.nav-logo .logo-language {
  color: var(--teal);
}

.nav-logo img {
  height: 120px;
  width: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--white);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  margin: -20px 0 -40px;
  position: relative;
  z-index: 10;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  background: var(--yellow-light);
  color: var(--coral);
}

.nav-links a.active {
  background: var(--coral);
  color: var(--white);
}

.nav-links a.active-purple {
  background: var(--purple);
  color: var(--white);
}

.nav-links a.active-orange {
  background: #E67E22;
  color: var(--white);
}

.nav-links a.active-yellow {
  background: var(--yellow);
  color: var(--dark);
}

.nav-links a.active-green {
  background: var(--green);
  color: var(--white);
}

.nav-links a.active-blue {
  background: #5BC0EB;
  color: var(--white);
}

.nav-links .btn-signup {
  font-weight: 800;
}

.nav-links .btn-signup:hover {
  background: var(--yellow-light);
  color: var(--coral);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: var(--coral);
  border-radius: 3px;
  transition: var(--transition);
}

/* ===== HERO / SLIDER SECTION ===== */
.hero-section {
  padding-top: 80px;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 10px;
}

.swiper {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  aspect-ratio: 1024 / 480;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.swiper-slide {
  overflow: hidden;
}

.swiper-slide picture {
  width: 100%;
  height: 100%;
  display: block;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-pagination {
  bottom: 4px !important;
}

.swiper-pagination-bullet {
  background: var(--coral) !important;
  opacity: 0.4;
  width: 12px;
  height: 12px;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background: var(--coral) !important;
}

.swiper-button-next,
.swiper-button-prev {
  color: var(--white) !important;
  background: rgba(232, 87, 62, 0.7);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: var(--transition);
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--coral);
}

.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 20px !important;
  font-weight: bold;
}

/* ===== MEET THE TEACHER ===== */
.meet-teacher {
  position: relative;
  padding: 20px 24px 40px;
  background: var(--off-white);
  overflow: hidden;
}

.meet-teacher .deco-circle.c1 {
  width: 200px; height: 200px;
  background: var(--yellow);
  opacity: 0.15;
  top: -60px; right: -60px;
}

.meet-teacher .deco-circle.c2 {
  width: 150px; height: 150px;
  background: var(--teal);
  opacity: 0.12;
  bottom: -40px; left: -40px;
}

.meet-teacher-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.meet-teacher-img-wrap {
  flex-shrink: 0;
}

/* Inline Momo image — hidden on desktop, shown on mobile/tablet */
.teacher-inline-img {
  display: none;
}

@media (max-width: 1024px) {
  /* Tablet: hide cutout, show inline image floated right in text box */
  .meet-teacher-inner {
    flex-direction: column !important;
    text-align: left;
  }

  .meet-teacher-img-wrap {
    display: none !important;
  }

  .teacher-inline-img {
    display: block !important;
    float: right;
    width: 234px;
    height: 286px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 60px 15px 60px 15px;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--white), var(--white)), linear-gradient(135deg, #FFB3BA, #BAFFC9, #BAE1FF, #FFFFBA, #E8BAFF);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin: 40px 0 16px 24px;
    shape-outside: margin-box;
  }

  .meet-teacher-text {
    max-width: 100%;
    padding: 24px 28px;
  }
}

.teacher-cutout {
  width: 420px;
  height: 480px;
  position: relative;
  border-radius: 100px 30px 100px 30px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Decorative pastel border */
.teacher-cutout::before {
  content: '';
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  border-radius: 105px 35px 105px 35px;
  background: linear-gradient(135deg, #FFB3BA, #BAFFC9, #BAE1FF, #FFFFBA, #E8BAFF);
  z-index: -1;
}

.teacher-cutout::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.25), transparent);
  z-index: 1;
  border-radius: 0 0 60px 20px;
  pointer-events: none;
}

.teacher-cutout img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 10%;
}

.meet-teacher-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
  background: var(--white);
  padding: 30px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.section-title {
  font-size: 2.5rem;
  color: var(--coral);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 60px;
  height: 4px;
  background: var(--yellow);
  border-radius: 4px;
}

.meet-teacher-text p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.9;
}

.teacher-name {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.5rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 16px;
}

/* ===== SIGN YOUR CHILD UP ===== */
.signup-section {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--yellow-light) 0%, #FFF 100%);
  overflow: hidden;
}

.signup-section .deco-circle.c1 {
  width: 300px; height: 300px;
  border: 30px solid var(--teal);
  opacity: 0.08;
  top: -100px; left: -100px;
}

.signup-section .deco-circle.c2 {
  width: 250px; height: 250px;
  border: 25px solid var(--coral);
  opacity: 0.08;
  bottom: -80px; right: -80px;
}

.signup-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.signup-inner .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.signup-subtitle {
  font-size: 1.15rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.signup-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
}

.signup-btn-primary {
  font-size: 1.3rem;
  padding: 20px 48px;
  box-shadow: 0 6px 24px rgba(232, 87, 62, 0.35);
}

.signup-btn-primary:hover {
  box-shadow: 0 8px 32px rgba(232, 87, 62, 0.5);
}

.signup-buttons-secondary {
  margin-top: -8px;
  margin-bottom: 24px;
}

.signup-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 20px 36px;
  border-radius: 60px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.signup-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.signup-btn:hover::before {
  left: 100%;
}

.signup-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.signup-btn.coral { background: var(--coral); }
.signup-btn.teal { background: var(--teal); }
.signup-btn.yellow { background: var(--yellow); color: var(--dark); }

.signup-btn i {
  font-size: 1.4rem;
}

/* ===== REGISTER INTEREST FORM ===== */
.register-interest-wrapper {
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
}

.register-form-container {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, padding 0.4s ease;
  opacity: 0;
  padding: 0 20px;
}

.register-form-container.open {
  max-height: 1000px;
  opacity: 1;
  padding: 30px 20px;
}

.register-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--yellow);
  text-align: left;
}

.register-form h3 {
  font-size: 1.5rem;
  color: var(--coral);
  margin-bottom: 24px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--dark);
  font-size: 0.95rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--off-white);
}

.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--off-white);
  resize: vertical;
  min-height: 100px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.form-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--coral);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.form-submit-btn:hover {
  background: var(--coral-dark);
  transform: scale(1.02);
}

.form-success {
  display: none;
  text-align: center;
  padding: 30px;
}

.form-success i {
  font-size: 3rem;
  color: var(--green);
  margin-bottom: 12px;
}

.form-success h3 {
  color: var(--teal);
}

/* ===== NEWSFEED SECTION ===== */
.newsfeed-section {
  position: relative;
  padding: 80px 24px;
  background: var(--white);
  overflow: hidden;
}

.newsfeed-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.newsfeed-title-short {
  display: none;
}

.newsfeed-inner .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.newsfeed-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

/* Newsfeed Swiper container */
.newsfeed-swiper-container {
  max-width: 1100px;
  margin: 0 auto;
}

/* ===== TV FRAME ===== */
.tv-frame {
  position: relative;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.15 0.02' numOctaves='4' seed='3'/%3E%3CfeColorMatrix values='0 0 0 0 0.22 0 0 0 0 0.13 0 0 0 0 0.08 0 0 0 0.3 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(
      170deg,
      #5a3825 0%,
      #4a2c1a 8%,
      #3d2517 20%,
      #2a1a10 50%,
      #3d2517 80%,
      #4a2c1a 92%,
      #5a3825 100%
    );
  background-blend-mode: overlay;
  border-radius: 24px;
  padding: 28px 72px 16px 28px;
  margin-top: 50px;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 2px 4px rgba(0, 0, 0, 0.3),
    inset 0 2px 1px rgba(255, 255, 255, 0.12),
    inset 0 -2px 1px rgba(0, 0, 0, 0.4),
    inset 3px 0 2px rgba(255, 255, 255, 0.06),
    inset -3px 0 2px rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.3);
}

/* Power LED */
.tv-frame::before {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 28px;
  width: 10px;
  height: 10px;
  background: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71, 0 0 16px rgba(46, 204, 113, 0.4);
  animation: tv-led-pulse 3s ease-in-out infinite;
  z-index: 2;
}

@keyframes tv-led-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px #2ecc71, 0 0 16px rgba(46, 204, 113, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 4px #2ecc71; }
}

.tv-frame.tv-off::before {
  background: #e74c3c;
  box-shadow: 0 0 6px #e74c3c;
  animation: none;
}

/* Antenna */
.tv-antenna {
  position: absolute;
  top: -48px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 50px;
  z-index: 1;
}

.tv-antenna-left,
.tv-antenna-right {
  position: absolute;
  bottom: 0;
  width: 4px;
  height: 48px;
  background: linear-gradient(to top, #555, #888);
  border-radius: 2px;
}

.tv-antenna-left {
  left: 20px;
  transform: rotate(-20deg);
  transform-origin: bottom center;
}

.tv-antenna-right {
  right: 20px;
  transform: rotate(20deg);
  transform-origin: bottom center;
}

.tv-antenna-left::after,
.tv-antenna-right::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: radial-gradient(circle, #aaa, #666);
  border-radius: 50%;
}

.tv-antenna-base {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 10px;
  background: linear-gradient(to bottom, #4a2c1a, #2a1a10);
  border-radius: 4px 4px 0 0;
}

/* TV side panel */
.tv-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 0;
  z-index: 2;
}

.tv-panel-divider {
  width: 36px;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 4px 0;
}

.tv-knob {
  width: 24px;
  height: 24px;
  background: radial-gradient(circle at 35% 35%, #777, #333);
  border-radius: 50%;
  border: 2px solid #222;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.4);
}

.tv-knob-sm {
  width: 18px;
  height: 18px;
}

/* Power button */
.tv-power-btn {
  width: 32px;
  height: 32px;
  background: radial-gradient(circle at 35% 35%, #777, #333);
  border-radius: 50%;
  border: 2px solid #222;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.4);
  color: #e74c3c;
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tv-power-btn.tv-on {
  color: #2ecc71;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.15), 0 2px 4px rgba(0,0,0,0.4), 0 0 8px rgba(46, 204, 113, 0.3);
}

.tv-power-btn:active {
  transform: scale(0.9);
}

/* Channel display */
.tv-channel-display {
  width: 32px;
  height: 22px;
  background: #111;
  border: 1px solid #333;
  border-radius: 3px;
  color: #2ecc71;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 4px rgba(0,0,0,0.6);
  text-shadow: 0 0 6px rgba(46, 204, 113, 0.5);
}

/* Channel nav buttons */
.tv-nav-btn {
  width: 36px;
  height: 36px;
  background: radial-gradient(circle at 40% 40%, #555, #222);
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 2px 3px rgba(0,0,0,0.4);
}

.tv-nav-btn:hover {
  background: radial-gradient(circle at 40% 40%, #666, #333);
  color: rgba(255, 255, 255, 0.8);
}

.tv-nav-btn:active {
  transform: scale(0.92);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.5);
}

/* CRT turn-off: animate the content layer, screen stays */
.tv-screen.crt-off .newsfeed-swiper,
.tv-screen.crt-off .newsfeed-state {
  animation: crt-content-off 0.5s ease-in forwards;
  position: relative;
  z-index: 20;
}

.tv-screen.crt-off .tv-scanlines {
  opacity: 0;
  transition: opacity 0.1s ease 0.5s;
}

/* Hide overlays during turn-off so animation is visible */
.tv-screen.crt-off::before,
.tv-screen.crt-off::after {
  opacity: 0;
  transition: opacity 0.1s ease 0.5s;
}

/* Glossy blank screen after animation completes */
.tv-screen.crt-done::before {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
  background:
    radial-gradient(
      ellipse 60% 50% at 40% 40%,
      rgba(255, 255, 255, 0.06) 0%,
      transparent 70%
    ),
    radial-gradient(
      ellipse 80% 70% at 50% 50%,
      rgba(30, 30, 30, 1) 55%,
      rgba(10, 10, 10, 1) 100%
    ) !important;
}

.tv-screen.crt-done::after {
  opacity: 1 !important;
  transition: opacity 0.3s ease;
}

.tv-screen.crt-on .newsfeed-swiper,
.tv-screen.crt-on .newsfeed-state {
  animation: crt-content-on 0.5s ease-out forwards;
  position: relative;
  z-index: 20;
}

.tv-screen.crt-on .tv-scanlines {
  opacity: 1;
  transition: opacity 0.2s ease 0.4s;
}

.tv-screen.crt-on::before,
.tv-screen.crt-on::after {
  opacity: 1;
  transition: opacity 0.1s ease;
}

@keyframes crt-content-off {
  0% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
  40% { transform: scale(1.1, 0.01); filter: brightness(3); opacity: 1; }
  70% { transform: scale(0.1, 0.01); filter: brightness(3); opacity: 0.8; }
  100% { transform: scale(0, 0); filter: brightness(0); opacity: 0; }
}

@keyframes crt-content-on {
  0% { transform: scale(0, 0); filter: brightness(0); opacity: 0; }
  30% { transform: scale(0.1, 0.01); filter: brightness(3); opacity: 0.8; }
  60% { transform: scale(1.1, 0.01); filter: brightness(2); opacity: 1; }
  80% { transform: scale(1.0, 0.8); filter: brightness(1.5); }
  100% { transform: scale(1, 1); filter: brightness(1); opacity: 1; }
}

/* Speaker grille */
.tv-speaker {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}

.tv-speaker span {
  display: block;
  width: 28px;
  height: 2px;
  background: #222;
  border-radius: 1px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* CRT scanlines + RGB sub-pixels */
.tv-scanlines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.06) 50%
    ),
    linear-gradient(
      90deg,
      rgba(255, 0, 0, 0.02),
      rgba(0, 255, 0, 0.01),
      rgba(0, 0, 255, 0.02)
    );
  background-size: 100% 3px, 4px 100%;
  pointer-events: none;
  z-index: 8;
  border-radius: 20px;
}

/* Subtle screen flicker */
.tv-scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 16, 16, 0.1);
  border-radius: 20px;
  pointer-events: none;
  animation: tv-flicker 0.15s infinite;
  opacity: 0;
}

@keyframes tv-flicker {
  0% { opacity: 0.02; }
  5% { opacity: 0.03; }
  10% { opacity: 0.01; }
  15% { opacity: 0.04; }
  20% { opacity: 0.01; }
  25% { opacity: 0.03; }
  50% { opacity: 0.04; }
  55% { opacity: 0.01; }
  70% { opacity: 0.03; }
  80% { opacity: 0.02; }
  90% { opacity: 0.04; }
  100% { opacity: 0.02; }
}

.tv-frame::after {
  content: 'LEVEL UP TV';
  position: absolute;
  bottom: 52px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Fredoka', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.tv-screen {
  position: relative;
  background: #111;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 1024 / 528;
  box-shadow:
    inset 0 0 40px rgba(0, 0, 0, 0.6),
    inset 0 0 80px rgba(0, 0, 0, 0.3),
    0 0 1px rgba(255, 255, 255, 0.1);
  /* CRT convex bulge effect */
  border: 3px solid #333;
}

/* Force swiper and slides to fill the fixed TV screen */
.newsfeed-swiper,
.newsfeed-swiper .swiper-wrapper,
.newsfeed-swiper .swiper-slide {
  height: 100% !important;
}

/* Convex glass overlay — CRT bulge + glare */
.tv-screen::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: radial-gradient(
    ellipse 80% 70% at 50% 50%,
    transparent 55%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
  z-index: 6;
}

/* Screen glare — glass reflection */
.tv-screen::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background:
    /* Main glare — bright spot upper-left */
    radial-gradient(
      ellipse 40% 30% at 25% 20%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 70%
    ),
    /* Secondary glare — softer lower-right */
    radial-gradient(
      ellipse 30% 25% at 75% 80%,
      rgba(255, 255, 255, 0.04) 0%,
      transparent 70%
    ),
    /* Edge-to-edge glass sheen */
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 30%,
      transparent 70%,
      rgba(255, 255, 255, 0.03) 100%
    ),
    /* Vignette — darkened edges like curved glass */
    radial-gradient(
      ellipse 90% 80% at 50% 50%,
      transparent 50%,
      rgba(0, 0, 0, 0.2) 100%
    );
  pointer-events: none;
  z-index: 7;
}

.tv-stand {
  width: 60px;
  height: 18px;
  background: linear-gradient(180deg, #3d2517, #2a1a10);
  margin: 0 auto;
  border-radius: 0 0 4px 4px;
}

.tv-base {
  width: 120px;
  height: 6px;
  background: linear-gradient(180deg, #4a2c1a, #2a1a10);
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Swiper inside TV screen */
.newsfeed-swiper {
  position: relative;
}

.newsfeed-swiper .swiper-slide {
  height: auto;
  display: flex;
  align-items: stretch;
}

/* Swiper nav buttons are now on the TV panel — hide default swiper arrows */
.newsfeed-button-next::after,
.newsfeed-button-prev::after {
  display: none;
}

/* News card — base */
.news-card {
  background: var(--white);
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.news-card h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--coral);
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  letter-spacing: 0.3px;
}

.news-card p {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.7;
}

/* Text wrapper — used in all cards with text */
.news-card-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* === TEXT ONLY — centred, auto-sized === */
.news-card--text-only {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 48px 56px;
}

.news-card--text-only h3 {
  border-bottom: 3px solid var(--purple);
  padding-bottom: 12px;
}

.news-card--text-only .news-card-text {
  width: 100%;
  align-items: center;
}

/* === 1 IMAGE + TEXT — side by side, image left === */
.news-card--1img {
  display: grid;
  grid-template-columns: 70% 1fr;
  padding: 0;
}

.news-card--1img .news-card-gallery-grid {
  height: 100%;
}


.news-card--1img .news-card-text {
  padding: 28px 32px;
  justify-content: center;
}

/* === 2 IMAGES + TEXT — stacked images left, text right === */
.news-card--2img {
  display: grid;
  grid-template-columns: 42% 1fr;
  padding: 0;
}

.news-card--2img .news-card-gallery-grid.grid-2 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  height: 100%;
}


.news-card--2img .news-card-text {
  padding: 28px 32px;
  justify-content: center;
}

/* === 3–4 IMAGES + TEXT — grid left, text right (25%) === */
.news-card--multi-img {
  display: grid;
  grid-template-columns: 1fr 25%;
  padding: 0;
}

.news-card--multi-img .news-card-text {
  padding: 24px 20px;
  justify-content: center;
}

.news-card--multi-img .news-card-gallery-grid {
  height: 100%;
}

/* === 3 IMAGES + TEXT — text top, 3-column grid bottom === */
.news-card--3img {
  display: grid;
  grid-template-rows: auto 1fr;
  padding: 0;
}

.news-card--3img .news-card-text {
  padding: 20px 28px 8px;
}

.news-card--3img .news-card-gallery-grid.grid-3 {
  height: 100%;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr;
}

.news-card--3img .news-card-gallery-grid.grid-3 img:first-child {
  grid-column: auto;
}

.news-card--multi-img .news-card-gallery-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

/* === 5–10 IMAGES + TEXT — grid left, text right (25%) === */
.news-card--gallery {
  display: grid;
  grid-template-columns: 1fr 25%;
  padding: 0;
}

.news-card--gallery .news-card-text {
  padding: 20px 18px;
  justify-content: center;
}

.news-card--gallery .news-card-text h3 {
  font-size: 1.1rem;
}

.news-card--gallery .news-card-text p {
  font-size: 0.85rem;
  line-height: 1.5;
}

.news-card--gallery .news-card-gallery-grid {
  height: 100%;
  justify-items: center;
}


/* Center orphan images in last row */
.news-card-gallery-grid.grid-many {
  justify-content: center;
}

/* === IMAGES ONLY — full bleed, stretch to fill === */
.news-card--images-only {
  padding: 0;
}

.news-card--images-only .news-card-gallery-grid {
  height: 100%;
}


.news-card--images-only .grid-3 {
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.news-card--images-only .grid-3 img:first-child {
  grid-column: 1;
  grid-row: 1 / -1;
}

/* === Gallery grid — shared base === */
.news-card-gallery-grid {
  display: grid;
  gap: 3px;
  width: 100%;
  overflow: hidden;
}

.news-card-gallery-grid.grid-1 {
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
}

.news-card-gallery-grid.grid-2 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr;
}

.news-card-gallery-grid.grid-3 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.news-card-gallery-grid.grid-3 img:first-child {
  grid-column: 1 / -1;
}

.news-card-gallery-grid.grid-4 {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.news-card-gallery-grid.grid-many {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
}

.news-card-gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.news-card-gallery-grid img:hover {
  transform: scale(1.03);
}

/* Loading & empty states */
.newsfeed-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: var(--gray);
  gap: 16px;
}

.newsfeed-state i {
  font-size: 2.5rem;
  color: var(--teal);
  opacity: 0.5;
}

.newsfeed-state p {
  font-size: 1.1rem;
  font-family: 'Fredoka', sans-serif;
}

.newsfeed-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--teal);
  border-top-color: transparent;
  border-radius: 50%;
  animation: newsfeed-spin 0.8s linear infinite;
}

@keyframes newsfeed-spin {
  to { transform: rotate(360deg); }
}

/* Image Lightbox */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.image-lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  cursor: default;
}

.image-lightbox.open .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Text Lightbox */
.text-lightbox-content {
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px 56px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  transform: scale(0.8);
  transition: transform 0.3s ease;
  cursor: default;
  text-align: center;
  width: 700px;
}

.image-lightbox.open .text-lightbox-content {
  transform: scale(1);
}

.text-lightbox-content h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 2.2rem;
  color: var(--coral);
  line-height: 1.3;
  border-bottom: 3px solid var(--purple);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.text-lightbox-content p {
  font-size: 1.3rem;
  color: var(--gray);
  line-height: 1.7;
}

@media (max-width: 768px) {
  .text-lightbox-content {
    width: 95vw;
    padding: 32px 28px;
  }
  .text-lightbox-content h3 { font-size: 1.6rem; }
  .text-lightbox-content p { font-size: 1.05rem; }
}

/* Booking Modal */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.booking-modal.open {
  opacity: 1;
  visibility: visible;
}

.booking-modal-content {
  position: relative;
  width: 90vw;
  max-width: 800px;
  height: 85vh;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.booking-modal.open .booking-modal-content {
  transform: scale(1);
}

.booking-modal-content iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.booking-modal-toolbar {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  display: flex;
  gap: 6px;
}

.booking-modal-close,
.booking-modal-newtab {
  background: var(--coral);
  border: none;
  color: white;
  font-size: 0.85rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  text-decoration: none;
}

.booking-modal-close:hover {
  background: var(--coral-dark);
}

.booking-modal-newtab {
  background: var(--teal);
  font-size: 0.75rem;
}

.booking-modal-newtab:hover {
  background: var(--teal-dark);
}

@media (max-width: 480px) {
  .booking-modal-content {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
  }
}

/* Auto-linked URLs in news cards */
.news-card p a {
  color: var(--teal);
  text-decoration: underline;
  word-break: break-all;
}

.news-card p a:hover {
  color: var(--coral);
}

/* ===== VIDEOS SECTION ===== */
.videos-section {
  position: relative;
  padding: 60px 24px;
  background: var(--white);
  overflow: hidden;
}

.videos-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.videos-inner .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.videos-subtitle {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 30px;
}

/* Admin login overlay */
.admin-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: adminFadeIn 0.2s ease;
}

@keyframes adminFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-login-box {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 36px;
  width: 320px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  transform: scale(0.9);
  animation: adminPopIn 0.25s ease forwards;
}

@keyframes adminPopIn {
  to { transform: scale(1); }
}

.admin-login-box h3 {
  font-family: 'Fredoka', sans-serif;
  font-size: 1.3rem;
  color: var(--coral);
  margin-bottom: 20px;
}

.admin-login-box h3 i {
  margin-right: 8px;
}

.admin-login-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #ddd;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  text-align: center;
  transition: border-color 0.2s;
}

.admin-login-input:focus {
  border-color: var(--teal);
  outline: none;
}

.admin-login-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.admin-login-actions button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 10px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-login-cancel {
  background: #eee;
  color: #666;
}

.admin-login-cancel:hover {
  background: #ddd;
}

.admin-login-submit {
  background: var(--teal);
  color: var(--white);
}

.admin-login-submit:hover {
  background: var(--teal-dark);
}

.admin-login-error {
  color: var(--coral);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 12px;
  min-height: 1.2em;
}

/* Carousel animation for videos and reviews */
.carousel-fade .video-card,
.carousel-fade .review-card {
  opacity: 0;
  transform: rotateY(15deg) translateX(30px) scale(0.9);
  transition: all 0.5s ease;
}

.video-card,
.review-card {
  opacity: 1;
  transform: rotateY(0) translateX(0) scale(1);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.video-card:nth-child(1) { transition-delay: 0s; }
.video-card:nth-child(2) { transition-delay: 0.08s; }
.video-card:nth-child(3) { transition-delay: 0.16s; }
.video-card:nth-child(4) { transition-delay: 0.24s; }

.review-card:nth-child(1) { transition-delay: 0s; }
.review-card:nth-child(2) { transition-delay: 0.06s; }
.review-card:nth-child(3) { transition-delay: 0.12s; }
.review-card:nth-child(4) { transition-delay: 0.18s; }
.review-card:nth-child(5) { transition-delay: 0.24s; }
.review-card:nth-child(6) { transition-delay: 0.3s; }

.videos-grid,
.reviews-grid {
  perspective: 1000px;
}

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

.videos-carousel-wrap {
  position: relative;
  padding: 0 60px;
}

.videos-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--coral);
  color: var(--coral);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  transition: var(--transition);
  z-index: 5;
}

.videos-nav-btn:hover {
  background: var(--coral);
  color: var(--white);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 24px rgba(232, 87, 62, 0.4);
}

.videos-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.videos-nav-prev { left: 0; }
.videos-nav-next { right: 0; }

.videos-nav-btn[hidden] { display: none; }

@media (max-width: 768px) {
  .videos-carousel-wrap { padding: 0 40px; }
  .videos-nav-btn { width: 40px; height: 40px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .videos-carousel-wrap { padding: 0 32px; }
  .videos-nav-btn { width: 36px; height: 36px; font-size: 0.9rem; }
}

.video-card {
  display: block;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.video-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

.video-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  background: rgba(232, 87, 62, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.4rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(232, 87, 62, 0.4);
}

.play-btn i {
  margin-left: 3px;
}

.video-card:hover .play-btn {
  background: var(--coral);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 30px rgba(232, 87, 62, 0.6);
}

/* ==========================================================
   NEWSFEED RESPONSIVE — single unified block per breakpoint
   ========================================================== */

/* --- TABLET (768px and below) --- */
@media (max-width: 768px) {
  .newsfeed-inner .section-title { font-size: 1.8rem; }
  .newsfeed-section { padding: 50px 20px; }

  /* TV hardware */
  .tv-screen { aspect-ratio: 1024 / 528; }
  .tv-frame { padding: 20px 50px 14px 18px; border-radius: 18px; margin-top: 40px; }
  .tv-panel { width: 50px; gap: 8px; }

  /* Cards — slightly smaller text, keep all layouts intact */
  .news-card { padding: 16px 20px; }
  .news-card h3 { font-size: 1rem; }
  .news-card p { font-size: 0.9rem; line-height: 1.5; }
  .news-card--text-only { padding: 24px 28px; }
  .news-card--1img { grid-template-columns: 60% 1fr; }
  .news-card--3img .news-card-text { padding: 12px 20px 6px; }
  .news-card-gallery-grid.grid-many { grid-template-columns: 1fr 1fr; }
}

/* --- MOBILE (480px and below) --- */
@media (max-width: 480px) {
  /* Title swap */
  .newsfeed-title-full { display: none; }
  .newsfeed-title-short { display: inline; }
  .newsfeed-section { padding: 40px 12px; }
  .newsfeed-state { padding: 40px 16px; }

  /* TV hardware — compact */
  .tv-screen { aspect-ratio: 4 / 3; border-radius: 14px; }
  .tv-screen::before, .tv-screen::after { border-radius: 14px; }
  .tv-frame { padding: 18px 48px 12px 14px; border-radius: 14px; }
  .tv-frame::before { bottom: 24px; right: 18px; width: 7px; height: 7px; }
  .tv-frame::after { font-size: 0.55rem; bottom: 44px; }
  .tv-stand { width: 40px; height: 14px; }
  .tv-base { width: 80px; height: 5px; }
  .tv-antenna { top: -36px; width: 80px; }
  .tv-antenna-left, .tv-antenna-right { height: 36px; }
  .tv-panel { width: 44px; gap: 6px; }
  .tv-knob { width: 16px; height: 16px; }
  .tv-knob-sm { width: 12px; height: 12px; }
  .tv-power-btn { width: 24px; height: 24px; font-size: 0.55rem; }
  .tv-nav-btn { width: 28px; height: 28px; font-size: 0.55rem; }
  .tv-channel-display { width: 26px; height: 18px; font-size: 0.7rem; }
  .tv-speaker span { width: 20px; }

  /* Logo */
  .nav-logo img { height: 80px; width: 80px; margin: -10px 0 -30px; }

  /* Cards — JS handles text-only sizing via fitTextToCards().
     On mobile, mixed cards are split by JS into separate text + image slides.
     So we only need: text-only cards (compact padding) and image-only cards. */
  .news-card--text-only { padding: 10px 12px; }

  /* Image-only slides (from JS split): white bg, image centred, contain fit */
  .news-card--images-only {
    background: var(--white);
  }
  .news-card--images-only .news-card-gallery-grid img {
    object-fit: contain;
  }

  /* Momo cutout not used on mobile */
  .teacher-cutout { width: 250px; height: 280px; }
}

@media (max-width: 768px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .play-btn {
    width: 44px;
    height: 44px;
    font-size: 1rem;
  }

  .videos-section {
    padding: 40px 12px;
  }
}

/* ===== REVIEWS SECTION ===== */
.reviews-section {
  position: relative;
  padding: 80px 24px;
  background: linear-gradient(135deg, #FFF 0%, var(--yellow-light) 100%);
  overflow: hidden;
}

.reviews-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.reviews-inner .section-title {
  text-align: center;
  display: block;
}

.reviews-inner .section-title::after {
  left: 50%;
  transform: translateX(-50%);
}

.reviews-subtitle {
  text-align: center;
  color: var(--gray);
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-top: 4px solid var(--teal);
  position: relative;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-stars {
  color: var(--yellow);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.review-text {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-weight: 800;
  color: var(--dark);
  font-size: 0.9rem;
}

.review-date {
  color: #aaa;
  font-size: 0.8rem;
  margin-top: 4px;
}

/* Leave a review */
.leave-review-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 3px dashed var(--teal);
  max-width: 600px;
  margin: 0 auto;
}

.leave-review-box h3 {
  color: var(--teal);
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.4rem;
}

.star-rating {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 20px;
}

.star-rating i {
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: var(--transition);
}

.star-rating i.active,
.star-rating i:hover {
  color: var(--yellow);
  transform: scale(1.15);
}

.leave-review-box textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  resize: vertical;
  min-height: 100px;
  transition: var(--transition);
  margin-bottom: 16px;
  background: var(--off-white);
}

.leave-review-box textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.leave-review-box input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #E0E0E0;
  border-radius: var(--radius-sm);
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  margin-bottom: 20px;
  transition: var(--transition);
  background: var(--off-white);
}

.leave-review-box input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(46, 196, 182, 0.15);
}

.review-submit-btn {
  width: 100%;
  padding: 14px;
  background: var(--teal);
  color: var(--white);
  border: none;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.review-submit-btn:hover {
  background: var(--teal-dark);
  transform: scale(1.02);
}

/* ===== FOOTER / CONTACT ===== */
.footer {
  background: var(--coral);
  color: var(--white);
  padding: 60px 24px 30px;
  position: relative;
  overflow: hidden;
}

.footer .deco-circle.c1 {
  width: 200px; height: 200px;
  background: rgba(255,255,255,0.06);
  top: -80px; right: 10%;
}

.footer .deco-circle.c2 {
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  bottom: -40px; left: 5%;
}

.footer-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.footer-tagline {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 30px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.15);
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 700;
  transition: var(--transition);
  font-size: 0.95rem;
}

.contact-link:hover {
  background: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.contact-link i {
  font-size: 1.3rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 30px;
}

.social-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: var(--transition);
}

.social-icon:hover {
  background: var(--white);
  color: var(--coral);
  transform: translateY(-3px) scale(1.1);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding-top: 20px;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* ===== VIDEO MODAL ===== */
.video-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  cursor: pointer;
}

.video-modal.open {
  opacity: 1;
  visibility: visible;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  transform: scale(0.85);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-modal.open .video-modal-content {
  transform: scale(1);
}

.video-modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.video-modal-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.video-modal-close {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.video-modal-close:hover {
  background: var(--coral);
  transform: scale(1.1);
}

/* ===== COPY EMAIL TOAST ===== */
.copy-toast {
  position: fixed;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 50px;
  font-family: 'Fredoka', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 8px 30px rgba(46, 196, 182, 0.4);
  z-index: 9999;
  transition: bottom 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}

.copy-toast i {
  font-size: 1.3rem;
}

.copy-toast.show {
  bottom: 40px;
}

/* ===== SCROLL ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Tablet nav — smaller buttons to avoid overlapping logo */
@media (max-width: 1024px) {
  .nav-links {
    gap: 4px;
  }

  .nav-links a {
    padding: 6px 8px;
    font-size: 0.75rem;
  }

  .nav-logo img {
    height: 90px;
    width: 90px;
    margin: -15px 0 -30px;
  }

  .nav-logo span {
    font-size: 1.1rem;
  }
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--white);
    flex-direction: column;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    gap: 8px;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
    text-align: center;
    border-radius: var(--radius-sm);
    background: var(--off-white);
    border: 2px solid transparent;
    transition: var(--transition);
  }

  .nav-links a:hover {
    background: var(--coral) !important;
    color: var(--white) !important;
  }

  .nav-links a.active { background: var(--coral) !important; color: var(--white) !important; }
  .nav-links a.active-purple { background: var(--purple) !important; color: var(--white) !important; }
  .nav-links a.active-yellow { background: var(--yellow) !important; color: var(--dark) !important; }
  .nav-links a.active-orange { background: #E67E22 !important; color: var(--white) !important; }
  .nav-links a.active-green { background: var(--green) !important; color: var(--white) !important; }
  .nav-links a.active-blue { background: #5BC0EB !important; color: var(--white) !important; }



  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .section-title {
    font-size: 2rem;
  }

  .meet-teacher-inner {
    flex-direction: column !important;
    text-align: center;
  }

  .meet-teacher-img-wrap {
    display: none !important;
  }

  .teacher-inline-img {
    display: block !important;
    width: 160px;
    height: 160px;
    object-fit: cover;
    object-position: center 10%;
    border-radius: 50%;
    border: 4px solid var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    margin: 0 auto 16px;
  }

  .meet-teacher-text {
    max-width: 100% !important;
    padding: 24px 20px !important;
  }

  .section-title::after {
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .signup-buttons {
    flex-direction: column;
    align-items: center;
  }

  .signup-btn {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .register-form {
    padding: 24px;
  }

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

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .swiper {
    aspect-ratio: 1024 / 420;
  }

  .hero-section {
    padding-top: 75px;
    padding-bottom: 8px;
  }

  .meet-teacher {
    padding: 15px 16px 30px;
  }

  .meet-teacher-text {
    padding: 24px 28px;
  }

  .meet-teacher-text p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .section-title {
    font-size: 1.6rem;
  }

  .teacher-name {
    font-size: 1.2rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 36px;
    height: 36px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 16px !important;
  }

  .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.6rem;
  }

  .nav-logo span {
    font-size: 1rem;
  }

  .signup-btn {
    padding: 16px 24px;
    font-size: 1rem;
  }

  .leave-review-box {
    padding: 24px;
  }

  .swiper {
    aspect-ratio: 720 / 420;
  }

  .hero-section {
    padding-top: 70px;
    padding-bottom: 5px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .meet-teacher {
    padding: 10px 12px 24px;
  }

  .meet-teacher-inner {
    gap: 12px;
  }

  .meet-teacher-text {
    padding: 18px 20px;
  }

  .deco-circle {
    display: none;
  }

  .register-form {
    padding: 20px 16px;
  }

  .register-form h3 {
    font-size: 1.1rem;
  }

  .register-interest-wrapper {
    margin: 0 -8px;
  }

  .register-form-container.open {
    padding: 20px 4px;
  }

  .meet-teacher-text p {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 10px;
  }

  .meet-teacher-text .section-title {
    font-size: 1.5rem;
  }

  .teacher-name {
    font-size: 1.1rem;
  }

  .swiper-button-next,
  .swiper-button-prev {
    width: 30px;
    height: 30px;
  }

  .swiper-button-next::after,
  .swiper-button-prev::after {
    font-size: 14px !important;
  }

  .swiper-pagination {
    bottom: 2px !important;
  }

  .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    margin: 0 2px !important;
  }
}
