/* =========================================================================
   Sayed Fadlullah — responsive front-end theme
   One layout for all screen sizes (RTL). Admin (back_office) is unaffected.
   ========================================================================= */

:root {
  --navy-950: #0b1830;
  --navy-900: #0f2142;
  --navy-800: #16305c;
  --navy-700: #1f3f75;
  --navy-600: #2a5193;
  --navy-100: #dfe7f4;
  --navy-50:  #eef2f9;
  --gold-600: #9c7a37;
  --gold-500: #b8924a;
  --gold-300: #dcc28c;
  --gold-50:  #faf5ea;

  --ink:    #1b2333;
  --ink-2:  #3d475e;
  --muted:  #6b7488;
  --line:   #e3e7ef;
  --bg:     #f4f6fa;
  --paper:  #ffffff;
  --danger: #b42318;
  --ok:     #067647;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 33, 66, .06);
  --shadow: 0 1px 2px rgba(15, 33, 66, .05), 0 10px 30px -12px rgba(15, 33, 66, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 24, 48, .45);

  --font-ui: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-read: "Noto Naskh Arabic", "Traditional Arabic", "Times New Roman", serif;
  --font-display: "Amiri", "Noto Naskh Arabic", serif;

  --container: 1220px;
  --gutter: 16px;
  --nav-h: 60px;

  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07' stroke-width='1'%3E%3Cpath d='M32 6l7.5 18.5L58 32l-18.5 7.5L32 58l-7.5-18.5L6 32l18.5-7.5z'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
  --pattern-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%231f3f75' stroke-opacity='.06' stroke-width='1'%3E%3Cpath d='M32 6l7.5 18.5L58 32l-18.5 7.5L32 58l-7.5-18.5L6 32l18.5-7.5z'/%3E%3Crect x='19' y='19' width='26' height='26' transform='rotate(45 32 32)'/%3E%3Ccircle cx='32' cy='32' r='5'/%3E%3C/g%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, iframe { max-width: 100%; }
img { height: auto; border: 0; }
a { color: var(--navy-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; color: var(--navy-900); }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; border-radius: 6px; }
mark { background: #fde9b5; color: inherit; padding: 0 .15em; border-radius: 4px; }

.ico { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; vertical-align: -0.2em; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: #fff; padding: 8px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 44px; padding: .55em 1.3em;
  border: 1px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy-700); color: #fff; }
.btn--primary:hover { background: var(--navy-800); color: #fff; box-shadow: 0 8px 20px -8px rgba(31, 63, 117, .7); }
.btn--gold { background: var(--gold-500); color: #fff; }
.btn--gold:hover { background: var(--gold-600); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--navy-800); }
.btn--ghost:hover { border-color: var(--navy-700); color: var(--navy-700); }
.btn--light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .28); color: #fff; }
.btn--light:hover { background: #fff; color: var(--navy-800); }
.btn--sm { min-height: 36px; padding: .4em 1em; font-size: .88rem; }

/* ---------- Top bar ---------- */
.topbar { background: var(--navy-950); color: #b9c4d9; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; }
.topbar__links { display: flex; gap: 22px; margin: 0; padding: 0; list-style: none; }
.topbar__links a { color: #d6deec; }
.topbar__links a:hover { color: var(--gold-300); }
.topbar__date { opacity: .85; }
.social { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.social a {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  color: #d6deec; background: rgba(255, 255, 255, .06); transition: background .2s, color .2s;
}
.social a:hover { background: var(--gold-500); color: #fff; }
.social .ico { width: 16px; height: 16px; }

/* ---------- Banner (original site artwork, full width) ---------- */
/* banner-edge.jpg is the banner's own 1px edge column, repeated so the artwork continues to both screen edges. */
/* The artwork's bottom grey band (rows 178–209 of 209) is clipped off; the edge slice is sized to match (209/178 = 117.42%). */
.banner { background: #e0e2e1 url("../img/banner-edge.jpg") repeat-x 0 0 / auto 117.42%; }
/* Capped at the artwork's natural width (1042px), so it is never upscaled. */
.banner__link { display: block; max-width: 1042px; margin-inline: auto; aspect-ratio: 1042 / 178; overflow: hidden; }
.banner__img { display: block; width: 100%; height: auto; }
@media (min-width: 1060px) {
  /* Wider screens show the background beyond the artwork: soften its sides into it. */
  .banner__img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 70px, #000 calc(100% - 70px), transparent 100%);
  }
}

.searchbox { position: relative; flex: 0 1 360px; }
.searchbox input {
  width: 100%; height: 48px; padding-inline: 18px 52px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  box-shadow: var(--shadow-sm); transition: border-color .2s, box-shadow .2s;
}
.searchbox input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(42, 81, 147, .12); }
.searchbox button {
  position: absolute; inset-inline-end: 5px; top: 5px; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--navy-700); color: #fff; cursor: pointer;
}
.searchbox button:hover { background: var(--gold-500); }

/* Compact search inside the navy navbar */
.searchbox--nav { flex: none; width: 270px; }
.searchbox--nav input {
  height: 40px; padding-inline: 16px 44px; border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1); color: #fff; box-shadow: none; font-size: .9rem;
}
.searchbox--nav input::placeholder { color: #b9c6de; }
.searchbox--nav input:focus { background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 0 0 4px rgba(220, 194, 140, .35); }
.searchbox--nav input:focus::placeholder { color: var(--muted); }
.searchbox--nav button { top: 4px; inset-inline-end: 4px; width: 32px; height: 32px; background: var(--gold-500); }
.searchbox--nav button .ico { width: 16px; height: 16px; }

/* ---------- Main navigation ---------- */
.navbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--navy-800);
  box-shadow: 0 6px 20px -12px rgba(11, 24, 48, .6);
}
.navbar__inner { display: flex; align-items: center; gap: 8px; min-height: var(--nav-h); }
.nav { display: flex; align-items: stretch; gap: 2px; margin: 0; padding: 0; list-style: none; flex: 1; min-width: 0; }
.nav > li { position: relative; display: flex; }
.nav__link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; min-height: var(--nav-h);
  color: #e6ecf6; font-weight: 600; font-size: .98rem;
  background: none; border: 0; cursor: pointer;
  border-bottom: 3px solid transparent; border-top: 3px solid transparent;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: #fff; background: rgba(255, 255, 255, .06); }
.nav__link.is-active { color: #fff; border-bottom-color: var(--gold-500); }
.nav__link .ico--chev { width: 14px; height: 14px; transition: transform .2s; }
.nav__link[aria-expanded="true"] .ico--chev { transform: rotate(180deg); }

.mega {
  position: absolute; top: 100%; inset-inline-start: 0; z-index: 50;
  width: min(860px, calc(100vw - 48px));
  padding: 22px; border-radius: 0 0 var(--radius) var(--radius);
  background: #fff; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 16px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.mega.is-open { opacity: 1; visibility: visible; transform: none; }
.mega a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); font-weight: 500;
}
.mega a:hover { background: var(--navy-50); color: var(--navy-700); }
.mega a .ico { color: var(--gold-500); width: 16px; height: 16px; }

.navbar__tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border: 0; border-radius: 12px; background: transparent; color: #fff; cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.icon-btn .ico { width: 22px; height: 22px; }
.navbar__brand-mini { display: none; align-items: center; gap: 10px; color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.navbar__brand-mini img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--gold-300); object-fit: cover; }
.navbar__brand-mini:hover { color: #fff; }

/* ---------- News ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker__inner { display: flex; align-items: center; gap: 14px; min-height: 48px; }
.ticker__label {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 999px;
  background: var(--gold-50); color: var(--gold-600); font-weight: 700; font-size: .85rem;
}
.ticker__label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
.ticker__viewport { position: relative; flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker__track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; padding-inline: 22px; white-space: nowrap; color: var(--ink-2); font-size: .95rem; }
.ticker__item::before { content: "◆"; color: var(--gold-500); font-size: .6rem; }
.ticker__item a { color: var(--navy-700); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; }
}

/* ---------- Mobile drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 80; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(11, 24, 48, .55); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0;
  width: min(360px, 88vw); background: #fff; overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px; background: var(--navy-800) var(--pattern); color: #fff;
}
.drawer__head .navbar__brand-mini { display: flex; }
.drawer__body { padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.drawer__title { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.drawer__list { margin: 0; padding: 0; list-style: none; }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 10px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
.drawer__list li:last-child a { border-bottom: 0; }
.drawer__list a:hover { background: var(--navy-50); color: var(--navy-700); }
.drawer__list .ico { color: var(--gold-500); width: 14px; height: 14px; }
.drawer .searchbox { flex: none; }
.drawer .social a { background: var(--navy-50); color: var(--navy-700); width: 40px; height: 40px; }
.drawer .social a:hover { background: var(--gold-500); color: #fff; }
body.no-scroll { overflow: hidden; }

/* ---------- Page structure ---------- */
.site-main { padding-block: 28px 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .layout .sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
}
.stack { display: flex; flex-direction: column; gap: 28px; min-width: 0; }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card--pad { padding: 24px; }
@media (min-width: 768px) { .card--pad { padding: 32px; } }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.section-title {
  position: relative; display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--navy-900);
}
.section-title::before {
  content: ""; width: 12px; height: 12px; flex: none; transform: rotate(45deg);
  background: var(--gold-500); border-radius: 2px; box-shadow: 0 0 0 4px var(--gold-50);
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--pattern), linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff;
}
.page-hero::after {
  content: ""; position: absolute; inset-inline-end: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 194, 140, .35), transparent 65%);
}
.page-hero__inner { position: relative; z-index: 1; padding-block: 34px 38px; }
.page-hero__title { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 700; line-height: 1.4; }
.page-hero__sub { margin: 8px 0 0; color: #c9d4e8; font-size: .95rem; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .88rem; color: #b9c6de; }
.crumbs a { color: #dfe7f4; }
.crumbs a:hover { color: var(--gold-300); }
.crumbs li + li::before { content: "‹"; margin-inline-end: 6px; opacity: .6; }

/* ---------- Hero slider (home) ---------- */
.hero { position: relative; border-radius: calc(var(--radius) + 4px); overflow: hidden; background: var(--navy-900) var(--pattern); box-shadow: var(--shadow); color: #fff; }
.hero__track { display: flex; transition: transform .7s cubic-bezier(.2, .8, .2, 1); touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { .hero__track { transition: none; } }
.hero__slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr; min-height: 360px; }
.hero__media { position: relative; min-height: 240px; overflow: hidden; background: var(--navy-800); }
/* Show the whole picture (many contain text); a blurred copy fills the rest of the frame. */
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.hero__media img.hero__media-bg { object-fit: cover; filter: blur(24px) brightness(.55) saturate(1.15); transform: scale(1.15); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 24, 48, .55), transparent 55%); }
.hero__body { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding: 26px 24px 64px; }
.hero__badge { align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: rgba(220, 194, 140, .16); color: var(--gold-300); font-size: .8rem; font-weight: 700; }
.hero__title { color: #fff; font-family: var(--font-display); font-size: clamp(1.45rem, 2.6vw, 2.15rem); font-weight: 700; line-height: 1.45; }
.hero__title a { color: inherit; }
.hero__title a:hover { color: var(--gold-300); }
.hero__text { color: #cdd7ea; font-size: 1rem; line-height: 1.9; margin: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero__controls { position: absolute; bottom: 18px; inset-inline-start: 24px; inset-inline-end: 24px; display: flex; align-items: center; justify-content: space-between; gap: 12px; z-index: 2; }
.hero__dots { display: flex; gap: 8px; }
.hero__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .35); cursor: pointer; transition: width .25s, background .25s; }
.hero__dot.is-active { width: 28px; background: var(--gold-500); }
.hero__arrows { display: flex; gap: 8px; }
.hero__arrows button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; }
.hero__arrows button:hover { background: #fff; color: var(--navy-800); }
@media (min-width: 768px) {
  .hero__slide { grid-template-columns: 1.05fr 1fr; min-height: 380px; }
  .hero__media::after { background: linear-gradient(270deg, rgba(15, 33, 66, .9), transparent 40%); }
  .hero__body { padding: 40px 40px 80px; }
}

/* ---------- Article cards ---------- */
.post-list { display: flex; flex-direction: column; gap: 16px; }
.post {
  display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.post:hover { color: inherit; border-color: var(--navy-100); box-shadow: var(--shadow); transform: translateY(-2px); }
.post__media { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--navy-50); }
.post__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post:hover .post__media img { transform: scale(1.05); }
.post__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.post__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--navy-900); line-height: 1.5; }
.post:hover .post__title { color: var(--navy-600); }
.post__text { color: var(--muted); font-size: .95rem; line-height: 1.85; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: .82rem; }
.post__meta span { display: inline-flex; align-items: center; gap: 5px; }
.post__meta .ico { color: var(--gold-500); width: 14px; height: 14px; }
@media (min-width: 640px) {
  .post { grid-template-columns: 220px minmax(0, 1fr); gap: 22px; padding: 16px; }
  .post__title { font-size: 1.35rem; }
  .post__text { -webkit-line-clamp: 3; }
}

/* min 320px: 3 columns on desktop so the 9-per-page category listing fills complete rows */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 22px; }
.tile {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; transition: box-shadow .25s, transform .25s;
}
.tile:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-3px); }
.tile__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-50); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover .tile__media img { transform: scale(1.05); }
.tile__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; flex: 1; }
.tile__title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; line-height: 1.55; color: var(--navy-900); }
.tile:hover .tile__title { color: var(--navy-600); }
.tile__text { color: var(--muted); font-size: .92rem; line-height: 1.85; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__more { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; color: var(--gold-600); font-weight: 600; font-size: .9rem; }

/* Books / covers */
.grid-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px; }
.book { display: flex; flex-direction: column; gap: 10px; color: inherit; }
.book:hover { color: inherit; }
.book__cover {
  aspect-ratio: 3 / 4; border-radius: 8px 14px 14px 8px; overflow: hidden; background: var(--navy-50);
  box-shadow: -6px 0 0 -2px var(--navy-100), var(--shadow); transition: transform .3s, box-shadow .3s;
}
.book:hover .book__cover { transform: translateY(-4px) rotate(-1deg); box-shadow: -6px 0 0 -2px var(--gold-300), var(--shadow-lg); }
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
.book__title { font-weight: 600; font-size: .95rem; line-height: 1.6; color: var(--navy-900); text-align: center; }

/* Image placeholder when an article has no picture */
.ph {
  width: 100%; height: 100%; min-height: 100%;
  display: grid; place-items: center;
  background: var(--pattern), linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--gold-300);
}
.ph .ico { width: 34%; height: 34%; max-width: 64px; max-height: 64px; opacity: .85; }

/* Sub-category / section tiles */
.grid-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.link-tile {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--navy-900); font-weight: 600; line-height: 1.6;
  transition: border-color .2s, box-shadow .2s, transform .2s, background .2s;
}
.link-tile:hover { border-color: var(--gold-300); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--navy-700); }
.link-tile__icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--navy-50); color: var(--navy-700); }
.link-tile:hover .link-tile__icon { background: var(--gold-500); color: #fff; }
.link-tile__arrow { margin-inline-start: auto; color: var(--muted); width: 16px; height: 16px; }

/* Numbered title list (category 48) */
.title-list { margin: 0; padding: 0; list-style: none; counter-reset: t; }
.title-list li { counter-increment: t; border-bottom: 1px solid var(--line); }
.title-list li:last-child { border-bottom: 0; }
.title-list a { display: flex; align-items: center; gap: 14px; padding: 14px 6px; color: var(--ink); font-weight: 500; line-height: 1.7; }
.title-list a::before {
  content: counter(t); flex: none; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--navy-50); color: var(--navy-700); font-weight: 700; font-size: .85rem;
}
.title-list a:hover { color: var(--navy-600); }
.title-list a:hover::before { background: var(--gold-500); color: #fff; }

/* Horizontal scroller (other articles) */
.scroller { position: relative; }
.scroller__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.scroller__track > * { scroll-snap-align: start; }
@media (min-width: 900px) { .scroller__track { grid-auto-columns: calc((100% - 32px) / 3); } }
.scroller__nav { display: flex; gap: 8px; }
.scroller__nav button {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy-700); cursor: pointer;
}
.scroller__nav button:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 28px; }
.pager a, .pager__current {
  min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-weight: 600;
}
.pager a:hover { border-color: var(--navy-700); color: var(--navy-700); }
.pager__current { background: var(--navy-700); border-color: var(--navy-700); color: #fff; }

/* ---------- Sidebar widgets ---------- */
.sidebar { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.widget { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.widget__head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.widget__head h2, .widget__head h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy-900); }
.widget__head .ico { color: var(--gold-500); }
.widget__body { padding: 16px 20px 20px; }
.ratio { position: relative; aspect-ratio: 16 / 9; background: #000; }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.tabs__list { display: flex; gap: 4px; padding: 6px; margin: 12px 12px 0; border-radius: 12px; background: var(--bg); }
.tabs__btn {
  flex: 1; padding: 8px 6px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  color: var(--muted); font-weight: 600; font-size: .88rem; transition: background .2s, color .2s;
}
.tabs__btn[aria-selected="true"] { background: #fff; color: var(--navy-800); box-shadow: var(--shadow-sm); }
.tabs__panel[hidden] { display: none; }

.mini-list { margin: 0; padding: 6px 12px 12px; list-style: none; }
.mini-list a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 8px; border-radius: 12px; color: var(--ink); }
.mini-list a:hover { background: var(--navy-50); color: var(--navy-700); }
.mini-list__img { width: 64px; height: 50px; border-radius: 8px; overflow: hidden; background: var(--navy-50); }
.mini-list__img img { width: 100%; height: 100%; object-fit: cover; }
.mini-list__img .ph .ico { width: 22px; height: 22px; }
.mini-list__title { font-weight: 600; font-size: .92rem; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-list__date { display: block; color: var(--muted); font-size: .78rem; margin-top: 2px; }

/* Compact rows: all categories fit without the sidebar outgrowing the article column. */
.cat-list { margin: 0; padding: 6px 10px 10px; list-style: none; }
.cat-list a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; color: var(--ink-2); font-size: .95rem; font-weight: 500; line-height: 1.6; }
.cat-list a::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 2px; transform: rotate(45deg); background: var(--gold-300); transition: background .2s; }
.cat-list a:hover { background: var(--navy-50); color: var(--navy-700); }
.cat-list a:hover::before { background: var(--gold-500); }

/* ---------- Home band (prayer times + apps), full width under the articles ---------- */
.band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr);
  border-radius: calc(var(--radius) + 4px);
  background: var(--pattern), linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: #fff; box-shadow: var(--shadow);
}
.band::before {
  content: ""; position: absolute; z-index: -1; inset-inline-end: -140px; top: -180px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 194, 140, .16), transparent 68%);
}
.band__item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px 18px; padding: 24px 22px; }
.band__item + .band__item { border-top: 1px solid rgba(255, 255, 255, .1); }
.band__icon {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(220, 194, 140, .12); border: 1px solid rgba(220, 194, 140, .28); color: var(--gold-300);
}
.band__icon .ico { width: 26px; height: 26px; }
.band__text h2 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
.band__text p { margin: 2px 0 0; color: #c9d4e8; font-size: .92rem; line-height: 1.8; }
.band__action { grid-column: 1 / -1; }
.band .app-links { display: flex; flex-wrap: wrap; gap: 10px; }
.band .app-link { flex: 1 1 150px; }
@media (min-width: 640px) {
  .band__item { grid-template-columns: auto minmax(0, 1fr) auto; padding: 26px 30px; }
  .band__action { grid-column: auto; }
  .band .app-link { flex: none; }
}
@media (min-width: 1024px) {
  .band:not(.band--single) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band:not(.band--single) .band__item { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .band:not(.band--single) .band__action { grid-column: 2; justify-self: start; }
  .band__item + .band__item { border-top: 0; border-inline-start: 1px solid rgba(255, 255, 255, .1); }
}
.app-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; transition: background .2s, color .2s;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; line-height: 1.3;
}
.app-link small { display: block; color: #aebbd4; font-size: .7rem; }
.app-link strong { font-size: .9rem; }
.app-link .ico { width: 24px; height: 24px; }
.app-link:hover { background: #fff; color: var(--navy-800); }
.app-link:hover small { color: var(--muted); }

/* ---------- Article page ---------- */
.article { overflow: hidden; }
.article__header { padding: 26px 24px 0; }
@media (min-width: 768px) { .article__header { padding: 38px 44px 0; } }
.article__cat { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; border-radius: 999px; background: var(--gold-50); color: var(--gold-600); font-weight: 700; font-size: .85rem; }
.article__cat:hover { background: var(--gold-500); color: #fff; }
.article__title { margin-top: 14px; font-family: var(--font-display); font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; line-height: 1.45; color: var(--navy-900); }
.article__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.article__meta span { display: inline-flex; align-items: center; gap: 6px; }
.article__meta .ico { color: var(--gold-500); }
.article__figure { margin: 24px 24px 0; }
@media (min-width: 768px) { .article__figure { margin: 30px 44px 0; } }
.article__figure button { display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy-50); cursor: zoom-in; }
.article__figure img { display: block; width: 100%; max-height: 560px; object-fit: contain; margin-inline: auto; }
.article__content { padding: 8px 24px 30px; }
@media (min-width: 768px) { .article__content { padding: 12px 44px 40px; } }

.prose { font-family: var(--font-read); font-size: 1.18rem; line-height: 2.1; color: #222b3c; overflow-wrap: break-word; }
@media (min-width: 768px) { .prose { font-size: 1.24rem; } }
.prose > *:first-child { margin-top: 0; }
.prose p, .prose div { margin: 0 0 1.1em; }
.prose h1, .prose h2, .prose h3, .prose h4 { font-family: var(--font-display); color: var(--navy-800); margin: 1.4em 0 .6em; line-height: 1.5; }
.prose h2 { font-size: 1.55rem; } .prose h3 { font-size: 1.35rem; } .prose h4 { font-size: 1.2rem; }
.prose a { color: var(--navy-600); text-decoration: underline; text-decoration-color: var(--gold-300); text-underline-offset: 4px; }
.prose img { border-radius: 12px; max-width: 100% !important; height: auto !important; }
.prose iframe { max-width: 100%; border: 0; border-radius: 12px; }
.prose table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 1em 0; font-family: var(--font-ui); font-size: .95rem; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; }
.prose blockquote { margin: 1.4em 0; padding: 16px 22px; border-inline-start: 4px solid var(--gold-500); background: var(--gold-50); border-radius: 0 12px 12px 0; color: var(--ink-2); }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
/* Content pasted from Word carries fixed fonts/sizes/widths; keep it readable on any screen. */
.prose [style*="font-family"] { font-family: inherit !important; }
.prose [style*="width"] { max-width: 100% !important; }
.prose [style*="margin-left:-"], .prose [style*="margin-right:-"] { margin-left: 0 !important; margin-right: 0 !important; }
.prose [style*="font-size"] { font-size: inherit !important; }

.skeleton { display: flex; flex-direction: column; gap: 14px; padding-top: 20px; }
.skeleton span { height: 16px; border-radius: 8px; background: linear-gradient(90deg, var(--navy-50) 25%, #f7f9fc 50%, var(--navy-50) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skeleton span:nth-child(3n) { width: 82%; } .skeleton span:nth-child(4n) { width: 64%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.attachments { display: flex; flex-direction: column; gap: 18px; margin-top: 26px; }
.download {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius);
  border: 1px dashed var(--gold-300); background: var(--gold-50); color: var(--ink);
}
.download:hover { border-style: solid; color: var(--ink); background: #f6edd8; }
.download__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-500); color: #fff; }
.download strong { display: block; color: var(--navy-900); }
.download small { color: var(--muted); }
.embed-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.embed-frame iframe { display: block; width: 100%; border: 0; }
.embed-frame--doc iframe { height: 75vh; min-height: 480px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.share__label { font-weight: 700; color: var(--navy-900); margin-inline-end: 4px; }
.share a, .share button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: .9rem; font-weight: 600; cursor: pointer;
}
.share a:hover, .share button:hover { color: #fff; border-color: transparent; }
.share .s-fb:hover { background: #1877f2; } .share .s-x:hover { background: #111; }
.share .s-wa:hover { background: #25d366; } .share .s-tg:hover { background: #229ed9; }
.share .s-copy:hover { background: var(--navy-700); }

/* Comments + forms */
.comments { margin-top: 28px; }
.comment { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.comment:last-child { border-bottom: 0; }
.comment__avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy-700); font-weight: 700; }
.comment__name { font-weight: 700; color: var(--navy-900); }
.comment__subject { font-weight: 600; color: var(--ink-2); margin-top: 2px; }
.comment__text { color: var(--ink-2); margin-top: 6px; }

.form { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 640px) { .form--2 { grid-template-columns: 1fr 1fr; } .form .span-2 { grid-column: 1 / -1; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92rem; color: var(--navy-900); }
.field label .req { color: var(--danger); }
.input, .textarea {
  width: 100%; min-height: 48px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfe;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.textarea { min-height: 150px; resize: vertical; line-height: 1.8; }
.input:focus, .textarea:focus { outline: none; background: #fff; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(42, 81, 147, .12); }
.captcha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.captcha__img { display: inline-flex; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.captcha__img img { display: block; border-radius: 6px; }
.form__actions { display: flex; align-items: center; gap: 12px; }

.alert { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.alert p { margin: 0; }
.alert--error { background: #fef3f2; color: var(--danger); border: 1px solid #fecdca; }
.alert--ok { background: #ecfdf3; color: var(--ok); border: 1px solid #abefc6; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.4fr; } }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--navy-50); color: var(--ink); }
.contact-item:hover { color: var(--ink); background: var(--navy-100); }
.contact-item__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--navy-700); color: #fff; }
.contact-item small { display: block; color: var(--muted); font-size: .8rem; }
.contact-item strong { direction: ltr; unicode-bidi: plaintext; }

/* Search results */
.result { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); color: inherit; }
.result:first-child { padding-top: 0; }
.result:last-child { border-bottom: 0; }
.result:hover { color: inherit; }
.result__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; color: var(--navy-800); }
.result:hover .result__title { color: var(--gold-600); }
.result__text { margin: 6px 0 0; color: var(--muted); line-height: 1.9; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .ico { width: 48px; height: 48px; color: var(--navy-100); margin-bottom: 10px; }
.empty h2 { font-size: 1.2rem; color: var(--navy-900); margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--pattern), linear-gradient(180deg, var(--navy-900), var(--navy-950) 75%);
  color: #aab6cc;
}
/* Gold hairline across the top edge + a soft glow behind the brand column. */
.site-footer::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-500) 20%, var(--gold-300) 50%, var(--gold-500) 80%, transparent);
}
.site-footer::after {
  content: ""; position: absolute; inset-inline-start: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 194, 140, .13), transparent 65%); pointer-events: none;
}
.site-footer > * { position: relative; z-index: 1; }

.footer__grid { display: grid; grid-template-columns: 1fr; gap: 36px; padding-block: 56px 44px; }
@media (min-width: 640px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}
@media (min-width: 992px) {
  .footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr; gap: 56px; }
  .footer__col--brand { grid-column: auto; }
}

.footer__brand { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; color: #fff; }
.footer__brand:hover { color: #fff; }
.footer__brand img {
  width: 72px; height: 72px; flex: none; border-radius: 50%; object-fit: cover;
  padding: 3px; background: var(--navy-950); border: 2px solid var(--gold-300);
  box-shadow: 0 0 0 6px rgba(220, 194, 140, .1);
}
.footer__brand-text { display: grid; gap: 2px; font-family: var(--font-display); line-height: 1.45; }
.footer__brand-text strong { font-size: 1.45rem; font-weight: 700; color: #fff; }
.footer__brand-text span { font-size: 1.08rem; color: var(--gold-300); }
.footer__about { max-width: 46ch; margin: 0; font-size: .93rem; line-height: 2; }

.footer__title {
  position: relative; display: flex; align-items: center; gap: 10px;
  margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #fff; font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
}
.footer__title::before { content: ""; width: 8px; height: 8px; flex: none; transform: rotate(45deg); background: var(--gold-500); border-radius: 1px; }
.footer__title::after { content: ""; position: absolute; bottom: -1px; inset-inline-start: 0; width: 48px; height: 2px; background: var(--gold-500); border-radius: 2px; }

.footer__links { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.footer__links a { display: inline-flex; align-items: center; gap: 10px; padding-block: 6px; color: #c3cde0; font-size: .95rem; }
.footer__links .ico { width: 13px; height: 13px; color: var(--gold-500); transition: transform .2s; }
.footer__links a:hover { color: var(--gold-300); }
.footer__links a:hover .ico { transform: translateX(-4px); }

.footer__contact {
  display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-sm); background: rgba(255, 255, 255, .04);
  color: #e4e9f2; transition: border-color .2s, background .2s;
}
.footer__contact:hover { color: #fff; border-color: rgba(220, 194, 140, .45); background: rgba(220, 194, 140, .06); }
.footer__contact-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 50%; background: rgba(184, 146, 74, .16); color: var(--gold-300); }
.footer__contact-text { min-width: 0; line-height: 1.5; }
.footer__contact-text small { display: block; color: #8d9ab3; font-size: .78rem; }
.footer__contact-text span { display: block; font-size: .93rem; overflow-wrap: anywhere; text-align: end; }
.footer__label { margin: 0 0 10px; color: #8d9ab3; font-size: .82rem; }

.site-footer .social { flex-wrap: wrap; gap: 8px; }
.site-footer .social a {
  width: 40px; height: 40px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05);
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.site-footer .social a:hover { border-color: var(--gold-500); background: var(--gold-500); color: #fff; transform: translateY(-2px); }

.footer__apps { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.footer__app {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding-block: 6px; padding-inline: 14px 18px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(255, 255, 255, .05);
  color: #fff; line-height: 1.25; transition: background .2s, border-color .2s, transform .2s;
}
.footer__app .ico { width: 24px; height: 24px; color: var(--gold-300); transition: color .2s; }
.footer__app small { display: block; color: #8d9ab3; font-size: .72rem; transition: color .2s; }
.footer__app strong { font-size: .95rem; font-weight: 600; }
.footer__app:hover { border-color: var(--gold-500); background: var(--gold-500); color: #fff; transform: translateY(-2px); }
.footer__app:hover .ico, .footer__app:hover small { color: #fff; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); background: rgba(0, 0, 0, .2); }
.footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-block: 18px; color: #8d9ab3; font-size: .84rem; }
@media (max-width: 639.98px) { .footer__bottom-inner { justify-content: center; text-align: center; } }
.footer__bottom a { color: #c3cde0; }
.footer__bottom a:hover { color: var(--gold-300); }
@media (prefers-reduced-motion: reduce) {
  .footer__links .ico, .site-footer .social a, .footer__app { transition: none; }
  .footer__links a:hover .ico, .site-footer .social a:hover, .footer__app:hover { transform: none; }
}

.to-top {
  position: fixed; inset-inline-end: 18px; bottom: 18px; z-index: 30;
  width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--gold-500); color: #fff; box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--navy-700); }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(11, 24, 48, .85); }
.lightbox img { display: block; max-width: 94vw; max-height: 88vh; border-radius: 12px; }
.lightbox__close { position: absolute; top: 10px; inset-inline-end: 10px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- Responsive switches ---------- */
.only-mobile { display: none; }
@media (max-width: 1023.98px) {
  .nav, .topbar__date, .searchbox--nav { display: none; }
  .only-mobile { display: inline-grid; }
  .navbar__brand-mini { display: flex; }
}
@media (max-width: 767.98px) {
  .topbar__links { display: none; }
  .topbar__inner { justify-content: center; }
  .site-main { padding-block: 20px 40px; }
  .section-title { font-size: 1.35rem; }
}

@media print {
  .topbar, .navbar, .ticker, .sidebar, .site-footer, .share, .comments, .to-top { display: none !important; }
  .layout { display: block; }
  body { background: #fff; }
  .card { border: 0; box-shadow: none; }
}
