/* Basic Reset */
* {
    margin: 0;
    padding: 0;
}

/* Navigation Bar Styling */
.nav-bar {
    background-color: #333;
    padding: 15px;
}

.nav-bar ul {
    list-style: none;
    text-align: center;
}

.nav-bar ul li {
    display: inline;
    margin: 0 15px;
}

.nav-bar ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.second-nav {
    background-color: #444;
}

/* Make Slideshow Responsive */
.slideshow-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin-top: 10px;
}

.slide {
    display: none;
    width: 100%;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 70vh; /* Adjust based on screen size */
    object-fit: cover;
}

/* Make WHY Section Responsive */
.why-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.why-card {
    width: 90%;
    max-width: 350px;
    padding: 20px;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-bar ul {
        display: flex;
        flex-direction: column;
        padding: 10px 0;
    }
    
    .nav-bar ul li {
        margin: 10px 0;
    }

    .why-container {
        flex-direction: column;
        align-items: center;
    }

    .why-card {
        width: 90%;
        max-width: 350px;
    }
}


/* WHY SECTION */
.why-section {
    text-align: center;
    padding: 60px 20px;
    background: white;
}

.title {
    font-size: 32px;
    color: #004080;
    font-weight: bold;
    margin-bottom: 30px;
}

.title span {
    color: #f7941d;
}

/* Why Container */
.why-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

/* Why Card */
.why-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    width: 400px;
    text-align: center;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.why-card i {
    font-size: 50px;
    color: #f7941d;
    margin-bottom: 15px;
}

.why-card h3 {
    color: #004080;
    font-size: 32px;
    margin-bottom: 10px;
}

.why-card p {
    display: block;
    max-width: 100%;
    margin: 0 auto;
}


/* AOS Animations */
.right-top {
    transform: translateX(50px) translateY(-100px);
    opacity: 0;
    transition: all 1s ease-in-out;
}

.middle-mid {
    transform: translateY(100px);
    opacity: 0;
    transition: all 1s ease-in-out;
}

.left-top {
    transform: translateX(-50px) translateY(-100px);
    opacity: 0;
    transition: all 1s ease-in-out;
}

/* When in View */
[data-aos].aos-animate {
    transform: translateX(0) translateY(0);
    opacity: 1;
}

/* Principal & Headmaster Section */
.leaders-section {
    text-align: center;
    padding: 50px 20px;
    background: #f9f9f9;
}

.leaders-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
}

.leader-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.leader-card:hover {
    transform: translateY(-10px);
}

.leader-card img {
    width: 100%;
    height: 250px;
    max-width: 250px;
    border-radius: 25%;
    margin-bottom: 15px;
}

.leader-card h3 {
    font-size: 22px;
    color: #004080;
    margin-bottom: 5px;
}

.leader-card p {
    font-size: 16px;
    color: #555;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .leaders-container {
        flex-direction: column;
        align-items: center;
    }
}
/* COUNT SECTION */
.count-section {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(to right, #004080, #00274d);
    color: white;
}

.count-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.count-card {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    min-width: 200px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.count-card:hover {
    transform: translateY(-10px);
}

.count-card h2 {
    font-size: 42px;
    font-weight: bold;
    margin-bottom: 5px;
    transition: all 0.5s ease-in-out;
}

.count-card p {
    font-size: 18px;
}

/* Section Styling */
.location-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    background: linear-gradient(to right, #ffffff, #f3f3f3);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-in-out;
}

/* Map Container */
.map-container {
    flex: 1;
    min-width: 300px;
    max-width: 40%;
}

/* Contact Information */
.contact-info {
    flex: 1;
    min-width: 300px;
    text-align: center;
    font-size: 16px;
}

.contact-info h3, .social-connectivity h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 15px;
    font-weight: bold;
}

.contact-info p {
    color: #444;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-info a {
    color: #007bff;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #0056b3;
}

/* Social Connectivity */
.social-connectivity {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    font-size: 18px;
    border-radius: 50%;
    transition: transform 0.3s ease, background 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    background: #0056b3;
}

/* Animation */
.animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-in-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .location-section {
        flex-direction: column;
        text-align: center;
    }
    
    .map-container, .contact-info, .social-connectivity {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .social-icons {
        gap: 15px;
    }

    .social-icons a {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}
.copyright-section {
    text-align: center;
    background-color: #333;
    color: #fff;
    padding: 15px 0;
    font-size: 14px;
    margin-top: 20px;
    border-radius: 5px;
}
