/* Reset some default styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Main Layout */
main {
    background-color: #f9f9f9;
    font-family: Arial, sans-serif;
    width: 100%;
    padding: 35px;
    margin-top: 150px;
}

/* Header */
h1 {
    font-size: 3rem;
    color: #2980b9;
    margin-bottom: 30px;
    text-align: center;
}

/* Image Slider */
.slide-container {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    background-color: #f9f9f9;
    margin-bottom: 40px;
    border-radius: 10px;
}

.slide-fade {
    position: absolute;
    width: 100%;
    height: 100%;
    animation: fade 12s infinite;
}

/* Add fade transition for the images */
.slide-fade img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0; /* Initially set opacity to 0 */
    animation: fadeImage 15s infinite;
}

@keyframes fadeImage {
    0%, 100% { opacity: 1; }
    63%, 98% { opacity: 0; }
}

/* About Us Section */
.about-us {
    text-align: center;
    padding: 20px 0;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 20px;
}

.about-us p {
    font-size: 1.8rem;
    line-height: 1.6;
    margin: 20px 0;
    color: #858484;
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
}

.about-us-video iframe {
    width: 100%;
    max-width: 1800px;
    height: 1000px;
    margin-top: 20px;
    border-radius: 10px;
    margin-bottom: 50px;
}

.btn-modern {
    background: linear-gradient(135deg, #205992, #05bfe4);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 30px 0;
}

.btn-modern:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Our Projects Section */
.our-projects {
    padding: 20px 0;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 10px;
}

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

.project-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-card img {
    width: 120px;
}

.project-card h3 {
    color: #205992;
    font-size: 22px;
}

.project-card p {
    font-size: 15px;
    line-height: 1.6;
}

/* IMPACT */
.impact-created {
    padding: 20px 0;
    background-color: #f9f9f9;
    margin-bottom: 20px;
    border-radius: 10px;
}

.impact-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin: 60px auto;
    max-width: 1200px;
    padding: 0 20px;
}

.impact-item {
    text-align: center;
    background: white;
    padding: 25px 40px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    min-width: 250px;
}

.impact-number {
    font-size: 36px;
    font-weight: bold;
    color: #205992;
}

.impact-text {
    font-size: 16px;
    color: #333;
}

.impact-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Tablet */
@media (max-width: 1024px) {
    main {
        margin-top: 80px;
        padding: 20px;
    }

    .slide-container {
        height: 500px;
    }

    .about-us-video iframe {
        height: 450px;
    }

    h1 {
        font-size: 2.2rem;
    }

    .about-us p {
        font-size: 1.3rem;
    }
}

/* Mobile */
@media (max-width: 600px) {
    main {
        padding: 15px;
    }

    .slide-container {
        height: 280px;
    }

    .about-us-video iframe {
        height: 250px;
    }

    h1 {
        font-size: 1.8rem;
    }

    .about-us p {
        font-size: 1.1rem;
    }

    .impact-item {
        min-width: 100%;
    }
}
