/* ============================================
   Our Impact Stats Section - Modern Cards
   ============================================ */

.impact-section {
    padding: 30px 20px;
    margin: 30px 0;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
}

.impact-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(63, 177, 163, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.impact-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(244, 140, 165, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.impact-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.impact-header h2 {
    font-size: 2.5em;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: #333;
}

.impact-header h2 strong {
    color: rgba(255, 0, 60, 0.85);
    font-weight: 700;
}

.impact-header p {
    font-size: 1.1em;
    color: #7c8081;
    max-width: 600px;
    margin: 0 auto;
}

.impact-cards {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.impact-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    width: 280px;
    height: 320px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(244, 140, 165, 0.12);
    transition: all 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.impact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #F48CA5 0%, rgba(244, 140, 165, 0.7) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms ease;
}



/* Counter Number - With Rolling Effect */
.counter-number {
    font-size: 3.5em;
    font-weight: 700;
    color: #F48CA5;
    margin: 10px 0;
    display: block;
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: all 400ms ease;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
    flex-shrink: 0;
}

.impact-card-title {
    font-size: 0.9em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 0, 60, 0.85);
    margin: 0 0 15px 0;
    flex-shrink: 0;
}

.impact-card-description {
    font-size: 0.95em;
    color: #7c8081;
    line-h: 10px 0 0 0;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

/* ============================================
   Posts/Updates Section - Enhanced Cards
   ============================================ */

.posts-section {
    padding: 30px 0;
    background: #f3f6fa;
    margin-top: 30px;
}

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

.posts-header h2 {
    font-size: 2.2em;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 15px;
    color: #333;
}

.posts-header h2 strong {
    color: rgba(255, 0, 60, 0.85);
    font-weight: 700;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 350ms cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
}

.post-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #3fb1a3 0%, #83d3c9 100%);
    position: relative;
    overflow: hidden;
}

.post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 400ms ease;
}

.post-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3em;
    background: linear-gradient(135deg, #3fb1a3 0%, #83d3c9 100%);
}

.post-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-date {
    font-size: 0.85em;
    color: rgba(255, 0, 60, 0.75);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.post-content h3 {
    font-size: 1.3em;
    margin: 10px 0 15px 0;
    color: #333;
    font-weight: 400;
    letter-spacing: 0.05em;
}

.post-content p {
    font-size: 0.95em;
    color: #7c8081;
    margin: 0 0 20px 0;
    line-height: 1.6;
    flex-grow: 1;
}

.post-button {
    align-self: flex-start;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid #3fb1a3;
    border-radius: 4px;
    color: #3fb1a3;
    text-decoration: none;
    font-size: 0.9em;
    font-weight: 600;
    transition: all 250ms ease;
    display: inline-block;
}

.post-button:hover {
    background: #3fb1a3;
    color: white;
    border-color: #3fb1a3;
}

/* ============================================
   Social Icons with Font Awesome
   ============================================ */

.social-icons-modern {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding: 0.5rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.social-icons-modern a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F48CA5;
    text-decoration: none;
    transition: all 240ms ease;
    color: white;
    font-size: 1.4em;
}

.social-icons-modern a:hover,
.social-icons-modern a:focus {
    background: #83d3c9;
    transform: translateY(-4px) scale(1.03);
}

.social-icons-modern a i {
    transition: transform 240ms ease;
}

.social-icons-modern a:hover i,
.social-icons-modern a:focus i {
    transform: scale(1.08) rotate(-6deg);
}

/* Specific brand colors (optional) */
.social-icons-modern a.instagram {
    background: #E4405F;
}

.social-icons-modern a.instagram:hover {
    background: #83d3c9;
}

.social-icons-modern a.linkedin {
    background: #0A66C2;
}

.social-icons-modern a.linkedin:hover {
    background: #83d3c9;
}

.social-icons-modern a.facebook {
    background: #1877F2;
}

.social-icons-modern a.facebook:hover {
    background: #83d3c9;
}

/* ============================================
   Responsive Design
   ============================================ */

@media screen and (max-width: 980px) {
    .impact-cards {
        gap: 30px;
        padding: 0 15px;
    }

    .impact-card {
        width: 280px;
        padding: 30px 25px;
    }

    .counter-number {
        font-size: 2.8em;
    }

    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 15px;
    }

    .social-icons-modern a {
        width: 48px;
        height: 48px;
        font-size: 1.2em;
    }
}

@media screen and (max-width: 736px) {
    .impact-section {
        padding: 40px 15px;
        margin: 40px 0;
    }

    .impact-header h2 {
        font-size: 1.8em;
    }

    .impact-header {
        max-width: 100%;
        padding: 0 10px;
    }

    .impact-cards {
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0 10px;
    }

    .impact-card {
        width: 100%;
        max-width: 320px;
        padding: 30px 25px;
        flex-shrink: 0;
    }

    .impact-card:nth-child(2) {
        margin-top: 0;
    }

    .counter-number {
        font-size: 2.2em;
    }

    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .post-card {
        margin-bottom: 10px;
    }

    .post-image {
        height: 180px;
    }

    .social-icons-modern {
        gap: 0.6rem;
        padding: 0.6rem 0;
    }

    .social-icons-modern a {
        width: 44px;
        height: 44px;
        font-size: 1.1em;
    }
}

@media screen and (max-width: 480px) {
    .impact-section {
        padding: 30px 10px;
    }

    .impact-header h2 {
        font-size: 1.6em;
    }

    .impact-header p {
        font-size: 0.95em;
        padding: 0 10px;
    }

    .impact-cards {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 5px;
    }

    .impact-card {
        width: 100%;
        max-width: 100%;
        padding: 25px 20px;
        flex-shrink: 0;
    }

    .counter-number {
        font-size: 2em;
    }

    .impact-card-title {
        font-size: 0.85em;
    }

    .impact-card-description {
        font-size: 0.9em;
    }

    .posts-header h2 {
        font-size: 1.6em;
    }

    .post-image {
        height: 150px;
    }

    .post-content {
        padding: 20px;
    }

    .post-content h3 {
        font-size: 1.1em;
    }

    .social-icons-modern a {
        width: 40px;
        height: 40px;
        font-size: 0.95em;
    }
}