


      /* Scroll Progress Indicator */
      .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        width: 0%;
        height: 4px;
        background: var(--gradient-primary);
        z-index: 9999;
        transition: width 0.1s ease-out;
      }

      .container {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 2rem;
      }

      .main-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem 2rem 4rem;
      }

      /* Page Header */
      .page-header {
        text-align: center;
        margin-bottom: 3rem;
        padding: 3rem 2rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-xl);
        animation: fadeInUp 0.6s ease-out;
      }


      .page-title {
        font-family: var(--font-family-brand);
        font-size: clamp(2rem, 5vw, 3.5rem);
        font-weight: 800;
        background: var(--gradient-primary);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 1rem;
      }

      .page-subtitle {
        font-size: 1.25rem;
        color: var(--text-secondary);
        font-weight: 500;
      }

      /* Section Styling */
      .lesson-section {
        margin-bottom: 3rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px);
        border-radius: var(--radius-xl);
        overflow: hidden;
        box-shadow: var(--shadow-xl);
        transition: transform var(--transition);
      }

      .lesson-section:hover {
        transform: translateY(-4px);
      }

      .section-header {
        background: var(--gradient-primary);
        color: var(--text-inverse);
        padding: 1.5rem 2rem;
      }

      .section-title {
        font-family: var(--font-family-brand);
        font-size: 1.75rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 0.75rem;
      }

      .section-content {
        padding: 2rem;
      }

      .subsection {
        margin-bottom: 2.5rem;
      }

      .subsection-title {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1.5rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      /* Example Cards */
      .example-grid {
        display: grid;
        gap: 1.5rem;
        margin-bottom: 2rem;
      }

      .example-card {
        background: var(--bg-secondary);
        border-left: 4px solid var(--primary-color);
        padding: 1.5rem;
        border-radius: var(--radius);
        transition: all var(--transition);
      }

      .example-card:hover {
        box-shadow: var(--shadow-md);
        transform: translateX(4px);
      }

      .example-type {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--primary-color);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.5rem;
      }

      .example-sentence {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 0.75rem;
        font-style: italic;
      }

      .example-explanation {
        font-size: 0.9375rem;
        color: var(--text-secondary);
      }

      /* Question Cards */
      .question-card {
        background: var(--bg-primary);
        border: 2px solid var(--border-color);
        border-radius: var(--radius-lg);
        padding: 1.5rem;
        margin-bottom: 1rem;
        transition: all var(--transition);
      }

      .question-card:hover {
        border-color: var(--primary-color);
        box-shadow: var(--shadow-md);
      }

      .question-text {
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--text-primary);
        margin-bottom: 0.5rem;
      }

      .question-hint {
        font-size: 0.9375rem;
        color: var(--text-secondary);
        font-style: italic;
      }

      /* Activity Boxes */
      .activity-box {
        background: linear-gradient(
          135deg,
          var(--primary-light) 0%,
          rgba(70, 187, 229, 0.05) 100%
        );
        border: 2px solid var(--primary-color);
        border-radius: var(--radius-lg);
        padding: 2rem;
        margin-bottom: 2rem;
      }

      .activity-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--primary-color);
        margin-bottom: 1rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
      }

      .activity-instructions {
        font-size: 1rem;
        color: var(--text-secondary);
        margin-bottom: 1.5rem;
      }

      /* Pronunciation Checklist */
      .checklist {
        background: var(--bg-primary);
        border-radius: var(--radius);
        padding: 1.5rem;
      }

      .checklist-item {
        display: flex;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        margin-bottom: 0.75rem;
        background: var(--bg-secondary);
        border-radius: var(--radius);
        transition: all var(--transition);
        cursor: pointer;
      }

      .checklist-item:hover {
        background: var(--primary-light);
      }

      .checklist-checkbox {
        width: 24px;
        height: 24px;
        border: 2px solid var(--primary-color);
        border-radius: 4px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all var(--transition);
      }

      .checklist-item.checked .checklist-checkbox {
        background: var(--primary-color);
        color: white;
      }

      .checklist-text {
        flex: 1;
      }

      .phrase-text {
        font-size: 1.125rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-bottom: 0.25rem;
      }

      .phrase-tip {
        font-size: 0.875rem;
        color: var(--text-secondary);
      }

      /* Random Generators */
      .generator-box {
        background: var(--bg-secondary);
        border-radius: var(--radius-lg);
        padding: 2rem;
        text-align: center;
      }

      .generator-display {
        background: var(--bg-primary);
        border: 2px dashed var(--primary-color);
        border-radius: var(--radius);
        padding: 2rem;
        margin: 1.5rem 0;
        min-height: 120px;
        display: flex;
        align-items: center;
        justify-content: center;
      }

      .generator-text {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-primary);
      }

      .generator-placeholder {
        font-size: 1.125rem;
        color: var(--text-secondary);
        font-style: italic;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: var(--gradient-primary);
        color: var(--text-inverse);
        border: none;
        border-radius: var(--radius-lg);
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all var(--transition);
        text-decoration: none;
      }

      .btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-lg);
      }

      .btn-secondary {
        background: var(--bg-primary);
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
      }

      .btn-secondary:hover {
        background: var(--primary-color);
        color: var(--text-inverse);
      }

      /* Responsive */
      @media (max-width: 768px) {
        .main-container {
          padding: calc(70px + 1rem) 1rem 1rem;
        }

        .page-header {
          padding: 2rem 1.5rem;
        }

        .section-content {
          padding: 1.5rem;
        }

        .example-card,
        .question-card {
          padding: 1rem;
        }
      }

/* Ensure mobile dropdowns work properly */
      @media (max-width: 768px) {
        /* FORCE mobile menu to display full width */
        .nav-links,
        #navLinks,
        ul.nav-links {
          display: flex !important;
          position: fixed !important;
          top: 70px !important;
          left: 0 !important;
          right: 0 !important;
          bottom: 0 !important;
          width: 100vw !important;
          height: auto !important;
          min-height: calc(100vh - 70px) !important;
        }

        .nav-links.active,
        #navLinks.active,
        ul.nav-links.active {
          display: flex !important;
          max-height: calc(100vh - 70px) !important;
          height: auto !important;
        }

        /* Make sure nav links with dropdowns are clearly tappable */
        .nav-item .nav-link {
          position: relative;
          user-select: none;
          -webkit-user-select: none;
          -webkit-tap-highlight-color: rgba(70, 187, 229, 0.2);
          cursor: pointer;
        }

        /* Ensure chevron is visible and clickable */
        .nav-link .fa-chevron-down {
          transition: transform 0.3s ease !important;
          opacity: 1 !important;
          pointer-events: none; /* Let clicks go through to parent link */
        }

        /* Visual feedback when dropdown is open */
        .nav-item.mobile-open > .nav-link,
        .nav-item.mobile-dropdown-open > .nav-link {
          background: rgba(70, 187, 229, 0.15) !important;
          border-color: var(--primary-color, #46bbe5) !important;
        }

        /* Make dropdowns smoother */
        .dropdown {
          transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }

        /* Ensure dropdown items are visible when parent is open */
        .nav-item.mobile-open .dropdown,
        .nav-item.mobile-dropdown-open .dropdown {
          display: block !important;
          visibility: visible !important;
          opacity: 1 !important;
          pointer-events: auto !important;
        }

        /* Ensure dropdown items are clickable */
        .dropdown-item,
        .dropdown > a {
          pointer-events: auto !important;
          touch-action: manipulation !important;
          user-select: none;
          -webkit-user-select: none;
        }
      }

