  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --brand:       #1B2A3B;
    --brand-light: #2E4A68;
    --brand-dark:  #0E1923;
    --brand-pale:  #EDF1F6;
    --brand-muted: #A8BFCE;
    --gold:        #B8922A;
    --gold-light:  #D4AE55;
    --gold-pale:   #FAF6EC;
    --cream:       #f3f6f8;
    --ink:         #0E1923;
    --text:        #222E3C;
    --text-muted:  #5A6A7E;
    --sidebar-w:   280px;
    --sidebar-bg:  #0E1923;
  }

  /* ─── LOCAL CALLIGRAPHY FONTS ─── */
  @font-face { font-family: 'font-Ruqaa';    src: url('/web/content/17807') format('truetype');    font-weight: normal; font-style: normal; }
  @font-face { font-family: 'font-Naskh';    src: url('/web/content/17805') format('truetype');    font-weight: normal; font-style: normal; }
  @font-face { font-family: 'font-Thuluth';  src: url('/web/content/9077') format('truetype');  font-weight: normal; font-style: normal; }
  @font-face { font-family: 'font-Diwani';   src: url('/web/content/17803') format('truetype');   font-weight: normal; font-style: normal; }
  @font-face { font-family: 'font-Kufi';     src: url('/web/content/17804') format('truetype');  font-weight: normal; font-style: normal; }
  @font-face { font-family: 'font-Nastaliq'; src: url('/web/content/17806') format('truetype'); font-weight: normal; font-style: normal; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Tajawal', sans-serif;
    background: var(--cream);
    color: var(--text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
  }

  /* ─── MAIN CONTENT ─── */
  #main {
    margin-right: var(--sidebar-w);
    flex: 1;
    min-height: 100vh;
    transition: margin-right 0.35s cubic-bezier(.4,0,.2,1);
  }

  /* ─── RIGHT SIDEBAR ─── */
  #sidebar {
    position: fixed;
    top: 0; right: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: linear-gradient(180deg, #1A252F 0%, #2C3E50 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 100;
    box-shadow: -2px 0 40px rgba(26,37,47,.5);
    transition: transform 0.35s cubic-bezier(.4,0,.2,1);
    direction: rtl;
    border-left: 1px solid rgba(184,146,42,.18);
  }

  #sidebar::-webkit-scrollbar { width: 4px; }
  #sidebar::-webkit-scrollbar-track { background: transparent; }
  #sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.2); border-radius: 2px; }

  .sidebar-logo {
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .sidebar-logo .arabic-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.6rem;
    color: var(--gold-light);
    text-align: center;
    direction: rtl;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.25rem;
  }
  .sidebar-logo .en-subtitle {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.75rem;
    color: rgba(255,255,255,.5);
    text-align: center;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: block;
    direction: ltr;
  }

  .nav-section {
    padding: 0.5rem 0;
  }
  .nav-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    padding: 0.8rem 1.5rem 0.3rem;
    text-align: right;
  }

  .nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    text-decoration: none;
    position: relative;
  }
  .nav-item:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-right-color: var(--gold);
  }
  .nav-item.active {
    color: var(--gold-light);
    background: rgba(184,146,42,.1);
    border-right-color: var(--gold);
  }
  .nav-item .nav-num {
    font-size: 0.7rem;
    color: var(--gold);
    font-weight: 600;
    min-width: 18px;
  }

  .nav-lessons-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,.7);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    user-select: none;
  }
  .nav-lessons-toggle:hover {
    color: #fff;
    background: rgba(255,255,255,.08);
    border-right-color: var(--gold);
  }
  .nav-lessons-toggle.open { color: var(--gold-light); border-right-color: var(--gold); }
  .toggle-left { display: flex; align-items: center; gap: 0.75rem; }
  .chevron {
    width: 14px; height: 14px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.25s;
    flex-shrink: 0;
    margin-right: 0.25rem;
  }
  .chevron.up { transform: rotate(-135deg); }

  .sub-nav {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.35s ease;
    background: rgba(0,0,0,.15);
  }
  .sub-nav.open { max-height: 1600px; }
  .script-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 1.5rem 0.4rem;
    margin-top: 0.3rem;
    color: var(--gold-light);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    border-bottom: 1px solid rgba(184,146,42,.2);
    cursor: pointer;
    user-select: none;
    transition: background .2s;
  }
  .script-group-header:hover { background: rgba(255,255,255,.06); }
  .script-group-label { display: flex; align-items: center; gap: 0.5rem; }
  .script-group-header i { font-size: 0.72rem; opacity: 0.85; }
  .script-group-chevron i { transition: transform 0.25s; }
  .script-nav-group.collapsed .script-group-chevron i { transform: rotate(-90deg); }
  .script-nav-group.collapsed .script-nav-items { display: none; }
  .sub-nav-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 2.5rem 0.45rem 1.5rem;
    cursor: pointer;
    color: rgba(255,255,255,.55);
    font-size: 0.875rem;
    font-family: 'Tajawal', sans-serif;
    transition: all 0.2s;
    border-right: 3px solid transparent;
    text-decoration: none;
  }
  .sub-nav-item:hover { color: #fff; background: rgba(255,255,255,.06); border-right-color: var(--gold-light); }
  .sub-nav-item.active { color: var(--gold-light); background: rgba(184,146,42,.08); border-right-color: var(--gold); }
  .sub-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; opacity: 0.6; }

  /* ─── SIDEBAR COLLAPSE BTN ─── */
  /* Fixed to viewport, sits flush against the sidebar's left edge */
  #sidebar-collapse-btn {
    position: fixed;
    top: 50%;
    right: var(--sidebar-w);          /* stays in sync with sidebar width */
    transform: translateY(-50%);
    width: 28px;
    height: 64px;
    background: linear-gradient(180deg, #1A252F 0%, #2C3E50 100%);
    border: 1px solid rgba(184,146,42,.25);
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(184,146,42,0.65);
    font-size: 0.7rem;
    transition: color 0.2s, background 0.2s;
    z-index: 101;
  }
  #sidebar-collapse-btn:hover { color: var(--gold); background: #2C3E50; }

  /* ─── REOPEN TAB (shown when sidebar is collapsed) ─── */
  #sidebar-reopen-tab {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 28px;
    height: 64px;
    background: linear-gradient(180deg, #1A252F 0%, #2C3E50 100%);
    border: 1px solid rgba(184,146,42,.25);
    border-right: none;
    border-radius: 8px 0 0 8px;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(184,146,42,0.65);
    font-size: 0.7rem;
    z-index: 101;
    transition: color 0.2s, background 0.2s;
  }
  #sidebar-reopen-tab:hover { color: var(--gold); background: #2C3E50; }

  /* ─── COLLAPSED STATES ─── */
  #sidebar.collapsed { transform: translateX(100%); }
  #main.sidebar-collapsed { margin-right: 0; }

  /* .hero and #lessons-header both use a negative-margin trick to fill the viewport.
     Reset them when the sidebar is gone so content stays centered. */
  #main.sidebar-collapsed .hero           { width: 100%; margin-right: 0; }
  #main.sidebar-collapsed #lessons-header { width: 100% !important; margin-right: 0 !important; }

  /* When sidebar is hidden the main area becomes full viewport width.
     Increase horizontal padding proportionally so text lines stay readable
     and don't stretch edge-to-edge on wide screens.
     clamp(floor, preferred, ceiling) → grows with viewport, capped at max. */
  #main.sidebar-collapsed section,
  #main.sidebar-collapsed .lesson-section {
    padding-left:  clamp(4rem, 10vw, 10rem);
    padding-right: clamp(4rem, 10vw, 10rem);
  }

  /* curriculum & footer use inline padding — need !important to override */
  #main.sidebar-collapsed #curriculum {
    padding-left:  clamp(4rem, 10vw, 10rem) !important;
    padding-right: clamp(4rem, 10vw, 10rem) !important;
  }
  #main.sidebar-collapsed footer {
    padding-left:  clamp(3rem, 8vw, 8rem) !important;
    padding-right: clamp(3rem, 8vw, 8rem) !important;
  }

  /* Also add transition to collapse-btn so it slides in sync with the sidebar */
  #sidebar-collapse-btn { transition: color 0.2s, background 0.2s, right 0.35s cubic-bezier(.4,0,.2,1); }

  /* hide collapse controls on mobile — mobile has its own toggle */
  @media (max-width: 900px) {
    #sidebar-collapse-btn, #sidebar-reopen-tab { display: none !important; }
  }

  .sidebar-footer {
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .sidebar-footer .ornament {
    font-family: 'Tajawal', sans-serif;
    text-align: center;
    font-size: 1.3rem;
    color: rgba(184,146,42,.6);
    direction: rtl;
  }

  /* ─── FONT AWESOME ICON HELPERS ─── */
  .nav-icon {
    font-size: 0.85rem;
    color: var(--gold);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
    transition: color 0.2s;
  }
  .nav-item:hover .nav-icon, .nav-item.active .nav-icon { color: var(--gold-light); }

  .sub-nav-icon {
    font-size: 0.75rem;
    color: var(--gold);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    opacity: 0.7;
  }
  .sub-nav-item:hover .sub-nav-icon, .sub-nav-item.active .sub-nav-icon { opacity: 1; color: var(--gold-light); }

  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    display: block;
  }
  .stat-icon.brand { color: var(--brand); }
  .stat-icon.gold  { color: var(--gold); }

  .bio-fa {
    color: var(--gold);
    font-size: 0.8rem;
    width: 14px;
    flex-shrink: 0;
    text-align: center;
  }

  .block-icon {
    color: var(--gold);
    margin-right: 0.4rem;
    font-size: 0.85rem;
  }

  .eyebrow-icon {
    margin-right: 0.35rem;
    font-size: 0.65rem;
    opacity: 0.7;
  }

  /* ─── TOGGLE BUTTON (mobile) ─── */
  #sidebar-toggle {
    display: none;
    position: fixed;
    top: 1rem; right: 1rem;
    z-index: 200;
    background: var(--brand);
    color: #fff;
    border: none;
    border-radius: 8px;
    width: 42px; height: 42px;
    cursor: pointer;
    font-size: 1.25rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 2px 12px rgba(35,52,110,.3);
  }
  .hamburger { width: 20px; height: 2px; background: #fff; border-radius: 1px; transition: all .2s; }

  /* ─── HERO ─── */
  .hero {
    min-height: 100vh;
    width: calc(100% + var(--sidebar-w));
    margin-right: calc(-1 * var(--sidebar-w));
    background: linear-gradient(135deg, #0E1923 0%, #1B2A3B 50%, #0E1923 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 3rem;
  }
  .hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
  }
  .hero-arabic {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--gold-light);
    direction: rtl;
    unicode-bidi: embed;
    text-align: center;
    line-height: 1.3;
    position: relative;
    z-index: 1;
  }
  .hero-divider {
    width: 80px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 2rem auto;
  }
  .hero-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    font-weight: 400;
    color: rgba(255,255,255,.9);
    text-align: center;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
  }
  .hero-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,.5);
    text-align: center;
    margin-top: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
  }
  .hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,.35);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
  }
  .scroll-line {
    width: 1px; height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,.35), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
  }
  @keyframes scrollPulse { 0%,100%{opacity:.5;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

  /* ─── SECTIONS ─── */
  section {
    padding: 5rem 4rem;

    scroll-margin-top: 2rem;
  }
  section:nth-child(even) { background: #fff; }

  .section-eyebrow {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    opacity: 0.85;
    margin-bottom: 0.6rem;
  }
  .section-title {
    font-family: 'Tajawal', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .section-title em { font-style: normal; color: var(--gold); font-weight: 400; }
  .section-arabic-accent {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    color: var(--brand-light);
    opacity: 0.35;
    direction: rtl;
    margin-bottom: 1.5rem;
    display: block;
  }
  .gold-rule {
    width: 60px; height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
    margin: 1.5rem 0;
    border-radius: 2px;
  }

  p { font-size: 1.05rem; line-height: 1.95; color: var(--text); margin-bottom: 1rem; font-weight: 400; }
  p.lead { font-size: 1.2rem; font-style: italic; color: var(--brand); opacity: 0.9; }

  /* ─── BIO LAYOUT ─── */
  .bio-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2rem;
  }
  .bio-portrait {
    aspect-ratio: 3/4;
    background: linear-gradient(145deg, #2C3E50 0%, #1A252F 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(184,146,42,.22);
    box-shadow: 0 8px 32px rgba(14,25,35,.18);
  }
  .bio-portrait::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(26,37,47,.5));
  }
  .bio-portrait-arabic {
    font-family: 'Tajawal', sans-serif;
    font-size: 6rem;
    color: var(--gold-light);
    opacity: 0.18;
    direction: rtl;
    position: absolute;
    z-index: 1;
  }
  .bio-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.25rem;
  }
  .bio-title-label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }
  .bio-stat {
    display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.6rem;
    background: var(--brand-pale); border-radius: 8px; padding: 0.5rem 0.75rem;
  }
  .bio-stat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
  .bio-stat span { font-size: 0.88rem; color: var(--text-muted); }

  /* ─── TIMELINE ─── */
  /* ─── TIMELINE ─── */
  .timeline {
    margin-top: 2rem;
    border-right: 2px solid var(--brand-pale);
    padding-right: 1.75rem;
  }
  .timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
  }
  /* Dot sits on the border line — no grid, no absolute positioning conflicts */
  .timeline-item::before {
    content: '';
    position: absolute;
    right: calc(-1.75rem - 7px);
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border: 2px solid #fff;
    box-shadow: 0 0 0 3px rgba(184,146,42,.22);
    z-index: 1;
  }
  .timeline-year {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid var(--gold-light);
    display: inline-block;
    padding: 0.18rem 0.7rem;
    border-radius: 3px;
    margin-bottom: 0.55rem;
    letter-spacing: 0.03em;
  }
  .timeline-dot { display: none; } /* replaced by ::before */
  .timeline-content h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.35rem;
  }
  .timeline-content p { font-size: 1.2rem; color: var(--text-muted); margin: 0; line-height: 1.7; }

  /* ─── SAMPLES ─── */
  .samples-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
  }
  .sample-card {

    border: 1px solid rgba(29,52,97,.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;

  }
  .sample-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(26,37,47,.14); }
  .sample-canvas {
    aspect-ratio: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
  }
  .sample-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
  }
  .sample-text {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 2.4rem;

    direction: rtl;
    text-align: center;
    z-index: 1;
    line-height: 1.3;

  }
  .sample-meta { padding: 1rem; }
  .sample-meta .arabic-name {
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    direction: rtl;
    color: var(--brand);
    margin-bottom: 0.2rem;
    display: block;
  }
  .sample-meta h4 { font-family: 'Tajawal', sans-serif; font-size: 0.95rem; color: var(--brand-dark); margin-bottom: 0.2rem; }
  .sample-meta p { font-size: 0.8rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

  /* ─── LESSONS ─── */
  .lesson-header {
    background: none;
    padding: 1.5rem 0 1.5rem 0;
    border-radius: 0;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid rgba(184,146,42,.35);
  }
  .lesson-num { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.5rem; }
  .lesson-title {
    font-family: 'Tajawal', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.25rem;
  }
  .lesson-subtitle { font-size: 1.1rem; color: rgba(27,42,59,.55); }

  .lesson-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
  }
  .lesson-block {
    background: #fff;
    border: 1px solid rgba(29,52,97,.08);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(26,37,47,.05);
  }
  .lesson-block h4 {
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-pale);
  }
  .lesson-block ul { list-style: none; padding: 0; }
  .lesson-block li { font-size: 0.9rem; padding: 0.35rem 0; color: var(--text); display: flex; align-items: start; gap: 0.5rem; }
  .lesson-block li::before { content: '▸'; color: var(--gold); flex-shrink: 0; margin-top: 0.1rem; font-size: 0.7rem; }
  .image-note { margin-top: 0.5rem !important; padding-top: 0.6rem !important; border-top: 1px dashed #c0c7cf  !important; color: var(--gold) !important; font-size: 0.85rem !important; }
  .image-note::before { content: '' !important; display: none !important; }

  .arabic-demo {
    background: linear-gradient(145deg, #1A252F, #2C3E50);
    border: 1px solid rgba(184,146,42,.2);
    border-radius: 16px;
    padding: 2.5rem;
    text-align: center;
    margin-top: 1.5rem;
    box-shadow: 0 8px 32px rgba(26,37,47,.2);
  }
  .arabic-demo .demo-text {
    font-family: 'Noto Naskh Arabic', serif;
    font-size: 3rem;
    color: var(--gold-light);
    direction: rtl;
    line-height: 1.4;
  }
  .arabic-demo .demo-label { font-size: 0.8rem; color: rgba(255,255,255,.45); margin-top: 0.5rem; letter-spacing: 0.05em; }

  .letters-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
    direction: rtl;
    text-align: center;
  }
  .letter-chip {
    background: var(--brand-pale);
    border: 1px solid var(--brand-muted);
    border-radius: 10px;
    padding: 0.5rem 0.85rem;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.3rem;
    color: var(--brand);
    transition: all 0.25s;
    cursor: default;
  }
  .letter-chip:hover {
    background: linear-gradient(135deg, #2C3E50, #1A252F);
    color: var(--gold-light);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(26,37,47,.2);
  }

  .lesson-section { padding: 4rem 4rem;  scroll-margin-top: 2rem; }
  .lesson-section:nth-child(odd) { background: var(--cream); }
  .lesson-section:nth-child(even) { background: #fff; }

  /* ─── SCRIPT SECTIONS (static label headers; no content-area collapse) ─── */
  .script-section { border-bottom: 1px solid rgba(184,146,42,.18); }
  .script-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 4rem;
    background: var(--brand); color: var(--gold);
  }
  .script-section-label { display: flex; align-items: center; gap: .6rem; font-family: 'Tajawal', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: .03em; }
  .script-section-label i { font-size: .85rem; opacity: .8; }

  /* ─── RESPONSIVE ─── */
  @media (max-width: 900px) {
    :root { --sidebar-w: 0px; }
    #main { margin-right: 0; }
    #sidebar { transform: translateX(100%); --sidebar-w: 280px; }
    #sidebar.open { transform: translateX(0); }
    #sidebar-toggle { display: flex; }
    section, .lesson-section { padding: 3rem 1.5rem; }
    .bio-grid { grid-template-columns: 1fr; }
    .bio-portrait { max-width: 180px; }
    .lesson-grid { grid-template-columns: 1fr; }
    .hero { padding: 3rem 1.5rem; }
  }

  /* ─── ANIMATION PLAY BUTTON (replaces inline onmouseover/onmouseout) ─── */
  .anim-btn {
    background: rgba(184,146,42,0.1);
    border: 2px solid rgba(184,146,42,0.4);
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    margin: 0 15px;
  }
  .anim-btn:hover {
    background: rgba(184,146,42,0.22);
    transform: scale(1.07);
  }

  /* ─── MODAL CLOSE BUTTON ─── */
  .modal-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: #fff;
    flex-shrink: 0;
    transition: background 0.2s;
  }
  .modal-close-btn:hover { background: rgba(255,255,255,0.2); }

  /* ─── DUAL ANIMATION BUTTONS container ─── */
  .anim-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  .anim-pair {
    display: flex;
    gap: 0.5rem;
  }
