/*
Theme Name: MoF Northeastern State
Theme URI: https://mof.nes.gov.so/
Author: Ministry of Finance - Northeastern State of Somalia
Author URI: https://mof.nes.gov.so/
Description: Official bilingual (English / Somali) government theme for the Ministry of Finance, Northeastern State of Somalia. Navy & gold branding. Includes homepage sections, services, documents, publications and news custom post types, a language switcher, and full responsive support.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mofnes
Tags: government, ministry, finance, bilingual, custom-header, custom-menu, featured-images, translation-ready, right-sidebar
*/

/* =========================================================
   1. Design tokens
   ========================================================= */
:root {
  /* Brand — navy & gold */
  --c-navy-900: #071d40;
  --c-navy-800: #0a2a5e;
  --c-navy-700: #0d3b7a;
  --c-navy-600: #123e7c;
  --c-blue-500: #1a56b0;
  --c-blue-100: #e8f0fb;

  --c-gold-600: #b8901f;
  --c-gold-500: #c9a227;
  --c-gold-400: #d9b84a;
  --c-gold-100: #f6ecc9;

  --c-ink: #1c2430;
  --c-body: #3a4657;
  --c-muted: #6b7688;
  --c-line: #e3e8ef;
  --c-bg: #ffffff;
  --c-bg-soft: #f5f7fa;
  --c-bg-navy-soft: #f2f5fb;

  --c-success: #1f8a4c;
  --c-danger: #c0392b;

  --shadow-sm: 0 1px 2px rgba(7, 29, 64, .06), 0 1px 3px rgba(7, 29, 64, .10);
  --shadow-md: 0 6px 18px rgba(7, 29, 64, .10);
  --shadow-lg: 0 18px 40px rgba(7, 29, 64, .16);

  --radius: 10px;
  --radius-lg: 16px;

  --container: 1200px;
  --gap: 24px;

  --font-head: "Merriweather", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --header-h: 78px;
}

/* =========================================================
   2. Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--c-body);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue-500); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-navy-800); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--c-ink); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
:focus-visible { outline: 3px solid var(--c-gold-400); outline-offset: 2px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.screen-reader-text {
  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; left: -999px; top: 0; z-index: 1000;
  background: var(--c-gold-500); color: var(--c-navy-900); padding: 10px 16px; font-weight: 600;
}
.skip-link:focus { left: 8px; top: 8px; }

/* =========================================================
   3. Buttons / helpers
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: .95rem; line-height: 1;
  padding: 13px 22px; border-radius: 8px; border: 2px solid transparent;
  cursor: pointer; transition: all .18s ease; text-align: center;
}
.btn-gold { background: var(--c-gold-500); color: var(--c-navy-900); border-color: var(--c-gold-500); }
.btn-gold:hover { background: var(--c-gold-400); border-color: var(--c-gold-400); color: var(--c-navy-900); transform: translateY(-1px); }
.btn-navy { background: var(--c-navy-800); color: #fff; border-color: var(--c-navy-800); }
.btn-navy:hover { background: var(--c-navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline:hover { background: #fff; color: var(--c-navy-800); border-color: #fff; }
.btn-ghost { background: transparent; color: var(--c-navy-800); border-color: var(--c-line); }
.btn-ghost:hover { border-color: var(--c-navy-700); color: var(--c-navy-800); }

.section { padding: clamp(48px, 7vw, 88px) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-navy { background: var(--c-navy-800); color: #e7edf7; }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; font-size: .78rem; color: var(--c-gold-600);
  padding: 6px 14px; border: 1px solid var(--c-gold-100); background: var(--c-gold-100); border-radius: 40px; margin-bottom: 14px;
}
.section-head p { color: var(--c-muted); font-size: 1.05rem; }
.section-navy .section-head p { color: #b9c6dd; }
.section-navy .section-head .eyebrow { background: rgba(201,162,39,.15); border-color: rgba(201,162,39,.3); color: var(--c-gold-400); }

/* =========================================================
   4. Top bar
   ========================================================= */
.topbar {
  background: var(--c-navy-900); color: #cdd8ec; font-size: .82rem;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; flex-wrap: wrap; }
.topbar a { color: #cdd8ec; }
.topbar a:hover { color: #fff; }
.topbar-info { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-right { display: flex; gap: 16px; align-items: center; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { display: inline-flex; }

/* Language switcher */
.lang-switch { display: inline-flex; border: 1px solid rgba(255,255,255,.22); border-radius: 40px; overflow: hidden; }
.lang-switch button,
.lang-switch a {
  background: transparent; border: 0; color: #cdd8ec; font: inherit; font-weight: 600;
  padding: 3px 12px; cursor: pointer; font-size: .78rem; letter-spacing: .03em; text-decoration: none; line-height: 1.6;
}
.lang-switch button.is-active,
.lang-switch a.is-active { background: var(--c-gold-500); color: var(--c-navy-900); }
.lang-switch a:hover { color: #fff; }

/* =========================================================
   5. Header / nav
   ========================================================= */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; }
.brand .crest {
  width: 52px; height: 52px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: var(--c-gold-500);
  background: radial-gradient(circle at 30% 30%, var(--c-navy-700), var(--c-navy-900));
  border: 2px solid var(--c-gold-500); font-family: var(--font-head); font-weight: 700; font-size: 1.1rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .b-name { font-family: var(--font-head); font-weight: 700; color: var(--c-navy-800); font-size: 1.05rem; }
.brand-text .b-sub { font-size: .74rem; color: var(--c-muted); letter-spacing: .02em; }

.main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: block; padding: 10px 11px; font-weight: 600; font-size: .9rem; color: var(--c-ink); border-radius: 6px; white-space: nowrap;
}
.main-nav a:hover, .main-nav .current-menu-item > a, .main-nav .current_page_item > a {
  color: var(--c-navy-800); background: var(--c-blue-100);
}
.main-nav .menu-item-has-children > a::after { content: "▾"; font-size: .7em; margin-left: 5px; color: var(--c-gold-600); }
.main-nav li { position: relative; }
.main-nav .sub-menu {
  position: absolute; top: 100%; left: 0; min-width: 220px; background: #fff; box-shadow: var(--shadow-md);
  border-top: 3px solid var(--c-gold-500); border-radius: 0 0 8px 8px; padding: 8px; display: none; flex-direction: column;
}
.main-nav li:hover > .sub-menu { display: flex; }
.main-nav .sub-menu a { padding: 9px 12px; }
/* Second-level and deeper flyouts open to the side */
.main-nav .sub-menu .menu-item-has-children > a::after { content: "▸"; float: right; }
.main-nav .sub-menu .sub-menu { top: -8px; left: 100%; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: var(--c-navy-800); color: #fff; border: 0; border-radius: 8px; width: 46px; height: 44px; font-size: 1.4rem; cursor: pointer; }

/* =========================================================
   6. Hero
   ========================================================= */
.hero {
  position: relative; color: #eaf1fc; overflow: hidden;
  background:
    linear-gradient(115deg, rgba(7,29,64,.94) 0%, rgba(10,42,94,.9) 45%, rgba(18,62,124,.82) 100%),
    radial-gradient(circle at 85% 15%, rgba(201,162,39,.28), transparent 45%);
  background-color: var(--c-navy-900);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.04'%3E%3Cpath d='M30 0l30 30-30 30L0 30z'/%3E%3C/g%3E%3C/svg%3E");
}
.hero .container { position: relative; z-index: 2; padding-top: 84px; padding-bottom: 84px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--c-gold-400); background: rgba(201,162,39,.12);
  border: 1px solid rgba(201,162,39,.3); padding: 7px 14px; border-radius: 40px; margin-bottom: 22px;
}
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 .accent { color: var(--c-gold-400); }
.hero-lead { font-size: 1.12rem; color: #c6d3e8; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-head); font-weight: 700; font-size: 1.9rem; color: var(--c-gold-400); }
.hero-stats .stat .lbl { font-size: .82rem; color: #b9c6dd; }

.hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(4px);
  border-radius: var(--radius-lg); padding: 26px;
}
.hero-card h3 { color: #fff; font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.hero-card .quick-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.hero-card .quick-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #eaf1fc; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); padding: 13px 16px; border-radius: 10px; font-size: .95rem;
}
.hero-card .quick-list a:hover { background: var(--c-gold-500); color: var(--c-navy-900); border-color: var(--c-gold-500); }
.hero-card .quick-list a span.ic { color: var(--c-gold-400); }
.hero-card .quick-list a:hover span.ic { color: var(--c-navy-900); }

/* =========================================================
   7. Minister message
   ========================================================= */
.minister { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.minister-photo {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); position: relative;
  background: linear-gradient(160deg, var(--c-navy-700), var(--c-navy-900)); aspect-ratio: 4/5;
}
.minister-photo img { width: 100%; height: 100%; object-fit: cover; }
.minister-photo .frame { position: absolute; inset: 12px; border: 2px solid rgba(201,162,39,.5); border-radius: 10px; pointer-events: none; }
.minister-photo .placeholder { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.35); font-size: 4rem; }
.minister-body .eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
  color: var(--c-gold-600); margin-bottom: 12px;
}
.minister-body blockquote {
  margin: 0 0 22px; font-family: var(--font-head); font-size: 1.35rem; line-height: 1.5; color: var(--c-ink);
  border-left: 4px solid var(--c-gold-500); padding-left: 22px;
}
.minister-sign { display: flex; align-items: center; gap: 14px; }
.minister-sign .name { font-family: var(--font-head); font-weight: 700; color: var(--c-navy-800); font-size: 1.1rem; }
.minister-sign .role { font-size: .88rem; color: var(--c-muted); }

/* =========================================================
   8. Card grids (services / quick access / documents / news)
   ========================================================= */
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--c-gold-400); }

.service-card .ic-wrap {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--c-blue-100); color: var(--c-navy-700);
}
.service-card:hover .ic-wrap { background: var(--c-navy-800); color: var(--c-gold-400); }
.service-card h3 { margin-bottom: 8px; font-size: 1.15rem; }
.service-card p { font-size: .93rem; color: var(--c-muted); margin-bottom: 14px; }
.service-card .meta {
  display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--c-gold-600);
  background: var(--c-gold-100); padding: 4px 10px; border-radius: 30px;
}
.service-card .more { position: absolute; top: 24px; right: 24px; color: var(--c-line); font-size: 1.1rem; transition: color .18s; }
.service-card:hover .more { color: var(--c-gold-500); }

/* Quick access — navy cards */
.quick-card {
  display: flex; align-items: center; gap: 16px; padding: 22px; border-radius: var(--radius);
  background: var(--c-navy-800); color: #fff; border: 1px solid var(--c-navy-700);
}
.quick-card:hover { background: var(--c-navy-700); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.quick-card .ic-wrap { width: 48px; height: 48px; border-radius: 10px; background: rgba(201,162,39,.16); color: var(--c-gold-400); display: grid; place-items: center; flex: 0 0 auto; }
.quick-card h3 { color: #fff; font-size: 1.02rem; margin: 0 0 3px; }
.quick-card p { color: #b9c6dd; font-size: .82rem; margin: 0; }

/* =========================================================
   9. About — mission / vision / values
   ========================================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.mv-card { background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-gold-500); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.mv-card h3 { display: flex; align-items: center; gap: 10px; color: var(--c-navy-800); }
.mv-card h3 .ic { color: var(--c-gold-500); }
.values-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; list-style: none; padding: 0; margin: 0; }
.values-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--c-ink); background: var(--c-bg-soft); padding: 14px 16px; border-radius: 10px; }
.values-list li .ic { color: var(--c-gold-600); }

/* =========================================================
   10. Documents / publications
   ========================================================= */
.doc-card { display: flex; gap: 16px; align-items: flex-start; }
.doc-card .doc-ic { width: 52px; height: 52px; border-radius: 10px; background: var(--c-gold-100); color: var(--c-gold-600); display: grid; place-items: center; flex: 0 0 auto; }
.doc-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.doc-card .doc-meta { font-size: .8rem; color: var(--c-muted); margin-bottom: 12px; }
.doc-card .btn { padding: 9px 16px; font-size: .85rem; }

/* =========================================================
   11. News
   ========================================================= */
.news-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.news-thumb { aspect-ratio: 16/10; background: linear-gradient(160deg, var(--c-navy-700), var(--c-navy-900)); overflow: hidden; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-thumb .ph { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.3); font-size: 2.4rem; }
.news-date { position: absolute; top: 12px; left: 12px; background: var(--c-gold-500); color: var(--c-navy-900); font-weight: 700; font-size: .78rem; padding: 5px 10px; border-radius: 6px; }
.news-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.news-cat { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-blue-500); margin-bottom: 8px; }
.news-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.news-body h3 a { color: var(--c-ink); }
.news-body h3 a:hover { color: var(--c-navy-800); }
.news-body p { font-size: .9rem; color: var(--c-muted); }
.news-body .read { margin-top: auto; font-weight: 600; font-size: .88rem; color: var(--c-gold-600); display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   12. CTA strip
   ========================================================= */
.cta-strip { background: linear-gradient(120deg, var(--c-navy-900), var(--c-navy-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta-strip::before { content: ""; position: absolute; right: -40px; top: -40px; width: 220px; height: 220px; border-radius: 50%; background: rgba(201,162,39,.14); }
.cta-strip h2 { color: #fff; margin-bottom: 6px; }
.cta-strip p { color: #c6d3e8; margin: 0; max-width: 520px; }
.cta-strip .cta-actions { display: flex; gap: 12px; position: relative; z-index: 2; flex-wrap: wrap; }

/* =========================================================
   13. Page / single content
   ========================================================= */
.page-hero {
  position: relative; color: #fff; padding: 56px 0; background-color: var(--c-navy-900);
  background-image:
    linear-gradient(120deg, rgba(7,29,64,.97) 0%, rgba(10,42,94,.72) 100%),
    radial-gradient(circle at 88% 18%, var(--section-accent, var(--c-navy-700)), transparent 62%);
}
.page-hero.has-accent { border-top: 5px solid var(--section-accent); }
.page-hero h1 { color: #fff; margin: 0 0 8px; }
.breadcrumbs { font-size: .85rem; color: #b9c6dd; }
.breadcrumbs a { color: var(--c-gold-400); }
.breadcrumbs span { margin: 0 6px; opacity: .6; }

.content-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 48px; }
.content-main { min-width: 0; }
.entry-content { font-size: 1.03rem; }
.entry-content h2 { margin-top: 1.6em; }
.entry-content img { border-radius: var(--radius); margin: 1.5em 0; }
.entry-content blockquote { border-left: 4px solid var(--c-gold-500); padding-left: 20px; margin-left: 0; color: var(--c-ink); font-family: var(--font-head); }
.entry-content a { text-decoration: underline; }
.entry-meta { display: flex; gap: 18px; color: var(--c-muted); font-size: .88rem; margin-bottom: 24px; flex-wrap: wrap; }
.entry-meta span { display: inline-flex; align-items: center; gap: 6px; }

.widget { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 22px; margin-bottom: 24px; }
.widget-title { font-size: 1.05rem; color: var(--c-navy-800); margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--c-gold-500); display: inline-block; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--c-line); }
.widget ul li:last-child { border-bottom: 0; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] { flex: 1; padding: 11px 14px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit; }
.search-form button { border: 0; background: var(--c-navy-800); color: #fff; padding: 0 18px; border-radius: 8px; cursor: pointer; font-weight: 600; }

/* Pagination */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination .page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border: 1px solid var(--c-line); border-radius: 8px; font-weight: 600; color: var(--c-ink); }
.pagination .page-numbers.current { background: var(--c-navy-800); color: #fff; border-color: var(--c-navy-800); }
.pagination .page-numbers:hover { border-color: var(--c-gold-500); }

/* =========================================================
   14. Footer
   ========================================================= */
.site-footer { background: var(--c-navy-900); color: #b9c6dd; padding-top: 64px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand .b-name, .footer-brand .brand .b-sub { color: #fff; }
.footer-brand p { font-size: .9rem; color: #93a3c0; margin-top: 16px; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-col h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 3px; background: var(--c-gold-500); border-radius: 2px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: #b9c6dd; font-size: .92rem; }
.footer-col a:hover { color: var(--c-gold-400); }
.footer-contact li { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 12px; }
.footer-contact .ic { color: var(--c-gold-400); flex: 0 0 auto; margin-top: 2px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a { width: 38px; height: 38px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: #cdd8ec; }
.footer-social a:hover { background: var(--c-gold-500); color: var(--c-navy-900); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #8497b7; }
.footer-bottom a { color: #b9c6dd; }

/* =========================================================
   15. Bilingual helpers
   ========================================================= */
[lang-so] { display: none; }
html[data-lang="so"] [lang-en] { display: none; }
html[data-lang="so"] [lang-so] { display: inline; }
html[data-lang="so"] [lang-so].block { display: block; }
html[data-lang="so"] body { direction: ltr; }

/* =========================================================
   16. Responsive
   ========================================================= */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .content-wrap { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1140px) { .header-cta .btn { display: none; } }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; border-top: 3px solid var(--c-gold-500); }
  .main-nav ul { flex-direction: column; padding: 10px; gap: 2px; }
  .main-nav .sub-menu { position: static; display: flex; box-shadow: none; border-top: 0; padding-left: 14px; }
  .header-cta .btn { display: none; }
  .minister { grid-template-columns: 1fr; }
  .minister-photo { max-width: 280px; }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .topbar-info { display: none; }
  .values-list { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   17. WordPress core — media, alignment, captions, galleries
   ========================================================= */
.entry-content > *,
.entry-content p,
.entry-content ul,
.entry-content ol { max-width: 100%; }

.alignleft   { float: left;  margin: .4em 1.6em 1em 0; max-width: 50%; }
.alignright  { float: right; margin: .4em 0 1em 1.6em; max-width: 50%; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; clear: both; }
.alignnone   { margin: 1em 0; }
.entry-content .alignwide  { max-width: min(1100px, 100vw - 40px); margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull  { max-width: 100vw; margin-left: 50%; transform: translateX(-50%); border-radius: 0; }

/* Captions (media library + Gutenberg) */
.wp-caption { max-width: 100%; margin-bottom: 1.5em; }
.wp-caption img { border-radius: var(--radius); }
.wp-caption-text,
.wp-element-caption,
figcaption { font-size: .85rem; color: var(--c-muted); text-align: center; margin-top: 8px; }
.entry-content figure { margin: 1.5em 0; }

/* Classic galleries */
.gallery { display: grid; gap: 12px; margin: 1.5em 0; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }
.gallery-columns-5 { grid-template-columns: repeat(5, 1fr); }
.gallery-item img { border-radius: var(--radius); width: 100%; height: 100%; object-fit: cover; }
.gallery-caption { font-size: .8rem; color: var(--c-muted); }
@media (max-width: 620px) { .gallery { grid-template-columns: repeat(2, 1fr) !important; } }

/* Sticky / author / password states */
.sticky .card, .sticky.card { border-color: var(--c-gold-400); }
.post-password-form input[type="password"] { padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px; }
.post-password-form input[type="submit"] { padding: 10px 16px; border: 0; border-radius: 8px; background: var(--c-navy-800); color: #fff; cursor: pointer; }

/* =========================================================
   18. Gutenberg blocks
   ========================================================= */
.entry-content .wp-block-image { margin: 1.5em 0; }
.entry-content .wp-block-image img { border-radius: var(--radius); }
.wp-block-button__link {
  display: inline-block; background: var(--c-navy-800); color: #fff; font-weight: 600;
  padding: 12px 22px; border-radius: 8px; text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--c-navy-800); border: 2px solid var(--c-navy-800); }
.wp-block-quote, .entry-content blockquote {
  border-left: 4px solid var(--c-gold-500); padding: 4px 0 4px 22px; margin: 1.5em 0;
  font-family: var(--font-head); font-style: normal; color: var(--c-ink);
}
.wp-block-pullquote { border-top: 3px solid var(--c-gold-500); border-bottom: 3px solid var(--c-gold-500); padding: 1.4em 0; text-align: center; }
.wp-block-cover { border-radius: var(--radius-lg); overflow: hidden; }
.wp-block-table table { width: 100%; }
.wp-block-separator { border: 0; border-top: 2px solid var(--c-line); max-width: 120px; margin: 2em auto; }
.wp-block-group.has-background, .has-background { padding: clamp(20px, 4vw, 40px); border-radius: var(--radius); }
.wp-block-columns { gap: var(--gap); }
.wp-block-code, .entry-content pre {
  background: var(--c-navy-900); color: #e7edf7; padding: 18px 20px; border-radius: var(--radius);
  overflow-x: auto; font-size: .9rem; line-height: 1.5;
}
.entry-content code { background: var(--c-bg-soft); padding: 2px 6px; border-radius: 4px; font-size: .9em; }
.entry-content pre code { background: transparent; padding: 0; }
.wp-block-embed { margin: 1.5em 0; }
.wp-block-embed__wrapper { position: relative; }

/* Content tables */
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.entry-content th, .entry-content td { border: 1px solid var(--c-line); padding: 10px 14px; text-align: left; }
.entry-content thead th { background: var(--c-navy-800); color: #fff; border-color: var(--c-navy-700); }
.entry-content tbody tr:nth-child(even) { background: var(--c-bg-soft); }

/* Lists inside content */
.entry-content ul li, .entry-content ol li { margin-bottom: .4em; }

/* =========================================================
   19. Comments
   ========================================================= */
.comments-area { margin-top: 52px; padding-top: 34px; border-top: 1px solid var(--c-line); }
.comments-title {
  font-size: 1.4rem; margin-bottom: 26px; display: flex; align-items: center; gap: 12px;
}
.comments-title::before {
  content: "💬"; display: inline-grid; place-items: center; width: 42px; height: 42px;
  background: var(--c-blue-100); border-radius: 10px; font-size: 1.1rem;
}

.comment-list { list-style: none; margin: 0; padding: 0; }
.comment-list .children {
  list-style: none; margin: 6px 0 0; padding: 0 0 0 26px;
  border-left: 2px solid var(--c-line);
}
.comment-list li { margin: 0; }

/* Comment card — avatar anchored to the left */
.comment-body {
  position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius);
  padding: 20px 22px 18px 80px; margin-bottom: 16px; transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-body:hover { border-color: #d3dae6; box-shadow: var(--shadow-sm); }

.comment-meta { margin: 0; }
.comment-author.vcard { display: block; }
.comment-author .avatar {
  position: absolute; left: 20px; top: 20px; width: 46px; height: 46px; border-radius: 50%;
  border: 2px solid var(--c-line); object-fit: cover;
}
.comment-author .says { display: none; }
.comment-author .fn {
  font-weight: 700; font-style: normal; color: var(--c-ink); font-size: .98rem; line-height: 1.2;
}
.comment-author .fn a { color: var(--c-ink); }
.comment-author .fn a:hover { color: var(--c-navy-800); }
.comment-metadata { font-size: .78rem; color: var(--c-muted); margin-top: 3px; }
.comment-metadata a { color: var(--c-muted); }
.comment-metadata a:hover { color: var(--c-gold-600); }
.comment-content { margin-top: 11px; font-size: .95rem; color: var(--c-body); }
.comment-content p:last-child { margin-bottom: 0; }

/* Reply link → small pill */
.reply { margin-top: 10px; }
.comment-reply-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 600;
  color: var(--c-navy-800); background: var(--c-bg-soft); border: 1px solid var(--c-line);
  padding: 5px 12px; border-radius: 30px;
}
.comment-reply-link::before { content: "↩"; font-size: .9em; }
.comment-reply-link:hover { background: var(--c-navy-800); color: #fff; border-color: var(--c-navy-800); }

/* Official response — post author (the Ministry) stands out */
.comment.bypostauthor > .comment-body {
  border-color: var(--c-gold-400);
  background: linear-gradient(0deg, #fff, var(--c-gold-100));
  box-shadow: inset 4px 0 0 var(--c-gold-500);
}
.comment.bypostauthor > .comment-body .comment-author .avatar { border-color: var(--c-gold-400); }
.comment.bypostauthor > .comment-body .comment-author .fn::after {
  content: "Official"; display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 8px; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-navy-900); background: var(--c-gold-400); padding: 2px 8px; border-radius: 30px;
}

/* Pingbacks / trackbacks */
.pingback .comment-body, .trackback .comment-body { padding-left: 22px; font-size: .9rem; }

/* Reply form */
.comment-respond {
  background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  padding: 28px; margin-top: 26px;
}
.comment-reply-title { font-size: 1.25rem; margin-bottom: 6px; }
.comment-notes, .logged-in-as { font-size: .86rem; color: var(--c-muted); margin-bottom: 18px; }
.comment-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comment-form p { margin: 0; }
.comment-form-comment, .comment-form-url,
.comment-form-cookies-consent, .form-submit { grid-column: 1 / -1; }
@media (max-width: 560px) { .comment-form { grid-template-columns: 1fr; } }

.comment-form label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--c-ink); }
.comment-form .required { color: var(--c-danger); }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #d6dde8; border-radius: 8px; font: inherit;
  background: #fff; color: var(--c-ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none; border-color: var(--c-navy-700); box-shadow: 0 0 0 3px rgba(18,62,124,.12);
}
.comment-form textarea { min-height: 130px; resize: vertical; }

.comment-form-cookies-consent { display: flex; align-items: flex-start; gap: 10px; }
.comment-form-cookies-consent input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--c-navy-800); flex: 0 0 auto; }
.comment-form-cookies-consent label { margin: 0; font-weight: 400; font-size: .86rem; color: var(--c-muted); }

.form-submit { margin: 0; }
.comment-form .form-submit input.submit {
  background: var(--c-gold-500); color: var(--c-navy-900); font-weight: 700; border: 2px solid var(--c-gold-500);
  padding: 13px 30px; border-radius: 8px; cursor: pointer; font-size: .95rem; transition: all .15s ease;
}
.comment-form .form-submit input.submit:hover { background: var(--c-gold-400); border-color: var(--c-gold-400); transform: translateY(-1px); }

.no-comments, .comment-awaiting-moderation {
  font-size: .88rem; color: var(--c-muted); background: var(--c-bg-soft);
  border: 1px dashed var(--c-line); border-radius: 8px; padding: 12px 16px; display: inline-block;
}

/* =========================================================
   20. Footer widget areas (optional, plugin/widget driven)
   ========================================================= */
.footer-widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; padding-bottom: 12px; }
.footer-widgets .widget { background: transparent; border: 0; padding: 0; margin: 0; }
.footer-widgets .widget-title { color: #fff; border-bottom-color: var(--c-gold-500); }
.footer-widgets a { color: #b9c6dd; }
.footer-widgets a:hover { color: var(--c-gold-400); }
.footer-widgets ul li { border-bottom-color: rgba(255,255,255,.08); }
@media (max-width: 1024px) { .footer-widgets { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px)  { .footer-widgets { grid-template-columns: 1fr; } }

/* Widget: search / recent / categories inside sidebar */
.widget select, .widget input[type="text"], .widget input[type="search"] {
  width: 100%; padding: 10px 12px; border: 1px solid var(--c-line); border-radius: 8px; font: inherit;
}
.widget .wp-block-search__inside-wrapper { display: flex; gap: 8px; }
.widget_nav_menu ul, .widget_categories ul, .widget_recent_entries ul, .widget_pages ul, .widget_archive ul { list-style: none; }
.widget_tag_cloud a { display: inline-block; margin: 3px; padding: 4px 10px; background: var(--c-bg-soft); border-radius: 30px; font-size: .82rem !important; }

/* =========================================================
   21. Block-pattern sections (editable homepage / pages)
   ========================================================= */
.mof-page-content { overflow-x: clip; }
.mof-page-content > * { margin-block: 0; }

/* Full-bleed groups inside the editable homepage */
.mof-page-content .alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.mof-page-content .alignwide { max-width: 1280px; margin-inline: auto; }

.mof-section { padding: clamp(48px, 7vw, 88px) 0; }
.mof-container { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.mof-lead { color: var(--c-muted); font-size: 1.05rem; max-width: 720px; margin-inline: auto; }
.mof-soft { background: var(--c-bg-soft); }

/* Eyebrow label used across patterns */
.entry-content .eyebrow, .mof-page-content .eyebrow {
  display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  font-size: .78rem; color: var(--c-gold-600); margin-bottom: 8px;
}
.mof-page-content .has-text-align-center.eyebrow { display: block; }

/* Navy section */
.mof-navy { background: var(--c-navy-800); color: #e7edf7; }
.mof-navy :is(h1, h2, h3, h4) { color: #fff; }
.mof-navy .mof-lead { color: #b9c6dd; }
.mof-navy .mof-feature { background: var(--c-navy-700); border-color: var(--c-navy-600); color: #dbe4f3; }
.mof-navy .mof-feature h3 { color: #fff; }
.mof-navy .mof-ic { background: rgba(201,162,39,.16); color: var(--c-gold-400); }

/* Hero pattern */
.mof-hero {
  color: #eaf1fc;
  background:
    linear-gradient(115deg, rgba(7,29,64,.95) 0%, rgba(10,42,94,.9) 50%, rgba(18,62,124,.84) 100%),
    radial-gradient(circle at 85% 15%, rgba(201,162,39,.28), transparent 45%);
  background-color: var(--c-navy-900);
}
.mof-hero :is(h1, h2, h3) { color: #fff; }
.mof-hero .hero-lead { color: #c6d3e8; font-size: 1.12rem; }
.mof-hero .hero-badge {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--c-gold-400); background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.3);
  padding: 7px 14px; border-radius: 40px; margin-bottom: 8px;
}
.mof-hero .hero-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 26px;
}
.mof-hero .hero-card .quick-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.mof-hero .hero-card .quick-list a {
  display: block; color: #eaf1fc; font-weight: 600; text-decoration: none;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); padding: 12px 15px; border-radius: 10px;
}
.mof-hero .hero-card .quick-list a:hover { background: var(--c-gold-500); color: var(--c-navy-900); border-color: var(--c-gold-500); }

/* Hero buttons (gold primary) */
.mof-hero .is-style-fill .wp-block-button__link { background: var(--c-gold-500); color: var(--c-navy-900); border: 2px solid var(--c-gold-500); }
.mof-hero .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.6); }

/* Icon cards */
.mof-cards { gap: var(--gap) !important; }
.mof-cards .wp-block-column { min-width: 0; }
.mof-feature { height: 100%; }
.mof-feature > a { display: block; }
.mof-ic {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--c-blue-100); color: var(--c-navy-700); font-size: 1.5rem; margin: 0 0 14px;
}
.mof-feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mof-feature p { font-size: .93rem; color: var(--c-muted); margin: 0; }

/* Stat cards ("In Figures") */
.mof-stat { text-align: center; }
.mof-stat-num { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--c-navy-800); margin: 0 0 4px; }
.mof-stat-label { color: var(--c-muted); font-weight: 600; font-size: .9rem; margin: 0; }

/* Leadership person cards */
.mof-person { height: 100%; text-align: center; }
.mof-avatar {
  width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; font-size: 2.4rem;
  background: var(--c-blue-100); color: var(--c-navy-700); border: 3px solid var(--c-gold-400);
}
.mof-person h3 { font-size: 1.1rem; margin-bottom: 4px; }
.mof-role { color: var(--c-gold-600); font-weight: 600; font-size: .9rem; margin: 0; }

/* Mission / vision cards & values */
.mv-card { background: #fff; border: 1px solid var(--c-line); border-left: 4px solid var(--c-gold-500); border-radius: var(--radius); padding: 22px; margin-top: 18px; }
.mv-card h3 { color: var(--c-navy-800); margin-bottom: 8px; }
.mof-values { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mof-values li { background: var(--c-bg-soft); padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--c-ink); }

/* Minister portrait & quote */
.mof-portrait img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/5; object-fit: cover; background: var(--c-navy-800); }
.mof-quote { border-left: 4px solid var(--c-gold-500); padding: 6px 0 6px 22px; font-family: var(--font-head); font-size: 1.3rem; color: var(--c-ink); }
.mof-quote cite { display: block; margin-top: 12px; font-size: .9rem; font-style: normal; color: var(--c-muted); }

/* CTA pattern */
.mof-cta {
  background: linear-gradient(120deg, var(--c-navy-900), var(--c-navy-700)); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px) !important; max-width: 1000px;
}
.mof-cta :is(h2) { color: #fff; }
.mof-cta p { color: #c6d3e8; }
.mof-cta .is-style-fill .wp-block-button__link { background: var(--c-gold-500); color: var(--c-navy-900); }
.mof-cta .is-style-outline .wp-block-button__link { color: #fff; border: 2px solid rgba(255,255,255,.6); background: transparent; }

/* News query cards */
.mof-news-query .wp-block-post-featured-image img { border-radius: var(--radius) var(--radius) 0 0; width: 100%; object-fit: cover; }
.mof-news-query .news-card { padding: 0; overflow: hidden; }
.mof-news-query .wp-block-post-title { font-size: 1.1rem; }
.mof-news-query .wp-block-post-title a { color: var(--c-ink); }

/* FAQ details */
.mof-faq { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.mof-faq summary { font-weight: 700; cursor: pointer; color: var(--c-navy-800); font-family: var(--font-head); }
.mof-faq[open] summary { margin-bottom: 10px; }

/* Editor: mirror the constrained container width */
@media (max-width: 782px) {
  .mof-cards { display: block; }
  .mof-cards .wp-block-column { margin-bottom: var(--gap); }
  .mof-values { grid-template-columns: 1fr; }
}

/* =========================================================
   22. Slider / carousel
   ========================================================= */
.mof-slider {
  --slider-h: 460px;
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--c-navy-900); box-shadow: var(--shadow-md);
}
.mof-slider.is-sm   { --slider-h: 340px; }
.mof-slider.is-md   { --slider-h: 460px; }
.mof-slider.is-lg   { --slider-h: 580px; }
.mof-slider.is-full { --slider-h: calc(100vh - var(--header-h) - 40px); border-radius: 0; }
.alignfull .mof-slider, .mof-page-content .mof-slider.is-full { border-radius: 0; }

.mof-slides { position: relative; height: var(--slider-h); }

.mof-slide { position: absolute; inset: 0; }
.mof-slide[hidden] { display: none; }
/* Crossfade */
.mof-slide { opacity: 0; transition: opacity .6s ease; }
.mof-slide.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mof-slide { transition: none; } }

.mof-slide-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 1;
}
.mof-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(90deg, rgba(7,29,64,.86) 0%, rgba(7,29,64,.55) 45%, rgba(7,29,64,.15) 100%);
}
.mof-slide.align-right::after  { background: linear-gradient(270deg, rgba(7,29,64,.86) 0%, rgba(7,29,64,.55) 45%, rgba(7,29,64,.15) 100%); }
.mof-slide.align-center::after { background: linear-gradient(0deg, rgba(7,29,64,.55), rgba(7,29,64,.55)), radial-gradient(circle at 50% 50%, rgba(7,29,64,.35), rgba(7,29,64,.75)); }

.mof-slide-inner {
  position: relative; z-index: 3; height: 100%; max-width: 1200px; margin-inline: auto;
  padding: 40px clamp(24px, 5vw, 64px); display: flex; align-items: center;
}
.mof-slide.align-center .mof-slide-inner { justify-content: center; text-align: center; }
.mof-slide.align-right .mof-slide-inner  { justify-content: flex-end; text-align: right; }

.mof-slide-content { max-width: 620px; color: #eef3fb; animation: mofSlideUp .6s ease both; }
@keyframes mofSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .mof-slide-content { animation: none; } }

.mof-slide-kicker {
  display: inline-block; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem;
  color: var(--c-gold-400); background: rgba(201,162,39,.15); border: 1px solid rgba(201,162,39,.35);
  padding: 6px 14px; border-radius: 40px; margin-bottom: 16px;
}
.mof-slide-title { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.8rem); margin-bottom: 14px; line-height: 1.18; }
.mof-slide-text { color: #cdd8ec; font-size: 1.05rem; margin-bottom: 22px; }
.mof-slide-text p:last-child { margin-bottom: 0; }
.mof-slide-btn { margin-top: 4px; }

/* Arrows */
.mof-slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: #fff;
  background: rgba(7,29,64,.5); backdrop-filter: blur(3px); transition: background .15s ease, transform .15s ease;
}
.mof-slider-arrow:hover { background: var(--c-gold-500); color: var(--c-navy-900); }
.mof-slider-arrow:focus-visible { outline: 3px solid var(--c-gold-400); outline-offset: 2px; }
.mof-slider-arrow.prev { left: 16px; }
.mof-slider-arrow.next { right: 16px; }
.mof-slider-arrow:hover { transform: translateY(-50%) scale(1.06); }

/* Dots */
.mof-slider-dots { position: absolute; z-index: 5; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 9px; }
.mof-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer; padding: 0;
  background: rgba(255,255,255,.45); transition: all .15s ease;
}
.mof-dot:hover { background: rgba(255,255,255,.8); }
.mof-dot.is-active { background: var(--c-gold-500); width: 30px; border-radius: 6px; }
.mof-dot:focus-visible { outline: 2px solid var(--c-gold-400); outline-offset: 2px; }

@media (max-width: 640px) {
  .mof-slider { --slider-h: 400px; }
  .mof-slide.align-right .mof-slide-inner,
  .mof-slide.align-center .mof-slide-inner { justify-content: flex-start; text-align: left; }
  .mof-slide::after { background: linear-gradient(90deg, rgba(7,29,64,.9) 0%, rgba(7,29,64,.6) 100%); }
  .mof-slider-arrow { width: 40px; height: 40px; }
  .mof-slider-arrow.prev { left: 8px; }
  .mof-slider-arrow.next { right: 8px; }
}

/* =========================================================
   23. Per-section design system
   ========================================================= */
/* Default accent (used on the homepage & non-section pages) = brand gold.
   Section pages override --section-accent via an inline <style> in the head. */
:root { --section-accent: var(--c-gold-500); --section-accent-2: var(--c-gold-600); }

/* Section eyebrow chip in the page hero */
.page-hero .section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .76rem;
  color: #fff; background: var(--section-accent); padding: 6px 14px 6px 12px; border-radius: 40px;
  box-shadow: 0 6px 16px -6px var(--section-accent);
}
.page-hero .section-eyebrow svg { color: #fff; }

/* Accent bar under the header on section pages */
body.has-section .site-header { box-shadow: inset 0 -3px 0 var(--section-accent), var(--shadow-sm); }

/* Active top-nav item adopts the section colour */
body.has-section .main-nav .current-menu-item > a,
body.has-section .main-nav .current-menu-ancestor > a,
body.has-section .main-nav .current_page_item > a,
body.has-section .main-nav .current_page_ancestor > a {
  color: var(--section-accent); background: transparent;
  box-shadow: inset 0 -3px 0 var(--section-accent); border-radius: 0;
}

/* Body accents driven by the section colour */
body.has-section .widget-title { border-bottom-color: var(--section-accent); }
body.has-section .entry-content a { color: var(--section-accent); text-decoration-color: var(--section-accent); }
body.has-section .entry-content a:hover { color: var(--section-accent-2); }
body.has-section .breadcrumbs a { color: #fff; }
body.has-section .pagination .page-numbers.current { background: var(--section-accent); border-color: var(--section-accent); }
body.has-section .pagination .page-numbers:hover { border-color: var(--section-accent); }
body.has-section .news-cat { color: var(--section-accent); }
body.has-section .card:hover { border-color: var(--section-accent); }
body.has-section .doc-card .doc-ic,
body.has-section .service-card:hover .ic-wrap { background: color-mix(in srgb, var(--section-accent) 14%, #fff); color: var(--section-accent); }

/* Section-accent button (available anywhere) */
.btn-accent { background: var(--section-accent); color: #fff; border-color: var(--section-accent); }
.btn-accent:hover { background: var(--section-accent-2); border-color: var(--section-accent-2); color: #fff; transform: translateY(-1px); }

/* Section-tinted intro section wrapper (optional, class="mof-section is-section-tint") */
body.has-section .mof-section.is-section-tint {
  background: color-mix(in srgb, var(--section-accent) 7%, #fff);
  border-top: 3px solid var(--section-accent);
}
