/* The tutorials page (tutorials.html, en/tutorials.html). Same palette as the rest of the landing. */
:root {
  --paper: #FAFAF8;
  --paper-alt: #F0F0EA;
  --ink: #0B211C;
  --ink-soft: #54635C;
  --teal: #1E7168;
  --teal-dark: #0A2A25;
  --gold: #AD8752;
  --gold-soft: #E7D9C1;
  --line: #E1E2DC;
  --white: #FFFFFF;
  --radius: 14px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Tajawal', 'Cairo', system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; }
html[dir="ltr"] body { font-family: 'Tajawal', system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

header { position: sticky; top: 0; z-index: 20; background: rgba(250, 250, 248, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { max-width: 1180px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.25rem; color: var(--teal-dark); }
.logo-mark { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-weight: 700; font-size: .95rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--teal); }
.btn { display: inline-flex; align-items: center; justify-content: center; background: var(--teal); color: var(--white) !important; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap; transition: background .15s; }
.btn:hover { background: var(--teal-dark); }

.tut-head { padding: 56px 0 24px; text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .06em; color: var(--gold); background: var(--gold-soft);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.tut-head h1 { font-family: 'Cairo', sans-serif; font-weight: 900; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.25; color: var(--teal-dark); }
.tut-head p { margin-top: 14px; font-size: 1.08rem; color: var(--ink-soft); }
.tut-head .tut-note { font-size: .92rem; background: var(--paper-alt); border-radius: 10px; padding: 10px 14px; display: inline-block; }
.tut-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.tut-chips a { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: .92rem; color: var(--teal-dark); }
.tut-chips a:hover { border-color: var(--teal); color: var(--teal); }

.tut-sec { padding: 34px 0 10px; scroll-margin-top: 80px; }
.tut-sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.tut-sec-head h2 { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--teal-dark); }
.tut-sec-head span { color: var(--ink-soft); font-size: .9rem; }
.tut-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }

.tut-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s, border-color .15s; }
.tut-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 42, 37, .10); border-color: var(--teal); }
.tut-card:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.tut-full { grid-column: 1 / -1; flex-direction: row; }
.tut-full .tut-thumb { flex: 0 0 min(52%, 560px); }
.tut-full .tut-text { justify-content: center; padding: 26px 28px; }
.tut-full .tut-text strong { font-size: 1.45rem; }
.tut-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--teal-dark); }
.tut-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tut-play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .15s; }
.tut-play::after { content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
  border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--teal); }
.tut-card:hover .tut-play { transform: scale(1.08); }
.tut-dur { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(11, 33, 28, .82); color: var(--white); font-size: .8rem; font-weight: 700;
  padding: 2px 8px; border-radius: 6px; direction: ltr; }
.tut-badge { position: absolute; top: 10px; inset-inline-start: 10px; background: var(--gold); color: var(--white); font-size: .78rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; }
.tut-text { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.tut-text strong { font-family: 'Cairo', sans-serif; font-size: 1.08rem; color: var(--teal-dark); line-height: 1.35; }
.tut-text span { color: var(--ink-soft); font-size: .92rem; }
.tut-en { align-self: flex-start; font-style: normal; font-size: .75rem; font-weight: 700; color: var(--teal); background: rgba(30, 113, 104, .08);
  border-radius: 999px; padding: 2px 10px; }

.cta-band { margin: 48px 0 20px; background: var(--teal-dark); color: var(--white); border-radius: 18px; padding: 30px 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-family: 'Cairo', sans-serif; font-weight: 800; font-size: 1.4rem; }
.cta-band p { color: rgba(255, 255, 255, .78); margin-top: 4px; }
.cta-band .btn { background: var(--gold); }
.cta-band .btn:hover { background: #94703f; }

.tut-player { position: fixed; inset: 0; z-index: 100; background: rgba(5, 20, 17, .82); display: flex; align-items: center; justify-content: center; padding: 20px; }
.tut-player[hidden] { display: none; }
.tut-player-box { width: min(1100px, 100%); background: #000; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.tut-player-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--teal-dark); color: var(--white); }
.tut-player-bar strong { font-family: 'Cairo', sans-serif; font-size: 1rem; }
.tut-player-bar button { background: rgba(255, 255, 255, .12); color: var(--white); border: 0; border-radius: 8px; width: 34px; height: 34px; font-size: 1rem; cursor: pointer; }
.tut-player-bar button:hover { background: rgba(255, 255, 255, .24); }
.tut-player video { width: 100%; display: block; aspect-ratio: 16 / 9; background: #000; }

footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 26px 0; }
.foot { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .85rem; color: var(--ink-soft); }
.foot a { margin-inline-start: 14px; }

@media (max-width: 760px) {
  .wrap, .nav, .foot { padding-left: 16px; padding-right: 16px; }
  .nav-links { gap: 12px; font-size: .88rem; }
  .nav-links .btn { display: none; }
  .tut-head { padding-top: 36px; }
  .tut-full { flex-direction: column; }
  .tut-full .tut-thumb { flex: none; }
  .tut-full .tut-text { padding: 14px 16px 18px; }
  .tut-full .tut-text strong { font-size: 1.15rem; }
  .tut-grid { grid-template-columns: 1fr; gap: 16px; }
  .cta-band { padding: 24px 20px; }
}
/* Learning paths: compact overview, followed by only the selected lessons. */
[hidden] { display: none !important; }
.tut-head { max-width: none; text-align: start; padding-bottom: 0; }
.tut-head > p { max-width: 720px; }
.eyebrow { color: #72502b; }
.tut-paths-head { margin-top: 36px; }
.tut-paths-head h2 { font: 800 1.2rem 'Cairo', sans-serif; }
.tut-paths-head p { margin-top: 6px; font-size: .98rem; }
.tut-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.tut-chips a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; border-radius: 14px; padding: 20px; min-width: 0; }
.tut-chips a[aria-current] { background: var(--teal-dark); border-color: var(--teal-dark); color: white; box-shadow: 0 4px 14px rgba(10,42,37,.12); }
.tut-path-number { font-size: .8rem; opacity: .75; }
.tut-path-desc { font-weight: 400; font-size: .92rem; }
.tut-tools { display: flex; align-items: flex-end; gap: 16px; padding: 24px; background: var(--paper-alt); border-radius: 14px; margin-top: 24px; }
.tut-search-label { flex: 1; font-weight: 700; min-width: 0; }
.tut-search-label input { display: block; width: 100%; min-width: 0; margin-top: 8px; padding: 13px 16px; font: inherit; font-weight: 400; color: var(--ink); background: white; border: 1px solid #abb8b2; border-radius: 10px; }
.tut-all { cursor: pointer; min-height: 48px; padding: 10px 18px; border: 1px solid var(--teal); border-radius: 10px; color: var(--teal-dark); background: white; font: 700 .95rem 'Tajawal', sans-serif; }
.tut-all[aria-pressed="true"] { background: var(--teal-dark); color: white; }
.tut-results { font-weight: 700; }
.tut-empty { padding: 32px 20px; margin-top: 24px; border: 1px dashed #abb8b2; border-radius: 14px; text-align: center; }
.tut-empty p { margin: 8px auto 0; }
.tut-badge { background: var(--gold-soft); color: var(--ink); }
.cta-band .btn { background: var(--gold-soft); color: var(--ink) !important; }
.cta-band .btn:hover { background: #dac5a3; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.tut-chips a[aria-current]:focus-visible { outline-color: #94703f; }
@media (max-width: 760px) {
  .tut-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tut-chips a { padding: 14px; }
  .tut-path-desc { font-size: .85rem; }
  .tut-tools { padding: 16px; flex-direction: column; align-items: stretch; gap: 12px; }
  .tut-sec-head h2 { font-size: 1.25rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
