body {
    font-family: 'calibri', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #4588f5;
}


/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Navbar Styling */
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0rem 2rem;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    margin-left: 50px;
}

.logo img {
    height: 75px;
}

.nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    width: 100%;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 20px;
  border-radius: 10px;
  transition: background 0.3s, color 0.3s;
}

/* Hover effect */
.nav-links a:hover {
    background: #12992d;
    color: #fff;
  }

  .contact-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    background: #8B968D;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9rem;
    text-transform: uppercase;
    height: 50px;
    text-align: center;
    white-space: nowrap; /* Prevents text from wrapping */
    overflow: hidden; /* Ensures text won't overflow outside */
    box-sizing: border-box; /* Includes padding in width/height calculations */
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .contact-button {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
        height: 45px;
    }
}

@media (max-width: 320px) {
    .contact-button {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
        height: 40px;
    }
}

.contact-button:hover {
    background: #12992d;
}
/* Hamburger Menu */

.hamburger {
    font-size: 1.5rem;
    cursor: pointer;
    display: block;
}

/* Show nav when active */
.nav-links.active {
    display: flex;
}

/* Desktop View */
@media(min-width: 768px) {
    .navbar {
        flex-wrap: nowrap;
    }

    .nav-links {
        display: flex !important;
        flex-direction: row;
        position: static;
        background: none;
        width: auto;
        padding: 0;
        gap: 1rem;
    }

    .hamburger {
        display: none;
    }
}

/* Carousel style */
.carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Keeps nice video-style proportion */
}

.carousel-track-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    padding: 0;
    margin: 0;
}

.carousel-slide {
    min-width: 100%;
    height: auto;
    position: relative;
    list-style: none;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: fill;
}

.caption {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    text-shadow: 2px 2px 2px #080402;
    padding: 1rem;
    width: 90%;
    max-width: 700px;
}

.caption h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.2;
}

.caption h3 {
    font-size: clamp(1.2rem, 3vw, 2rem);
    line-height: 1.2;
}

.caption p {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    line-height: 1.3;
}


/* Buttons */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    z-index: 1000;
    transition: background-color 0.3s;
}

.carousel-button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-button.prev {
    left: 10px;
}

.carousel-button.next {
    right: 10px;
}

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

    .caption p {
        font-size: 0.95rem;
    }

    .carousel-button {
        font-size: 1.5rem;
        padding: 0.3rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .caption h2 {
        font-size: 1.2rem;
    }

    .caption p {
        font-size: 0.85rem;
    }

    .carousel-button {
        font-size: 1.2rem;
    }
}

/* important alerts */
.important-alert-section {
    text-align: center;
    padding: 0rem 1rem;
    background-color: #4588f5;
}

.alert-heading {
    font-size: clamp(1.4rem, 2vw + 1rem, 2.5rem); /* responsive text size */
    color: #b23c3c;
    font-weight: bold;
    text-align: center;
    margin-bottom: 4vw;
    padding-top: 1vw;
    position: relative;
    width: 100%;
    top: 0;
    background-image: url('images/top-gray-triangle.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    z-index: 1;
    line-height: 1.2;
    height: 6.7vw;;
}




/* Recent Events Section */
.recent-events-cards-container, .news-updates-cards-container, .alert-cards-container {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 2rem;
    overflow: visible; /* Prevent squishing */
    padding: 0 1rem; /* Add some padding to the sides */
    margin: 0 auto; /* Center the container */
    width: 100%;
}

.news-updates-top, .recent-events-top{
    background-color: #4588f5;
    background-image: url('./images/top-yellow-cross.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100px;
}

.recent-events-card, .news-updates-card, .alert-card {
    background: #f9f9f9;
    padding: 1rem 1rem;
    border-radius: 10px;
    width: 30%; /* Responsive width */
    max-width: 400px; /* Optional: Set a max width for larger screens */
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: transform 0.3s;
    flex-shrink: 0; /* Prevent squishing */
}

.recent-events-card a, .news-updates-card a, .alert-card a{
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    color: #000;
}

.news-updates-card img{
    width: 95%;
    min-width: 100px;
}
.recent-events-card:hover, .news-updates-card:hover, .alert-card:hover {
    transform: scale(1.03);
}

.recent-events-title{
    text-decoration: none;
}

@media (max-width: 768px) {
    .recent-events-cards-container, .news-updates-cards-container, .alert-cards-container {
        flex-direction: column;
        align-items: center;
    }

    .recent-events-card, .news-updates-card, .alert-card {
        width: 90%;
        max-width: 400px; /* Optional: Set a max width for smaller screens */
    }
}

/* Button under cards */
.more-recent-events-btn, .more-news-updates-btn, .more-alerts-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.75rem 2rem;
    background-color: #e0c588;
    color: #000;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.more-recent-events-btn:hover, .more-news-updates-btn:hover, .more-alerts-btn:hover {
    background-color: #d1b46f;
}

.alert-title{
    color:red;
    margin-bottom: 10px;
    
}
.alert-text {
    color: black;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.recent-events-text, .news-updates-text {
    color: #333;
    font-size: 1rem;
    margin-bottom: 1rem;
    line-height: 1.4;
    text-align: justify;
}

.download-link a {
    color: blue;
    font-weight: bold;
    text-decoration: none;
    font-size: 1rem;
}

.download-link a:hover {
    text-decoration: underline;
}

/* Responsive */
@media screen and (max-width: 768px) {
    .alert-cards-container {
        flex-direction: column;
        align-items: center;
    }
}

/* More Alerts Button*/
.more-recent-events-container, .more-news-updates-container, .more-alerts-container {
    text-align: center;
    margin-bottom: 2rem;
}

.more-recent-events-btn, .more-news-updates-btn, .more-alerts-btn {
    background-color: #e0c588;
    color: #000;
    padding: 0.8rem 1.6rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
}

.more-recent-events-btn:hover, .more-news-updates-btn:hover, .more-alerts-btn:hover {
    background-color: #d1b46f;
}

@media (max-width: 768px) {
    .more-recent-events-btn, .more-news-updates-btn, .more-alerts-btn {
        width: 50%;
        display: inline-block;
    }
}

/* Vision & Mission Section */
.vision-mission-section {
    background-color: #4588f5; 
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    padding: 80px 20px; /* Adjust padding as needed */
    position: relative;
    overflow: hidden; /* To contain the pseudo-elements */
    color: #333; /* Adjust text color */
    border: 2px solid #000;
  }

  .vision-mission-wrapper {
    position: relative; /* To stack content above overlays */
    max-width: 960px; /* Adjust as needed */
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 30px;
    z-index: 1; /* Ensure content is above overlays */
    flex-wrap: wrap; /* Ensures responsiveness for smaller screens */
  }

  .vision-box, .mission-box {
    background-color: rgba(249, 249, 249, 0.6);;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex: 1;
    border: 2px solid black; /* black border */
  }

  .vision-box, .mission-box {
    border: 0.5rem outset rgba(255, 105, 180, 0.5); /* Apply opacity to the border using rgba */
    outline: 0.5rem solid rgba(196, 186, 51, 0.5); /* Apply opacity to the outline using rgba */
    box-shadow: 0 0 0 2rem rgba(145, 2, 161, 0.5); /* Apply opacity to the box-shadow */
    border-radius: 12px;
    font: bold 1rem sans-serif;
    margin: 2rem;
    padding: 1rem;
    outline-offset: 0.5rem;
  }


  .vision-box h2, .mission-box h2 {
    color: #2e7d32; /* Darker green for headings */
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
  }

  .vision-box p, .mission-box p {
    text-align: justify; /* Justify text for better readability */
  }

  @media (max-width: 768px) {
    .vision-mission-wrapper {
        flex-direction: column;
    }
}


/* Principal's Message */
/* Principal Section Styles */
.principal-section {
    background-color: #4588f5;
    background-size: cover; 
    padding: 60px 20px;
    position: relative;
}

.principal-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8); /* Light overlay to make text readable */
    z-index: 1;
}

.principal-section .content {
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center (optional) */

    justify-content: space-between;
    max-width: 100%;
    margin: 20px 2rem;
    position: relative;
    z-index: 2;
    flex-wrap: wrap; /* for responsiveness */
}

.principal-section .text {
    flex: 1 1 50%;
    padding: 20px;
    display: inline;
    text-align: justify;
    margin: auto;
}

.principal-section .text h5 {
    color: #008000;
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
}

.principal-section .text h1 {
    color: #004d00;
    font-size: 36px;
    margin-bottom: 20px;
    font-weight: bold;
}

.principal-section .text p {
    color: #333;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.principal-section .text h4 {
    color: #006400;
    font-size: 20px;
    font-weight: bold;
}

.principal-section .image {
    flex: 1 1 20%;
    text-align: center;
    padding: 20px;
    display: inline;
}

.principal-section .image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 10px;
    margin: 5px auto;
}

/* Responsive design */
@media (max-width: 768px) {
    .principal-section .content {
        flex-direction: column;
        text-align: center;
    }

    .principal-section .text,
    .principal-section .image {
        flex: 1 1 100%;
        padding: 10px;
        width: 100%;
    }

    .principal-section .text h1 {
        font-size: 28px;
    }

    .principal-section .text p {
        font-size: 16px;
    }
}



/* News & Updates */
.contact-us-heading, .recent-events-heading, .news-updates-heading{
    background-color: #324f00;
    width: 100%;
    align-items: center; /* vertical alignment */
    display: flex; /* enable flexbox layout */
    justify-content: center; /* optional: horizontal center */

    height: clamp(3rem, 5vw + 1rem, 5rem);
    color: white;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.5rem);
    font-weight: bold;
}


.recent-events-card, .news-updates-card{
    margin-top: 50px;
}

.event-image{
    min-height: 200px;
    max-height: 200px;
    width: 95%;
}

/* History section */
.school-history {
    margin: 20px 2rem;
    gap: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background-color: #4588f5;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 20px;
}

.school-history .content {
    flex: 1 1 500px;
    width: 100%;
    max-width: 700px;
    margin: 5px auto; /* Center horizontally */
    padding: 20px;

    /* border */
    --s: 10px; /* control the size */
    border: calc(2 * var(--s)) solid #0000;
    outline: 1px solid #000;
    outline-offset: calc(-1 * var(--s));
    background: conic-gradient(from 90deg at 1px 1px, #0000 25%, #000 0);
}

.school-history .content h1 {
    font-family: "Metamorphous", serif;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    text-transform: uppercase;
    font-size: 40px;
    color: #082303;
    letter-spacing: 6px;
    line-height: 1.5em;
    margin-bottom: 20px;
}

.school-history .content p {
    color: #003300;
    font-family: 'ABeeZee', sans-serif;
    text-align: justify;
    font-size: 13px;
    margin-bottom: 10px;
}

.school-history .images {
    flex: 1 1 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* NEW */
    gap: 20px;
    width: 100%;
    max-width: 540px;
    margin: 5px auto; /* Center horizontally & vertically */

    /* frame */
    background-color: #ddc;
    border: solid 5vmin #eee;
    border-bottom-color: #fff;
    border-left-color: #eee;
    border-radius: 2px;
    border-right-color: #eee;
    border-top-color: #ddd;
    box-shadow: 0 0 5px 0 rgba(0, 0, 0, .25) inset, 0 5px 10px 5px rgba(0, 0, 0, .25);
    padding: 2vmin;
    box-sizing: border-box;
    position: relative;
    text-align: center;
    max-height: 680px;
}

.school-history .images::before {
    content: "";
    position: absolute;
    top: -2vmin;
    bottom: -2vmin;
    left: -2vmin;
    right: -2vmin;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .25) inset;
}

.school-history .images::after {
    content: "";
    position: absolute;
    top: -2.5vmin;
    bottom: -2.5vmin;
    left: -2.5vmin;
    right: -2.5vmin;
    border-radius: 2px;
    box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .25);
}


.school-history .images img {
    width: 100%;
    border: solid 2px;
    border-bottom-color: #ffe;
    border-left-color: #eed;
    border-right-color: #eed;
    border-top-color: #ccb;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    box-shadow: 1px 4px 8px rgba(0,0,0,0.1);
}

/* Responsive behavior */
@media (max-width: 992px) {
    .school-history {
        flex-direction: column;
        margin: 30px 5vw;
    }

    .content {
        text-align: center;
    }

    .images {
        margin: auto;
    }
}

@media (max-width: 600px) {
    .content h1 {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .content p {
        font-size: 14px;
    }

    .images {
        max-width: 90vw;
        padding: 10px;
        margin: 20px auto; /* Re-center again just in case */
    }
}

/* Contact Us Section */
.yellow-border {
    background: url('images/inverted-yellow-border.png') no-repeat center top;
    background-size: cover;
    height: 120px;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    padding: 2rem;
    gap: 2rem;
}

.contact-form, .contact-info {
    background: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    flex: 1 1 400px;
    max-width: 600px;
}

.contact-form h2, .contact-info h2 {
    margin-bottom: 1rem;
    color: #333;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 1rem;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.submit-btn {
    background: #2f5d4c;
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    display: block;
    margin-left: auto;
}

.contact-info .info-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    background: #2f5d4c;
    color: white;
    border-radius: 50%;
    padding: 0.5rem;
    margin-right: 1rem;
    font-size: 1.2rem;
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.social-icons a {
    color: white;              /* Icon color */
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;               /* Equal width */
    height: 40px;              /* Equal height for perfect circle */
    border-radius: 50%;        /* Circular shape */
    transition: background-color 0.3s;
}


.contact-info p {
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
    }
}

/* Footer */
#main-footer{
    background-color: #000;
    width: 100%;
    min-height: 50px;
    max-height: 100px;
    display: flex;
    align-items: center; /* Vertically center */
    justify-content: center; /* Horizontally center (optional) */

}
#footer-info {
    color: #fff;
    text-align: center;
    font-size: 16;

}

