/* ==========================================================================
   Engliziah — theme built on Brand Guidelines v1.0 (2026)
   Palette: navy 48% · cream 25% · red 15% · secondary 8% · support 4%
   Fonts: Tajawal (Arabic) · Poppins (English). Rounded always: 24px cards, pill buttons.
   ========================================================================== */

@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Tajawal"; src: url("fonts/tajawal-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-300.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Primary */
  --navy: #14213D;      /* كحلي الحروف */
  --red: #E63946;       /* أحمر الصوت */
  --cream: #FBF7F4;     /* كريمي الورق */
  /* Secondary */
  --blue: #457B9D;      /* أزرق هادئ */
  --sky: #A8DADC;       /* سماوي فاتح */
  /* Support */
  --yellow: #FFB703;    /* أصفر الإنجاز */
  --green: #2A9D8F;     /* أخضر الصواب */
  /* Text & lines */
  --red-dark: #C1121F;  /* أحمر غامق — روابط وأزرار */
  --ink: #4A5570;       /* رمادي الحبر */
  --sand: #ECE4DD;      /* رملي الحدود */
  --white: #FFFFFF;

  /* Tints of palette colours for states (same hue, lower opacity) */
  --red-tint: rgba(230, 57, 70, .10);
  --green-tint: rgba(42, 157, 143, .12);
  --yellow-tint: rgba(255, 183, 3, .18);
  --sky-tint: rgba(168, 218, 220, .45);

  --radius: 24px;
  --radius-sm: 14px;
  --max: 1200px;
  --ar: "Tajawal", Tahoma, Arial, sans-serif;
  --en: "Poppins", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--ar); font-size: 17px; line-height: 1.7; background: var(--cream); color: var(--navy); }
a { color: var(--red-dark); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--navy); font-weight: 900; }
h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
strong { font-weight: 700; }
.en, [lang="en"], .q-text, .q-passage, .flash-word, .word, .big-level { font-family: var(--en); }
.en, [lang="en"] { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--ink); }
.small { font-size: .9rem; }
.center { text-align: center; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 780px; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.section { padding: 48px 0; }
.section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-title h2 { margin: 0; }
.section-title a { font-weight: 700; text-decoration: none; }
.lead { font-size: 1.15rem; color: var(--ink); }
.ic { flex: none; vertical-align: middle; }
code { font-family: var(--en); background: var(--sand); padding: 1px 6px; border-radius: 6px; font-size: .85em; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: calc(var(--logo-h) * .28); text-decoration: none; }
.logo-symbol { display: block; width: auto; flex: none; }
.logo-words { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo-ar { font-family: var(--ar); font-weight: 900; font-size: calc(var(--logo-h) * .82); color: var(--navy); line-height: 1; }
.logo-en { font-family: var(--en); font-weight: 700; font-size: calc(var(--logo-h) * .2); letter-spacing: .42em; color: var(--red); margin-top: calc(var(--logo-h) * .1); padding-inline-start: .42em; }
.logo-white .logo-ar, .logo-white .logo-en { color: var(--white); }
.logo-vertical { flex-direction: column; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--sand); position: sticky; top: 0; z-index: 30; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brand { text-decoration: none; padding: 6px 0; }
.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.main-nav > a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--navy); font-weight: 700; font-size: .98rem; }
.main-nav > a:hover { background: var(--cream); }
.main-nav > a.active { color: var(--red-dark); }
.nav-user { margin-inline-start: auto; display: flex; gap: 8px; align-items: center; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 76px; inset-inline: 0; background: var(--white); border-bottom: 1px solid var(--sand); flex-direction: column; align-items: stretch; padding: 12px 20px 20px; }
  .main-nav.open { display: flex; }
  .nav-user { margin: 10px 0 0; flex-wrap: wrap; }
}

/* ---------- Buttons (pill, dark red primary) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; transition: background .15s, border-color .15s, color .15s; }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.btn-primary { background: var(--red-dark); color: var(--white); }
.btn-primary:hover { background: #A50F1A; }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: #0C1528; }
.btn-ghost { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-danger { background: var(--red-dark); color: var(--white); }
.btn-sm { padding: 7px 14px; font-size: .9rem; }
.btn-lg { padding: 15px 30px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; color: var(--red-dark); cursor: pointer; font: inherit; padding: 0; font-weight: 500; }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 24px; }
.card-link { text-decoration: none; color: var(--navy); display: block; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--navy); transform: translateY(-2px); }
.card h3 { margin-bottom: .35em; }
.card-feature { background: var(--navy); color: var(--white); border-color: var(--navy); }
.card-feature h2, .card-feature h3, .card-feature .muted { color: var(--white); }
.card-feature .muted { opacity: .8; }
.card-sky { background: var(--sky); border-color: var(--sky); }
.card-frame { border: 2px solid var(--navy); position: relative; margin-top: 12px; }
.card-frame > .frame-tag { position: absolute; top: -13px; inset-inline-start: 22px; background: var(--red); color: var(--white); font-weight: 700; font-size: .82rem; padding: 2px 14px; border-radius: 999px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kpi { font-family: var(--en); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--navy); }
.kpi-label { color: var(--ink); font-size: .9rem; }
.icon-circle { width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--cream); color: var(--navy); flex: none; }
.icon-circle.red { color: var(--red); }
.icon-circle.green { color: var(--green); }

/* ---------- Brand elements ---------- */
/* Sound divider between sections */
.divider { display: flex; align-items: center; gap: 16px; color: var(--sand); margin: 8px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--sand); }
.divider .logo-symbol { height: 22px; }
/* Word highlight: English word in a red pill + Arabic meaning */
.word-pill { display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 999px; background: var(--red); color: var(--white); font-family: var(--en); font-weight: 700; direction: ltr; }
/* Pronunciation bubble */
.say-bubble { display: inline-flex; align-items: center; gap: 12px; background: var(--sky); color: var(--navy); border-radius: 999px; padding: 8px 18px; font-family: var(--en); font-weight: 700; direction: ltr; }
/* Pronunciation bar (sound-wave progress) */
.wavebar { display: flex; align-items: center; gap: 4px; height: 36px; direction: ltr; }
.wavebar i { display: block; width: 5px; border-radius: 3px; background: var(--sand); }
.wavebar i.on { background: var(--red); }
.card-feature .wavebar i { background: rgba(255,255,255,.25); }
.card-feature .wavebar i.on { background: var(--red); }
/* Wave pattern — large backgrounds only */
.wave-bg { background-color: var(--navy); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='40' viewBox='0 0 60 40'%3E%3Cg fill='%23E63946' fill-opacity='.35'%3E%3Crect x='6' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='14' y='11' width='3' height='18' rx='1.5'/%3E%3Crect x='22' y='6' width='3' height='28' rx='1.5'/%3E%3C/g%3E%3Cg fill='%23FFFFFF' fill-opacity='.12'%3E%3Crect x='30' y='11' width='3' height='18' rx='1.5'/%3E%3Crect x='38' y='16' width='3' height='8' rx='1.5'/%3E%3Crect x='46' y='13' width='3' height='14' rx='1.5'/%3E%3C/g%3E%3C/svg%3E"); color: var(--white); }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; }
.hero h1 .accent { color: var(--red-dark); }
.hero .lead { max-width: 34em; }
.hero-card { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 28px; }
.hero-card .muted { color: var(--sky); }
.hero-card .word { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--white); }
.hero-card .meaning { color: var(--red); font-weight: 900; font-size: 1.4rem; }
.hero-card .example-en { color: rgba(255,255,255,.85); font-family: var(--en); direction: ltr; text-align: right; margin: 6px 0 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 18px 24px; margin-top: 36px; }
.features div { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.features .ic { color: var(--red); }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 40px 0 28px; } .features { grid-template-columns: 1fr; } }

/* ---------- Tags & level badges ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 12px; border-radius: 999px; background: var(--sky-tint); color: var(--navy); font-size: .82rem; font-weight: 700; }
.tag-red { background: var(--red-tint); color: var(--red-dark); }
.tag-gray { background: var(--sand); color: var(--ink); }
.tag-sky { background: var(--sky); color: var(--navy); }
.tag-green { background: var(--green-tint); color: #1E7268; }
.tag-yellow { background: var(--yellow); color: var(--navy); }
.lvl { display: inline-block; min-width: 2.7em; text-align: center; padding: 2px 9px; border-radius: 999px; font-family: var(--en); font-weight: 700; font-size: .8rem; direction: ltr; }
.lvl-a1 { background: var(--sand); color: var(--navy); }
.lvl-a2 { background: var(--sky); color: var(--navy); }
.lvl-b1 { background: var(--yellow); color: var(--navy); }
.lvl-b2 { background: var(--blue); color: var(--white); }
.lvl-c1 { background: var(--red-dark); color: var(--white); }
.lvl-c2 { background: var(--navy); color: var(--white); }

/* ---------- Alerts ---------- */
.flashes { margin-top: 18px; }
.alert { padding: 13px 18px; border-radius: var(--radius-sm); margin-bottom: 10px; border: 1px solid transparent; }
.alert-success { background: var(--green-tint); border-color: rgba(42,157,143,.35); }
.alert-error { background: var(--red-tint); border-color: rgba(230,57,70,.35); }
.alert-info { background: var(--sky-tint); border-color: var(--sky); }
.alert-warning { background: var(--yellow-tint); border-color: rgba(255,183,3,.5); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { font-weight: 700; display: block; margin-bottom: 6px; }
.input, .form input[type=text], .form input[type=email], .form input[type=password], .form input[type=number], .form input[type=url], .form input[type=search], .form select, .form textarea {
  width: 100%; padding: 12px 18px; border: 2px solid var(--sand); border-radius: var(--radius-sm); font: inherit; background: var(--white); color: var(--navy);
}
.form textarea { min-height: 130px; resize: vertical; }
.input:focus, .form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--blue); }
.form .hint { font-size: .85rem; color: var(--ink); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.auth-box { max-width: 460px; margin: 56px auto; }
.search-box { display: flex; gap: 10px; }
.search-box .input { flex: 1; border-radius: 999px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--sand); border-radius: var(--radius); background: var(--white); }
table.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--sand); vertical-align: middle; }
.table th { background: var(--cream); font-size: .88rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr.highlight td { background: var(--sky-tint); font-weight: 700; }

/* ---------- Progress ---------- */
.progress { height: 10px; background: var(--sand); border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--red); border-radius: 999px; transition: width .3s; }
.progress.dark > span { background: var(--navy); }
.progress.blue > span { background: var(--blue); }

/* ---------- Quiz ---------- */
.quiz-bar { position: sticky; top: 76px; z-index: 5; background: var(--white); border: 1px solid var(--sand); border-radius: 999px; padding: 10px 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 18px; font-family: var(--en); font-weight: 700; }
.quiz-bar .progress { flex: 1; }
.q { background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.q.answered { border-color: var(--sky); }
.q-head { display: flex; gap: 8px; align-items: center; margin-bottom: 10px; color: var(--ink); font-size: .88rem; font-weight: 700; }
.q-text { font-size: 1.15rem; font-weight: 500; margin-bottom: 14px; direction: ltr; text-align: left; }
.q-passage { background: var(--cream); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 14px; font-size: .98rem; white-space: pre-line; direction: ltr; text-align: left; border-inline-end: 4px solid var(--blue); }
.opts { display: grid; gap: 10px; }
.opt { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border: 2px solid var(--sand); border-radius: 999px; cursor: pointer; transition: border-color .12s, background .12s; background: var(--white); }
.opt .en { font-family: var(--en); }
.opt:hover { border-color: var(--blue); }
.opt input { accent-color: var(--red-dark); width: 18px; height: 18px; flex: none; }
.opt:has(input:checked) { border-color: var(--navy); background: var(--sky-tint); }
.opt.correct { border-color: var(--green); background: var(--green-tint); }
.opt.wrong { border-color: var(--red); background: var(--red-tint); }
.explain { margin-top: 12px; padding: 12px 16px; background: var(--sky-tint); border-radius: var(--radius-sm); font-size: .95rem; }
.ok-text { color: var(--green); }
.bad-text { color: var(--red-dark); }
audio { width: 100%; margin-bottom: 10px; }

/* ---------- Results ---------- */
.result-hero { text-align: center; padding: 36px 24px; }
.big-level { font-size: 5rem; font-weight: 700; line-height: 1; direction: ltr; color: var(--navy); }
.result-hero.card-feature .big-level { color: var(--white); }
.scale-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.scale-card { border: 2px solid var(--navy); border-radius: var(--radius); padding: 18px; text-align: center; background: var(--white); }
.scale-card .val { font-family: var(--en); font-size: 2.3rem; font-weight: 700; direction: ltr; line-height: 1.2; }
.scale-card .lbl { font-family: var(--en); font-weight: 700; letter-spacing: .08em; }
.scale-card.main { background: var(--navy); color: var(--white); }
.scale-card.main .small { color: var(--sky); }
@media (max-width: 680px) { .scale-cards { grid-template-columns: 1fr; } }
.ladder { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin: 16px 0 6px; }
.ladder div { padding: 9px 0; text-align: center; border-radius: 999px; background: var(--sand); color: var(--ink); font-family: var(--en); font-weight: 700; font-size: .85rem; direction: ltr; }
.ladder div.on { background: var(--sky); color: var(--navy); }
.ladder div.cur { background: var(--red); color: var(--white); }
.card-feature .ladder div { background: rgba(255,255,255,.12); color: rgba(255,255,255,.75); }
.card-feature .ladder div.on { background: var(--sky); color: var(--navy); }
.card-feature .ladder div.cur { background: var(--red); color: var(--white); }

/* ---------- Flashcards ---------- */
.flash-card { perspective: 1000px; cursor: pointer; min-height: 260px; }
.flash-inner { position: relative; width: 100%; min-height: 260px; transition: transform .45s; transform-style: preserve-3d; }
.flash-card.flipped .flash-inner { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; backface-visibility: hidden; border: 2px solid var(--navy); border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center; }
.flash-face.back { transform: rotateY(180deg); background: var(--navy); color: var(--white); }
.flash-face.back .muted { color: var(--sky); }
.flash-word { font-size: 2.4rem; font-weight: 700; direction: ltr; }
.grade-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }

/* ---------- Word of the day ---------- */
.wotd { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 26px; }
.wotd .word { font-size: 2.2rem; font-weight: 700; direction: ltr; color: var(--white); }
.wotd .meaning { color: var(--red); font-weight: 900; font-size: 1.5rem; margin: 4px 0; }
.wotd .muted { color: var(--sky); }
.wotd .example { background: rgba(255,255,255,.06); border-color: var(--red); color: var(--white); }
.wotd .btn-ghost { border-color: var(--white); color: var(--white); }
.wotd .btn-ghost:hover { background: var(--white); color: var(--navy); }
.speak { background: var(--red); color: var(--white); border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.speak:hover { background: var(--red-dark); }

/* ---------- Community ---------- */
.post { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.votes { text-align: center; }
.votes .n { font-family: var(--en); font-weight: 700; font-size: 1.2rem; }
.vote-btn { background: var(--white); border: 2px solid var(--sand); border-radius: 999px; width: 42px; height: 32px; cursor: pointer; color: var(--navy); }
.vote-btn.on { background: var(--navy); border-color: var(--navy); color: var(--white); }
.answer-accepted { border: 2px solid var(--green); }

/* ---------- Gamification ---------- */
.badge-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .88rem; font-weight: 700; background: var(--yellow); color: var(--navy); }
.badge-pill.locked { background: var(--sand); color: var(--ink); opacity: .7; }
.streak { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--navy); background: var(--yellow-tint); padding: 5px 12px; border-radius: 999px; font-size: .88rem; }

/* ---------- Admin ---------- */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; padding: 28px 0 56px; }
.admin-side { position: sticky; top: 92px; align-self: start; display: grid; gap: 2px; background: var(--white); border: 1px solid var(--sand); border-radius: var(--radius); padding: 12px; }
.admin-side a { text-decoration: none; padding: 9px 14px; border-radius: 999px; color: var(--navy); font-weight: 500; }
.admin-side a.active, .admin-side a:hover { background: var(--navy); color: var(--white); }
@media (max-width: 900px) { .admin-layout { grid-template-columns: 1fr; } .admin-side { position: static; grid-auto-flow: column; overflow-x: auto; } }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--sand); margin-inline-end: 6px; }
.status-dot.on { background: var(--green); }

/* ---------- Lesson content ---------- */
.prose { font-size: 1.05rem; }
.prose h2 { margin-top: 1.4em; font-size: 1.35rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.video { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; background: var(--navy); margin-bottom: 20px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.example { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; border-inline-start: 4px solid var(--red); padding: 10px 16px; background: var(--cream); border-radius: var(--radius-sm); margin: 10px 0; }
.example .en, .example span:not(.small) { font-family: var(--en); }
.example > div { flex-basis: 100%; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pagination a, .pagination span { padding: 6px 14px; border: 1px solid var(--sand); border-radius: 999px; text-decoration: none; color: var(--navy); background: var(--white); font-family: var(--en); }
.pagination .cur { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 48px 0 24px; background: var(--navy); color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 2fr 1fr; gap: 28px; }
.site-footer .muted { color: var(--sky); }
.footer-links, .footer-social { display: grid; gap: 6px; align-content: start; }
.footer-links { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.footer-links a, .footer-social a { text-decoration: none; color: var(--white); opacity: .88; }
.footer-links a:hover, .footer-social a:hover { opacity: 1; text-decoration: underline; }
.footer-title { color: var(--white); font-weight: 900; margin-bottom: 8px; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; color: var(--sky); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr; } }

.empty { text-align: center; padding: 44px 20px; color: var(--ink); border: 2px dashed var(--sand); border-radius: var(--radius); background: var(--white); }
