/*
Theme Name: Covenant Care Ministries Master
Theme URI: https://covenantcareministries.org
Author: Covenant Care Ministries
Description: Complete production-certified master layout. Merges Doctorsline functional architecture with the exact visual styles, color profiles, split-hero blocks, education tracks, and custom navigation matrices from your uploaded asset guidelines. Features 100% stable presentation containers with completely safe backend parameters.
Version: 4.5.0
Text Domain: covenant-care-master
*/

:root {
  --navy:       #1a3a5c;
  --navy-dark:  #112540;
  --gold:       #c8a84b;
  --gold-light: #e8d49a;
  --cream:      #faf8f3;
  --warm-gray:  #f0ece3;
  --text:       #2c2c2c;
  --muted:      #6b6b6b;
  --white:      #ffffff;
  --sage:       #7a9e7e;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-weight: 300;
}

/* TOP HEADER & MULTI-LEVEL HOVER NAVIGATION */
nav {
  background: var(--white);
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  height: 80px;
}

.nav-brand-container {
  display: flex;
  flex-direction: column;
}

.logo-main-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.1;
}

.logo-sub-tagline {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav-links li {
  position: relative;
  padding: 28px 0;
}

.nav-links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border-top: 3px solid var(--gold);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  min-width: 250px;
  list-style: none;
  padding: 10px 0;
  z-index: 999;
}

.nav-links .sub-menu li {
  padding: 10px 24px;
}

.nav-links .sub-menu a {
  text-transform: none;
  font-size: 14px;
  font-weight: 400;
  display: block;
  color: var(--text);
}

.nav-links .sub-menu a:hover {
  color: var(--gold);
  padding-left: 5px;
}

.nav-links .sub-menu .sub-menu {
  left: 100%;
  top: -13px;
}

.nav-links li:hover > .sub-menu {
  display: block;
}

.nav-cta {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 10px 22px !important;
  font-weight: 700 !important;
  transition: background 0.2s ease;
}

.nav-cta:hover {
  background: var(--gold-light);
}

/* HIGH-FIDELITY SPLIT HERO (Doctorsline Structural Upgrade) */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #1e4a70 100%);
  color: white;
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 0;
  position: relative;
  overflow: hidden;
}

.hero-text { 
  padding: 80px 60px 80px 80px; 
  position: relative; 
  z-index: 2; 
}

.hero-eyebrow {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 24px; font-weight: 600;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px; font-weight: 400; line-height: 1.15;
  margin-bottom: 24px;
  color: var(--white);
}

.hero h1 em { font-style: italic; color: var(--gold-light); }

/* Exact 16pt (21px) Font Sizing Rule for the Hero Mission Text */
.hero-sub-mission {
  font-size: 21px !important; 
  color: rgba(255,255,255,0.9) !important;
  margin-bottom: 40px; 
  line-height: 1.65 !important;
  font-weight: 300;
}

.hero-divider { width: 60px; height: 2px; background: var(--gold); margin-bottom: 36px; }

.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 16px 36px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: background 0.2s;
}

.hero-btn:hover { background: var(--gold-light); }

/* HARDCODED DYNAMIC IMAGE CONTAINER MAPPED FROM YOUR CODE ARCHITECTURE */
.hero-image-frame {
  height: 100%;
  min-height: 80vh;
  position: relative;
  overflow: hidden;
  background-image: url('images/header-bg.jpg') !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--navy-dark);
}

.hero-image-frame::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, var(--navy-dark) 0%, transparent 40%);
}

/* PANELS, GRIDS & COMPONENT LAYOUTS */
section { padding: 90px 80px; }

.section-label {
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px; font-weight: 600;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 36px; font-weight: 400; color: var(--navy);
  margin-bottom: 16px; line-height: 1.25;
}

.services-intro-text {
  max-width: 700px; 
  color: var(--muted); 
  margin-bottom: 48px;
  font-size: 15px;
}

.services-grid {
  display: grid; 
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 40px 32px;
  border-top: 3px solid transparent;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.service-card:hover { 
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.06);
}

.service-num {
  font-family: 'Playfair Display', serif;
  font-size: 36px; color: var(--gold-light);
  font-style: italic; line-height: 1;
  margin-bottom: 20px; display: block;
}

.service-card h3 { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--navy); margin-bottom: 12px; font-weight: 600; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 0; }

/* THREE INITIATIVES SEGMENT LAYER */
.future-section { background: var(--warm-gray); }

.future-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 24px; 
  margin-top: 48px; 
}

.future-card {
  background: var(--white);
  padding: 36px;
  position: relative; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  border-radius: 4px;
}

.future-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px; background: var(--gold);
}

.future-card.chronic-care-card::before {
  background: var(--sage);
}

.future-tag {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 16px; display: block;
}

.future-card.chronic-care-card .future-tag {
  color: var(--sage);
}

/* COURSE ARCHITECTURE BLOCK MATRIX */
.courses-section { background: var(--white); }

.courses-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.course-card {
  background: var(--cream);
  padding: 30px;
  border-left: 4px solid var(--gold);
  border-radius: 0 4px 4px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.01);
}

.course-card.upcoming-course {
  border-left-color: var(--muted);
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.05);
  border-left: 4px solid var(--muted);
}

.course-status-badge {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  margin-bottom: 12px;
}

.course-card.upcoming-course .course-status-badge {
  color: var(--muted);
}

.course-card h3 { font-family: 'Playfair Display', serif; font-size: 16px; color: var(--navy); margin-bottom: 8px; }
.course-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 0; }

/* BUTTONS & FOOTER LAYOUTS */
.contact-row { background: var(--navy-dark); color: white; text-align: center; padding: 80px; }
.contact-row h2 { color: white; margin-bottom: 16px; }
.contact-row p { color: rgba(255,255,255,0.7); max-width: 500px; margin: 0 auto 36px; font-size: 15px; }
.contact-btn {
  display: inline-block;
  border: 2px solid var(--gold);
  color: var(--gold);
  padding: 16px 40px;
  font-weight: 700; font-size: 14px;
  text-decoration: none; letter-spacing: 1px; text-transform: uppercase;
  transition: all 0.2s;
}
.contact-btn:hover { background: var(--gold); color: var(--navy); }

footer {
  background: #0d1f30;
  color: rgba(255,255,255,0.5);
  padding: 32px 80px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px;
}
footer .footer-logo { font-family: 'Playfair Display', serif; color: var(--gold-light); font-weight: bold; font-size: 16px; }

/* GRACEFUL RESPONSIVENESS BREAKPOINTS */
@media (max-width: 1024px) {
  .services-grid, .future-grid, .courses-grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 60px 40px; }
  nav { padding: 0 24px; }
}

@media (max-width: 768px) {
  .services-grid, .future-grid, .courses-grid { grid-template-columns: 1fr; }
  .hero-text { padding: 40px 20px; }
  footer { flex-direction: column; gap: 15px; text-align: center; }
}
/* ============================================================
   FULL-WIDTH HEADER BANNER  (added v4.1)
   Mirrors the uploaded 1914×709 brand banner image exactly —
   navy gradient background with logo box left, headline right.
   ============================================================ */

.site-banner {
  width: 100%;
  background:
    linear-gradient(135deg, #112540 0%, #1a3a5c 55%, #1e4a70 100%);
  position: relative;
  overflow: hidden;
}

/* Decorative circle overlays matching the original banner art */
.site-banner::before {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  border: 2px solid rgba(200,168,75,0.12);
  pointer-events: none;
}
.site-banner::after {
  content: '';
  position: absolute;
  right: 80px; top: 80px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.08);
  pointer-events: none;
}

.banner-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

/* LEFT SIDE — logo box + tagline quote */
.banner-left {
  flex: 0 0 auto;
  max-width: 380px;
}

.banner-logo-box {
  background: #ffffff;
  border-radius: 6px;
  padding: 14px 20px;
  margin-bottom: 22px;
  box-shadow: 0 6px 28px rgba(0,0,0,0.28);
  width: fit-content;
  display: inline-block;
}

.banner-logo-img {
  display: block;
  height: 60px;
  width: auto;
  max-width: 220px;
}

.banner-quote {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: rgba(255,255,255,0.82);
  font-size: 17px;
  line-height: 1.4;
  letter-spacing: 0.2px;
}

/* RIGHT SIDE — headline + sub */
.banner-right {
  flex: 1;
  text-align: center;
}

.banner-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 46px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.12;
  margin-bottom: 14px;
  /* override any global h2 styles */
  letter-spacing: -0.5px;
}

.banner-headline em {
  font-style: italic;
  color: #c8a84b;
}

.banner-sub {
  color: rgba(255,255,255,0.72);
  font-size: 16px;
  line-height: 1.55;
  max-width: 360px;
  margin: 0 auto;
  font-weight: 300;
}

/* RESPONSIVE — banner collapses gracefully */
@media (max-width: 900px) {
  .banner-inner {
    flex-direction: column;
    padding: 30px 24px;
    gap: 28px;
    text-align: center;
  }
  .banner-left {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .banner-headline { font-size: 32px; }
  .banner-right { text-align: center; }
  .banner-sub { max-width: 100%; }
}

@media (max-width: 480px) {
  .banner-headline { font-size: 26px; }
  .banner-logo-box { padding: 14px 18px; }
  .banner-org-name { font-size: 13px; }
}

/* hero-image-frame removed in v4.3 — replaced by .hero-right-panel */

/* ============================================================
   NAVIGATION — wp_nav_menu() styles  (v4.2)
   Replaces hardcoded nav. Fully responsive with mobile toggle.
============================================================ */

.main-navigation {
  background: #1a2e4a;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 14px rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
}

.nav-brand-container {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 0;
  flex-shrink: 0;
}

.logo-main-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  letter-spacing: 0.3px;
}

.logo-sub-tagline {
  font-size: 10px;
  color: rgba(255,255,255,0.55);
  font-style: italic;
  letter-spacing: 0.2px;
}

/* Primary menu list */
ul.nav-links,
#primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0;
}

ul.nav-links li,
#primary-menu li {
  position: relative;
}

ul.nav-links li a,
#primary-menu li a {
  display: block;
  padding: 16px 16px;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
  white-space: nowrap;
  transition: color 0.18s;
}

ul.nav-links li a:hover,
#primary-menu li a:hover,
ul.nav-links li.current-menu-item > a,
#primary-menu li.current-menu-item > a {
  color: #c9a84c;
}

/* Dropdown arrow */
.nav-arrow {
  font-size: 9px;
  margin-left: 4px;
  opacity: 0.65;
  vertical-align: middle;
}

/* Gold CTA button — add CSS class "nav-cta" in Appearance → Menus */
a.nav-cta,
ul.nav-links li a.nav-cta,
#primary-menu li a.nav-cta {
  background: #c9a84c;
  color: #1a2e4a !important;
  font-weight: 700;
  padding: 9px 22px !important;
  border-radius: 4px;
  margin-left: 10px;
  transition: background 0.18s, transform 0.18s;
}

a.nav-cta:hover,
ul.nav-links li a.nav-cta:hover,
#primary-menu li a.nav-cta:hover {
  background: #e8c96e;
  transform: translateY(-1px);
}

/* Sub-menus / dropdowns */
ul.nav-links .sub-menu,
#primary-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #1e3a5f;
  min-width: 210px;
  border-top: 2px solid #c9a84c;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  z-index: 1000;
  list-style: none;
  padding: 6px 0;
  margin: 0;
}

/* Third-level sub-menus */
ul.nav-links .sub-menu .sub-menu,
#primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  border-top: none;
  border-left: 2px solid #c9a84c;
  border-radius: 0 6px 6px 0;
}

ul.nav-links .sub-menu li a,
#primary-menu .sub-menu li a {
  padding: 10px 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

ul.nav-links .sub-menu li:last-child a,
#primary-menu .sub-menu li:last-child a {
  border-bottom: none;
}

ul.nav-links .sub-menu li a:hover,
#primary-menu .sub-menu li a:hover {
  color: #c9a84c;
  background: rgba(255,255,255,0.05);
}

/* Show dropdowns on hover */
ul.nav-links li:hover > .sub-menu,
#primary-menu li:hover > .sub-menu,
ul.nav-links li:focus-within > .sub-menu,
#primary-menu li:focus-within > .sub-menu {
  display: block;
}

/* Mobile hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  margin-left: auto;
}

.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.2s;
}

/* Mobile styles */
@media (max-width: 900px) {
  .main-navigation {
    flex-wrap: wrap;
    padding: 0 20px;
    position: relative;
  }

  .nav-toggle {
    display: flex;
  }

  ul.nav-links,
  #primary-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    background: #1a2e4a;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 12px;
  }

  ul.nav-links.nav-open,
  #primary-menu.nav-open {
    display: flex;
  }

  ul.nav-links li a,
  #primary-menu li a {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  ul.nav-links .sub-menu,
  #primary-menu .sub-menu {
    display: block;
    position: static;
    border: none;
    border-left: 3px solid #c9a84c;
    border-radius: 0;
    box-shadow: none;
    background: rgba(0,0,0,0.2);
    margin-left: 16px;
  }

  ul.nav-links .sub-menu .sub-menu,
  #primary-menu .sub-menu .sub-menu {
    border-left: 3px solid rgba(201,168,76,0.5);
    margin-left: 16px;
  }

  a.nav-cta,
  ul.nav-links li a.nav-cta,
  #primary-menu li a.nav-cta {
    margin: 10px 16px;
    text-align: center;
    border-radius: 4px;
  }
}


/* ============================================================
   HOMEPAGE TOP BAR WIDGET AREA  (v4.2)
============================================================ */

.homepage-topbar {
  background: #c9a84c;
  width: 100%;
}

.topbar-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: #1a2e4a;
  text-align: center;
  gap: 12px;
}

.topbar-inner a {
  color: #1a2e4a;
  text-decoration: underline;
  font-weight: 700;
}

.topbar-widget-title {
  display: none; /* Hide title in this zone — content only */
}


/* ============================================================
   HOMEPAGE CTA STRIP WIDGET AREA  (v4.2)
============================================================ */

.homepage-cta-strip {
  background: linear-gradient(135deg, #1a2e4a 0%, #1e3a5f 100%);
  width: 100%;
  padding: 40px 0;
}

.cta-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.cta-strip-inner .cta-strip-title {
  font-family: 'Playfair Display', Georgia, serif;
  color: #ffffff;
  font-size: 26px;
  margin-bottom: 10px;
}

.cta-strip-inner p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
}

.cta-strip-inner a {
  color: #c9a84c;
  font-weight: 700;
}


/* ============================================================
   FOOTER WIDGET COLUMNS  (v4.2)
============================================================ */

.site-footer {
  background: #112540;
  color: rgba(255,255,255,0.75);
  font-size: 14px;
}

/* Widget columns grid */
.footer-widgets {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 52px 0 40px;
}

.footer-widgets-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
}

/* Shared widget styles inside footer */
.footer-widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: #c9a84c;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(201,168,76,0.3);
}

/* Footer nav menu lists */
ul.footer-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.footer-menu-list li {
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

ul.footer-menu-list li:last-child {
  border-bottom: none;
}

ul.footer-menu-list li a {
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 13.5px;
  transition: color 0.18s, padding-left 0.18s;
  display: block;
  padding: 3px 0;
}

ul.footer-menu-list li a:hover {
  color: #c9a84c;
  padding-left: 6px;
}

/* CCM Mission Widget */
.ccm-mission-logo {
  max-height: 52px;
  width: auto;
  margin-bottom: 14px;
  /* White background so logo is readable on dark footer */
  background: #ffffff;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
}

.ccm-mission-text {
  font-size: 13px;
  line-height: 1.65;
  color: rgba(255,255,255,0.68);
  margin-bottom: 12px;
}

.ccm-mission-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: #c9a84c;
  font-size: 13px;
}

/* CCM Contact Info Widget */
.ccm-contact-widget {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ccm-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.ccm-contact-icon {
  flex-shrink: 0;
  font-size: 15px;
  margin-top: 1px;
}

.ccm-contact-item a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color 0.18s;
}

.ccm-contact-item a:hover {
  color: #c9a84c;
}

.ccm-contact-cta {
  display: inline-block;
  margin-top: 8px;
  background: #c9a84c;
  color: #1a2e4a !important;
  font-weight: 700;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 4px;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s, transform 0.18s;
  align-self: flex-start;
}

.ccm-contact-cta:hover {
  background: #e8c96e;
  transform: translateY(-1px);
}

/* Footer bottom bar */
.footer-bottom {
  padding: 18px 0;
}

.footer-bottom-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-copyright {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
}

.footer-legal-links {
  font-size: 12.5px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.18s;
}

.footer-legal-links a:hover {
  color: #c9a84c;
}

.footer-sep {
  color: rgba(255,255,255,0.2);
}

/* Footer responsive */
@media (max-width: 960px) {
  .footer-widgets-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 580px) {
  .footer-widgets-inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 20px;
  }
  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
    padding: 0 20px;
  }
  .topbar-inner {
    padding: 10px 20px;
  }
}


/* ============================================================
   SIDEBAR WIDGET AREA  (v4.2)
============================================================ */

.widget-area {
  padding: 0 0 0 32px;
}

.widget {
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid #e4e9f0;
}

.widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-weight: 700;
  color: #1a2e4a;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid #c9a84c;
}

.widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f8;
  font-size: 14px;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: #1a2e4a;
  text-decoration: none;
  transition: color 0.18s;
}

.widget ul li a:hover {
  color: #c9a84c;
}

/* ============================================================
   HERO RIGHT PANEL — Your Voice. Our Mission. His Grace. (v4.3)
============================================================ */

/* Hero is defined in the core block above — 50/50 split */

/* Right panel matches the left navy gradient */
.hero-right-panel {
  background: linear-gradient(160deg, #1e3a5f 0%, #152d4a 60%, #112540 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 52px;
  /* Subtle separator line between the two halves */
  border-left: 1px solid rgba(201,168,76,0.2);
}

/* Decorative circle — matches brand banner art */
.hero-right-panel::before {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  border: 1.5px solid rgba(201,168,76,0.12);
  pointer-events: none;
}

.hero-right-panel::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 1px solid rgba(201,168,76,0.08);
  pointer-events: none;
}

.hero-right-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
}

/* Large 3-line tagline */
.hero-vmg {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: 52px;
  font-weight: 700;
  color: #ffffff !important;
  line-height: 1.1;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
  display: block;
  visibility: visible;
}

.hero-vmg em {
  font-style: italic;
  color: #c9a84c;
}

/* Gold divider line */
.hero-right-divider {
  width: 52px;
  height: 3px;
  background: #c9a84c;
  margin: 0 0 24px 0;
  border-radius: 2px;
}

/* Supporting paragraph */
.hero-right-sub {
  font-size: 16px;
  line-height: 1.65;
  color: rgba(255,255,255,0.75) !important;
  margin: 0 0 32px 0;
  font-weight: 300;
  display: block;
  visibility: visible;
}

/* Learn How We Help button */
.hero-right-btn {
  display: inline-block;
  background: #c9a84c;
  color: #1a2e4a;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 16px 32px;
  border-radius: 2px;
  margin-bottom: 36px;
  transition: background 0.2s, transform 0.2s;
}

.hero-right-btn:hover {
  background: #e8c96e;
  transform: translateY(-2px);
}

/* Founded in Southeast Kansas */
.hero-founded {
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-founded-line {
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.3);
}

.hero-founded-text {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* Responsive — stack on smaller screens */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-right-panel {
    border-left: none;
    border-top: 1px solid rgba(201,168,76,0.2);
    padding: 52px 28px;
  }

  .hero-vmg {
    font-size: 38px;
  }
}

@media (max-width: 480px) {
  .hero-vmg {
    font-size: 30px;
  }

  .hero-right-panel {
    padding: 40px 20px;
  }
}

/* ============================================================
   INNER PAGE LAYOUT — two-column with sidebar  (v4.5)
============================================================ */

.ccm-page-wrap {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  align-items: start;
}

.ccm-main-content {
  min-width: 0; /* prevent grid blowout */
}

/* Page/post title */
.page-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: var(--navy);
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

/* Blog post grid on index.php */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.post-card {
  background: #ffffff;
  padding: 28px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  border-radius: 0 0 6px 6px;
}

.post-card h3 a {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: var(--navy);
  text-decoration: none;
  transition: color 0.18s;
}

.post-card h3 a:hover { color: var(--gold); }

.post-date {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 10px;
  letter-spacing: 0.3px;
}

.post-excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
}

/* Article pages */
.ccm-article {
  background: #ffffff;
  padding: 44px 48px;
  border-top: 4px solid var(--gold);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  border-radius: 0 0 6px 6px;
}

.ccm-article--initiative {
  border-top-color: var(--sage, #5a7a6a);
}

.ccm-article-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  color: var(--navy);
  text-align: center;
  margin-bottom: 8px;
}

.ccm-article-subtitle {
  text-align: center;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 32px;
  font-size: 15px;
}

.ccm-article-body {
  line-height: 1.8;
  font-size: 16px;
  color: var(--text);
}

.ccm-article-body p { margin-bottom: 16px; }
.ccm-article-body h2,
.ccm-article-body h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  margin: 28px 0 12px;
}


/* ============================================================
   SIDEBAR  (v4.5)
============================================================ */

.ccm-sidebar {
  position: sticky;
  top: 80px; /* clears the sticky nav bar */
}

/* Sidebar navigation block */
.sidebar-nav-block {
  background: #ffffff;
  border-radius: 6px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 22px 0 10px;
  margin-bottom: 24px;
}

.sidebar-nav-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0 20px 12px;
  border-bottom: 1px solid #eef0f4;
  margin: 0 0 8px;
}

/* Sidebar menu list */
ul.sidebar-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

ul.sidebar-menu-list li {
  border-bottom: 1px solid #f4f6f9;
}

ul.sidebar-menu-list li:last-child {
  border-bottom: none;
}

ul.sidebar-menu-list li a {
  display: block;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s, color 0.15s, padding-left 0.15s;
}

ul.sidebar-menu-list li a:hover,
ul.sidebar-menu-list li.current-menu-item > a,
ul.sidebar-menu-list li.current_page_item > a {
  background: #f4f7fc;
  color: var(--gold);
  padding-left: 26px;
}

/* Active/current page indicator */
ul.sidebar-menu-list li.current-menu-item > a,
ul.sidebar-menu-list li.current_page_item > a {
  border-left: 3px solid var(--gold);
  padding-left: 17px;
  font-weight: 700;
}

/* Second-level sub-menu in sidebar */
ul.sidebar-menu-list .sub-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #f9fafc;
  border-top: 1px solid #eef0f4;
}

ul.sidebar-menu-list .sub-menu li a {
  padding: 9px 20px 9px 32px;
  font-size: 13px;
  color: var(--text);
}

ul.sidebar-menu-list .sub-menu li a:hover {
  color: var(--gold);
  padding-left: 38px;
}

/* Sidebar extra widgets (below-nav area) */
.sidebar-extra-widget {
  background: #ffffff;
  border-radius: 6px;
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 22px 20px;
  margin-bottom: 24px;
}

.sidebar-extra-widget .widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef0f4;
}

/* General sidebar widget styling */
.ccm-sidebar .widget {
  background: #ffffff;
  border-radius: 6px;
  border-top: 3px solid var(--navy);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 22px 20px;
  margin-bottom: 24px;
}

.ccm-sidebar .widget-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 1.2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
}


/* ============================================================
   RESPONSIVE — sidebar collapses below main content on mobile
============================================================ */

@media (max-width: 900px) {
  .ccm-page-wrap {
    grid-template-columns: 1fr;
    padding: 40px 20px 60px;
    gap: 36px;
  }

  .ccm-sidebar {
    position: static;
  }

  .posts-grid {
    grid-template-columns: 1fr;
  }

  .ccm-article {
    padding: 28px 24px;
  }
}
