/* ============================================
   impact.css — RCKC Impact Page
   ============================================ */

/* ── IMPACT HERO ADDITIONS ── */

/* 1. MANUAL CENTERING OVERRIDE */
.page-hero-content {
    max-width: 1200px !important;
    width: 100% !important;
    
    /* Force coordinate centering, ignoring flexbox */
    position: relative !important;
    left: 40% !important;
    transform: translateX(-50%) !important;
    
    /* Kill any conflicting margins */
    margin: 0 !important; 
    box-sizing: border-box !important;
}

/* 2. LIQUIDATE THE GRID: Force automatic wrapping and prevent horizontal overflow */
.impact-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 25px !important;
    width: 100% !important;
}

/* 3. NEUTRALIZE THE CARDS: Strip all hardcoded widths so they must obey the grid */
.impact-hero-stat {
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.impact-hero-stat:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* 3. Optical Centering for the Dollar Sign */
.impact-hero-stat .stat-value {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 6px;
    width: 100%;
}

.impact-hero-stat .stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.currency-symbol {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-gold);
    margin-right: 4px;
    /* Put it back in the normal flow */
    position: static; 
}

/* The Magic Counterweight */
.currency-balancer {
    display: inline-block;
    width: 1.6rem; /* Must roughly match the width of the $ */
    margin-left: 4px; /* Matches the margin-right of the $ */
    /* This element must be invisible */
    opacity: 0;
    pointer-events: none;
}

.impact-hero-stat .stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: auto;
}

.premium-stat .stat-number, 
.premium-stat .currency-symbol {
    color: #F9A01B;
    text-shadow: 0 0 20px rgba(249, 160, 27, 0.6);
}
/* ── IMPACT SUMMARY STRIP ── */
.impact-summary {
    background: white;
    padding: 50px 5%;
    border-bottom: 1px solid #f0f0f0;
}

.impact-summary-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.impact-summary-text .section-label {
    justify-content: flex-start;
}

.impact-summary-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
    margin: 15px 0;
}

.impact-summary-text h2 span {
    color: var(--accent-gold);
}

.impact-summary-text p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.impact-focus-areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.focus-area-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--bg-light);
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.focus-area-item:hover {
    border-color: var(--accent-gold);
    background: #fffdf5;
    transform: translateX(4px);
}

.focus-area-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    color: white;
}

.focus-area-icon.health { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.focus-area-icon.education { background: linear-gradient(135deg, #3498db, #2980b9); }
.focus-area-icon.water { background: linear-gradient(135deg, #1abc9c, #16a085); }
.focus-area-icon.youth { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.focus-area-icon.economic { background: linear-gradient(135deg, #f39c12, #e67e22); }
.focus-area-icon.peace { background: linear-gradient(135deg, #2ecc71, #27ae60); }
.focus-area-icon.environment {  background: linear-gradient(135deg, #009966, #006b47); }

.focus-area-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* Impact numbers grid */
.impact-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.impact-number-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.impact-number-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--accent-gold);
}

.impact-number-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.impact-number-card:hover::before {
    opacity: 1;
}

.impact-number-card .big-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
    margin-bottom: 6px;
}

.impact-number-card .big-number .accent {
    color: var(--accent-gold);
}

.impact-number-card .number-label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
}

.impact-number-card .number-icon {
    font-size: 3rem;
    position: absolute;
    bottom: -5px;
    right: -5px;
    opacity: 0.06;
    color: var(--primary-blue);
}

/* ── STICKY FILTER BAR ── */
.filter-bar {
    background: white;
    padding: 18px 5%;
    text-align: center;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 80px;
    z-index: 900;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: box-shadow 0.3s ease;
}

.filter-bar.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.filter-btn {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: var(--text-dark);
    padding: 10px 28px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-blue);
    transition: left 0.3s ease;
    z-index: -1;
}

.filter-btn:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.filter-btn.active {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: white;
    box-shadow: 0 4px 15px rgba(13, 115, 183, 0.3);
}

.filter-btn .filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
    margin-left: 8px;
    font-weight: 700;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Status filter pills */
.status-filters {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 0 5% 15px;
    background: white;
    flex-wrap: wrap;
}

.status-pill {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    opacity: 0.5;
}

.status-pill:hover,
.status-pill.active {
    opacity: 1;
    transform: scale(1.05);
}

.status-pill.all-status {
    background: #e0e0e0;
    color: #333;
}

.status-pill.completed {
    background: rgba(40, 167, 69, 0.15);
    color: #28a745;
}

.status-pill.progress {
    background: rgba(253, 172, 0, 0.15);
    color: #e09600;
}

.status-pill.approved {
    background: rgba(23, 162, 184, 0.15);
    color: #17a2b8;
}

.status-pill.planning {
    background: rgba(111, 66, 193, 0.15);
    color: #6f42c1;
}

/* ── YEAR / TIMELINE SECTIONS ── */
.year-section {
    padding: 60px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.year-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.year-badge {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(13, 115, 183, 0.3);
    white-space: nowrap;
    position: relative;
}

.year-badge .current-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
    animation: pulse-dot 2s ease infinite;
}

.year-line {
    flex-grow: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-gold), transparent);
}

.year-summary {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 30px;
    padding-left: 5px;
    border-left: 3px solid var(--accent-gold);
}

/* ── PROJECT CARDS GRID ── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px;
}

.impact-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
    opacity: 0;
    transform: translateY(30px);
}

.impact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.impact-card.hidden {
    display: none !important;
}

/* Card Image */
.card-img-wrapper {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.impact-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}

.card-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 50%);
    pointer-events: none;
}

/* Badges */
.badge-container {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    z-index: 2;
}

.badge {
    padding: 5px 14px;
    border-radius: 6px;
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.badge.grant {
    background: linear-gradient(135deg, var(--dark-blue), var(--primary-blue));
}

.badge.service {
    background: linear-gradient(135deg, var(--primary-blue), #2196F3);
}

.badge.status {
    font-size: 0.6rem;
    padding: 4px 12px;
    border-radius: 50px;
}

.badge.status.completed { background: #28a745; }
.badge.status.progress { background: #f0a500; color: #333; }
.badge.status.approved { background: #17a2b8; }
.badge.status.planning { background: #6f42c1; }

/* Impact metric on image */
.card-impact-metric {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.card-impact-metric .metric-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.card-impact-metric .metric-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Card Content */
.card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-category-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    margin-bottom: 15px;
    flex-shrink: 0;
}

.card-category-icon.health-icon { background: linear-gradient(135deg, #e74c3c, #c0392b); }
.card-category-icon.education-icon { background: linear-gradient(135deg, #3498db, #2980b9); }
.card-category-icon.dental-icon { background: linear-gradient(135deg, #1abc9c, #16a085); }
.card-category-icon.youth-icon { background: linear-gradient(135deg, #9b59b6, #8e44ad); }
.card-category-icon.community-icon { background: linear-gradient(135deg, #f39c12, #e67e22); }

.card-title {
    color: var(--dark-blue);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.impact-card:hover .card-title {
    color: var(--primary-blue);
}

.card-desc {
    color: var(--text-light);
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 18px;
}

/* Partner tag */
.card-partner {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary-blue);
    background: rgba(13, 115, 183, 0.08);
    padding: 5px 12px;
    border-radius: 50px;
    margin-bottom: 15px;
    width: fit-content;
}

.card-partner i {
    font-size: 0.65rem;
}

/* Card Meta */
.card-meta {
    margin-top: auto;
    border-top: 1px solid #f4f4f4;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-meta-left {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.78rem;
    color: var(--text-light);
}

.card-meta-left i {
    color: var(--accent-gold);
    margin-right: 4px;
}

.card-meta-left .meta-location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    color: var(--accent-gold);
    border-bottom-color: var(--accent-gold);
}

.read-more-btn i {
    transition: transform 0.3s ease;
    font-size: 0.7rem;
}

.read-more-btn:hover i {
    transform: translateX(4px);
}

/* ── IMPACT LOCATION MAP SECTION ── */
.impact-map-section {
    background: var(--dark-blue);
    padding: 80px 5%;
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-map-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 115, 183, 0.3), transparent);
    top: -200px;
    right: -100px;
}

.impact-map-inner {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.impact-map-text .section-label {
    justify-content: flex-start;
}

.impact-map-text .section-label span {
    color: rgba(255, 255, 255, 0.7);
}

.impact-map-text .section-label::before {
    background: var(--accent-gold);
}

.impact-map-text h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin: 15px 0;
}

.impact-map-text h2 span {
    color: var(--accent-gold);
}

.impact-map-text p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 25px;
}

.location-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.location-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 18px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.location-tag:hover {
    background: rgba(253, 172, 0, 0.15);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

.location-tag i {
    color: var(--accent-gold);
    font-size: 0.75rem;
}

/* ── Map Visual Container ── */
.impact-map-visual {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Map Container */
.impact-map-container {
    width: 100%;
    height: 420px;
    border-radius: 24px 24px 0 0;
    z-index: 1;
}

/* Override Leaflet's default styles to match our theme */
.impact-map-container .leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.impact-map-container .leaflet-control-zoom a {
    background: rgba(0, 51, 102, 0.9) !important;
    color: white !important;
    border: none !important;
    width: 36px !important;
    height: 36px !important;
    line-height: 36px !important;
    font-size: 16px !important;
    transition: background 0.2s ease;
}

.impact-map-container .leaflet-control-zoom a:hover {
    background: var(--accent-gold) !important;
}

.impact-map-container .leaflet-control-zoom-in {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Attribution styling */
.impact-map-container .leaflet-control-attribution {
    background: rgba(0, 51, 102, 0.85) !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-size: 10px !important;
    padding: 3px 8px !important;
    border-radius: 8px 0 0 0 !important;
}

.impact-map-container .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Custom Popup Styling */
.leaflet-popup-content-wrapper {
    background: white !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25) !important;
    padding: 0 !important;
    overflow: hidden;
    min-width: 220px;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Poppins', sans-serif !important;
}

.leaflet-popup-tip {
    background: white !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-close-button {
    color: #666 !important;
    font-size: 20px !important;
    width: 28px !important;
    height: 28px !important;
    padding: 4px !important;
    top: 6px !important;
    right: 6px !important;
    z-index: 10;
}

.leaflet-popup-close-button:hover {
    color: var(--primary-blue) !important;
}

/* Map Popup Inner Content */
.map-popup {
    padding: 0;
}

.map-popup-header {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.map-popup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.map-popup-icon.health { background: rgba(231, 76, 60, 0.2); color: #e74c3c; }
.map-popup-icon.education { background: rgba(52, 152, 219, 0.2); color: #3498db; }
.map-popup-icon.dental { background: rgba(46, 204, 113, 0.2); color: #2ecc71; }
.map-popup-icon.community { background: rgba(155, 89, 182, 0.2); color: #9b59b6; }
.map-popup-icon.youth { background: rgba(243, 156, 18, 0.2); color: #f39c12; }

.map-popup-header h4 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
}

.map-popup-body {
    padding: 14px 18px;
}

.map-popup-body p {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: #555;
    line-height: 1.6;
}

.map-popup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.map-popup-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.map-popup-tag.grant {
    background: rgba(243, 156, 18, 0.1);
    color: #e67e22;
}

.map-popup-tag.service {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.map-popup-tag.status-completed {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
}

.map-popup-tag.status-progress {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
}

.map-popup-tag.status-planning {
    background: rgba(155, 89, 182, 0.1);
    color: #8e44ad;
}

/* Compact Stats Bar Below Map */
.map-stats-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 18px 25px;
    background: rgba(255, 255, 255, 0.06);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 24px 24px;
}

.map-stats-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    flex: 1;
    text-align: center;
}

.map-stats-bar-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.map-stats-bar-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: rgba(255, 255, 255, 0.45);
}

.map-stats-bar-divider {
    width: 1px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* ── Custom Map Markers ── */
.rckc-map-marker {
    background: none !important;
    border: none !important;
}

.marker-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-pin-inner {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-gold), #e6950a);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(247, 168, 35, 0.5);
    border: 3px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marker-pin-inner i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

.marker-pin:hover .marker-pin-inner {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 25px rgba(247, 168, 35, 0.7);
}

.marker-pulse {
    width: 14px;
    height: 14px;
    background: rgba(247, 168, 35, 0.3);
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(3);
        opacity: 0;
    }
}

/* ── Map Section Responsive ── */
@media (max-width: 900px) {
    .page-hero-content {
        /* As the screen shrinks, 40% will start looking too far left. 
           We nudge it closer to true center to maintain the illusion. */
        left: 48% !important; 
    }
    
    .impact-hero-stats {
        /* Force the 4 cards into a perfect 2x2 grid */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
    .impact-map-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .impact-map-container {
        height: 350px;
    }

   
}

@media (max-width: 600px) {
    .impact-map-section {
        padding: 50px 5%;
    }

    .impact-map-container {
        height: 300px;
    }

    .impact-map-text h2 {
        font-size: 1.6rem;
    }

    .map-stats-bar {
        padding: 14px 15px;
        flex-wrap: wrap;
        gap: 12px;
    }

    .map-stats-bar-divider {
        display: none;
    }

    .map-stats-bar-item {
        min-width: 40%;
    }

    .map-stats-bar-number {
        font-size: 1.2rem;
    }

    .location-tags {
        justify-content: center;
    }
}
/* ── TESTIMONIAL / QUOTE ── */
.impact-quote-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8ecf1 100%);
    padding: 80px 5%;
}

.impact-quote-inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.quote-marks {
    font-size: 4rem;
    color: var(--accent-gold);
    line-height: 1;
    margin-bottom: 10px;
    opacity: 0.4;
}

.impact-quote-text {
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--dark-blue);
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 25px;
}

.quote-attribution {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.quote-avatar {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-gold);
}

.quote-info {
    text-align: left;
}

.quote-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue);
}

.quote-role {
    font-size: 0.78rem;
    color: var(--text-light);
}

/* ── IMPACT CTA ── */
.impact-cta {
    background: linear-gradient(135deg, var(--primary-blue), var(--dark-blue));
    padding: 80px 5%;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.impact-cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(253, 172, 0, 0.1), transparent);
    bottom: -300px;
    left: -200px;
}

.impact-cta h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.impact-cta p {
    font-size: 1.05rem;
    opacity: 0.85;
    max-width: 650px;
    margin: 0 auto 30px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.impact-cta .cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── NO RESULTS STATE ── */
.no-results {
    text-align: center;
    padding: 60px 20px;
    display: none;
}

.no-results.visible {
    display: block;
}

.no-results i {
    font-size: 3rem;
    color: #ddd;
    margin-bottom: 15px;
}

.no-results h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.no-results p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ── Custom Map Markers ── */
.rckc-map-marker {
    background: none !important;
    border: none !important;
}

.marker-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.marker-pin-inner {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--accent-gold), #e6950a);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(247, 168, 35, 0.5);
    border: 3px solid white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.marker-pin-inner i {
    transform: rotate(45deg);
    color: white;
    font-size: 14px;
}

.marker-pin:hover .marker-pin-inner {
    transform: rotate(-45deg) scale(1.15);
    box-shadow: 0 6px 25px rgba(247, 168, 35, 0.7);
}

.marker-pulse {
    width: 14px;
    height: 14px;
    background: rgba(247, 168, 35, 0.3);
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    animation: map-pulse 2s ease-out infinite;
}

@keyframes map-pulse {
    0% {
        transform: translateX(-50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translateX(-50%) scale(3);
        opacity: 0;
    }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .impact-summary-inner,
    .impact-map-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .impact-numbers-grid {
        max-width: 500px;
    }

    .impact-map-visual {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    /* .impact-hero-stats {
        gap: 15px;
    } */

    .impact-hero-stats {
        gap: 20px;
    }
    .impact-hero-stat {
        flex: 1 1 40%; /* Creates a perfect 2x2 grid on tablets */
        max-width: none;
        padding: 15px 20px;
        min-width: 120px;
    }

    .impact-hero-stat .stat-number {
        font-size: 1.8rem;
    }

    .impact-focus-areas {
        grid-template-columns: 1fr;
    }

    .impact-numbers-grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .filter-bar {
        top: 70px;
        padding: 12px 5%;
        gap: 8px;
    }

    .filter-btn {
        font-size: 0.78rem;
        padding: 8px 18px;
    }

    .impact-map-inner {
        grid-template-columns: 1fr;
    }

    .impact-quote-text {
        font-size: 1.1rem;
    }

    .impact-cta h2 {
        font-size: 1.8rem;
    }

    .year-badge {
        font-size: 1.1rem;
        padding: 8px 20px;
    }

    .card-img-wrapper {
        height: 200px;
    }

    .location-tags {
        justify-content: center;
    }
}


@media (max-width: 480px) {
    .page-hero-content {
        /* Keep your manual hack active, but recalibrate the anchor for narrow screens */
        left: 50% !important; 
        transform: translateX(-50%) !important;
        
        /* Force the box to shrink so it doesn't overflow the phone screen */
        width: 92% !important; 
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .impact-hero-stats {
        /* Stack the cards into a single column so they fit inside the new narrow box */
        grid-template-columns: 1fr !important;
    }
    
    /* Optional: Shrink the numbers slightly so they don't crowd the mobile box */
    .impact-hero-stat .stat-number {
        font-size: 2.2rem !important;
    }

    .impact-hero-stat {
        width: 85%; 
        flex: none; /* Turns off flex-sizing so width is strictly respected */
        margin: 0 auto; /* Forces perfect centering */
    }

    .impact-numbers-grid {
        grid-template-columns: 1fr;
    }

    .impact-number-card .big-number {
        font-size: 2.2rem;
    }
}

/* ============================================
   FUNDING & GRANTS SHOWCASE
============================================ */
.funding-showcase {
    padding: 80px 5% 90px;
    background: linear-gradient(180deg, #f8f9fc 0%, #ffffff 40%, #f8f9fc 100%);
    position: relative;
}

.funding-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg,
        var(--primary-blue),
        var(--accent-gold),
        var(--primary-blue)
    );
}

.funding-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.funding-header {
    text-align: center;
    margin-bottom: 50px;
}

.funding-header .section-title {
    font-size: 2.4rem;
    color: var(--dark-blue);
    margin-top: 8px;
}

.funding-header .section-title span {
    color: var(--accent-gold);
}

.funding-header .section-subtitle {
    max-width: 650px;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ---- Hero Funding Numbers ---- */
.funding-hero-numbers {
    display: flex;
    gap: 30px;
    margin-bottom: 60px;
    align-items: stretch;
}

/* Big primary card */
.funding-hero-card-primary-card {
    flex: 1;
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.funding-card-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 168, 35, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.funding-card-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--warm-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: white;
    margin-bottom: 20px;
    box-shadow: 0 8px 30px rgba(247, 168, 35, 0.3);
}

.funding-hero-amount {
    font-size: 3.2rem;
    font-weight: 900;
    color:  var(--dark-blue);
    letter-spacing: -1px;
    line-height: 1;
    margin-bottom: 8px;
}

.funding-hero-label {
    font-size: 1.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color:  var(--text-light);
    margin-bottom: 4px;
}

.funding-hero-sublabel {
    font-size: 1rem;
    color:  var(--text-light);
    font-style: italic;
}

/* Side cards stack */
.funding-hero-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.funding-side-card {
    flex: 1;
    background: white;
    border-radius: 16px;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.funding-side-card:hover {
    box-shadow: 0 8px 32px rgba(0, 61, 100, 0.08);
    transform: translateY(-2px);
}

.funding-side-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.funding-side-icon.deployed {
    background: linear-gradient(135deg, #0061a2, #0083d6);
}

.funding-side-icon.grants {
    background: linear-gradient(135deg, var(--accent-gold), var(--warm-gold));
}

.funding-side-icon.partners {
    background: linear-gradient(135deg, #2d8a4e, #34a853);
}

.funding-side-amount {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.1;
}

.funding-side-label {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 2px;
}

/* ---- Grant Pipeline ---- */
.grant-pipeline {
    margin-bottom: 60px;
}

.pipeline-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pipeline-title i {
    color: var(--accent-gold);
    font-size: 1.1rem;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Individual grant card */
.grant-card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.grant-card:hover {
    box-shadow: 0 10px 40px rgba(0, 61, 100, 0.08);
    transform: translateY(-4px);
}

/* Colored top accent bar */
.grant-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.grant-card-accent.education {
    background: linear-gradient(90deg, #0061a2, #0083d6);
}

.grant-card-accent.youth {
    background: linear-gradient(90deg, var(--accent-gold), var(--warm-gold));
}

.grant-card-accent.service {
    background: linear-gradient(90deg, #2d8a4e, #34a853);
}

/* Card header with badges */
.grant-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.grant-type-badge {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.grant-type-badge.global {
    background: rgba(0, 97, 162, 0.08);
    color: var(--primary-blue);
}

.grant-type-badge.service {
    background: rgba(45, 138, 78, 0.08);
    color: #2d8a4e;
}

.grant-status {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.grant-status.proposed {
    background: rgba(247, 168, 35, 0.1);
    color: var(--accent-gold);
}

.grant-status.in-progress {
    background: rgba(0, 97, 162, 0.1);
    color: var(--primary-blue);
}

.grant-status.completed {
    background: rgba(45, 138, 78, 0.1);
    color: #2d8a4e;
}

.grant-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.grant-desc {
    font-size: 0.88rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

/* Amount row */
.grant-amount-row {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.grant-amount,
.grant-source {
    flex: 1;
}

.amount-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 4px;
}

.amount-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark-blue);
}

.source-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-medium);
    display: flex;
    align-items: center;
    gap: 6px;
}

.source-value i {
    color: var(--primary-blue);
    font-size: 0.8rem;
}

/* Service summary card stats */
.service-funding-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.service-stat {
    flex: 1;
    text-align: center;
}

.service-stat-number {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark-blue);
    line-height: 1.2;
}

.service-stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Progress bar */
.grant-progress-section {
    margin-bottom: 16px;
}

.grant-progress-bar {
    width: 100%;
    height: 8px;
    background: #f0f2f5;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.grant-progress-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--primary-blue), #0083d6);
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.grant-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3));
    border-radius: 0 10px 10px 0;
}

.grant-progress-fill.full {
    background: linear-gradient(90deg, #2d8a4e, #34a853);
}

.grant-progress-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-light);
}

/* Link */
.grant-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.2s ease;
    margin-top: auto;
}

.grant-link:hover {
    color: var(--accent-gold);
    gap: 10px;
}

.grant-link i {
    font-size: 0.7rem;
}

/* ---- Funding Sources ---- */
.funding-sources {
    margin-bottom: 50px;
}

.sources-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 30px;
}

.sources-grid {
    display: flex;
    flex-wrap: wrap;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    justify-content: center;
}

.source-card {
    background: white;
    border-radius: 16px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    flex: 1 1 calc(25% - 30px);
    min-width: 260px;
    max-width: 280px; 
}

.source-card:hover {
    box-shadow: 0 8px 32px rgba(0, 61, 100, 0.08);
    transform: translateY(-4px);
}

.source-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    margin: 0 auto 16px;
}

.source-icon.trf {
    background: linear-gradient(135deg, var(--primary-blue), #0083d6);
}

.source-icon.clubs {
    background: linear-gradient(135deg, var(--accent-gold), var(--warm-gold));
}

.source-icon.members {
    background: linear-gradient(135deg, #e74c3c, #ff6b6b);
}

.source-icon.district {
    background: linear-gradient(135deg, #2d8a4e, #34a853);
}

.source-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 8px;
}

.source-card p {
    font-size: 0.82rem;
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: 14px;
}

.source-tag {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    border-radius: 50px;
    background: rgba(0, 61, 100, 0.05);
    color: var(--primary-blue);
}

/* ---- Funding CTA Banner ---- */
.funding-cta {
    background: linear-gradient(135deg, var(--dark-blue), var(--navy));
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.funding-cta::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(247, 168, 35, 0.1), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.funding-cta::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(0, 97, 162, 0.15), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.funding-cta-content {
    display: flex;
    align-items: center;
    gap: 28px;
    position: relative;
    z-index: 1;
}

.funding-cta-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-gold), var(--warm-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 6px 20px rgba(247, 168, 35, 0.3);
}

.funding-cta-text {
    flex: 1;
}

.funding-cta-text h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color:var(--dark-blue);
    margin-bottom: 4px;
}

.funding-cta-text p {
    font-size: 0.9rem;
    color:  var(--text-medium);
    margin: 0;
}

.funding-cta-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-gold), var(--warm-gold));
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(247, 168, 35, 0.3);
}

.funding-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(247, 168, 35, 0.4);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .funding-hero-numbers {
        flex-direction: column;
    }

    .funding-hero-card.primary-card {
        min-height: 220px;
        padding: 40px 30px;
    }

    .funding-hero-amount {
        font-size: 2.6rem;
    }

    .funding-hero-label {
        font-size: 1.8rem;
        
    }
    
    .funding-hero-sublabel {
        font-size: 1rem;
     }

    .funding-hero-side {
        flex-direction: row;
        gap: 12px;
    }

    .pipeline-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .funding-cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .funding-showcase {
        padding: 60px 5% 70px;
    }

    .funding-header .section-title {
        font-size: 1.8rem;
    }

    .funding-hero-side {
        flex-direction: column;
    }

    .funding-hero-amount {
        font-size: 2.2rem;
    }

    .funding-hero-label {
        font-size: 1.5rem;
        
    }
    
    .funding-hero-sublabel {
        font-size: 1rem;
     }

    .funding-side-amount {
        font-size: 1.4rem;
    }

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

    .grant-amount-row {
        flex-direction: column;
        gap: 12px;
    }

    .service-funding-stats {
        flex-direction: column;
        gap: 12px;
    }

    .funding-cta {
        padding: 30px 24px;
    }
}

@media (max-width: 480px) {
    .funding-header .section-title {
        font-size: 1.5rem;
    }

    .funding-hero-card.primary-card {
        padding: 30px 20px;
        min-height: 180px;
    }

    .funding-hero-amount {
        font-size: 2rem;
    }

    .funding-hero-label {
        font-size: 1.5rem;
        
    }
    
    .funding-hero-sublabel {
        font-size: 1rem;
     }

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

    .amount-value {
        font-size: 1.1rem;
    }
}