/* Body container */

html,
body {
    margin: 0;
    padding: 0;
    overflow: inherit;
    font-family: Arial, Helvetica, sans-serif;
}
/* Top Header Bar */

.top-bar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: maroon;
    color: yellow;
    text-align: center;
    padding: 10px 0;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.top-bar h1 {
    margin: 0;
    font-size: 1.8rem;
}

.top-bar .motto {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 300;
    color: white;
}

.page-container {
    margin: 0 auto;
    max-width: 1200px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.side-menu {
    position: fixed;
    left: -260px;
    top: 0;
    width: 250px;
    height: 100%;
    background-color: maroon;
    transition: left 0.4s ease;
    z-index: 1000;
}

.side-menu.active {
    left: 0;
}


/* Navigation bar */

.navbar {
    display: flex;
    flex-wrap: wrap;
    background-color: maroon;
    position: sticky;
    top: 0;
    z-index: 10;
    align-content: safe;
}

.navbar a,
.dropbtn {
    font-size: 16px;
    color: white;
    text-align: center;
    padding: 14px 20px;
    text-decoration: none;
    cursor: pointer;
    background-color: maroon;
}

.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    border: none;
    outline: none;
    background: none;
}

.navbar a:hover,
.dropdown:hover .dropbtn {
    background-color: #555;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    min-width: 160px;
    z-index: 20;
}

.dropdown-content a {
    color: white;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #666;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Welcome message */

.welcome-message {
    text-align: center;
    margin: 40px 20px 20px;
    color: white;
    text-shadow: 2px 2px 4px #000;
}

.welcome-message h1 {
    margin: 0;
    font-size: 100%;
    letter-spacing: 2px;
}

.welcome-message h3 {
    margin: 10px 0 0;
    font-weight: normal;
    font-size: 100%;
    color: yellow;
    text-underline-position: below;
    text-wrap: wrap;
    letter-spacing: 1.5px;
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 5px;
    width: 100%;
    max-width: 100%;
    background-color: #8a1f1f38;
}
.grid-container1 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

/* School Picture Section */

.school-picture {
    text-align: center;
    margin: 40px auto;
    background-color: rgb(192, 192, 111);
    width: 50%;
    max-width: 1000px;
    padding: 10px;
    border-radius: 10px;
}

.school-picture img {
    width: 100%;
    border-radius: 10px;
}


/* Contact Section */

.contact-section {
    background-color: white;
    padding: 40px 20px;
    margin-top: 40px;
    border-top: 4px solid #333;
}

.contact-details {
    text-align: center;
    margin-bottom: 20px;
}

.contact-details p {
    margin: 5px 0;
}

form {
    max-width: 500px;
    margin: auto;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin: 8px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

button {
    background-color: #333;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
}

button:hover {
    background-color: #555;
}


/* Directions & Location Section */

.directions-section {
    background-color: maroon;
    padding: 40px 20px;
    margin-top: 40px;
    text-align: center;
}
.directions-sectionr {
    background-color: rgba(230, 16, 16, 0.116);
    padding: 40px 20px;
    font-weight: bold;
    margin-top: 40px;
    text-align: left;
    justify-content: center;
    background-size: auto;
    background-position-x: left;
    color: yellow;
    border: #66000000;
    display: block;

}
.directions-sectionr a {
    display: inline-block;
    margin: 6px 0;
    padding: 10px 15px;
    background-color: maroon;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    transition: background 0.3s;
}


.directions-sectionr h1 {
    color: white;
}

.directions-sectionr h2 {
    color: yellow;
    margin-bottom: 20px;
}
.map-container {
    width: 100%;
    max-width: 800px;
    padding: 10px;
    margin: auto;
    border: 2px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    background-color: white;
}

iframe {
    width: 100%;
    height: 400px;
    border: none;
}


/* Banking Details Section */

.banking-section {
    background-color: maroon;
    color: white;
    padding: 40px 20px;
    text-align: center;
}

.banking-section h2 {
    color: yellow;
    font-weight: 600;
}

.banking-section h2 i {
    color: gold;
    margin-right: 10px;
}

.banking-section p {
    margin: 8px 0;
    font-size: 1.1rem;
}


/* Mobile Responsive */

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }
    .navbar a,
    .dropbtn {
        text-align: left;
        padding: 10px;
    }
}

.open-menu {
    background-color: maroon;
    color: yellow;
    border: none;
    padding: 8px 12px;
    font-size: 18px;
    cursor: pointer;
    position: fixed;
    top: 0%;
    z-index: 5;
}

.side-menu {
    position: fixed;
    top: 0;
    left: -250px;
    /* Hidden initially */
    width: 250px;
    height: 100%;
    background-color: maroon;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    transition: left 0.4s ease;
    z-index: 999;
}

.side-menu.active {
    left: 0;
}

.close-menu {
    background: none;
    border: none;
    color: yellow;
    font-size: 20px;
    align-self: flex-end;
    margin-right: 10px;
    cursor: pointer;
}

.menu-logo img {
    width: 100px;
    border-radius: 8px;
    margin-bottom: 10px;
}

.menu-logo h2 {
    color: yellow;
    font-size: 1.2rem;
    margin-bottom: 30px;
    text-align: center;
}

.menu-links {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.menu-links a {
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    font-weight: bold;
}

.menu-links a:hover {
    background-color: #660000;
}


/* Outer section for centering */

.events-section {
    text-align: center;
    margin: 40px 0;
}


/* Inner box with blue background */

.events-box {
    background-color: maroon;
    /* Blue background */
    display: inline-block;
    /* Shrinks background to fit content */
    padding: 20px 30px;
    border-radius: 8px;
}


/* Title */

.events-box h2 {
    color: orange;
    /* Orange text */
    margin-bottom: 15px;
    font-size: 24px;
}


/* Links */

.events-box a {
    color: orange;
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid orange;
    border-radius: 5px;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
}

.events-box a:hover {
    background-color: #ff7300;
    color: #0066cc;
    /* Swap colors on hover */
}


/* Outer section for centering */

.events-section {
    text-align: center;
    margin: 40px 0;
}


/* Inner box with blue background */

.events-box {
    background-color: maroon;
    /* Blue background */
    display: inline-block;
    /* Shrinks background to fit content */
    padding: 20px 30px;
    border-radius: 8px;
}


/* Title */

.events-box h2 {
    color: yellow;
    /* Orange text */
    margin-bottom: 15px;
    font-size: 24px;
}


/* Links */

.events-box a {
    color: white;
    text-decoration: none;
    font-style: italic;
    font-weight: bold;
    padding: 10px 15px;
    border: 2px solid orange;
    border-radius: 5px;
    margin: 0 10px;
    display: inline-block;
    transition: 0.3s;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    animation: fadeUp 1.2s ease;
}

.events-box a:hover {
    background-color: #ff7300;
    color: maroon;
    /* Swap colors on hover */
}

.news-section {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 20px;
    background-color: rgba(128, 0, 0, 0.329);
}

.news-section h2 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 15px;
}

.news-ticker {
    position: relative;
    height: 50px;
    overflow: hidden;
}

.news-item {
    position: absolute;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    color: yellow;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s ease;
}

.news-item.active {
    opacity: 1;
    transform: translateY(0);
}


/* SOCIALS ICONS FOOTER */

.social-icons {
    margin-top: 10px;
}

.social-icons a {
    color: yellow;
    background-color: maroon;
    border: 2px solid yellow;
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    margin: 0 8px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: rgb(255, 255, 255);
    color: maroon;
    transform: scale(1.2);
}

.google-map-section {
    text-align: center;
    background: #fff;
    padding: 40px 10px;
    border-top: 5px solid maroon;
}

.google-map-section h2 {
    color: maroon;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.google-map-section p {
    color: #333;
    margin-bottom: 20px;
}

.google-map {
    width: 90%;
    max-width: 800px;
    margin: 0 auto;
    border: 3px solid maroon;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* flip section image*/
.image-flip-section {
    text-align: center;
    margin: 30px 0;
}

.image-flip-container {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 350px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    border: 4px solid maroon;
    background: #fff;
}

.flip-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 3s;
}

.flip-img.active {
    opacity: 1;
    z-index: 1;
}

/* news section updates*/

.news-section2 {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 4px;
    color: yellow;
}

.news-slideshow {
    position: relative;
    width: 100%;
    height: 300px;
    /* Adjust height as needed */
}

.news-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 100%;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.news-slide.active {
    opacity: 1;
}

.news-text {
    position: relative;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background-color: maroon;
    /* Semi-transparent maroon box */
    padding: 2px 2px;
    border-radius: 2px;
    font-size: auto;
    font-weight: bold;
    color: yellow;
    text-align: center;
    vertical-align: bottom;
    max-width: 80%;
}
.horizontal-line {
    width: 100%;
    max-width: 100%;
    height: 4px;
    background-color: maroon;
    margin: 0 auto 50px auto;
    border-radius: 2px;
    position: relative;
}
/* Responsive Design */
        
@media screen and (max-width: 900px) {
    .horizontal-line {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    
    .horizontal-line {
        display: none;
        /* hide lines on smaller screens for simplicity */
    }
    .vertical-line {
        height: 40px;
    }
}
