/* impact-section.css */

.ams-impact-section {
    position: relative;
    padding: 20px 0 100px 0; /* Reduced top padding to fix huge gap */
    background-color: var(--ams-white, #fff); /* Changed to white to contrast with pipeline's gray */
    font-family: var(--ams-body-font, sans-serif);
    overflow: hidden;
}

/* Background Decor */
.ams-impact-bg-decor {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(14, 136, 211, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(240, 39, 74, 0.03) 0%, transparent 50%);
    z-index: 1;
    pointer-events: none;
}

.ams-impact-container {
    max-width: var(--ams-container-width, 1320px);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
.ams-impact-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

.ams-impact-header .ams-section-label {
    display: inline-block;
    color: var(--ams-accent-red, #F0274A);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.ams-impact-header .ams-section-heading {
    font-family: var(--ams-heading-font, sans-serif);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
    color: var(--ams-dark-blue, #1357D5);
    margin-top: 0;
    margin-bottom: 20px;
}

.ams-impact-header .ams-section-description {
    font-size: 18px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Grid Layout */
.ams-impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* Premium Card Design */
.ams-impact-card {
    background: var(--ams-white, #fff);
    border-radius: 16px;
    padding: 45px 30px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.04);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(14, 136, 211, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background-clip: padding-box;
    
    /* Animation initial state */
    opacity: 0;
    transform: translateY(40px);
}

/* Animation triggered by JS */
.ams-impact-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.ams-impact-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(14, 136, 211, 0.12);
    border-color: rgba(14, 136, 211, 0.2);
}

/* Hover glow effect */
.ams-impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--ams-primary-blue, #0E88D3), var(--ams-accent-red, #F0274A));
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ams-impact-card:hover::before {
    opacity: 1;
}

/* Icon Container */
.ams-impact-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(14, 136, 211, 0.1), rgba(14, 136, 211, 0.02));
    color: var(--ams-primary-blue, #0E88D3);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    transition: all 0.4s ease;
    box-shadow: inset 0 0 0 1px rgba(14, 136, 211, 0.1);
}

.ams-impact-card:hover .ams-impact-icon {
    background: linear-gradient(135deg, var(--ams-primary-blue, #0E88D3), #0a6babc2);
    color: var(--ams-white, #fff);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 10px 20px rgba(14, 136, 211, 0.2);
}

.ams-impact-icon svg {
    width: 36px;
    height: 36px;
}

/* Typography */
.ams-impact-title {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #718096;
    margin: 0 0 15px 0;
}

/* Emphasized Value Text */
.ams-impact-value {
    font-family: var(--ams-heading-font, sans-serif);
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 15px;
    background: linear-gradient(to right, var(--ams-dark-blue, #1357D5), var(--ams-primary-blue, #0E88D3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--ams-dark-blue, #1357D5); /* Fallback */
}

.ams-impact-desc {
    font-size: 15px;
    line-height: 1.6;
    color: #4a5568;
    margin: 0;
}

/* Responsive */

/* 1024px (Tablet Landscape) -> 2x2 Grid */
@media (max-width: 1024px) {
    .ams-impact-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* 768px (Tablet Portrait / Mobile) */
@media (max-width: 768px) {
    .ams-impact-header {
        margin-bottom: 40px;
    }
    .ams-impact-header .ams-section-heading {
        font-size: 32px;
    }
}

/* 576px (Small Mobile) -> 1 Column */
@media (max-width: 576px) {
    .ams-impact-grid {
        grid-template-columns: 1fr;
    }
    .ams-impact-card {
        padding: 30px 20px;
    }
    .ams-impact-value {
        font-size: 22px;
    }
}
