/*
|--------------------------------------------------------------------------
| Impact Section Component Styles
|--------------------------------------------------------------------------
*/

/* --- Main Section Styling --- */
.impact-section {
    background: #f8f9fa; /* A very light, clean grey */
    padding: 6rem 2rem;
    font-family: 'Poppins', sans-serif; /* Recommended: Add this font from Google Fonts for a modern feel */
    overflow: hidden;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Scroll animation trigger class */
.impact-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.impact-container {
    max-width: 900px;
    margin: 0 auto;
}

/* --- Header Styling --- */
.impact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.impact-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    /* The golden gradient text effect */
    background: linear-gradient(45deg, #28a745, #1e7e34);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.impact-subtitle {
    font-size: 1.25rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* --- Accordion Tab Buttons --- */
.impact-tabs {
    display: flex;
    justify-content: center;
    background: #fff;
    border-radius: 50px; /* Pill shape for a modern look */
    padding: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    margin-bottom: 2rem;
}

.impact-tab-button {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    background: transparent;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    white-space: nowrap;
}

.impact-tab-button:hover {
    color: #000;
    background-color: rgba(40, 167, 69, 0.1);
}

/* Active tab style */
.impact-tab-button.active {
    background-color: #28a745; /* Your green color */
    color: #fff;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
    transform: scale(1.05);
}

/* --- Accordion Content Panels --- */
.impact-content-panel {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    
    /* Smooth collapse/expand animation */
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-in-out, padding 0.5s ease-in-out;
}

.impact-content-panel > * {
    overflow: hidden;
}

.impact-content-panel.active {
    grid-template-rows: 1fr;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.impact-content-panel ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.impact-content-panel li {
    font-size: 1.1rem;
    color: #495057;
    padding: 0.75rem 0 0.75rem 2.5rem;
    position: relative;
    line-height: 1.7;
    border-bottom: 1px solid #e9ecef;
}

.impact-content-panel li:last-child {
    border-bottom: none;
}

/* Custom list-item icon using your color palette */
.impact-content-panel li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #28a745, #ffd700); /* Green to Gold gradient */
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* --- Mobile Responsive Design --- */
@media (max-width: 768px) {
    .impact-section {
        padding: 4rem 1rem;
    }

    .impact-title {
        font-size: 2.5rem;
    }

    .impact-subtitle {
        font-size: 1rem;
    }

    /* Stack tabs vertically on mobile */
    .impact-tabs {
        flex-direction: column;
        border-radius: 20px;
        padding: 0.5rem;
    }

    .impact-tab-button {
        flex: auto;
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .impact-tab-button:last-child {
        margin-bottom: 0;
    }

    .impact-tab-button.active {
        transform: scale(1); /* Disable scale effect on mobile for cleaner look */
    }

    .impact-content-panel {
        padding: 2rem 1.5rem;
    }
}

/* this is to make the typing feature */
.typing-title::after,
.typing-subtitle::after {
  content: "|";
  animation: blink 0.7s infinite;
  margin-left: 2px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.vltr-reset * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        .vltr-body {
            font-family: 'Arial', sans-serif;
            background-color: #f5f5f5;
            padding: 20px;
        }

        .vltr-container {
            width: 100%;
            margin: 0 auto;
        }

        .vltr-cards-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 30px;
            margin-top: 40px;
        }

        .vltr-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            cursor: pointer;
        }

        .vltr-card {
            transform: translateY(0); /* Reset transforms */
            will-change: transform, opacity; /* Hint for performance */
        }


        .vltr-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .vltr-card-image {
            width: 100%;
            height: 250px;
            object-fit: cover;
            transition: transform 0.3s ease;
        }

        .vltr-card:hover .vltr-card-image {
            transform: scale(1.05);
        }

        .vltr-card-content {
            padding: 25px;
        }

        .vltr-card-title {
            color: #2d7d32;
            font-size: 1.5rem;
            font-weight: bold;
            margin-bottom: 15px;
            line-height: 1.3;
        }

        .vltr-card-description {
            color: #666;
            font-size: 1rem;
            line-height: 1.6;
            margin-bottom: 20px;
            padding-left: 10px;
        }

        .vltr-card-button {
            background: linear-gradient(135deg, #2d7d32, #43a047);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .vltr-card-button:hover {
            background: linear-gradient(135deg, #1b5e20, #2d7d32);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(45, 125, 50, 0.3);
        }

        .vltr-main-title {
            text-align: center;
            color: #2d7d32;
            font-size: 2.5rem;
            font-weight: bold;
            margin-bottom: 10px;
        }

        .vltr-main-subtitle {
            text-align: center;
            color: #666;
            font-size: 1.2rem;
            margin-bottom: 30px;
        }

        /* Mobile Responsive */
        @media (max-width: 768px) {
            .vltr-body {
                padding: 15px;
            }

            .vltr-main-title {
                font-size: 2rem;
            }

            .vltr-main-subtitle {
                font-size: 1rem;
            }

            .vltr-cards-grid {
                grid-template-columns: 1fr;
                gap: 20px;
                margin-top: 30px;
            }

            .vltr-card-content {
                padding: 20px;
            }

            .vltr-card-title {
                font-size: 1.3rem;
            }

            .vltr-card-description {
                font-size: 0.9rem;
            }

            .vltr-card-image {
                height: 200px;
            }
        }

        @media (max-width: 480px) {
            .vltr-main-title {
                font-size: 1.8rem;
            }

            .vltr-card-title {
                font-size: 1.2rem;
            }

            .vltr-card-description {
                font-size: 0.85rem;
            }

            .vltr-card-button {
                padding: 10px 20px;
                font-size: 0.9rem;
            }
        }

        