/* =========================================================
   INDIA IMPACT SECTION — SCOPED STYLES
   All rules are namespaced under .india-impact so this can be
   dropped into an existing page without touching global styles.
========================================================= */

.india-impact {

    --brand: #2d3782;
    --brand-accent: #c7783e;
    --map-grey: #6f9c76;
    --map-border: #ffffff;
    --text-dark: #222222;
    --text-light: #666666;
    --white: #ffffff;
    --border-soft: #e6e6e6;
    --space-gap: clamp(28px, 4vw, 56px);

    width: 100%;
    padding: var(--space-section) 0;
    background: var(--white);
    overflow: hidden;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text-dark);
    padding-bottom: 80px;

}

.india-impact *,
.india-impact *::before,
.india-impact *::after {
    box-sizing: border-box;
}


/* =========================================================
   MAIN CONTAINER
========================================================= */

.india-impact .india-container {

    /* width: 92%;
    max-width: 1240px; */
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.85fr);
    align-items: stretch;
    gap: var(--space-gap);

}


/* =========================================================
   LEFT MAP COLUMN
========================================================= */

.india-impact .map-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.india-impact .map-heading {
    max-width: 560px;
    margin-bottom: 8px;
}

.india-impact .eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-accent);
}

.india-impact .map-heading h2 {
    margin: 0 0 10px;
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.2;
    font-weight: 700;
    color: var(--brand);
    text-transform: uppercase;
}

.india-impact .map-heading p {
    margin: 0;
    max-width: 520px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--text-light);
}


/* =========================================================
   MAP AREA
   Height driven by aspect-ratio rather than a tall fixed px
   value, so the section stays compact at every width.
========================================================= */

.india-impact .map-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4 / 3.15;
    margin: 4px auto 0;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.india-impact #india-map {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: contain;
}


/* =========================================================
   TOOLTIP
========================================================= */

.india-impact .map-tooltip {

    position: absolute;
    left: 0;
    top: 0;
    width: 220px;
    padding: 13px 15px;
    background: #20242f;
    color: #ffffff;
    border-radius: 6px;
    box-shadow: 0 12px 28px rgba(20, 24, 40, 0.22);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.15s ease, transform 0.15s ease;
    pointer-events: none;
    z-index: 20;

}

.india-impact .map-tooltip::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background: inherit;
    left: var(--tooltip-arrow-x, 16px);
    bottom: -4px;
    transform: rotate(45deg);
    border-radius: 2px;
    display: var(--tooltip-arrow-display, block);
}

.india-impact .map-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.india-impact .map-tooltip h4 {
    margin: 0 0 5px;
    font-size: 14.5px;
    line-height: 1.3;
    font-weight: 700;
    color: #ffffff;
}

.india-impact .map-tooltip p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #d7d9e2;
}

.india-impact .map-note {
    margin-top: 10px;
    font-size: 12.5px;
    color: #838690;
}


/* =========================================================
   RIGHT IMPACT COLUMN
========================================================= */

.india-impact .impact-column {
    padding-left: clamp(20px, 2.5vw, 32px);
    border-left: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.india-impact .impact-heading {
    margin-bottom: 22px;
}

.india-impact .impact-heading h3 {
    max-width: 320px;
    margin: 0;
    font-size: clamp(19px, 1.8vw, 22px);
    line-height: 1.35;
    font-weight: 600;
    color: var(--brand);
}


/* =========================================================
   LEGEND
========================================================= */

.india-impact .map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 24px;
}

.india-impact .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--text-light);
}

.india-impact .legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex: 0 0 auto;
}

.india-impact .legend-swatch--active {
    background: var(--brand-accent);
}

.india-impact .legend-swatch--default {
    background: var(--map-grey);
}


/* =========================================================
   IMPACT ITEM
========================================================= */

.india-impact .impact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.india-impact .impact-item {
    padding: 14px 0;
    border-bottom: 1px solid #eeeeee;
}

.india-impact .impact-item:nth-last-child(-n+2) {
    border-bottom: 0;
}

.india-impact .impact-number {
    font-size: clamp(26px, 2.6vw, 32px);
    line-height: 1;
    font-weight: 700;
    color: var(--brand);
}

.india-impact .impact-number span {
    color: var(--brand-accent);
    font-size: 0.68em;
    margin-left: 2px;
}

.india-impact .impact-label {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #6b6e76;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .india-impact .india-container {
        grid-template-columns: minmax(0, 1.3fr) minmax(240px, 0.85fr);
    }

    .india-impact .impact-column {
        padding-left: 22px;
    }

}


/* =========================================================
   MOBILE / TABLET — IMPACT GRID DIVIDERS
========================================================= */

@media (max-width: 768px) {

    .india-impact .impact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0;
    }

    .india-impact .impact-item {
        padding: 20px 14px;
        border-bottom: 1px solid #a5aff7;
    }

    /* Vertical divider between columns */
    .india-impact .impact-item:nth-child(odd) {
        border-right: 1px solid #a5aff7;
    }

    /* Remove bottom border from last row */
    .india-impact .impact-item:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .india-impact .india-container {
        width: 90%;
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .india-impact .map-wrapper {
        max-width: 380px;
        aspect-ratio: 4 / 3.4;
        margin-top: 6px;
    }

    .india-impact .impact-column {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid var(--border-soft);
        padding-top: 28px;
    }

    .india-impact .map-tooltip {
        display: none;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .india-impact {
        padding: 60px 0;
    }

    .india-impact .india-container {
        width: 100%;
    }

    .india-impact .map-wrapper {
        max-width: 320px;
    }

    .india-impact .impact-item {
        padding: 18px 30px;
    }

}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    .india-impact .map-tooltip,
    .india-impact [style*="transition"] {
        transition: none !important;
    }
}