/* ==========================================================================
   LetsLearnLMS - Kids Preschool & Kindergarten Theme - style.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Playful Light Palette Variables */
  --color-primary: #092a48;       /* Deep Navy */
  --color-secondary: #f15a24;     /* Sunburst Orange */
  --color-yellow: #ffc20e;        /* Sunshine Yellow */
  --color-pink: #ed1e79;          /* Playful Pink */
  --color-teal: #00a896;          /* Mint Green */
  --color-lavender: #8c52ff;      /* Soft Lavender */
  --color-blue: #1b75bb;          /* Playful Sky Blue */
  
  --color-text-dark: #0f172a;     /* Slate 900 */
  --color-text-muted: #475569;    /* Slate 600 */
  --color-bg-light: #f3f7fa;      /* Playful Light Blue-Grey */
  --color-bg-white: #ffffff;
  --color-card-border: rgba(9, 42, 72, 0.08);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Shadow & Radii */
  --shadow-sm: 0 4px 10px rgba(9, 42, 72, 0.04);
  --shadow-md: 0 12px 24px rgba(9, 42, 72, 0.07);
  --shadow-lg: 0 20px 40px rgba(9, 42, 72, 0.12);
  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 44px;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Variables Override */
[data-theme="dark"] {
  --color-primary: #ffc20e;       /* Sunshine Yellow accent in Dark mode */
  --color-text-dark: #f8fafc;     /* Slate 50 */
  --color-text-muted: #94a3b8;    /* Slate 400 */
  --color-bg-light: #051321;      /* Deep Space Navy */
  --color-bg-white: #0c1a29;      /* Dark Card Background */
  --color-card-border: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 4px 10px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 12px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.4);
}

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-text-dark);
  line-height: 1.25;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-smooth);
}

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

button, input, textarea, select {
  font-family: inherit;
  outline: none;
  border: none;
  background: none;
}

/* Global Container utility */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.section-bg-white {
  background-color: var(--color-bg-white);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 55px;
}

.section-tag {
  display: inline-block;
  padding: 6px 18px;
  background-color: rgba(241, 90, 36, 0.1);
  color: #f15a24;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 18px;
}

.section-title span {
  color: #1b75bb;
}

.section-desc {
  color: var(--color-text-muted);
  font-size: 16px;
}

/* Playful Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 16px;
  border-radius: var(--radius-xl);
  cursor: pointer;
  gap: 8px;
  transition: var(--transition-smooth);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.btn-primary {
  background-color: #f15a24;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(241, 90, 36, 0.3);
}

.btn-primary:hover {
  background-color: #d84511;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(241, 90, 36, 0.4);
}

.btn-secondary {
  background-color: #1b75bb;
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(27, 117, 187, 0.25);
}

.btn-secondary:hover {
  background-color: #145d96;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 117, 187, 0.35);
}

.btn-yellow {
  background-color: #ffc20e;
  color: #092a48;
  box-shadow: 0 6px 20px rgba(255, 194, 14, 0.3);
}

.btn-yellow:hover {
  background-color: #e5ad08;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 194, 14, 0.4);
}

.btn-outline {
  background-color: transparent;
  border: 3px solid #1b75bb;
  color: #1b75bb;
}

[data-theme="dark"] .btn-outline {
  border-color: #ffc20e;
  color: #ffc20e;
}

.btn-outline:hover {
  background-color: #1b75bb;
  color: #ffffff;
  transform: translateY(-3px);
}

[data-theme="dark"] .btn-outline:hover {
  background-color: #ffc20e;
  color: #051321;
}

/* ==========================================================================
   1. Top Utility Bar
   ========================================================================== */
.top-bar {
  background-color: #092a48;
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 500;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.15);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-info {
  display: flex;
  gap: 20px;
}

.top-info-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-info-item svg {
  width: 15px;
  height: 15px;
  color: var(--color-yellow);
}

.top-right-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Theme Toggle Slider */
.theme-switch-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 48px;
}

.theme-switch input {
  display: none;
}

.slider-toggle {
  background-color: #5d7388;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
  border-radius: 34px;
}

.slider-toggle:before {
  background-color: #ffffff;
  bottom: 3px;
  content: "";
  height: 18px;
  left: 3px;
  position: absolute;
  transition: .4s;
  width: 18px;
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background-color: #ffc20e;
}

input:checked + .slider-toggle:before {
  transform: translateX(24px);
  background-color: #092a48;
}

/* ==========================================================================
   2. Main Header & Navbar
   ========================================================================== */
.header {
  background-color: var(--color-bg-white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid rgba(9, 42, 72, 0.03);
  transition: var(--transition-smooth);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo-icon {
  width: 46px;
  height: 46px;
}

.logo-text {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-text-dark);
  font-family: var(--font-heading);
}

.logo-text span {
  color: #f15a24;
}

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

.nav-link {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text-dark);
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background-color: #1b75bb;
  border-radius: 10px;
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: #1b75bb;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

/* Playful Search Bar */
.search-box {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-light);
  border: 2px solid var(--color-card-border);
  padding: 8px 16px;
  border-radius: 50px;
  width: 220px;
  transition: var(--transition-smooth);
}

.search-box:focus-within {
  border-color: #1b75bb;
  width: 260px;
}

.search-input {
  width: 100%;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-dark);
}

.search-btn {
  color: var(--color-text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.search-btn svg {
  width: 16px;
  height: 16px;
}

.cart-icon-btn {
  position: relative;
  cursor: pointer;
  color: var(--color-text-dark);
  display: flex;
  align-items: center;
}

.cart-icon-btn svg {
  width: 22px;
  height: 22px;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #ed1e79;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  color: var(--color-text-dark);
}

/* ==========================================================================
   3. Hero Banner Section
   ========================================================================== */
.hero {
  position: relative;
  background-color: #e2f0fb;
  padding: 100px 0 120px;
  border-bottom: 6px dashed #1b75bb;
}

[data-theme="dark"] .hero {
  background-color: #051a2d;
  border-bottom-color: #ffc20e;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.hero-content {
  max-width: 550px;
}

.hero-tag {
  display: inline-block;
  background-color: #1b75bb;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: #092a48;
  margin-bottom: 24px;
  line-height: 1.15;
}

[data-theme="dark"] .hero-title {
  color: #ffffff;
}

.hero-title span {
  color: #f15a24;
  position: relative;
}

.hero-desc {
  font-size: 18px;
  color: #4f6377;
  margin-bottom: 35px;
}

[data-theme="dark"] .hero-desc {
  color: #94a3b8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  align-items: center;
}

.hero-graphic-box {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-img-wrap {
  width: 430px;
  height: 430px;
  background-color: #ffffff;
  border-radius: 50% 50% 40% 60% / 60% 40% 65% 35%;
  border: 12px solid #ffffff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: morphBlob 10s ease-in-out infinite alternate;
}

@keyframes morphBlob {
  0% { border-radius: 50% 50% 40% 60% / 60% 40% 65% 35%; }
  100% { border-radius: 40% 60% 55% 45% / 45% 65% 35% 55%; }
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
  border: 2px dashed rgba(9, 42, 72, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.badge-left {
  bottom: 20px;
  left: -20px;
  animation: floatUp 4s ease-in-out infinite alternate;
}

.badge-right {
  top: 40px;
  right: -10px;
  animation: floatDown 4s ease-in-out infinite alternate;
}

.badge-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badge-icon.yellow { background-color: rgba(255, 194, 14, 0.15); color: #ffc20e; }
.badge-icon.pink { background-color: rgba(237, 30, 121, 0.15); color: #ed1e79; }

.badge-icon svg {
  width: 22px;
  height: 22px;
}

.badge-title {
  font-size: 14px;
  font-weight: 800;
}

.badge-subtitle {
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
}

@keyframes floatUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

@keyframes floatDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(12px); }
}

/* ==========================================================================
   4. Playful Categories Grid
   ========================================================================== */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 35px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 3px dashed transparent;
  transition: var(--transition-smooth);
  cursor: pointer;
}

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

.category-card:nth-child(1) { border-color: rgba(27, 117, 187, 0.2); }
.category-card:nth-child(2) { border-color: rgba(241, 90, 36, 0.2); }
.category-card:nth-child(3) { border-color: rgba(0, 168, 150, 0.2); }
.category-card:nth-child(4) { border-color: rgba(237, 30, 121, 0.2); }

.category-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.category-card:nth-child(1) .category-icon-wrap { background-color: rgba(27, 117, 187, 0.1); color: #1b75bb; }
.category-card:nth-child(2) .category-icon-wrap { background-color: rgba(241, 90, 36, 0.1); color: #f15a24; }
.category-card:nth-child(3) .category-icon-wrap { background-color: rgba(0, 168, 150, 0.1); color: #00a896; }
.category-card:nth-child(4) .category-icon-wrap { background-color: rgba(237, 30, 121, 0.1); color: #ed1e79; }

.category-icon-wrap svg {
  width: 36px;
  height: 36px;
}

.category-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-desc {
  font-size: 13px;
  color: var(--color-text-muted);
}

.category-card:nth-child(1):hover { background-color: #1b75bb; color: #ffffff; }
.category-card:nth-child(2):hover { background-color: #f15a24; color: #ffffff; }
.category-card:nth-child(3):hover { background-color: #00a896; color: #ffffff; }
.category-card:nth-child(4):hover { background-color: #ed1e79; color: #ffffff; }

.category-card:hover .category-icon-wrap {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: scale(1.1) rotate(6deg);
}

.category-card:hover .category-desc {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   5. Interactive Courses Catalog Layout
   ========================================================================== */
.courses-filter-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 45px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 10px 24px;
  background-color: var(--color-bg-white);
  border: 2px solid var(--color-card-border);
  color: var(--color-text-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  font-size: 14px;
  transition: var(--transition-smooth);
}

.filter-pill:hover, .filter-pill.active {
  background-color: #1b75bb;
  border-color: #1b75bb;
  color: #ffffff;
  transform: translateY(-2px);
}

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

.course-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: #1b75bb;
}

.course-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
  background-color: #e2f0fb;
}

.course-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.course-card:hover .course-img-wrap img {
  transform: scale(1.08);
}

.course-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  color: #ffffff;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  border-radius: 50px;
  z-index: 5;
}

.course-badge.blue { background-color: #1b75bb; }
.course-badge.orange { background-color: #f15a24; }
.course-badge.pink { background-color: #ed1e79; }
.course-badge.teal { background-color: #00a896; }

.course-rating {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background-color: rgba(9, 42, 72, 0.85);
  backdrop-filter: blur(4px);
  color: #ffc20e;
  padding: 4px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-rating svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

.course-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  gap: 16px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 12px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-meta-item svg {
  width: 14px;
  height: 14px;
}

.course-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 12px;
  color: var(--color-text-dark);
}

.course-title a:hover {
  color: #1b75bb;
}

.course-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-footer {
  margin-top: auto;
  border-top: 2px dashed var(--color-card-border);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-instructor {
  display: flex;
  align-items: center;
  gap: 8px;
}

.instructor-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1b75bb;
}

.instructor-name {
  font-size: 12px;
  font-weight: 700;
}

.course-price {
  font-size: 20px;
  font-weight: 800;
  color: #f15a24;
}

/* Catalog sidebar layout */
.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

.catalog-sidebar {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
  height: fit-content;
}

.widget-title {
  font-size: 18px;
  margin-bottom: 18px;
  padding-bottom: 8px;
  border-b: 2px dashed var(--color-card-border);
}

.widget-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.widget-item-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.widget-item-check input {
  width: 18px;
  height: 18px;
  accent-color: #1b75bb;
}

/* ==========================================================================
   6. Premium learning Accordion
   ========================================================================== */
.accordion-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.accordion-img-box {
  position: relative;
}

.accordion-img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 8px solid var(--color-bg-white);
}

.accordion-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.accordion-item {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--color-card-border);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.accordion-header {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background-color: var(--color-bg-white);
}

.accordion-title-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.accordion-number {
  font-size: 16px;
  font-weight: 800;
  width: 32px;
  height: 32px;
  background-color: rgba(27, 117, 187, 0.1);
  color: #1b75bb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item:nth-child(2) .accordion-number { background-color: rgba(241, 90, 36, 0.1); color: #f15a24; }
.accordion-item:nth-child(3) .accordion-number { background-color: rgba(0, 168, 150, 0.1); color: #00a896; }

.accordion-item-title {
  font-size: 17px;
  font-weight: 700;
}

.accordion-arrow {
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.accordion-arrow svg {
  width: 20px;
  height: 20px;
}

.accordion-content {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-text-muted);
  font-size: 14px;
  border-top: 1px dashed transparent;
}

.accordion-item.active {
  border-color: #1b75bb;
}

.accordion-item.active .accordion-arrow {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  padding: 20px 24px;
  max-height: 250px;
  border-top-color: var(--color-card-border);
}

/* ==========================================================================
   7. Counters section
   ========================================================================== */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.counter-box {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 3px dashed transparent;
  transition: var(--transition-smooth);
}

.counter-box:nth-child(1) { border-color: rgba(255, 194, 14, 0.2); }
.counter-box:nth-child(2) { border-color: rgba(237, 30, 121, 0.2); }
.counter-box:nth-child(3) { border-color: rgba(0, 168, 150, 0.2); }
.counter-box:nth-child(4) { border-color: rgba(27, 117, 187, 0.2); }

.counter-icon {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.counter-box:nth-child(1) .counter-icon { background-color: rgba(255, 194, 14, 0.1); color: #ffc20e; }
.counter-box:nth-child(2) .counter-icon { background-color: rgba(237, 30, 121, 0.1); color: #ed1e79; }
.counter-box:nth-child(3) .counter-icon { background-color: rgba(0, 168, 150, 0.1); color: #00a896; }
.counter-box:nth-child(4) .counter-icon { background-color: rgba(27, 117, 187, 0.1); color: #1b75bb; }

.counter-icon svg {
  width: 32px;
  height: 32px;
}

.counter-number {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 6px;
}

.counter-box:nth-child(1) .counter-number { color: #ffc20e; }
.counter-box:nth-child(2) .counter-number { color: #ed1e79; }
.counter-box:nth-child(3) .counter-number { color: #00a896; }
.counter-box:nth-child(4) .counter-number { color: #1b75bb; }

.counter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   8. Course Detail Layout
   ========================================================================== */
.detail-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.detail-main {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
}

.detail-header {
  margin-bottom: 30px;
}

.detail-title {
  font-size: 36px;
  margin-bottom: 20px;
}

.detail-meta-row {
  display: flex;
  gap: 24px;
  border-top: 2px dashed var(--color-card-border);
  border-bottom: 2px dashed var(--color-card-border);
  padding: 16px 0;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.detail-meta-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail-meta-box img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.detail-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
}

.detail-meta-val {
  font-size: 14px;
  font-weight: 800;
}

/* Detail Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 3px solid var(--color-card-border);
  margin-bottom: 30px;
}

.tab-btn {
  padding: 12px 24px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 4px solid transparent;
  margin-bottom: -3px;
  transition: var(--transition-smooth);
}

.tab-btn.active, .tab-btn:hover {
  color: #1b75bb;
  border-bottom-color: #1b75bb;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.overview-content p {
  margin-bottom: 18px;
  font-size: 15px;
  color: var(--color-text-muted);
}

.curriculum-section {
  margin-bottom: 24px;
}

.curriculum-section-title {
  font-size: 18px;
  font-weight: 800;
  background-color: var(--color-bg-light);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.curriculum-lesson-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.curriculum-lesson-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: var(--color-bg-white);
  border: 2px dashed var(--color-card-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.curriculum-lesson-item:hover {
  border-color: #1b75bb;
  background-color: rgba(27, 117, 187, 0.02);
}

.curriculum-lesson-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.curriculum-lesson-left svg {
  width: 18px;
  height: 18px;
  color: #1b75bb;
}

.curriculum-lesson-badge {
  font-size: 10px;
  padding: 3px 8px;
  background-color: rgba(0, 168, 150, 0.1);
  color: #00a896;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Detail Sidebar Widget */
.detail-sidebar {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
  padding: 30px;
  position: sticky;
  top: 110px;
}

.sidebar-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sidebar-price-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
}

.sidebar-price-val {
  font-size: 28px;
  font-weight: 900;
  color: #f15a24;
}

.sidebar-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 30px;
  border-top: 2px dashed var(--color-card-border);
  padding-top: 20px;
}

.sidebar-feature-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
}

.sidebar-feature-left {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
}

.sidebar-feature-left svg {
  width: 16px;
  height: 16px;
  color: #1b75bb;
}

.sidebar-feature-right {
  font-weight: 700;
}

/* ==========================================================================
   9. LMS Lesson Player Page Layout
   ========================================================================== */
.lesson-player-layout {
  display: grid;
  grid-template-columns: 350px 1fr;
  min-height: calc(100vh - 100px);
}

.lesson-sidebar {
  background-color: var(--color-bg-white);
  border-right: 3px solid var(--color-card-border);
  padding: 24px;
  overflow-y: auto;
  height: calc(100vh - 100px);
  position: sticky;
  top: 100px;
}

.lesson-progress-box {
  margin-bottom: 24px;
  background-color: var(--color-bg-light);
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 2px dashed var(--color-card-border);
}

.progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background-color: rgba(9, 42, 72, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar-inner {
  height: 100%;
  background-color: #00a896;
  width: 40%;
  transition: width 0.4s ease;
}

.lesson-sidebar-menu {
  list-style: none;
}

.lesson-group-title {
  font-size: 15px;
  font-weight: 800;
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 2px dashed var(--color-card-border);
  padding-bottom: 6px;
}

.lesson-list-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lesson-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: var(--color-bg-white);
  border: 2px solid var(--color-card-border);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lesson-sidebar-item:hover, .lesson-sidebar-item.active {
  border-color: #1b75bb;
  background-color: rgba(27, 117, 187, 0.05);
}

.lesson-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #00a896;
  cursor: pointer;
}

.lesson-sidebar-item span {
  flex: 1;
}

.lesson-main {
  padding: 40px;
  overflow-y: auto;
  background-color: var(--color-bg-light);
  height: calc(100vh - 100px);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: #000;
  margin-bottom: 30px;
  border: 6px solid var(--color-bg-white);
}

.video-container iframe, .video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lesson-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.lesson-title-area h2 {
  font-size: 28px;
  margin-bottom: 6px;
}

.lesson-nav-btns {
  display: flex;
  gap: 12px;
}

.lesson-tab-box {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
}

/* ==========================================================================
   10. Dashboard Page Layout
   ========================================================================== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
}

.dashboard-sidebar {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 30px 20px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
  height: fit-content;
}

.student-card-profile {
  text-align: center;
  margin-bottom: 30px;
  border-bottom: 2px dashed var(--color-card-border);
  padding-bottom: 20px;
}

.student-profile-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #1b75bb;
  margin: 0 auto 12px;
}

.student-name-title {
  font-size: 18px;
  font-weight: 850;
  margin-bottom: 4px;
}

.student-class-tag {
  font-size: 11px;
  background-color: rgba(241, 90, 36, 0.15);
  color: #f15a24;
  padding: 4px 10px;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
}

.dash-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dash-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dash-menu-item:hover, .dash-menu-item.active {
  background-color: rgba(27, 117, 187, 0.1);
  color: #1b75bb;
}

.dash-menu-item svg {
  width: 18px;
  height: 18px;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

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

.dash-stat-box {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
  display: flex;
  align-items: center;
  gap: 20px;
}

.dash-stat-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dash-stat-box:nth-child(1) .dash-stat-circle { background-color: rgba(0, 168, 150, 0.1); color: #00a896; }
.dash-stat-box:nth-child(2) .dash-stat-circle { background-color: rgba(255, 194, 14, 0.1); color: #ffc20e; }
.dash-stat-box:nth-child(3) .dash-stat-circle { background-color: rgba(237, 30, 121, 0.1); color: #ed1e79; }

.dash-stat-circle svg {
  width: 26px;
  height: 26px;
}

.dash-stat-num {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.dash-stat-lbl {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

/* Gamified Rewards Section */
.rewards-card {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 3px dashed rgba(9, 42, 72, 0.08);
}

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

.badge-card {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--color-card-border);
  transition: var(--transition-smooth);
}

.badge-card.unlocked {
  background-color: rgba(255, 194, 14, 0.03);
  border-color: #ffc20e;
}

.badge-card.locked {
  opacity: 0.55;
  filter: grayscale(1);
}

.badge-img {
  width: 60px;
  height: 60px;
  margin: 0 auto 12px;
  background-color: rgba(255, 194, 14, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffc20e;
}

.badge-card.locked .badge-img {
  background-color: #cbd5e1;
  color: #64748b;
}

.badge-img svg {
  width: 28px;
  height: 28px;
}

.badge-name {
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 4px;
}

.badge-status {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #00a896;
}

.badge-card.locked .badge-status {
  color: #64748b;
}

/* ==========================================================================
   11. Parent Gate Modal
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(9, 42, 72, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--color-bg-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  padding: 35px;
  box-shadow: var(--shadow-lg);
  border: 4px dashed #ffc20e;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
}

.modal-overlay.open .modal-box {
  transform: scale(1);
}

.modal-header-icon {
  width: 70px;
  height: 70px;
  background-color: rgba(255, 194, 14, 0.15);
  color: #ffc20e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-header-icon svg {
  width: 32px;
  height: 32px;
}

.modal-title {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-desc {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 24px;
  line-height: 1.5;
}

.gate-question {
  background-color: var(--color-bg-light);
  padding: 14px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 18px;
  border: 2px solid var(--color-card-border);
}

.gate-input {
  width: 100%;
  border: 2px solid var(--color-card-border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 18px;
  background-color: var(--color-bg-light);
  transition: var(--transition-smooth);
}

.gate-input:focus {
  border-color: #1b75bb;
  background-color: var(--color-bg-white);
}

.modal-error {
  font-size: 11px;
  font-weight: 700;
  color: #ed1e79;
  margin-bottom: 12px;
  display: none;
}

/* ==========================================================================
   12. Footer Section
   ========================================================================== */
.footer {
  background-color: #092a48;
  color: #ffffff;
  position: relative;
  padding: 80px 0 0;
  font-size: 14px;
  border-top: 6px dashed #ffc20e;
}

.footer-top {
  padding-bottom: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-desc {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition-smooth);
}

.footer-social-link:hover {
  background-color: #1b75bb;
  transform: translateY(-3px);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 22px;
  color: #ffc20e;
  position: relative;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #cbd5e1;
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffc20e;
  padding-left: 5px;
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-post-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-post-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.footer-post-title {
  font-weight: 700;
  font-size: 13px;
  color: #cbd5e1;
}

.footer-post-title:hover {
  color: #ffc20e;
}

.footer-post-meta {
  font-size: 10px;
  color: #94a3b8;
}

.footer-newsletter-text {
  color: #cbd5e1;
  font-size: 13px;
  margin-bottom: 18px;
}

.footer-newsletter-form {
  display: flex;
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 4px 4px 4px 16px;
  align-items: center;
}

.footer-newsletter-form input {
  flex: 1;
  font-size: 12px;
  color: #ffffff;
}

.footer-newsletter-form input::placeholder {
  color: #94a3b8;
}

.footer-newsletter-btn {
  background-color: #ffc20e;
  color: #092a48;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  padding: 10px 18px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.footer-newsletter-btn:hover {
  background-color: #ffffff;
}

.footer-bottom {
  margin-top: 50px;
  border-top: 2px dashed rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 12px;
  color: #94a3b8;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

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

/* ==========================================================================
   13. Responsive Media Queries
   ========================================================================== */
@media (max-width: 991px) {
  .hero-layout, .accordion-layout, .detail-layout, .dashboard-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .lesson-player-layout {
    grid-template-columns: 1fr;
  }
  
  .lesson-sidebar {
    height: auto;
    position: relative;
    top: 0;
    border-right: none;
    border-bottom: 3px solid var(--color-card-border);
  }
  
  .lesson-main {
    height: auto;
  }
  
  .catalog-layout {
    grid-template-columns: 1fr;
  }
  
  .categories-grid, .courses-grid, .counters-grid, .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-img-wrap {
    width: 320px;
    height: 320px;
  }
  
  .floating-badge {
    padding: 12px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-menu {
    display: none; /* Interactive Toggle in main.js */
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    flex-direction: column;
    padding: 20px;
    box-shadow: var(--shadow-md);
    border-bottom: 3px solid #1b75bb;
    gap: 16px;
    align-items: flex-start;
  }
  
  .nav-menu.open {
    display: flex;
  }
}

@media (max-width: 575px) {
  .categories-grid, .courses-grid, .counters-grid, .footer-grid, .rewards-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  
  .hero-img-wrap {
    width: 250px;
    height: 250px;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .footer-bottom .container {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .detail-main {
    padding: 20px;
  }
  
  .dash-stats-grid {
    grid-template-columns: 1fr;
  }
}
