/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #fefdf7;
  color: #1e293b;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   NAVBAR STYLES
   ============================================ */
.navbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 44px;
  width: auto;
}

.logo-container h1 {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #facc15, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-btn {
  background: transparent;
  border: 1.5px solid #cbd5e1;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.login-btn:hover {
  background: #f1f5f9;
}

.navbar-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  background: white;
  border-bottom: 1px solid #eef2ff;
  flex-wrap: wrap;
}

.nav-links ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #2563eb;
}

.nav-links a.active-nav {
  color: #2563eb;
  border-bottom: 2px solid #facc15;
  padding-bottom: 6px;
}

.navbar-btn {
  display: flex;
  gap: 1rem;
}

.join-btn,
.learn-btn {
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.join-btn {
  background: #2563eb;
  border: none;
  color: white;
}

.join-btn:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
}

.learn-btn {
  background: transparent;
  border: 1.5px solid #2563eb;
  color: #2563eb;
}

.learn-btn:hover {
  background: #eff6ff;
  transform: translateY(-2px);
}

/* ============================================
   HERO SECTION (HOME PAGE STYLE - USED FOR ALL PAGES)
   ============================================ */
.hero-section {
  position: relative;
  padding: 3rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fef9e6 0%, #ffffff 100%);
}

.page-hero {
  position: relative;
  padding: 3rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fef9e6 0%, #ffffff 100%);
}

.hero-blob {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-radius: 60% 40% 50% 50%;
  filter: blur(60px);
  z-index: 0;
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(250, 204, 21, 0.2);
  animation: float 6s ease-in-out infinite;
}

.circle-1 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  left: 5%;
  background: rgba(37, 99, 235, 0.1);
  animation-delay: 0s;
}

.circle-2 {
  width: 60px;
  height: 60px;
  top: 20%;
  left: 20%;
  background: rgba(250, 204, 21, 0.2);
  animation-delay: 2s;
}

.circle-3 {
  width: 140px;
  height: 140px;
  bottom: 20%;
  right: 15%;
  background: rgba(37, 99, 235, 0.08);
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1.2rem;
}

.highlight {
  background: linear-gradient(135deg, #facc15, #f59e0b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  font-size: 1.2rem;
  color: #475569;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-start {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.2s;
}

.hero-start:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

.hero-demo {
  background: transparent;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.hero-demo:hover {
  background: #eff6ff;
}

.hero-image {
  flex: 1;
  text-align: center;
}

.hero-video {
  max-width: 90%;
  height: auto;
  border-radius: 28px;
  animation: bounceSoft 3s ease-in-out infinite;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

@keyframes bounceSoft {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ============================================
   CARD STYLES (UNIFIED FOR ALL PAGES)
   ============================================ */
.card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  padding-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.card-img {
  background: #fef9e6;
  padding: 2rem;
  text-align: center;
}

.card-img img {
  max-width: 100%;
  height: 140px;
  object-fit: contain;
}

.card h3 {
  padding: 1rem 1.5rem 0.5rem;
  font-size: 1.3rem;
  color: #1e293b;
}

.card p {
  padding: 0 1.5rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
}

.card-btn {
  margin: 0 1.5rem;
  background: transparent;
  border: 1.5px solid #2563eb;
  color: #2563eb;
  padding: 8px 16px;
  border-radius: 40px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  width: calc(100% - 3rem);
}

.card-btn:hover {
  background: #2563eb;
  color: white;
  transform: translateX(5px);
}

/* ============================================
   GAME CARD (UNIFIED STYLE)
   ============================================ */
.game-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.game-icon {
  background: #fef9e6;
  padding: 2rem;
  text-align: center;
  font-size: 4rem;
}

.game-info {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.game-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.game-info p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-rating {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.stars {
  color: #facc15;
  font-size: 0.9rem;
  letter-spacing: 2px;
}

.plays {
  color: #94a3b8;
  font-size: 0.8rem;
}

.category-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 1rem;
  width: fit-content;
  background: #eef2ff;
  color: #2563eb;
}

.play-game-btn {
  background: #2563eb;
  border: none;
  padding: 0.75rem;
  border-radius: 40px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-top: auto;
}

.play-game-btn:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

/* ============================================
   STORY CARD (UNIFIED STYLE)
   ============================================ */
.story-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.story-image {
  background: #fef9e6;
  padding: 2rem;
  text-align: center;
  font-size: 4rem;
  position: relative;
}

.story-age-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: white;
  background: #2563eb;
}

.story-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.story-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.story-content p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.story-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.story-length {
  background: #f1f5f9;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  color: #475569;
}

.story-concept {
  color: #2563eb;
  font-weight: 600;
}

.read-btn {
  background: #2563eb;
  border: none;
  padding: 0.75rem;
  border-radius: 40px;
  font-weight: 700;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  margin-top: auto;
}

.read-btn:hover {
  background: #1d4ed8;
  transform: scale(1.02);
}

/* ============================================
   VIDEO CARD (UNIFIED STYLE)
   ============================================ */
.video-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  background: #1e293b;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-info {
  padding: 1.5rem;
}

.video-info h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.video-info p {
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.video-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.video-duration {
  font-size: 0.8rem;
  color: #94a3b8;
}

.video-duration i {
  margin-right: 0.25rem;
}

.video-level {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  text-transform: uppercase;
  background: #eef2ff;
  color: #2563eb;
}

/* ============================================
   INTRO SECTION
   ============================================ */
.intro-wrapper {
  padding: 3rem 2rem;
  background: white;
}

.intro-card {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  background: #f8fafc;
  padding: 2.5rem;
  border-radius: 48px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.intro-badge {
  display: inline-block;
  background: #eef2ff;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
}

.intro-card h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.intro-card p {
  color: #475569;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.intro-stats div {
  display: flex;
  flex-direction: column;
}

.intro-stats strong {
  font-size: 1.8rem;
  color: #2563eb;
}

.intro-stats span {
  font-size: 0.9rem;
  color: #64748b;
}

/* ============================================
   SECTION DIVIDER
   ============================================ */
.section-divider {
  width: 100%;
  line-height: 0;
}

.section-divider svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ============================================
   CARDS SECTION (GRID LAYOUT)
   ============================================ */
.cards-section {
  padding: 3rem 2rem;
  background: white;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: #596b83;
}

.cards-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.games-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.stories-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.videos-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

/* ============================================
   EARTH DAY SECTION
   ============================================ */
.earth-day-section {
  width: 100%;
  overflow-x: hidden;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  position: relative;
}

.earth-day-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.earth-day-wrapper {
  display: flex;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 60px;
  padding: 3rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.earth-day-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 60px -12px rgba(0, 0, 0, 0.3);
}

.earth-day-content {
  flex: 1;
  min-width: 280px;
}

.earth-day-badge {
  display: inline-block;
  background: linear-gradient(135deg, #4caf50, #2e7d32);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.earth-day-content h2 {
  font-size: clamp(24px, 5vw, 42px);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1e293b;
}

.earth-highlight {
  background: linear-gradient(135deg, #2e7d32, #4caf50, #81c784);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.earth-day-content p {
  font-size: clamp(14px, 4vw, 16px);
  color: #2c3e2f;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.earth-day-btn {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.earth-day-btn:hover {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  transform: translateX(8px);
  box-shadow: 0 12px 28px rgba(46, 125, 50, 0.4);
}

.earth-day-btn::after {
  content: '→';
  transition: transform 0.3s ease;
  font-size: 1.2rem;
}

.earth-day-btn:hover::after {
  transform: translateX(6px);
}

.lottie-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-width: 280px;
}

.lottie-wrapper {
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.lottie-wrapper:hover {
  transform: scale(1.02);
}

.lottie-wrapper dotlottie-wc {
  border-radius: 50%;
  display: block;
  background: white;
  width: 280px;
  height: 280px;
}

.floating-leaves {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.leaf {
  position: absolute;
  font-size: 1.8rem;
  animation: floatLeaf 5s ease-in-out infinite;
  opacity: 0.7;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.leaf:nth-child(1) {
  top: -20px;
  left: 5%;
  animation-delay: 0s;
  animation-duration: 4s;
}

.leaf:nth-child(2) {
  top: 15%;
  right: 2%;
  animation-delay: 0.5s;
  animation-duration: 5s;
}

.leaf:nth-child(3) {
  bottom: -15px;
  left: 10%;
  animation-delay: 1s;
  animation-duration: 4.5s;
}

.leaf:nth-child(4) {
  top: 40%;
  left: -15px;
  animation-delay: 1.5s;
  animation-duration: 5.5s;
}

.leaf:nth-child(5) {
  bottom: 10%;
  right: 3%;
  animation-delay: 2s;
  animation-duration: 4s;
}

@keyframes floatLeaf {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
  25% {
    transform: translateY(-20px) rotate(10deg);
    opacity: 0.9;
  }
  50% {
    transform: translateY(-10px) rotate(20deg);
    opacity: 0.7;
  }
  75% {
    transform: translateY(10px) rotate(10deg);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.5;
  }
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  padding: 4rem 2rem;
  background: white;
}

.features-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2rem;
  background: #f8fafc;
  border-radius: 28px;
  transition: transform 0.2s;
}

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

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}

.feature-card p {
  color: #64748b;
  line-height: 1.5;
}

/* ============================================
   TESTIMONIALS SECTION
   ============================================ */
.testimonials-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #fef9e6 0%, #ffffff 100%);
}

.testimonials-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 28px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.quote {
  font-size: 4rem;
  color: #facc15;
  font-family: serif;
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  opacity: 0.3;
}

.testimonial-card p {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  color: #334155;
  line-height: 1.6;
}

.testimonial-author strong {
  display: block;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.testimonial-author span {
  font-size: 0.85rem;
  color: #64748b;
}

/* ============================================
   VIDEO SECTION
   ============================================ */
.video-wrapper {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, #fef9e6 0%, #ffffff 100%);
}

.video-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.video-text h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.video-text p {
  color: #64748b;
  margin-bottom: 2rem;
}

.video-responsive {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 28px;
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.video-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 28px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #0f172a;
  color: #e2e8f0;
  padding: 3rem 2rem 2rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.footer-logo-img {
  height: 40px;
  width: auto;
}

.footer-logo span {
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, #facc15, #3b82f6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #facc15;
}

.copyright {
  color: #94a3b8;
  font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 968px) {
  .earth-day-wrapper {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    gap: 2rem;
  }
  
  .earth-day-content {
    text-align: center;
  }
  
  .earth-day-content h2 {
    font-size: 2rem;
  }
  
  .lottie-wrapper dotlottie-wc {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .navbar-top {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .navbar-bottom {
    flex-direction: column;
    gap: 1rem;
  }
  
  .nav-links ul {
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-text p {
    font-size: 1rem;
  }
  
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-video {
    max-width: 85%;
  }
  
  .intro-card {
    padding: 1.5rem;
  }
  
  .intro-card h2 {
    font-size: 1.5rem;
  }
  
  .intro-stats {
    gap: 1.5rem;
  }
  
  .intro-stats strong {
    font-size: 1.3rem;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .cards-grid, .games-grid, .stories-grid, .videos-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .video-text h2 {
    font-size: 1.5rem;
  }
  
  .footer-links {
    gap: 1rem;
  }
  
  .leaf {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .navbar-top, .navbar-bottom {
    padding: 1rem;
  }
  
  .hero-section, .page-hero {
    padding: 2rem 1rem;
  }
  
  .hero-text h1 {
    font-size: 1.6rem;
  }
  
  .hero-start, .hero-demo {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .hero-video {
    max-width: 100%;
  }
  
  .earth-day-wrapper {
    padding: 1.5rem;
  }
  
  .earth-day-content h2 {
    font-size: 1.6rem;
  }
  
  .earth-day-content p {
    font-size: 0.95rem;
  }
  
  .earth-day-btn {
    padding: 10px 28px;
    font-size: 0.95rem;
  }
  
  .lottie-wrapper dotlottie-wc {
    width: 200px;
    height: 200px;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .card h3, .game-info h3, .story-content h3, .video-info h3 {
    font-size: 1.1rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .testimonial-card p {
    font-size: 0.9rem;
  }
  
  .game-info, .story-content, .video-info {
    padding: 1rem;
  }
}
/* ============================================
   STORIES PAGE SPECIFIC STYLES
   ============================================ */

/* --------------------------------------------
   STORIES HERO SECTION
-------------------------------------------- */
.stories-hero {
  position: relative;
  padding: 3rem 2rem;
  overflow: hidden;
  background: linear-gradient(135deg, #fef9e6 0%, #fff5e6 100%);
}

.stories-hero-blob {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.15) 0%, rgba(37, 99, 235, 0.08) 100%);
  border-radius: 60% 40% 50% 50%;
  filter: blur(60px);
  z-index: 0;
}

.stories-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.stories-hero-text {
  flex: 1;
}

.story-badge {
  display: inline-block;
  background: #eef2ff;
  padding: 6px 16px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 1rem;
}

.stories-hero-text h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.stories-hero-text p {
  font-size: 1.1rem;
  color: #475569;
  margin-bottom: 2rem;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: #2563eb;
}

.stat-label {
  font-size: 0.85rem;
  color: #64748b;
}

.stories-hero-image {
  flex: 1;
  text-align: center;
}

.floating-book {
  font-size: 6rem;
  animation: floatBook 3s ease-in-out infinite;
  position: relative;
}

.floating-book i {
  background: linear-gradient(135deg, #facc15, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 8rem;
}

.sparkles {
  position: absolute;
  bottom: -20px;
  right: 0;
  font-size: 1.5rem;
  animation: sparkle 2s ease-in-out infinite;
}

@keyframes floatBook {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

@keyframes sparkle {
  0%, 100% { opacity: 0.5; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* --------------------------------------------
   FEATURED STORY SECTION
-------------------------------------------- */
.featured-story-section {
  padding: 2rem 2rem 4rem;
  background: white;
}

.featured-story-container {
  max-width: 1200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 48px;
  overflow: hidden;
  box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.25);
}

.featured-story-badge {
  display: inline-block;
  background: linear-gradient(135deg, #facc15, #f59e0b);
  color: #1e293b;
  padding: 8px 20px;
  border-radius: 0 0 20px 20px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 2rem;
}

.featured-story-content {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  flex-wrap: wrap;
}

.featured-story-info {
  flex: 2;
  min-width: 280px;
}

.featured-story-info h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 1rem;
}

.story-meta-tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.meta-tag {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #facc15;
}

.featured-story-info p {
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.featured-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.read-now-btn {
  background: #facc15;
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.read-now-btn:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

.save-btn {
  background: transparent;
  border: 1.5px solid #facc15;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  color: #facc15;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.save-btn:hover {
  background: rgba(250, 204, 21, 0.1);
  transform: translateY(-2px);
}

.featured-story-illustration {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.illustration-circle {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #facc15, #2563eb);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 3rem;
  animation: pulseGlow 2s ease-in-out infinite;
}

.illustration-circle i {
  color: white;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(250, 204, 21, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 40px rgba(250, 204, 21, 0.5); }
}

/* --------------------------------------------
   STORY CATEGORIES SECTION
-------------------------------------------- */
.story-categories {
  padding: 3rem 2rem;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-header h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.section-header p {
  color: #64748b;
}

.categories-scroll {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scrollbar-width: thin;
}

.categories-scroll::-webkit-scrollbar {
  height: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.categories-scroll::-webkit-scrollbar-thumb {
  background: #facc15;
  border-radius: 10px;
}

.category-card {
  min-width: 200px;
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.category-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.category-card p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 0.75rem;
}

.story-count {
  display: inline-block;
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
}

.ages-3-5 { border-top: 4px solid #10b981; }
.ages-6-8 { border-top: 4px solid #3b82f6; }
.ages-9-11 { border-top: 4px solid #f59e0b; }
.ages-12plus { border-top: 4px solid #ef4444; }

/* --------------------------------------------
   HORIZONTAL STORIES (TRENDING)
-------------------------------------------- */
.horizontal-stories {
  padding: 3rem 2rem;
  background: white;
  overflow-x: hidden;
}

.horizontal-scroll-wrapper {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem 0 2rem;
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #facc15;
  border-radius: 10px;
}

.horizontal-scroll {
  display: flex;
  gap: 1.5rem;
  min-width: min-content;
  padding: 0 1rem;
}

.trending-story-card {
  width: 280px;
  background: white;
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  position: relative;
  flex-shrink: 0;
  border: 1px solid #eef2ff;
}

.trending-story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.trending-badge {
  position: absolute;
  top: -10px;
  left: 20px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

.story-emoji {
  font-size: 3rem;
  text-align: center;
  margin: 1rem 0;
}

.trending-story-card h3 {
  font-size: 1.2rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.trending-story-card p {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin-bottom: 1rem;
}

.story-stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.story-stats i {
  margin-right: 4px;
}

.quick-read {
  width: 100%;
  background: #2563eb;
  border: none;
  padding: 10px;
  border-radius: 40px;
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
}

.quick-read:hover {
  background: #1d4ed8;
  transform: translateX(5px);
}

/* --------------------------------------------
   STORY GRID SECTION WITH FILTERS
-------------------------------------------- */
.story-grid-section {
  padding: 3rem 2rem;
  background: #f8fafc;
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.filter-btn {
  background: white;
  border: 1px solid #e2e8f0;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  color: #475569;
}

.filter-btn:hover {
  background: #eef2ff;
  border-color: #2563eb;
}

.filter-btn.active {
  background: #2563eb;
  color: white;
  border-color: #2563eb;
}

.stories-masonry-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.story-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
}

.story-card-front {
  padding: 1.5rem;
  text-align: center;
}

.story-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.story-card-front h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.story-card-front p {
  color: #64748b;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.story-card-footer {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.age-tag {
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #2563eb;
}

.duration-tag {
  background: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: #64748b;
}

/* Story card animation for filter */
.story-card {
  animation: fadeInUp 0.4s ease backwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --------------------------------------------
   TESTIMONIAL SCROLL SECTION
-------------------------------------------- */
.testimonial-scroll {
  padding: 3rem 2rem;
  background: white;
}

.testimonial-horizontal {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding: 1rem 0.5rem 2rem;
  scrollbar-width: thin;
}

.testimonial-horizontal::-webkit-scrollbar {
  height: 6px;
}

.testimonial-horizontal::-webkit-scrollbar-track {
  background: #e2e8f0;
  border-radius: 10px;
}

.testimonial-horizontal::-webkit-scrollbar-thumb {
  background: #facc15;
  border-radius: 10px;
}

.testimonial-horizontal .testimonial-card {
  min-width: 320px;
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 28px;
  text-align: center;
  flex-shrink: 0;
}

.testimonial-avatar {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.testimonial-card p {
  font-style: italic;
  color: #334155;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.testimonial-author {
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.rating {
  color: #facc15;
  font-size: 0.9rem;
}

/* --------------------------------------------
   NEWSLETTER SECTION
-------------------------------------------- */
.newsletter-section {
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.newsletter-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content i {
  font-size: 3rem;
  color: #facc15;
  margin-bottom: 1rem;
}

.newsletter-content h3 {
  font-size: 1.8rem;
  color: white;
  margin-bottom: 0.5rem;
}

.newsletter-content p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 14px 20px;
  border: none;
  border-radius: 60px;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
}

.newsletter-form button {
  background: #facc15;
  border: none;
  padding: 14px 28px;
  border-radius: 60px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Inter', sans-serif;
  color: #1e293b;
}

.newsletter-form button:hover {
  background: #f59e0b;
  transform: translateX(5px);
}

/* --------------------------------------------
   RESPONSIVE ADJUSTMENTS FOR STORIES PAGE
-------------------------------------------- */
@media (max-width: 768px) {
  .stories-hero-text h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat-number {
    font-size: 1.3rem;
  }
  
  .featured-story-info h2 {
    font-size: 1.5rem;
  }
  
  .featured-story-content {
    padding: 1.5rem;
  }
  
  .featured-story-badge {
    margin-left: 1rem;
  }
  
  .illustration-circle {
    width: 150px;
    height: 150px;
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 1.5rem;
  }
  
  .category-card {
    min-width: 160px;
  }
  
  .trending-story-card {
    width: 260px;
  }
  
  .stories-masonry-grid {
    grid-template-columns: 1fr;
  }
  
  .testimonial-horizontal .testimonial-card {
    min-width: 280px;
  }
  
  .newsletter-content h3 {
    font-size: 1.3rem;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
  
  .newsletter-form button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .stories-hero {
    padding: 2rem 1rem;
  }
  
  .floating-book i {
    font-size: 5rem;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-stat {
    text-align: center;
  }
  
  .featured-story-content {
    flex-direction: column;
    text-align: center;
  }
  
  .story-meta-tags {
    justify-content: center;
  }
  
  .featured-buttons {
    justify-content: center;
  }
  
  .filter-buttons {
    gap: 0.5rem;
  }
  
  .filter-btn {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
}