/* ==========================================================================
   وكالة الرائد الإخبارية — public site theme (2026-11 redesign)
   ========================================================================== */

:root {
  --green-950: #062c15;
  --green-900: #083a1c;
  --green-800: #0b4a24;
  --green-700: #0f5c2e;
  --green-600: #157038;
  --gold-600: #b88a17;
  --gold-500: #d4a72c;
  --gold-400: #e5bf4e;
  --gold-200: #f7df92;
  --gold-100: #fbf0c9;
  --ink: #17201a;
  --ink-2: #2c352f;
  --muted: #6c746e;
  --line: #e5e8e2;
  --bg: #f4f5f1;
  --card: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(10, 40, 20, .06), 0 6px 18px rgba(10, 40, 20, .07);
  --shadow-lg: 0 10px 30px rgba(6, 44, 21, .18);
  --header-h: 46px;
  --nav-h: 68px;
  --wrap: 1400px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Cairo', Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--green-700); }
img { max-width: 100%; }
h1, h2, h3, h4, h5, h6 { font-family: inherit; }
:focus-visible { outline: 3px solid var(--gold-400); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }


/* ---------- Logo (text-based, gold) ---------- */
.logo { --ln: 68px; --lk: 14px; --lt: 14px; position: relative; display: inline-flex; flex-direction: column; line-height: 1; padding: 0 4px; user-select: none; }
.logo-md { --ln: 56px; --lk: 13px; --lt: 13px; }
.logo-sm { --ln: 40px; --lk: 11px; --lt: 11px; }
.logo-kicker { position: relative; z-index: 2; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: var(--lk); color: #fff; text-align: right; white-space: nowrap; }
.logo-name {
  position: relative; z-index: 2; font-family: 'Reem Kufi', 'Cairo', sans-serif; font-weight: 700; font-size: var(--ln);
  line-height: 1.02; margin: -.02em 0 -.06em; text-align: center; white-space: nowrap;
  background: linear-gradient(180deg, #fff6d2 0%, #f3d77a 26%, #d9ad33 52%, #a87a12 74%, #edc95f 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35));
}
.logo-tag { position: relative; z-index: 2; margin-top: 2px; font-family: 'Cairo', sans-serif; font-weight: 800; font-size: var(--lt); color: #f0cf6a; text-align: left; white-space: nowrap; text-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.logo-swoosh { position: absolute; z-index: 1; left: -34%; bottom: 30%; width: 92%; height: 40%; pointer-events: none; }
a:hover .logo-kicker { color: #fff; }

/* ---------- Header ---------- */
.site-header { position: relative; background: #fff; box-shadow: 0 2px 10px rgba(6, 44, 21, .08); z-index: 30; }

.topbar {
  position: relative;
  background: linear-gradient(90deg, var(--green-900), var(--green-800) 60%, var(--green-700));
  color: #e8efe9;
  height: var(--header-h);
}
.topbar-inner { height: 100%; display: flex; align-items: center; gap: 18px; position: relative; z-index: 3; }

.brand { display: block; line-height: 0; }
.brand img { height: auto; width: auto; }

.topbar-date { align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; color: #dfe9e1; }
.topbar-date i { color: var(--gold-400); font-size: 15px; }
.topbar-date .sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .3); }

.topbar-social { margin-inline-start: auto; align-items: center; gap: 6px; padding-inline-start: 18px; border-inline-start: 1px solid rgba(255, 255, 255, .2); }
.topbar-social a { width: 32px; height: 32px; display: grid; place-items: center; color: #fff; border-radius: 50%; font-size: 15px; }
.topbar-social a:hover { background: rgba(255, 255, 255, .12); color: var(--gold-200); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 0;
  background: transparent; color: #fff; font-size: 22px;
  display: inline-grid; place-items: center; cursor: pointer;
}
.icon-btn-soft { background: rgba(255, 255, 255, .1); font-size: 18px; }
.icon-btn:hover { color: var(--gold-200); }

/* Desktop: logo panel spanning topbar + nav with a gold swoosh */
@media (min-width: 992px) {
  .brand { position: absolute; right: 34px; top: 4px; z-index: 5; }
  .topbar-date { padding-right: 330px; }

  .brand-panel {
    position: absolute; top: 0; right: 0; z-index: 2;
    width: calc(max(0px, (100vw - var(--wrap)) / 2) + 360px);
    height: calc(var(--header-h) + 76px);
    background: linear-gradient(200deg, var(--green-700), var(--green-900));
    border-bottom-left-radius: 100% 100%;
    pointer-events: none;
  }
  .brand-panel::after {
    content: ""; position: absolute; inset: 0;
    border-bottom-left-radius: 100% 100%;
    border-bottom: 4px solid var(--gold-500);
    border-left: 4px solid transparent;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .15));
  }
  .brand-panel::before {
    content: ""; position: absolute; top: 0; left: 18%; width: 160px; height: var(--header-h);
    background: linear-gradient(100deg, transparent 30%, rgba(229, 191, 78, .55) 50%, transparent 70%);
    transform: skewX(-25deg); opacity: .55;
  }
}

/* Main navigation */
.mainnav { background: #fff; height: var(--nav-h); }
.mainnav-inner { height: 100%; display: flex; align-items: center; gap: 16px; padding-right: 380px; }

.menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.menu > li { position: relative; }
.menu > li > a {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 10px;
  font-weight: 700; font-size: 15px; color: var(--ink-2); white-space: nowrap;
}
.menu > li > a:hover { background: #f2f5ef; color: var(--green-700); }
.menu > li > a.active { background: var(--gold-200); color: var(--green-900); box-shadow: inset 0 0 0 1px rgba(184, 138, 23, .35); }
.menu > li > a.active i { color: var(--green-800); }
.menu .caret { font-size: 10px; opacity: .65; }

.submenu {
  list-style: none; margin: 0; padding: 6px; position: absolute; top: 100%; right: 0; min-width: 200px;
  background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); border-top: 3px solid var(--gold-500);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s ease; z-index: 40;
}
.has-sub:hover .submenu, .has-sub:focus-within .submenu { opacity: 1; visibility: visible; transform: translateY(2px); }
.submenu a { display: block; padding: 8px 12px; border-radius: 8px; font-weight: 600; }
.submenu a:hover { background: #f2f5ef; }

.nav-search { margin-inline-start: auto; position: relative; width: 150px; flex-shrink: 0; }
.nav-search input {
  width: 100%; height: 40px; border: 1px solid var(--line); background: #f3f4f1; border-radius: 10px;
  padding: 0 14px 0 40px; font: inherit; font-size: 14px; color: var(--ink);
}
.nav-search input:focus { outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 3px rgba(212, 167, 44, .2); }
.nav-search button { position: absolute; left: 4px; top: 4px; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-2); }

@media (min-width: 992px) and (max-width: 1279.98px) {
  .mainnav-inner { padding-right: 330px; }
  .menu > li > a { padding: 8px 8px; font-size: 14px; }
  .nav-search { width: 44px; }
  .nav-search input { padding: 0; opacity: 0; cursor: pointer; }
  .nav-search:focus-within { width: 180px; }
  .nav-search:focus-within input { opacity: 1; padding: 0 14px 0 40px; }
}

/* Mobile header */
@media (max-width: 991.98px) {
  :root { --header-h: 76px; }
  .topbar { overflow: hidden; }
  .topbar-inner { gap: 8px; padding: 0 12px; }
  .brand .logo { --ln: 46px; --lk: 11px; --lt: 10.5px; }
  .swoosh { position: absolute; left: 0; bottom: -2px; width: 62%; height: 34px; z-index: 1; opacity: .9; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(4, 24, 12, .55); opacity: 0; transition: opacity .2s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  background: #fff; transform: translateX(100%); transition: transform .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--green-800); }
.drawer-head .logo-kicker { font-size: 10px; }
.drawer-search { position: relative; margin: 14px; }
.drawer-search input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #f3f4f1; padding: 0 14px 0 44px; font: inherit; }
.drawer-search button { position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; border: 0; background: none; }
.drawer-menu { list-style: none; margin: 0; padding: 0 10px; }
.drawer-menu a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; font-weight: 700; color: var(--ink-2); }
.drawer-menu a i { width: 18px; text-align: center; color: var(--gold-600); }
.drawer-menu a.active, .drawer-menu a:hover { background: var(--gold-100); color: var(--green-900); }
.drawer-date { margin-top: auto; padding: 14px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
body.drawer-open { overflow: hidden; }

/* ---------- Layout ---------- */
.site-main { padding: 26px 0 34px; }
.top-ads { margin-top: 16px; text-align: center; }
.top-ads img { max-height: 120px; border-radius: var(--radius-sm); }

/* Section heading (open style) */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin: 22px 0 14px; border-bottom: 1px solid var(--line); }
.section-head h2 {
  margin: 0 0 -1px; padding-bottom: 8px; font-size: 22px; font-weight: 800; color: var(--green-800);
  border-bottom: 3px solid var(--green-700); display: flex; align-items: center; gap: 10px;
}
.section-head h2 i { color: var(--gold-500); font-size: 20px; }
.section-head > a, .more-link { font-weight: 700; font-size: 14px; color: var(--green-700); display: inline-flex; align-items: center; gap: 8px; padding-bottom: 8px; }
.section-head > a:hover, .more-link:hover { color: var(--gold-600); }

/* Boxed section */
.box { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.box-head { background: linear-gradient(90deg, var(--green-800), var(--green-700)); border-bottom: 3px solid var(--gold-500); padding: 9px 16px; }
.box-head h2 { margin: 0; color: #fff; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.box-head h2 i { color: var(--gold-400); font-size: 18px; }
.box-body { padding: 14px 16px; display: flex; flex-direction: column; flex: 1; }
.box-body > .more-link { margin-top: auto; padding-top: 12px; padding-bottom: 0; }

/* Shared meta */
.meta-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.meta-date i { color: var(--muted); }

.tag {
  position: absolute; bottom: 10px; right: 10px;
  background: var(--green-800); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 10px; border-radius: 6px; border-bottom: 2px solid var(--gold-500);
}

.clamp-2, .ncard h3, .mcard h3, .feature h3, .vcard h3 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.ncard p, .mcard p, .feature p, .vcard p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }

/* ---------- Hero ---------- */
.hero { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-900); }
.hero-slide { display: block; position: relative; height: 290px; color: #fff; }
.hero-slide:hover { color: #fff; }
.hero-img { position: absolute; top: 0; left: 0; width: 62%; height: 100%; object-fit: cover; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to left, var(--green-800) 0%, var(--green-800) 38%, rgba(11, 74, 36, .9) 44%, rgba(11, 74, 36, .35) 56%, rgba(11, 74, 36, 0) 68%);
}
.hero-body { position: absolute; top: 0; right: 0; bottom: 0; width: 48%; padding: 22px 24px 20px; display: flex; flex-direction: column; align-items: flex-start; }
.badge-gold {
  display: inline-flex; align-items: center; gap: 6px; background: var(--gold-400); color: var(--green-950);
  font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 7px;
}
.hero-title { font-size: 25px; line-height: 1.45; font-weight: 900; margin: 14px 0 8px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hero-excerpt { font-size: 14px; color: #dbe7de; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.hero-meta { margin-top: auto; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; white-space: nowrap; }
.hero-meta .meta-date, .hero-meta .meta-date i { color: #e5eee7; }
.read-more { color: var(--gold-400); font-weight: 800; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.hero-slide:hover .read-more { color: var(--gold-200); }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6);
  background: rgba(10, 30, 16, .45); color: #fff; display: grid; place-items: center; font-size: 13px;
  transition: background .15s;
}
.hero-arrow:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.hero-next { left: 14px; }
.hero-prev { left: calc(52% - 50px); }

.hero-dots { position: absolute; left: 0; right: auto; width: 52%; bottom: 8px; margin: 0; justify-content: center; z-index: 4; }
.hero-dots button {
  width: 9px !important; height: 9px !important; border-radius: 50%; border: 0 !important; margin: 0 4px !important;
  background: rgba(255, 255, 255, .7) !important; opacity: 1 !important; padding: 0; text-indent: -999px;
}
.hero-dots button.active { background: var(--gold-400) !important; transform: scale(1.25); }

/* ---------- Desktop cards ---------- */
.ncard { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.ncard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.ncard-media { position: relative; aspect-ratio: 16 / 9.5; background: #e9ece6; overflow: hidden; min-height: 0; flex-shrink: 0; }
.ncard-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ncard-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.ncard h3 { font-size: 16px; line-height: 1.55; font-weight: 800; margin: 0 0 6px; }
.ncard:hover h3 { color: var(--green-700); }
.ncard p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.ncard .meta-date { margin-top: auto; }

.op-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.op-item:first-child { padding-top: 4px; }
.op-item img { width: 82px; height: 98px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; background: #e9ece6; }
.op-item h3 { font-size: 15px; line-height: 1.6; font-weight: 800; margin: 0 0 4px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.op-item:hover h3 { color: var(--green-700); }
.op-item-sm img { width: 70px; height: 78px; }
.op-item-sm h3 { font-size: 14.5px; -webkit-line-clamp: 2; }
.box-subhead { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 2px; padding: 7px 12px; background: var(--gold-100); border-radius: var(--radius-sm); border-inline-start: 4px solid var(--gold-500); }
.box-subhead h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--green-800); display: flex; align-items: center; gap: 8px; }
.box-subhead h3 i { color: var(--gold-600); }
.box-subhead a { font-size: 12.5px; font-weight: 700; color: var(--green-700); display: inline-flex; align-items: center; gap: 6px; }
.box-subhead a:hover { color: var(--gold-600); }
.op-author { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }

.vcard { display: block; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.vcard:last-of-type { border-bottom: 0; margin-bottom: 0; }
.vcard img { width: 100%; aspect-ratio: 16 / 9.2; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 10px; background: #e9ece6; }
.vcard h3 { font-size: 16px; line-height: 1.55; font-weight: 800; margin: 0 0 6px; }
.vcard:hover h3 { color: var(--green-700); }
.vcard p { font-size: 13px; color: var(--muted); margin: 0 0 6px; }

.feature { display: flex; gap: 16px; align-items: stretch; }
.feature-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.feature h3 { font-size: 17px; line-height: 1.55; font-weight: 800; margin: 0 0 6px; }
.feature:hover h3 { color: var(--green-700); }
.feature p { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.feature .meta-date { margin-top: auto; }
.feature-media { width: 44%; flex-shrink: 0; }
.feature-media img { width: 100%; height: 100%; min-height: 110px; max-height: 130px; object-fit: cover; border-radius: var(--radius-sm); display: block; background: #e9ece6; }

/* ---------- Mobile sections ---------- */
.msection { margin-top: 22px; }
.msection-head { gap: 10px; white-space: nowrap; display: flex; align-items: flex-end; justify-content: space-between; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.msection-head h2 {
  margin: 0 0 -1px; padding-bottom: 6px; font-size: 21px; font-weight: 800; color: var(--green-800);
  display: flex; align-items: center; gap: 10px; border-bottom: 3px solid var(--green-700);
}
.msection-head h2 i { color: var(--gold-500); font-size: 20px; }
.msection-head a { font-size: 13.5px; font-weight: 700; color: var(--green-700); padding-bottom: 8px; display: inline-flex; gap: 6px; align-items: center; }

.mcard { display: flex; gap: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; border: 1px solid #edf0ea; }
.mcard:hover { color: inherit; }
.mcard-media { position: relative; width: 46%; flex-shrink: 0; }
.mcard-media img { width: 100%; height: 100%; min-height: 120px; max-height: 150px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); display: block; background: #e9ece6; }
.mcard-media .tag { bottom: 8px; right: 8px; }
.mcard-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 4px 2px; }
.mcard h3 { font-size: 16px; line-height: 1.55; font-weight: 800; margin: 0 0 4px; }
.mcard p { font-size: 13px; color: var(--muted); margin: 0 0 6px; line-height: 1.6; }
.mcard .meta-date { margin-top: auto; }

/* ---------- Mobile hero ---------- */
@media (max-width: 991.98px) {
  .site-main { padding-top: 16px; }
  .wrap { padding: 0 14px; }
  .home .row { --bs-gutter-x: 0; }
  .hero-slide { height: 268px; }
  .hero-img { width: 70%; }
  .hero-shade { background: linear-gradient(to left, var(--green-800) 0%, var(--green-800) 34%, rgba(11, 74, 36, .88) 45%, rgba(11, 74, 36, .2) 62%, rgba(11, 74, 36, 0) 72%); }
  .hero-body { width: 58%; padding: 16px 16px 14px; }
  .hero-title { font-size: 19px; margin: 10px 0 6px; }
  .hero-excerpt { font-size: 12.5px; line-height: 1.6; }
  .read-more { font-size: 12.5px; }
  .hero-meta .meta-date i { display: none; }
  .hero-meta .meta-date { font-size: 12px; }
  .hero-prev { left: calc(42% - 46px); }
  .hero-next { left: 10px; }
  .hero-arrow { width: 32px; height: 32px; }
  .hero-dots { width: 42%; }
}
@media (max-width: 380px) {
  .hero-body { width: 64%; }
  .hero-title { font-size: 17px; }
  .hero-excerpt { -webkit-line-clamp: 2; }
  .mcard h3 { font-size: 15px; }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; color: #dce8df; margin-top: 10px;
  background:
    radial-gradient(1200px 300px at 85% -10%, rgba(229, 191, 78, .10), transparent 60%),
    linear-gradient(180deg, var(--green-800), var(--green-950));
  border-top: 3px solid var(--gold-500);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr .8fr 1fr; gap: 0; padding-top: 30px; padding-bottom: 22px; }
.footer-col { padding: 0 24px; border-inline-start: 1px solid rgba(255, 255, 255, .12); }
.footer-col:first-child { border-inline-start: 0; padding-right: 0; }
.footer-col h4 { color: #fff; font-size: 17px; font-weight: 800; margin: 0 0 12px; }
.footer-about p { font-size: 13.5px; line-height: 1.9; margin: 0; color: #cfe0d3; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links.two-col { columns: 2; column-gap: 18px; }
.footer-links li { break-inside: avoid; }
.footer-links a { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; padding: 3px 0; color: #dce8df; font-weight: 600; }
.footer-links a i { color: var(--gold-400); font-size: 12px; }
.footer-links a:hover { color: var(--gold-200); }
.footer-publisher { margin: 12px 0 0; font-size: 12.5px; color: #b9cdbf; line-height: 1.8; }
.footer-follow { text-align: center; }
.social-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.social-row a {
  width: 38px; height: 38px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .45);
  display: grid; place-items: center; color: #fff; font-size: 15px;
}
.social-row a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--green-950); }
.footer-brand { display: flex; align-items: center; justify-content: center; }
.footer-brand a:hover { color: inherit; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; font-size: 13px; color: #b9cdbf; }
.to-top {
  width: 38px; height: 38px; border-radius: 9px; border: 0; background: var(--gold-400); color: var(--green-950);
  display: grid; place-items: center; font-size: 15px; cursor: pointer;
}
.to-top:hover { background: var(--gold-200); }

@media (max-width: 1199.98px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; row-gap: 26px; }
  .footer-col:nth-child(4) { border-inline-start: 0; padding-right: 0; }
}
@media (max-width: 991.98px) {
  .site-footer { padding-bottom: 72px; }
  .footer-grid { grid-template-columns: 1fr 1fr; padding-top: 24px; }
  .footer-col { padding: 0 12px; }
  .footer-col:nth-child(odd) { border-inline-start: 0; padding-right: 0; }
  .footer-col:nth-child(4) { border-inline-start: 1px solid rgba(255, 255, 255, .12); padding-right: 12px; }
  .footer-about { grid-column: 1 / -1; padding: 0; }
  .footer-brand { grid-column: 1 / -1; border: 0; padding: 0; }
  .footer-brand .logo { --ln: 46px; }
}

/* ---------- Mobile bottom navigation ---------- */
.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: space-around; align-items: stretch;
  background: linear-gradient(180deg, var(--green-800), var(--green-900));
  border-top: 2px solid var(--gold-500);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 18px rgba(6, 44, 21, .2);
}
.bottomnav a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  color: #e3ece5; font-size: 12px; font-weight: 700; padding: 6px 2px; border-radius: 12px; position: relative;
}
.bottomnav a + a::before { content: ""; position: absolute; right: -1px; top: 22%; height: 56%; width: 1px; background: rgba(255, 255, 255, .14); }
.bottomnav a i { font-size: 19px; }
.bottomnav a.active { background: var(--gold-400); color: var(--green-950); }
.bottomnav a.active::before, .bottomnav a.active + a::before { display: none; }
@media (max-width: 991.98px) { body { padding-bottom: 0; } }

/* ---------- Inner pages (article / category / sidebars) ---------- */
.content-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; overflow: hidden; }
.content-card .bg-white, .content-card .bg-light { background: transparent !important; }
.content-card img { border-radius: var(--radius-sm); }
.side-col > div { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0 0 12px !important; margin: 0 0 20px !important; overflow: hidden; }
.side-col .card { padding: 0 12px; background: transparent; }
.side-col .card-img { border-radius: var(--radius-sm); }
.side-col .card-title { font-size: 15px; font-weight: 800; line-height: 1.55; }
.R1h4bColor {
  background: linear-gradient(90deg, var(--green-800), var(--green-700)) !important; color: #fff !important;
  font-size: 18px !important; font-weight: 800; padding: 9px 16px !important; margin: 0 0 12px !important;
  border-bottom: 3px solid var(--gold-500); text-align: right !important;
}
.sticky_title, .sticky-title { border: 0; }


/* ---------- Article page ---------- */
.article-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 28px 26px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green-700); }
.crumbs i.fa-home { color: var(--gold-600); }
.crumbs .sep { font-size: 9px; opacity: .6; }
.badge-cat { display: inline-block; background: var(--green-800); color: #fff; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 7px; border-bottom: 2px solid var(--gold-500); }
.badge-cat:hover { color: var(--gold-200); }
.article-title { font-size: 32px; line-height: 1.55; font-weight: 900; color: var(--ink); margin: 12px 0 8px; }
.article-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--green-700); font-size: 16px; margin-bottom: 6px; }
.article-author i { color: var(--gold-500); }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 10px; }
.article-meta i { color: var(--gold-600); margin-inline-end: 4px; }
.font-tools { margin-inline-start: auto; display: inline-flex; gap: 4px; }
.font-tools button[data-font="-1"] { font-size: 12px; }
.font-tools button[data-font="1"] { font-size: 17px; }
.font-tools button { min-width: 36px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #f6f7f4; font-family: inherit; font-weight: 800; line-height: 1; color: var(--ink-2); cursor: pointer; }
.font-tools button:hover { border-color: var(--gold-500); background: var(--gold-100); }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.share-top { margin-top: 14px; }
.share-label { font-weight: 800; color: var(--ink-2); margin-inline-end: 4px; }
.share-btn { width: 38px; height: 38px; border-radius: 10px; border: 0; display: inline-grid; place-items: center; color: #fff; font-size: 16px; cursor: pointer; transition: transform .15s, filter .15s; }
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.s-wa { background: #25d366; } .s-fb { background: #1877f2; } .s-x { background: #111; } .s-tg { background: #229ed9; }
.s-copy, .s-native { background: var(--green-700); }
.s-copy.is-done { background: var(--gold-500); color: var(--green-950); }

.article-cover { margin: 18px 0 6px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 30%; border-radius: var(--radius); display: block; background: #e9ece6; }

.article-body {
  --fs-step: 0;
  font-size: calc(19px + var(--fs-step) * 2px); line-height: 2.05; color: #222a24; margin-top: 18px;
  overflow-wrap: anywhere; word-break: normal;
}
.article-body * { font-family: inherit !important; max-width: 100%; }
.article-body p, .article-body span, .article-body div, .article-body font, .article-body li, .article-body td {
  font-size: inherit !important; line-height: inherit !important; background-color: transparent !important;
}
.article-body div, .article-body p, .article-body section { width: auto !important; }
.article-body p { margin: 0 0 1.1em; text-align: justify; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { font-weight: 800; color: var(--green-800); line-height: 1.6; margin: 1.3em 0 .6em; font-size: 1.2em !important; }
.article-body a { color: var(--green-700); text-decoration: underline; text-decoration-color: var(--gold-400); text-underline-offset: 4px; }
.article-body img { height: auto !important; border-radius: var(--radius-sm); margin: .6em auto; display: block; cursor: zoom-in; }
.article-body blockquote { margin: 1.2em 0; padding: 12px 18px; background: var(--gold-100); border-inline-start: 4px solid var(--gold-500); border-radius: var(--radius-sm); font-weight: 600; }
.article-body ul, .article-body ol { padding-inline-start: 1.4em; margin-bottom: 1.1em; }
.article-body iframe { max-width: 100% !important; border: 0; border-radius: var(--radius-sm); display: block; margin: 1em auto; }
.article-body iframe.embed-video { width: 100% !important; aspect-ratio: 16 / 9; height: auto !important; }
.article-body .table-wrap { overflow-x: auto; margin: 1em 0; }
.article-body table { border-collapse: collapse; width: auto !important; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 6px 10px; }
.article-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.article-ads { margin: 20px 0 0; display: grid; gap: 10px; }
.article-ads img { width: 100%; border-radius: var(--radius-sm); }
.article-foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }

.related { margin-top: 8px; }
.ncard-sm h3 { font-size: 14.5px; }
.ncard-sm .ncard-body { padding: 10px 12px 12px; }

.sidebar-sticky { position: sticky; top: 16px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank-list a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; }
.rank { flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 16px; background: var(--gold-100); color: var(--gold-600); border: 2px solid var(--gold-400); }
.rank-list li:first-child .rank { background: var(--gold-400); color: var(--green-950); }
.rank-text strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14.5px; font-weight: 800; line-height: 1.6; margin-bottom: 2px; }
.rank-list a:hover strong { color: var(--green-700); }

@media (max-width: 991.98px) {
  .article-page .row { --bs-gutter-x: 0; }
  .article-card { padding: 16px 16px 20px; }
  .article-title { font-size: 23px; }
  .article-body { font-size: calc(18px + var(--fs-step) * 2px); line-height: 2; }
  .article-meta { gap: 6px 14px; font-size: 12.5px; }
  .meta-time { display: none; }
  .sidebar-sticky { position: static; }
  .article-cover { margin-left: -16px; margin-right: -16px; }
  .article-cover img { border-radius: 0; max-height: 300px; }
}


/* ---------- Category page ---------- */
.cat-hero {
  position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 22px; padding: 22px 28px 20px; color: #fff;
  background: radial-gradient(600px 200px at 15% 0%, rgba(229, 191, 78, .22), transparent 60%), linear-gradient(120deg, var(--green-700), var(--green-900));
  border-bottom: 4px solid var(--gold-500); box-shadow: var(--shadow);
}
.cat-hero h1 { margin: 6px 0 2px; font-size: 32px; font-weight: 900; display: flex; align-items: center; gap: 14px; }
.cat-hero h1 i { color: var(--gold-400); font-size: 28px; }
.cat-hero p { margin: 0; color: #cfe0d3; font-weight: 600; font-size: 14px; }
.crumbs-light, .crumbs-light a { color: #cfe0d3; margin: 0; }
.crumbs-light a:hover { color: var(--gold-200); }
.crumbs-light i.fa-home { color: var(--gold-400); }

.cat-featured { display: flex; background: var(--green-800); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 18px; color: #fff; height: 340px; }
.cat-featured:hover { color: #fff; }
.cat-featured-media { position: relative; width: 55%; flex-shrink: 0; order: 2; }
.cat-featured-media { overflow: hidden; }
.cat-featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .4s; }
.cat-featured:hover .cat-featured-media img { transform: scale(1.03); }
.cat-featured-body { flex: 1; padding: 22px 24px; display: flex; flex-direction: column; align-items: flex-start; }
.cat-featured-body h2 { font-size: 23px; font-weight: 900; line-height: 1.55; margin: 12px 0 6px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.cat-featured-body .op-author { color: var(--gold-200); }
.cat-featured-body p { color: #d5e4d9; font-size: 14px; margin: 0 0 12px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.cat-featured-body .meta-date, .cat-featured-body .meta-date i { color: #e5eee7; }

.cat-grid .ncard p { -webkit-line-clamp: 2; }
.cat-grid .op-author { margin: -2px 0 4px; }
.play-badge { position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(212, 167, 44, .92); color: var(--green-950); display: grid; place-items: center; font-size: 22px; box-shadow: 0 6px 20px rgba(0,0,0,.35); padding-left: 4px; }
.play-badge-sm { width: 46px; height: 46px; font-size: 16px; }

.pager { margin-top: 26px; display: flex; justify-content: center; }
.pager .pagination { flex-wrap: wrap; justify-content: center; gap: 4px; margin: 0; }
.pager .page-link { min-width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); font-weight: 700; background: #fff; box-shadow: 0 1px 2px rgba(10,40,20,.05); }
.pager .page-item.disabled .page-link { background: #f2f3ef; color: #b5bbb6; }
.pager .page-link:hover { background: var(--gold-100); border-color: var(--gold-400); color: var(--green-900); }

@media (max-width: 991.98px) {
  .category-page .row { --bs-gutter-x: 0; }
  .cat-grid { --bs-gutter-x: 12px !important; }
  .cat-hero { padding: 16px 18px; margin-bottom: 16px; }
  .cat-hero h1 { font-size: 24px; }
  .cat-featured { flex-direction: column; height: auto; }
  .cat-featured-media { width: 100%; order: 0; aspect-ratio: 16 / 9; }
  .cat-featured-body { padding: 16px; }
  .cat-featured-body h2 { font-size: 19px; }
}

/* Search page */
.search-page .box { max-width: 900px; margin: 0 auto; }
.search-big { display: flex; gap: 10px; }
.search-big input { flex: 1; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #f6f7f4; padding: 0 16px; font: inherit; }
.search-big input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 167, 44, .2); background: #fff; }
.search-big button { height: 48px; padding: 0 20px; border: 0; border-radius: 10px; background: var(--green-700); color: #fff; font-weight: 800; }
.search-big button:hover { background: var(--green-800); }
.search-hint { margin: 14px 0; color: var(--muted); font-weight: 600; }
.search-results { display: grid; gap: 12px; }

.pagination .page-link { color: var(--green-700); border-radius: 8px !important; margin: 0 2px; }
.pagination .page-item.active .page-link { background: var(--green-700); border-color: var(--green-700); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
