body {
    font-family: Arial, sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
}

header {
    background: linear-gradient(135deg, var(--primary-color), #574b90) !important;
    border-bottom: 5px solid var(--secondary-color);

    /* Use light background */
    color: var(--dark-color);
    /* Use dark text for contrast */
    padding: 2rem 0 !important;
    /* Reduced padding */
    /* Primary color border */
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    /* Subtle shadow for depth */
    text-align: center;

}

header h1 {
    font-size: 2.2rem;
    text-shadow: 0.1rem 0.1rem 0.2rem rgba(0, 0, 0, 0.1);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

header p {
    font-size: 1rem;
}

.section {
    padding: 20px;
}

header img {
    max-width: 100px;
    height: auto;
    /* mix-blend-mode: multiply; */
    -webkit-filter: grayscale(1) invert(1);
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
}

.gallery {
    margin: 20px auto;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.calendar {
    margin: 20px auto;
}

.event {
    border-left: 4px solid #005a87;
    margin-bottom: 15px;
    padding: 10px 15px;
    background-color: #f9f9f9;
    border-radius: 0 5px 5px 0;
}

.event-date {
    font-weight: bold;
    color: #005a87;
}

footer {
    background-color: #003f5c;
    color: white;
    padding: 10px;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

.modal-lg-gallery {
    max-width: 75%;
}

/* :root {
    --primary-color: #2e86de;
    --secondary-color: #ff9f43;
    --accent-color: #10ac84;
    --light-color: #f5f6fa;
    --dark-color: #2f3542;
} */

:root {
    /* Fresh Color Palette */
    --primary-color: #3498db;
    /* A brighter, classic blue */
    --secondary-color: #e67e22;
    /* A vivid orange */
    --accent-color: #2ecc71;
    /* An emerald green */
    --light-color: #ecf0f1;
    /* A very light gray, almost white */
    --dark-color: #34495e;
    /* A dark grayish blue */
}

body {
    font-family: 'Nunito', sans-serif;
    color: #333;
    background-color: var(--light-color);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}




/* Section improvements */
section h2 {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 25px;
}

section h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

/* Card improvements */
.card {
    border: none;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Calendar improvements */
.list-group-item {
    border-left: 5px solid var(--primary-color);
    margin-bottom: 10px;
    border-radius: 5px !important;
    transition: all 0.2s;
}

.list-group-item:hover {
    background-color: rgba(46, 134, 222, 0.05);
    transform: scale(1.01);
}

.list-group-item:nth-child(2) {
    border-left-color: var(--secondary-color);
}

.list-group-item:nth-child(3) {
    border-left-color: var(--accent-color);
}

.list-group-item:nth-child(4) {
    border-left-color: #574b90;
}

/* Map improvements */
#map iframe {
    width: 100%;
    height: 400px;
    border: 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Contact section */
#contact {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#contact a {
    color: var(--primary-color);
    font-weight: bold;
    transition: color 0.2s;
}

#contact a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}


footer {
    background: linear-gradient(135deg, var(--dark-color), #1e272e) !important;
    padding: 1.5rem 0 !important;
    /* position: relative; */
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.calendar-event {
    transition: background 0.2s;
    padding: 0.5rem 1rem;
}

.calendar-event.expanded {
    background: #eaf6ff;
}

.calendar-event .event-summary {
    font-size: 1rem;
}

.calendar-event .event-details {
    font-size: 0.95rem;
    color: #333;
}

/* General menu styles */
.menu-container {
    position: relative;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 1rem;

}

#mobile-menu {
    display: none;
    /* Hidden by default */
}

#desktop-menu {
    display: block;

}

.menu-toggle {
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
    /* Hidden by default, shown on mobile */
}

.nav-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    /* position: sticky;
    top: 0; */
    z-index: 40;
}

.nav-menu ul {
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    color: var(--light-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s;
}

.nav-menu a:hover {
    color: var(--accent-color);
}


/* Responsive styles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        background-color: var(--dark-color);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease-in-out;
    }

    .nav-menu.open {
        height: auto;
        padding: 1rem;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .nav-menu a {
        font-size: 1.2rem;
        padding: 0.5rem 1rem;
        display: block;
        width: 100%;
    }

    header {
        padding-top: 1.5rem !important;
        /* Further reduce top padding */
        padding-bottom: 1.5rem !important;
        /* Further reduce bottom padding */
    }

    header h1 {
        font-size: 1.8em;
        /* Further reduce h1 font size */
    }

    header p {
        font-size: 0.9em;
        /* Further reduce paragraph font size */
    }

    header img {
        max-width: 50px !important;
        /* Further reduce logo size */
    }

    .nav-tabs .nav-link {
        font-size: 0.9rem;
        /* Slightly smaller nav links */
        padding: 0.4rem 0.6rem;
        /* Adjust padding for nav links */
    }

    .nav-tabs .dropdown-toggle {
        font-size: 0.9rem;
        /* Match dropdown toggle size */
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 576px) {

    #mobile-menu {
        display: block;
        /* Hidden by default */
    }

    #desktop-menu {
        display: none;
    }


    header {
        padding-top: 0.5rem !important;
        /* Further reduce top padding */
        padding-bottom: 0.5rem !important;
        /* Further reduce bottom padding */
        flex-direction: column;
        /* Stack logo and text vertically */
        text-align: center;
    }

    header img {
        max-width: 40px !important;
        /* Further reduce logo size */
        margin-bottom: 0.5rem;
        /* Add some space below the logo */
        margin-right: 0 !important;
        /* Remove right margin when stacked */
    }

    header h1 {
        font-size: 1.5em;
        /* Further reduce h1 font size */
    }

    header p {
        font-size: 0.8em;
        /* Further reduce paragraph font size */
    }

    .nav-tabs {
        flex-wrap: wrap;
        /* Allow nav items to wrap */
    }

    .nav-tabs .nav-link,
    .nav-tabs .dropdown-toggle {
        font-size: 0.85rem;
        padding: 0.3rem 0.5rem;
        margin-bottom: 0.25rem;
        /* Space between wrapped items */
    }

    .px-2 {
        padding-right: .1rem !important;
        padding-left: .1rem !important;
    }
}

.dropdown-item.nav-link.active {
    color: var(--primary-color);
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-top-left-radius: var(--bs-nav-tabs-border-radius);
    border-top-right-radius: var(--bs-nav-tabs-border-radius);
    border-bottom-left-radius: var(--bs-nav-tabs-border-radius);
    border-bottom-right-radius: var(--bs-nav-tabs-border-radius);
}

/* Highlighted glossary terms */
.glossary-term {
    cursor: pointer;
    text-decoration: dotted underline #000dff 2px;
    text-underline-offset: 0.15em;

}

/* Glossary popup styling */
.glossary-popup {
    position: absolute;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-width: 300px;
}

/* Highlighted glossary terms */
.dev-todo {
    border: 1px solid #ff0000;
    background-color: #ffcccc;
    color: #000dff;

}



/* 2) If you’d rather keep the <div class="clearfix"></div>, re-define it: */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}