/* ==========================================================================
   TechHub Design System
   Palette nods to the Afghan flag (ink black / signal red / growth green)
   and to the subject itself: a terminal-prompt motif runs through labels,
   eyebrows and the hero, because this is a site that teaches people to live
   in a command line.
   ========================================================================== */

:root {
  /* Color */
  --ink:        #0B1220;   /* near-black background, "the terminal" */
  --ink-soft:   #141D2E;
  --paper:      #F7F8FA;   /* light section background */
  --paper-dim:  #EEF1F5;
  --white:      #FFFFFF;
  --signal:     #D62839;   /* red — primary accent, CTAs */
  --signal-dim: #B01F2E;
  --grow:       #1F9D6E;   /* green — success, growth, secondary accent */
  --grow-soft:  #E4F5EC;
  --steel:      #5B6478;   /* body text on light */
  --steel-dim:  #8A93A6;
  --line:       #E2E5EB;
  --amber:      #F2B705;   /* terminal-cursor accent, used sparingly */

  /* Type */
  --font-display: 'Space Grotesk', 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
  --font-body:    'Inter', 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Scale */
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11,18,32,0.06), 0 1px 1px rgba(11,18,32,0.04);
  --shadow-md: 0 8px 24px rgba(11,18,32,0.10);
  --shadow-lg: 0 20px 48px rgba(11,18,32,0.16);
  --container: 1180px;
}

html[dir="rtl"] {
  --font-display: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
  --font-body: 'Vazirmatn', 'Noto Naskh Arabic', sans-serif;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
}
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section-tight { padding-block: 56px; }

/* ---------- signature: terminal eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grow);
  background: var(--grow-soft);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow::before { content: "$"; color: var(--steel-dim); }
.eyebrow .cursor {
  display: inline-block;
  width: 7px; height: 14px;
  background: var(--grow);
  animation: blink 1.1s step-end infinite;
}
html[dir="rtl"] .eyebrow::before { content: "$"; }
@keyframes blink { 50% { opacity: 0; } }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--steel); font-size: 1.05rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { background: var(--signal); color: var(--white); }
.btn-primary:hover { background: var(--signal-dim); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,0.35); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-outline { border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--signal); color: var(--signal); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- header ---------- */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,18,32,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.logo-text h1 { font-size: 1.25rem; color: var(--white); }
.logo-text p { font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.12em; color: var(--grow); }
.logo-text span { display: none; }

nav { display: flex; align-items: center; gap: 28px; }
nav > ul { display: flex; align-items: center; gap: 26px; }
nav > ul a { color: rgba(255,255,255,0.75); font-size: 0.93rem; font-weight: 500; transition: color 0.15s; padding-block: 4px; position: relative; }
nav > ul a:hover, nav > ul a.active { color: var(--white); }
nav > ul a.active::after {
  content: ""; position: absolute; inset-inline-start: 0; bottom: -6px; width: 100%; height: 2px; background: var(--signal);
}
.nav-actions { display: flex; align-items: center; gap: 14px; }

/* language selector */
.language-selector { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 8px;
  color: var(--white); font-size: 0.88rem; font-weight: 500;
  padding: 8px 12px; border: 1px solid rgba(255,255,255,0.18); border-radius: 8px;
}
.lang-btn:hover { border-color: rgba(255,255,255,0.4); }
.lang-btn i { font-size: 0.7rem; transition: transform 0.2s; }
.lang-dropdown {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  background: var(--white); border-radius: 10px; box-shadow: var(--shadow-lg);
  min-width: 150px; padding: 6px; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: all 0.18s ease; z-index: 50;
}
.language-selector.open .lang-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.language-selector.open .lang-btn i { transform: rotate(180deg); }
.lang-option { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 6px; color: var(--ink); font-size: 0.9rem; }
.lang-option:hover { background: var(--paper-dim); }
.lang-option.active { color: var(--signal); font-weight: 600; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; }
.hamburger span { height: 2px; background: var(--white); border-radius: 2px; }

/* ---------- hero (terminal band) ---------- */
.hero {
  background: var(--ink);
  background-image:
    radial-gradient(ellipse 800px 500px at 15% 20%, rgba(214,40,57,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 80%, rgba(31,157,110,0.14), transparent 60%);
  position: relative;
  overflow: hidden;
  padding-block: 90px 70px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 900px 500px at 30% 30%, black, transparent 70%);
  pointer-events: none;
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .eyebrow { background: rgba(31,157,110,0.14); }
.hero-copy h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.1rem); margin-bottom: 18px; }
.hero-copy p { color: rgba(255,255,255,0.68); font-size: 1.08rem; max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.hero-stats .stat { font-family: var(--font-mono); color: var(--white); }
.hero-stats .stat strong { display: block; font-size: 1.3rem; color: var(--amber); }
.hero-stats .stat span { font-size: 0.78rem; color: rgba(255,255,255,0.55); }

.hero-visual { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/3; }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,18,32,0.55) 100%);
}
.hero-dots { display: flex; justify-content: center; gap: 8px; margin-top: 46px; position: relative; z-index: 2; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.25); transition: all 0.2s; }
.hero-dots button.active { background: var(--signal); width: 22px; border-radius: 4px; }

/* ---------- why choose ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-card { padding: 30px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); transition: border-color 0.2s, transform 0.2s; }
.why-card:hover { border-color: var(--signal); transform: translateY(-3px); }
.why-card .icon { width: 46px; height: 46px; border-radius: 10px; background: var(--grow-soft); color: var(--grow); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; margin-bottom: 18px; }
.why-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.why-card p { color: var(--steel); font-size: 0.92rem; }

/* ---------- partners marquee ---------- */
.partners { background: var(--paper); }
.partners-track-wrap { overflow: hidden; margin-top: 32px; -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent); }
.partners-track { display: flex; gap: 64px; align-items: center; width: max-content; animation: scroll-x 22s linear infinite; }
html[dir="rtl"] .partners-track { animation-direction: reverse; }
.partners-track img { height: 40px; width: auto; flex-shrink: 0; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: opacity 0.2s, filter 0.2s; }
.partners-track img:hover { filter: grayscale(0); opacity: 1; }
.partners-track-wrap:hover .partners-track { animation-play-state: paused; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- courses ---------- */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.course-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; background: var(--white); }
.course-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.course-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--ink); }
.course-media img { width: 100%; height: 100%; object-fit: cover; }
.course-code { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--font-mono); font-size: 0.72rem; background: rgba(11,18,32,0.8); color: var(--amber); padding: 4px 10px; border-radius: 6px; letter-spacing: 0.04em; }
.course-body { padding: 22px 22px 24px; }
.course-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.course-body p { color: var(--steel); font-size: 0.92rem; margin-bottom: 18px; min-height: 44px; }
.course-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--signal); }
.course-link i { transition: transform 0.15s; }
.course-card:hover .course-link i { transform: translateX(3px); }
html[dir="rtl"] .course-card:hover .course-link i { transform: translateX(-3px); }
.courses-footer { text-align: center; margin-top: 40px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--ink);
  padding-block: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}
.cta-band .container { position: relative; }
.cta-band h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.62); margin-bottom: 28px; }

/* ---------- footer ---------- */
footer { background: var(--ink-soft); color: rgba(255,255,255,0.6); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo-text h1, .footer-brand .logo-text p { color: var(--white); }
.footer-brand p.desc { margin-top: 14px; font-size: 0.9rem; max-width: 320px; }
footer h4 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; }
footer ul li { margin-bottom: 11px; }
footer ul a { font-size: 0.9rem; transition: color 0.15s; }
footer ul a:hover { color: var(--white); }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.footer-social a:hover { background: var(--signal); color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; }

/* ---------- forms (contact / register) ---------- */
.page-header { background: var(--ink); padding-block: 64px; text-align: center; position: relative; overflow: hidden; }
.page-header::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 42px 42px;
}
.page-header .container { position: relative; }
.page-header h1 { color: var(--white); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-bottom: 10px; }
.page-header p { color: rgba(255,255,255,0.6); }

.form-layout { display: grid; grid-template-columns: 1fr 0.85fr; gap: 48px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 0.95rem; color: var(--ink); background: var(--white);
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--signal); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: 0.82rem; color: var(--steel-dim); margin-top: 14px; }

.info-card { background: var(--paper); border-radius: var(--radius-lg); padding: 32px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 20px; }
.info-item { display: flex; gap: 14px; margin-bottom: 20px; }
.info-item .icon { width: 40px; height: 40px; border-radius: 8px; background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--signal); flex-shrink: 0; box-shadow: var(--shadow-sm); }
.info-item strong { display: block; font-size: 0.92rem; }
.info-item span, .info-item a { font-size: 0.88rem; color: var(--steel); }

.alert { padding: 14px 18px; border-radius: 8px; margin-bottom: 22px; font-size: 0.9rem; }
.alert-success { background: var(--grow-soft); color: var(--grow); }
.alert-error { background: #FCE8E8; color: var(--signal-dim); }

/* ---------- tutorials / batches / listing pages ---------- */
.filter-bar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.filter-chip { padding: 8px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 0.88rem; font-weight: 500; }
.filter-chip.active, .filter-chip:hover { border-color: var(--signal); color: var(--signal); }

.tutorial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.tutorial-card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.tutorial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.tutorial-media { aspect-ratio: 16/10; overflow: hidden; }
.tutorial-media img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-body { padding: 20px; }
.tutorial-tag { font-family: var(--font-mono); font-size: 0.72rem; color: var(--grow); margin-bottom: 10px; display: block; }
.tutorial-body h3 { font-size: 1.02rem; margin-bottom: 10px; }
.tutorial-meta { display: flex; gap: 14px; font-size: 0.8rem; color: var(--steel-dim); margin-top: 14px; }

table.batches-table { width: 100%; border-collapse: collapse; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
table.batches-table th { background: var(--ink); color: var(--white); text-align: start; padding: 16px 18px; font-size: 0.85rem; font-weight: 600; }
table.batches-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
table.batches-table tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-open { background: var(--grow-soft); color: var(--grow); }
.badge-full { background: #FCE8E8; color: var(--signal-dim); }

/* ---------- course detail page ---------- */
.course-hero { display: grid; grid-template-columns: 1fr 320px; gap: 40px; align-items: start; margin-bottom: 8px; }
.detail-item { padding-block: 44px; border-bottom: 1px solid var(--line); }
.detail-item:first-of-type { padding-top: 0; }
.detail-item:last-of-type { border-bottom: none; }
.detail-item h2 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.detail-item h2 i { color: var(--signal); font-size: 1.1rem; }
.detail-item p { color: var(--steel); margin-bottom: 14px; max-width: 760px; }
.detail-image { max-width: 300px; border-radius: var(--radius); float: inline-end; margin-inline-start: 24px; margin-bottom: 14px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-top: 8px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.95rem; color: var(--ink); }
.check-list li i { color: var(--grow); margin-top: 3px; }
.syllabus-block { margin-bottom: 26px; }
.syllabus-block h3 { font-family: var(--font-mono); font-size: 0.95rem; color: var(--signal); margin-bottom: 14px; }
.syllabus-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; }
.syllabus-grid div { font-size: 0.9rem; color: var(--steel); padding-block: 3px; }
.syllabus-grid div::before { content: "›"; color: var(--grow); font-weight: 700; margin-inline-end: 8px; }
.exam-table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.exam-table tr:nth-child(even) { background: var(--paper); }
.exam-table td { padding: 13px 18px; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.exam-table tr:last-child td { border-bottom: none; }
.exam-table td:first-child { font-weight: 600; width: 40%; }
.why-band { background: var(--paper); border-radius: var(--radius-lg); padding: 32px; }
.why-band .check-list { grid-template-columns: 1fr 1fr; display: grid; }
.course-cta-band { text-align: center; background: var(--ink); border-radius: var(--radius-lg); padding: 48px 32px; position: relative; overflow: hidden; }
.course-cta-band::before { content:""; position:absolute; inset:0; background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 42px 42px; }
.course-cta-band > * { position: relative; }
.course-cta-band h2 { color: var(--white); margin-bottom: 10px; }
.course-cta-band p { color: rgba(255,255,255,0.6); margin-bottom: 22px; }
.course-sidebar { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.course-sidebar .fact { display: flex; justify-content: space-between; padding-block: 12px; border-bottom: 1px solid var(--line); font-size: 0.9rem; }
.course-sidebar .fact:last-of-type { border-bottom: none; }
.course-sidebar .fact span:first-child { color: var(--steel-dim); }
.course-sidebar .fact span:last-child { font-weight: 600; }
@media (max-width: 980px) { .course-hero { grid-template-columns: 1fr; } .course-sidebar { position: static; } }
@media (max-width: 640px) { .syllabus-grid, .why-band .check-list { grid-template-columns: 1fr; } .detail-image { float: none; max-width: 100%; margin-inline-start: 0; } }
/* ---------- single tutorial content ---------- */
.tutorial-content { font-size: 1.05rem; line-height: 1.9; max-width: 760px; margin-inline: auto; }
.tutorial-content h2, .tutorial-content h3 { margin-block: 28px 12px; }
.tutorial-content p { margin-bottom: 16px; color: var(--ink); }
.tutorial-content ul, .tutorial-content ol { padding-inline-start: 28px; margin-bottom: 16px; }
.tutorial-content ul { list-style: disc; }
.tutorial-content ol { list-style: decimal; }
.tutorial-content ul ul, .tutorial-content ol ul { list-style: circle; }
.tutorial-content li { margin-bottom: 6px; }
.tutorial-content img { max-width: 100%; height: auto; border-radius: var(--radius); margin-block: 12px; }
.tutorial-content blockquote { border-inline-start: 4px solid var(--signal); padding: 14px 20px; margin-block: 16px; background: var(--paper); }
.tutorial-content table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.tutorial-content table th, .tutorial-content table td { padding: 10px; border: 1px solid var(--line); }
.author-box { display: flex; align-items: center; gap: 18px; padding: 22px; background: var(--paper); border-radius: var(--radius-lg); border-inline-start: 4px solid var(--signal); margin-bottom: 32px; max-width: 760px; margin-inline: auto; }
.author-box img { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--signal); flex-shrink: 0; }
.author-box h3 { font-size: 1rem; margin-bottom: 4px; }
.author-box p { color: var(--steel); font-size: 0.88rem; margin: 0; }
.tutorial-hero-img { width: 100%; max-height: 380px; object-fit: cover; border-radius: var(--radius-lg); margin-bottom: 28px; }
.sidebar-widget { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.sidebar-widget h3 { font-size: 1rem; margin-bottom: 16px; }
.popular-list li { padding-block: 10px; border-bottom: 1px solid var(--line); }
.popular-list li:last-child { border-bottom: none; }
.popular-list a { display: block; font-size: 0.9rem; font-weight: 500; }
.popular-list span.pdate { display: block; font-size: 0.78rem; color: var(--steel-dim); margin-top: 3px; }
.tutorials-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .tutorials-layout { grid-template-columns: 1fr; } }

/* ---------- whatsapp float ---------- */
.wa-float {
  position: fixed; bottom: 24px; inset-inline-end: 24px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; background: #25D366;
  display: flex; align-items: center; justify-content: center; color: var(--white);
  font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: transform 0.15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin-inline: auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-layout { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  nav > ul, .nav-actions .language-selector { display: none; }
  .hamburger { display: flex; }
  .why-grid, .courses-grid, .tutorial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .hero { padding-block: 56px 40px; }
  nav.open > ul {
    display: flex; flex-direction: column; position: absolute; top: 100%; inset-inline: 0;
    background: var(--ink); padding: 20px 24px; gap: 4px; border-top: 1px solid rgba(255,255,255,0.08);
  }
  nav.open > ul a { display: block; padding-block: 12px; }
  nav.open .language-selector { display: block; margin-top: 12px; padding-inline: 24px; }
}
