/*
Theme Name:   Tutorchild
Description:  Custom Tutor Child Theme
Author:       itouchene safia
Template:     tutorstarter
Version:      2.0.0
*/

/* IMPORTANT: @import must be before all other rules */
@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;600;700;800&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap');

/* ─────────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────────── */
:root {
  /* Brand */
  --c-primary:       #2563eb;
  --c-primary-dark:  #1d4ed8;
  --c-primary-ink:   #0b1b44;
  --c-primary-soft:  rgba(37, 99, 235, 0.10);

  --c-accent:        #f97316;
  --c-accent-soft:   rgba(249, 115, 22, 0.12);

  /* Neutrals */
  --c-title:         #0b1220;
  --c-body:          #334155;
  --c-muted:         #64748b;
  --c-border:        rgba(15, 23, 42, 0.10);
  --c-border-strong: rgba(15, 23, 42, 0.16);

  --c-surface:       #ffffff;
  --c-bg:            #f6f8fc;

  /* Focus */
  --focus-ring: 0 0 0 4px rgba(37, 99, 235, 0.18);

  /* Elevation */
  --shadow-xs: 0 1px 0 rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.06);
  --shadow-sm: 0 2px 6px rgba(15,23,42,.08);
  --shadow-md: 0 10px 26px rgba(15,23,42,.10);
  --shadow-lg: 0 18px 50px rgba(15,23,42,.12);

  /* Radius */
  --radius-xs:   8px;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  22px;
  --radius-xl:  28px;
  --radius-full: 999px;

  /* Typography */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --max-w: 1180px;

  /* Spacing */
  --space-1:  6px;
  --space-2: 10px;
  --space-3: 14px;
  --space-4: 18px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;

  /* Quiz / QSM theme aliases (map to brand) */
  --primary:        #2563eb;
  --primary-dark:   #1e40af;
  --primary-light:  #3b82f6;
  --secondary:      #f97316;
  --success:        #10b981;
  --danger:         #ef4444;
  --text-primary:   #1f2937;
  --text-secondary: #6b7280;
  --bg-light:       #f9fafb;
  --bg-white:       #ffffff;
  --border-color:   #e5e7eb;
}

/* ─────────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--c-bg);
  color: var(--c-body);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

:where(a, button, input, textarea, select) { outline: none; }
:where(a, button, input, textarea, select):focus-visible {
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-xs);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ─────────────────────────────────────────────
   LAYOUT
───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--space-8) 0 !important; }

/* ─────────────────────────────────────────────
   SECTION HEADERS
───────────────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.section-eyebrow--light {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.16);
}

.section-header {
  margin-bottom: var(--space-7);
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 2.2vw + 0.8rem, 2.4rem);
  font-weight: 750;
  color: var(--c-title);
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0 0 10px;
}

.section-header p {
  color: var(--c-muted);
  font-size: 1rem;
  margin: 0;
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  margin-bottom: var(--space-6);
}

/* ─────────────────────────────────────────────
   BUTTONS
───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform     .18s ease,
    box-shadow    .18s ease,
    background    .18s ease,
    border-color  .18s ease,
    color         .18s ease;
}

.btn-primary {
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%);
  color: #fff;
  border-color: rgba(37,99,235,0.55);
  box-shadow: 0 10px 26px rgba(37,99,235,0.25);
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2a6cff 0%, var(--c-primary-dark) 100%);
  box-shadow: 0 14px 34px rgba(37,99,235,0.30);
  color: #fff;
}

.btn-outline {
  background: rgba(255,255,255,0.70);
  color: var(--c-title);
  border-color: var(--c-border);
  box-shadow: var(--shadow-xs);
}
.btn-outline:hover {
  transform: translateY(-1px);
  background: #fff;
  border-color: var(--c-border-strong);
  box-shadow: var(--shadow-sm);
  color: var(--c-title);
}

.btn-white {
  background: #fff;
  color: var(--c-primary);
  border-color: rgba(255,255,255,0.9);
  box-shadow: var(--shadow-sm);
}
.btn-white:hover {
  transform: translateY(-1px);
  background: #f5f8ff;
  color: var(--c-primary);
}

.btn-outline-white {
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-color: var(--c-border-strong);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.55);
  transform: translateY(-1px);
  border-color: var(--c-border);
}

/* Tutor primary button override */
.tutor-btn-primary {
  border-color: rgba(37,99,235,0.55) !important;
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%) !important;
  box-shadow: 0 10px 26px rgba(37,99,235,0.25) !important;
}

/* ─────────────────────────────────────────────
   HEADER
───────────────────────────────────────────── */
.header-default {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15,23,42,0.08);
}

body .header-default.is-scrolled { box-shadow: var(--shadow-sm); }

body .header-default .header-topbar {
  background: rgba(37,99,235,0.06);
  color: var(--c-title);
  text-align: center;
  font-size: 0.84rem;
  padding: 10px 0;
}

body .header-default .navbar { padding: 14px 0; display: block; }

.header-default .navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

body .header-default .navbar-brand img { max-height: 43px; }
body .header-default .navbar-menu { flex: 1; }

body .header-default .navbar .navbar-nav {
  display: flex;
  gap: 26px;
  list-style: none;
  align-items: center;
}

body .header-default .navbar .navbar-nav .menu-item > a {
  color: var(--c-body);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 8px 2px;
  opacity: 0.92;
  transition: color .18s ease, opacity .18s ease;
}
body .header-default .navbar .navbar-nav .menu-item.current-menu-item > a,
body .header-default .navbar .navbar-nav .menu-item > a:hover {
  color: var(--c-primary);
  opacity: 1;
}

body .header-default .navbar-utils  { display: flex; align-items: center; gap: 10px; order: 3; }
body .header-default .navbar-cta    { display: flex; align-items: center; gap: 10px; }

body .header-default .navbar-toggler {
  border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.85);
  padding: 8px 10px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: none;
  box-shadow: var(--shadow-xs);
}

/* Underline animations — disabled */
.navbar .navbar-nav .menu-item a::after,
.navbar .navbar-nav .menu-item.current-menu-item a::after {
  width: 0% !important;
  opacity: 0 !important;
}

/* Submenu */
header.header-default .navbar-nav > .menu-item .sub-menu > li:hover { border-bottom: none !important; }
header.header-default .navbar-nav > .menu-item .sub-menu > li:hover > a {
  background: none !important;
  color: var(--c-primary) !important;
  border-bottom: none !important;
}

/* Profile menu */
body .header-default .tutor-header-profile-menu-items { margin-left: 8px; }

/* Nav close */
.nav-close .btn-nav-close {
  border: none !important;
  font-size: 32px !important;
}

/* ─────────────────────────────────────────────
   HERO
───────────────────────────────────────────── */
.hero-section {
  position: relative;
  padding: 25px 0 calc(var(--space-8) + 10px);
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-blob--1 {
  width: 560px;
  height: 560px;
  position: absolute;
  top: -220px;
  right: -160px;
  min-height: 500px;
  overflow: hidden;
}

/* radial gradient stays on main element */
.hero-bg-blob--1 {
  background: radial-gradient(circle, rgba(37,99,235,0.16) 0%, transparent 68%);
}

/* image layer */
.hero-bg-blob--1::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('./assets/images/1.png') center center / cover no-repeat;
  opacity: 0.05; /* 👈 control image opacity here */
  z-index: -1;
}


.hero-bg-blob--2 {
  width: 460px;
  height: 460px;
  position: absolute;
  bottom: -210px;
  left: -140px;
  overflow: hidden;
}

/* gradient layer */
.hero-bg-blob--2 {
  background: radial-gradient(circle, rgba(249,115,22,0.12) 0%, transparent 68%);
}

/* image layer */
.hero-bg-blob--2::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('./assets/images/2.png') center center / cover no-repeat;
  opacity: 0.05; /* 👈 control image only */
  z-index: -1;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; gap: 18px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--c-primary);
  font-size: 0.82rem;
  font-weight: 700;
  width: fit-content;
}

.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  position: relative;
  flex-shrink: 0;
}
.hero-badge-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(37,99,235,0.35);
  animation: dot-ping 2s ease-out infinite;
}
@keyframes dot-ping {
  0%   { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw + 1rem, 3.25rem);
  font-weight: 800;
  color: var(--c-title);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0;
}
.hero-title .accent {
  color: var(--c-primary);
  position: relative;
}

.hero-subtitle {
  color: var(--c-muted);
  font-size: 1.04rem;
  max-width: 520px;
  margin: 0;
}

.hero-actions      { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-social-proof { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.hero-avatars      { display: flex; }

.avatar-stack-item {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid var(--c-surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 800; color: #fff;
  margin-left: -10px;
  box-shadow: var(--shadow-xs);
}
.avatar-stack-item:first-child { margin-left: 0; }

.hero-social-text        { font-size: 0.86rem; color: var(--c-muted); }
.hero-social-text strong { color: var(--c-title); }

/* Hero visual */
.hero-visual { position: relative; }

.hero-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15,23,42,0.09);
  box-shadow: var(--shadow-lg);
}
.hero-card--main { padding: 26px 26px 22px; }

.hero-pill {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.16);
  color: var(--c-primary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-card--float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(15,23,42,0.08);
  z-index: 2;
  animation: float-card 4.8s ease-in-out infinite;
}
.hero-card--float-a { bottom: -18px; left: -34px; }
.hero-card--float-b { top: -14px; right: -28px; animation-delay: 2.2s; }

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

.fcard-title { font-size: 0.82rem; font-weight: 700; color: var(--c-title); line-height: 1.25; }
.fcard-sub   { font-size: 0.74rem; color: var(--c-muted); }

.hero-video-wrapper {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  line-height: 0;
  border: 1px solid rgba(15,23,42,0.08);
  box-shadow: var(--shadow-sm);
  min-height: 200px;
  background: #eef2ff;
}

.hero-preview-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform .45s ease;
}
.hero-video-wrapper:hover .hero-preview-img { transform: scale(1.03); }

.hero-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(37,99,235,0.22);
  animation: vibe-ripple 2.2s ease-out infinite;
}
.play-ripple--1 { width: 82px; height: 82px; }
.play-ripple--2 { width: 112px; height: 112px; animation-delay: .65s; background: rgba(37,99,235,0.14); }

@keyframes vibe-ripple {
  0%   { transform: scale(.75); opacity: 1; }
  100% { transform: scale(1.36); opacity: 0; }
}

.play-icon {
  position: relative;
  z-index: 2;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(37,99,235,0.92);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 14px 38px rgba(37,99,235,0.40);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.hero-play-btn:hover .play-icon {
  transform: scale(1.08);
  box-shadow: 0 18px 46px rgba(37,99,235,0.48);
  background: rgba(29,78,216,0.95);
}
.play-icon svg { margin-left: 3px; }

/* ─────────────────────────────────────────────
   SEARCH STRIP
───────────────────────────────────────────── */
.search-strip {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 40px 0;
}

.search-form {
  display: flex;
  align-items: center;
  background: var(--c-bg);
  border: 1.5px solid var(--c-border);
  border-radius:10px;
  padding: 5px;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form:focus-within {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}

.search-form label { flex: 1; }

.search-form .search-field {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 13px 0;
  font-family: var(--font-body);
  font-size: 0.94rem;
  color: var(--c-title);
}
.search-form .search-field::placeholder { color: var(--c-muted); }

.search-form .search-submit {
  flex-shrink: 0;
  background: var(--c-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}
.search-form .search-submit:hover {
  background: var(--c-primary-dark);
  transform: scale(1.06);
}

/* ─────────────────────────────────────────────
   STATS STRIP
───────────────────────────────────────────── */
.stats-section {
  background: var(--c-surface);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 34px 0;
}

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

.stat-item {
  text-align: center;
  padding: 10px 18px;
  border-right: 1px solid var(--c-border);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .45s ease, transform .45s ease;
}
.stat-item.animate-on-scroll          { opacity: 0; transform: translateY(14px); }
.stat-item.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.stat-item:last-child { border-right: none; }

.stat-item h2 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 850;
  color: var(--c-primary);
  letter-spacing: -0.03em;
  margin: 0 0 4px;
}
.stat-item p { color: var(--c-muted); font-size: 0.88rem; margin: 0; }


/* ═══════════════════════════════════════════════════
   CATEGORIES SECTION — Full CSS
   4 cards in one row, image as full cover background
═══════════════════════════════════════════════════ */


/* ── Section wrapper ── */
.categories-section {
    padding: 60px 0;
    background: #ffff;
}


/* ── Section header ── */
.categories-section .section-header {
    margin-bottom: 36px;
    text-align: center;
}


/* ── 4-column single-row grid ── */
.course-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}


/* ── Base card ── */
.category-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.35s ease;
}

.category-card:hover {
    transform: translateY(-4px);
}


/* ── Image fills the entire card ── */
.category-image-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.category-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
    transition: transform 0.4s ease;
}

.category-card:hover .category-image {
    transform: scale(1.06);
}


/* ── Fallback placeholder when no image is set ── */
.category-image-placeholder {
    position: absolute;
    inset: 0;
    background: #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.2);
}

.category-image-placeholder svg {
    width: 52px;
    height: 52px;
}


/* ── Dark gradient overlay so text stays readable on any photo ── */


/* ── Content sits above overlay ── */
.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 18px;
}

.category-content h3 {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px;
    line-height: 1.25;
}

.category-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.82);
    margin: 0 0 10px;
    line-height: 1.4;
}

.category-count {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}


/* ── Top-left icon badge (add .category-badge element in PHP) ── */
.category-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.20);
    border: 1.5px solid rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
}

/* ════════════════════════════════
   DIGITAL PRODUCTS SECTION
════════════════════════════════ */

.digital-products-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    padding: 60px 0;
}

.digital-products-header .section-header {
    flex-shrink: 0;
}

.digital-products-description {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.65;
    margin: 0 0 20px;
    max-width: 520px;
}

.digital-products-header button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    color: #ffffff;
    border: none;
    padding: 11px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.digital-products-header button:hover {
    background: #1f2937;
    transform: translateY(-1px);
}


/* ════════════════════════════════
   RESPONSIVE BREAKPOINTS
════════════════════════════════ */

/* Tablet: 2 columns */
@media (max-width: 960px) {
    .course-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .digital-products-header {
        flex-direction: column;
        gap: 24px;
    }
}

/* Mobile: 1 column */
@media (max-width: 520px) {
    .course-categories {
        grid-template-columns: 1fr;
    }

    .category-card {
        height: 220px;
    }

    .categories-section h2,
    .digital-products-header h2 {
        font-size: 24px;
    }
}



/* ─────────────────────────────────────────────
   LANGUAGE SKILLS
───────────────────────────────────────────── */
.language-skills {
  background: #fff;
  padding: 48px 0;
}

.language-skills .skills-header {
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 0 24px;
  text-align: center;
}

.language-skills .skills-header .section-header {
  max-width: 100%;
  margin-bottom: 0;
}

.language-skills .skills-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.skill-card {
  border-radius: 14px;
  padding: 24px 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: var(--skill-accent, var(--c-primary));
  opacity: 0;
  transition: opacity .22s ease;
}
.skill-card:hover::before { opacity: 1; }
.skill-card:hover { transform: translateY(-3px); }

.skill-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.9);
  position: relative; z-index: 1;
}

.skill-card svg,
.skill-card .skill-icon-wrap svg {
  width: 32px; height: 32px;
  flex-shrink: 0;
  position: relative; z-index: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .22s ease;
}
.skill-card:hover svg,
.skill-card:hover .skill-icon-wrap svg { transform: scale(1.12); }

.skill-card span {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.3;
  position: relative; z-index: 1;
  transition: color .18s ease;
}

.skill-card p,
.skill-card .skill-desc {
  font-size: 0.76rem;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.45;
  position: relative; z-index: 1;
}

/* Per-card accents */
.skill-card:nth-child(1) { --skill-accent: #0ea5e9; background: #f0faff; border-color: rgba(14,165,233,0.12); }
.skill-card:nth-child(2) { --skill-accent: #8b5cf6; background: #faf5ff; border-color: rgba(139,92,246,0.12); }
.skill-card:nth-child(3) { --skill-accent: #10b981; background: #f0fdf9; border-color: rgba(16,185,129,0.12); }
.skill-card:nth-child(4) { --skill-accent: #f97316; background: #fff8f0; border-color: rgba(249,115,22,0.12); }

.skill-card:nth-child(1) svg, .skill-card:nth-child(1) span { stroke: #0ea5e9; color: #0ea5e9; }
.skill-card:nth-child(2) svg, .skill-card:nth-child(2) span { stroke: #8b5cf6; color: #8b5cf6; }
.skill-card:nth-child(3) svg, .skill-card:nth-child(3) span { stroke: #10b981; color: #10b981; }
.skill-card:nth-child(4) svg, .skill-card:nth-child(4) span { stroke: #f97316; color: #f97316; }

.skill-card:nth-child(1):hover { background: #e0f4ff; border-color: rgba(14,165,233,0.25);  box-shadow: 0 10px 28px rgba(14,165,233,0.12); }
.skill-card:nth-child(2):hover { background: #f3e8ff; border-color: rgba(139,92,246,0.25); box-shadow: 0 10px 28px rgba(139,92,246,0.12); }
.skill-card:nth-child(3):hover { background: #dcfff5; border-color: rgba(16,185,129,0.25);  box-shadow: 0 10px 28px rgba(16,185,129,0.12); }
.skill-card:nth-child(4):hover { background: #fff0e0; border-color: rgba(249,115,22,0.25);  box-shadow: 0 10px 28px rgba(249,115,22,0.12); }

.skill-card:nth-child(1):hover svg { stroke: #0284c7; }
.skill-card:nth-child(2):hover svg { stroke: #7c3aed; }
.skill-card:nth-child(3):hover svg { stroke: #059669; }
.skill-card:nth-child(4):hover svg { stroke: #ea6c00; }

/* ─────────────────────────────────────────────
   COURSES
───────────────────────────────────────────── */
.courses-section { background: var(--c-surface); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px 16px;
}

.course-card {
  background: rgba(255,255,255,0.96);
  border-radius: 8px;
  border: 1px solid var(--c-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .35s ease, transform .35s ease, box-shadow .2s ease, border-color .2s ease;
}
.course-card.animate-on-scroll            { opacity: 0; transform: translateY(14px); }
.course-card.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.course-card:hover { border-color: rgba(15,23,42,0.14); box-shadow: var(--shadow-sm); }

.course-thumb {
  display: block;
  height: 200px;
  overflow: hidden;
  background: #eef2ff;
  flex-shrink: 0;
}
.course-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.course-card:hover .course-thumb img { transform: scale(1.04); }

.course-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.course-category {
  font-size: 0.70rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.16);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.course-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 750;
  color: var(--c-title);
  line-height: 1.35;
}
.course-title a { color: inherit; }
.course-title a:hover { color: var(--c-primary); }

.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--c-muted);
  font-size: 0.80rem;
}

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

.course-divider-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: rgba(15,23,42,0.18);
  flex-shrink: 0;
}

.course-divider-line {
  height: 1px;
  background: var(--c-border);
  margin: 2px 0;
}

.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.course-rating { display: flex; align-items: center; gap: 6px; font-size: 0.80rem; }
.course-rating .stars { display: inline-flex; gap: 1px; color: #f59e0b; font-size: 0.82rem; }
.course-rating .star          { opacity: .22; }
.course-rating .star.is-filled { opacity: 1; }
.course-rating .rating-value  { font-weight: 800; color: var(--c-title); font-size: 0.82rem; }
.course-rating .rating-count  { color: var(--c-muted); font-size: 0.76rem; }
.course-rating .rating-empty  { color: var(--c-muted); font-size: 0.76rem; font-style: italic; }

.course-price { font-weight: 900; color: var(--c-title); font-size: 0.92rem; white-space: nowrap; }
.course-price .amount,
.course-price .woocommerce-Price-amount { font-weight: 900; }

.course-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.84rem;
  font-weight: 800;
  margin-top: 6px;
  width: 100%;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.course-btn:hover {
  transform: translateY(-1px);
  background: rgba(37,99,235,0.14);
  box-shadow: 0 10px 22px rgba(37,99,235,0.12);
  color: var(--c-primary);
}

/* ─────────────────────────────────────────────
   LESSONS
───────────────────────────────────────────── */
.lessons-section { background: var(--c-bg); }

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

.lesson-card {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-lg);
  border: 1px solid var(--c-border);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .4s ease, transform .4s ease, box-shadow .2s ease, border-color .2s ease;
}
.lesson-card.animate-on-scroll            { opacity: 0; transform: translateY(14px); }
.lesson-card.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.lesson-card:hover { box-shadow: var(--shadow-sm); border-color: rgba(15,23,42,0.14); }

.lesson-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--c-primary);
}
.lesson-card--online .lesson-card-icon {
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.14);
}
.lesson-card--private .lesson-card-icon {
  background: var(--c-accent-soft);
  border: 1px solid rgba(249,115,22,0.18);
  color: var(--c-accent);
}

.lesson-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.lesson-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 850;
  color: var(--c-title);
  margin: 0;
}
.lesson-card-body p { color: var(--c-muted); font-size: 0.92rem; margin: 0; }

.lesson-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 0;
  padding: 0;
}
.lesson-features li {
  font-size: 0.90rem;
  color: var(--c-body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.lesson-features li::before {
  content: "";
  width: 18px; height: 18px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    center / 12px no-repeat,
    rgba(37,99,235,0.10);
  border: 1px solid rgba(37,99,235,0.14);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────
   PROCESS
───────────────────────────────────────────── */
.process-section { background: var(--c-bg); }

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

.process-step {
  background: rgba(255,255,255,0.9);
  border-radius: var(--radius-md);
  border: 1px solid var(--c-border);
  padding: 22px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.process-step:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(37,99,235,0.18);
  background: #fff;
}
.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -14px; right: 14px;
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(37,99,235,0.10);
  line-height: 1;
  pointer-events: none;
}

.process-num {
  display: inline-flex;
  width: 34px; height: 34px;
  border-radius: 12px;
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.14);
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.process-step h3 {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 900;
  color: var(--c-title);
  margin: 0 0 6px;
}
.process-step p { color: var(--c-muted); font-size: 0.90rem; margin: 0; }

/* ─────────────────────────────────────────────
   CTA BAND
───────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%);
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin: 20px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.2vw + 0.6rem, 2.1rem);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.04em;
  margin: 0 0 8px;
}
.cta-text p   { color: rgba(255,255,255,0.68); font-size: 0.98rem; margin: 0; }
.cta-actions  { display: flex; gap: 12px; flex-wrap: wrap; }

/* ─────────────────────────────────────────────
   DIGITAL PRODUCTS
───────────────────────────────────────────── */
.digital-products-header {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--space-8) 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.digital-products-header .section-header {
  margin-bottom: 0;
  flex-shrink: 0;
  max-width: 480px;
}

.digital-products-header > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 420px;
}

.digital-products-description {
  color: var(--c-muted);
  font-size: 0.96rem;
  line-height: 1.75;
  margin: 0;
}

.digital-products-header > div:last-child > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary) 100%);
  color: #fff;
  border: 1px solid rgba(37,99,235,0.55);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 22px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37,99,235,0.25);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.digital-products-header > div:last-child > button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #2a6cff 0%, var(--c-primary-dark) 100%);
  box-shadow: 0 14px 34px rgba(37,99,235,0.30);
}

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */
body .custom-footer,
body .custom-footer * { box-sizing: border-box; }

body .custom-footer {
  background: #0b1220;
  color: #fff;
  margin-top: 80px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

body .custom-footer .footer-widgets {
  background: #0b1220;
  padding: 90px 0 60px;
}

body .custom-footer .row { align-items: flex-start; }
body .custom-footer .footer-brand { padding-right: 30px; }

body .custom-footer .footer-logo { margin-bottom: 24px; }
body .custom-footer .footer-logo img {
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

body .custom-footer .footer-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  margin: 0 0 28px;
  position: relative;
  text-transform: capitalize;
}
body .custom-footer .footer-title::after {
  content: "";
  width: 45px; height: 3px;
  background: var(--c-primary);
  position: absolute;
  left: 0; bottom: -10px;
  border-radius: 50px;
}

body .custom-footer .footer-description {
  color: #cbd5e1;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.9;
  margin: 0;
  max-width: 340px;
}

body .custom-footer .footer-menu,
body .custom-footer .footer-menu ul {
  list-style: none;
  margin: 0; padding: 0;
  display: block;
}

body .custom-footer .footer-menu li { margin: 0 0 14px; padding: 0; display: block; }
body .custom-footer .footer-menu li:last-child { margin-bottom: 0; }
body .custom-footer .footer-menu li a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.7;
  display: inline-flex;
  align-items: center;
  transition: color .2s ease;
}
body .custom-footer .footer-menu li a:hover { color: #fff; }

body .custom-footer .footer-subscribe-form {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 420px;
  margin: 25px 0 30px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

body .custom-footer .footer-subscribe-form input {
  flex: 1;
  width: 100%;
  border: none; outline: none; box-shadow: none;
  background: transparent;
  color: #111827;
  padding: 16px 18px;
  font-size: 15px;
  min-height: 54px;
}
body .custom-footer .footer-subscribe-form input::placeholder { color: #6b7280; opacity: 1; }

body .custom-footer .footer-subscribe-form button {
  border: none; outline: none;
  background: var(--c-primary);
  color: #fff;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 54px;
  transition: background .2s ease;
}
body .custom-footer .footer-subscribe-form button:hover { background: var(--c-primary-dark); }

body .custom-footer .footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}
body .custom-footer .footer-social a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background .2s ease, transform .2s ease;
}
body .custom-footer .footer-social a:hover { background: var(--c-primary); transform: translateY(-4px); }

body .custom-footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 24px 0;
  text-align: center;
  background: #0b1220;
}
body .custom-footer .footer-bottom-content {
  display: flex;
  justify-content: center;
  align-items: center;
}
body .custom-footer .footer-bottom p { margin: 0; color: #94a3b8; font-size: 14px; line-height: 1.7; }

section.footer-widgets .container { border-bottom: none !important; padding-bottom: 0 !important; }
.site-footer { background: #0b1220 !important; }

/* ─────────────────────────────────────────────
   QUIZ LISTING PAGE
───────────────────────────────────────────── */

/* Hide back button on first page */
body.qsm-page-2 .qsm-previous-btn,
body.qsm-page-3 .qsm-previous-btn { display: inline-block !important; }

.quiz-page {
  max-width: var(--max-w);
  margin: 0 auto;
  display: block !important;
  background: white;
  padding: 2%;
}

.quiz-hero {
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  padding: 72px 40px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  overflow: hidden;
}

.quiz-hero-inner { max-width: 560px; position: relative; z-index: 1; }

.quiz-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: var(--c-primary-soft);
  border: 1px solid rgba(37,99,235,0.20);
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.quiz-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw + 1rem, 3.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--c-title);
  margin: 0 0 18px;
}
.quiz-hero-title span { color: var(--c-primary); }

.quiz-hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--c-muted);
  margin: 0 0 36px;
  max-width: 440px;
}

.quiz-hero-stats { display: flex; align-items: center; gap: 24px; }
.quiz-stat { display: flex; flex-direction: column; gap: 2px; }
.quiz-stat-num { font-size: 1.25rem; font-weight: 700; color: var(--c-title); line-height: 1; }
.quiz-stat-label {
  font-size: 0.70rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-muted);
}
.quiz-stat-divider { width: 1px; height: 32px; background: var(--c-border); }

.quiz-hero-graphic { position: relative; width: 200px; height: 200px; flex-shrink: 0; color: var(--c-primary); }

.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.12;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse-ring 3s ease-in-out infinite;
}
.hero-ring--1 { width: 80px;  height: 80px; }
.hero-ring--2 { width: 130px; height: 130px; animation-delay: .5s; }
.hero-ring--3 { width: 190px; height: 190px; animation-delay: 1s; }

@keyframes pulse-ring {
  0%, 100% { opacity: .12; transform: translate(-50%,-50%) scale(1); }
  50%       { opacity: .22; transform: translate(-50%,-50%) scale(1.04); }
}

.hero-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 80px; height: 80px;
  color: var(--c-primary);
}

/* Quiz listing body */
.quiz-body {
  max-width: var(--max-w);
  margin: 0 auto;
}

.quiz-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 24px;
}

/* Quiz card */
.quiz-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .22s ease, transform .22s ease, border-color .22s ease;
  animation: cardIn .4s ease-out both;
  animation-delay: calc(var(--card-index, 1) * 60ms);
}

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

.quiz-card-content { padding: 20px; }

.quiz-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--c-primary-soft);
}
.quiz-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.quiz-card:hover .quiz-card-thumb img { transform: scale(1.04); }

.quiz-card-thumb-overlay {
  position: absolute;
  inset: 0;
}

.quiz-card-thumb-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-primary);
  background: linear-gradient(135deg, var(--c-primary-soft) 0%, #dbeafe 100%);
}

.quiz-card-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.quiz-card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--c-title);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}

.quiz-card h3 {direction: rtl; text-align: right; font-size: 1.05rem; margin: 10px 0; }
.quiz-date    { font-size: 0.76rem; color: var(--c-muted); }
.quiz-meta    { font-size: 0.86rem; color: var(--c-muted); margin-bottom: 18px; }

.quiz-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.quiz-btn,
.quiz-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  background: var(--c-primary);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: background .2s ease, box-shadow .2s ease, gap .2s ease;
}
.quiz-btn:hover,
.quiz-card-btn:hover {
  background: var(--c-primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,0.35);
  gap: 12px;
  color: #fff;
}
.quiz-card-btn svg { transition: transform .2s ease; }
.quiz-card-btn:hover svg { transform: translateX(3px); }

.quiz-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
}

/* Quiz empty state */
.quiz-empty { text-align: center; padding: 80px 20px; color: var(--c-muted); }
.quiz-empty-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--c-primary-soft);
  color: var(--c-primary);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 24px;
}
.quiz-empty h3 { font-size: 1.1rem; font-weight: 600; color: var(--c-body); margin: 0 0 8px; }
.quiz-empty p  { font-size: 0.94rem; margin: 0; }

/* Listing pagination */
.quiz-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.quiz-pagination a,
.quiz-pagination span,
.quiz-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--c-border);
  background: var(--c-surface);
  color: var(--c-muted);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  line-height: 1;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.quiz-pagination a:hover,
.quiz-pagination .page-numbers:hover { border-color: var(--c-primary); color: var(--c-primary); background: var(--c-primary-soft); }
.quiz-pagination .current,
.quiz-pagination .page-numbers.current {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  pointer-events: none;
}
.quiz-pagination .dots,
.quiz-pagination .page-numbers.dots { border-color: transparent; background: transparent; pointer-events: none; color: var(--c-muted); }


/* ═══════════════════════════════════════════════════════════
   ███████ ██ ███    ██  ██████  ██      ███████
   ██      ██ ████   ██ ██       ██      ██
   ███████ ██ ██ ██  ██ ██   ███ ██      █████
        ██ ██ ██  ██ ██ ██    ██ ██      ██
   ███████ ██ ██   ████  ██████  ███████ ███████

   QSM SINGLE QUIZ PAGE — REDESIGNED
═══════════════════════════════════════════════════════════ */

/* ── Keyframes ─────────────────────────────────────────── */
@keyframes quizFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes quizSlideIn {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes quizPop {
  0%   { transform: scale(0.94); opacity: 0; }
  60%  { transform: scale(1.02); }
  100% { transform: scale(1);    opacity: 1; }
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.6; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes checkmark {
  from { stroke-dashoffset: 30; }
  to   { stroke-dashoffset: 0; }
}
.qsm-hint-wrapper .qsm-hint-toggle{
  color: var(--c-primary) !important;
}
.qmn_quiz_container .qmn_btn, .qmn_quiz_container .btn{
  background: var(--c-primary) !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: var(--radius-xs) !important;
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  transition: background .2s ease, box-shadow .2s ease, gap .2s ease !important;
}
.qmn_quiz_container .qmn_btn:hover, .qmn_quiz_container .btn:hover{
  background: var(--c-primary-dark) !important;
}

.quiz-page .go-to{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;

  color: var(--c-primary);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
  margin-top: auto;
  transition: background .2s ease, box-shadow .2s ease, gap .2s ease;
}
/* ── Quiz page shell ───────────────────────────────────── */
.quiz-single-wrap {
  max-width: 780px;
  margin: 40px auto 80px;
  background: transparent;
  animation: quizFadeUp .55s cubic-bezier(.22,1,.36,1) both;
  direction: rtl;
  text-align: right;
}

.quiz-single-body {
  padding: 0;
}

/* ── Quiz header card ──────────────────────────────────── */
.quiz-single-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw + 0.6rem, 1.9rem);
  font-weight: 800;
  color: var(--c-title);
  line-height: 1.25;
  letter-spacing: -0.035em;
  text-align: center;
  /* Decorative accent line */
  padding: 28px 32px 26px;
  position: relative;
  overflow: hidden;
}


/* ── QSM quiz container ────────────────────────────────── */
.qmn_quiz_container,
.qsm-quiz-container {
  background: transparent !important;
}

/* ── Quiz begin / welcome card ─────────────────────────── */
.qsm-page .quiz_begin,
.quiz_begin {
  border-top: none;
  border-radius: 0;
  margin-bottom: 0;
  border-left: none;
  animation: quizFadeUp .45s .1s ease both;
}

.mlw_qmn_message_before p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* ── Question pages ────────────────────────────────────── */
.qsm-question-page {
  border-top: none;
  border-radius: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
  animation: quizFadeUp .4s ease both;
}

/* ── Individual question wrapper ───────────────────────── */
.qsm-question-wrapper {
  padding: 28px 0;
  border-bottom: 1px solid rgba(15,23,42,0.07);
  animation: quizSlideIn .35s ease both;
}

.qsm-question-wrapper:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

/* Question number badge */
.mlw_qmn_question_number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: var(--c-primary);
  font-size: 0.78rem;
  font-weight: 800;
  margin-right: 12px;
  vertical-align: middle;
  flex-shrink: 0;
  font-family: var(--font-display);
}

/* Question stem (above options) */
.mlw_qmn_new_question {
  display: inline;
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-title);
  line-height: 1.55;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

/* Supplementary question description (e.g. fill-in-blank text) */
.mlw_qmn_question {
  margin: 10px 0 20px;
  font-size: 0.96rem;
  color: var(--c-body);
  line-height: 1.75;
}

.mlw_qmn_question p {
  padding: 0;
  margin: 0;
  line-height: 1.75 !important;
}

/* ── Video embed ───────────────────────────────────────── */
.mlw_qmn_question iframe,
.quiz_section iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: var(--radius-md);
  margin: 16px 0 4px;
  display: block;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

/* ── Answer options ────────────────────────────────────── */
.qmn_radio_answers,
.qmn_check_answers {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

/* Individual option */
.qmn_mc_answer_wrap,
.qsm_check_answer {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: var(--c-bg);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    border-color .2s ease,
    background   .2s ease,
    transform    .2s cubic-bezier(.22,1,.36,1),
    box-shadow   .2s ease;
}

/* Hover left accent line */
.qmn_mc_answer_wrap::before,
.qsm_check_answer::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--c-primary);
  opacity: 0;
  transition: opacity .2s ease;
}

.qmn_mc_answer_wrap:hover,
.qsm_check_answer:hover {
  border-color: rgba(37,99,235,0.35);
  background: rgba(37,99,235,0.04);
  transform: translateX(5px);
  box-shadow: 0 4px 14px rgba(37,99,235,0.08);
}

.qmn_mc_answer_wrap:hover::before,
.qsm_check_answer:hover::before { opacity: 1; }

/* Selected state */
.qmn_mc_answer_wrap:has(input:checked),
.qsm_check_answer:has(input:checked) {
  border-color: var(--c-primary);
  background: rgba(37,99,235,0.07);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12), 0 4px 16px rgba(37,99,235,0.10);
  transform: translateX(5px);
}

.qmn_mc_answer_wrap:has(input:checked)::before,
.qsm_check_answer:has(input:checked)::before { opacity: 1; }

/* Radio / checkbox inputs */
input[type="radio"],
input[type="checkbox"] {
  cursor: pointer;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: var(--c-primary);
  margin: 0;
}

/* Option label */
.qsm-input-label {
  cursor: pointer;
  flex: 1;
  font-size: 0.95rem;
  color: var(--c-title);
  margin: 0;
  font-weight: 500;
  line-height: 1.5;
  transition: color .2s ease;
}

.qmn_mc_answer_wrap:has(input:checked) .qsm-input-label,
.qsm_check_answer:has(input:checked) .qsm-input-label {
  color: var(--c-primary);
  font-weight: 700;
}

/* ── Fill-in-blank ─────────────────────────────────────── */
.qsm-align-fill-in-blanks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  line-height: 2;
}

.qsm-align-fill-in-blanks input[type="text"] {
  padding: 9px 16px;
  border: 2px solid var(--c-border);
  border-radius: var(--radius-xs);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--c-primary);
  font-family: var(--font-body);
  min-width: 140px;
  background: var(--c-bg);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.qsm-align-fill-in-blanks input[type="text"]:focus {
  outline: none;
  border-color: var(--c-primary);
  background: rgba(37,99,235,0.04);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

/* ── Hint widget ───────────────────────────────────────── */
.qsm-hint-wrapper {
  margin-top: 16px;
}

.qsm-hint-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: #fff;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.80rem;
  font-weight: 600;
  color: var(--c-muted);
  font-family: var(--font-body);
  transition: background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.qsm-hint-toggle:hover {
  background: #fffbf0;
  border-color: #f59e0b;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(245,158,11,0.15);
}

.qsm-hint-icon svg { color: currentColor; }

.qsm-hint-panel {
  margin-top: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245,158,11,0.25);
  border-left: 4px solid #f59e0b;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.90rem;
  font-weight: 500;
  color: #78350f;
  line-height: 1.6;
  animation: quizPop .25s ease both;
}

/* ── Page counter ──────────────────────────────────────── */
.pages_count {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 7px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-muted);
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.pages_count::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-primary);
  animation: progressPulse 2s ease-in-out infinite;
}

/* ── QSM navigation bar ────────────────────────────────── */
.qsm-navigation,
.qsm-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 32px;
  border-top: none;
  flex-wrap: wrap;
  flex-direction: row-reverse;
}

.qsm-page-counter {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--c-muted);
  margin-right: auto;
}

/* ── QSM Buttons ───────────────────────────────────────── */
.qmn_btn,
.qsm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  min-width: 130px;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.01em;
  transition:
    transform    .2s cubic-bezier(.22,1,.36,1),
    box-shadow   .2s ease,
    background   .2s ease;
}

/* Shimmer sweep on primary buttons */
.qsm-primary::after,
.qsm-next-btn::after,
.qsm-submit-btn::after,
.qsm-start-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.22) 50%,
    transparent 70%
  );
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity .25s ease;
}
.qsm-primary:hover::after,
.qsm-next-btn:hover::after,
.qsm-submit-btn:hover::after,
.qsm-start-btn:hover::after {
  opacity: 1;
  animation: shimmer .7s ease forwards;
}

/* Primary (Start / Next / Submit) */
.qsm-primary,
.qsm-next-btn,
.qsm-submit-btn,
.qsm-start-btn {
  background: linear-gradient(180deg, #3b82f6 0%, var(--c-primary) 100%);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,99,235,0.30), 0 1px 0 rgba(255,255,255,0.14) inset;
  border: 1px solid rgba(37,99,235,0.40);
}
.qsm-primary:hover,
.qsm-next-btn:hover,
.qsm-submit-btn:hover,
.qsm-start-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.40);
  color: #fff;
  background: linear-gradient(180deg, #2f74ff 0%, var(--c-primary-dark) 100%);
}
.qsm-primary:active,
.qsm-next-btn:active,
.qsm-submit-btn:active,
.qsm-start-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37,99,235,0.22);
}

/* Secondary (Previous) */
.qsm-secondary,
.qsm-previous-btn {
  background: #fff;
  color: var(--c-primary);
  border: 1.5px solid rgba(37,99,235,0.30) !important;
  box-shadow: var(--shadow-xs);
}
.qsm-secondary:hover,
.qsm-previous-btn:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37,99,235,0.14);
  color: var(--c-primary);
}

/* ── Error messages ────────────────────────────────────── */
.qsm-error-message,
.qmn_error_message_section {
  padding: 14px 18px;
  background: #fef2f2;
  border: 1px solid rgba(239,68,68,0.20);
  border-left: 4px solid #ef4444;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: #991b1b;
  font-size: 0.88rem;
  font-weight: 500;
  margin: 0 32px 16px;
  animation: quizPop .25s ease both;
}
.qsm-error-message:empty,
.qmn_error_message_section:empty { display: none; }

/* ── Question section enter animation ─────────────────── */
.qsm-page    {
  animation: quizFadeUp .4s cubic-bezier(.22,1,.36,1) both;
}
.quiz_section {
  animation: quizFadeUp .45s .05s cubic-bezier(.22,1,.36,1) both;
}

/* Stagger each question wrapper */
.qsm-question-wrapper:nth-child(1) { animation-delay: .08s; }
.qsm-question-wrapper:nth-child(2) { animation-delay: .16s; }
.qsm-question-wrapper:nth-child(3) { animation-delay: .24s; }
.qsm-question-wrapper:nth-child(4) { animation-delay: .32s; }
.qsm-question-wrapper:nth-child(5) { animation-delay: .40s; }

/* ── Results page ──────────────────────────────────────── */
.qsm_results_page,
.qmn_results_page {
  max-width: 780px;
  margin: 0 auto 80px;
  animation: quizFadeUp .5s ease both;
}

.qsm-results-page {
  overflow: hidden;
}

/* Results Q&A section */
.qsm_questions_answers_section { padding: 8px 0; }

.qmn_question_answer {
  padding: 22px 28px;
  transition: background .2s ease;
}
.qmn_question_answer:hover { background: var(--c-bg); }

.qsm-add-border-bottom {
  border-bottom: 1px solid rgba(15,23,42,0.07);
}

/* Question title in results */
.qsm-result-question-title {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--c-title);
  line-height: 1.5;
}

/* Result description (fill-in-blank) */
.qsm-result-question-description {
  font-size: 0.88rem;
  color: var(--c-muted);
  margin-top: 4px;
  display: block;
}

/* Answer option pills in results */
.qsm-text-correct-option,
.qsm-text-simple-option,
.qsm-text-wrong-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  margin: 4px 4px 4px 0;
  border: 1px solid transparent;
  transition: transform .15s ease;
}
.qsm-text-correct-option:hover,
.qsm-text-simple-option:hover,
.qsm-text-wrong-option:hover { transform: translateY(-1px); }

/* Correct answer — green */
.qsm-text-correct-option {
  background: rgba(16,185,129,0.10);
  border-color: rgba(16,185,129,0.25);
  color: #065f46;
}
.qsm-text-correct-option::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

/* Wrong answer (user got wrong) — red */
.qsm-text-wrong-option {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.22);
  color: #991b1b;
}
.qsm-text-wrong-option::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #ef4444;
  flex-shrink: 0;
}

/* Simple (not selected) — neutral */
.qsm-text-simple-option {
  background: var(--c-bg);
  border-color: var(--c-border);
  color: var(--c-muted);
}

/* Retake button */
.qsm_retake_button,
#qsm_retake_button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  background: linear-gradient(180deg, #3b82f6 0%, var(--c-primary) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.94rem;
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  margin: 20px 28px 28px;
  box-shadow: 0 4px 16px rgba(37,99,235,0.30);
  transition: transform .2s ease, box-shadow .2s ease;
}
.qsm_retake_button:hover,
#qsm_retake_button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.40);
}

/* ─────────────────────────────────────────────
   TUTOR / MISC OVERRIDES
───────────────────────────────────────────── */
.container-fluid::after,
.container-narrow::after,
.container::after { content: none !important; display: none !important; }

.tutor-wrap .tutor-login-wrap { margin-top: 0 !important; }

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-visual { max-width: 560px; margin: 0 auto; }
  .course-categories { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991px) {
  body .header-default .navbar-menu { position: static; order: 3; width: 100%; }
  .navbar-nav .menu-item:not(:last-child) { width: 100%; }

  body .header-default .navbar-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15,23,42,0.50);
    z-index: 190;
    transition: opacity .25s ease;
  }
  body .header-default .navbar-nav-overlay.active { display: block; opacity: 1; }

  body .header-default .navbar .navbar-nav {
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    width: 290px;
    z-index: 200;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-right: 1px solid var(--c-border);
    padding: 18px 16px 26px;
    overflow-y: auto;
    transform: translateX(-100%);
    pointer-events: none;
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    list-style: none;
  }
  body .header-default .navbar .navbar-nav.active { transform: translateX(0); pointer-events: auto; }

  body .header-default .navbar .navbar-nav .menu-item > a {
    display: block;
    width: 100%;
    padding: 11px 12px;
    border-radius: var(--radius-md);
    font-size: 0.98rem;
  }
  body .header-default .navbar .navbar-nav .menu-item > a:hover {
    background: var(--c-primary-soft);
    color: var(--c-primary);
  }

  body .header-default .navbar-toggler { display: inline-flex; }

  .language-skills .skills-grid { grid-template-columns: repeat(2, 1fr); }

  /* Quiz hero stacked */
  .quiz-hero { flex-direction: column; padding: 48px 24px 40px; text-align: center; }
  .quiz-hero-inner { max-width: 100%; }
  .quiz-hero-subtitle { margin-left: auto; margin-right: auto; }
  .quiz-hero-stats { justify-content: center; }
  .quiz-hero-graphic { display: none; }
  .quiz-body { padding: 36px 20px 60px; }

  /* Footer centered */
  body .custom-footer,
  body .custom-footer * { text-align: center; }
  body .custom-footer .col-xl-4,
  body .custom-footer .col-lg-4,
  body .custom-footer .col-md-6,
  body .custom-footer .col-md-12,
  body .custom-footer .col-sm-12 { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  body .custom-footer .footer-brand { padding-right: 0; margin-bottom: 30px; display: flex; flex-direction: column; align-items: center; }
  body .custom-footer .footer-title::after { left: 50%; transform: translateX(-50%); }
  body .custom-footer .footer-description { max-width: 100%; margin-left: auto; margin-right: auto; }
  body .custom-footer .footer-menu li { text-align: center; }
  body .custom-footer .footer-menu li a { justify-content: center; }
  body .custom-footer .footer-subscribe-form { margin-left: auto; margin-right: auto; }
  body .custom-footer .footer-social { justify-content: center; }
  body .custom-footer .footer-bottom-content { justify-content: center; text-align: center; }

  body .custom-footer .footer-widgets { padding: 70px 0 50px; }
  body .custom-footer .footer-brand { padding-right: 0; margin-bottom: 20px; }
  body .custom-footer .footer-title { margin-top: 10px; }
  body .custom-footer .footer-description { max-width: 100%; }
}

@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .section { padding: 56px 0 !important; }
  .hero-section { padding: 56px 0 50px; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--c-border); border-top: 1px solid var(--c-border); }
  .stat-item:last-child   { border-top: 1px solid var(--c-border); }

  .course-categories { grid-template-columns: repeat(2, 1fr); }
  .courses-grid      { grid-template-columns: 1fr; }
  .lessons-grid      { grid-template-columns: 1fr; }
  .process-grid      { grid-template-columns: 1fr; }
  .quiz-grid         { grid-template-columns: repeat(2, 1fr); }

  .lesson-card { flex-direction: column; gap: 14px; }
  .cta-inner   { flex-direction: column; text-align: center; }
  .cta-actions { justify-content: center; }

  .language-skills .skills-header { margin-bottom: 24px; }

  .digital-products-header { flex-direction: column; align-items: flex-start; gap: 24px; padding: var(--space-7) 16px; }
  .digital-products-header .section-header { max-width: 100%; }
  .digital-products-header > div:last-child { max-width: 100%; }

  /* Quiz single responsive */
  .quiz-single-wrap { margin: 20px auto 60px; }
  .quiz-single-title { font-size: 1.25rem; padding: 20px 20px 18px; }
  .qsm-question-page { padding: 20px; }
  .qsm-question-wrapper { padding: 20px 0; }
  .qsm-navigation, .qsm-pagination { padding: 16px 20px; gap: 8px; }
  .qmn_btn, .qsm-btn { padding: 11px 18px; font-size: 0.88rem; min-width: 100px; }
  .qsm-page-counter { margin-right: 0; width: 100%; text-align: center; margin-bottom: 12px; }
  .qsm-error-message, .qmn_error_message_section { margin: 0 20px 14px; }
  .qmn_question_answer { padding: 16px 20px; }
  .qsm_retake_button, #qsm_retake_button { margin: 16px 20px 20px; }

  body .custom-footer { margin-top: 60px; }
  body .custom-footer .footer-widgets { padding: 60px 0 40px; }
  body .custom-footer .footer-title { font-size: 20px; margin-top: 25px; }
  body .custom-footer .footer-subscribe-form {
    flex-direction: column;
    background: transparent;
    gap: 12px;
    border-radius: 0;
    overflow: visible;
  }
  body .custom-footer .footer-subscribe-form input { background: #fff; border-radius: 12px; width: 100%; }
  body .custom-footer .footer-subscribe-form button { width: 100%; border-radius: 12px; }
  body .custom-footer .footer-social { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .quiz-grid { grid-template-columns: 1fr; gap: 16px; }
  .quiz-hero-title { font-size: 2rem; }
  .quiz-pagination a, .quiz-pagination span, .quiz-pagination .page-numbers { padding: 8px 12px; font-size: 0.80rem; }
  .qsm-navigation, .qsm-pagination { flex-direction: column; padding: 14px; }
  .qmn_btn, .qsm-btn { width: 100%; }
  .mlw_qmn_question iframe { width: 100%; }
  .qsm-text-correct-option,
  .qsm-text-simple-option,
  .qsm-text-wrong-option { font-size: 0.78rem; }
}

@media (max-width: 540px) {
  .hero-card--float { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  body .header-default .header-topbar { font-size: 0.76rem; }
  header.header-default .tutor-header-profile-submenu span[role=button] { display: none !important; }
  .course-categories { grid-template-columns: 1fr; gap: 12px; }
  .language-skills .skills-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 14px; }
}

@media (max-width: 480px) {
  body .custom-footer .footer-widgets { padding: 50px 0 35px; }
  body .custom-footer .footer-logo img { max-width: 150px; }
  body .custom-footer .footer-title { font-size: 18px; }
  body .custom-footer .footer-description,
  body .custom-footer .footer-menu li a,
  body .custom-footer .footer-bottom p { font-size: 14px; }
  body .custom-footer .footer-social { gap: 10px; }
  body .custom-footer .footer-social a { width: 40px; height: 40px; font-size: 14px; }
  body .custom-footer .footer-subscribe-form input,
  body .custom-footer .footer-subscribe-form button { font-size: 14px; }
}