* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Montserrat", sans-serif !important;
}

body {
    font-size: 16px;
}

h2, h3, h4, h5 {
    font-weight: bold;
}

/* Header Section */
.navbar, .offcanvas {
    background-color: #1c89f5;
}

.offcanvas-title {
    color: #fff;
}

.navbar-collapse {
    transition: height 0.3s ease-out;
}


/* Submenu Dropdown Styling */
/* Ensure the dropdown menu is full width */
.dropdown-menu {
    width: 100%; /* Ensures the dropdown takes full width */
}

/* Style dropdown links to cover full width */
.dropdown-menu .dropdown-item {
    color: #000; /* Text color */
    padding: 12px 20px; /* Adjust padding */
    transition: background 0.3s ease-in-out, color 0.3s ease-in-out;
    width: 100%; /* Ensures full-width hover effect */
    display: block; /* Makes the item take full width */
    font-weight: 500;
}

/* Hover effect covers full width */
.dropdown-menu .dropdown-item:hover {
    background-color: #1c89f5; /* Darker shade on hover */
    color: #fff; /* Highlight text color */
    width: 100%; /* Ensures full-width hover effect */
}


.logo {
    width: 250px;
    height: 70px;
}

@media (max-width: 768px) {
    .logo {
        width: 150px;
        height: 45px;
    }
}

.navbar-toggler {
    border: none;
    font-size: 1.25rem;
}

.navbar-toggler:focus, .btn-close:focus {
    box-shadow: none;
    outline: none;
}

.nav-link {
    color: #fff;
    font-weight: 500;
    position: relative;
}

.nav-link:hover {
    color: #000;
}

.nav-link::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    border-radius: 5px;
    background-color: #fff;
    visibility: hidden;
    transition: 0.3s ease-in-out;
}

.nav-link:hover::before {
    width: 100%;
    visibility: visible;
}


/* Hero Section */
.hero {
    height: 100vh;
    background: url('../images/hero_img.jpg') no-repeat center center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for better text visibility */
}

.hero-content {
    position: relative;
    max-width: 600px;
    z-index: 1;
}

.hero h2 {
    font-size: 2.1rem;
    margin-bottom: 10px;
    color: #fff;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.btn {
    display: inline-block;
    background: #ffcc00;
    color: #1c89f5;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 30px;
}

.btn:hover {
    background: #e6b800;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}

/* About Us Section */
.about {
    padding: 60px 20px;
    background: #f4f4f4;
    text-align: center;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.about p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .about h2 {
        font-size: 1.8rem;
    }

    .about p {
        font-size: 1rem;
    }
}

/* Gallery Section */
#gallery {
    text-align: center;
    padding: 50px 20px;
    background: #f4f4f4;
    overflow: hidden; /* Prevents horizontal scrolling */
}

.gallery h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.gallery p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto
}

.gallery-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    white-space: nowrap;
}

.gallery-track {
    display: flex;
    width: calc(500px * 12); /* Adjust based on the number of images */
    animation: scrollGallery 40s linear infinite; /* Controls the speed */
}

.gallery-track img {
    width: 500px;
    height: 350px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 15px;
}

/* Animation for continuous scrolling */
@keyframes scrollGallery {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}



/* Academics Section */
.academics {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.academics h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.academics p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

.programs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.program {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.program h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1c89f5;
}

.program p {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 768px) {
    .academics h2 {
        font-size: 1.8rem;
    }

    .academics p {
        font-size: 1rem;
    }

    .programs {
        grid-template-columns: 1fr;
    }
}

/* Events Section */
#events {
    text-align: center;
    padding: 50px 20px;
    background: #f4f4f4;
    overflow: hidden;
}

.events h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.events-wrapper {
    height: 250px; /* Set height for the scrolling effect */
    overflow: hidden;
    position: relative;
}

.events-track {
    display: flex;
    flex-direction: column;
    animation: scrollEvents 15s linear infinite;
}

.event {
    background: white;
    padding: 15px;
    margin: 10px auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Keyframes for vertical scrolling */
@keyframes scrollEvents {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Moves half since items are duplicated */
}

@media (max-width: 768px) {
    .event {
        width: 100%;
    }
}


/* Admissions Section */
.admissions {
    padding: 60px 20px;
    background: #f4f4f4;
    text-align: center;
}

.admissions h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.admissions p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

.admission-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.step h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #1c89f5;
}

.step p {
    font-size: 1rem;
    color: #333;
}

@media (max-width: 768px) {
    .admissions h2 {
        font-size: 1.8rem;
    }

    .admissions p {
        font-size: 1rem;
    }

    .admission-steps {
        grid-template-columns: 1fr;
    }
}

/* Testimonials Section */
#testimonials {
    text-align: center;
    padding: 50px 20px;
    background: #fff;
    overflow: hidden;
}

.testimonials h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.testimonials-wrapper {
    height: 250px; /* Controls the visible area */
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    flex-direction: column;
    animation: scrollTestimonials 15s linear infinite;
}

.testimonial {
    background: #f4f4f4;
    padding: 15px;
    margin: 10px auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Keyframes for vertical scrolling */
@keyframes scrollTestimonials {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Moves half since items are duplicated */
}

@media (max-width: 768px) {
    .testimonial {
        width: 100%;
    }
}


/* Latest News Section */
#latest-news {
    text-align: center;
    padding: 50px 20px;
    background: #eef5ff;
    overflow: hidden;
}

.latest-news h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.news-wrapper {
    height: 250px; /* Controls the visible scrolling area */
    overflow: hidden;
    position: relative;
}

.news-track {
    display: flex;
    flex-direction: column;
    animation: scrollNews 15s linear infinite;
}

.news-item {
    background: white;
    padding: 15px;
    margin: 10px auto;
    width: 80%;
    max-width: 1000px;
    border-radius: 8px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Keyframes for vertical scrolling */
@keyframes scrollNews {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } /* Moves half since items are duplicated */
}

@media (max-width: 768px) {
    .news-item {
        width: 100%;
    }
}



/* FAQs Section */
#faqs {
    text-align: center;
    padding: 50px 20px;
    background: #f4f4f4;
}

.faqs h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;  
}

.faq {
    margin: 10px auto;
    max-width: 800px;
    border-bottom: 1px solid #ccc;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
}

.faq-answer {
    display: none;
    padding: 10px 15px;
    background: white;
}

.faq-question span {
    font-weight: bold;
}


/* Contact Section */
.contact {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.contact p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-size: 1rem;
    color: #1c89f5;
    margin-bottom: 8px;
    display: block;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-top: 5px;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
}

.btn {
    display: inline-block;
    background: #ffcc00;
    color: #1c89f5;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background: #e6b800;
}

.successMessage {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .contact h2 {
        font-size: 1.8rem;
    }

    .contact p {
        font-size: 1rem;
    }

    .contact-form {
        padding: 0 20px;
    }
}

/* Locate Us Styles */
.locate-us {
    padding: 60px 20px;
    background: #ffffff;
    text-align: center;
}

.locate-us h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #1c89f5;
}

.locate-us p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: #333;
    line-height: 1.6;
    max-width: 2000px;
    margin-left: auto;
    margin-right: auto;
}


.map {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

iframe {
    width: 80%;
    height: 500px;
    filter: invert(100%);
}

@media (max-width: 768px) {
    iframe {
        width: 100%;
    }

    .locate-us p {
        font-size: 1rem;
    }
}

/* Footer Styles */
.footer {
    background: #1c89f5;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}

.footer p {
    margin: 5px 0;
    font-size: 1rem;
    color:#000;
    font-weight: 500;
}


/* Responsive Footer */
@media (max-width: 768px) {
    .footer p {
        font-size: 0.9rem;
    }
}


/* Admission Form Styling */
body {
    font-family: "Montserrat", sans-serif !important;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
}

.adm-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
}

h2 {
    text-align: center;
    color: #2c3e50;
}

p {
    text-align: center;
    color: #555;
}

fieldset {
    border: 1px solid #ddd;
    padding: 15px;
    margin-top: 20px;
    margin-bottom: 10px;
    border-radius: 5px;
}

legend {
    font-weight: bold;
    color: #2c3e50;
}

label {
    display: block;
    margin-top: 10px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.adm {
    width: 100%;
    padding: 10px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.adm:hover {
    background: #219150;
}


.adm-btn {
    display: inline-block;
    background: #ffcc00;
    color: #1c89f5;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
    margin-top: 20px;
    width: 100%;
    cursor: pointer;
}

@media (max-width: 768px) {
    .container {
        width: 90%;
    }

    .adm-title {
        font-size: 20px;
    }
}






