/* General Styles */
body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
}

/* Header and Navigation Styles */
header {
    background: linear-gradient(90deg, rgba(52,152,219,1) 0%, rgba(41,128,185,1) 100%);
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.sticky-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sticky-nav .logo img {
    width: 100px;
    height: auto;
}

.sticky-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sticky-nav ul li {
    margin: 0 20px;
}

.sticky-nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 15px;
    font-family: 'Poppins', sans-serif;
    border-radius: 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative; /* Ensure proper positioning */
}

.sticky-nav ul li a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

/* Hover underline effect */
.sticky-nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.3s;
    margin-top: 5px;
    position: absolute;
    left: 0;
    bottom: -5px; /* Positioning underline closer to text */
}

.sticky-nav ul li a:hover::after {
    width: 100%;
}



/* About Us Section Styling */
#about {
    background-color: #f0f0f0;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#about h2 {
    font-size: 2.8em;
    color: #3498db;
    margin-bottom: 30px;
}

.about-description {
    font-size: 1.3em;
    color: #555;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto 50px;
}

/* Mission, Vision, and Values */
.about-mvv {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
}

.mvv-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    width: 30%;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.mvv-item:hover {
    transform: scale(1.05);
}

.mvv-item h3 {
    font-size: 1.8em;
    color: #3498db;
    margin-bottom: 15px;
}

.mvv-item p, .about-history p {
    font-size: 1.2em;
    color: #555;
}

.core-values {
    list-style: none;
    padding: 0;
    margin: 0;
}

.core-values li {
    font-size: 1.2em;
    color: #555;
    margin: 10px 0;
    display: flex;
    align-items: center;
}

.core-values li i {
    font-size: 1.5em;
    color: #3498db;
    margin-right: 10px;
}

/* History Section */
.about-history {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.about-history h3 {
    font-size: 1.8em;
    color: #3498db;
    margin-bottom: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .about-mvv {
        flex-direction: column;
    }

    .mvv-item {
        width: 100%;
        margin-bottom: 20px;
    }
}


/* Hero Section */
.hero {
    height: 85vh;
    background-image: url('hero_image.jpg'); /* Replace with actual image */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
}

.hero-content {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Overlay for better text contrast */
    border-radius: 10px;
}

.hero-content h1 {
    font-size: 4em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 20px;
}

.cta-button {
    font-size: 1.3em;
    padding: 15px 30px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c0392b;
}

/* Section Styling */
.section {
    padding: 80px 20px;
    background-color: white;
    margin-bottom: 40px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 10px;
}

.section h2 {
    color: #3498db;
    font-size: 2.8em;
    text-align: center;
    margin-bottom: 50px;
}

.section p {
    font-size: 1.2em;
    color: #333;
    line-height: 1.8;
    text-align: center;
}

/* Our Programs Section */
.program-list {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.program {
    background-color: #e74c3c;
    color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    width: 22%;
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.program:hover {
    transform: scale(1.05);
}

.program h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.program p {
    font-size: 1em;
}

/* Facilities Section Styling */
#facilities {
    background-color: #f0f0f0;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px auto;  /* Center the section itself */
    max-width: 1200px;  /* Constrain the width to a maximum */
}

#facilities h2 {
    font-size: 2.5em;
    color: #3498db;
    margin-bottom: 50px;
    text-align: center; /* Ensure the title is centered */
}

.facilities-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;  /* Center the content horizontally */
    gap: 20px;
}

.facility-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    width: 250px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    text-align: center;  /* Ensure text inside each card is centered */
}

.facility-item:hover {
    transform: scale(1.05);
}

.facility-item i {
    font-size: 3em;
    color: #3498db;
    margin-bottom: 15px;
}

.facility-item h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #333;
}

.facility-item p {
    font-size: 1.1em;
    color: #555;
    text-align: center;  /* Ensure the paragraph is centered */
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .facilities-container {
        flex-direction: column;
        align-items: center; /* Center each item vertically on small screens */
    }

    .facility-item {
        width: 100%; /* Make the facility items take full width on small screens */
    }
}

/* Our Programs Section */
#programs {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#programs h2 {
    font-size: 2.8em;
    color: #3498db;
    margin-bottom: 50px;
    font-family: 'Poppins', sans-serif;
}

.programs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 30px;
}

.program-item {
    background: linear-gradient(135deg, #ff6f61, #d64b3e);
    padding: 30px;
    border-radius: 20px;
    width: 250px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: white;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.program-item:hover {
    transform: translateY(-10px);
    background: linear-gradient(135deg, #ff866c, #e85842);
}

.program-item i {
    font-size: 3em;
    color: white;
    margin-bottom: 15px;
}

.program-item h3 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: bold;
}

.program-item p {
    font-size: 1.1em;
    color: #fff;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .programs-container {
        flex-direction: column;
        align-items: center;
    }

    .program-item {
        width: 100%;
    }
}

/* Our Team Section */
#team {
    background-color: #f9f9f9;
    padding: 60px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#team h2 {
    font-size: 2.8em;
    color: #3498db;
    margin-bottom: 50px;
}

.team-leaders {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 50px;
}

.leader-card {
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.leader-card:hover {
    transform: scale(1.05);
}

.leader-card img.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
}

.leader-card h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #333;
}

.leader-card p {
    font-size: 1.1em;
    color: #555;
}

/* Teachers and Staff Tables */
.team-section {
    margin: 40px 0;
}

.team-section h3 {
    font-size: 2em;
    color: #3498db;
    margin-bottom: 20px;
}

.team-table {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-collapse: collapse;
    text-align: left;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.team-table th, .team-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.team-table th {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.team-table td {
    background-color: white;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .team-leaders {
        flex-direction: column;
        align-items: center;
    }

    .leader-card {
        width: 100%;
        max-width: 350px;
    }

    .team-table {
        font-size: 0.9em;
    }
}


/* Photo Gallery Styling */
#gallery {
    background-color: #f9f9f9;
    padding: 50px 20px;
    text-align: center;
}

#gallery h2 {
    color: #3498db;
    font-size: 2.5em;
    margin-bottom: 30px;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.gallery-item {
    width: 250px;
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1); /* Zoom effect on hover */
}

/* Testimonials Section */
#testimonials {
    background-color: #f9f9f9;
    padding: 80px 20px;
    text-align: center;
    border-radius: 10px;
    margin: 40px auto;
    max-width: 1200px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

#testimonials h2 {
    font-size: 2.8em;
    color: #3498db;
    margin-bottom: 50px;
}

/* Testimonial Carousel */
.testimonial-carousel {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-item {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.1);
    font-size: 1.3em;
    color: #555;
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 0;
    transform: translateX(100%);
    position: absolute;
    width: 100%;
    left: 0;
}

.testimonial-item.active {
    opacity: 1;
    transform: translateX(0);
    position: relative;
}

.testimonial-item p {
    font-style: italic;
    color: #333;
}

.testimonial-item span {
    display: block;
    margin-top: 20px;
    font-weight: bold;
    color: #3498db;
}


/* Responsive */
@media screen and (max-width: 768px) {
    .testimonial-item {
        padding: 20px;
    }
}


/* Footer */
footer {
    background-color: #34495e;
    color: white;
    padding: 50px 20px;
    text-align: center;
    margin-top: 40px;
}

footer a {
    color: white;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* Icons for Footer */
footer .social-icons {
    margin-top: 20px;
}

footer .social-icons i {
    color: white;
    font-size: 1.8em;
    margin: 0 10px;
    transition: color 0.3s ease;
}

footer .social-icons i:hover {
    color: #3498db;
}
 /* Album Gallery Styling */
    .gallery-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
        justify-items: center;
        padding: 2rem;
    }
    .gallery-item {
        width: 100%;
        max-width: 300px;
        aspect-ratio: 1 / 1;
        position: relative;
        overflow: hidden;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        text-align: center;
    }
    .thumbnail {
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    .overlay {
        position: absolute;
        bottom: 0;
        width: 100%;
        background: rgba(0, 0, 255, 0.7); /* Blue background */
        color: white;
        padding: 0.5rem;
        text-align: center;
        font-size: 16px;
        font-weight: bold;
        font-family: 'Poppins', sans-serif;
    }
    .overlay span {
        display: block;
    }
        h3 {
            margin: 0;
            padding: 0.5rem;
        }