/* ==========================================================================
   MORE THAN JUST A WOMAN FOUNDATION (MTJAW)
   ========================================================================== */

:root {
  --color-cream: #f7f3eb;
  --color-green: #1f4d3a;
  --color-green-dark: #153528;
  --color-gold: #c9a227;
  --color-rose: #d8a7a0;
  --color-rose-soft: rgba(216, 167, 160, 0.18);
  --color-charcoal: #2e2e2e;
  --color-white: #ffffff;

  --font-brand: "Cinzel Decorative", Georgia, serif;
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Lora", Georgia, serif;

  --container-max: 1200px;
  --container-editorial: 860px;
  --transition-smooth: all 0.3s ease-in-out;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
}

body {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.7;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 3px solid var(--color-green);
  outline-offset: 3px;
}
.section-dark :focus-visible,
.site-footer :focus-visible,
.btn-primary:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-green);
  line-height: 1.25;
  margin-bottom: 1.25rem;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}
h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}

/* Ensure gold headings are more prominent */
h2.gold-heading,
h3.gold-heading {
  color: var(--color-green);
  font-size: clamp(2rem, 4vw, 2.75rem);
}

p {
  margin-bottom: 1.25rem;
  max-width: 72ch;
}
p.lead {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
}

a {
  color: var(--color-green);
  text-decoration: none;
  transition: var(--transition-smooth);
}
a:hover {
  color: var(--color-gold);
}
ul,
ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}
li {
  margin-bottom: 0.5rem;
}

/* Eyebrows increased in size per instructions */
.eyebrow {
  display: inline-block;
  font-family: var(--font-brand);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 0.75rem;
}

.scripture-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  font-style: italic;
  background-color: var(--color-rose-soft);
  color: var(--color-green);
  padding: 0.35rem 0.85rem;
  border-radius: 8px;
  border-left: 3px solid var(--color-gold);
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Buttons with rounded corners and gentle hover */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.9rem 1.85rem;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    color 0.3s ease;
  text-transform: uppercase;
}
.btn-primary {
  background-color: var(--color-green);
  color: var(--color-cream);
  border-color: var(--color-green);
}
.btn-primary:hover {
  background-color: var(--color-green-dark);
  color: var(--color-gold);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(31, 77, 58, 0.2);
}
.btn-secondary {
  background-color: transparent;
  color: var(--color-green);
  border-color: var(--color-green);
}
.btn-secondary:hover {
  background-color: var(--color-green);
  color: var(--color-cream);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(31, 77, 58, 0.15);
}
.btn-gold {
  background-color: var(--color-gold);
  color: var(--color-green);
  border-color: var(--color-gold);
}
.btn-gold:hover {
  background-color: #b58f20;
  color: var(--color-cream);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(201, 162, 39, 0.3);
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
}
/* General alignment applied to editorial content */
.container-editorial {
  width: 90%;
  max-width: var(--container-editorial);
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.text-center {
  text-align: center;
}

.site-header {
  background-color: var(--color-cream);
  border-bottom: 1px solid rgba(31, 77, 58, 0.12);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-identity a:hover {
  color: inherit;
}
.brand-logo-img {
  max-height: 90px;
  width: auto;
  object-fit: contain;
}
.brand-name {
  font-family: var(--font-brand);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-green);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-motto {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--color-charcoal);
}

.site-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  align-items: center; /* Centers the whole navigation block relative to the logo */
}

.site-nav ul {
  display: inline-flex;
  align-items: center; /* Vertically centers the list items inside the pill */
  list-style: none;
  gap: 0.15rem;
  margin: 0 auto;
  background-color: rgba(31, 77, 58, 0.06);
  padding: 0.35rem 0.5rem;
  border-radius: 50px;
}

/* This targets the invisible list items to ensure they don't add hidden spacing */
.site-nav li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center; /* Centers the text vertically inside the clickable area */
  justify-content: center; /* Centers the text horizontally */
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-charcoal);
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  transition: var(--transition-smooth);
  white-space: nowrap;
  line-height: 1; /* CRITICAL: Stops the default font height from pushing the text off-center */
}

.site-nav a:hover {
  background-color: var(--color-green);
  color: var(--color-white);
}
.header-cta {
  display: block;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle-icon {
  display: block;
  width: 26px;
  height: 2px;
  background-color: var(--color-green);
  position: relative;
  transition: var(--transition-smooth);
}
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--color-green);
  transition: var(--transition-smooth);
}
.nav-toggle-icon::before {
  top: -8px;
}
.nav-toggle-icon::after {
  bottom: -8px;
}

.section {
  padding: 5rem 0;
}
.section-tint {
  background-color: var(--color-rose-soft);
  border-top: 1px solid rgba(216, 167, 160, 0.4);
  border-bottom: 1px solid rgba(216, 167, 160, 0.4);
}
.section-dark {
  background-color: var(--color-green);
  color: var(--color-cream);
}
.section-dark h1,
.section-dark h2,
.section-dark h3 {
  color: var(--color-cream);
}
.section-dark p {
  color: var(--color-cream);
}
.section-dark .eyebrow {
  color: var(--color-gold);
}
.section-heading-wrapper {
  margin-bottom: 3rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Rounded cards with hover elevation */
.card {
  background-color: var(--color-white);
  border: 1px solid rgba(216, 167, 160, 0.4);
  border-radius: 12px;
  padding: 2rem;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  text-align: left;
}
.card:hover {
  border-color: var(--color-rose);
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(31, 77, 58, 0.08);
}

/* Interactive Impact Stats */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}
.metric-item {
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(216, 167, 160, 0.2);
  border-radius: 12px;
  background-color: rgba(255, 255, 255, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.metric-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}
.stat-circle {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 1.5rem;
}
.stat-circle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.stat-circle circle {
  fill: none;
  stroke-width: 8;
  stroke-linecap: round;
}
.stat-circle .bg {
  stroke: rgba(247, 243, 235, 0.1);
}
.stat-circle .progress {
  stroke: var(--color-gold);
  stroke-dasharray: 409;
  stroke-dashoffset: 409;
  transition: stroke-dashoffset 2.5s ease-out;
}
.metric-item.visible .stat-circle .progress {
  stroke-dashoffset: 0;
}
.stat-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.metric-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  line-height: 1;
  margin: 0;
}
.metric-prefix {
  font-size: 0.9rem;
  color: var(--color-cream);
  margin-bottom: 0.1rem;
}
.metric-desc {
  font-size: 1.0625rem;
  color: var(--color-cream);
  max-width: 25ch;
  margin: 0 auto;
}

/* Forms with rounded inputs */
.form-wrapper {
  background-color: var(--color-white);
  border: 1px solid rgba(31, 77, 58, 0.15);
  border-radius: 12px;
  padding: 3rem;
  margin-top: 2.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: left;
}
.form-group {
  margin-bottom: 1.75rem;
}
.form-group label {
  display: block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}
.form-group label span.req {
  color: var(--color-gold);
  font-weight: 700;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid #c4c4c4;
  border-radius: 8px;
  background-color: var(--color-cream);
  color: var(--color-charcoal);
  transition: var(--transition-smooth);
}
.form-control:focus {
  border-color: var(--color-green);
  background-color: var(--color-white);
}
.choice-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.choice-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 400 !important;
  font-size: 0.9375rem !important;
  color: var(--color-charcoal) !important;
  cursor: pointer;
}
.choice-label input {
  accent-color: var(--color-green);
  width: 18px;
  height: 18px;
}

.privacy-notice {
  font-size: 0.84375rem;
  font-style: italic;
  color: #555555;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background-color: var(--color-cream);
  border-left: 2px solid var(--color-gold);
  border-radius: 8px;
}
.donation-note {
  font-size: 0.9375rem;
  font-style: italic;
  padding: 1.25rem;
  background-color: var(--color-rose-soft);
  border: 1px solid var(--color-rose);
  border-radius: 8px;
  color: var(--color-charcoal);
  margin: 1.5rem 0;
}
.form-status-msg {
  display: none;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.form-status-msg.error {
  display: block;
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.gallery-grid.hidden-gallery {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--color-cream);
}
.gallery-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}
.hero-media-wrapper:empty,
.profile-photo-wrapper:empty,
.gallery-grid:empty {
  display: none !important;
}

.profile-editorial {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: start;
}
.profile-photo-wrapper {
  background-color: var(--color-rose-soft);
  border: 1px solid var(--color-rose);
  border-radius: 12px;
  padding: 0.5rem;
}
.profile-photo-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.partner-strip {
  background-color: var(--color-cream);
  border-top: 1px solid rgba(31, 77, 58, 0.1);
  padding: 3rem 0;
  text-align: center;
}
.partner-logo-img {
  display: inline-block;
  max-height: 70px;
  width: auto;
  font-weight: 600;
  color: var(--color-green);
  font-style: italic;
}

.site-footer {
  background-color: var(--color-green);
  color: var(--color-cream);
  padding: 4rem 0 2rem 0;
  border-top: 3px solid var(--color-gold);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand .brand-name {
  color: var(--color-cream);
}
.footer-brand .brand-motto {
  color: var(--color-cream);
  font-size: 1.1rem;
  font-style: italic;
}
.footer-links ul {
  list-style: none;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.65rem;
}
.footer-links a {
  color: var(--color-cream);
  font-size: 0.9375rem;
}
.footer-links a:hover {
  color: var(--color-gold);
}
.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(247, 243, 235, 0.15);
  font-size: 0.875rem;
  color: var(--color-cream);
}

@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-cream);
    border-bottom: 2px solid var(--color-gold);
    display: none;
    padding: 1.5rem 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  }
  .site-nav.open {
    display: block;
  }
  .site-nav ul {
    background-color: transparent;
    border-radius: 0;
    padding: 1.5rem 0;
    width: 90%;
    margin: 0 auto;
  }
  .site-nav a {
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
  }
  .header-cta {
    display: none;
  }
  .grid-2,
  .grid-3,
  .grid-4,
  .metrics-grid {
    grid-template-columns: 1fr;
  }
  .metric-item {
    margin-bottom: 1rem;
  }
  .profile-editorial {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .form-wrapper {
    padding: 1.75rem 1.25rem;
  }
  .brand-logo-img {
    max-height: 65px;
  }
  .brand-name {
    font-size: 1rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.page-intro-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.page-intro-center h1,
.page-intro-center h2 {
  max-width: 900px; /* Keeps the heading contained and balanced */
  margin-left: auto;
  margin-right: auto;
}

.page-intro-center p {
  max-width: 850px; /* Keeps the paragraphs slightly narrower than the heading for a nice visual hierarchy */
  margin-left: auto;
  margin-right: auto;
}

/* --- RESPONSIVE HEADER & BUTTON FIXES --- */
.nav-and-cta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem; /* Shrinks the gap between nav links and the button */
  justify-content: flex-end;
  flex-grow: 1; /* Pushes the menu away from the logo */
}

.site-nav ul {
  display: flex;
  gap: 1rem; /* Shrinks the space between the page titles */
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Forces the Partner With Us Button to be small and rounded */
.header-cta .btn {
  padding: 10px 24px !important;
  font-size: 14px !important;
  border-radius: 50px !important; /* Creates the very rounded pill edges */
}

/* --- MOBILE MENU OVERRIDES (Removes the pill shape) --- */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  padding: 0;
}

@media (max-width: 900px) {
  .hamburger {
    display: block !important;
  }

  .site-header {
    background-color: #f6f5f0 !important;
    border-radius: 50px !important;
    margin: 15px auto !important;
    width: 95% !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    padding: 0.5rem 1.5rem !important;
    position: sticky !important;
    top: 15px !important;
    z-index: 9999 !important;
    border: none !important;
  }

  .site-header .nav-container {
    padding: 0 !important;
  }

  .nav-and-cta-wrapper {
    display: none;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #f6f5f0 !important;
    border-radius: 25px !important;
    padding: 2rem 0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    z-index: 9999 !important;
    border: none !important;
    outline: none !important;

    /* SCROLLBAR RULES */
    max-height: 65vh !important; /* Ensures the box doesn't hit the bottom of the phone screen */
    overflow-y: auto !important; /* Activates the scrollbar */
  }

  /* THE FIX: 'block' forces the links to start at the top, fixing the missing items */
  .nav-and-cta-wrapper.active {
    display: block !important;
  }

  .site-nav {
    display: block !important;
    position: static !important;
    background: transparent !important;
    width: 100% !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
  }

  .site-nav ul {
    display: flex !important;
    position: static !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1.5rem !important;
    margin: 0 !important;
    padding: 0 0 1rem 2rem !important; /* Left alignment indent */
    border: none !important;
  }

  /* Centers the Partner With Us button */
  .header-cta {
    display: flex !important;
    justify-content: center !important; /* Moves the button perfectly to the middle */
    padding-left: 0 !important; /* Removes the left indent */
    width: 100% !important;
    margin-top: 0.5rem !important;
    border: none !important;
    padding-bottom: 1rem !important;
  }
}

/* --- BRELA-STYLE INFINITE PHOTO SLIDESHOW --- */
.impact-marquee-section {
  width: 100%;
  padding: 2rem 0 3.5rem 0;
  overflow: hidden; /* Prevents sideways page scrolling */
}

.marquee-wrapper {
  width: 100%;
  overflow: hidden;
  /* Creates the soft fade-out effect on the left and right edges */
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    black 8%,
    black 92%,
    transparent 100%
  );
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: mtjawMarquee 30s linear infinite; /* Lower seconds = faster, higher = slower */
}

/* Smoothly pauses when someone hovers over a photo */
.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  gap: 20px;
  padding-right: 20px; /* Matches the gap so the loop seam is invisible */
}

.marquee-card {
  width: 340px;
  flex-shrink: 0;
}

.marquee-img-box {
  width: 100%;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #f6f5f0;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.marquee-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Keeps every photo sharp and uniform without stretching */
  display: block;
}

.marquee-caption {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #666;
  text-align: left;
  padding-left: 4px;
}

.marquee-caption strong {
  color: #1f2933;
  font-weight: 600;
}

@keyframes mtjawMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Keeps cards proportioned on phones so neighboring cards peek in on the sides */
@media (max-width: 768px) {
  .marquee-card {
    width: 260px;
  }

  .marquee-img-box {
    height: 185px;
  }
}

/* --- PHOTO BACKGROUND CARDS --- */
.program-photo-card {
  position: relative !important;
  overflow: hidden !important; /* Clips the image cleanly to the rounded corners */
  border-radius: 20px !important; /* Rounded edges instead of sharp corners */
  background-size: cover !important; /* Fills the box cleanly without stretching */
  background-position: center !important;
  background-repeat: no-repeat !important;
  min-height: 260px; /* Gives the background photo room to show nicely */
  border: none !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Adds a soft dark tint over the photo so the title & Learn More button stay readable */
.program-photo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(16, 42, 42, 0.78),
    rgba(16, 42, 42, 0.45)
  );
  z-index: 1;
}

/* Keeps the title and button sitting on top of the dark tint */
.program-photo-card > * {
  position: relative;
  z-index: 2;
}

/* Makes the heading crisp white over the photo */
.program-photo-card h2,
.program-photo-card h3,
.program-photo-card h4,
.program-photo-card p {
  color: #ffffff !important;
}

/* Styles the Learn More button cleanly on top of the photo */
.program-photo-card .btn,
.program-photo-card a {
  color: #ffffff !important;
  border: 1.5px solid #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15) !important;
  backdrop-filter: blur(4px);
  border-radius: 8px;
  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.program-photo-card .btn:hover,
.program-photo-card a:hover {
  background-color: #ffffff !important;
  color: #163a3a !important;
}

/* Subtle lift when someone hovers over the card */
.program-photo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

/* --- BRELA-STYLE RESPONSIVE FOOTER (DESKTOP + MOBILE) --- */
.mtjaw-footer,
.mtjaw-footer * {
  box-sizing: border-box;
}

.mtjaw-footer {
  background-color: var(--color-green);
  color: #f6f5f0;
  padding: 4.5rem 2rem 2rem 2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.mtjaw-footer-container {
  max-width: 1220px;
  margin: 0 auto;
}

/* PART 1: Desktop Grid — Brand Left, 4 Equal Columns Right */
.mtjaw-footer-top {
  display: grid;
  grid-template-columns: 1.35fr 2.65fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Brand Column */
.mtjaw-footer-logo-link {
  display: inline-block;
  margin-bottom: 1.1rem;
}

.mtjaw-footer-logo {
  height: 54px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.mtjaw-footer-desc {
  margin: 0 0 1.4rem 0;
  color: rgba(246, 245, 240, 0.86);
  font-size: 0.92rem;
  max-width: 340px;
}

/* Contact List with Crisp Inline Icons */
.mtjaw-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mtjaw-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(246, 245, 240, 0.92);
  font-size: 0.9rem;
}

.mtjaw-footer-contact svg {
  width: 16px;
  height: 16px;
  fill: #f6f5f0;
  flex-shrink: 0;
  opacity: 0.9;
}

.mtjaw-footer-contact a {
  color: rgba(246, 245, 240, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.mtjaw-footer-contact a:hover {
  opacity: 0.75;
}

/* Circular Social Buttons */
.mtjaw-footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mtjaw-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(246, 245, 240, 0.14);
  color: #f6f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mtjaw-footer-socials a:hover {
  background-color: rgba(246, 245, 240, 0.28);
  transform: translateY(-2px);
}

/* Top 4 Columns */
.mtjaw-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Uniform Typography Across Every Column */
.mtjaw-footer-col h4 {
  color: #f6f5f0;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1.1rem 0;
  letter-spacing: 0.01em;
}

.mtjaw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mtjaw-footer-col a {
  color: rgba(246, 245, 240, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.mtjaw-footer-col a:hover {
  color: #f6f5f0;
  opacity: 1;
}

/* PART 2: Rounded Inner Highlight Panel */
.mtjaw-footer-panel {
  background-color: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(246, 245, 240, 0.09);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* PART 3: Bottom Copyright & Credit Row */
.mtjaw-footer-bottom {
  border-top: 1px solid rgba(246, 245, 240, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(246, 245, 240, 0.82);
}

.mtjaw-footer-bottom p {
  margin: 0;
}

.mtjaw-footer-credit a {
  color: #f6f5f0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.mtjaw-footer-credit a:hover {
  opacity: 0.78;
}

/* --- MOBILE VIEW (Matches Brela's Centered + 2-Column Layout) --- */
@media (max-width: 900px) {
  .mtjaw-footer {
    padding: 3.5rem 1.25rem 2rem 1.25rem;
  }

  .mtjaw-footer-top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .mtjaw-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mtjaw-footer-desc {
    max-width: 440px;
  }

  .mtjaw-footer-contact {
    align-items: center;
  }

  .mtjaw-footer-contact li {
    justify-content: center;
  }

  .mtjaw-footer-socials {
    justify-content: center;
  }

  /* 2 balanced centered columns on mobile */
  .mtjaw-footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.25rem;
    text-align: center;
  }

  /* Rounded inner panel also snaps to a 2x2 centered grid */
  .mtjaw-footer-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    padding: 2rem 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .mtjaw-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }
} /* --- RESPONSIVE FOOTER (DESKTOP + MOBILE) --- */
.mtjaw-footer,
.mtjaw-footer * {
  box-sizing: border-box;
}

.mtjaw-footer {
  background-color: var(--color-green);
  color: #f6f5f0;
  padding: 4.5rem 2rem 2rem 2rem;
  font-size: 0.92rem;
  line-height: 1.65;
}

.mtjaw-footer-container {
  max-width: 1220px;
  margin: 0 auto;
}

/* PART 1: Desktop Grid — Brand Left, 4 Equal Columns Right */
.mtjaw-footer-top {
  display: grid;
  grid-template-columns: 1.35fr 2.65fr;
  gap: 3.5rem;
  align-items: start;
  margin-bottom: 3rem;
}

/* Brand Column */
.mtjaw-footer-logo-link {
  display: inline-block;
  margin-bottom: 1.1rem;
}

.mtjaw-footer-logo {
  height: 78px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.mtjaw-footer-desc {
  margin: 0 0 1.4rem 0;
  color: rgba(246, 245, 240, 0.86);
  font-size: 0.92rem;
  max-width: 340px;
}

/* Contact List with Crisp Inline Icons */
.mtjaw-footer-contact {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mtjaw-footer-contact li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(246, 245, 240, 0.92);
  font-size: 0.9rem;
}

.mtjaw-footer-contact svg {
  width: 16px;
  height: 16px;
  fill: #f6f5f0;
  flex-shrink: 0;
  opacity: 0.9;
}

.mtjaw-footer-contact a {
  color: rgba(246, 245, 240, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.2s ease;
}

.mtjaw-footer-contact a:hover {
  opacity: 0.75;
}

/* Circular Social Buttons */
.mtjaw-footer-socials {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mtjaw-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(246, 245, 240, 0.14);
  color: #f6f5f0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  transition:
    background-color 0.25s ease,
    transform 0.25s ease;
}

.mtjaw-footer-socials a:hover {
  background-color: rgba(246, 245, 240, 0.28);
  transform: translateY(-2px);
}

/* Top 4 Columns */
.mtjaw-footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

/* Uniform Typography Across Every Column */
.mtjaw-footer-col h4 {
  color: #f6f5f0;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 1.1rem 0;
  letter-spacing: 0.01em;
}

.mtjaw-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mtjaw-footer-col a {
  color: rgba(246, 245, 240, 0.82);
  text-decoration: none;
  font-size: 0.9rem;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.mtjaw-footer-col a:hover {
  color: #f6f5f0;
  opacity: 1;
}

/* PART 2: Rounded Inner Highlight Panel */
.mtjaw-footer-panel {
  background-color: rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(246, 245, 240, 0.09);
  border-radius: 18px;
  padding: 2.25rem 2.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* PART 3: Bottom Copyright & Credit Row */
.mtjaw-footer-bottom {
  border-top: 1px solid rgba(246, 245, 240, 0.2);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.86rem;
  color: rgba(246, 245, 240, 0.82);
}

.mtjaw-footer-bottom p {
  margin: 0;
}

.mtjaw-footer-credit a {
  color: #f6f5f0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease;
}

.mtjaw-footer-credit a:hover {
  opacity: 0.78;
}

/* --- MOBILE VIEW (Matches Brela's Centered + 2-Column Layout) --- */
@media (max-width: 900px) {
  .mtjaw-footer {
    padding: 3.5rem 1.25rem 2rem 1.25rem;
  }

  .mtjaw-footer-top {
    grid-template-columns: 1fr;
    gap: 2.75rem;
    text-align: center;
    margin-bottom: 2.5rem;
  }

  .mtjaw-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .mtjaw-footer-desc {
    max-width: 440px;
  }

  .mtjaw-footer-contact {
    align-items: center;
  }

  .mtjaw-footer-contact li {
    justify-content: center;
  }

  .mtjaw-footer-socials {
    justify-content: center;
  }

  /* 2 balanced centered columns on mobile */
  .mtjaw-footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.25rem 1.25rem;
    text-align: center;
  }

  /* Rounded inner panel also snaps to a 2x2 centered grid */
  .mtjaw-footer-panel {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.25rem;
    padding: 2rem 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
  }

  .mtjaw-footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 0.65rem;
  }
}

.mtjaw-footer-socials svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* --- ABOUT PAGE: LOCKED 2-COLUMN LAYOUT + COMPACT STICKY PHOTOS --- */
.profile-editorial {
  display: grid !important;
  grid-template-columns: 300px 1fr !important; /* Locks photos to a neat 300px left column */
  gap: 3rem !important;
  align-items: start !important;
}

.about-photo-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  width: 100%;
  max-width: 300px;
  position: sticky;
  top: 110px; /* Glides smoothly down the left side without touching the text */
}

.about-photo-item {
  background: #ffffff;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.about-photo-item img {
  width: 100%;
  height: 185px; /* Compact size matching your original photo so both fit on screen */
  object-fit: cover;
  border-radius: 9px;
  display: block;
}

.profile-text {
  min-width: 0;
}

/* Mobile view: turns off sticky and places the 2 photos side-by-side above the text */
@media (max-width: 900px) {
  .profile-editorial {
    grid-template-columns: 1fr !important;
    gap: 1.75rem !important;
  }

  .about-photo-stack {
    position: static;
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .about-photo-item {
    padding: 6px;
    border-radius: 12px;
  }

  .about-photo-item img {
    height: 145px;
    border-radius: 8px;
  }
}

/* --- NEWS PAGE: PHOTO GRIDS BELOW STORY CARDS --- */
.story-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 0.85rem;
  margin: 1.15rem 0 3rem 0; /* Tight gap below the card, generous space before the next card */
}

.story-photo-grid img {
  width: 100%;
  height: 175px; /* Adjust up or down (e.g., 160px–210px) to change row height */
  object-fit: cover;
  border-radius: 12px;
  display: block;
  cursor: zoom-in;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.story-photo-grid img:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

/* Mobile: neat 2-column grid */
@media (max-width: 768px) {
  .story-photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
    margin: 0.9rem 0 2.25rem 0;
  }

  .story-photo-grid img {
    height: 145px;
  }
}

/* --- FULL-SIZE LIGHTBOX VIEWER --- */
.story-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 14, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 9999; /* Sits cleanly above your floating header */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.story-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.story-lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  height: auto;
  object-fit: contain; /* Shows the complete uncropped full-size image */
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.story-lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  background: rgba(246, 245, 240, 0.14);
  color: #f6f5f0;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.story-lightbox-close:hover {
  background: rgba(246, 245, 240, 0.28);
}

.story-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(246, 245, 240, 0.14);
  color: #f6f5f0;
  border: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.story-lightbox-nav:hover {
  background: rgba(246, 245, 240, 0.28);
}

.story-lightbox-prev {
  left: 1.25rem;
}

.story-lightbox-next {
  right: 1.25rem;
}

@media (max-width: 600px) {
  .story-lightbox {
    padding: 1rem;
  }

  .story-lightbox-nav {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .story-lightbox-prev {
    left: 0.5rem;
  }

  .story-lightbox-next {
    right: 0.5rem;
  }
}

/* --- FULL-SIZE LIGHTBOX VIEWER --- */
.story-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(12, 18, 14, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}

.story-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.story-lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.story-lightbox-close,
.story-lightbox-nav {
  position: absolute;
  background: rgba(246, 245, 240, 0.16);
  color: #f6f5f0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.story-lightbox-close:hover,
.story-lightbox-nav:hover {
  background: rgba(246, 245, 240, 0.3);
}

.story-lightbox-close {
  top: 1.25rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
}

.story-lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
}

.story-lightbox-prev {
  left: 1.25rem;
}

.story-lightbox-next {
  right: 1.25rem;
}
