
    /* ==========================================================================
       CSS VARIABLES & THEME DEFINITIONS
       ========================================================================== */
    :root {
      /* Brand Color Palette */
      --primary: #0F5132;          /* Deep Emerald Green */
      --primary-light: #166534;
      --primary-dark: #0a3822;
      --primary-glow: rgba(15, 81, 50, 0.25);
      --accent: #C9A227;           /* Warm Calligraphic Gold */
      --accent-hover: #b38f1f;
      --accent-soft: rgba(201, 162, 39, 0.15);
      --accent-glow: rgba(201, 162, 39, 0.35);

      /* Base Neutrals (Light Mode Default) */
      --bg-cream: #FAF7F0;
      --bg-surface: #FFFFFF;
      --bg-surface-elevated: #FFFFFF;
      --bg-card: #FFFFFF;
      --text-main: #1F2937;
      --text-muted: #5A6A80;
      --border-color: rgba(15, 81, 50, 0.12);
      --border-focus: var(--accent);
      --badge-bg: rgba(15, 81, 50, 0.08);

      /* Typography */
      --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      --font-ur: 'Noto Nastaliq Urdu', 'Jameel Noori Nastaleeq', 'Urdu Typesetting', serif;

      /* UI Tokens */
      --radius-sm: 8px;
      --radius-md: 12px;
      --radius-lg: 16px;
      --radius-xl: 24px;
      --radius-full: 9999px;
      --shadow-sm: 0 2px 8px rgba(15, 81, 50, 0.05);
      --shadow-md: 0 8px 24px -4px rgba(15, 81, 50, 0.08);
      --shadow-lg: 0 16px 36px -6px rgba(15, 81, 50, 0.12), 0 0 0 1px var(--border-color);
      --shadow-gold: 0 12px 28px -6px rgba(201, 162, 39, 0.3);
      --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

      /* Geometric Hero Pattern (SVG Data URI) */
      --pattern-overlay: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%230F5132' fill-opacity='0.035' fill-rule='evenodd'%3E%3Cpath d='M30 30L15 15H0v15l15 15h15L45 30 30 15V0h15L60 15v15L45 45h15v15H45L30 45 15 60H0V45l15-15h15z'/%3E%3C/g%3E%3C/svg%3E");
    }

    /* Dark Mode Theme Overrides */
    [data-theme="dark"] {
      --bg-cream: #0B1612;
      --bg-surface: #12241C;
      --bg-surface-elevated: #172F24;
      --bg-card: #14271F;
      --text-main: #F3F4F6;
      --text-muted: #9CA3AF;
      --border-color: rgba(201, 162, 39, 0.18);
      --badge-bg: rgba(201, 162, 39, 0.12);
      --primary: #198754;
      --primary-light: #20a065;
      --primary-dark: #0d4a2d;
      --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
      --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
      --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border-color);

      --pattern-overlay: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23C9A227' fill-opacity='0.04' fill-rule='evenodd'%3E%3Cpath d='M30 30L15 15H0v15l15 15h15L45 30 30 15V0h15L60 15v15L45 45h15v15H45L30 45 15 60H0V45l15-15h15z'/%3E%3C/g%3E%3C/svg%3E");
    }

    /* ==========================================================================
       RESET & BASE TYPOGRAPHY
       ========================================================================== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
      font-size: 16px;
    }

    body {
      font-family: var(--font-en);
      background-color: var(--bg-cream);
      color: var(--text-main);
      line-height: 1.6;
      transition: background-color 0.3s ease, color 0.3s ease;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
      background-image: var(--pattern-overlay);
      background-repeat: repeat;
    }

    /* Urdu Language Specific Typography */
    [lang="ur"] {
      font-family: var(--font-ur);
      direction: rtl;
      line-height: 2.1;
      font-feature-settings: "kern" 1, "calt" 1;
    }

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

    button {
      font-family: inherit;
      cursor: pointer;
      border: none;
      outline: none;
    }

    img, svg {
      vertical-align: middle;
      display: inline-block;
    }

    .container {
      width: 100%;
      max-width: 1240px;
      margin-left: auto;
      margin-right: auto;
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }

    /* Accessibility focus ring */
    :focus-visible {
      outline: 3px solid var(--accent);
      outline-offset: 3px;
    }

    /* Section Header Reusable Utility */
    .section-head {
      text-align: center;
      max-width: 680px;
      margin: 0 auto 3rem auto;
    }

    .badge-sub {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
      padding: 0.35rem 0.95rem;
      background: var(--badge-bg);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      color: var(--accent);
      font-size: 0.825rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      margin-bottom: 0.75rem;
    }

    .section-title {
      font-size: 2.15rem;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.25;
      letter-spacing: -0.02em;
      margin-bottom: 0.85rem;
    }

    .section-lead {
      color: var(--text-muted);
      font-size: 1.05rem;
      line-height: 1.6;
    }

    /* Primary and Secondary Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.55rem;
      padding: 0.85rem 1.65rem;
      font-size: 0.95rem;
      font-weight: 600;
      border-radius: var(--radius-md);
      transition: var(--transition);
      white-space: nowrap;
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--primary), var(--primary-light));
      color: #FFFFFF;
      box-shadow: 0 4px 14px var(--primary-glow);
      border: 1px solid rgba(255, 255, 255, 0.15);
    }

    .btn-primary:hover {
      background: linear-gradient(135deg, var(--primary-light), var(--primary));
      transform: translateY(-2px);
      box-shadow: 0 8px 20px var(--primary-glow);
    }

    .btn-gold {
      background: linear-gradient(135deg, #DFB93C, var(--accent));
      color: #0c1813;
      font-weight: 700;
      box-shadow: var(--shadow-gold);
    }

    .btn-gold:hover {
      background: linear-gradient(135deg, var(--accent), #b38f1f);
      transform: translateY(-2px);
      box-shadow: 0 10px 24px rgba(201, 162, 39, 0.45);
    }

    .btn-secondary {
      background: var(--bg-surface);
      color: var(--text-main);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
    }

    .btn-secondary:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: translateY(-2px);
      background: var(--bg-surface-elevated);
    }

    /* ==========================================================================
       1. STICKY HEADER
       ========================================================================== */
    .site-header {
      position: sticky;
      top: 0;
      z-index: 1000;
      background: rgba(250, 247, 240, 0.9);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      border-bottom: 1px solid var(--border-color);
      transition: background-color 0.3s ease;
    }

    [data-theme="dark"] .site-header {
      background: rgba(11, 22, 18, 0.9);
    }

    .header-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 76px;
      gap: 1.5rem;
    }

    /* Brand Logo */
    .brand-logo {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      font-weight: 800;
      font-size: 1.35rem;
      color: var(--text-main);
      letter-spacing: -0.02em;
    }

    .logo-emblem {
      width: 44px;
      height: 44px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, var(--primary), var(--primary-dark));
      border: 1.5px solid var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 12px var(--primary-glow);
    }

    .logo-emblem .urdu-char {
      font-family: var(--font-ur);
      color: var(--accent);
      font-size: 1.9rem;
      line-height: 1;
      transform: translateY(-2px);
    }

    .logo-text-free {
      color: var(--accent);
      font-weight: 800;
    }

    /* Nav Links */
    .site-nav {
      display: none;
    }

    .nav-list {
      display: flex;
      list-style: none;
      align-items: center;
      gap: 1.75rem;
    }

    .nav-link {
      font-size: 0.925rem;
      font-weight: 500;
      color: var(--text-muted);
      position: relative;
      padding: 0.25rem 0;
    }

    .nav-link:hover, .nav-link.active {
      color: var(--primary);
    }

    [data-theme="dark"] .nav-link:hover,
    [data-theme="dark"] .nav-link.active {
      color: var(--accent);
    }

    .nav-link::after {
      content: '';
      position: absolute;
      bottom: -4px;
      left: 0;
      width: 0;
      height: 2px;
      background: var(--accent);
      transition: width 0.25s ease;
    }

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

    .header-actions {
      display: flex;
      align-items: center;
      gap: 0.85rem;
    }

    /* Theme Toggle Button */
    .theme-toggle-btn {
      width: 42px;
      height: 42px;
      border-radius: var(--radius-md);
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      color: var(--text-main);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: var(--transition);
    }

    .theme-toggle-btn:hover {
      border-color: var(--accent);
      color: var(--accent);
      transform: rotate(15deg);
    }

    .theme-toggle-btn svg {
      width: 20px;
      height: 20px;
    }

    .theme-icon-dark { display: none; }
    [data-theme="dark"] .theme-icon-light { display: none; }
    [data-theme="dark"] .theme-icon-dark { display: block; }

    /* Mobile Hamburger Menu Toggle */
    .mobile-menu-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 42px;
      height: 42px;
      border-radius: var(--radius-md);
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      color: var(--text-main);
    }

    @media (min-width: 1024px) {
      .site-nav { display: block; }
      .mobile-menu-btn { display: none; }
    }

    /* Mobile Navigation Drawer */
    .mobile-drawer {
      display: none;
      position: fixed;
      top: 76px;
      left: 0;
      width: 100%;
      background: var(--bg-surface);
      border-bottom: 2px solid var(--accent);
      padding: 1.5rem;
      box-shadow: var(--shadow-lg);
      z-index: 999;
    }

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

    .mobile-drawer ul {
      list-style: none;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .mobile-drawer a {
      font-size: 1.05rem;
      font-weight: 600;
      color: var(--text-main);
      display: block;
      padding: 0.5rem 0;
      border-bottom: 1px solid var(--border-color);
    }

    /* ==========================================================================
       2. HERO SECTION
       ========================================================================== */
    .hero-section {
      position: relative;
      padding: 4.5rem 0 5rem 0;
      overflow: hidden;
    }

    .hero-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3.5rem;
      align-items: center;
    }

    @media (min-width: 992px) {
      .hero-grid {
        grid-template-columns: 1.15fr 0.85fr;
      }
    }

    .hero-content {
      position: relative;
      z-index: 2;
    }

    .hero-pill {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-full);
      padding: 0.4rem 1.1rem;
      font-size: 0.875rem;
      font-weight: 600;
      color: var(--primary);
      margin-bottom: 1.5rem;
      box-shadow: var(--shadow-sm);
    }

    [data-theme="dark"] .hero-pill {
      color: var(--accent);
    }

    .hero-pill-badge {
      background: var(--accent);
      color: #0c1813;
      padding: 0.2rem 0.65rem;
      border-radius: var(--radius-full);
      font-size: 0.75rem;
      font-weight: 800;
    }

    .hero-title {
      font-size: 2.65rem;
      font-weight: 800;
      line-height: 1.15;
      color: var(--text-main);
      letter-spacing: -0.03em;
      margin-bottom: 1.25rem;
    }

    @media (min-width: 640px) {
      .hero-title {
        font-size: 3.45rem;
      }
    }

    .hero-title-highlight {
      color: var(--primary);
      position: relative;
      display: inline-block;
    }

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

    .hero-subtitle {
      font-size: 1.15rem;
      color: var(--text-muted);
      line-height: 1.7;
      margin-bottom: 2.25rem;
      max-width: 580px;
    }

    .hero-ctas {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      margin-bottom: 2.5rem;
    }

    .hero-trust-indicators {
      display: flex;
      align-items: center;
      gap: 1.5rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--border-color);
    }

    .trust-avatars {
      display: flex;
    }

    .trust-avatar {
      width: 36px;
      height: 36px;
      border-radius: var(--radius-full);
      border: 2px solid var(--bg-surface);
      margin-left: -8px;
      background: var(--primary-light);
      display: flex;
      align-items: center;
      justify-content: center;
      color: #fff;
      font-size: 0.75rem;
      font-weight: 700;
    }

    .trust-avatar:first-child { margin-left: 0; }
    .trust-avatar:nth-child(2) { background: var(--accent); color: #000; }
    .trust-avatar:nth-child(3) { background: #3b82f6; }

    .trust-text {
      font-size: 0.875rem;
      color: var(--text-muted);
    }

    .trust-text strong {
      color: var(--text-main);
    }

    /* Hero Right: Decorative Calligraphy Showcase */
    .hero-visual {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .hero-art-card {
      position: relative;
      width: 100%;
      max-width: 440px;
      aspect-ratio: 1 / 1.08;
      border-radius: var(--radius-xl);
      background: linear-gradient(145deg, rgba(15, 81, 50, 0.95), rgba(10, 56, 34, 0.98));
      border: 2px solid rgba(201, 162, 39, 0.4);
      box-shadow: 0 25px 60px -12px rgba(15, 81, 50, 0.35), 0 0 30px rgba(201, 162, 39, 0.2);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 2.5rem;
      text-align: center;
      color: #FFFFFF;
      overflow: hidden;
    }

    .hero-art-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: var(--pattern-overlay);
      opacity: 0.25;
      pointer-events: none;
    }

    .hero-calligraphy-giant {
      font-family: var(--font-ur);
      font-size: 6.5rem;
      line-height: 1.25;
      color: var(--accent);
      text-shadow: 0 4px 24px rgba(201, 162, 39, 0.4);
      margin-bottom: 0.5rem;
      transform: scale(1.05);
      transition: transform 0.4s ease;
      cursor: default;
    }

    .hero-calligraphy-giant:hover {
      transform: scale(1.15) rotate(-2deg);
    }

    .hero-art-translit {
      font-size: 1.25rem;
      font-weight: 700;
      letter-spacing: 0.15em;
      text-transform: uppercase;
      color: #FFFFFF;
      margin-bottom: 0.35rem;
    }

    .hero-art-meaning {
      font-size: 0.925rem;
      color: rgba(255, 255, 255, 0.8);
      max-width: 260px;
    }

    /* Floating highlight tags */
    .floating-card-tag {
      position: absolute;
      background: var(--bg-surface);
      color: var(--text-main);
      padding: 0.75rem 1.15rem;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-lg);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      font-size: 0.85rem;
      font-weight: 600;
      z-index: 5;
      animation: floatMotion 4s ease-in-out infinite alternate;
    }

    .tag-top-right {
      top: -16px;
      right: -12px;
      animation-delay: 0.5s;
    }

    .tag-bottom-left {
      bottom: -16px;
      left: -12px;
      animation-delay: 1.5s;
    }

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

    .tag-icon-circle {
      width: 34px;
      height: 34px;
      border-radius: var(--radius-full);
      background: var(--accent-soft);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.1rem;
    }

    /* ==========================================================================
       3. STATS BAR SECTION
       ========================================================================== */
    .stats-section {
      padding: 1.25rem 0;
      position: relative;
      z-index: 10;
    }

    .stats-bar-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-md);
      padding: 1.75rem 2rem;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
    }

    @media (min-width: 768px) {
      .stats-bar-card {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .stat-item {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .stat-icon-wrap {
      width: 50px;
      height: 50px;
      border-radius: var(--radius-md);
      background: var(--accent-soft);
      color: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .stat-number {
      font-size: 1.45rem;
      font-weight: 800;
      color: var(--text-main);
      line-height: 1.2;
    }

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

    /* ==========================================================================
       4. COURSE CARDS GRID (MAIN FOCUS)
       ========================================================================== */
    .courses-section {
      padding: 6rem 0;
    }

    .courses-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.75rem;
    }

    @media (min-width: 640px) {
      .courses-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (min-width: 1100px) {
      .courses-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .course-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 1.75rem 1.5rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      position: relative;
      overflow: hidden;
      transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
                  box-shadow 0.3s ease,
                  border-color 0.3s ease;
    }

    .course-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 4px;
      background: linear-gradient(90deg, transparent, var(--accent), transparent);
      opacity: 0;
      transition: opacity 0.3s ease;
    }

    .course-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 18px 36px -10px rgba(15, 81, 50, 0.15),
                  0 0 0 1.5px var(--accent);
      border-color: var(--accent);
    }

    .course-card:hover::before {
      opacity: 1;
    }

    /* Top Row of Card: Icon & Meta Badges */
    .card-top-row {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 1.25rem;
    }

    .card-urdu-icon {
      width: 58px;
      height: 58px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, rgba(15, 81, 50, 0.08), rgba(201, 162, 39, 0.12));
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s ease;
    }

    [data-theme="dark"] .card-urdu-icon {
      background: rgba(255, 255, 255, 0.06);
    }

    .card-urdu-glyph {
      font-family: var(--font-ur);
      font-size: 2.2rem;
      color: var(--primary);
      line-height: 1;
      transform: translateY(-2px);
    }

    [data-theme="dark"] .card-urdu-glyph {
      color: var(--accent);
    }

    .course-card:hover .card-urdu-icon {
      transform: scale(1.12) rotate(-3deg);
    }

    .card-badges {
      display: flex;
      flex-direction: column;
      align-items: flex-end;
      gap: 0.35rem;
    }

    .lesson-badge {
      font-size: 0.725rem;
      font-weight: 700;
      padding: 0.2rem 0.55rem;
      border-radius: var(--radius-full);
      background: var(--badge-bg);
      color: var(--primary);
      border: 1px solid var(--border-color);
    }

    [data-theme="dark"] .lesson-badge {
      color: var(--accent);
    }

    .difficulty-tag {
      font-size: 0.7rem;
      font-weight: 600;
      text-transform: uppercase;
      letter-spacing: 0.05em;
      color: var(--text-muted);
    }

    /* Titles */
    .card-title-en {
      font-size: 1.18rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 0.2rem;
      line-height: 1.3;
    }

    .card-title-ur {
      font-family: var(--font-ur);
      font-size: 1.35rem;
      color: var(--accent);
      margin-bottom: 0.75rem;
      display: block;
      line-height: 1.8;
    }

    .card-desc {
      font-size: 0.88rem;
      color: var(--text-muted);
      line-height: 1.5;
      margin-bottom: 1.35rem;
      flex-grow: 1;
    }

    /* Progress Indicator */
    .card-progress-wrap {
      margin-bottom: 1.25rem;
    }

    .progress-meta {
      display: flex;
      justify-content: space-between;
      font-size: 0.75rem;
      font-weight: 600;
      color: var(--text-muted);
      margin-bottom: 0.4rem;
    }

    .progress-bar-bg {
      width: 100%;
      height: 6px;
      background: rgba(0, 0, 0, 0.06);
      border-radius: var(--radius-full);
      overflow: hidden;
    }

    [data-theme="dark"] .progress-bar-bg {
      background: rgba(255, 255, 255, 0.1);
    }

    .progress-bar-fill {
      height: 100%;
      background: linear-gradient(90deg, var(--primary), var(--accent));
      border-radius: var(--radius-full);
      transition: width 0.6s ease;
    }

    /* Card Footer Link */
    .card-action-link {
      display: inline-flex;
      align-items: center;
      gap: 0.4rem;
      font-size: 0.925rem;
      font-weight: 700;
      color: var(--primary);
      transition: gap 0.2s ease, color 0.2s ease;
    }

    [data-theme="dark"] .card-action-link {
      color: var(--accent);
    }

    .course-card:hover .card-action-link {
      gap: 0.7rem;
      color: var(--accent);
    }

    /* ==========================================================================
       5. URDU ALPHABET PREVIEW (38 INTERACTIVE 3D FLIP CARDS)
       ========================================================================== */
    .alphabet-section {
      padding: 5.5rem 0;
      background: rgba(15, 81, 50, 0.03);
      border-top: 1px solid var(--border-color);
      border-bottom: 1px solid var(--border-color);
    }

    .alphabet-controls {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .alphabet-filter-text {
      font-size: 0.95rem;
      color: var(--text-muted);
    }

    .alphabet-audio-hint {
      display: flex;
      align-items: center;
      gap: 0.5rem;
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--accent);
      background: var(--bg-surface);
      padding: 0.35rem 0.85rem;
      border-radius: var(--radius-full);
      border: 1px solid var(--border-color);
    }

    .alphabet-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 1rem;
    }

    @media (max-width: 480px) {
      .alphabet-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
      }
    }

    /* 3D Flip Card Container */
    .letter-card-container {
      perspective: 1000px;
      height: 150px;
      cursor: pointer;
    }

    .letter-flipper {
      position: relative;
      width: 100%;
      height: 100%;
      text-align: center;
      transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
      transform-style: preserve-3d;
      border-radius: var(--radius-md);
    }

    .letter-card-container.is-flipped .letter-flipper,
    .letter-card-container:focus .letter-flipper {
      transform: rotateY(180deg);
    }

    .letter-front, .letter-back {
      position: absolute;
      width: 100%;
      height: 100%;
      backface-visibility: hidden;
      -webkit-backface-visibility: hidden;
      border-radius: var(--radius-md);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 0.75rem;
      border: 1px solid var(--border-color);
      box-shadow: var(--shadow-sm);
    }

    .letter-front {
      background: var(--bg-surface);
      color: var(--text-main);
    }

    .letter-front:hover {
      border-color: var(--accent);
      box-shadow: 0 6px 16px var(--primary-glow);
    }

    .letter-order-num {
      position: absolute;
      top: 6px;
      left: 8px;
      font-size: 0.7rem;
      font-weight: 700;
      color: var(--text-muted);
    }

    .letter-glyph-large {
      font-family: var(--font-ur);
      font-size: 2.85rem;
      color: var(--primary);
      line-height: 1.2;
    }

    [data-theme="dark"] .letter-glyph-large {
      color: var(--accent);
    }

    .letter-sound-hint {
      font-size: 0.75rem;
      color: var(--text-muted);
      font-weight: 600;
      margin-top: 0.25rem;
    }

    /* Flipped Back Side */
    .letter-back {
      background: linear-gradient(145deg, var(--primary), var(--primary-dark));
      color: #FFFFFF;
      transform: rotateY(180deg);
      border-color: var(--accent);
    }

    .letter-name-en {
      font-size: 0.9rem;
      font-weight: 800;
      color: var(--accent);
      margin-bottom: 0.15rem;
    }

    .letter-roman {
      font-size: 0.75rem;
      opacity: 0.85;
      margin-bottom: 0.35rem;
    }

    .letter-example-word {
      font-family: var(--font-ur);
      font-size: 1.25rem;
      line-height: 1.6;
      color: #FFFFFF;
    }

    .letter-example-meaning {
      font-size: 0.7rem;
      color: rgba(255, 255, 255, 0.75);
    }

    /* ==========================================================================
       6. HOW IT WORKS (3 STEPS)
       ========================================================================== */
    .how-it-works-section {
      padding: 6rem 0;
    }

    .steps-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      position: relative;
    }

    @media (min-width: 768px) {
      .steps-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .step-card {
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 2.25rem 1.75rem;
      box-shadow: var(--shadow-sm);
      text-align: center;
      position: relative;
      transition: var(--transition);
    }

    .step-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--accent);
    }

    .step-num-badge {
      width: 48px;
      height: 48px;
      border-radius: var(--radius-full);
      background: linear-gradient(135deg, var(--accent), #b38f1f);
      color: #0c1813;
      font-size: 1.2rem;
      font-weight: 800;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 1.5rem auto;
      box-shadow: var(--shadow-gold);
    }

    .step-title {
      font-size: 1.25rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 0.85rem;
    }

    .step-desc {
      font-size: 0.925rem;
      color: var(--text-muted);
      line-height: 1.6;
    }

    /* ==========================================================================
       7. PHRASE OF THE DAY SECTION
       ========================================================================== */
    .phrase-section {
      padding: 2rem 0 5rem 0;
    }

    .phrase-card {
      background: linear-gradient(135deg, var(--primary), #093320);
      border: 2px solid var(--accent);
      border-radius: var(--radius-xl);
      padding: 3rem 2rem;
      color: #FFFFFF;
      box-shadow: var(--shadow-lg);
      position: relative;
      overflow: hidden;
      text-align: center;
    }

    .phrase-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: var(--pattern-overlay);
      opacity: 0.2;
      pointer-events: none;
    }

    .phrase-tag {
      display: inline-block;
      background: rgba(201, 162, 39, 0.2);
      border: 1px solid var(--accent);
      color: var(--accent);
      padding: 0.35rem 1rem;
      border-radius: var(--radius-full);
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 1.5rem;
    }

    .phrase-urdu-large {
      font-family: var(--font-ur);
      font-size: 3.5rem;
      line-height: 1.9;
      color: var(--accent);
      text-shadow: 0 4px 18px rgba(0, 0, 0, 0.4);
      margin-bottom: 1rem;
    }

    @media (max-width: 640px) {
      .phrase-urdu-large {
        font-size: 2.6rem;
      }
    }

    .phrase-roman {
      font-size: 1.35rem;
      font-weight: 600;
      letter-spacing: -0.01em;
      margin-bottom: 0.4rem;
      color: #FFFFFF;
    }

    .phrase-english {
      font-size: 1.1rem;
      color: rgba(255, 255, 255, 0.85);
      font-style: italic;
      margin-bottom: 2rem;
    }

    .phrase-audio-btn {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      background: var(--accent);
      color: #0c1813;
      padding: 0.85rem 1.75rem;
      border-radius: var(--radius-full);
      font-weight: 700;
      font-size: 0.95rem;
      transition: var(--transition);
      box-shadow: var(--shadow-gold);
    }

    .phrase-audio-btn:hover {
      background: #dfb93c;
      transform: scale(1.05);
    }

    /* Audio playing wave animation indicator */
    .audio-waves {
      display: inline-flex;
      align-items: center;
      gap: 3px;
      height: 16px;
    }

    .audio-wave-bar {
      width: 3px;
      height: 100%;
      background: #0c1813;
      border-radius: 2px;
      animation: waveQuiet 0.8s ease-in-out infinite alternate;
    }

    .audio-wave-bar:nth-child(2) { animation-delay: 0.2s; height: 70%; }
    .audio-wave-bar:nth-child(3) { animation-delay: 0.4s; height: 100%; }

    @keyframes waveQuiet {
      0% { transform: scaleY(0.4); }
      100% { transform: scaleY(1); }
    }

    /* ==========================================================================
       8. FREE WORKSHEETS SECTION
       ========================================================================== */
    .worksheets-section {
      padding: 5.5rem 0;
      background: rgba(201, 162, 39, 0.04);
      border-top: 1px solid var(--border-color);
    }

    .worksheets-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
    }

    @media (min-width: 768px) {
      .worksheets-grid {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    .worksheet-card {
      background: var(--bg-card);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-lg);
      padding: 2rem;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      transition: var(--transition);
      position: relative;
    }

    .worksheet-card:hover {
      transform: translateY(-6px);
      box-shadow: var(--shadow-lg);
      border-color: var(--accent);
    }

    .worksheet-icon {
      width: 54px;
      height: 54px;
      border-radius: var(--radius-md);
      background: #fee2e2;
      color: #dc2626;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
    }

    [data-theme="dark"] .worksheet-icon {
      background: rgba(220, 38, 38, 0.2);
    }

    .worksheet-title {
      font-size: 1.2rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 0.5rem;
    }

    .worksheet-desc {
      font-size: 0.9rem;
      color: var(--text-muted);
      line-height: 1.6;
      margin-bottom: 1.5rem;
      flex-grow: 1;
    }

    .worksheet-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding-top: 1rem;
      border-top: 1px solid var(--border-color);
      margin-bottom: 1.25rem;
      font-size: 0.8rem;
      color: var(--text-muted);
    }

    /* ==========================================================================
       9. FAQ SECTION (ACCORDION)
       ========================================================================== */
    .faq-section {
      padding: 6rem 0;
    }

    .faq-wrapper {
      max-width: 820px;
      margin: 0 auto;
      display: flex;
      flex-direction: column;
      gap: 1rem;
    }

    .faq-item {
      background: var(--bg-surface);
      border: 1px solid var(--border-color);
      border-radius: var(--radius-md);
      overflow: hidden;
      transition: var(--transition);
    }

    .faq-item:hover {
      border-color: var(--accent);
    }

    .faq-question {
      width: 100%;
      text-align: left;
      padding: 1.35rem 1.5rem;
      background: none;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
      font-size: 1.05rem;
      font-weight: 700;
      color: var(--text-main);
    }

    .faq-icon-chevron {
      width: 24px;
      height: 24px;
      color: var(--accent);
      transition: transform 0.3s ease;
      flex-shrink: 0;
    }

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

    .faq-answer {
      max-height: 0;
      overflow: hidden;
      transition: max-height 0.35s ease-out;
      padding: 0 1.5rem;
    }

    .faq-answer-inner {
      padding-bottom: 1.35rem;
      color: var(--text-muted);
      font-size: 0.95rem;
      line-height: 1.7;
    }

    /* ==========================================================================
       10. FOOTER
       ========================================================================== */
    .site-footer {
      background: var(--bg-surface);
      border-top: 2px solid var(--border-color);
      padding: 5rem 0 2rem 0;
      color: var(--text-main);
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 3rem;
      margin-bottom: 4rem;
    }

    @media (min-width: 768px) {
      .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
      }
    }

    .footer-brand p {
      font-size: 0.925rem;
      color: var(--text-muted);
      margin-top: 1rem;
      line-height: 1.7;
      max-width: 320px;
    }

    .footer-col-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--text-main);
      margin-bottom: 1.25rem;
      letter-spacing: -0.01em;
    }

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

    .footer-links a {
      font-size: 0.88rem;
      color: var(--text-muted);
      transition: var(--transition);
    }

    .footer-links a:hover {
      color: var(--primary);
      padding-left: 4px;
    }

    [data-theme="dark"] .footer-links a:hover {
      color: var(--accent);
    }

    .footer-bottom {
      padding-top: 2rem;
      border-top: 1px solid var(--border-color);
      display: flex;
      flex-direction: column;
      gap: 1rem;
      align-items: center;
      justify-content: space-between;
      font-size: 0.85rem;
      color: var(--text-muted);
    }

    @media (min-width: 640px) {
      .footer-bottom {
        flex-direction: row;
      }
    }

    /* Toast Notification for Interactive Feedback */
    .toast-notification {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background: var(--primary-dark);
      color: #FFFFFF;
      border: 1px solid var(--accent);
      border-radius: var(--radius-md);
      padding: 0.85rem 1.4rem;
      box-shadow: var(--shadow-lg);
      font-size: 0.9rem;
      font-weight: 600;
      z-index: 9999;
      transform: translateY(100px);
      opacity: 0;
      transition: var(--transition);
      display: flex;
      align-items: center;
      gap: 0.65rem;
    }

    .toast-notification.show {
      transform: translateY(0);
      opacity: 1;
    }
  