﻿@media (max-width: 768px) {
    .logo {
        position: static;
        top: 0;
    }
        .logo a img {
            max-height: 40px;
        }
    .navbar-nav .nav-link {
        padding: 1rem 2rem;
        font-weight: 500;
        letter-spacing: 0.5px;
    }
    .carousel-item img {
        height: 400px;
        object-fit: cover;
    }
  
    .quick-links {
        padding-left: 10px;
    }

    .vertical-divider {
        display: none !important;
    }

    .about-info {
        margin-top: 20px;
    }
    .carousel-track {
        gap: 1rem;
    }

    .carousel-card {
        min-width: 250px;
        padding: 8px;
    }

    .place-name {
        height: 70px;
    }

        .place-name h3 {
            font-size: 1rem;
            padding-top: 1rem;
        }

    .carousel-card img {
        height: 200px;
    }

    .carousel-buttons button {
        font-size: 26px;
        height: 50px;
        width: 50px;
        padding-left: 8px;
    }
    .section-title {
        text-align:center;
        font-size: 1.8rem;
        padding-bottom:30px;
    }
    .mission-block {
        margin-top:80px;
    }
    .parent-teacher-association {
       gap:20px;
    }
    .pta-last-image {
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .image-area img {
        width: 400px;
        height: 400px;
    }
}
/* Fix for mobile navbar dropdown overlap */
@media (max-width: 991.98px) {
    .navbar {
        position: relative;
        z-index: 1001;
    }

    #mainNavbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: white;
        z-index: 1000;
        padding: 10px 0;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar-collapse.show {
        display: block !important;
    }

    .navbar-nav .nav-link {
        color: #000; /* ensure visibility */
    }

    .hover-dropdown:hover > .dropdown-menu {
        display: block;
    }

    .banner-text-box {
        max-width: 60%;
        padding: 20px;
        flex-direction: column !important;
        text-align: center;
    }

    .banner-wrapper {
        top: -10%;
    }

    .banner-text-box h1 {
        font-size: 1.4rem;
        margin-bottom: 10px;
    }

    .apply-btn {
        padding: 8px 16px;
        font-size: 1rem;
    }
    .carousel-card {
        min-width: 280px;
    }

    .place-name h3 {
        font-size: 1.1rem;
    }
    .certificate {
        height: 400px;
        margin-top: 30px;
    }

    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 30px;
        height: 30px;
    }
}

/* Extra small devices (phones) */

@media (max-width: 575.98px) {
    .banner-text-box {
        padding: 15px;
        border-radius: 15px;
        max-width: 60%;
    }

    .banner-wrapper {
        top: -8%;
    }

    .banner-text-box h1 {
        font-size: 1.2rem;
    }

    .apply-btn {
        width: 100%;
        max-width: 220px;
        margin: 10px auto 0;
    }
   
}
@media screen and (max-width: 800px) {
    #gallery .column {
        flex: 50%;
        max-width: 50%;
    }
}

@media screen and (max-width: 600px) {
    #gallery .column {
        flex: 100%;
        max-width: 100%;
    }
}



