/* Impact Page Specific Styles */

/* Hero Section */
.impact-hero {
    background: url('/images/impact-hero.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    min-height: 500px;
    position: relative;
    overflow: hidden;
}

.impact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    pointer-events: none;
}

.impact-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(230, 57, 70, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: white;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.2);
}

/* Impact Stats Cards */
.impact-stat-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 57, 70, 0.1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.impact-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary), #ff8a8a);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.impact-stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.15);
    border-color: transparent;
}

.impact-stat-card:hover::before {
    transform: scaleX(1);
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(197, 48, 48, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.stat-icon i {
    font-size: 2.5rem;
    color: var(--bs-primary);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.stat-label {
    color: #6c757d;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Year Over Year Growth */
.growth-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
    height: 100%;
}

.growth-year {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

.growth-bar {
    height: 10px;
    background: rgba(230, 57, 70, 0.1);
    border-radius: 10px;
    margin: 1rem 0;
    position: relative;
}

.growth-fill {
    height: 10px;
    background: linear-gradient(90deg, var(--bs-primary), #ff8a8a);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

.growth-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

/* Impact Map */
.impact-map-container {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 30px;
    padding: 3rem;
    border: 1px solid rgba(230, 57, 70, 0.1);
    position: relative;
    overflow: hidden;
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.region-item {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 57, 70, 0.1);
}

.region-item:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.1);
}

.region-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.region-count {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

/* Success Stories Carousel */
.story-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
    margin: 1rem 0;
}

.story-image {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--bs-primary);
    margin: 0 auto 1.5rem;
}

.story-quote {
    font-size: 1.1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
}

.story-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--bs-primary);
    opacity: 0.2;
    position: absolute;
    top: -20px;
    left: -10px;
}

.story-author {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.2rem;
}

.story-location {
    color: #6c757d;
    font-size: 0.9rem;
}

.story-metric {
    display: inline-block;
    background: rgba(230, 57, 70, 0.1);
    color: var(--bs-primary);
    padding: 0.3rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 1rem;
}

/* Impact Categories */
.category-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(230, 57, 70, 0.1);
    height: 100%;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-primary-dark));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
    transform: rotate(0deg);
}

.category-icon i {
    transform: rotate(-45deg);
    transition: transform 0.3s ease;
}

.category-card:hover .category-icon i {
    transform: rotate(0deg);
}

.category-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.category-label {
    color: #333;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.category-stats {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0 0;
    text-align: left;
}

.category-stats li {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(230, 57, 70, 0.1);
}

.category-stats li:last-child {
    border-bottom: none;
}

.stat-name {
    color: #6c757d;
}

.stat-figure {
    font-weight: 600;
    color: var(--bs-primary);
}

/* Annual Impact Timeline */
.timeline-container {
    position: relative;
    padding: 2rem 0;
}

.timeline-container::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg, transparent, var(--bs-primary), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: 30px;
    position: relative;
    margin-bottom: 2rem;
    width: 50%;
}

.timeline-item:nth-child(even) {
    align-self: flex-end;
    justify-content: flex-start;
    padding-left: 30px;
    padding-right: 0;
    margin-left: 50%;
}

.timeline-dot {
    position: absolute;
    right: -6px;
    top: 20px;
    width: 12px;
    height: 12px;
    background: var(--bs-primary);
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.2);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6px;
    right: auto;
}

.timeline-content {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border: 1px solid rgba(230, 57, 70, 0.1);
    width: 100%;
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
}

/* Partners Section */
.partner-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(230, 57, 70, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.partner-card:hover {
    transform: translateY(-5px);
    border-color: var(--bs-primary);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.1);
}

.partner-logo {
    max-width: 120px;
    max-height: 60px;
    margin-bottom: 1rem;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo {
    filter: grayscale(0);
    opacity: 1;
}

/* Future Goals */
.goal-card {
    background: linear-gradient(135deg, #f8f9fa, #ffffff);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 2px dashed rgba(230, 57, 70, 0.3);
    transition: all 0.3s ease;
    height: 100%;
}

.goal-card:hover {
    border-color: var(--bs-primary);
    background: white;
}

.goal-year {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 1rem;
}

.goal-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.goal-label {
    color: #6c757d;
    font-size: 1rem;
}

/* CTA Section */
.impact-cta {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.95), rgba(197, 48, 48, 0.9)), url('/images/impact-cta-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 30px;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.impact-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('/images/pattern-dots.png') repeat;
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 2;
}

/* Counter Animation */
.counter {
    animation: countUp 2s ease forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-container::before {
        left: 30px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item:nth-child(even) {
        margin-left: 0;
        padding-left: 60px;
    }
    
    .timeline-dot {
        left: 24px !important;
        right: auto !important;
    }
    
    .impact-cta {
        padding: 2rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}