/* Navbar */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: montserrat, sans-serif;
    color: #000;
    background-color: #f4f4f4;
    overflow-x: hidden;
}


.popup {
    margin: auto;
    z-index: 10;
    position: fixed;
    transform: translate(140%, 146%);
    width: 90%;
    max-width: 413px;
    height: auto;
    padding: 20px;
    background-color: #a8dfba;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Logo */
.popup .logo {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 80px;
    height: auto;
    z-index: 2;
}

/* School Name and Slogan */
.popup .school-info {
    position: absolute;
    top: 21px;
    left: 111px;
    font-size: 10px;
    color: #453381;
    z-index: 2;
}

.popup .school-info .school-name {
    font-weight: bold;
    font-size: 22px;
}

.popup .school-info .slogan {
    position: absolute;
    top: 20px;
    right: 0;
    font-style: italic;
    font-size: 14px;
    color: #ff3c3c;
}

.popup .admission-header {
    position: relative;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 3;
    margin-top: 50px;
}

.popup .session-subheader {
    position: relative;
    text-align: center;
    font-size: 20px;
    font-weight: normal;
    color: #333;
    z-index: 3;
    margin-top: 10px;
}

/* Close Button */
.popup .close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    text-align: center;
    line-height: 25px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 4;
}

.popup .close-button:hover {
    background-color: darkred;
}

/* Circular Patterns */
.circle {
    position: absolute;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.circle.green-large {
    width: 150px;
    height: 150px;
    background-color: green;
    top: 50px;
    left: 120px;
    z-index: 1;
}

.circle.green-medium {
    width: 100px;
    height: 100px;
    background-color: green;
    bottom: -50px;
    left: -50px;
    z-index: 1;
}

.circle.green-small {
    width: 60px;
    height: 60px;
    background-color: green;
    top: 20px;
    right: 20px;
    z-index: 1;
}

.circle.yellow-large {
    width: 80px;
    height: 80px;
    background-color: yellow;
    top: 96px;
    left: -2px;
    z-index: 1;
}

.circle.yellow-medium {
    width: 50px;
    height: 50px;
    background-color: yellow;
    bottom: 80px;
    right: 23px;
    z-index: 1;
}

.circle.yellow-small {
    width: 40px;
    height: 40px;
    background-color: yellow;
    top: 159px;
    left: 62px;
    z-index: 1;
}

/* Register Button */
.popup .register-button {
    position: relative;
    display: block;
    margin: 20px auto 0;
    padding: 10px 20px;
    background-color: yellow;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 4;
    text-align: center;
    text-decoration: none;
}

.popup .register-button:hover {
    background-color: green;
    color: #333;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Additional Image */
.popup .additional-image {
    position: absolute;
    bottom: 0;
    right: 10px;
    width: 120px;
    height: auto;
    z-index: 2;
}

@media (max-width: 600px) {
    .popup {
        width: 85%;
        height: auto;
        padding: 10px;
        z-index: 10;
        transform: translate(8%, 146%);
    }

    .popup .logo {
        width: 60px;
    }

    .popup .school-info {
        top: 30px;
        left: 80px;
        font-size: 10px;
    }

    .popup .school-info .school-name {
        font-size: 19px;
    }

    .popup .school-info .slogan {
        font-size: 10px;
    }

    .popup .admission-header {
        font-size: 17px;
        margin-top: 60px;
    }

    .popup .session-subheader {
        font-size: 15px;
    }

    .circle.green-large {
        width: 120px;
        height: 120px;
    }

    .circle.green-medium {
        width: 80px;
        height: 80px;
    }

    .circle.green-small {
        width: 50px;
        height: 50px;
    }

    .circle.yellow-large {
        width: 60px;
        height: 60px;
    }

    .circle.yellow-medium {
        width: 40px;
        height: 40px;
    }

    .circle.yellow-small {
        width: 30px;
        height: 30px;
    }

    .popup .register-button {
        font-size: 14px;
        padding: 8px 16px;
    }

    .popup .additional-image {
        width: 100px;
    }
}







.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar img {
    height: 50px;
}

.navbar .logo {
    display: flex;
    align-items: center;
}

/* New image on the right side of logo for mobile */
.navbar .logo img.right-image {
    display: none;
}

/* Center navigation menu on desktop */
.navbar ul {
    list-style: none;
    display: flex;
    gap: 20px;
    position: relative;
    margin: 0 auto;
    justify-content: center; /* Center the menu items */
}

.navbar ul li {
    display: inline;
    position: relative;
}

.navbar ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
    padding: 5px 10px;
    transition: color 0.3s;
}

.navbar ul li a:hover {
    color: goldenrod;
}

/* Dropdown Menu */
.dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: -46px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border-radius: 5px;
    z-index: 10;
}

.dropdown a {
    display: block;
    padding: 10px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
    transition: background-color 0.3s;
}

.dropdown a:hover {
    background-color: #f1c40f; /* goldenrod color on hover */
}

/* Show dropdown on hover */
.navbar ul li:hover .dropdown {
    display: block;
}

/* Admission Form Button */
.navbar .admission-form {
    background-color: goldenrod;
    color: #fff;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.navbar .admission-form:hover {
    background-color: #fff;
    color: goldenrod;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .navbar {
        flex-direction: row;
        align-items: center;
        padding: 15px;
    }

    .navbar ul {
        flex-direction: column; /* Change to vertical for mobile */
        width: 100%;
        align-items: center;
        gap: 10px;
        display: none; /* Hide the menu by default */
        padding: 10px;
        background-color: #fff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        justify-content: center; /* Ensure the menu is vertically aligned */
    }

    .navbar ul li {
        width: auto; /* Allow items to take up their natural width */
        text-align: center;
        position: relative; /* To allow dropdowns below */
    }

    .navbar .admission-form {
        margin-top: 15px;
        width: 100%;
        text-align: center;
    }

    /* Make dropdown menu items fill width */
    .dropdown {
        left: 0;
        width: 100%;
        position: relative; /* Allow dropdown to be positioned under each item */
        display: none; /* Hide dropdown by default */
    }

    .dropdown a {
        padding: 12px;
        font-size: 14px;
    }

    /* Hamburger Menu */
    .navbar .hamburger {
        display: block;
        cursor: pointer;
        z-index: 1001;
        position: absolute;
        right: 13px; /* Position the hamburger menu on the right */
        top: 20px; /* Align the hamburger menu vertically */
    }

    .navbar .hamburger div {
        width: 25px;
        height: 3px;
        background-color: #333;
        margin: 5px 0;
        transition: 0.4s;
    }

    /* Show the mobile menu vertically when toggled */
    .navbar ul.show {
        display: flex;
    }

    /* Show dropdown on click in mobile */
    .navbar ul li.active .dropdown {
        display: block;
    }

    /* Hide the Admission Form Button in Mobile */
    .navbar .admission-form {
        display: none; /* Hide on mobile */
    }

    /* Show the right image on mobile */
    .navbar .logo img.right-image {
        display: block;
        height: 23.5px; /* Adjust size if necessary */
        margin-left: 5px; /* Space between logo and right image */
    }
}

@media (max-width: 480px) {
    .navbar img {
        height: 40px;
    }

    .navbar .admission-form {
        font-size: 14px;
        padding: 8px 16px;
    }
}


/*First & Second Section  */
body {
    font-family: Arial, sans-serif;
    overflow-x: hidden; /* Prevent horizontal scrolling */
}


.container {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(a2.png);
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: background 0.3s ease-out, opacity 0.5s ease-in-out; /* Smooth transition for opacity */
}

.hero-hidden {
    opacity: 0;
}

.hero-visible {
    opacity: 1;
}

.typography-section {
    height: 100vh;
    width: 100%;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url(4.png);
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: space-between;
    padding: 0 100px;
    position: relative;
    transform: translateY(30%); /* Start below the viewport */
    opacity: 0;
    transition: transform 1s ease-out, opacity 1s ease-out; /* Smooth transition for animation */
}

.typography-section.visible {
    transform: translateY(0); /* Move the section into place */
    opacity: 1; /* Fade it in */
}

.heading-container,
.paragraph-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading-container {
    max-width: 45%;
}

.paragraph-container {
    max-width: 45%;
    text-align: left;
}

.heading-container h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    color: #2c3e50;
}

.paragraph-container p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #555;
    text-align: left;
}

h1 {
    font-size: 6em;
    color: #2c3e50;
    margin: 0;
}

h2 {
    font-size: 5.5em;
    color: #3498db;
    margin: -8px 0 0px;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: #f1c40f;
    color: #333;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    border-radius: 30px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #d4ac0d;
}

.circle {
    position: absolute;
    border: 2px solid #dcdcdc;
    border-radius: 50%;
}

.circle1 {
    top: -18%;
    width: 26%;
    height: 50%;
    left: -3%;
}

.circle2 {
    width: 26%;
    height: 50%;
    bottom: -10%;
    right: -10%;
}

.box {
    padding: 0 0;
    margin: 130px 150px;
}

        /* Mobile Styles */
        @media (max-width: 768px) {
            .container {
                height: auto;
                padding: 50px 20px;
            }

            h1 {
                font-size: 3em;
                margin: 0 0 20px;
            }

            h2 {
                font-size: 2.5em;
            }

            .box {
                margin: 50px 20px;
                text-align: center;
            }

            .btn {
                padding: 10px 20px;
                font-size: 1em;
            }

            .typography-section {
                flex-direction: column;
                padding: 50px 20px;
                opacity: 1;
                transform: none;
                transition: none;
            }

            .heading-container,
            .paragraph-container {
                max-width: 100%;
                text-align: center;
                margin-bottom: 20px;
            }

            .heading-container h1 {
                font-size: 2.5em;
            }

            .paragraph-container p {
                font-size: 1em;
            }
        }
/* Add smooth transition effect between sections */
.typography-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.7); /* Soft blend */
    z-index: -1;
}

/* Third Section */
.our-excellence {
    padding: 50px 20px;
    background-color: #fff;
    text-align: center;
}

.our-excellence h1 {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 50px;
    color: #2c3e50;
}

.cards {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding: 20px 10px;
    justify-content: start;
}

.card-link {
    flex: 0 0 80%;
    scroll-snap-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none; /* Remove underline from all cards */
}

.card {
    background-color: #f9f9f9;
    padding: 43px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.icon-background {
    width: 100px;
    height: 100px;
    background-color: #f1c40f;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.card h3 {
    font-size: 1.5em;
    color: #333;
    margin-top: 70px; /* Adjusted to accommodate full icon background */
    margin-bottom: 15px;
}

.card p {
    font-size: 1em;
    color: #666;
}

.card-link.active {
    transform: scale(1.1); /* Make the active card larger */
    z-index: 2;
}

.card-link:not(.active) {
    transform: scale(0.9); /* Make non-active cards smaller */
}

/* Hide the scrollbar */
.cards::-webkit-scrollbar {
    display: none;
}

.cards {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Desktop styles remain unchanged */
@media screen and (min-width: 769px) {
    .cards {
        display: flex;
        flex-wrap: wrap;
        overflow-x: hidden;
        gap: 20px;
    }

    .card-link {
        flex: 1 0 23%;
        transform: scale(1);
        transition: none;
    }

    .card-link.active {
        transform: scale(1);
    }

    .card {
        height: 320px;
    }
}


/* forth section css */

.news-events {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: auto;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 15px;
    overflow: hidden;
}

.left-panel {
    margin: auto;
    display: flex;
    flex-wrap: nowrap;
    gap: 15px;
    overflow-x: auto;
    padding: 10px;
    background-color: #f9f9f9;
}

.event {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
}

.event.active {
    background-color: #ffe600;
}

.date-box {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    border-radius: 8px;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: bold;
}

.date-box span:first-child {
    font-size: 18px;
}

.date-box span:last-child {
    font-size: 10px;
}

.right-panel {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.highlight-box {
    width: 100%;
    background-color: #ffffff;
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight-title {
    font-size: 18px;
    color: #333;
    font-weight: bold;
    margin-bottom: 10px;
}

.highlight-description {
    font-size: 14px;
    color: #666;
}

.navigation-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #3498db;
}

#NEWS {
    color: #2c3e50;
    text-align: center;
    background-color: #fff;
    font-size: 2.5em;
    margin-bottom: 0px;
}

@media screen and (max-width: 768px) {
    .event .title {
        display: none;
    }
}

@media screen and (min-width: 769px) {
    .news-events {
        flex-direction: row;
        height: 41%;
    }

    .left-panel {
        width: 40%;
        flex-direction: column;
        padding: 20px;
        border-right: 1px solid #ddd;
        height: 100%;
        overflow: hidden;
    }

    .right-panel {
        width: 57%;
        justify-content: space-between;
        height: 94%;
    }

    .highlight-box {
        flex-grow: 1;
    }

    .highlight-description {
        font-size: 18px;
    }
}
/* fifth section */
/* Scoped Styles for the Gallery */
.custom-gallery {
    background-color: #fff;
    width: 100%;
    max-width: 1513px;
    text-align: center;
    padding: 20px;
}

.custom-gallery h1 {
    font-size: 36px;
    margin-bottom: 30px;
}

.custom-gallery .cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.custom-gallery .card {
    text-decoration: none;
    color: black;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.custom-gallery .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-gallery .image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.custom-gallery .image-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px);
    z-index: 1;
}

.custom-gallery .image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.custom-gallery .image-container:nth-child(1)::before {
    background-image: url('565.png'); /* Match the first image */
}

.custom-gallery .image-container:nth-child(2)::before {
    background-image: url('video.jpg'); /* Match the second image */
}

.custom-gallery .image-container:nth-child(3)::before {
    background-image: url('virtual-tour.jpg'); /* Match the third image */
}

.custom-gallery .card p {
    font-size: 18px;
    font-weight: bold;
    margin: 6px 0;
    position: relative;
    z-index: 2;
}

/* footer */

.footer {
    background-color: #DAA520;
    color: white;
    text-align: center;
    padding: 20px 0;
}
.footer a {
    color: #fff;
    text-decoration: none;
}
.footer a:hover {
    text-decoration: underline;
}
.social-icons {
    margin-bottom: 15px;
}
.social-icons a {
    margin: 0 10px;
    font-size: 20px;
}
.contact-info {
    margin: 10px 0;
}
.copyright {
    margin-top: 20px;
    font-size: 14px;
}
