/*
Theme Name: NCAJ
Theme URI: https://ncaj.go.ke
Author: Frank Martha
Description: Premium, ultra-modern theme for the National Council on the Administration of Justice – Kenya.
Version: 1.0.9
Requires at least: 6.0
Tested up to: 6.7
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: ncaj-modern
Tags: full-width-template, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* ── Brand Colors (configurable via Appearance → Customize → Color Scheme) ── */
  --color-purple:       #422e88;
  --color-purple-light: #5a44a6;
  --color-blue:         #422e88;
  --color-blue-mid:     #5a44a6;
  --color-blue-light:   #ece8f8;
  --color-gold:         #f9a81a;
  --color-gold-light:   #f9a71ac7;
  --color-gold-mid:     #f9a71ad7;
  --color-navy:         #422e88;
  --color-navy-light:   #414047;

  /* Neutrals */
  --color-white:      #FFFFFF;
  --color-surface:    #f7f7f7;
  --color-bg:         #f7f7f7;
  --color-border:     #E0E5EE;
  --color-text:       #1A1A2E;
  --color-text-mid:   #3D4A5C;
  --color-text-light: #5a6a7e;
  --color-muted:      #6B7A8D;

  /* Shadows */
  --shadow-sm:    0 1px 3px rgba(45,31,94,.08), 0 1px 2px rgba(45,31,94,.06);
  --shadow-md:    0 4px 16px rgba(45,31,94,.12), 0 2px 6px rgba(45,31,94,.07);
  --shadow-lg:    0 10px 40px rgba(45,31,94,.16), 0 4px 12px rgba(45,31,94,.10);
  --shadow-xl:    0 20px 60px rgba(45,31,94,.20);
  --shadow-gold:  0 4px 20px rgba(247,182,40,.35);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;

  /* Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 900px;
  --header-height: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-purple);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 600; }
em { font-style: italic; }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2.5rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}

.section--sm {
  padding-block: clamp(2rem, 5vw, 3.5rem);
}

.grid { display: grid; }
.flex { display: flex; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.top-bar {
  background: var(--color-purple);
  color: rgba(255,255,255,.75);
  font-size: .8rem;
  letter-spacing: .03em;
  padding-block: .5rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-bar__links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.top-bar__links a {
  color: rgba(255,255,255,.7);
  transition: color var(--duration-fast);
  display: flex;
  align-items: center;
  gap: .35rem;
}

.top-bar__links a:hover { color: var(--color-gold); }

.top-bar__social {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.top-bar__social a {
  color: rgba(255,255,255,.6);
  transition: color var(--duration-fast);
}
.top-bar__social a:hover { color: var(--color-gold); }
.top-bar__social svg { width: 15px; height: 15px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-md);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 2rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: .875rem;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.site-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.site-logo__abbr {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-purple);
  letter-spacing: .02em;
}

.site-logo__name {
  font-size: .65rem;
  font-weight: 500;
  color: var(--color-muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  max-width: 180px;
  line-height: 1.3;
}

/* Primary Navigation */
.primary-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: .1rem;
}

.primary-nav__item {
  position: relative;
}

.primary-nav__link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .5rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-mid);
  border-radius: var(--radius-md);
  transition: color var(--duration-fast), background var(--duration-fast);
  white-space: nowrap;
}

.primary-nav__link:hover,
.primary-nav__item.current-menu-item > .primary-nav__link,
.primary-nav__item.current-menu-ancestor > .primary-nav__link,
.primary-nav__item.current_page_item > .primary-nav__link,
.primary-nav__item.current_page_ancestor > .primary-nav__link,
.primary-nav__item.current-page-ancestor > .primary-nav__link {
  color: var(--color-gold);
  background: var(--color-gold-light);
}

.primary-nav__link .nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast);
}

.primary-nav__item:hover .nav-arrow {
  transform: rotate(180deg);
}

/* Dropdown */
.primary-nav__dropdown {
  position: absolute;
  top: 100%;              /* flush – gap is inside as padding */
  left: 0;
  min-width: 220px;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  padding: .5rem .5rem .5rem;
  padding-top: 10px;      /* visual gap created inside, not outside */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--duration-base), visibility var(--duration-base),
              transform var(--duration-base) var(--ease-smooth);
  z-index: 200;
}
/* Invisible bridge covers the gap between the link and dropdown */
.primary-nav__dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.primary-nav__item:hover > .primary-nav__dropdown,
.primary-nav__item:focus-within > .primary-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.primary-nav__dropdown a {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text-mid);
  border-radius: var(--radius-md);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.primary-nav__dropdown a:hover {
  background: var(--color-gold-light);
  color: var(--color-gold);
}

/* Nested (2nd-level) dropdown: fly out to the right */
.primary-nav__dropdown .primary-nav__item {
  position: relative;
}
.primary-nav__dropdown .primary-nav__dropdown {
  top: -0.5rem;
  left: calc(100% + 4px);
  transform: translateX(-8px);
  padding-top: 0.5rem;
  margin-left: 0;
  z-index: 210;
}
.primary-nav__dropdown .primary-nav__dropdown::before {
  top: 0;
  left: -10px;
  right: auto;
  width: 10px;
  height: 100%;
}
/* Correct selector: hover the DEPTH-1 item to show DEPTH-2 dropdown */
.primary-nav__dropdown .primary-nav__item:hover > .primary-nav__dropdown,
.primary-nav__dropdown .primary-nav__item:focus-within > .primary-nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
/* Fly-out chevron for items with children inside dropdown */
.primary-nav__dropdown li.menu-item-has-children > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.primary-nav__dropdown li.menu-item-has-children > a::after {
  content: '›';
  font-size: 1.1rem;
  margin-left: .5rem;
  color: var(--color-muted);
}

/* Header CTA */
.header__cta {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  color: var(--color-purple);
  transition: background var(--duration-fast);
}

.menu-toggle:hover { background: var(--color-surface); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .625rem 1.375rem;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .02em;
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-smooth);
  text-decoration: none;
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-gold);
  color: var(--color-white);
  border-color: var(--color-gold);
}

.btn--primary:hover {
  background: var(--color-purple);
  border-color: var(--color-purple);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.btn--outline {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}

.btn--outline:hover {
  background: var(--color-gold);
  color: var(--color-white);
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--color-gold);
  color: var(--color-purple);
  border-color: var(--color-gold);
  font-weight: 700;
}

.btn--gold:hover {
  background: #d99a10;
  border-color: #d99a10;
  color: var(--color-purple);
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

.btn--white {
  background: var(--color-white);
  color: var(--color-purple);
  border-color: var(--color-white);
}

.btn--white:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-purple);
  transform: translateY(-1px);
}

.btn--ghost-white {
  background: rgba(255,255,255,.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,.4);
  backdrop-filter: blur(8px);
}

.btn--ghost-white:hover {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.7);
  color: var(--color-white);
}

.btn--lg {
  padding: .875rem 2rem;
  font-size: 1rem;
}

.btn--sm {
  padding: .4rem 1rem;
  font-size: .8rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-purple);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(10,6,28,.92) 0%,
    rgba(10,6,28,.78) 45%,
    rgba(66,46,136,.45) 100%
  );
}

/* Decorative geometric accent */
.hero__accent {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(135deg, transparent 0%, rgba(197,160,40,.06) 100%);
  clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: clamp(3rem, 8vw, 6rem);
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(197,160,40,.15);
  border: 1px solid rgba(197,160,40,.4);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.8); }
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.hero__title em {
  font-style: normal;
  color: var(--color-gold);
}

.hero__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 3rem;
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.55);
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color var(--duration-fast);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hero__scroll:hover { color: var(--color-gold); }

.hero__scroll-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.25);
  display: grid;
  place-items: center;
  animation: scroll-bounce 2.2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Hero stats strip */
.hero__stats {
  display: none; /* shown via JS on large screens */
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-header--center {
  text-align: center;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .75rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
}

.section-label--center::before { display: none; }

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--color-purple);
  margin-bottom: .75rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 56ch;
  line-height: 1.7;
}

.section-header--center .section-desc {
  margin-inline: auto;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--color-purple);
  padding-block: 3.5rem;
  position: relative;
  overflow: hidden;
}

.stats-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247,182,40,.10) 0%, transparent 60%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  transition: background var(--duration-base), transform var(--duration-base);
}

.stat-item:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  margin-bottom: .375rem;
}

.stat-label {
  font-size: .8rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ============================================================
   ABOUT STRIP
   ============================================================ */
.about-strip {
  background: var(--color-surface);
}

.about-strip__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.about-strip__image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-xl);
}

.about-strip__image-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-smooth);
}

.about-strip__image-wrap:hover img { transform: scale(1.03); }

.about-strip__badge {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  background: var(--color-gold);
  color: var(--color-purple);
  padding: .875rem 1.25rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: var(--shadow-gold);
}

.about-strip__content { padding-block: 1rem; }

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .875rem;
  margin-top: 1.75rem;
}

.pillar-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}

.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-card__icon {
  width: 40px; height: 40px;
  background: var(--color-gold-light);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  margin-bottom: .75rem;
}

.pillar-card__icon svg {
  width: 20px; height: 20px;
  color: var(--color-gold);
}

.pillar-card__title {
  font-size: .875rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: .25rem;
}

.pillar-card__text {
  font-size: .8rem;
  color: var(--color-muted);
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section {
  background: var(--color-white);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.news-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
  display: flex;
  flex-direction: column;
}

.news-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.news-card__image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-surface);
  position: relative;
}

.news-card__image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease-smooth);
}

.news-card:hover .news-card__image img { transform: scale(1.06); }

.news-card__category {
  position: absolute;
  top: .875rem;
  left: .875rem;
  background: var(--color-gold);
  color: var(--color-white);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .25rem .75rem;
  border-radius: var(--radius-full);
}

.news-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: .875rem;
  font-size: .78rem;
  color: var(--color-muted);
  margin-bottom: .75rem;
}

.news-card__meta svg {
  width: 14px; height: 14px;
}

.news-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-purple);
  line-height: 1.35;
  margin-bottom: .75rem;
  transition: color var(--duration-fast);
}

.news-card:hover .news-card__title { color: var(--color-gold); }

.news-card__excerpt {
  font-size: .875rem;
  color: var(--color-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.news-card__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-gold);
  transition: gap var(--duration-fast), color var(--duration-fast);
}

.news-card__link:hover { gap: .7rem; color: var(--color-purple); }
.news-card__link svg { width: 16px; height: 16px; }

.news-placeholder {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-placeholder svg {
  width: 48px; height: 48px;
  color: rgba(255,255,255,.2);
}

/* ============================================================
   FOCUS AREAS
   ============================================================ */
.focus-section {
  background: var(--color-purple);
  position: relative;
  overflow: hidden;
}

.focus-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(90,66,164,.35) 0%, transparent 70%);
  pointer-events: none;
}

.focus-section .section-title,
.focus-section .section-label {
  color: var(--color-white);
}

.focus-section .section-desc {
  color: rgba(255,255,255,.65);
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.focus-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: background var(--duration-base), border-color var(--duration-base), transform var(--duration-base);
  backdrop-filter: blur(8px);
}

.focus-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(197,160,40,.4);
  transform: translateY(-4px);
}

.focus-card__icon {
  width: 52px; height: 52px;
  background: rgba(197,160,40,.15);
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(197,160,40,.25);
}

.focus-card__icon svg {
  width: 26px; height: 26px;
  color: var(--color-gold);
}

.focus-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: .625rem;
}

.focus-card__text {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin: 0;
}

/* ============================================================
   EVENTS SECTION
   ============================================================ */
.events-section {
  background: var(--color-surface);
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.event-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}

.event-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.event-card__date {
  flex-shrink: 0;
  text-align: center;
  background: var(--color-gold);
  color: var(--color-white);
  border-radius: var(--radius-md);
  padding: .625rem .875rem;
  min-width: 56px;
}

.event-card__date-day {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
  display: block;
}

.event-card__date-month {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}

.event-card__content { flex: 1; }

.event-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: .5rem;
  line-height: 1.35;
}

.event-card__location {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--color-muted);
}

.event-card__location svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-gold-mid) 60%, var(--color-gold) 100%);
  padding-block: clamp(3rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,255,255,.05)'/%3E%3C/svg%3E");
  opacity: .5;
}

.cta-banner__content { position: relative; z-index: 1; }

.cta-banner__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-banner__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  max-width: 52ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-purple);
  color: rgba(255,255,255,.75);
  position: relative;
}

/* Decorative wave at the top of the footer */
.footer-wave {
  line-height: 0;
  overflow: hidden;
  background: var(--color-bg, #f7f7f7); /* matches the section above */
}
.footer-wave svg {
  display: block;
  width: 100%;
  height: 80px;
  background: var(--color-bg, #f7f7f7);
}

.footer-top {
  padding-block: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
}

.footer-brand__logo {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
  text-decoration: none;
}

/* Frosted pill container — keeps logo readable on dark footer */
.footer-logo-pill {
  background: rgba(255,255,255,.92);
  border-radius: var(--radius-lg);
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
  transition: opacity .2s;
}
.footer-brand__logo:hover .footer-logo-pill { opacity: .88; }

/* Fallback: no logo set */
.footer-brand__abbr {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-white);
}

.footer-brand__tagline {
  font-size: .875rem;
  line-height: 1.65;
  color: rgba(255,255,255,.6);
  margin-bottom: 1.5rem;
}

.footer-social {
  display: flex;
  gap: .625rem;
}

.footer-social a {
  width: 38px; height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.08);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.65);
  transition: background var(--duration-fast), color var(--duration-fast);
}

.footer-social a:hover {
  background: var(--color-gold);
  color: var(--color-purple);
}

.footer-social svg { width: 17px; height: 17px; }

.footer-col__title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: 1.25rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.footer-links a {
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  transition: color var(--duration-fast), padding-left var(--duration-fast);
}

.footer-links a:hover {
  color: var(--color-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(255,255,255,.6);
  margin-bottom: .875rem;
}

.footer-contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: .15rem;
  color: var(--color-gold);
}

.footer-bottom {
  padding-block: 1.25rem;
  position: relative;
}

/* Decorative images (conference_footer.png, etc.) */
.footer-deco {
  position: relative;
  height: 140px;
  overflow: hidden;
  pointer-events: none;
}
.footer-deco__left,
.footer-deco__right {
  position: absolute;
  bottom: 0;
}
.footer-deco__left  { left: 0; }
.footer-deco__right { right: 0; transform: scaleX(-1); /* mirror for symmetry */ }
.footer-deco__left img,
.footer-deco__right img {
  height: 140px;
  width: auto;
  max-width: 400px;
  display: block;
  object-fit: contain;
  object-position: bottom left;
}

.footer-bottom__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.footer-bottom__copy {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

.footer-bottom__links {
  display: flex;
  gap: 1.5rem;
}

.footer-bottom__links a {
  font-size: .8rem;
  color: rgba(255,255,255,.4);
  transition: color var(--duration-fast);
}

.footer-bottom__links a:hover { color: var(--color-gold); }

/* ============================================================
   NOTIFICATION BELL & PANEL
   ============================================================ */

/* Floating bell button */
.ncaj-notif-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 5.5rem;
  z-index: 9990;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(66,46,136,.45);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.ncaj-notif-btn:hover {
  background: var(--color-purple);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(66,46,136,.55);
}
.ncaj-notif-btn:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

/* Bell shake animation */
@keyframes ncaj-bell-shake {
  0%,100% { transform: rotate(0); }
  15%      { transform: rotate(14deg); }
  30%      { transform: rotate(-12deg); }
  45%      { transform: rotate(10deg); }
  60%      { transform: rotate(-8deg); }
  75%      { transform: rotate(5deg); }
}
.ncaj-notif-btn .ncaj-bell-icon {
  animation: ncaj-bell-shake 3s ease-in-out 1.5s infinite;
  transform-origin: top center;
}

/* Badge count bubble */
.ncaj-notif-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #e53e3e;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  pointer-events: none;
}

/* Slide-in notification panel */
.ncaj-notif-panel {
  position: fixed;
  right: 1rem;
  bottom: 8.5rem;
  z-index: 9991;
  width: min(380px, calc(100vw - 2rem));
  max-height: 70vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* slide-in animation */
  transform: translateY(20px) scale(.96);
  opacity: 0;
  pointer-events: none;
  transition: transform .28s cubic-bezier(.22,.68,0,1.2), opacity .22s ease;
}
/* Hidden attribute must win over display:flex */
.ncaj-notif-panel[hidden] { display: none; }
.ncaj-notif-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* Panel header */
.ncaj-notif-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.125rem .875rem;
  border-bottom: 1px solid #eef0f5;
  background: var(--color-purple);
  color: #fff;
  flex-shrink: 0;
}
.ncaj-notif-panel__title {
  font-size: .9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.ncaj-notif-close {
  background: rgba(255,255,255,.15);
  border: none;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  padding: .25rem .35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s;
}
.ncaj-notif-close:hover { background: rgba(255,255,255,.3); }
.ncaj-notif-close:focus-visible { outline: 2px solid var(--color-gold); }

/* Notification list */
.ncaj-notif-list {
  list-style: none;
  margin: 0;
  padding: .5rem 0;
  overflow-y: auto;
  flex: 1;
  scroll-behavior: smooth;
}
.ncaj-notif-list::-webkit-scrollbar { width: 4px; }
.ncaj-notif-list::-webkit-scrollbar-thumb { background: #dde2ee; border-radius: 2px; }

/* Individual notification item */
.ncaj-notif-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .875rem 1.125rem;
  border-bottom: 1px solid #f4f5f9;
  transition: background .12s;
  position: relative;
}
.ncaj-notif-item:last-child { border-bottom: none; }
.ncaj-notif-item:hover { background: #fafafd; }

/* Left thumbnail (shown instead of icon when notification has a featured image) */
.ncaj-notif-item__img {
  flex-shrink: 0;
  width: 54px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  margin-top: .1rem;
}
.ncaj-notif-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Left icon strip */
.ncaj-notif-item__icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}
.ncaj-notif-item--info    .ncaj-notif-item__icon { background: rgba(66,46,136,.1); color: var(--color-purple); }
.ncaj-notif-item--success .ncaj-notif-item__icon { background: rgba(56,161,105,.12); color: #2f855a; }
.ncaj-notif-item--warning .ncaj-notif-item__icon { background: rgba(237,137,54,.12); color: #c05621; }
.ncaj-notif-item--urgent  .ncaj-notif-item__icon { background: rgba(229,62,62,.1); color: #c53030; }

/* Item body */
.ncaj-notif-item__body { flex: 1; min-width: 0; }
.ncaj-notif-item__badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: var(--color-gold);
  color: var(--color-purple);
  padding: .15rem .5rem;
  border-radius: 4px;
  margin-bottom: .35rem;
}
.ncaj-notif-item__title {
  font-size: .875rem;
  font-weight: 700;
  color: #1e2235;
  margin: 0 0 .25rem;
  line-height: 1.4;
}
.ncaj-notif-item__excerpt {
  font-size: .8rem;
  color: #64748b;
  margin: 0 0 .35rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ncaj-notif-item__link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--color-purple);
  text-decoration: none;
}
.ncaj-notif-item__link:hover { text-decoration: underline; }
.ncaj-notif-item__date {
  display: block;
  font-size: .72rem;
  color: #94a3b8;
  margin-top: .35rem;
}

/* Dismiss button */
.ncaj-notif-item__dismiss {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: .25rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color .12s, background .12s;
}
.ncaj-notif-item__dismiss:hover { color: #e53e3e; background: #fee2e2; }

/* Panel footer */
.ncaj-notif-panel__foot {
  padding: .75rem 1.125rem;
  border-top: 1px solid #eef0f5;
  flex-shrink: 0;
  text-align: right;
}
.ncaj-notif-dismiss-all {
  background: none;
  border: 1px solid #dde2ee;
  color: #64748b;
  font-size: .78rem;
  font-weight: 600;
  padding: .35rem .875rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all .12s;
}
.ncaj-notif-dismiss-all:hover { background: var(--color-purple); color: #fff; border-color: var(--color-purple); }

@media (max-width: 480px) {
  .ncaj-notif-btn { right: 1rem; bottom: 5rem; width: 46px; height: 46px; }
  .ncaj-notif-panel { right: .5rem; bottom: 7.5rem; width: calc(100vw - 1rem); }
}

/* ============================================================
   PAGE HERO (INTERIOR PAGES)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-gold) 100%);
  padding-block: clamp(2.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='20' cy='20' r='.8' fill='rgba(255,255,255,.06)'/%3E%3C/svg%3E");
}

.page-hero__content { position: relative; z-index: 1; }

.page-hero__title {
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--color-white);
  margin-bottom: .75rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  font-size: .825rem;
  color: rgba(255,255,255,.6);
}

.breadcrumb a {
  color: rgba(255,255,255,.7);
  transition: color var(--duration-fast);
}

.breadcrumb a:hover { color: var(--color-gold); }

.breadcrumb__sep { color: rgba(255,255,255,.3); }

/* ============================================================
   CONTENT AREA
   ============================================================ */
.content-wrap {
  padding-block: clamp(2rem, 5vw, 4rem);
}

.entry-content {
  max-width: 72ch;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 2em; margin-bottom: .75em; }

.entry-content p { margin-bottom: 1.25em; }

.entry-content a {
  color: var(--color-gold);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
}

.entry-content a:hover { color: var(--color-purple); }

.entry-content ul,
.entry-content ol {
  list-style: initial;
  padding-left: 1.5em;
  margin-bottom: 1.25em;
}

.entry-content li { margin-bottom: .35em; }

.entry-content blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 1rem 1.5rem;
  background: var(--color-gold-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-block: 1.5em;
  font-style: italic;
  color: var(--color-text-mid);
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar-widget {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.25rem 1rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 12px rgba(66,46,136,.06);
}

.sidebar-widget__title {
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-purple);
  padding-bottom: .65rem;
  border-bottom: 2px solid var(--color-gold);
  margin-bottom: .9rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

/* ============================================================
   SEARCH FORM
   ============================================================ */
.search-form {
  position: relative;
}

.search-form input[type="search"] {
  width: 100%;
  padding: .75rem 3rem .75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: .875rem;
  background: var(--color-white);
  color: var(--color-text);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  outline: none;
}

.search-form input[type="search"]:focus {
  border-color: var(--color-purple);
  box-shadow: 0 0 0 3px rgba(66,46,136,.15);
}

.search-form button[type="submit"] {
  position: absolute;
  right: .5rem;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--duration-fast);
}

.search-form button[type="submit"]:hover { background: var(--color-purple); }
.search-form button svg { width: 15px; height: 15px; }

/* ============================================================
   ANNOUNCEMENTS TICKER
   ============================================================ */
.announcements-bar {
  background: var(--color-gold-light);
  border-bottom: 1px solid rgba(197,160,40,.25);
  padding: .5rem 0;
  overflow: hidden;
}

.announcements-bar__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.announcements-bar__label {
  flex-shrink: 0;
  background: var(--color-gold);
  color: var(--color-purple);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .875rem;
  border-radius: var(--radius-full);
}

.announcements-bar__track {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}

.announcements-bar__items {
  display: inline-flex;
  animation: marquee 30s linear infinite;
  gap: 3rem;
}

.announcements-bar__items:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.announcements-bar__item {
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-mid);
}

.announcements-bar__item a {
  color: var(--color-gold);
  font-weight: 600;
  margin-left: .25rem;
}

.announcements-bar__item a:hover { color: var(--color-purple); }

/* ============================================================
   404 PAGE
   ============================================================ */
.error-404 {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 5rem;
}

.error-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  color: var(--color-gold-light);
  line-height: 1;
  margin-bottom: .5rem;
}

/* ============================================================
   SKIP LINK (ACCESSIBILITY)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-purple);
  color: var(--color-white);
  padding: .75rem 1.5rem;
  font-weight: 600;
  z-index: 9999;
  border-radius: 0 0 var(--radius-md) 0;
}

.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE – TABLET (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .about-strip__inner {
    grid-template-columns: 1fr;
  }

  .about-strip__image-wrap {
    max-height: 380px;
  }
}

/* ============================================================
   RESPONSIVE – MOBILE (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-height: 64px; }

  .top-bar { display: none; }

  .primary-nav {
    display: none;
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    overflow-y: auto;
    gap: 0;
    box-shadow: var(--shadow-xl);
    z-index: 999;
  }

  .primary-nav.is-open { display: flex; }

  .primary-nav__list {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: .25rem;
  }

  .primary-nav__link {
    padding: .875rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-md);
  }

  .primary-nav__dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    margin-top: .25rem;
    padding: .25rem;
    display: none;
  }

  .primary-nav__item.is-open .primary-nav__dropdown { display: block; }

  .menu-toggle { display: flex; }

  .header__cta { display: none; }

  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn { width: 100%; justify-content: center; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .pillars { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .footer-bottom__inner { flex-direction: column; text-align: center; }

  .news-grid { grid-template-columns: 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-banner__actions { flex-direction: column; }
  .cta-banner__actions .btn { width: 100%; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .top-bar, .site-header, .site-footer,
  .hero__scroll, .btn, .cta-banner { display: none; }

  body { font-size: 12pt; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: .75em; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
  position: relative;
  min-height: calc(100svh - var(--header-height) - 40px);
  overflow: hidden;
  background: var(--color-purple);
}

.hero-slider__track {
  display: flex;
  height: 100%;
  transition: transform .7s cubic-bezier(.77,0,.18,1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  min-width: 100%;
  min-height: calc(100svh - var(--header-height) - 40px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-slide__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(45,31,94,.93) 0%,
    rgba(45,31,94,.78) 45%,
    rgba(69,48,141,.35) 100%
  );
}

.hero-slide__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding-block: clamp(3rem, 8vw, 6rem);
}

.hero-slide__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem 1rem;
  background: rgba(247,182,40,.15);
  border: 1px solid rgba(247,182,40,.4);
  border-radius: var(--radius-full);
  color: var(--color-gold);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}

.hero-slide__title {
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
}

.hero-slide__title em { font-style: normal; color: var(--color-gold); }

.hero-slide__subtitle {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin-bottom: 2.25rem;
  max-width: 560px;
}

.hero-slide__actions { display: flex; flex-wrap: wrap; gap: .875rem; }

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--duration-base), border-color var(--duration-base), transform var(--duration-base);
}

.slider-arrow:hover {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-purple);
}

.slider-arrow--prev { left: 1.5rem; }
.slider-arrow--next { right: 1.5rem; }
.slider-arrow svg { width: 22px; height: 22px; }

.slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: .5rem;
}

.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none;
  cursor: pointer;
  transition: all var(--duration-base);
}

.slider-dot.is-active {
  background: var(--color-gold);
  transform: scale(1.4);
}

.slider-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--color-gold);
  z-index: 10;
  transform-origin: left;
  animation: slider-progress-bar 5s linear infinite;
}

@keyframes slider-progress-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (max-width: 768px) {
  .slider-arrow { display: none; }
}

/* ============================================================
   ANNOUNCEMENT MODAL
   ============================================================ */
.ncaj-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(45,31,94,.7);
  backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}

.ncaj-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.ncaj-modal {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 580px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
  position: relative;
}

.ncaj-modal-backdrop.is-open .ncaj-modal {
  transform: translateY(0) scale(1);
}

.ncaj-modal__header {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-gold) 100%);
  padding: 1.75rem 2rem 1.5rem;
  position: relative;
}

.ncaj-modal__eyebrow {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.ncaj-modal__eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: pulse-dot 2s infinite;
}

.ncaj-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.25;
  margin: 0;
}

.ncaj-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: rgba(255,255,255,.8);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: none;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.ncaj-modal__close:hover { background: rgba(255,255,255,.25); color: #fff; }
.ncaj-modal__close svg { width: 18px; height: 18px; }

.ncaj-modal__body {
  padding: 1.75rem 2rem;
  font-size: .9375rem;
  color: var(--color-text-mid);
  line-height: 1.7;
}

.ncaj-modal__body img {
  width: 100%;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
}

.ncaj-modal__footer {
  padding: 0 2rem 1.75rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.ncaj-modal__dismiss {
  font-size: .8rem;
  color: var(--color-muted);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-top: .5rem;
  display: block;
  width: 100%;
  text-align: center;
}

.ncaj-modal__dismiss:hover { color: var(--color-gold); }

/* ============================================================
   ACCESSIBILITY TOOLBAR
   ============================================================ */
.a11y-trigger {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 8000;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-base), transform var(--duration-base);
}

.a11y-trigger:hover {
  background: var(--color-gold);
  transform: scale(1.08);
}

.a11y-trigger svg { width: 24px; height: 24px; }

.a11y-panel {
  position: fixed;
  bottom: 5.5rem;
  left: 2rem;
  z-index: 8000;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  width: 280px;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.97);
  transform-origin: bottom left;
  transition: opacity .25s, visibility .25s, transform .25s var(--ease-smooth);
}

.a11y-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.a11y-panel__title {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--color-border);
}

.a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .875rem;
}

.a11y-row:last-child { margin-bottom: 0; }

.a11y-label {
  font-size: .8rem;
  font-weight: 500;
  color: var(--color-text-mid);
  flex: 1;
}

.a11y-btn {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  cursor: pointer;
  padding: .35rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  transition: background var(--duration-fast), color var(--duration-fast), border-color var(--duration-fast);
  min-width: 34px;
  text-align: center;
}

.a11y-btn:hover,
.a11y-btn.is-active {
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-white);
}

.a11y-toggle {
  position: relative;
  width: 42px; height: 24px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--duration-base);
}

.a11y-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--color-white);
  transition: transform var(--duration-base);
  box-shadow: var(--shadow-sm);
}

.a11y-toggle.is-on {
  background: var(--color-gold);
}

.a11y-toggle.is-on::after {
  transform: translateX(18px);
}

.a11y-reset {
  width: 100%;
  margin-top: 1rem;
  padding: .5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: .78rem;
  color: var(--color-muted);
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}

.a11y-reset:hover { background: var(--color-border); color: var(--color-text); }

/* A11y active states on <html> */
html.a11y-font-lg  { font-size: 18px; }
html.a11y-font-xl  { font-size: 21px; }

html.a11y-contrast { filter: contrast(160%); }

html.a11y-greyscale { filter: grayscale(100%); }

html.a11y-dyslexia body {
  font-family: 'Arial', 'Comic Sans MS', 'Trebuchet MS', sans-serif;
  letter-spacing: .05em;
  word-spacing: .15em;
  line-height: 1.9;
}

html.a11y-links a {
  text-decoration: underline !important;
  text-underline-offset: .2em;
  text-decoration-thickness: 2px !important;
  text-decoration-color: var(--color-gold) !important;
}

.a11y-reading-guide {
  position: fixed;
  left: 0;
  width: 100%;
  height: 36px;
  background: rgba(247,182,40,.18);
  border-top: 2px solid rgba(247,182,40,.5);
  border-bottom: 2px solid rgba(247,182,40,.5);
  pointer-events: none;
  z-index: 7999;
  display: none;
}

html.a11y-reading .a11y-reading-guide { display: block; }

/* ============================================================
   DOWNLOAD CARDS  (WPDM compatibility)
   ============================================================ */
.download-tabs {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.dtab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 1.75rem;
  padding-bottom: 0;
}

.dtab-btn {
  padding: .5rem 1.1rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  transition: color var(--duration-fast), border-color var(--duration-fast), background var(--duration-fast);
}

.dtab-btn:hover {
  color: var(--color-purple);
  background: var(--color-blue-light);
}

.dtab-btn.is-active {
  color: var(--color-purple);
  border-bottom-color: var(--color-purple);
  background: var(--color-blue-light);
}

.dtab-panel { display: none; }
.dtab-panel.is-active { display: block; }

.dtab-section-title {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin: 1.25rem 0 .75rem;
}

.download-list {
  display: grid;
  gap: .75rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: box-shadow var(--duration-base), transform var(--duration-base), border-color var(--duration-base);
  text-decoration: none;
}

.download-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
  border-color: var(--color-gold);
}

.download-item__icon {
  width: 40px; height: 40px;
  background: var(--color-gold-light);
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.download-item__icon svg {
  width: 20px; height: 20px;
  color: var(--color-gold);
}

.download-item__name {
  flex: 1;
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-purple);
  line-height: 1.4;
}

.download-item__arrow {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-gold);
  display: grid;
  place-items: center;
  color: #fff;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--duration-fast), transform var(--duration-fast);
}

.download-item:hover .download-item__arrow {
  opacity: 1;
  transform: none;
}

.download-item__arrow svg { width: 14px; height: 14px; }

/* ============================================================
   LIVE STREAM WIDGET
   ============================================================ */
.live-stream-card {
  background: var(--color-purple);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  background: #e53935;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .75rem;
  border-radius: var(--radius-full);
}

.live-badge__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.7); }
}

.live-stream-embed {
  position: relative;
  padding-top: 56.25%;
  background: #000;
}

.live-stream-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.live-countdown {
  background: var(--color-purple);
  color: var(--color-white);
  padding: 2.5rem;
  text-align: center;
  border-radius: var(--radius-xl);
}

.live-countdown__grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.countdown-unit {
  text-align: center;
}

.countdown-unit__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1;
  display: block;
}

.countdown-unit__label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.55);
  margin-top: .25rem;
}

/* ============================================================
   SIDEBAR QUICK LINKS FIX
   ============================================================ */
.sidebar-widget .footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-widget .footer-links a {
  color: var(--color-text);
  font-size: .8125rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--color-border);
  transition: color .2s, padding-left .2s;
  line-height: 1.35;
}
.sidebar-widget .footer-links li:last-child a { border-bottom: none; }
.sidebar-widget .footer-links a::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  transition: transform .2s, background .2s;
}
.sidebar-widget .footer-links a:hover {
  color: var(--color-purple);
  padding-left: 4px;
}
.sidebar-widget .footer-links a:hover::before {
  background: var(--color-purple);
  transform: scale(1.5);
}
.sidebar-widget .footer-links [aria-current='page'] {
  color: var(--color-purple);
  font-weight: 700;
}
.sidebar-widget .footer-links [aria-current='page']::before {
  background: var(--color-purple);
  transform: scale(1.4);
}

/* Sidebar search */
.sidebar-widget .search-form input[type='search'] {
  font-size: .8125rem;
  padding: .6rem 2.6rem .6rem .85rem;
}
.sidebar-widget .search-form button[type='submit'] { right: .4rem; }

/* Sidebar latest news */
.sidebar-news { display: flex; flex-direction: column; gap: .75rem; }
.sidebar-news__item {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  text-decoration: none;
  padding: .6rem .5rem;
  border-radius: var(--radius-md);
  transition: background .2s;
}
.sidebar-news__item:hover { background: var(--color-surface); }
.sidebar-news__thumb {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-border);
}
.sidebar-news__thumb img { width:100%;height:100%;object-fit:cover;display:block; }
.sidebar-news__title {
  font-size: .775rem;
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
  margin: 0 0 .2rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sidebar-news__date {
  font-size: .7rem;
  color: var(--color-muted);
}
.sidebar-news__all {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  font-weight: 700;
  color: var(--color-purple);
  text-decoration: none;
  margin-top: .35rem;
  padding: .35rem .65rem;
  border: 1.5px solid var(--color-purple);
  border-radius: var(--radius-full);
  transition: background .2s, color .2s;
}
.sidebar-news__all:hover { background: var(--color-purple); color: #fff; }

/* Also fix sidebar download-list arrow colors */
.sidebar-widget .download-item { color: var(--color-purple); }
.sidebar-widget .download-item__arrow { color: var(--color-purple-light); }

/* ============================================================
   NEWS / POSTS GRID
   ============================================================ */
.ncaj-posts-grid {
  display: grid;
  gap: 2rem;
}
.ncaj-posts-grid--cols-1 { grid-template-columns: 1fr; }
.ncaj-posts-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.ncaj-posts-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.ncaj-posts-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .ncaj-posts-grid--cols-3,
  .ncaj-posts-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .ncaj-posts-grid--cols-2,
  .ncaj-posts-grid--cols-3,
  .ncaj-posts-grid--cols-4 { grid-template-columns: 1fr; }
}

.ncaj-post-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--duration-base), transform var(--duration-base);
}
.ncaj-post-card:hover {
  box-shadow: 0 8px 32px rgba(69,48,141,.14);
  transform: translateY(-3px);
}
.ncaj-post-card__img-wrap {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--color-gold-light);
}
.ncaj-post-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.ncaj-post-card:hover .ncaj-post-card__img-wrap img { transform: scale(1.04); }
.ncaj-post-card__placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--color-gold-light) 0%, #e8e4f5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ncaj-post-card__placeholder::after {
  content: '';
  width: 48px; height: 48px;
  background: var(--color-purple-light);
  opacity: .15;
  border-radius: 50%;
}

.ncaj-post-card__body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.ncaj-post-card__meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .875rem;
}
.ncaj-post-card__cat {
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  background: var(--color-gold-light);
  color: var(--color-purple-light);
  padding: .2rem .6rem;
  border-radius: 999px;
}
.ncaj-post-card__date {
  font-size: .75rem;
  color: var(--color-muted);
}
.ncaj-post-card__title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--color-purple);
  margin-bottom: .75rem;
}
.ncaj-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast);
}
.ncaj-post-card__title a:hover { color: var(--color-purple-light); }
.ncaj-post-card__excerpt {
  font-size: .875rem;
  color: var(--color-text-mid);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1.25rem;
}
.ncaj-post-card__link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-purple-light);
  text-decoration: none;
  margin-top: auto;
  transition: gap var(--duration-fast), color var(--duration-fast);
}
.ncaj-post-card__link:hover { gap: .6rem; color: var(--color-gold); }

/* ============================================================
   CALLOUT BOX
   ============================================================ */
.ncaj-callout {
  background: var(--color-gold-light);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-xl) var(--radius-xl) 0;
  padding: 1.75rem 2rem;
  margin: 2rem 0;
}
.ncaj-callout__title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--color-purple);
  margin-bottom: .5rem;
}
.ncaj-callout__body {
  color: var(--color-text-mid);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: .75rem;
}
.ncaj-callout__actions { margin-top: 1rem; }

/* ============================================================
   ICON CARDS (cubebox / icon_column)
   ============================================================ */

/* ── WPBakery column grid (vc_row / vc_column) ── */
.ncaj-vc-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-block: 2rem;
}
.ncaj-vc-row--inner { margin-block: 1rem; }

/* Fractional width overrides (1/2, 1/3, 1/4 …) */
.ncaj-vc-col--1-1 { grid-column: 1 / -1; }

.ncaj-cubebox-grid,
.ncaj-icon-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

/* ── Premium Committee Cards (mpc_icon_column) ── */
a.ncaj-icon-col,
div.ncaj-icon-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem 1.5rem;
  min-height: 220px;
  background: var(--color-purple); /* Fallback: inline <style> block overrides this per card */
  color: #fff;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
  transition: transform .3s, box-shadow .3s;
}
a.ncaj-icon-col::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.04);
  opacity: 0;
  transition: opacity .35s;
  pointer-events: none;
}
a.ncaj-icon-col:hover::after { opacity: 1; }

/* Icon circle */
.iconcol__icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(239,172,38,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.1rem;
  flex-shrink: 0;
  transition: transform .3s, border-color .3s, background .3s;
  box-shadow: 0 0 0 6px rgba(239,172,38,.07);
}
a.ncaj-icon-col:hover .iconcol__icon-wrap {
  background: rgba(66,46,136,.3);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 6px rgba(255,255,255,.07);
  transform: scale(1.08);
}
/* SVG icon turns purple (visible on gold hover bg) */
a.ncaj-icon-col:hover .ncaj-icon-svg svg,
div.ncaj-icon-col:hover .ncaj-icon-svg svg { stroke: #422e88; }
.iconcol__icon-wrap i {
  font-size: 1.5rem !important;
  color: #efac26 !important;
}
/* SVG icons from helper */
.ncaj-icon-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}
.ncaj-icon-svg svg {
  width: 30px;
  height: 30px;
  display: block;
  stroke: #efac26;
}

.iconcol__title {
  font-family: var(--font-display);
  font-size: .9375rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 .4rem;
  line-height: 1.3;
  flex: 1;
}
.iconcol__desc {
  font-size: .78rem;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
  margin: 0 0 .5rem;
}
.iconcol__arrow {
  font-size: 1rem;
  color: rgba(255,255,255,.9);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .3s, transform .3s;
  margin-top: auto;
}


/* ============================================================
   ICON BOX / INFO BOX
   ============================================================ */
.ncaj-icon-box,
.ncaj-info-box {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
}
.ncaj-icon-box__icon,
.ncaj-info-box__icon {
  font-size: 1.75rem;
  color: var(--color-purple-light);
  flex-shrink: 0;
  margin-top: .15rem;
}
.ncaj-icon-box__title,
.ncaj-info-box__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-purple);
  margin-bottom: .25rem;
}
.ncaj-icon-box__text,
.ncaj-info-box__content { font-size: .875rem; color: var(--color-text-mid); }

/* ============================================================
   FANCY HEADING / CUSTOM HEADING
   ============================================================ */
.ncaj-fancy-heading {
  text-align: center;
  margin: 2.5rem 0 2rem;
}
.ncaj-fancy-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--color-purple);
  position: relative;
  display: inline-block;
  padding-bottom: .75rem;
}
.ncaj-fancy-heading__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 48px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.ncaj-fancy-heading__subtitle {
  color: var(--color-text-mid);
  margin-top: .75rem;
  font-size: 1rem;
}
.ncaj-custom-heading {
  font-family: var(--font-display);
  color: var(--color-purple);
  margin-block: 1.25rem .75rem;
}

/* ============================================================
   CTA BOX
   ============================================================ */
.ncaj-cta-box {
  background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-purple-light) 100%);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  text-align: center;
  margin: 2.5rem 0;
}
.ncaj-cta-box__heading {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: #fff;
  margin-bottom: .75rem;
}
.ncaj-cta-box__sub {
  color: rgba(255,255,255,.75);
  font-size: 1rem;
  margin-bottom: 1.5rem;
}
.ncaj-cta-box__content { color: rgba(255,255,255,.8); }

/* ============================================================
   BLOCKQUOTE
   ============================================================ */
.ncaj-blockquote,
.entry-content blockquote {
  border-left: 4px solid var(--color-gold);
  background: var(--color-gold-light);
  padding: 1.25rem 1.75rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-purple);
  font-size: 1.05rem;
  margin: 1.5rem 0;
}

/* ============================================================
   STYLED LIST
   ============================================================ */
.ncaj-styled-list,
.entry-content ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.ncaj-styled-list li,
.entry-content ul li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .4rem 0;
  color: var(--color-text);
  font-size: .95rem;
  line-height: 1.6;
}
.ncaj-styled-list li::before,
.entry-content ul li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  flex-shrink: 0;
  margin-top: .5rem;
}

/* ============================================================
   ACCORDION
   ============================================================ */
.ncaj-accordion { margin: 1.5rem 0; }
.ncaj-accordion__item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin-bottom: .5rem;
  overflow: hidden;
}
.ncaj-accordion__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: var(--color-surface);
  border: none;
  padding: 1rem 1.25rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--color-purple);
  text-align: left;
  cursor: pointer;
  transition: background var(--duration-fast), color var(--duration-fast);
}
.ncaj-accordion__toggle:hover { background: var(--color-gold-light); color: var(--color-purple-light); }
.ncaj-accordion__toggle[aria-expanded="true"] {
  background: var(--color-purple-light);
  color: #fff;
}
.ncaj-accordion__toggle[aria-expanded="true"] .ncaj-accordion__icon { transform: rotate(180deg); }
.ncaj-accordion__icon { transition: transform var(--duration-base); flex-shrink:0; }
.ncaj-accordion__body {
  padding: 1.25rem;
  background: var(--color-bg);
  font-size: .9rem;
  line-height: 1.7;
  color: var(--color-text);
}

/* ── Premium accordion (vc_tta_accordion) ── */
.ncaj-accordion--premium { margin: 0; counter-reset: acc; }
.ncaj-accordion--premium .ncaj-accordion__item {
  border: none;
  border-bottom: 1px solid var(--color-border);
  border-radius: 0;
  margin-bottom: 0;
  background: #fff;
  transition: background .2s;
}
.ncaj-accordion--premium .ncaj-accordion__item:first-child {
  border-top: 1px solid var(--color-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.ncaj-accordion--premium .ncaj-accordion__item:last-child {
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.ncaj-accordion--premium .ncaj-accordion__toggle {
  background: transparent;
  padding: 1.1rem 1.5rem;
  gap: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
}
.ncaj-accordion--premium .ncaj-accordion__toggle:hover {
  background: var(--color-gold-light);
  color: var(--color-purple);
}
.ncaj-accordion--premium .ncaj-accordion__toggle[aria-expanded="true"] {
  background: var(--color-purple);
  color: #fff;
}
.ncaj-accordion--premium .ncaj-accordion__toggle[aria-expanded="true"] .ncaj-accordion__icon {
  color: var(--color-gold);
  transform: rotate(180deg);
}
.ncaj-accordion--premium .ncaj-accordion__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-gold);
  color: var(--color-purple);
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}
.ncaj-accordion--premium .ncaj-accordion__toggle[aria-expanded="true"] .ncaj-accordion__num {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.ncaj-accordion--premium .ncaj-accordion__label { flex: 1; }
.ncaj-accordion--premium .ncaj-accordion__body {
  background: #fff;
  padding: 1.25rem 1.5rem 1.5rem 5rem; /* indent under the number */
  border-top: 1px solid var(--color-border);
}
.ncaj-accordion--premium .ncaj-accordion__body-inner {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--color-text-mid);
}
}

/* ============================================================
   ENTRY CONTENT PROSE ENHANCEMENTS
   ============================================================ */
.entry-content {
  color: var(--color-text);
  line-height: 1.8;
  font-size: .975rem;
}
.entry-content p  { margin-bottom: 1.25em; }
.entry-content h1,.entry-content h2,.entry-content h3,
.entry-content h4,.entry-content h5,.entry-content h6 {
  font-family: var(--font-display);
  color: var(--color-gold);
  margin-top: 2em;
  margin-bottom: .6em;
  line-height: 1.3;
}
.entry-content h2 { font-size: 1.65rem; }
.entry-content h3 { font-size: 1.3rem; }
.entry-content h4 { font-size: 1.1rem; }
.entry-content a  { color: var(--color-purple-light); font-weight: 500; }
.entry-content a:hover { color: var(--color-gold); }
.entry-content img { max-width: 100%; height: auto; border-radius: var(--radius-md); }
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .875rem;
}
.entry-content th {
  background: var(--color-purple);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-weight: 600;
}
.entry-content td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
.entry-content tr:nth-child(even) td { background: var(--color-bg); }

/* ============================================================
   PAGE LAYOUT RESPONSIVE
   ============================================================ */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  align-items: start;
}
/* Prevent grid blowout – children must not exceed their column track */
.page-layout > article,
.page-layout > aside {
  min-width: 0;
}
/* Override the default entry-content max-width inside the grid article */
.page-layout > article .entry-content,
.page-layout > article .vc-text-wrap {
  max-width: 100%;
}
@media (max-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr;
  }
  .page-layout aside { order: -1; }
}

/* Content wrap spacing */
.content-wrap {
  padding: 3.5rem 0 4rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  padding: 3rem 0 4rem;
}
.contact-grid > * { min-width: 0; }
@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem;
  }
}

.contact-info-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-info-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-purple);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: .875rem;
}
.contact-info-card__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}
.contact-detail:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.contact-detail__icon {
  width: 44px; height: 44px;
  background: var(--color-gold-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-purple-light);
}
.contact-detail__icon svg { width: 20px; height: 20px; }
.contact-detail__label {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-muted);
  margin-bottom: .2rem;
}
.contact-detail__value {
  font-size: .95rem;
  color: var(--color-purple);
  font-weight: 500;
}
.contact-detail__value a {
  color: var(--color-purple-light);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.contact-detail__value a:hover { color: var(--color-gold); }

/* Contact Form */
.contact-form-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-form-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--color-purple);
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: .875rem;
}
.contact-form-card__title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 40px; height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}
.contact-form .form-row.full { grid-template-columns: 1fr; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--color-purple);
  margin-bottom: .4rem;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: .875rem 1rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--duration-fast), box-shadow var(--duration-fast);
  appearance: none;
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-purple-light);
  box-shadow: 0 0 0 3px rgba(69,48,141,.12);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--color-purple-light);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--duration-base), transform var(--duration-fast), box-shadow var(--duration-base);
  margin-top: .5rem;
  width: 100%;
  justify-content: center;
}
.contact-form .btn-submit:hover {
  background: var(--color-purple);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(69,48,141,.25);
}
.contact-form .btn-submit:active { transform: none; }

/* Map embed */
.contact-map-wrap {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  margin-top: 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.contact-map-wrap iframe { display: block; width: 100%; height: 360px; border: none; }

/* Social links */
.contact-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.contact-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-purple-light);
  text-decoration: none;
  transition: background var(--duration-base), color var(--duration-base), transform var(--duration-fast);
  font-size: .875rem;
  font-weight: 700;
}
.contact-social a:hover {
  background: var(--color-purple-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   NCAJ PAGE BUILDER – FRONTEND SECTION STYLES
   ============================================================ */

/* Section wrapper – ensure full-width sections break out of any parent container */
.ncaj-builder-section {
  width: 100%;
  box-sizing: border-box;
}

/* Headings rendered by the builder */
.ncaj-builder-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-purple);
  position: relative;
  padding-bottom: .875rem;
  margin-bottom: 1.5rem;
}
.ncaj-builder-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--color-gold);
  border-radius: 2px;
}
/* Centred variant (when parent has text-align:center) */
.ncaj-builder-section [style*="text-align:center"] .ncaj-builder-heading::after,
.ncaj-builder-section [style*="text-align: center"] .ncaj-builder-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.ncaj-builder-subheading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-purple);
  margin-bottom: .875rem;
}

/* Card hover lift for cards grid and news feed */
.ncaj-builder-card {
  transition: box-shadow var(--duration-base), transform var(--duration-fast);
}
.ncaj-builder-card:hover {
  box-shadow: 0 8px 32px rgba(69, 48, 141, .14);
  transform: translateY(-3px);
}

/* News feed card – inherits text-decoration:none from anchor in PHP */
a.ncaj-news-card {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

/* Responsive grid breakpoints for builder sections */
@media (max-width: 860px) {
  /* two-col collapses to single */
  .ncaj-builder-section [style*="grid-template-columns:1fr 1fr"],
  .ncaj-builder-section [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 640px) {
  /* cards / news collapse to 1 col */
  .ncaj-builder-section [style*="grid-template-columns:repeat(3"],
  .ncaj-builder-section [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 420px) {
  .ncaj-builder-section [style*="grid-template-columns:repeat(2"],
  .ncaj-builder-section [style*="grid-template-columns:repeat(3"],
  .ncaj-builder-section [style*="grid-template-columns:repeat(4"] {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================================
   PAGINATION – News & Media and post grids
   ============================================================ */
.ncaj-pagination {
  margin: 3rem 0 1rem;
  display: flex;
  justify-content: center;
}
.ncaj-pagination__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  align-items: center;
}
.ncaj-pagination__item a,
.ncaj-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 .875rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-navy);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--duration-fast), border-color var(--duration-fast), color var(--duration-fast);
  white-space: nowrap;
}
.ncaj-pagination__item a:hover {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}
.ncaj-pagination__item.is-current span,
.ncaj-pagination__item span.current {
  background: var(--color-navy-light);
  border-color: var(--color-navy-light);
  color: #fff;
  cursor: default;
}
.ncaj-pagination__item .dots {
  background: transparent;
  border-color: transparent;
  cursor: default;
  color: var(--color-muted);
}

/* Custom-logo sizing override so uploaded logos don't overflow the header */
.custom-logo-link img.custom-logo {
  max-height: 60px;
  width: auto;
  display: block;
}
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}
/* top bar hours span */
.top-bar__hours {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  opacity: .85;
  font-size: .8125rem;
}

/* ── Top-bar secondary nav (assigned from Appearance → Menus) ── */
.top-bar__nav { margin-left: auto; }
.top-bar__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.top-bar__nav-list li { margin: 0; }
.top-bar__nav-list a {
  color: rgba(255,255,255,.85);
  font-size: .8rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: .02em;
  transition: color .2s;
}
.top-bar__nav-list a:hover,
.top-bar__nav-list .current-menu-item > a {
  color: var(--color-gold);
}

/* ============================================================
   DOCUMENT CARDS (wpdm_category)
   ============================================================ */
.ncaj-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
a.ncaj-doc-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  text-decoration: none;
  transition: box-shadow .25s, transform .25s, border-color .25s;
  position: relative;
  overflow: hidden;
}
a.ncaj-doc-card:hover {
  box-shadow: 0 8px 28px rgba(66,46,136,.13);
  transform: translateY(-3px);
  border-color: var(--color-purple);
}
.ncaj-doc-card__badge {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 800;
  letter-spacing: .04em;
  color: #fff;
  text-transform: uppercase;
}
.ncaj-doc-card__body { flex: 1; min-width: 0; }
.ncaj-doc-card__title {
  font-size: .875rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 .3rem;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ncaj-doc-card__desc {
  font-size: .775rem;
  color: var(--color-muted);
  margin: 0 0 .3rem;
  line-height: 1.45;
}
.ncaj-doc-card__meta {
  font-size: .7rem;
  color: var(--color-muted);
  font-weight: 500;
}
.ncaj-doc-card__dl {
  flex-shrink: 0;
  color: var(--color-purple);
  opacity: .4;
  transition: opacity .2s, color .2s;
}
a.ncaj-doc-card:hover .ncaj-doc-card__dl {
  opacity: 1;
  color: var(--color-gold);
}

/* Document pagination */
.ncaj-doc-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 1.5rem 0;
  align-items: center;
}
.ncaj-doc-pagination__item { display: inline-block; }
.ncaj-doc-pagination__item a,
.ncaj-doc-pagination__item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 .5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  font-size: .8125rem;
  font-weight: 600;
  color: var(--color-text-mid);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.ncaj-doc-pagination__item a:hover {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
}
.ncaj-doc-pagination__item.is-current span {
  background: var(--color-purple);
  color: #fff;
  border-color: var(--color-purple);
  cursor: default;
}
@media (max-width: 640px) {
  .ncaj-docs-grid { grid-template-columns: 1fr; }
}
