/**
 * =====================================================
 * BARAKA HEALTHNET - IMPACT STATISTICS STYLES
 * Path: assets/css/impact.css
 * =====================================================
 */

:root {
    --bhn-green-dark: #0a5628;
    --bhn-green-badge: #e8f3ec;
    --bhn-orange: #ea580c;
    --bhn-text-main: #1b2e23;
    --bhn-text-muted: #5c6e64;
    --bhn-card-bg: #ffffff;
    --bhn-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Base Section Structure */
.impact-section,
section.impact-section {
    position: relative;
    padding: 80px 20px 100px 20px;
    background-color: #fdfdfd;
    overflow: hidden;
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--bhn-text-main);
    width: 100%;
    box-sizing: border-box;
}

.impact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

/* =====================================================
   HEADER STYLES
   ===================================================== */
.impact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.impact-subtitle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sub-line {
    width: 45px;
    height: 2px;
    background-color: var(--bhn-green-dark);
}

.sub-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--bhn-orange);
}

.impact-subtitle {
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--bhn-green-dark);
    text-transform: uppercase;
}

.impact-header h2 {
    font-size: 38px;
    font-weight: 800;
    color: var(--bhn-green-dark);
    line-height: 1.25;
    margin: 0 0 16px 0;
}

.impact-header h2 span {
    color: var(--bhn-orange);
}

.impact-header p {
    font-size: 16px;
    color: var(--bhn-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =====================================================
   GERMAN DOCTORS EXTRA-LARGE PARTNER BADGE
   ===================================================== */
body.baraka-healthnet .partner-support-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 32px !important;
    background: #ffffff !important;
    padding: 22px 42px !important;
    border-radius: 20px !important;
    border: 2px solid rgba(10, 86, 40, 0.25) !important;
    box-shadow: 0 12px 35px rgba(10, 86, 40, 0.1) !important;
    margin: 30px 0 35px 0 !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

body.baraka-healthnet .partner-support-badge:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 18px 45px rgba(10, 86, 40, 0.16) !important;
    border-color: #0a5628 !important;
}

body.baraka-healthnet .partner-label {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 4px !important;
}

body.baraka-healthnet .partner-subtext {
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #ea580c !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
}

body.baraka-healthnet .partner-maintext {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #0a5628 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.1 !important;
}

body.baraka-healthnet .partner-accent-line {
    width: 50px !important;
    height: 3px !important;
    background-color: #ea580c !important;
    border-radius: 3px !important;
    margin-top: 4px !important;
}

body.baraka-healthnet .partner-logo-box {
    display: flex !important;
    align-items: center !important;
    padding-left: 28px !important;
    border-left: 3px solid #e8f3ec !important;
}

/* MAX-VISIBILITY LOGO (110px height for crystal-clear readability) */
body.baraka-healthnet .partner-logo-box img {
    height: 110px !important;
    width: auto !important;
    max-height: 110px !important;
    display: block !important;
    object-fit: contain !important;
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    body.baraka-healthnet .partner-support-badge {
        flex-direction: column !important;
        gap: 16px !important;
        padding: 20px 24px !important;
    }

    body.baraka-healthnet .partner-label {
        align-items: center !important;
    }

    body.baraka-healthnet .partner-logo-box {
        padding-left: 0 !important;
        border-left: none !important;
        padding-top: 16px !important;
        border-top: 3px solid #e8f3ec !important;
    }

    body.baraka-healthnet .partner-logo-box img {
        height: 85px !important;
    }
}
/* =====================================================
   GRID & SVG ICON FIXES (CRITICAL)
   ===================================================== */
.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.impact-card {
    background: var(--bhn-card-bg);
    border-radius: 20px;
    padding: 40px 20px 30px 20px;
    text-align: center;
    box-shadow: var(--bhn-card-shadow);
    border: 1px solid rgba(10, 86, 40, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.08);
}

/* Restrict Icon Wrapper Container */
.impact-icon-badge,
.impact-card .impact-icon-badge {
    width: 90px !important;
    height: 90px !important;
    min-width: 90px !important;
    min-height: 90px !important;
    max-width: 90px !important;
    max-height: 90px !important;
    background-color: var(--bhn-green-badge);
    border-radius: 50%;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 24px auto !important;
    flex-shrink: 0 !important;
}

/* Restrict SVG Elements Directly */
.impact-card svg,
.impact-icon-badge svg,
.custom-icon-svg {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    min-width: 48px !important;
    min-height: 48px !important;
    display: block !important;
    margin: 0 auto !important;
}

/* Numbers & Text */
.impact-counter {
    font-size: 36px;
    font-weight: 800;
    color: var(--bhn-green-dark);
    margin-bottom: 6px;
    line-height: 1;
}

.impact-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--bhn-orange);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.impact-card p {
    font-size: 14px;
    color: var(--bhn-text-muted);
    line-height: 1.55;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.card-bottom-line {
    width: 36px;
    height: 3px;
    background-color: var(--bhn-green-dark);
    border-radius: 3px;
    margin-top: auto;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
   ===================================================== */
@media (max-width: 1024px) {
    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .impact-grid {
        grid-template-columns: 1fr;
    }
    
    .impact-header h2 {
        font-size: 28px;
    }
}