/* -------------------------------------------------------------
   Tiger eAcademy - Main Theme Stylesheet
   ------------------------------------------------------------- */

:root,
body,
.editor-styles-wrapper,
.block-editor-block-list__layout {
  --font-heading: 'Fredoka One', cursive, sans-serif;
  --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --color-dark-purple: #2D1F4E;
  --color-deep-purple: #3D2B7A;
  --color-card-purple: #352563;
  --color-warm-bg: #FFF8F0;
  
  --color-orange: #FF6B35;
  --color-orange-light: #FF8F5E;
  --color-teal: #4ECDC4;
  --color-teal-dark: #26B5AC;
  --color-purple: #9B5DE5;
  --color-pink: #F15BB5;
  --color-yellow: #FFE66D;
  --color-gold: #FFB800;
  --color-mint: #00C2A8;

  --color-text-main: #2D1F4E;
  --color-text-muted: #7A6A8A;
  --color-text-light: rgba(255, 255, 255, 0.75);
}

/* Typography & General */
body,
.editor-styles-wrapper {
  font-family: var(--font-body);
  background-color: var(--color-warm-bg);
  color: var(--color-text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6, .brand-font,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4 {
  font-family: var(--font-heading);
  font-weight: normal;
  letter-spacing: 0.5px;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark-purple);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.35rem;
}

.brand-emoji {
  font-size: 1.85rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.brand-mascot-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
  font-weight: 700;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link:focus {
  color: #ffffff;
}

.btn-pill-orange {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background-color: var(--color-orange);
  color: #ffffff !important;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-pill-orange:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Menu Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.75rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero Section */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-dark-purple) 0%, var(--color-deep-purple) 50%, var(--color-dark-purple) 100%);
  padding-top: 60px;
  padding-bottom: 120px;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
  margin: 0 auto;
}

.hero-mascot-badge {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.8rem;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--color-orange), var(--color-gold));
  box-shadow: 0 0 50px rgba(255, 107, 53, 0.45);
  animation: mascotPop 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-mascot-badge img,
.hero-mascot-badge .mascot-img {
  width: 78px;
  height: 78px;
  object-fit: contain;
  display: block;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-yellow {
  background-color: rgba(255, 230, 109, 0.18);
  color: var(--color-yellow);
  border: 1px solid rgba(255, 230, 109, 0.35);
}

.badge-teal {
  background-color: rgba(78, 205, 196, 0.18);
  color: var(--color-teal);
  border: 1px solid rgba(78, 205, 196, 0.35);
}

.hero-title {
  color: #ffffff;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title .highlight-yellow {
  color: var(--color-yellow);
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto 36px;
}

/* App Store Buttons */
.store-buttons-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.btn-store {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 28px;
  border-radius: 18px;
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-store:hover {
  transform: translateY(-3px) scale(1.03);
}

.btn-store-apple {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.btn-store-google {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  box-shadow: 0 10px 30px rgba(78, 205, 196, 0.4);
}

.btn-store-web {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  box-shadow: 0 10px 30px rgba(251, 133, 0, 0.4);
}

.btn-store-dark {
  background-color: var(--color-dark-purple);
  box-shadow: 0 10px 30px rgba(45, 31, 78, 0.35);
}

.btn-store-icon {
  font-size: 1.75rem;
  line-height: 1;
}

.btn-store-text {
  text-align: left;
}

.btn-store-sub {
  font-size: 0.72rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-store-main {
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

/* Wave Divider */
.hero-wave-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 60px;
  overflow: hidden;
  line-height: 0;
}

.hero-wave-bottom svg {
  width: 100%;
  height: 100%;
}

/* Floating Shapes & Star Animations */
.floating-shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  pointer-events: none;
  animation: floatBubble 5s ease-in-out infinite alternate;
}

.shape-1 {
  width: 240px;
  height: 240px;
  background-color: var(--color-purple);
  top: -60px;
  left: -60px;
  animation-duration: 6s;
}

.shape-2 {
  width: 140px;
  height: 140px;
  background-color: var(--color-orange);
  top: 90px;
  right: 40px;
  animation-duration: 4.5s;
  animation-delay: 1s;
}

.shape-3 {
  width: 90px;
  height: 90px;
  background-color: var(--color-teal);
  bottom: 80px;
  left: 20%;
  animation-duration: 5.5s;
  animation-delay: 0.5s;
}

.shape-4 {
  width: 180px;
  height: 180px;
  background-color: var(--color-yellow);
  bottom: 20px;
  right: -20px;
  animation-duration: 7s;
  animation-delay: 1.5s;
}

.star-decor {
  position: absolute;
  font-size: 1.6rem;
  pointer-events: none;
  animation: starTwinkle 4s ease-in-out infinite;
}

.star-1 {
  top: 70px;
  left: 30%;
  animation-delay: 0s;
}

.star-2 {
  top: 140px;
  right: 25%;
  font-size: 1.4rem;
  animation-delay: 1.2s;
}

.star-3 {
  bottom: 110px;
  left: 8%;
  font-size: 1.8rem;
  animation-delay: 2s;
}

@keyframes floatBubble {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(-24px) scale(1.08); }
}

@keyframes starTwinkle {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(20deg) scale(1.25); }
  100% { transform: rotate(0deg) scale(1); }
}

@keyframes mascotPop {
  0% { transform: scale(0) rotate(-15deg); opacity: 0; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Stats Section */
.stats-section {
  padding: 40px 0 60px;
  margin-top: -30px;
  position: relative;
  z-index: 20;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 24px;
  padding: 24px 16px;
  text-align: center;
  border: 2px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.stat-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.35rem;
}

.stat-val {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

/* Features Section */
.section-features {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--color-dark-purple);
  margin-top: 12px;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-title-white {
  color: #ffffff;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
}

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

.feature-card {
  border-radius: 28px;
  padding: 32px 28px;
  border: 2px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  position: relative;
}

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

.feature-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.6rem;
  color: #ffffff;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-dark-purple);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Programs Section */
.section-programs {
  padding: 80px 0 100px;
  background-color: var(--color-dark-purple);
}

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

.program-card {
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid transparent;
  background-color: var(--color-card-purple);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.program-card:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.program-thumb-wrap {
  position: relative;
  height: 220px;
  background-color: var(--color-deep-purple);
  overflow: hidden;
}

.program-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: transform 0.5s ease;
}

.program-card:hover .program-thumb {
  transform: scale(1.06);
}

.program-thumb-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 16, 51, 0.9) 0%, transparent 65%);
}

.program-tag {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  border-radius: 9999px;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.8rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.program-body {
  padding: 26px 28px;
}

.program-title {
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.program-desc {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.94rem;
  line-height: 1.65;
}

/* FAQ Accordion Section */
.section-faq {
  padding: 80px 0;
  background-color: var(--color-warm-bg);
}

.faq-list {
  display: flex;
  flex-col;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background-color: #ffffff;
  border-radius: 20px;
  border: 2px solid rgba(45, 31, 78, 0.08);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item.active {
  border-color: var(--color-purple);
  box-shadow: 0 8px 30px rgba(155, 93, 229, 0.12);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--color-dark-purple);
  gap: 16px;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--color-purple);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease;
  padding: 0 26px;
}

.faq-item.active .faq-content {
  padding-bottom: 24px;
}

.faq-text {
  color: var(--color-text-muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

/* CTA Download Banner Section */
.section-cta {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 50%, var(--color-gold) 100%);
}

.cta-content {
  position: relative;
  z-index: 10;
  max-width: 720px;
  margin: 0 auto;
}

.cta-mascot {
  font-size: 4rem;
  display: inline-block;
  margin-bottom: 16px;
  animation: mascotWobble 4s ease-in-out infinite;
}

.cta-mascot img,
.cta-mascot .mascot-img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  display: inline-block;
  vertical-align: middle;
}

.cta-title {
  color: #ffffff;
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.cta-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 36px;
}

@keyframes mascotWobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(8deg); }
  75% { transform: rotate(-8deg); }
}

/* Site Footer */
.site-footer {
  background-color: var(--color-dark-purple);
  padding: 40px 0;
  color: #ffffff;
}

.footer-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 700;
}

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

.footer-copy {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.85rem;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  background-color: #23173d;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-drawer.open {
  display: block;
}

.mobile-nav-menu {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-nav-menu a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Generic WordPress Content Support */
.standard-page-content {
  padding: 80px 0;
  min-height: 50vh;
}

.entry-title {
  font-size: 2.6rem;
  margin-bottom: 24px;
  color: var(--color-dark-purple);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #4A3E60;
}

.entry-content p {
  margin-bottom: 20px;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  /* Hide 'Play on Web' buttons on mobile/tablet devices (same logic for Hero and Header) */
  .btn-store-web,
  .btn-hdr-web,
  .desktop-only {
    display: none !important;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: block;
  }
  
  .programs-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .stat-card {
    padding: 18px 12px;
  }
  
  .stat-val {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .store-buttons-wrap {
    flex-direction: column;
    width: 100%;
  }
  
  .btn-store {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------
   WordPress Page Editor Content (Gutenberg / Classic)
   ------------------------------------------------------------- */
.section-page-editor-content {
  padding: 50px 0;
  background-color: #ffffff;
  border-top: 1px solid rgba(45, 31, 78, 0.06);
  border-bottom: 1px solid rgba(45, 31, 78, 0.06);
}

.section-page-editor-content .entry-content {
  max-width: 960px;
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #3B2E58;
}

.section-page-editor-content .entry-content h1,
.section-page-editor-content .entry-content h2,
.section-page-editor-content .entry-content h3 {
  color: var(--color-dark-purple);
  margin-top: 1.5em;
  margin-bottom: 0.6em;
}

.section-page-editor-content .entry-content p {
  margin-bottom: 1.2em;
}

.section-page-editor-content .entry-content ul,
.section-page-editor-content .entry-content ol {
  margin-left: 1.5em;
  margin-bottom: 1.2em;
}

.section-page-editor-content .entry-content img {
  border-radius: 16px;
  max-width: 100%;
  height: auto;
  margin: 20px 0;
}

/* -------------------------------------------------------------
   Polylang Language Switcher Styles (Strictly Horizontal)
   ------------------------------------------------------------- */
.polylang-switcher,
.pll-switcher,
ul.polylang-switcher,
.widget_polylang ul {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.polylang-switcher li,
.pll-switcher li,
li.lang-item,
li.menu-item-language {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.polylang-switcher li a,
.pll-switcher li a,
li.lang-item a,
li.menu-item-language > a {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 5px 10px !important;
  border-radius: 9999px !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease !important;
}

.polylang-switcher li a:hover,
.polylang-switcher li.current-lang a,
li.lang-item.current-lang a {
  background-color: rgba(255, 230, 109, 0.25) !important;
  color: var(--color-yellow) !important;
  box-shadow: 0 0 10px rgba(255, 230, 109, 0.3) !important;
}

.polylang-switcher li img,
.pll-switcher li img,
li.lang-item img {
  width: 16px !important;
  height: 11px !important;
  border-radius: 2px !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
}

/* If Language Switcher is added inside main WordPress Menu (Appearance > Menus) */
.nav-menu li.lang-item,
.nav-menu li.menu-item-language {
  display: inline-flex !important;
  align-items: center !important;
}

.nav-menu li.menu-item-language .sub-menu {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  list-style: none !important;
  background: var(--color-card-purple) !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.mobile-lang-switcher {
  padding: 10px 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.mobile-lang-label {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.mobile-switcher {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}

/* -------------------------------------------------------------
   WordPress Block Editor / Pattern Layout Overrides
   ------------------------------------------------------------- */
.wp-block-group.hero-section,
.wp-block-group.section-programs,
.wp-block-group.section-cta,
.wp-block-group.section-features,
.wp-block-group.section-faq,
.wp-block-group.stats-section {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  position: relative !important;
}

/* In visual editor, style components accurately */
.editor-styles-wrapper .hero-section {
  padding-top: 50px !important;
  padding-bottom: 100px !important;
  background: linear-gradient(135deg, var(--color-dark-purple) 0%, var(--color-deep-purple) 50%, var(--color-dark-purple) 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  text-align: center !important;
}

.editor-styles-wrapper .hero-mascot-badge {
  display: flex !important;
  margin: 0 auto 24px !important;
}

.editor-styles-wrapper .hero-title {
  color: #ffffff !important;
}

.editor-styles-wrapper .features-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 24px !important;
}

.editor-styles-wrapper .programs-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 28px !important;
}

.editor-styles-wrapper .stats-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

.editor-styles-wrapper .store-buttons-wrap {
  display: flex !important;
  flex-direction: row !important;
  justify-content: center !important;
  gap: 16px !important;
}

.editor-styles-wrapper .btn-store {
  display: inline-flex !important;
}

.editor-styles-wrapper .section-programs {
  background-color: var(--color-dark-purple) !important;
  padding: 60px 0 !important;
}

.editor-styles-wrapper .section-cta {
  background: linear-gradient(135deg, var(--color-orange) 0%, var(--color-orange-light) 50%, var(--color-gold) 100%) !important;
  padding: 60px 0 !important;
  text-align: center !important;
}

/* Full Width Visual Page Canvas */
.site-main.visual-canvas-page {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Minimal Header with Direct Store & Web Buttons - Strict 1 Row */
.site-header-downloads {
  background-color: var(--color-dark-purple);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.site-header-downloads-inner {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px;
  width: 100%;
}

.site-header-downloads .site-branding {
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.site-header-downloads .header-store-buttons {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

.btn-hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 9999px;
  font-family: 'Fredoka One', cursive;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  color: #ffffff !important;
}

.btn-hdr-btn:hover {
  transform: translateY(-2px);
  color: #ffffff !important;
}

/* Google Play Button - Teal Gradient matching Hero */
.btn-hdr-google {
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-dark));
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(78, 205, 196, 0.35);
}

.btn-hdr-google:hover {
  box-shadow: 0 6px 18px rgba(78, 205, 196, 0.5);
  color: #ffffff !important;
}

/* App Store Button - Orange Gradient matching Hero */
.btn-hdr-apple {
  background: linear-gradient(135deg, var(--color-orange), var(--color-orange-light));
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-hdr-apple:hover {
  box-shadow: 0 6px 18px rgba(255, 107, 53, 0.5);
  color: #ffffff !important;
}

/* Play on Web Button - Amber/Gold Gradient matching Hero */
.btn-hdr-web {
  background: linear-gradient(135deg, #FFB703, #FB8500);
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(251, 133, 0, 0.35);
}

.btn-hdr-web:hover {
  box-shadow: 0 6px 18px rgba(251, 133, 0, 0.5);
  color: #ffffff !important;
}

/* Conventional Store SVG Icons */
.store-svg-icon {
  display: inline-block;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  vertical-align: middle;
}

.btn-store .store-svg-icon {
  width: 24px;
  height: 24px;
}

/* Mobile Header: 2 Round Buttons with Icons Only (<= 992px) */
@media (max-width: 992px) {
  /* 1. Strictly hide Play on Web on mobile and tablet devices (same logic as Hero pattern) */
  .site-header-downloads .btn-hdr-web,
  .btn-hdr-btn.btn-hdr-web,
  .btn-hdr-web,
  .btn-store-web,
  .desktop-only {
    display: none !important;
  }

  /* 2. On mobile: Hide text labels, show only 2 round buttons with Apple and Google logos */
  .site-header-downloads .btn-hdr-label {
    display: none !important;
  }

  .site-header-downloads .btn-hdr-google,
  .site-header-downloads .btn-hdr-apple {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .site-header-downloads .store-svg-icon {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
  }

  .site-header-downloads .header-store-buttons {
    gap: 10px !important;
  }

  .site-header-downloads-inner {
    flex-direction: row !important;
    gap: 10px !important;
  }
}

@media (max-width: 480px) {
  .site-header-downloads-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header-downloads .btn-hdr-google,
  .site-header-downloads .btn-hdr-apple {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
  }
  .site-header-downloads .store-svg-icon {
    width: 18px !important;
    height: 18px !important;
  }
  .site-header-downloads .brand-title {
    font-size: 1.15rem !important;
  }
}

/* Quick Action Buttons Section - Perfectly Centered & Theme Integrated */
.section-quick-buttons {
  padding: 50px 0;
  background-color: var(--color-warm-bg);
  width: 100%;
  text-align: center;
}

.quick-buttons-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  flex-wrap: wrap !important;
  max-width: 960px;
  margin: 0 auto;
}

/* Quick Action Button Cards */
.quick-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 16px;
  padding: 18px 28px;
  border-radius: 24px;
  background-color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 8px 25px rgba(45, 31, 78, 0.08);
  border: 2px solid transparent;
  flex: 1 1 340px;
  max-width: 440px;
  text-align: left;
  box-sizing: border-box;
}

.quick-action-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  transition: transform 0.25s ease;
}

.quick-action-text {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.quick-action-title {
  font-family: 'Fredoka One', cursive;
  font-size: 1.15rem;
  line-height: 1.25;
  margin-bottom: 3px;
}

.quick-action-sub {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-weight: 600;
  line-height: 1.3;
}

.quick-action-arrow {
  font-size: 1.4rem;
  font-weight: 800;
  transition: transform 0.2s ease;
}

/* Blog Styling */
.quick-action-blog {
  border-color: rgba(155, 93, 229, 0.25);
}

.quick-action-blog .quick-action-icon-wrap {
  background-color: rgba(155, 93, 229, 0.12);
  color: var(--color-purple);
}

.quick-action-blog .quick-action-title {
  color: var(--color-purple);
}

.quick-action-blog .quick-action-arrow {
  color: var(--color-purple);
}

.quick-action-blog:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-purple);
  box-shadow: 0 14px 35px rgba(155, 93, 229, 0.22);
}

.quick-action-blog:hover .quick-action-icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

.quick-action-blog:hover .quick-action-arrow {
  transform: translateX(4px);
}

/* Worksheets Styling */
.quick-action-worksheets {
  border-color: rgba(255, 107, 53, 0.25);
}

.quick-action-worksheets .quick-action-icon-wrap {
  background-color: rgba(255, 107, 53, 0.12);
  color: var(--color-orange);
}

.quick-action-worksheets .quick-action-title {
  color: var(--color-orange);
}

.quick-action-worksheets .quick-action-arrow {
  color: var(--color-orange);
}

.quick-action-worksheets:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: var(--color-orange);
  box-shadow: 0 14px 35px rgba(255, 107, 53, 0.22);
}

.quick-action-worksheets:hover .quick-action-icon-wrap {
  transform: scale(1.1) rotate(5deg);
}

.quick-action-worksheets:hover .quick-action-arrow {
  transform: translateX(4px);
}

/* Backward-compatible .quick-btn */
.quick-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 9999px;
  font-family: 'Fredoka One', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
  text-align: center;
}

@media (max-width: 640px) {
  .quick-buttons-wrap {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .quick-action-btn {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }
}




