/*
Theme Name: WJAI Clean
Theme URI: https://wjai.in
Author: Rohit Mehta
Author URI: https://www.rohitmehta.in/
Description: Government-portal style theme for the Web Journalists' Association of India - navy and saffron palette, utility strip with text-size controls, brand bar, navy menu bar, stats band, service cards and notice board.
Version: 5.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wjai
Tags: custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. DESIGN TOKENS
   ========================================================= */
:root{
  --bg:         #FFFFFF;
  --bg-alt:     #F5F8FC;
  --surface:    #FFFFFF;
  --border:     #E7ECF2;
  --border-strong: #D6DEE8;
  --ink:        #10151F;
  --ink-soft:   #626E7E;
  --white: #FFFFFF;

  --blue:    #2B6CFF;
  --blue-dk: #1547B8;
  --blue-tint: #EAF1FF;
  --red:     #FF3B4E;
  --red-dk:  #D71C2E;
  --red-tint: #FFE9EB;
  --teal:    #12B8A6;
  --teal-dk: #0C8A7D;
  --teal-tint: #E4F9F6;
  --saffron: #FF9933;
  --flag-green: #138808;

  /* legacy aliases from earlier passes so nothing breaks */
  --paper: var(--bg);
  --paper-dim: var(--bg-alt);
  --indigo: var(--blue-dk);
  --indigo-dk: #0E3A8F;
  --marigold: var(--red);
  --marigold-dk: var(--red-dk);
  --forest: var(--teal);
  --forest-dk: var(--teal-dk);
  --brick: var(--saffron);
  --line: var(--border);
  --line-on-dark: rgba(255,255,255,.22);

  --gradient-primary: linear-gradient(120deg, var(--blue) 0%, var(--red) 100%);
  --gradient-cool: linear-gradient(120deg, var(--blue) 0%, var(--teal) 100%);

  --font-display: "Poppins", "Inter", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --step-0: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.7rem + 1.6vw, 3.2rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.8rem);

  --container: 1200px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;

  --shadow-sm: 0 4px 16px rgba(16,24,40,.06);
  --shadow-md: 0 14px 34px rgba(16,24,40,.10);
  --shadow-lg: 0 24px 60px rgba(16,24,40,.14);
}

html.high-contrast{
  --bg:#fff; --bg-alt:#fff; --ink:#000; --ink-soft:#111;
  --border:#000; --border-strong:#000;
  --blue:#0033CC; --red:#B00020; --teal:#00695C;
  --blue-tint:#fff; --red-tint:#fff; --teal-tint:#fff;
}

html.font-lg{ font-size: 108%; }
html.font-xl{ font-size: 118%; }

/* =========================================================
   1. RESET & BASE
   ========================================================= */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body{
  margin:0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width:100%; display:block; height:auto; }
a{ color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover{ color: var(--red); }
h1,h2,h3,h4{
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 .5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1.1em; max-width: 68ch; color: var(--ink); }
ul{ padding-left: 1.2em; }
button{ font-family: inherit; }
button, a{ -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

:focus-visible{ outline: 3px solid var(--blue); outline-offset: 2px; }

.container{ max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section{ padding: 64px 0; }
.section--tight{ padding: 40px 0; }
.section-head{ margin-bottom: 32px; max-width: 60ch; }
.section-head .kicker{ display:inline-block; font-family: var(--font-body); font-weight:700; color: var(--blue); background: var(--blue-tint); padding: 4px 14px; border-radius: var(--radius-pill); font-size:.82rem; margin-bottom: 12px; }
.section-head h2{ font-size: var(--step-3); }
.section-head p{ color: var(--ink-soft); }
.section--rule{ border-top: 1px solid var(--border); }

.skip-link{
  position:absolute; left:-9999px; top:auto;
  background: var(--blue); color:#fff; padding: 10px 18px; z-index: 10000; border-radius: var(--radius);
}
.skip-link:focus{ left: 12px; top: 12px; }

.tricolor-rule{ height: 4px; display:flex; }
.tricolor-rule span{ flex:1; }
.tricolor-rule .s{ background: var(--saffron); }
.tricolor-rule .w{ background: var(--white); }
.tricolor-rule .g{ background: var(--flag-green); }

/* =========================================================
   2. UTILITY BAR
   ========================================================= */
.utility-bar{
  background: var(--bg-alt);
  color: var(--ink-soft);
  font-size: .82rem;
  border-bottom: 1px solid var(--border);
}
.utility-bar .container{
  display:flex; align-items:center; justify-content:space-between;
  gap: 10px; padding-top:7px; padding-bottom:7px; flex-wrap: nowrap;
}
.utility-bar__left{ display:flex; gap:18px; align-items:center; flex-wrap:nowrap; flex-shrink:0; white-space:nowrap; }
.utility-bar__left a{ color: var(--ink-soft); }
.utility-bar__left a:hover{ color: var(--blue); }
.utility-bar__right{ display:flex; align-items:center; gap: 10px; flex-shrink:0; }
.text-size-dropdown{ position:relative; }
.text-size-toggle{
  display:flex; align-items:center; gap:6px; background: var(--white); border:1px solid var(--border-strong);
  color: var(--ink-soft); padding: 4px 10px; cursor:pointer; border-radius: 6px; font-size:.82rem;
}
.text-size-toggle svg{ width:12px; height:12px; transition: transform .15s ease; }
.text-size-toggle[aria-expanded="true"] svg{ transform: rotate(180deg); }
.text-size-menu{
  display:none; position:absolute; top: calc(100% + 6px); left:0; min-width:150px; z-index:1200;
  background: var(--white); border:1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow-md);
  padding: 6px; flex-direction:column; gap:2px;
}
.text-size-menu.is-open{ display:flex; }
.text-size-menu button{
  background:none; border:none; text-align:left; padding: 8px 10px; border-radius: 6px; font-size:.85rem;
  color: var(--ink); cursor:pointer;
}
.text-size-menu button:hover{ background: var(--blue-tint); color: var(--blue); }
.contrast-toggle{
  display:flex; align-items:center; justify-content:center;
  background: var(--white); border:1px solid var(--border-strong); color: var(--ink-soft);
  width:28px; height:28px; padding:0; cursor:pointer; border-radius: 50%; flex:none;
}
.contrast-toggle svg{ width:16px; height:16px; }
.contrast-toggle:hover{ background: var(--blue-tint); color: var(--blue); border-color: var(--blue); }
html.high-contrast .contrast-toggle{ background: var(--blue); color:#fff; border-color: var(--blue); }

.auth-toggle{
  display:flex; align-items:center; gap:6px; padding: 6px 14px; border-radius: var(--radius-pill);
  background: var(--blue); color:#fff; font-size:.8rem; font-weight:700; text-decoration:none; flex:none; white-space:nowrap;
}
.auth-toggle svg{ width:14px; height:14px; }
.auth-toggle:hover{ background: var(--blue-dk); color:#fff; }
.auth-toggle--logout{ background: var(--white); color: var(--ink-soft); border:1px solid var(--border-strong); }
.auth-toggle--logout:hover{ background: var(--red-tint); color: var(--red); border-color: var(--red); }
.utility-social{ display:flex; gap:10px; }
.utility-social a{ display:flex; }
.utility-social svg{ width:15px; height:15px; fill: var(--ink-soft); }

/* Phones/tablets (where the hamburger shows): the top utility bar is hidden; login/logout + contrast live in the main header. */
.header-actions{ display:flex; align-items:center; gap:8px; }
.header-actions .contrast-toggle, .header-actions .auth-toggle{ display:none; }
.primary-nav ul.primary-nav__extra{ display:none; }
@media (max-width: 960px){
  .utility-bar{ display:none; }
  .header-actions .contrast-toggle{ display:flex; }
  .header-actions .auth-toggle{ display:flex; }
  .site-header .container{ gap:10px; }
  .brand__name{ font-size:1.15rem; }
  .brand__tag{ display:none; }
  .primary-nav ul.primary-nav__extra{ display:flex; flex-direction:column; gap:6px; list-style:none; margin:18px 0 0; padding:18px 0 0; border-top:1px solid var(--border); width:100%; }
  .primary-nav__extra a{ display:block; padding:12px 16px; color:var(--ink-soft); text-decoration:none; font-weight:600; border-radius:var(--radius-pill); }
  .primary-nav__extra a:hover{ background:var(--blue-tint); color:var(--blue); }
}
@media (max-width: 640px){
  .utility-bar{ font-size:.76rem; }
  .utility-bar .container{ flex-wrap: wrap; justify-content: space-between; row-gap: 6px; padding-left:16px; padding-right:16px; }
  .utility-bar__left{ gap:14px; flex-shrink:1; flex-wrap:wrap; white-space:normal; width:100%; justify-content:center; }
  .utility-bar__right{ gap:6px; flex-shrink:1; width:100%; justify-content:center; flex-wrap:wrap; }
  .utility-social{ display:none; }
}

/* =========================================================
   3. SITE HEADER
   ========================================================= */
.site-header{
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top:0; z-index: 999;
}
.site-header .container{
  display:flex; align-items:center; justify-content:space-between; gap: 24px;
  padding: 12px 16px;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand a{ display:flex; align-items:center; gap:12px; text-decoration:none; }
.brand img, .brand .custom-logo{ max-height:40px !important; width:auto !important; height:auto !important; display:block; }
.brand__text{ line-height:1.2; }
.brand__name{ font-family: var(--font-display); font-weight:700; font-size:1.3rem; color: var(--ink); display:block; }
.brand__tag{ font-size:.72rem; color: var(--ink-soft); letter-spacing:.02em; }

.primary-nav{ display:flex; align-items:center; gap: 8px; }
.primary-nav ul{ list-style:none; display:flex; gap: 4px; margin:0; padding:0; }
.primary-nav li{ position:relative; }
.primary-nav a{
  display:block; padding: 10px 16px; color: var(--ink-soft); text-decoration:none; font-weight:600; font-size:.95rem;
  border-radius: var(--radius-pill); transition: background .15s ease, color .15s ease;
}
.primary-nav a:hover{ background: var(--blue-tint); color: var(--blue); }
.primary-nav .current-menu-item > a{ background: var(--blue); color:#fff; }

.btn{
  display:inline-flex; align-items:center; gap:8px; padding: 12px 22px;
  font-weight:700; font-size:.9rem; text-decoration:none; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor:pointer; line-height:1.2; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn svg{ width:16px; height:16px; flex: none; fill:none; stroke:currentColor; stroke-width:1.8; }
.btn--marigold{ background: var(--gradient-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--marigold:hover{ box-shadow: var(--shadow-md); }
.btn--outline{ background: var(--white); border-color: var(--border-strong); color: var(--ink); }
.btn--outline:hover{ background: var(--blue-tint); border-color: var(--blue); color: var(--blue); }
.btn--on-dark{ border-color: rgba(255,255,255,.4); color:#fff; background: rgba(255,255,255,.12); }
.btn--on-dark:hover{ background: rgba(255,255,255,.22); }

.menu-toggle{ display:none; background: var(--white); border:1px solid var(--border-strong); padding:8px 10px; border-radius: 8px; cursor:pointer; }
.menu-toggle span{ display:block; width:20px; height:2px; background: var(--ink); margin:4px 0; }

.nav-close{ display:none; }

@media (max-width: 960px){
  .primary-nav{
    display:flex; flex-direction:column; align-items:stretch;
    position:fixed; top:0; right:0; bottom:0; left:0; width:100vw; height:100vh;
    background: var(--white);
    padding: 90px 24px 24px; z-index:9999;
    visibility:hidden; opacity:0; transition: opacity .2s ease;
    overflow-y:auto; -webkit-overflow-scrolling: touch;
  }
  .primary-nav.is-open{ visibility:visible; opacity:1; }
  .primary-nav ul{ flex-direction:column; gap:6px; width:100%; }
  .primary-nav a{ padding: 14px 16px; font-size:1.05rem; }
  .menu-toggle{ display:block; position:relative; z-index:996; }
  .nav-close{
    display:block; position:absolute; top:20px; right:20px; width:36px; height:36px;
    background: var(--bg-alt); border:1px solid var(--border); border-radius:50%;
    font-size:1.4rem; line-height:1; color: var(--ink); cursor:pointer; z-index:1;
  }
  body.nav-open{ overflow:hidden; }
  .admin-bar .primary-nav{ top:46px; height: calc(100% - 46px); }
}
@media (max-width: 960px) and (min-width: 783px){
  .admin-bar .primary-nav{ top:32px; height: calc(100% - 32px); }
}

/* =========================================================
   4. HERO
   ========================================================= */
.hero{ background: linear-gradient(180deg, var(--blue-tint) 0%, var(--bg) 65%); color: var(--ink); position:relative; overflow:hidden; }
.hero::before{
  content:""; position:absolute; width:420px; height:420px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,59,78,.10), transparent 70%);
  top:-140px; right:-100px; pointer-events:none;
}
.hero__inner{ padding: 56px 0 0; position:relative; z-index:1; }
.hero__grid{ display:grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items:center; }

.hero__tag{
  display:inline-flex; align-items:center; gap:8px; padding: 6px 16px 6px 8px; border-radius: var(--radius-pill);
  background: var(--white); border: 1px solid var(--border-strong); font-size:.8rem; font-weight:700; color: var(--ink);
  margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.hero__tag .dot{ width:8px; height:8px; border-radius:50%; background: var(--red); flex:none; }

.hero__rotator{ position:relative; min-height: 240px; }
.hero__slide{ position:absolute; top:0; right:0; bottom:0; left:0; opacity:0; visibility:hidden; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease, visibility 0s linear .5s; pointer-events:none; }
.hero__slide.is-active{ position:relative; opacity:1; visibility:visible; transform:none; pointer-events:auto; transition: opacity .5s ease, transform .5s ease; }
.hero__slide h1{ color: var(--ink); font-size: var(--step-4); max-width: 15ch; }
.hero__slide h1 em{ font-style:normal; color: var(--red); }
.hero__slide p.lede{ color: var(--ink-soft); font-size: var(--step-1); max-width: 46ch; }

.hero__dots{ display:flex; gap:8px; margin-top:20px; }
.hero__dots button{ width:22px; height:4px; border-radius: var(--radius-pill); background: var(--border-strong); border:none; cursor:pointer; padding:0; }
.hero__dots button.is-active{ background: var(--red); }

.hero__figure{ position:relative; display:flex; justify-content:center; }
/* =========================================================
   HERO SLIDER
   ========================================================= */
.hero-slider{
  position:relative; border-radius: var(--radius-lg); overflow:hidden;
  box-shadow: var(--shadow-lg); width:100%; aspect-ratio: 4/3;
  background: var(--bg-alt); border: 1px solid var(--border);
}
.hero-slider__track{ position:relative; width:100%; height:100%; }
.hero-slider__slide{
  position:absolute; top:0; left:0; width:100%; height:100%;
  opacity:0; visibility:hidden; transition: opacity .5s ease, visibility 0s linear .5s; pointer-events:none;
}
.hero-slider__slide.is-active{ opacity:1; visibility:visible; pointer-events:auto; position:relative; transition: opacity .5s ease; }
.hero-slider__slide img{ width:100%; height:100%; object-fit:cover; display:block; }

.hero-slider__arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:10;
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.85); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  box-shadow: var(--shadow-sm); transition: background .15s ease;
}
.hero-slider__arrow:hover{ background:#fff; }
.hero-slider__arrow svg{ width:18px; height:18px; color: var(--ink); }
.hero-slider__arrow--prev{ left:12px; }
.hero-slider__arrow--next{ right:12px; }

.hero-slider__dots{
  position:absolute; bottom:12px; left:50%; transform:translateX(-50%);
  display:flex; gap:7px; z-index:10;
}
.hero-slider__dot{
  width:8px; height:8px; border-radius:50%; background:rgba(255,255,255,.55);
  border:none; cursor:pointer; padding:0; transition: background .15s ease, transform .15s ease;
}
.hero-slider__dot.is-active{ background:#fff; transform: scale(1.25); }

.stat-strip{ position:relative; z-index:2; margin-top: 32px; margin-bottom: 8px; }
.stat-strip__row{ display:grid; grid-template-columns: repeat(4,1fr); gap:16px; }
.stat-strip__item{
  padding: 22px 20px; background: var(--white); color: var(--ink); border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.stat-strip__num{ font-family: var(--font-display); font-size: 2rem; font-weight:700; color: var(--blue); display:block; }
.stat-strip__label{ color: var(--ink-soft); font-size:.85rem; }

@media (max-width: 860px){
  .hero__grid{ grid-template-columns: 1fr; }
  .hero__figure{ order:-1; margin-bottom: 24px; }
  .hero-slider{ aspect-ratio: 16/11; border-radius: var(--radius); }
  .hero-slider__arrow{ width:32px; height:32px; }
  .hero-slider__arrow svg{ width:15px; height:15px; }
  .stat-strip__row{ grid-template-columns: repeat(2,1fr); }
  .hero__inner{ padding-top: 40px; }
  .hero__rotator{ min-height: 220px; }
  .hero__slide{ padding: 0 4px; }
  .hero__slide h1{ font-size: clamp(2rem, 1.6rem + 4vw, 2.6rem); line-height: 1.22; margin-bottom: .6em; }
  .hero__slide p.lede{ line-height: 1.6; }
  .hero__tag{ margin-bottom: 16px; }
}
@media (max-width: 420px){
  .hero-slider{ aspect-ratio: 4/3; }
}

/* =========================================================
   5. NOTICE TICKER
   ========================================================= */
.ticker{ background: var(--ink); border-bottom: 1px solid var(--border); }
.ticker .container{ display:flex; align-items:center; gap: 16px; padding-top:0; padding-bottom:0; }
.ticker__label{
  flex: none; display:flex; align-items:center; gap:8px; font-weight:800; color: #fff;
  padding: 10px 14px 10px 0; border-right: 1px solid rgba(255,255,255,.2); font-size:.85rem; text-transform: uppercase; letter-spacing:.04em;
}
.ticker__label svg{ width:16px; height:16px; fill: var(--red); }
.ticker__viewport{ overflow:hidden; flex:1; padding: 10px 0; }
.ticker__track{ display:flex; gap: 64px; white-space:nowrap; width:max-content; animation: ticker 32s linear infinite; }
.ticker__viewport:hover .ticker__track{ animation-play-state: paused; }
.ticker__track a{ color: #fff; font-weight:600; text-decoration:none; }
.ticker__track a:hover{ color: var(--red); }
.ticker__track time{ font-weight:400; opacity:.6; margin-right:6px; }
@keyframes ticker{ from{ transform: translateX(0);} to{ transform: translateX(-50%);} }
@media (prefers-reduced-motion: reduce){
  .ticker__track{ animation:none; flex-wrap:wrap; white-space:normal; }
  .ticker__viewport{ overflow:auto; max-height:120px; }
}
@media (max-width: 640px){ .ticker__label span.long{ display:none; } }

/* =========================================================
   6. QUICK LINKS
   ========================================================= */
.quick-links{ background: var(--bg); }
.quick-links__grid{ display:grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.quick-links__item{
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 18px; text-decoration:none; color: var(--ink);
  display:flex; flex-direction:column; align-items:flex-start; gap:12px; min-height: 130px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.quick-links__item:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue); color: var(--ink); }
.quick-links__item svg{ width:22px; height:22px; stroke: var(--teal); fill:none; stroke-width:1.8; }
.quick-links__item span{ font-weight:700; font-size:.92rem; }
@media (max-width: 960px){ .quick-links__grid{ grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .quick-links__grid{ grid-template-columns: repeat(2,1fr);} }

/* =========================================================
   7. ABOUT / MISSION
   ========================================================= */
.about-split{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 56px; }
.about-split__copy h2{ font-size: var(--step-3); max-width: 16ch; }
.about-split__copy p{ color: var(--ink-soft); }
.pillar-list{ list-style:none; padding:0; margin: 28px 0 0; border-top: 1px solid var(--border); }
.pillar-list li{ padding: 16px 0; border-bottom: 1px solid var(--border); display:flex; gap:16px; }
.pillar-list .pillar-num{ font-family: var(--font-display); color: var(--red); font-weight:700; font-size:1.1rem; flex:none; width:2ch; }
.pillar-list h3{ font-size: 1.05rem; margin: 0 0 4px; }
.pillar-list p{ margin:0; color: var(--ink-soft); font-size:.95rem; }
.about-figure{ border-radius: var(--radius-lg); padding: 8px; background: var(--white); border:1px solid var(--border); box-shadow: var(--shadow-md); overflow:hidden; }
.about-figure img{ width:100%; border-radius: var(--radius); }
.about-figure figcaption{ font-size:.82rem; color: var(--ink-soft); padding: 10px 6px 2px; }
@media (max-width: 860px){ .about-split{ grid-template-columns:1fr; } }

/* =========================================================
   8. IMPACT NUMBERS
   ========================================================= */
.impact{ background: var(--bg-alt); color: var(--ink); }
.impact__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.impact__item{ padding: 26px 22px; background: var(--white); border:1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.impact__num{ font-family: var(--font-display); font-size: var(--step-3); color: var(--blue); display:block; }
.impact__label{ color: var(--ink-soft); font-size:.9rem; }
@media (max-width: 860px){ .impact__grid{ grid-template-columns: repeat(2,1fr); } }

/* =========================================================
   9. FEATURE GRID (What Membership Gives You)
   ========================================================= */
.feature-grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.feature-card{
  background: var(--white); border:1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__icon{
  width:48px; height:48px; border-radius:50%; background: var(--blue-tint);
  display:flex; align-items:center; justify-content:center; margin-bottom:16px;
}
.feature-card__icon svg{ width:22px; height:22px; stroke: var(--blue); fill:none; stroke-width:1.8; }
.feature-card h3{ font-size:1.1rem; margin-bottom:6px; }
.feature-card p{ color: var(--ink-soft); font-size:.9rem; margin:0; }
.program-card__tag{ display:inline-block; font-size:.72rem; font-weight:700; color: var(--teal-dk); background: var(--teal-tint); padding:3px 10px; border-radius: var(--radius-pill); margin-bottom:8px; }
.program-card__link{ display:inline-block; margin-top:10px; font-weight:700; font-size:.9rem; text-decoration:none; }
@media (max-width: 960px){ .feature-grid{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .feature-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   9b. WHO CAN JOIN (tag cloud)
   ========================================================= */
.tag-cloud{ display:flex; flex-wrap:wrap; gap: 12px; }
.tag-cloud a, .tag-cloud span.pill{
  display:inline-flex; align-items:center; padding: 10px 20px; border-radius: var(--radius-pill);
  background: var(--white); border:1px solid var(--border-strong); font-weight:600; font-size:.9rem; color: var(--ink);
  text-decoration:none; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.tag-cloud a:hover{ background: var(--blue); color:#fff; border-color: var(--blue); }

/* =========================================================
   9c. STEP FLOW (From Application to Press ID)
   ========================================================= */
.step-flow{ display:grid; grid-template-columns: repeat(4,1fr); gap: 24px; position:relative; }
.step-flow::before{
  content:""; position:absolute; top:24px; left:12%; right:12%; height:2px;
  background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px);
  z-index:0;
}
.step{ position:relative; z-index:1; }
.step__num{
  width:48px; height:48px; border-radius:50%; background: var(--red); color:#fff;
  display:flex; align-items:center; justify-content:center; font-family: var(--font-display); font-weight:700; font-size:1.2rem;
  margin-bottom:16px; box-shadow: var(--shadow-sm);
}
.step h3{ font-size:1.05rem; margin-bottom:6px; }
.step p{ color: var(--ink-soft); font-size:.9rem; margin:0; }
@media (max-width: 860px){ .step-flow{ grid-template-columns: 1fr 1fr; row-gap:32px; } .step-flow::before{ display:none; } }
@media (max-width: 560px){ .step-flow{ grid-template-columns: 1fr; } }

/* =========================================================
   9d. MEMBERSHIP TIERS
   ========================================================= */
.tiers{ display:grid; grid-template-columns: repeat(2,1fr); gap: 24px; align-items:start; max-width:900px; margin:0 auto; }
.tier-card{
  background: var(--white); border:1px solid var(--border);
  border-radius: var(--radius-lg); padding: 30px 26px; position:relative; box-shadow: var(--shadow-sm);
}
.tier-card--featured{ border: 2px solid var(--blue); box-shadow: var(--shadow-lg); }
.tier-card__ribbon{
  position:absolute; top:-13px; left:26px; background: var(--red); color:#fff; font-size:.72rem; font-weight:800;
  text-transform:uppercase; letter-spacing:.04em; padding: 5px 12px; border-radius: var(--radius-pill);
}
.tier-card__name{ font-weight:700; font-size:1.1rem; margin-bottom:14px; }
.tier-card__price{ font-family: var(--font-display); font-size:2.4rem; font-weight:700; color: var(--blue); line-height:1; }
.tier-card__period{ color: var(--ink-soft); font-size:.85rem; margin:4px 0 16px; }
.tier-card__list{ list-style:none; padding:0; margin:0 0 22px; }
.tier-card__list li{
  font-size:.88rem; color: var(--ink-soft); padding: 8px 0 8px 24px; position:relative; border-bottom:1px solid var(--border);
}
.tier-card__list li:last-child{ border-bottom:none; }
.tier-card__list li::before{ content:"✓"; position:absolute; left:0; color: var(--teal-dk); font-weight:700; }
@media (max-width: 860px){ .tiers{ grid-template-columns: 1fr; } }

/* =========================================================
   9e. FAQ ACCORDION
   ========================================================= */
.faq-list{ max-width: 820px; }
.faq-item{
  background: var(--white); border:1px solid var(--border);
  border-radius: var(--radius); margin-bottom:12px; overflow:hidden;
}
.faq-item summary{
  list-style:none; cursor:pointer; padding: 18px 22px; display:flex; align-items:center; justify-content:space-between;
  font-weight:700; font-size:.98rem; gap:16px; color: var(--ink);
}
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary .chev{ flex:none; transition: transform .2s ease; color: var(--ink-soft); }
.faq-item[open] summary .chev{ transform: rotate(180deg); }
.faq-item[open]{ box-shadow: var(--shadow-sm); }
.faq-item__body{ padding: 0 22px 20px; color: var(--ink-soft); font-size:.92rem; }

/* =========================================================
   9f. CONTACT TEASER
   ========================================================= */
.contact-teaser{ display:grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.contact-teaser__item{ background: var(--white); border:1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.contact-teaser__item svg{ width:22px; height:22px; stroke: var(--teal); fill:none; stroke-width:1.8; margin-bottom:10px; }
.contact-teaser__item h4{ font-size:.95rem; margin:0 0 4px; color: var(--ink); }
.contact-teaser__item p, .contact-teaser__item a{ color: var(--ink-soft); font-size:.88rem; margin:0; text-decoration:none; }
.contact-teaser__item a:hover{ color: var(--blue); }
@media (max-width: 860px){ .contact-teaser{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .contact-teaser{ grid-template-columns: 1fr; } }

/* =========================================================
   9g. TESTIMONIALS
   ========================================================= */
.testimonials{ display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.testimonial-card{ background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); }
.testimonial-card__stars{ color: var(--saffron); font-size: .95rem; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-card p{ color: var(--ink); font-size: .95rem; margin-bottom: 18px; }
.testimonial-card__author{ display:flex; align-items:center; gap: 12px; }
.testimonial-card__avatar{
  width:38px; height:38px; border-radius:50%; background: var(--blue); color:#fff;
  display:flex; align-items:center; justify-content:center; font-weight:700; font-family: var(--font-display); flex:none;
}
.testimonial-card__author strong{ display:block; font-size:.9rem; color: var(--ink); }
.testimonial-card__author span{ font-size:.8rem; color: var(--ink-soft); }
@media (max-width: 860px){ .testimonials{ grid-template-columns: 1fr; } }

/* =========================================================
   9h. FLOATING CONTACT BUTTON — removed, was unused (display:none) and duplicated the WhatsApp FAB above
   ========================================================= */

/* =========================================================
   10. NOTICE BOARD & RESOURCES
   ========================================================= */
.board{ display:grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.board__col{ padding: 30px; background: var(--white); border:1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.board h2{ font-size: var(--step-2); margin-bottom: 4px; }
.board .board__sub{ color: var(--ink-soft); font-size:.9rem; margin-bottom: 20px; }
.notice-list{ list-style:none; margin:0; padding:0; }
.notice-list li{ display:flex; gap:16px; padding: 14px 0; border-bottom: 1px solid var(--border); align-items:flex-start; }
.notice-list li:last-child{ border-bottom:none; }
.notice-date{ flex:none; width: 60px; text-align:center; border-radius: 10px; padding: 6px 4px; background: var(--blue-tint); }
.notice-date .d{ font-family: var(--font-display); font-weight:700; font-size:1.1rem; display:block; line-height:1; color: var(--blue-dk); }
.notice-date .m{ font-size:.7rem; text-transform:uppercase; color: var(--blue-dk); }
.notice-body a{ font-weight:600; text-decoration:none; color: var(--ink); }
.notice-body .cat{ display:inline-block; font-size:.72rem; font-weight:700; color: var(--red); text-transform:uppercase; margin-bottom:3px; }
.download-list{ list-style:none; margin:0; padding:0; }
.download-list li{ border-bottom: 1px solid var(--border); }
.download-list li:last-child{ border-bottom:none; }
.download-list a{
  display:flex; align-items:center; gap:12px; padding: 14px 0; text-decoration:none; color: var(--ink); font-weight:600;
}
.download-list a svg{ width:18px; height:18px; stroke: var(--teal); fill:none; stroke-width:1.6; flex:none; }
.download-list a:hover{ color: var(--blue); }
@media (max-width: 860px){ .board{ grid-template-columns: 1fr; } }

/* =========================================================
   11. LEADERSHIP
   ========================================================= */
.team__grid{ display:grid; grid-template-columns: repeat(4,1fr); gap: 28px; }
.team-card{ text-align:left; }
.team-card__photo{ aspect-ratio: 1; overflow:hidden; background: var(--bg-alt); border:1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; }
.team-card__photo img{ width:100%; height:100%; object-fit:cover; }
.team-card h3{ font-size:1.05rem; margin-bottom:2px; }
.team-card .role{ color: var(--teal-dk); font-weight:600; font-size:.85rem; }
@media (max-width: 860px){ .team__grid{ grid-template-columns: repeat(2,1fr);} }

/* =========================================================
   12. GALLERY
   ========================================================= */
.gallery-grid{ display:grid; grid-template-columns: repeat(4,1fr); grid-auto-rows: 160px; gap: 6px; }
.gallery-grid a{ display:block; overflow:hidden; border-radius: 10px; }
.gallery-grid img{ width:100%; height:100%; object-fit:cover; transition: transform .3s ease; }
.gallery-grid a:hover img{ transform: scale(1.05); }
.gallery-grid a:nth-child(5n+1){ grid-column: span 2; grid-row: span 2; }
@media (max-width: 700px){ .gallery-grid{ grid-template-columns: repeat(2,1fr); } .gallery-grid a:nth-child(5n+1){ grid-column: span 1; grid-row: span 1; } }

/* =========================================================
   13. UPDATES (blog)
   ========================================================= */
.updates__grid{ display:grid; grid-template-columns: repeat(3,1fr); gap: 32px; }
.update-card{ border-top: 1px solid var(--border); padding-top: 16px; }
.update-card__media{ aspect-ratio: 16/10; overflow:hidden; margin-bottom:14px; background: var(--bg-alt); border-radius: var(--radius); }
.update-card__media img{ width:100%; height:100%; object-fit:cover; }
.update-card time{ font-size:.8rem; color: var(--ink-soft); }
.update-card h3{ font-size:1.15rem; margin: 6px 0 8px; }
.update-card h3 a{ color: var(--ink); text-decoration:none; }
.update-card p{ color: var(--ink-soft); font-size:.92rem; }
@media (max-width: 860px){ .updates__grid{ grid-template-columns: 1fr 1fr;} }
@media (max-width: 560px){ .updates__grid{ grid-template-columns: 1fr;} }

/* =========================================================
   14. CTA BAND
   ========================================================= */
.cta-band{ background: transparent; }
.cta-band .container{ padding-top:0; padding-bottom:0; }
.cta-band__inner{
  background: var(--gradient-primary); color:#fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 48px 44px; display:flex; align-items:center; justify-content:space-between; gap: 32px; flex-wrap:wrap;
}
.cta-band h2{ color:#fff; font-size: var(--step-3); max-width: 20ch; margin:0; }
.cta-band__actions{ display:flex; gap:14px; flex-wrap:wrap; }
.cta-band .btn--marigold{ background: #fff; color: var(--ink); box-shadow:none; }
.cta-band .btn--marigold:hover{ background: var(--bg-alt); }

/* =========================================================
   15. FOOTER
   ========================================================= */
.site-footer{ background: #0B1220; color: #93A0B2; border-top: 1px solid rgba(255,255,255,.08); }
.footer-top{ padding: 56px 0 32px; }
.footer-grid{ display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-col h4{ color:#fff; font-family: var(--font-body); font-size:.82rem; text-transform:uppercase; letter-spacing:.06em; margin-bottom:16px; }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:10px; }
.footer-col a{ color: #93A0B2; text-decoration:none; font-size:.92rem; }
.footer-col a:hover{ color: var(--blue); }
.footer-about .custom-logo{ max-height:44px !important; width:auto !important; margin-bottom:16px; }
.footer-logo-text{ font-family: var(--font-display); font-size:1.3rem; font-weight:700; color:#fff; display:block; margin-bottom:14px; }
.footer-about p{ color: #7A8699; font-size:.9rem; line-height:1.65; margin-bottom:12px; }
.footer-social{ display:flex; gap:10px; margin-bottom:16px; }
.footer-social a{ width:34px; height:34px; border:1px solid rgba(255,255,255,.18); display:flex; align-items:center; justify-content:center; border-radius:50%; }
.footer-social a:hover{ border-color: var(--blue); background: rgba(59,125,255,.15); }
.footer-social svg{ width:15px; height:15px; fill: #93A0B2; }
.footer-compliance{ font-size:.76rem; color: #5C6672; line-height:1.6; }
.footer-contact ul{ list-style:none; padding:0; margin:0; }
.footer-contact__item{ display:flex; gap:10px; align-items:flex-start; margin-bottom:14px; }
.footer-contact__item svg{ width:16px; height:16px; flex:none; margin-top:2px; opacity:.6; }
.footer-contact__item span, .footer-contact__item a{ font-size:.88rem; color: #93A0B2; text-decoration:none; line-height:1.5; }
.footer-contact__item a:hover{ color: var(--blue); }
.footer-bottom{ border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; }
.footer-bottom .container{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; font-size:.82rem; color: #5C6672; }
.footer-bottom a{ color: #5C6672; }
.footer-bottom a:hover{ color: var(--blue); }
.footer-sitemap{ display:flex; gap:18px; flex-wrap:wrap; list-style:none; margin:0; padding:0; }
@media (max-width: 960px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }

/* =========================================================
   FAB GROUP — WhatsApp + back-to-top
   ========================================================= */
.fab-group{ position:fixed; right:20px; bottom:20px; z-index:888; display:flex; flex-direction:column; gap:10px; align-items:center; }
.fab{
  width:48px; height:48px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  border:none; cursor:pointer; box-shadow: 0 4px 16px rgba(0,0,0,.22); transition: transform .15s ease;
  text-decoration:none; flex:none;
}
.fab:hover{ transform: scale(1.08); }
.fab svg{ width:22px; height:22px; }
.fab--whatsapp{ background:#25D366; }
.fab--whatsapp svg{ fill:#fff; width:26px; height:26px; }
.fab--top{
  background: var(--white); color: var(--ink); border:1px solid var(--border);
  opacity:0; pointer-events:none; transition: opacity .2s ease, transform .15s ease;
}
.fab--top svg{ stroke: var(--ink); fill:none; stroke-width:2; }
.fab--top.is-visible{ opacity:1; pointer-events:auto; }

/* =========================================================
   16. GENERIC PAGE / SINGLE / ARCHIVE
   ========================================================= */
.page-hero{ background: var(--bg-alt); color: var(--ink); padding: 48px 0; border-bottom: 1px solid var(--border); }
.page-hero h1{ color: var(--ink); margin:0; }
.breadcrumb{ font-size:.82rem; color: var(--ink-soft); margin-bottom:10px; }
.breadcrumb a{ color: var(--ink-soft); }
.content-wrap{ display:grid; grid-template-columns: 2fr 1fr; gap: 48px; }
.entry-content{ max-width: 72ch; }
.entry-content h2{ font-size: var(--step-2); margin-top:1.4em; }
.entry-content h3{ font-size: var(--step-1); margin-top:1.2em; }
.entry-content img{ margin: 1.2em 0; border-radius: var(--radius); }
.entry-content blockquote{ border-left: 3px solid var(--red); margin: 1.4em 0; padding: 4px 0 4px 20px; color: var(--ink-soft); font-style: italic; }
.entry-content a{ text-decoration-line: underline; }
.widget{ margin-bottom: 32px; border-radius: var(--radius); padding: 20px; background: var(--white); border:1px solid var(--border); box-shadow: var(--shadow-sm); }
.widget h2, .widget h3{ font-size: 1.05rem; text-transform:uppercase; letter-spacing:.03em; margin-bottom:14px; color: var(--ink); }
.widget ul{ list-style:none; margin:0; padding:0; }
.widget li{ padding: 8px 0; border-bottom:1px solid var(--border); font-size:.92rem; }
@media (max-width: 860px){ .content-wrap{ grid-template-columns: 1fr; } }

.pagination{ display:flex; gap:8px; margin-top: 32px; list-style:none; padding:0; }
.pagination a, .pagination span{ border:1px solid var(--border-strong); padding: 8px 14px; text-decoration:none; color: var(--ink); border-radius: 8px; }
.pagination .current{ background: var(--blue); color:#fff; border-color: var(--blue); }

.comments-area{ margin-top: 48px; border-top: 1px solid var(--border); padding-top: 32px; }
.comment-list{ list-style:none; margin:0; padding:0; }
.comment-list li{ margin-bottom: 20px; padding-bottom:20px; border-bottom:1px solid var(--border); }
.comment-form input, .comment-form textarea{
  width:100%; padding: 10px 12px; border:1px solid var(--border-strong); background: var(--white); color: var(--ink);
  font-family: inherit; margin-bottom:12px; border-radius: 8px;
}
.comment-form label{ display:block; font-size:.85rem; margin-bottom:4px; font-weight:600; color: var(--ink); }

.search-form{ display:flex; gap:8px; }
.search-form input[type="search"]{ flex:1; padding:10px 12px; border:1px solid var(--border-strong); background: var(--white); color: var(--ink); border-radius: 8px; }

.error-404{ text-align:left; padding: 96px 0; }
.error-404 h1{ font-size: var(--step-4); }

/* =========================================================
   WJAI PLUGIN PAGES (dashboard, directory, certificate, ID card,
   registration, login, application summary, portal pages) - full width,
   no narrow blog-article constraint. The plugin's own CSS sets its own
   max-widths (with !important) for each of these, so this wrapper just
   needs to give them breathing room, not a size.
   ========================================================= */
.wjai-plugin-page{ padding: 48px 24px 72px; min-height: 50vh; }

/* Plugin v2.7.5+: one login can own an individual membership plus several
   portals, so the dashboard gets a row of tabs above the cards. The plugin
   centres each card at 900px; keep the tab row on the same column. */
.wjai-plugin-page .wjai-dashboard-owner{ max-width: 900px; margin: 0 auto; padding: 0 16px; }
.wjai-plugin-page .wjai-dashboard-owner .wjai-dashboard-v3{ padding: 0; }
.wjai-plugin-page .wjai-owner-actions .wjai-pill-btn{ cursor: pointer; font-family: inherit; }
@media (max-width: 640px){ .wjai-plugin-page .wjai-dashboard-owner{ padding: 0 12px; } }
@media (max-width: 640px){ .wjai-plugin-page{ padding: 28px 16px 56px; } }

.tag-badge{
  display:inline-block; font-size:.72rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase;
  padding: 4px 10px; border:1px solid var(--border-strong); border-radius: var(--radius-pill); margin: 0 8px 8px 0; color: var(--ink);
}

/* =========================================================
   v4.7.0 - Bootstrap-style polish (theme-wide, no Bootstrap dependency)
   ========================================================= */
.btn, .wjai-plugin-page .wjai-btn{ min-height:42px; }
.auth-toggle{ min-height:34px; box-sizing:border-box; box-shadow:0 1px 2px rgba(16,24,40,.12); }
.auth-toggle:focus-visible, .text-size-toggle:focus-visible, .contrast-toggle:focus-visible{ outline:0; box-shadow:0 0 0 .25rem rgba(36,99,235,.25); }
.text-size-toggle, .contrast-toggle{ min-height:30px; box-sizing:border-box; }
.widget, .comment-form input, .comment-form textarea, .search-form input[type="search"]{ border-radius:.5rem; }
.comment-form input:focus, .comment-form textarea:focus, .search-form input[type="search"]:focus{ outline:0; border-color: var(--blue); box-shadow:0 0 0 .25rem rgba(36,99,235,.2); }
.pagination a, .pagination span{ border-radius:.5rem; min-width:40px; text-align:center; }
.wjai-plugin-page{ background: var(--bg); }
@media (max-width: 640px){
  .container{ padding-left:16px; padding-right:16px; }
  .section{ padding:44px 0; }
  .auth-toggle{ padding:6px 12px; }
}

.footer-credit{ font-size:.82rem; color:#9AA5B1; }
.footer-credit a{ color:#C9D3DF; font-weight:600; text-decoration:none; }
.footer-credit a:hover{ color:#fff; text-decoration:underline; }

/* =========================================================
   v4.9.0 - Desktop menu: right-aligned, tighter, working sub-menus
   ========================================================= */
.about-figure img{ max-height:560px; object-fit:contain; background:#fff; }
.header-actions{ display:none; }
@media (max-width: 960px){ .header-actions{ display:flex; } }
@media (min-width: 961px){
  .site-header .container{ gap:16px; }
  .brand{ flex:none; }
  .primary-nav{ margin-left:auto; justify-content:flex-end; gap:0; }
  .primary-nav ul{ gap:0; align-items:center; flex-wrap:nowrap; }
  .primary-nav > ul > li > a{ padding:9px 12px; font-size:.93rem; white-space:nowrap; }
  /* dropdown arrow on items that have children */
  .primary-nav .menu-item-has-children > a::after{
    content:''; display:inline-block; width:6px; height:6px; margin:0 0 3px 7px;
    border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:rotate(45deg);
  }
  /* sub-menu panel */
  .primary-nav .sub-menu{
    display:block; list-style:none; margin:0; padding:8px; min-width:220px;
    position:absolute; top:100%; left:0; z-index:1100;
    background:var(--white); border:1px solid var(--border); border-radius:12px; box-shadow:var(--shadow-md);
    opacity:0; visibility:hidden; transform:translateY(6px); transition:opacity .15s ease, transform .15s ease, visibility .15s;
  }
  .primary-nav li:last-child > .sub-menu, .primary-nav li:nth-last-child(2) > .sub-menu{ left:auto; right:0; } /* keep panels inside the screen */
  .primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu{ opacity:1; visibility:visible; transform:none; }
  .primary-nav .sub-menu li{ display:block; width:100%; }
  .primary-nav .sub-menu a{ display:block; padding:10px 14px; border-radius:8px; font-size:.9rem; white-space:nowrap; }
  .primary-nav .sub-menu .sub-menu{ top:0; left:100%; margin-left:6px; }
  .primary-nav li > .sub-menu::before{ content:''; position:absolute; left:0; right:0; top:-10px; height:10px; } /* hover bridge */
  .primary-nav .current-menu-ancestor > a{ background:var(--blue-tint); color:var(--blue); }
}
@media (max-width: 960px){
  /* phones/tablets: sub-items shown as an indented list inside the full-screen menu */
  .primary-nav .sub-menu{ list-style:none; margin:2px 0 6px 14px; padding:0 0 0 12px; border-left:2px solid var(--border); display:flex; flex-direction:column; gap:2px; }
  .primary-nav .sub-menu a{ padding:11px 14px; font-size:.98rem; font-weight:500; }
}

/* Default pages (v4.9.1) */
.wjai-fee-table{ width:100%; max-width:560px; border-collapse:collapse; margin:12px 0 18px; border:1px solid var(--border); border-radius:12px; overflow:hidden; }
.wjai-fee-table th, .wjai-fee-table td{ padding:12px 16px; text-align:left; border-bottom:1px solid var(--border); font-size:.95rem; }
.wjai-fee-table thead th{ background:var(--blue-tint); color:var(--blue); font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; }
.wjai-fee-table tbody th{ font-weight:600; }
.entry-content ol, .entry-content ul{ padding-left:1.3em; }
.entry-content li{ margin-bottom:.4em; }

/* Default sidebar (pages, posts, notices, programmes) */
.content-wrap{ align-items:start; }
.content-main, .content-wrap > div{ min-width:0; }
.widget-area{ position:sticky; top:96px; }
.widget-area .widget a{ text-decoration:none; }
.widget-area .widget li:last-child{ border-bottom:0; }
.widget-area .widget small{ color:var(--muted, #6b7280); }
.widget-area .search-form{ display:flex; gap:8px; }
.widget-area .search-form input[type="search"]{ flex:1; min-width:0; }
@media (max-width: 860px){ .widget-area{ position:static; } }
.content-wrap{ grid-template-columns:minmax(0,2fr) minmax(0,1fr); }
@media (max-width: 860px){ .content-wrap{ grid-template-columns:minmax(0,1fr); gap:32px; } }
.entry-content img, .entry-content iframe, .entry-content table{ max-width:100%; }
.widget-area .widget p{ font-size:.92rem; }

/* =========================================================
   v5.0.0 - PORTAL LOOK (navy + saffron)
   ========================================================= */
:root{
  --navy:#0B2A5B; --navy-dk:#071C40; --navy-mid:#123A7A;
  --blue:#123A7A; --blue-dk:#0B2A5B; --blue-tint:#E8EEF8;
  --red:#E8710A; --red-dk:#C25C00; --red-tint:#FFF1E2;
  --teal:#0F7B6C; --teal-dk:#0A5C51;
  --saffron:#F59E0B;
  --gradient-primary: linear-gradient(120deg,#F59E0B 0%,#E8710A 100%);
  --radius:8px; --radius-lg:12px;
  --bg-alt:#F3F6FB; --border:#DCE3EE; --border-strong:#C5D0E0;
  --shadow-sm:0 2px 8px rgba(11,42,91,.08); --shadow-md:0 8px 24px rgba(11,42,91,.12); --shadow-lg:0 16px 40px rgba(11,42,91,.16);
}
a{ color:var(--navy-mid); }
a:hover{ color:var(--red-dk); }
.btn{ border-radius:6px; }
.btn--marigold{ background:var(--gradient-primary); color:#fff; }
.btn--outline{ background:#fff; border-color:var(--navy-mid); color:var(--navy-mid); }
.btn--outline:hover{ background:var(--navy-mid); color:#fff; border-color:var(--navy-mid); }

/* Utility strip */
.utility-bar{ background:var(--navy-dk); color:#CFD9EA; border-bottom:0; }
.utility-bar__left a{ color:#CFD9EA; text-decoration:none; }
.utility-bar__left a:hover{ color:#fff; text-decoration:underline; }
.utility-bar__left{ gap:20px; }
.text-size-group{ display:flex; gap:4px; }
.text-size-group button{ background:transparent; border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:4px; min-width:30px; height:26px; padding:0 6px; font-weight:700; font-size:.78rem; cursor:pointer; }
.text-size-group button:hover{ background:var(--saffron); border-color:var(--saffron); color:var(--navy-dk); }
.utility-bar .contrast-toggle{ background:transparent; border-color:rgba(255,255,255,.35); color:#fff; }
.utility-bar .contrast-toggle:hover{ background:var(--saffron); border-color:var(--saffron); color:var(--navy-dk); }
.utility-social svg{ fill:#CFD9EA; }
.utility-bar .container{ padding-top:6px; padding-bottom:6px; }

/* Brand bar */
.brandbar{ background:#fff; border-bottom:1px solid var(--border); }
.brandbar .container{ display:flex; align-items:center; gap:18px; padding:14px 16px; }
.brandbar .brand{ flex:1 1 auto; min-width:0; }
.brandbar .brand__name{ font-size:1.55rem; color:var(--navy); }
.brandbar .brand__tag{ font-size:.78rem; color:var(--ink-soft); }
.brandbar .brand img, .brandbar .brand .custom-logo{ max-height:56px !important; }
.brandbar__badge{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid #BFE3D6; background:#E7F6EF; color:#0A6A4A; border-radius:999px; font-size:.78rem; font-weight:700; white-space:nowrap; }
.brandbar__badge svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.8; }
.brandbar__cta{ display:flex; gap:10px; }
.brandbar__cta .btn{ padding:10px 18px; }

/* Navy menu bar */
.site-header{ background:var(--navy); backdrop-filter:none; -webkit-backdrop-filter:none; border-bottom:3px solid var(--saffron); }
.site-header .container{ padding:0 16px; justify-content:flex-start; }
@media (min-width:961px){
  .site-header .container{ gap:0; }
  .primary-nav{ margin-left:0; justify-content:flex-start; width:100%; }
  .primary-nav > ul{ width:100%; }
  .primary-nav > ul > li > a{ color:#fff; padding:14px 16px; border-radius:0; font-size:.92rem; letter-spacing:.01em; }
  .primary-nav > ul > li > a:hover, .primary-nav > ul > li:focus-within > a, .primary-nav > ul > li:hover > a{ background:var(--navy-mid); color:#fff; }
  .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a, .primary-nav .current_page_item > a{ background:var(--saffron); color:var(--navy-dk); }
  .primary-nav .sub-menu{ border-radius:0 0 6px 6px; border-top:3px solid var(--saffron); padding:6px 0; }
  .primary-nav .sub-menu a{ color:var(--ink); border-radius:0; padding:10px 18px; }
  .primary-nav .sub-menu a:hover{ background:var(--blue-tint); color:var(--navy); }
  .primary-nav li:last-child > .sub-menu, .primary-nav li:nth-last-child(2) > .sub-menu{ left:auto; right:0; }
}
@media (max-width:960px){
  .brandbar{ position:sticky; top:0; z-index:999; }
  .brandbar__badge, .brandbar__cta{ display:none; }
  .brandbar .container{ padding:10px 16px; gap:10px; }
  .brandbar .brand__name{ font-size:1.15rem; }
  .site-header{ position:static; background:transparent; border:0; }
  .site-header .container{ padding:0; display:block; }
  .menu-toggle{ background:var(--navy); border-color:var(--navy); }
  .menu-toggle span{ background:#fff; }
  .primary-nav{ background:#fff; }
  .primary-nav a{ color:var(--ink); }
  .primary-nav .current-menu-item > a{ background:var(--navy); color:#fff; }
}
@media (min-width:961px){ .header-actions{ display:none; } }

/* Hero: navy banner */
.hero{ background:linear-gradient(120deg,var(--navy-dk) 0%,var(--navy) 55%,var(--navy-mid) 100%); color:#fff; }
.hero::before{ background:radial-gradient(circle,rgba(245,158,11,.22),transparent 70%); }
.hero__inner{ padding:48px 16px 48px; }
.hero__tag{ background:rgba(255,255,255,.1); border-color:rgba(255,255,255,.3); color:#fff; box-shadow:none; }
.hero__tag .dot{ background:var(--saffron); }
.hero__slide h1{ color:#fff; max-width:18ch; font-size:clamp(2rem,1.6rem + 1.8vw,3.2rem); }
.hero__slide h1 em{ color:var(--saffron); }
.hero__slide p.lede{ color:#D5DEEE; }
.hero__dots button{ background:rgba(255,255,255,.35); }
.hero__dots button.is-active{ background:var(--saffron); }
.hero-slider{ border-radius:10px; border:4px solid rgba(255,255,255,.18); box-shadow:var(--shadow-lg); }

/* Ticker */
.ticker{ background:#fff; border-bottom:1px solid var(--border); }
.ticker__label{ background:var(--saffron); color:var(--navy-dk); }
.ticker__label svg{ fill:var(--navy-dk); }
.ticker__track a{ color:var(--navy); }
.ticker__track a:hover{ color:var(--red-dk); }

/* Stats band */
.impact{ background:var(--navy); }
.impact .section-head{ text-align:center; margin-left:auto; margin-right:auto; }
.impact .section-head .kicker{ background:rgba(255,255,255,.12); color:var(--saffron) !important; }
.impact .section-head h2{ color:#fff; }
.impact__item{ background:transparent; border:0; border-left:3px solid var(--saffron); border-radius:0; box-shadow:none; text-align:left; padding:10px 20px; }
.impact__num{ color:#fff; }
.impact__label{ color:#C8D4EA; }

/* Section headings */
.section-head{ text-align:center; margin-left:auto; margin-right:auto; max-width:70ch; }
.section-head h2{ position:relative; padding-bottom:14px; text-transform:none; color:var(--navy); }
.section-head h2::after{ content:''; position:absolute; left:50%; bottom:0; width:64px; height:3px; background:var(--saffron); transform:translateX(-50%); }
.impact .section-head h2{ color:#fff; }
.section-head .kicker{ background:var(--red-tint); color:var(--red-dk); border-radius:4px; }
.section-head p{ margin-left:auto; margin-right:auto; }

/* Cards */
.feature-card{ border-radius:6px; border:1px solid var(--border); border-top:3px solid var(--navy-mid); box-shadow:var(--shadow-sm); }
.feature-card:hover{ border-top-color:var(--saffron); }
.feature-card__icon{ border-radius:6px; background:var(--blue-tint); }
.feature-card__icon svg{ stroke:var(--navy-mid); }
.quick-links{ background:var(--bg-alt); }
.quick-links__item{ border-radius:6px; border:1px solid var(--border); border-left:4px solid var(--saffron); background:#fff; }
.quick-links__item:hover{ border-color:var(--navy-mid); border-left-color:var(--saffron); }
.quick-links__item svg{ stroke:var(--navy-mid); }
.notice-date{ border-radius:4px; background:var(--navy); }
.notice-date .d, .notice-date .m{ color:#fff; }
.notice-body .cat{ color:var(--red-dk); background:var(--red-tint); padding:1px 8px; border-radius:3px; }
.board__col{ border:1px solid var(--border); border-top:3px solid var(--navy-mid); border-radius:6px; padding:22px; background:#fff; box-shadow:var(--shadow-sm); }
.cta-band__inner{ background:linear-gradient(120deg,var(--navy-dk),var(--navy-mid)); border-radius:10px; border-left:6px solid var(--saffron); }
.cta-band .btn--marigold{ background:var(--gradient-primary); color:#fff; }
.page-hero{ background:linear-gradient(120deg,var(--navy-dk),var(--navy)); border-bottom:3px solid var(--saffron); }
.page-hero h1, .page-hero{ color:#fff; }
.page-hero a{ color:#FFD9A0; }
.widget{ border-radius:6px; border-top:3px solid var(--navy-mid); }
.widget h2, .widget h3{ color:var(--navy); }

/* Footer */
.site-footer{ background:var(--navy-dk); color:#B7C4DB; border-top:4px solid var(--saffron); }
.footer-col h4{ color:#fff; border-bottom:2px solid var(--saffron); display:inline-block; padding-bottom:6px; }
.footer-col a, .footer-contact__item span, .footer-contact__item a{ color:#B7C4DB; }
.footer-col a:hover, .footer-contact__item a:hover, .footer-bottom a:hover{ color:var(--saffron); }
.footer-about p{ color:#9FB0CC; }
.footer-bottom{ background:#04122B; border-top:0; }
.footer-bottom .container, .footer-bottom a{ color:#9FB0CC; }
.footer-social a:hover{ border-color:var(--saffron); background:rgba(245,158,11,.15); }
html.high-contrast .site-header, html.high-contrast .hero, html.high-contrast .impact{ background:#000; }
html.high-contrast .utility-bar{ background:#000; }

/* Homepage: services, quick access, updates (v4.11) */
.service-grid{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.service-card{ display:flex; flex-direction:column; align-items:flex-start; gap:4px; }
.service-card p{ flex:1; margin-bottom:14px; }
.service-card .btn{ margin-top:auto; }
.board--access{ grid-template-columns:1fr 1.3fr; }
.board--access .download-list li a{ display:flex; align-items:center; gap:10px; }
.section-head--row{ display:flex; justify-content:space-between; align-items:baseline; gap:16px; flex-wrap:wrap; }
.empty-note{ padding:28px; text-align:center; background:var(--white); border:1px dashed var(--border); border-radius:var(--radius); color:var(--ink-soft); }
.cta-band__inner p{ margin:6px 0 0; max-width:60ch; opacity:.92; }
@media (max-width: 960px){ .service-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); } .board--access{ grid-template-columns:1fr; } }
@media (max-width: 560px){ .service-grid{ grid-template-columns:1fr; } }
.reg-strip{ background:var(--ink, #0b1220); color:#fff; font-size:.8rem; text-align:center; padding:6px 0; }
.brand__est{ display:block; font-size:.7rem; color:var(--ink-soft); letter-spacing:.04em; }
.cta-band__inner p{ color:#fff; }
.section-head--row{ text-align:left; align-items:center; }
.section-head--row h2::after{ margin-left:0; margin-right:auto; }
.section-head--row a{ font-weight:700; }
