/*
Theme Name: MoneySense Child Theme
Theme URI: https://dealingwithdebt.org/
Description: A child theme for Twenty Twenty-Four with CreativeTugs complete design system.
Author: Umara
Author URI: https://www.creativetugs.com
Template: twentytwentyfour
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/


/* ====================================================
   GLOBAL & ACCESSIBILITY STYLES
   ==================================================== */
:where(.wp-site-blocks *:focus) {
    outline-width: 2px;
    outline-style: solid;
}
:where(.wp-site-blocks) > * {
    margin-block-start: 0;
}
/* ====================================================
   MOBILE HEADER FIX (Screens under 768px)
   ==================================================== */
@media (max-width: 767px) {
    .wp-block-group.alignwide > .wp-block-group {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        padding: 0 16px !important;
    }

    .wp-block-group.alignwide > .wp-block-group > .wp-block-group:first-child {
        max-width: 170px !important;
        flex-shrink: 0 !important;
    }
    
    .wp-block-site-logo img {
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .wp-block-group.alignwide > .wp-block-group > .wp-block-group:last-child {
        display: flex !important;
        flex-direction: row-reverse !important;
        align-items: center !important;
        gap: 14px !important;
        margin: 0 !important;
        flex-grow: 1 !important;
        justify-content: flex-end !important;
    }

    .wp-block-navigation,
    .wp-block-image:has(a[href*="/login/"]) {
        display: block !important;
    }

    .wp-block-image:has(a[href*="/login/"]) img {
        height: 36px !important;
        width: auto !important;
    }

/* 5. CRITICAL PERF FIX: Hide the App Store & Google Play badges ONLY inside the header group */
  .wp-block-group.alignwide .wp-block-group .wp-block-image:has(a[href*="play.google.com"]),
  .wp-block-group.alignwide .wp-block-group .wp-block-image:has(a[href*="apps.apple.com"]) {
    display: none !important;
  }
}

/* ====================================================
   TOP HERO CAPSULE BADGE
   ==================================================== */
.custom-hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem auto; 
    width: max-content;
    max-width: 95%;
    padding: 0.4rem 1rem; 
    border-radius: 9999px; 
    border: 1.5px solid rgba(86, 129, 79, 0.25); 
    box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04); 
    backdrop-filter: blur(8px); 
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(to right, rgba(86, 129, 79, 0.12), #E8EDF3); 
    box-sizing: border-box;
}

.custom-badge-text {
    font-size: 0.7rem; 
    font-weight: 600; 
    color: #002a65; 
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap; 
    line-height: 1;
}

.gradient-text {
    background: linear-gradient(to right, #56814f, #56814f, #002a65); 
    -webkit-background-clip: text; 
    background-clip: text;
    -webkit-text-fill-color: transparent; 
    color: transparent;
}

@media (min-width: 768px) {
    .custom-hero-badge {
        padding: 0.45rem 1.15rem; 
        margin: 0 0 1.25rem 0; 
    }
    
    .custom-badge-text {
        font-size: 0.8rem; 
    }
}

/* ====================================================
   VIDEO PLAYER FACADE
   ==================================================== */
.video-player-wrapper {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: #000000;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    aspect-ratio: 16 / 9;
    width: 100%;
}

.video-facade {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-facade:hover img {
    transform: scale(1.02);
}

/* Keyboard focus indicator.
   Drawn as an overlay so it stacks ABOVE the absolutely-positioned
   thumbnail image (which would otherwise cover a normal outline). */
.video-facade:focus-visible {
    outline: none;
}

.video-facade:focus-visible {
    outline: none;
}

.video-facade:focus-visible::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 5;
    border: 4px solid #ffffff;
    box-shadow: inset 0 0 0 8px rgba(0, 42, 101, 0.9);
    pointer-events: none;
}

.video-facade:focus-visible .play-button {
    transform: scale(1.1);
    background-color: #56814f;
    box-shadow: 0 0 0 4px #ffffff,
                0 0 0 8px #002a65,
                0 10px 20px rgba(0, 0, 0, 0.3);
}
.play-button {
    position: relative;
    z-index: 2;
    width: 4.5rem;
    height: 4.5rem;
    background: #002a65;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.play-button svg {
    width: 2rem;
    height: 2rem;
    margin-left: 0.25rem;
}

.video-facade:hover .play-button {
    transform: scale(1.1);
    background-color: #56814f;
}

.video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 3;
}

/* ====================================================
   BOTTOM AS SEEN ON BADGE
   ==================================================== */
.hero-badge-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
}

.hero-badge-bottom {
    display: inline-block;
    text-align: center;
    padding: 0.75rem 1.75rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-radius: 1.25rem;
    border: 1px solid #E9EDF3;
    font-size: 0.875rem;
    font-weight: 700;
    color: #002a65;
    line-height: 1.5;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08),
                0 8px 16px -6px rgba(0, 0, 0, 0.04);
}

.hero-badge-bottom .badge-label {
    font-size: 0.75rem;
    color: rgba(0, 42, 101, 0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: inline-block;
    margin-bottom: 0.25rem;
}
/* /* ========================================
   4. IMPACT SECTION
   ======================================== */
.impact-description {
  font-size: 1.25rem;
  color: rgba(0, 42, 101, 0.7);
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  line-height: 1.625;
}
/* 1. THE CARD (Add 'impact-card' class to your main Column block) */
.impact-card {
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
}

.impact-card:hover {
  /* This physical lift gives it the premium "breathing" feel missing from flat shadows */
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* 2. THE IMAGE (Add 'impact-card-image' class to your Image block) */
.impact-card-image {
  overflow: hidden !important; /* Locks the zoom frame inside the card boundary */
}

/* Force whatever image element WordPress renders to transition beautifully */
.impact-card-image img,
.impact-card-image figure {
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.impact-card:hover .impact-card-image img {
  transform: scale(1.03); /* Subtle, elegant internal Figma zoom */
}

/* 3. THE ICON (Add 'impact-card-icon' class to your Icon wrapper block) */
.impact-card-icon,
.impact-card-icon svg,
.impact-card-icon img {
  /* cubic-bezier gives it a slight, energetic pop on hover instead of a linear scale */
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.impact-card:hover .impact-card-icon {
  transform: scale(1.08);
}


/* ====================================================
   ARROW: STATIC DOWN (Mobile) / SLIDE RIGHT (Desktop)
   ==================================================== */

/* The wrapper: Centers the arrow in the 10% column */
.animated-flow-arrow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Keep it rotated down for mobile (Static) */
    transform: rotate(90deg); 
    transition: transform 0.3s ease;
}

/* The actual image: No animation on mobile */
.animated-flow-arrow {
    width: 24px !important;
    height: 24px !important;
    display: block !important;
    animation: none; /* No movement on mobile */
}

/* Desktop: Screens 768px and up */
@media (min-width: 768px) {
    .animated-flow-arrow-wrapper {
        transform: rotate(0deg); /* Reset for horizontal */
    }
    
    .animated-flow-arrow {
        /* Re-enable animation for desktop only */
        animation: arrowSlideDesktop 2s ease-in-out infinite alternate;
    }
}

/* Keyframes: Only move horizontally on desktop */
@keyframes arrowSlideDesktop {
    from { transform: translateX(0); }
    to   { transform: translateX(8px); }
}

.badge-title {
  color: #56814F;
}
/* ==========================================================================
   7. LEARNING SECTION (How We Teach) - WITH PURE CSS GPU ICON PULSE
   ========================================================================== */

.learning-card {
  background: linear-gradient(135deg, rgba(232, 237, 243, 0.6) 0%, rgba(232, 237, 243, 0.4) 50%, #ffffff 100%);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 2px solid #E9EDF3;
  height: 100%;
  transition: all 0.5s;
}

.learning-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-0.75rem);
}

.learning-card-icon {
  position: relative; /* REQUIRED: Anchors the absolute pulse rings safely */
  width: 5rem;
  height: 5rem;
  background: linear-gradient(135deg, #56814f, #56814f);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  
  /* FIXED: Left-aligned icon wrapper */
  margin: 0 0 1rem 0; 
  
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s;
}

.learning-card-icon.blue {
  background: linear-gradient(135deg, #002a65, #002a65);
}

.learning-card:hover .learning-card-icon {
  transform: scale(1.1);
}

/* --- AMBIENT PULSE ENGINE (Injected seamlessly via pseudo-elements) --- */
.learning-card-icon::before,
.learning-card-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: inherit; /* Automatically inherits green or blue gradient from parent */
  pointer-events: none;
  z-index: 1;
  animation: pureCssPing 3.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Staggers the waves for a natural fluid animation ripple */
.learning-card-icon::before {
  opacity: 0.4;
}

.learning-card-icon::after {
  opacity: 0.2;
  animation-delay: 1s;
  animation-duration: 4.5s;
}

/* Keeps your inner SVG/Lucide asset layered perfectly above the pulse background */
.learning-card-icon svg {
  position: relative;
  z-index: 2;
}

/* GPU Hardware-accelerated pulse transition keyframe */
@keyframes pureCssPing {
  70%, 100% {
    transform: scale(1.5);
    opacity: 0;
  }
}
/* ---------------------------------------------------------------------- */

.learning-card-title {
  font-size: 1.875rem;
  font-weight: 700;
  color: #002a65;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.learning-card:hover .learning-card-title {
  color: #56814f;
}

.learning-card-subtitle {
  font-size: 1.125rem;
  font-weight: 600;
  color: #56814f;
  margin-bottom: 1rem;
}

.learning-card-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  border-radius: 9999px;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.learning-card-tag p {
  font-size: 0.875rem;
  font-weight: 500;
  color: #002a65;
  font-style: italic;
  margin: 0;
}

.learning-card-description {
  color: rgba(0, 42, 101, 0.8);
  line-height: 1.625;
  margin-bottom: 1.5rem;
}

.learning-card-features {
  list-style: none;
  padding: 0;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(232, 237, 243, 0.5);
}

.learning-card-feature {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: rgba(0, 42, 101, 0.7);
}

.learning-card-feature::before {
  content: "";
  width: 0.375rem;
  height: 0.375rem;
  background: linear-gradient(to right, #56814f, #56814f);
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ==========================================================================
   WORDPRESS DEFERRED ECOSYSTEM DIAGRAM STYLES
   ========================================================================== */
.hero-illustration {
  background: var(--white, #ffffff);
  border-radius: 2rem;
  border: 1px solid var(--border-color, #E9EDF3);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.06);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  width: calc(100% - 2rem); /* Forces exact horizontal margins on mobile viewports */
  max-width: 480px; /* Slightly tighter maximum width to ensure clean layout scaling */
  margin: 1.5rem auto;
  box-sizing: border-box;
  overflow: hidden; /* Guards against horizontal parent container scroll */
}

@media (min-width: 480px) {
  .hero-illustration {
    padding: 2rem;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
  }
}

.ecosystem-diagram {
  width: 100%;
  height: auto;
  max-height: 420px;
  overflow: visible;
}

@keyframes dashflow {
  from { stroke-dashoffset: 40; }
  to { stroke-dashoffset: 0; }
}

@keyframes pulseCenter {
  0% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(86,129,79,0.15)); }
  50% { transform: scale(1.04); filter: drop-shadow(0 8px 20px rgba(86,129,79,0.3)); }
  100% { transform: scale(1); filter: drop-shadow(0 4px 12px rgba(86,129,79,0.15)); }
}

.connecting-line {
  stroke: var(--accent, #E8EDF3);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  transition: stroke 0.5s ease, stroke-width 0.5s ease;
}

.connecting-line.active-green {
  stroke: var(--secondary-green, #56814f);
  stroke-width: 5;
  animation: dashflow 0.8s linear infinite;
}

.connecting-line.active-blue {
  stroke: var(--primary-blue, #002a65);
  stroke-width: 5;
  animation: dashflow 0.8s linear infinite;
}

.center-node {
  animation: pulseCenter 4s ease-in-out infinite;
  transform-origin: 250px 220px;
}

.interactive-node {
  cursor: pointer;
}

/* Base Inactive Node Rect Style (Clean white container with border) */
.node-rect {
  fill: var(--white, #ffffff);
  stroke: var(--border-color, #E9EDF3);
  stroke-width: 1.5;
  transition: fill 0.4s ease, stroke 0.4s ease, stroke-width 0.4s ease, filter 0.4s ease;
}

/* Inherited Dynamic Icon Colors (Inactive) */
.node-green svg {
  stroke: var(--secondary-green, #56814f);
  transition: stroke 0.4s ease;
}

.node-blue svg {
  stroke: var(--primary-blue, #002a65);
  transition: stroke 0.4s ease;
}

/* Green Active Nodes (Supportive Communities & Structured Learning) */
.node-green.active .node-rect,
.node-green:hover .node-rect {
  fill: var(--secondary-green, #56814f);
  stroke: var(--secondary-green, #56814f);
  stroke-width: 3.5;
  filter: drop-shadow(0 10px 18px rgba(86, 129, 79, 0.25));
}

.node-green.active svg,
.node-green:hover svg {
  stroke: #ffffff;
}

/* Blue Active Nodes (Incentives & Rewards & Practical Tools) */
.node-blue.active .node-rect,
.node-blue:hover .node-rect {
  fill: var(--primary-blue, #002a65);
  stroke: var(--primary-blue, #002a65);
  stroke-width: 3.5;
  filter: drop-shadow(0 10px 18px rgba(0, 42, 101, 0.2));
}

.node-blue.active svg,
.node-blue:hover svg {
  stroke: #ffffff;
}

.node-text {
  fill: var(--primary-blue, #002a65);
  font-family: var(--font-heading, sans-serif);
  font-weight: 700;
  font-size: 12px;
  transition: fill 0.4s ease, opacity 0.4s ease;
  opacity: 0.6;
}

@media (max-width: 414px) {
  .node-text {
    font-size: 10px; /* Compress typographic footprint on standard mobile */
  }
}

@media (max-width: 360px) {
  .node-text {
    display: none; /* Hide labels entirely on narrow viewports to completely mitigate clipping issues */
  }
}

.interactive-node.active .node-text,
.interactive-node:hover .node-text {
  fill: var(--primary-blue, #002a65);
  opacity: 1;
}

.dialogue-card {
  background: var(--white, #ffffff);
  border: 1px solid var(--border-color, #E9EDF3);
  border-radius: 1.25rem;
  padding: 1.25rem; /* Reduced dynamic padding for mobile viewports */
  margin-top: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: 0 10px 25px -5px rgba(0, 42, 101, 0.05);
  transition: all 0.4s ease;
  opacity: 1;
  width: 100%;
  max-width: 440px; /* Aligns with compact node spacing */
  box-sizing: border-box;
}

@media (min-width: 480px) {
  .dialogue-card {
    padding: 1.5rem;
    gap: 1.25rem;
    margin-top: 2rem;
  }
}

.dialogue-icon-box {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white, #ffffff);
  transition: background 0.4s ease;
}

.dialogue-icon-box.green {
  background: linear-gradient(135deg, var(--secondary-green, #56814f), #41633b);
}

.dialogue-icon-box.blue {
  background: linear-gradient(135deg, var(--primary-blue, #002a65), #00183b);
}

.dialogue-text-content {
  text-align: left;
}

.dialogue-text-content h4 {
  font-size: 1.125rem;
  color: var(--primary-blue, #002a65);
  margin-bottom: 0.25rem;
  font-family: var(--font-heading, sans-serif);
  font-weight: 800;
}

.dialogue-text-content p {
  font-size: 0.95rem;
  color: rgba(0, 42, 101, 0.75);
  line-height: 1.5;
  margin: 0;
}


/* Reverse column order on mobile for specific blocks */
@media (max-width: 782px) {
    .reverse-mobile.wp-block-columns {
        flex-direction: column-reverse;
    }
}
/* ==========================================================================
   Program Toggle Cards - Unified Structure
   ========================================================================== */

/* 1. Base Card Styles */
.program-card {
  position: relative;
  padding: 2rem;
  border-radius: 1.5rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid #E9EDF3;
  background: #ffffff;
  overflow: visible;
}

/* 2. Hover Effect (Inactive only) */
.program-card:not(.active):hover {
  border-color: rgba(86, 129, 79, 0.3);
  box-shadow: 0 10px 30px rgba(0, 42, 101, 0.08);
  transform: translateY(-2px);
}

/* 3. Active State (Unified: No more ID-based fighting) */
.program-card.active {
  transform: scale(1.05);
  box-shadow: 0 20px 60px rgba(0, 42, 101, 0.3);
}

/* Apply specific colors using data-attributes or just handle generally */
#private-card.active { background: linear-gradient(135deg, #002a65 0%, #002a65 100%); border-color: #002a65; }
#program-impact-card.active { background: linear-gradient(135deg, #56814f 0%, #56814f 100%); border-color: #56814f; }

/* 4. Icons */
.program-icon {
  width: 4rem; height: 4rem; border-radius: 1rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem; transition: all 0.3s ease;
}

.program-card:not(.active) .program-icon { background: #002a65; } /* Set base, override for impact if needed */
#program-impact-card:not(.active) .program-icon { background: #56814f; }
.program-card.active .program-icon { background: rgba(255, 255, 255, 0.2); backdrop-filter: blur(10px); }

/* 5. Typography */
.program-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; transition: color 0.3s ease; }
.program-card:not(.active) .program-title { color: #002a65; }
.program-card.active .program-title { color: #ffffff; }

.program-description { font-size: 1rem; line-height: 1.6; margin: 0; transition: color 0.3s ease; }
.program-card:not(.active) .program-description { color: rgba(0, 42, 101, 0.7); }
.program-card.active .program-description { color: rgba(255, 255, 255, 0.9); }

/* 6. Arrow & Pulse Logic (Visible by default) */
.program-arrow {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #f4f6f9;
  color: #002a65;
  border-radius: 50%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; /* Let clicks pass to card */
}

/* The Pulse Nudge */
.program-card:not(.active) .program-arrow {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 42, 101, 0.4); }
  50% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(0, 42, 101, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 42, 101, 0); }
}

.program-card.active .program-arrow {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  animation: none;
}

/* 7. Content Reveal */
.program-content { display: none !important; opacity: 0; padding: 4rem 0; }
.program-content.active { display: block !important; animation: fadeIn 0.5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* 8. Mobile Optimization */
@media (max-width: 767px) {
  .program-card { display: flex !important; flex-direction: row !important; align-items: center !important; padding: 0.75rem 1.25rem !important; border-radius: 50px !important; gap: 10px !important; }
  .program-icon { width: 2.5rem !important; height: 2.5rem !important; margin-bottom: 0 !important; border-radius: 4px !important; flex-shrink: 0; }
  .program-title { font-size: 0.9rem !important; margin-bottom: 0 !important; white-space: nowrap; }
  .program-description, .program-arrow { display: none !important; }
}
/* ============================================
 * Money$ense Partnership Page - Custom CSS
 * For WordPress Block Editor Implementation   ============================================ */

/* ============================================
   Why Partner Section
   ============================================ */
.ms-why-partner {
  padding: 5rem 1.5rem;
  background-color: #ffffff;
}

.ms-section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.ms-section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: #002a65;
  margin-bottom: 1rem;
}

.ms-section-description {
  font-size: 1.125rem;
  color: #6B7280;
  max-width: 700px;
  margin: 0 auto;
}

.ms-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ms-feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 42, 101, 0.08);
  transition: all 0.3s ease;
}

.ms-feature-card.primary {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.05) 0%, rgba(0, 42, 101, 0.1) 100%);
}

.ms-feature-card.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.05) 0%, rgba(86, 129, 79, 0.1) 100%);
}

.ms-feature-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.ms-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.ms-feature-icon.primary {
  background-color: rgba(0, 42, 101, 0.1);
}

.ms-feature-icon.secondary {
  background-color: rgba(86, 129, 79, 0.1);
}

.ms-feature-icon .icon-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
}

.ms-feature-icon.primary .icon-dot {
  background-color: #002a65;
}

.ms-feature-icon.secondary .icon-dot {
  background-color: #56814f;
}

.ms-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #002a65;
  margin-bottom: 0.75rem;
}

.ms-feature-description {
  font-size: 0.875rem;
  color: #6B7280;
  line-height: 1.6;
}

/* ============================================
   Partnership Type Cards
   ============================================ */
.ms-partnership-types {
  padding: 5rem 1.5rem;
  background: linear-gradient(180deg, #F8F9FB 0%, rgba(232, 237, 243, 0.3) 100%);
}

.ms-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.ms-type-card {
  padding: 2rem;
  background-color: #ffffff;
  border: 2px solid rgba(0, 42, 101, 0.08);
  border-radius: 1.5rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.ms-type-card:hover {
  border-color: #56814f;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.ms-type-icon-container {
  width: 64px;
  height: 64px;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.ms-type-card:hover .ms-type-icon-container {
  transform: scale(1.1);
}

.ms-type-icon-container.primary {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.1) 0%, rgba(0, 42, 101, 0.2) 100%);
}

.ms-type-icon-container.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.1) 0%, rgba(86, 129, 79, 0.2) 100%);
}

.ms-type-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #002a65;
  margin-bottom: 1rem;
}

.ms-type-description {
  font-size: 1rem;
  color: #6B7280;
  margin-bottom: 1rem;
}

.ms-type-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: #56814f;
  font-size: 0.875rem;
  transition: gap 0.3s ease;
}

.ms-type-card:hover .ms-type-link {
  gap: 1rem;
}

/* ============================================
   Partnership Detail Sections
   ============================================ */
.ms-partnership-detail {
  padding: 5rem 1.5rem;
}

.ms-partnership-detail.white {
  background-color: #ffffff;
}

.ms-partnership-detail.gradient {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.05) 0%, #F8F9FB 100%);
}

.ms-detail-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .ms-detail-container {
    grid-template-columns: 1fr 1fr;
  }
}

.ms-detail-content {
  order: 1;
}

.ms-detail-benefits {
  order: 2;
}

@media (min-width: 1024px) {
  .ms-detail-container.reverse .ms-detail-content {
    order: 2;
  }

  .ms-detail-container.reverse .ms-detail-benefits {
    order: 1;
  }
}

/* Your requested light background */
.ms-detail-icon.light-green {
  background: #eef4ed;
}
.ms-detail-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #002a65;
  margin-bottom: 1.5rem;
}

.ms-detail-description {
  font-size: 1.125rem;
  color: #6B7280;
  line-height: 1.75;
  margin-bottom: 2rem;
}

.ms-partner-types-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #002a65;
  margin-bottom: 1rem;
}

.ms-tag-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ms-tag {
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.ms-tag.primary {
  background-color: rgba(86, 129, 79, 0.1);
  color: #56814f;
}

.ms-tag.outline {
  background-color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 42, 101, 0.2);
  color: #002a65;
}

.ms-benefits-box {
  padding: 2rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(0, 42, 101, 0.08);
  margin-bottom: 1.5rem;
}

.ms-benefits-box.accent {
  background: linear-gradient(135deg, #E8EDF3 0%, rgba(232, 237, 243, 0.5) 100%);
}

.ms-benefits-box.white {
  background-color: #ffffff;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ms-benefits-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #002a65;
  margin-bottom: 1.5rem;
}

.ms-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ms-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ms-benefit-item:last-child {
  margin-bottom: 0;
}

.ms-benefit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.ms-benefit-dot.primary {
  background-color: #002a65;
}

.ms-benefit-dot.secondary {
  background-color: #56814f;
}

.ms-benefit-text {
  font-size: 1rem;
  color: #002a65;
  font-weight: 500;
  line-height: 1.6;
}

/* ============================================
   CTA Section
   ============================================ */
.ms-cta-section {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #002a65 0%, rgba(0, 42, 101, 0.9) 100%);
  text-align: center;
}

.ms-cta-container {
  max-width: 900px;
  margin: 0 auto;
}

.ms-cta-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.ms-cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.ms-cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ms-btn-white {
  background-color: #ffffff;
  color: #002a65;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.ms-btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.ms-btn-white-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.ms-btn-white-outline:hover {
  background-color: #ffffff;
  color: #002a65;
}

/* ============================================
   Utility Classes
   ============================================ */
.ms-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.ms-text-center {
  text-align: center;
}

.ms-mb-sm { margin-bottom: 0.75rem; }
.ms-mb-md { margin-bottom: 1rem; }
.ms-mb-lg { margin-bottom: 1.5rem; }
.ms-mb-xl { margin-bottom: 2rem; }
.ms-mb-2xl { margin-bottom: 3rem; }
.ms-mb-3xl { margin-bottom: 4rem; }

.ms-mt-sm { margin-top: 0.75rem; }
.ms-mt-md { margin-top: 1rem; }
.ms-mt-lg { margin-top: 1.5rem; }
.ms-mt-xl { margin-top: 2rem; }
.ms-mt-2xl { margin-top: 3rem; }
.ms-mt-3xl { margin-top: 4rem; }

/* ============================================
   Responsive Typography
   ============================================ */
@media (max-width: 768px) {
  .ms-partnership-page h1 {
    font-size: 2.5rem;
  }

  .ms-partnership-page h2 {
    font-size: 2rem;
  }

  .ms-partnership-page h3 {
    font-size: 1.25rem;
  }

  .ms-partnership-page p {
    font-size: 1rem;
  }

  .ms-hero-section,
  .ms-why-partner,
  .ms-partnership-types,
  .ms-partnership-detail,
  .ms-cta-section {
    padding: 3rem 1rem;
  }

  .ms-btn {
    width: 100%;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .ms-btn,
  .ms-cta-section {
    display: none;
  }

  .ms-partnership-page {
    background: white;
  }

  .ms-feature-card,
  .ms-type-card,
  .ms-benefits-box {
    border: 1px solid #cccccc;
    page-break-inside: avoid;
  }
}

/* ============================================
   Link Hover States
   ============================================ */
.ms-partnership-page a {
  transition: all 0.3s ease;
}

.ms-partnership-page a:focus {
  outline: 2px solid #56814f;
  outline-offset: 2px;
}

/* ============================================
   Additional Accessibility
   ============================================ */
.ms-partnership-page *:focus-visible {
  outline: 2px solid #56814f;
  outline-offset: 2px;
}

/* ============================================
   Smooth Scroll Behavior
   ============================================ */
html {
  scroll-behavior: smooth;
}

/* ============================================
   WordPress Editor Compatibility
   ============================================ */
.ms-partnership-page .wp-block-group {
  margin: 0;
}

.ms-partnership-page .wp-block-button__link {
  background: none;
  border: none;
  padding: 0;
}

/* ============================================
   Image Responsiveness
   ============================================ */
.ms-partnership-page img {
  max-width: 100%;
  height: auto;
}

.ms-partnership-page svg {
  max-width: 100%;
  height: auto;
}

/* ============================================
   Clear Floats
   ============================================ */
.ms-partnership-page::after,
.ms-feature-grid::after,
.ms-type-grid::after,
.ms-detail-container::after {
  content: "";
  display: table;
  clear: both;
}

/* ============================================
   List Reset for Benefits
   ============================================ */
.ms-benefits-list li {
  list-style-type: none;
}

/* ============================================
   Button Width on Mobile
   ============================================ */
@media (max-width: 640px) {
  .ms-hero-buttons .ms-btn,
  .ms-cta-buttons .ms-btn {
    width: 100%;
  }
}


/* ============================================
   get involved
   ============================================ */
.gi-way-card {
  padding: 2.5rem;
  border-radius: 1rem;
  border: 2px solid;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.gi-way-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 8rem;
  height: 8rem;
  border-radius: 0 0 0 100%;
  opacity: 0.5;
}

.gi-way-card.primary {
  background: white;
  border-color: var(--border);
}

.gi-way-card.primary::before {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.05), transparent);
}

.gi-way-card.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.05), rgba(86, 129, 79, 0.1));
  border-color: rgba(86, 129, 79, 0.2);
}

.gi-way-card.secondary::before {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.1), transparent);
}

.gi-way-card:hover {
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}

.gi-way-card.primary:hover {
  border-color: var(--primary);
}

.gi-way-card.secondary:hover {
  border-color: var(--secondary);
}

.gi-way-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
  transition: transform 0.3s ease;
}

.gi-way-card:hover .gi-way-icon {
  transform: scale(1.1);
}

.gi-way-icon.primary {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.1), rgba(0, 42, 101, 0.2));
}

.gi-way-icon.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.2), rgba(86, 129, 79, 0.3));
}

.gi-way-icon svg {
  width: 2rem;
  height: 2rem;
}

.gi-way-icon.primary svg {
  color: var(--primary);
}

.gi-way-icon.secondary svg {
  color: var(--secondary);
}

.gi-way-card h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 10;
}

.gi-way-card p {
  color: var(--muted-foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 10;
}

.gi-way-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
}

.gi-way-link.primary {
  color: var(--primary);
}

.gi-way-link.secondary {
  color: var(--secondary);
}

.gi-way-link svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.gi-way-card:hover .gi-way-link svg {
  transform: translateX(0.5rem);
}

/* Detail Sections */
.gi-detail-section {
  padding: 6rem 1.5rem;
}

.gi-detail-section.white {
  background: white;
}

.gi-detail-section.light {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.05), var(--background));
}

.gi-detail-section.accent {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.05), rgba(0, 42, 101, 0.1));
}

.gi-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 4rem;
  align-items: center;
  max-width: 80rem;
  margin: 0 auto;
}

.gi-detail-icon {
  width: 5rem;
  height: 5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.gi-detail-icon.primary {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.1), rgba(0, 42, 101, 0.2));
}

.gi-detail-icon.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.1), rgba(86, 129, 79, 0.2));
}

.gi-detail-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.gi-detail-icon.primary svg {
  color: var(--primary);
}

.gi-detail-icon.secondary svg {
  color: var(--secondary);
}

.gi-detail-content h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.gi-detail-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.gi-detail-description {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.gi-info-box {
  padding: 2.5rem;
  border-radius: 1rem;
  margin-bottom: 2rem;
  border: 1px solid;
}

.gi-info-box.primary {
  background: linear-gradient(135deg, var(--accent), rgba(232, 237, 243, 0.5));
  border-color: rgba(0, 42, 101, 0.1);
}

.gi-info-box.secondary {
  background: white;
  border-color: rgba(86, 129, 79, 0.2);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gi-info-box h3,
.gi-info-box h4 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.gi-info-box p {
  color: var(--foreground);
  line-height: 1.7;
  font-style: italic;
}

.gi-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gi-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
}

.gi-feature-list li:last-child {
  margin-bottom: 0;
}

.gi-feature-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.gi-feature-icon.primary {
  background: rgba(0, 42, 101, 0.1);
}

.gi-feature-icon.secondary {
  background: rgba(86, 129, 79, 0.1);
}

.gi-feature-icon svg {
  width: 1rem;
  height: 1rem;
}

.gi-feature-icon.primary svg {
  color: var(--primary);
}

.gi-feature-icon.secondary svg {
  color: var(--secondary);
}

.gi-feature-content {
  flex: 1;
}

.gi-feature-title {
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  display: block;
}

.gi-feature-description {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* Content Types Grid */
.gi-content-types {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.gi-content-type {
  padding: 0.75rem 1rem;
  background: rgba(0, 42, 101, 0.05);
  border: 1px solid rgba(0, 42, 101, 0.1);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--primary);
  text-align: center;
}

/* Impact Grid */
.gi-impact {
  padding: 5rem 1.5rem;
  background: white;
}

.gi-impact-intro {
  text-align: center;
  margin-bottom: 3rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
}

.gi-impact-intro h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.gi-impact-intro > p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
}

.gi-impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto 4rem;
}

.gi-impact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid;
}

.gi-impact-item.primary {
  background: linear-gradient(135deg, rgba(0, 42, 101, 0.05), rgba(0, 42, 101, 0.1));
  border-color: rgba(0, 42, 101, 0.1);
}

.gi-impact-item.secondary {
  background: linear-gradient(135deg, rgba(86, 129, 79, 0.05), rgba(86, 129, 79, 0.1));
  border-color: rgba(86, 129, 79, 0.1);
}

.gi-impact-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.gi-impact-dot.primary {
  background: var(--primary);
}

.gi-impact-dot.secondary {
  background: var(--secondary);
}

.gi-impact-text {
  font-weight: 500;
  color: var(--foreground);
}

.gi-impact-conclusion {
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
  font-size: 1.25rem;
  color: var(--foreground);
  line-height: 1.7;
}

/* CTA Section */
.gi-cta {
  padding: 6rem 1.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, rgba(0, 42, 101, 0.95) 50%, rgba(0, 42, 101, 0.9) 100%);
  position: relative;
  overflow: hidden;
  color: white;
  text-align: center;
}

.gi-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI2MCIgaGVpZ2h0PSI2MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAxMCAwIEwgMCAwIDAgMTAiIGZpbGw9Im5vbmUiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS1vcGFjaXR5PSIwLjA1IiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
  opacity: 0.4;
}

.gi-cta-content {
  position: relative;
  z-index: 10;
  max-width: 64rem;
  margin: 0 auto;
}

.gi-cta h2 {
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.gi-cta-description {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 3rem;
  max-width: 48rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
  .gi-hero {
    padding: 6rem 1rem 4rem;
  }

  .gi-stats,
  .gi-ways,
  .gi-detail-section,
  .gi-impact,
  .gi-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .gi-btn-group {
    flex-direction: column;
  }

  .gi-btn {
    width: 100%;
  }

  .gi-stats-grid,
  .gi-ways-grid,
  .gi-detail-grid {
    grid-template-columns: 1fr;
  }

  .gi-impact-grid {
    grid-template-columns: 1fr;
  }

  .gi-content-types {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
