/* ============================================================
   دانیرا — Premium Design System
   RTL · Vazirmatn · Orange/Teal/Navy Palette
   ============================================================ */

/* ── @font-face ────────────────────────────────────────────── */
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Thin.woff2') format('woff2');
  font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraLight.woff2') format('woff2');
  font-weight: 200; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Light.woff2') format('woff2');
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Black.woff2') format('woff2');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Design tokens ─────────────────────────────────────────── */
:root {
  --white:       #FFFFFF;
  --gray-50:     #F6F7F9;
  --gray-100:    #EEEEF2;
  --gray-200:    #D9DAE2;
  --gray-400:    #9EA3B5;
  --gray-600:    #5E6480;
  --navy:        #1B2340;
  --navy-dark:   #141A2F;
  --body-text:   #1B2340;
  --muted:       #5E6480;
  --orange:      #FF6124;
  --orange-dark: #E04E10;
  --orange-light:#FFF0EB;
  --teal:        #2EC4B6;
  --teal-dark:   #22A99D;
  --teal-light:  #E6F8F7;
  --border:      #E4E6EF;

  --font-fa: 'Vazirmatn', Tahoma, 'Segoe UI', Arial, sans-serif;

  /* Type scale — capped */
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.25rem;
  --text-xl:   1.5rem;
  --text-2xl:  1.875rem;
  --text-3xl:  2.25rem;
  --text-4xl:  2.75rem;

  /* Spacing */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem; --sp-10: 2.5rem;
  --sp-12: 3rem; --sp-16: 4rem; --sp-20: 5rem; --sp-24: 6rem;

  /* Shadows */
  --shadow-sm:     0 1px 4px rgba(27,35,64,.06);
  --shadow-md:     0 4px 16px rgba(27,35,64,.09);
  --shadow-lg:     0 8px 32px rgba(27,35,64,.13);
  --shadow-orange: 0 4px 20px rgba(255,97,36,.22);
  --shadow-teal:   0 4px 20px rgba(46,196,182,.22);
  --shadow-card:   0 2px 12px rgba(27,35,64,.08), 0 1px 3px rgba(27,35,64,.04);

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-pill:999px;

  --transition: 0.22s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-fa);
  font-size: var(--text-base);
  color: var(--body-text);
  background: var(--white);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font-fa); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--font-fa); }

/* ── Container ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}
@media (max-width: 768px) {
  .container { padding: 0 var(--sp-4); }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  padding: 0.65em 1.6em;
  border-radius: var(--radius-pill);
  font-size: var(--text-base);
  font-weight: 600;
  font-family: var(--font-fa);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: var(--shadow-orange);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255,97,36,.30);
}
.btn-teal {
  background: var(--teal);
  color: var(--white);
  box-shadow: var(--shadow-teal);
}
.btn-teal:hover, .btn-teal:focus-visible {
  background: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border-color: var(--orange);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--orange);
  color: var(--white);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
}
.btn-outline-light:hover, .btn-outline-light:focus-visible {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
}
.btn-ghost {
  background: var(--gray-50);
  color: var(--body-text);
}
.btn-ghost:hover { background: var(--gray-100); }
.btn-sm { padding: 0.45em 1.1em; font-size: var(--text-sm); }
.btn-lg { padding: 0.8em 2em; font-size: var(--text-md); }

/* ── Section heading ───────────────────────────────────────── */
.section-title {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-3);
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  right: 0;
  width: 48px;
  height: 4px;
  background: var(--orange);
  border-radius: var(--radius-pill);
}
.section-sub {
  font-size: var(--text-md);
  color: var(--muted);
  margin-bottom: var(--sp-8);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-8);
  gap: var(--sp-4);
}
.section-header .section-title { margin-bottom: var(--sp-2); }

/* ── Navbar ────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(228,230,239,.6);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(27,35,64,.10);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: var(--sp-6);
}

.logo {
  display: flex;
  align-items: baseline;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-fa {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.02em;
}
.logo-lat {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}
.main-nav a {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  color: var(--orange);
  background: var(--orange-light);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}
.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.action-btn:hover { color: var(--orange); background: var(--orange-light); }
.cart-badge {
  position: absolute;
  top: 2px; left: 2px;
  min-width: 18px; height: 18px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}
.header-cta { margin-right: var(--sp-3); }

.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
  color: var(--gray-600);
  transition: background var(--transition);
}
.hamburger:hover { background: var(--gray-50); }
.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger { flex-direction: column; gap: 4px; }
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hamburger { display: flex; }
  .header-cta { display: none; }
}

/* ── Mobile nav ────────────────────────────────────────────── */
.mobile-nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(27,35,64,.45);
  z-index: 300;
}
.mobile-nav-overlay.open { display: block; }
.mobile-nav {
  position: fixed;
  top: 0; right: -300px;
  width: 280px; height: 100%;
  background: var(--white);
  z-index: 400;
  display: flex; flex-direction: column;
  padding: var(--sp-6);
  transition: right 0.28s ease;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(27,35,64,.13);
}
.mobile-nav.open { right: 0; }
.mobile-close {
  align-self: flex-start;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
  margin-bottom: var(--sp-4);
}
.mobile-close:hover { background: var(--gray-50); }
.mobile-logo {
  margin-bottom: var(--sp-6);
}
.mobile-nav ul { display: flex; flex-direction: column; gap: var(--sp-1); flex: 1; }
.mobile-nav a {
  display: block;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--body-text);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--orange-light); color: var(--orange); }
.mobile-phone {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.mobile-phone a {
  display: flex; align-items: center; gap: var(--sp-2);
  color: var(--muted); font-size: var(--text-sm);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #fff8f5 0%, #f0fffe 100%);
  overflow: hidden;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-12);
  min-height: 580px;
  padding: var(--sp-16) 0 var(--sp-12);
}
.hero-content { display: flex; flex-direction: column; gap: var(--sp-5); }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--orange-light);
  color: var(--orange);
  border-radius: var(--radius-pill);
  padding: var(--sp-1) var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 600;
  width: fit-content;
}
.hero-title {
  font-size: clamp(1.75rem, 4vw, var(--text-4xl));
  font-weight: 900;
  color: var(--navy);
  line-height: 1.3;
}
.hero-title .underline-accent {
  position: relative;
  display: inline-block;
}
.hero-title .underline-accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0; left: 0;
  height: 5px;
  background: var(--orange);
  border-radius: var(--radius-pill);
  opacity: .35;
}
.hero-desc {
  font-size: var(--text-md);
  color: var(--teal-dark);
  font-weight: 500;
  line-height: 1.6;
  max-width: 480px;
}
.hero-search {
  display: flex;
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1.5px solid var(--border);
  max-width: 480px;
}
.hero-search select {
  border: none; outline: none;
  background: var(--gray-50);
  padding: 0 var(--sp-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--body-text);
  border-left: 1.5px solid var(--border);
  cursor: pointer;
  min-width: 120px;
}
.hero-search input {
  flex: 1;
  border: none; outline: none;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--body-text);
  background: transparent;
}
.hero-search input::placeholder { color: var(--gray-400); }
.hero-search-btn {
  background: var(--orange);
  color: var(--white);
  padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-fa);
  cursor: pointer;
  border: none;
  transition: background var(--transition);
  white-space: nowrap;
}
.hero-search-btn:hover { background: var(--orange-dark); }
.hero-cta-row {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}
.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  border-radius: var(--radius-xl);
  width: 100%;
  max-height: 460px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.hero-float-card {
  position: absolute;
  bottom: var(--sp-8);
  right: -var(--sp-4);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--sp-3) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  min-width: 180px;
  border: 1.5px solid var(--border);
}
.hero-float-card img {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.hero-float-info { display: flex; flex-direction: column; gap: 2px; }
.hero-float-name { font-size: var(--text-xs); font-weight: 700; color: var(--navy); }
.hero-float-price { font-size: var(--text-sm); font-weight: 800; color: var(--orange); }
.hero-stars {
  position: absolute;
  top: var(--sp-8);
  left: var(--sp-6);
  background: var(--white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-md);
  padding: var(--sp-2) var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #f59e0b;
  border: 1.5px solid var(--border);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: var(--sp-10) 0 var(--sp-8);
  }
  .hero-image-wrap { order: -1; }
  .hero-float-card { display: none; }
  .hero-stars { display: none; }
  .hero-desc { max-width: 100%; }
}
@media (max-width: 480px) {
  .hero-search { flex-wrap: wrap; border-radius: var(--radius-md); }
  .hero-search select { width: 100%; border-left: none; border-bottom: 1.5px solid var(--border); }
  .hero-search-btn { width: 100%; justify-content: center; }
}

/* ── Stats band ────────────────────────────────────────────── */
.stats-band {
  background: var(--gray-50);
  padding: var(--sp-10) 0;
}
.stats-grid {
  display: flex;
  justify-content: center;
  gap: var(--sp-12);
  flex-wrap: wrap;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  text-align: center;
}
.stat-icon {
  width: 52px; height: 52px;
  background: var(--orange-light);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
}
.stat-value {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--navy);
}
.stat-label {
  font-size: var(--text-sm);
  color: var(--muted);
  font-weight: 500;
}

/* ── Age learning path ─────────────────────────────────────── */
.age-path {
  padding: var(--sp-16) 0;
  background: var(--white);
}
.age-path-title-wrap {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.age-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  gap: 0;
  flex-wrap: wrap;
  row-gap: var(--sp-4);
}
.age-connector {
  flex: 1;
  height: 3px;
  background: linear-gradient(to left, var(--orange), var(--teal));
  min-width: 24px;
  max-width: 60px;
}
.age-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  cursor: pointer;
  transition: transform var(--transition);
  text-decoration: none;
}
.age-bubble:hover { transform: translateY(-4px); }
.age-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  transition: box-shadow var(--transition);
}
.age-bubble:hover .age-circle { box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.age-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  text-align: center;
}
.age-c1 { background: linear-gradient(135deg, #FF6124, #FF8A5C); }
.age-c2 { background: linear-gradient(135deg, #FF8A5C, #FFC266); }
.age-c3 { background: linear-gradient(135deg, #56C596, #2EC4B6); }
.age-c4 { background: linear-gradient(135deg, #2EC4B6, #4EA8DE); }
.age-c5 { background: linear-gradient(135deg, #4EA8DE, #6B6CF0); }
.age-c6 { background: linear-gradient(135deg, #6B6CF0, #9B59B6); }

@media (max-width: 640px) {
  .age-connector { display: none; }
  .age-stepper { gap: var(--sp-4); justify-content: center; }
}

/* ── Product cards / bestsellers ───────────────────────────── */
.bestsellers {
  padding: var(--sp-16) 0;
  background: var(--white);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(27,35,64,.13);
}
.product-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--gray-50);
}
.product-card-body {
  padding: var(--sp-4);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex: 1;
}
.product-card-cat {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
  letter-spacing: 0.02em;
}
.product-card-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}
.product-stars {
  display: flex;
  align-items: center;
  gap: 3px;
  color: #f59e0b;
}
.product-stars span {
  font-size: var(--text-xs);
  color: var(--muted);
  margin-right: 4px;
}
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  margin-top: auto;
}
.product-price {
  font-size: var(--text-md);
  font-weight: 900;
  color: var(--orange);
}
.btn-add-cart {
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.4em 1em;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-fa);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; gap: var(--sp-1);
  transition: background var(--transition), transform var(--transition);
  text-decoration: none;
}
.btn-add-cart:hover { background: var(--teal-dark); transform: translateY(-1px); }

/* ── Courses band ──────────────────────────────────────────── */
.courses-band {
  padding: var(--sp-16) 0;
  background: var(--navy);
}
.courses-band .section-title { color: var(--white); }
.courses-band .section-title::after { background: var(--orange); }
.courses-band .section-sub { color: rgba(255,255,255,.6); }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px)  { .courses-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px)  { .courses-grid { grid-template-columns: 1fr; } }

.course-card {
  background: rgba(255,255,255,.06);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.1);
  overflow: hidden;
  transition: transform var(--transition), background var(--transition);
  display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.10);
}
.course-card-top {
  height: 140px;
  position: relative;
  overflow: hidden;
}
.course-card-top img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: .75;
}
.course-card-top-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,97,36,.7), rgba(46,196,182,.7));
  display: flex; align-items: center; justify-content: center;
}
.course-card-top-overlay svg { color: var(--white); opacity: .9; }
.course-card-body {
  padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3); flex: 1;
}
.course-card-name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--white);
  line-height: 1.4;
}
.course-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
}
.course-card-price {
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--orange);
}
.btn-view-course {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  background: rgba(255,255,255,.10);
  color: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.5em 1.2em;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-fa);
  border: 1px solid rgba(255,255,255,.2);
  cursor: pointer;
  transition: background var(--transition);
  text-decoration: none;
  margin-top: auto;
}
.btn-view-course:hover { background: rgba(255,255,255,.18); }
.courses-band .section-header .btn-outline {
  color: rgba(255,255,255,.75);
  border-color: rgba(255,255,255,.3);
}
.courses-band .section-header .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: var(--white);
}

/* ── Category grid ─────────────────────────────────────────── */
.category-grid-section {
  padding: var(--sp-16) 0;
  background: var(--gray-50);
}
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

.cat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--border);
  padding: var(--sp-5) var(--sp-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  text-align: center;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: pointer;
}
.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal);
}
.cat-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--orange);
  background: var(--orange-light);
  transition: background var(--transition), color var(--transition);
}
.cat-card:hover .cat-icon { background: var(--teal-light); color: var(--teal); }
.cat-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials {
  padding: var(--sp-16) 0;
  background: var(--white);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
@media (max-width: 900px) { .testimonials-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .testimonials-grid { grid-template-columns: 1fr; } }

.testi-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: var(--sp-6);
  display: flex; flex-direction: column; gap: var(--sp-4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.testi-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.testi-header { display: flex; align-items: center; gap: var(--sp-3); }
.testi-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gray-100);
  flex-shrink: 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
}
.testi-meta { display: flex; flex-direction: column; gap: 2px; }
.testi-name { font-size: var(--text-sm); font-weight: 700; color: var(--navy); }
.testi-role { font-size: var(--text-xs); color: var(--muted); }
.testi-stars { display: flex; gap: 2px; color: #f59e0b; }
.testi-quote {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
}

/* ── Newsletter CTA ────────────────────────────────────────── */
.newsletter-cta {
  padding: var(--sp-16) 0;
  background: linear-gradient(135deg, var(--orange) 0%, var(--teal) 100%);
}
.newsletter-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-5);
}
.newsletter-title {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--white);
}
.newsletter-desc { font-size: var(--text-base); color: rgba(255,255,255,.85); }
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,.2);
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 1.5px solid rgba(255,255,255,.35);
  width: 100%;
  max-width: 440px;
  backdrop-filter: blur(8px);
}
.newsletter-form input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  padding: var(--sp-3) var(--sp-5);
  font-size: var(--text-base);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.65); }
.newsletter-form button {
  background: var(--white);
  color: var(--orange);
  padding: var(--sp-3) var(--sp-6);
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-fa);
  border: none;
  cursor: pointer;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--gray-50); }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,.75);
}
.footer-top {
  padding: var(--sp-16) 0 var(--sp-10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-10);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 580px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo-wrap { display: flex; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.footer-logo-fa { font-size: 1.5rem; font-weight: 900; color: var(--orange); }
.footer-logo-lat { font-size: 0.75rem; font-weight: 600; color: var(--teal); letter-spacing: .06em; text-transform: uppercase; }
.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  margin-bottom: var(--sp-5);
}
.footer-socials {
  display: flex; gap: var(--sp-3);
}
.footer-socials a {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.footer-socials a:hover {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.footer-links h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
  letter-spacing: .02em;
}
.footer-links ul { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-links a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--transition);
  display: flex; align-items: center; gap: var(--sp-2);
}
.footer-links a:hover { color: var(--orange); }
.footer-contact h3 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
}
.footer-contact p {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,.55);
  margin-bottom: var(--sp-2);
}
.footer-contact a { color: rgba(255,255,255,.7); transition: color var(--transition); }
.footer-contact a:hover { color: var(--orange); }
.footer-trust {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-5);
}
.footer-trust span {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm);
  padding: var(--sp-1) var(--sp-3);
  font-size: var(--text-xs);
  color: rgba(255,255,255,.55);
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: var(--sp-5) 0;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer-bottom p { font-size: var(--text-sm); color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--teal); }

/* ── Forms ─────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.form-label { font-size: var(--text-sm); font-weight: 600; color: var(--body-text); }
.form-control {
  width: 100%;
  padding: 0.65em 1em;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: var(--text-base);
  font-family: var(--font-fa);
  color: var(--body-text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255,97,36,.12);
}

/* ── Page hero (inner pages) ───────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--orange-light), var(--teal-light));
  padding: var(--sp-12) 0;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.page-hero p { font-size: var(--text-md); color: var(--muted); }

/* ── Utilities ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-orange { color: var(--orange); }
.text-teal   { color: var(--teal); }
.text-muted  { color: var(--muted); }
.mt-auto { margin-top: auto; }

/* focus-visible rings */
:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ── Product detail grid ───────────────────────────────────── */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: start;
}
@media (max-width: 860px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}

/* ── Checkout grid ─────────────────────────────────────────── */
.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-8);
  align-items: start;
}
.checkout-summary {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  border: 1.5px solid var(--border);
  position: sticky;
  top: 88px;
}
@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}
/* #B64 mobile-reachability fix 2026-09-03 */
@media (max-width:860px){
  div.admin-content{min-width:0}
  div.admin-card,div.admin-content{overflow-x:auto;overflow-y:visible;max-width:100%}
}
