/*
Theme Name:  Avenue Child
Template:    avenue
Description: NKI modernized child theme
Version:     1.0
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

/* =============================================
   CSS VARIABLES
   ============================================= */
:root {
  --nki-purple:       #5c2b7c;
  --nki-purple-dark:  #3e1a57;
  --nki-purple-light: #f2edf4;
  --nki-purple-mid:   #7a3fa0;
  --nki-accent:       #9b59b6;
  --text-dark:        #1a1a2e;
  --text-mid:         #444455;
  --text-light:       #6b7280;
  --border:           rgba(0,0,0,0.08);
  --white:            #ffffff;
  --off-white:        #fafafa;
  --radius:           8px;
  --shadow-sm:        0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:        0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:        0 8px 32px rgba(0,0,0,0.13);
  --transition:       0.2s ease;
}

/* =============================================
   BASE TYPOGRAPHY
   ============================================= */
body, .wpem-single-event-body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--white);
}

h1, h2, h3, h4, h5, h6,
div#site-title,
p.has-large-font-size {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.35rem; font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }

p {
  color: var(--text-mid);
  font-size: 1rem;
  line-height: 1.75;
}

a, a:hover, a:active, p a {
  color: var(--nki-purple);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--nki-purple-dark); }

/* =============================================
   HEADER — cleaner, more modern
   ============================================= */
header#header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

#branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  grid-template-columns: unset;
}

div#logo img {
  max-height: 3.5rem;
  width: auto;
}

div#site-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

div#site-title a {
  color: var(--nki-purple);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Nav links */
#header nav#menu {
  margin: 0;
  padding: 0;
}

#header nav#menu li {
  margin: 0 0.25rem;
  padding: 0;
}

#header nav#menu li a {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dark);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
}

#header nav#menu li a:hover {
  background: var(--nki-purple-light);
  color: var(--nki-purple);
  text-decoration: none;
}

#header nav#menu li.current-menu-item > a {
  color: var(--nki-purple);
  background: var(--nki-purple-light);
}

/* Dropdown */
header#header li.menu-item-has-children:hover ul.sub-menu {
  border-radius: 0 0 var(--radius) var(--radius);
  border: 1px solid var(--border);
  border-top: 2px solid var(--nki-purple);
  box-shadow: var(--shadow-md);
  top: 100%;
}

#header nav#menu ul.sub-menu li a {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  padding: 0.5rem 1rem;
  color: var(--text-dark);
}

#header nav#menu ul.sub-menu li a:hover {
  background: var(--nki-purple-light);
  color: var(--nki-purple);
}

/* Search link */
a.header-search {
  color: var(--text-light);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

a.header-search:hover {
  color: var(--nki-purple);
  background: var(--nki-purple-light);
}

/* =============================================
   HERO / COVER BLOCK
   ============================================= */
body.home .wp-block-cover {
  max-height: 640px;
  border-radius: 0;
}

.wp-block-cover .wp-block-cover__inner-container {
  width: 52%;
  padding: 2.5rem 2.5rem 2.5rem 3rem;
  background: linear-gradient(135deg, rgba(92,43,124,0.82) 0%, rgba(62,26,87,0.70) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  backdrop-filter: blur(2px);
  text-shadow: none;
}

.wp-block-cover .wp-block-cover__inner-container p.has-large-font-size {
  font-size: clamp(1.75rem, 3vw, 2.75rem) !important;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--white);
  text-shadow: none;
}

.wp-block-cover .wp-block-cover__inner-container p {
  font-size: 1rem !important;
  color: rgba(255,255,255,0.9);
  text-shadow: none;
  line-height: 1.6;
}

/* Hero CTA button */
a.wp-block-button__link.wp-element-button {
  background: var(--white) !important;
  color: var(--nki-purple) !important;
  border: none !important;
  box-shadow: var(--shadow-md) !important;
  border-radius: 50px !important;
  padding: 0.75rem 2rem !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all var(--transition) !important;
}

a.wp-block-button__link.wp-element-button:hover {
  background: var(--nki-purple) !important;
  color: var(--white) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg) !important;
}

/* =============================================
   SECTION TITLES
   ============================================= */
h2.section-title {
  font-size: 0.75rem !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--nki-purple) !important;
  margin: 3rem 0 2rem !important;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

h2.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* =============================================
   PROGRAMS & CENTERS GRID — cards with hover
   ============================================= */
.block-centers-home .pt-cv-page {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  text-align: left;
}

.block-centers-home .pt-cv-content-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  margin: 0 !important;
}

.block-centers-home .pt-cv-content-item:hover {
  border-color: var(--nki-purple);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.block-centers-home .pt-cv-page img {
  max-width: 2.5rem;
  max-height: 2.5rem;
  margin: 0 0 1rem;
  filter: invert(17%) sepia(57%) saturate(1200%) hue-rotate(265deg) brightness(80%);
}

.block-centers-home h3.pt-cv-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.block-centers-home .pt-cv-page a {
  color: inherit;
}

/* Remove the old vertical divider lines */
.block-centers-home .pt-cv-content-item:before {
  display: none !important;
}

/* =============================================
   NEWS GRID — uniform cards
   ============================================= */
.cv-posts-news .pt-cv-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.cv-posts-news .pt-cv-content-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  margin: 0 !important;
  display: flex;
  flex-direction: column;
}

.cv-posts-news .pt-cv-content-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.cv-posts-news .pt-cv-content-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin: 0;
}

.cv-posts-news .pt-cv-ifield {
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.cv-posts-news h3.pt-cv-title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
  color: var(--text-dark);
}

.cv-posts-news .pt-cv-meta-fields {
  font-size: 0.8125rem;
  color: var(--text-light);
  margin: 0 0 0.5rem;
}

.cv-posts .pt-cv-content-item:after {
  display: none;
}

/* =============================================
   BUTTONS & FORMS
   ============================================= */
input[type="submit"], .btn, button {
  background: var(--nki-purple);
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 2rem;
  transition: all var(--transition);
  border: none;
}

input[type="submit"]:hover, .btn:hover, button:hover {
  background: var(--nki-purple-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* =============================================
   FOOTER
   ============================================= */
footer#footer {
  background: #0f0a14;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
}

.container-footer {
  padding: 4rem 2rem 2rem;
}

footer#footer a,
footer#footer a:hover,
footer#footer a:active,
footer#footer p a {
  color: rgba(255,255,255,0.85);
  transition: color var(--transition);
}

footer#footer a:hover {
  color: var(--white);
}

nav#menu-footer ul.menu li a {
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.8;
}

.footer-disclaimer {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1.5rem;
  margin-top: 2rem;
}

/* =============================================
   GENERAL CONTENT & CARDS
   ============================================= */
.container {
  max-width: 1280px;
}

.cv-centers .pt-cv-content-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  padding: 1.75rem;
}

.cv-centers .pt-cv-content-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.cv-centers .pt-cv-title {
  font-size: 1.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
}

.cv-centers .pt-cv-title a {
  color: var(--nki-purple);
}

/* =============================================
   MOBILE
   ============================================= */
@media only screen and (max-width: 820px) {
  #branding {
    padding: 0.75rem 1.25rem;
  }

  .wp-block-cover .wp-block-cover__inner-container {
    width: 100%;
    background: linear-gradient(180deg, rgba(92,43,124,0.85) 0%, rgba(62,26,87,0.75) 100%);
    border-radius: 0;
    padding: 1.5rem;
  }

  .cv-posts-news .pt-cv-page {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .block-centers-home .pt-cv-page {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .cv-posts-news .pt-cv-content-item img {
    height: 140px;
  }
}

@media only screen and (max-width: 480px) {
  .cv-posts-news .pt-cv-page {
    grid-template-columns: 1fr;
  }
}
/* =========================================================
   NKI HOMEPAGE (page-id-2) — clean rebuild
   Replaces the old "Option 3 / final / final sizing / final
   position / final vertical polish" override pile.
   Delete the previous homepage block in style.css (everything
   from "NKI Homepage Redesign - Option 3" to end of file) and
   paste this in its place.
   Uses the child theme's existing :root vars (--nki-purple etc.).
   ========================================================= */

/* ---- Full-width breakout: escape the narrow theme column ---- */
body.page-id-2 #content,
body.page-id-2 #primary,
body.page-id-2 #main,
body.page-id-2 article,
body.page-id-2 .entry-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
/* Hide the auto page <h1> "Home" title on the homepage only */
body.page-id-2 .entry-content > .header,
body.page-id-2 article > .header { display: none; }

/* Inner content rhythm: most blocks sit in a centered measure */
body.page-id-2 .entry-content > * {
  width: min(1240px, calc(100vw - 64px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
/* ...but these go edge-to-edge */
body.page-id-2 .entry-content > .nki-hero,
body.page-id-2 .entry-content > .nki-stats { width: 100%; }

/* =========================================================
   HERO
   ========================================================= */
body.page-id-2 .nki-hero.wp-block-cover {
  width: 100vw;
  max-width: 100vw;
  min-height: 560px;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}
body.page-id-2 .nki-hero .wp-block-cover__image-background {
  object-fit: cover;
  object-position: center 30%;
  filter: none;
}
/* Left-to-right purple gradient for legible white text */
body.page-id-2 .nki-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(42, 18, 64, 0.92) 0%,
    rgba(62, 26, 87, 0.62) 42%,
    rgba(62, 26, 87, 0.18) 100%);
  z-index: 1;
}
body.page-id-2 .nki-hero .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: min(1240px, calc(100vw - 64px));
  max-width: none;
  margin: 0 auto;
  padding: 72px 0;
}
body.page-id-2 .nki-hero-title {
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin: 0 0 18px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
body.page-id-2 .nki-hero-sub {
  color: rgba(255,255,255,0.92);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  font-weight: 400;
  line-height: 1.5;
  max-width: 44ch;
  margin: 0 0 32px;
  text-shadow: 0 1px 12px rgba(0,0,0,0.3);
}
body.page-id-2 .nki-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
body.page-id-2 .nki-btn {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: var(--radius, 8px);
  border: 2px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
body.page-id-2 .nki-btn:hover { transform: translateY(-2px); }
body.page-id-2 .nki-btn-light {
  background: #fff;
  color: var(--nki-purple, #5c2b7c);
}
body.page-id-2 .nki-btn-light:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.22); }
body.page-id-2 .nki-btn-outline {
  background: var(--nki-purple, #5c2b7c);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
body.page-id-2 .nki-btn-outline:hover { background: var(--nki-purple-dark, #3e1a57); }

/* =========================================================
   STATS BAND
   ========================================================= */
body.page-id-2 .nki-stats {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 0;
  margin-bottom: 64px;
  background: var(--nki-purple, #5c2b7c);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
body.page-id-2 .nki-stat {
  padding: 34px 16px;
  text-align: center;
  color: #fff;
  border-left: 1px solid rgba(255,255,255,0.18);
}
body.page-id-2 .nki-stat:first-child { border-left: 0; }
body.page-id-2 .nki-stat-num {
  display: block;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
body.page-id-2 .nki-stat-lbl {
  display: block;
  margin-top: 8px;
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.85);
}

/* =========================================================
   SECTION TITLES + SEPARATORS
   ========================================================= */
body.page-id-2 .section-title {
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 8px auto 4px;
}
/* The "Developing..." intro heading sits above the cards */
body.page-id-2 .entry-content > .section-title:first-of-type { margin-top: 8px; margin-bottom: 40px; }
/* Replace the doubled hairline separators with a single short purple rule */
body.page-id-2 .wp-block-separator {
  border: 0;
  height: 3px;
  width: 56px;
  background: var(--nki-purple, #5c2b7c);
  opacity: 1;
  margin: 14px auto 28px;
}
/* The separators that bracket section titles: keep only the lower one's spacing tidy */
body.page-id-2 .section-title + .wp-block-separator { margin-top: 14px; }

/* =========================================================
   OUR FOCUS — triptych as image cards
   ========================================================= */
body.page-id-2 .triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 64px;
}
body.page-id-2 .triptych .wp-block-column {
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 14px;
  overflow: hidden;
  margin: 0;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-id-2 .triptych .wp-block-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(92,43,124,0.12);
}
body.page-id-2 .triptych .wp-block-image { margin: 0; }
body.page-id-2 .triptych .wp-block-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
body.page-id-2 .triptych h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 22px 24px 0;
}
body.page-id-2 .triptych h2 a { color: var(--nki-purple, #5c2b7c); text-decoration: none; }
body.page-id-2 .triptych h2 a:hover { text-decoration: underline; }
body.page-id-2 .triptych p {
  font-size: 0.95rem;
  color: var(--text-mid, #444455);
  margin: 10px 24px 26px;
  line-height: 1.6;
}

/* =========================================================
   PROGRAMS & CENTERS grid  (#pt-cv-view-8de15aa9is)
   ========================================================= */
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-content-item {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-ifield {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-content-item:hover .pt-cv-ifield {
  transform: translateY(-3px);
  border-color: var(--nki-purple, #5c2b7c);
  background: var(--nki-purple-light, #f2edf4);
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-ctf-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: var(--nki-purple-light, #f2edf4);
  display: grid;
  place-items: center;
  transition: background .2s ease;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-content-item:hover .pt-cv-ctf-icon { background: #fff; }
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-ctf-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-title { margin: 0; }
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-title a {
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark, #1a1a2e);
  text-decoration: none;
}
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-title a:hover { color: var(--nki-purple, #5c2b7c); }

/* =========================================================
   NEWS grid  (#pt-cv-view-b288866ze8)
   ========================================================= */
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-page {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-content-item {
  width: auto;
  max-width: none;
  float: none;
  padding: 0;
  margin: 0;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-ifield {
  height: 100%;
  background: #fff;
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  border-radius: 14px;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-content-item:hover .pt-cv-ifield {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.10);
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-thumbnail,
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-thumb-wrapper { margin: 0; }
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-thumbnail img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-title {
  margin: 0;
  padding: 18px 20px 0;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-title a {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-dark, #1a1a2e);
  text-decoration: none;
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-title a:hover { color: var(--nki-purple, #5c2b7c); }
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-meta-fields,
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-ctf-Date {
  padding: 6px 20px 0;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--nki-purple, #5c2b7c);
}
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-content {
  padding: 8px 20px 22px;
  font-size: 0.92rem;
  color: var(--text-mid, #444455);
  line-height: 1.6;
}

/* =========================================================
   MORE NEWS button
   ========================================================= */
body.page-id-2 .nki-morenews { margin: 8px auto 64px; }
body.page-id-2 .nki-morenews a {
  display: inline-flex;
  align-items: center;
  background: var(--nki-purple, #5c2b7c);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 30px;
  border-radius: 999px;
  text-decoration: none;
  transition: background .2s ease, transform .15s ease;
}
body.page-id-2 .nki-morenews a:hover {
  background: var(--nki-purple-dark, #3e1a57);
  transform: translateY(-2px);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  body.page-id-2 .triptych,
  body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-page,
  body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-page {
    grid-template-columns: repeat(2, 1fr);
  }
  body.page-id-2 .nki-stats { grid-template-columns: repeat(2, 1fr); }
  body.page-id-2 .nki-stat:nth-child(odd) { border-left: 0; }
  body.page-id-2 .nki-stat:nth-child(3),
  body.page-id-2 .nki-stat:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.18); }
}
@media (max-width: 600px) {
  body.page-id-2 .entry-content > * { width: calc(100vw - 40px); }
  body.page-id-2 .triptych,
  body.page-id-2 .nki-stats,
  body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-page,
  body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-page {
    grid-template-columns: 1fr;
  }
  body.page-id-2 .nki-stat { border-left: 0; border-top: 1px solid rgba(255,255,255,0.18); }
  body.page-id-2 .nki-stat:first-child { border-top: 0; }
  body.page-id-2 .nki-hero .wp-block-cover__inner-container { padding: 56px 0; }
}

/* ---- A11y baseline ---- */
body.page-id-2 a:focus-visible,
body.page-id-2 .nki-btn:focus-visible {
  outline: 3px solid var(--nki-purple, #5c2b7c);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  body.page-id-2 * { transition: none !important; }
}



/* =========================================================
   NKI homepage final compatibility overrides
   Keeps the clean rebuild predictable and avoids stacked fixes
   ========================================================= */

/* Ensure old generic cover styling does not affect homepage hero */
body.page-id-2 .nki-hero .wp-block-cover__inner-container {
  background: transparent !important;
  border-radius: 0 !important;
  backdrop-filter: none !important;
  width: min(1240px, calc(100vw - 64px)) !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding: 72px 0 !important;
}

/* Ensure hero text remains visible above overlay */
body.page-id-2 .nki-hero .wp-block-cover__inner-container,
body.page-id-2 .nki-hero .nki-hero-title,
body.page-id-2 .nki-hero .nki-hero-sub,
body.page-id-2 .nki-hero .nki-hero-actions {
  position: relative !important;
  z-index: 5 !important;
  opacity: 1 !important;
}

body.page-id-2 .nki-hero .nki-hero-title {
  color: #ffffff !important;
  text-shadow: 0 3px 28px rgba(0,0,0,0.45) !important;
}

body.page-id-2 .nki-hero .nki-hero-sub {
  color: rgba(255,255,255,0.96) !important;
  background: transparent !important;
  padding: 0 !important;
  text-shadow: 0 2px 16px rgba(0,0,0,0.45) !important;
}

/* Programs and Centers icons: brand purple only in Programs section */
body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-ctf-icon {
  background: #f2edf4 !important;
  border-radius: 14px !important;
}

body.page-id-2 #pt-cv-view-8de15aa9is svg,
body.page-id-2 #pt-cv-view-8de15aa9is svg * {
  fill: #5c2b7c !important;
  stroke: #5c2b7c !important;
  color: #5c2b7c !important;
  opacity: 1 !important;
}

body.page-id-2 #pt-cv-view-8de15aa9is .pt-cv-ctf-icon img {
  filter: brightness(0) saturate(100%) invert(20%) sepia(39%) saturate(1534%)
          hue-rotate(252deg) brightness(86%) contrast(94%) !important;
  opacity: 1 !important;
}

/* News thumbnails must remain real images */
body.page-id-2 #pt-cv-view-b288866ze8 img,
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-thumbnail img,
body.page-id-2 #pt-cv-view-b288866ze8 .pt-cv-thumb-wrapper img {
  filter: none !important;
  opacity: 1 !important;
  background: transparent !important;
}

/* iPhone/mobile homepage refinement */
@media (max-width: 600px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body.page-id-2 .nki-hero.wp-block-cover {
    min-height: 500px !important;
    align-items: flex-end !important;
  }

  body.page-id-2 .nki-hero::after {
    background: linear-gradient(
      180deg,
      rgba(20, 8, 32, 0.20) 0%,
      rgba(42, 18, 64, 0.62) 42%,
      rgba(42, 18, 64, 0.94) 100%
    ) !important;
  }

  body.page-id-2 .nki-hero .wp-block-cover__inner-container {
    width: calc(100vw - 36px) !important;
    padding: 0 0 42px !important;
  }

  body.page-id-2 .nki-hero .nki-hero-title {
    font-size: clamp(2.15rem, 12vw, 3rem) !important;
    line-height: 1.02 !important;
    max-width: 11ch !important;
  }

  body.page-id-2 .nki-hero .nki-hero-sub {
    font-size: 1rem !important;
    line-height: 1.45 !important;
    max-width: 28ch !important;
  }

  body.page-id-2 .nki-hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 320px !important;
  }

  body.page-id-2 .nki-hero .nki-btn {
    width: 100% !important;
    justify-content: center !important;
    border-radius: 999px !important;
  }

  body.page-id-2 .nki-stats {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* =========================================================
   NKI homepage hero desktop sizing
   Restores larger mockup-style hero copy after CSS cleanup
   ========================================================= */

@media (min-width: 901px) {
  body.page-id-2 .nki-hero .nki-hero-title {
    font-size: clamp(3rem, 5.4vw, 4.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.04em !important;
    max-width: 15ch !important;
    margin: 0 0 18px 0 !important;
  }

  body.page-id-2 .nki-hero .nki-hero-sub {
    font-size: clamp(1.05rem, 1.35vw, 1.3rem) !important;
    line-height: 1.5 !important;
    max-width: 42ch !important;
    margin: 0 0 32px 0 !important;
  }

  body.page-id-2 .nki-hero .nki-btn {
    font-size: 0.95rem !important;
    padding: 15px 30px !important;
  }
}


/* =========================================================
   NKI homepage stats band width fix
   Make purple stats bar span full browser width
   ========================================================= */

body.page-id-2 .entry-content > .nki-stats,
body.page-id-2 .nki-stats {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  background: #5c2b7c !important;
}

body.page-id-2 .nki-stat {
  background: #5c2b7c !important;
  border-right: 1px solid rgba(255,255,255,0.18) !important;
}

body.page-id-2 .nki-stat:last-child {
  border-right: none !important;
}

/* Mobile stats layout */
@media (max-width: 700px) {
  body.page-id-2 .entry-content > .nki-stats,
  body.page-id-2 .nki-stats {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 420px) {
  body.page-id-2 .entry-content > .nki-stats,
  body.page-id-2 .nki-stats {
    grid-template-columns: 1fr !important;
  }
}

