/* ----- Basic Resets ----- */
body {
    font-family: 'Raleway', sans-serif;
    background-color: #ffffff;
    color: #00022b;
    margin: 0;
    padding: 0;
    justify-self: center;
    width: 100%;
}

header {
    background-color: hsl(0, 0%, 100%);
    padding-top: 20px;
    text-align: center;
    top: 0;
    position:sticky;
    z-index: 3;
}

footer {
    text-align: center;
    padding-top: 20px;
    background-color: #ffffff;

}

footer p {
    margin-top: 20px;
    margin-bottom: 20px;
}

.layer1 {
    width:100%;
    height:17px;
    background-color: #9d9d9d;
    margin-top: 20px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5); /* Shadow under first layer */
    z-index: 6;
}

.layer2 {
    width:100%;
    height:12px;
    background-color: #94c4ff;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.5); /* Shadow under first layer */
    z-index: 5;
}

.layer3 {
    width:100%;
    height:12px;
    background-color: #94c4ff;
    box-shadow: 0px -5px 10px rgba(0, 0, 0, 0.5); /* Shadow under first layer */
    z-index: 1;
    margin-top: 15px;
}

.layer4 {
    width:100%;
    height:17px;
    background-color: #9d9d9d;
    z-index: 2;
}

/* ----- Navigation ----- */
nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    transition: max-height 0.3s ease; /* Smooth open/close */
    max-height: 0;                   /* Collapsed by default on mobile */
    overflow: hidden;                /* Hide content when collapsed */
}

/* Show the nav (for mobile) when .open class is applied in JS */
nav ul.open {
    max-height: 300px; /* or any value greater than the actual height of the <ul> */
}

nav ul li {
    margin: 10px;
    border-right: 2px solid lightgray; /* Vertical separator */
    padding-right: 20px;
}

nav ul li:last-child {
    border-right: none;
    padding-right: 0;
}


.main-title {
    justify-self: center;
}

nav ul li a {
    text-decoration: none;
    color: #00022b;
    font-size: 18px;
    font-weight: bold;

}

nav ul li a:hover {
    color: #3e43a5;
}

@media (min-width: 769px) {
    /* On larger screens, show nav normally (horizontal) */
    nav ul {
        max-height: none; /* no more collapse/expand needed */
        display: flex;
        justify-content: center;
        overflow: visible;
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        float: right;
        position: fixed;
        top: 0;
        right: 0;
        gap: 0px;
        margin: 0px;
        margin-top: 20px;
        margin-right: 20px;
    }

    .contact-info p {
        font-weight: bold;
        margin-top: 5px;
        margin-bottom: 5px;
    }

    nav ul li {
        margin: 10px;
        border-right: 2px solid lightgray; /* Vertical separator */
        padding-right: 20px;
    }
    
    nav ul li:last-child {
        border-right: none;
        padding-right: 0;
    }

    nav {
        padding-top: 0px;
    }

    .logo {
        float: left;
        padding-left: 20px;
        width: 150px;
        height: 75px;
    }

    .main-title {
        display: block;
    }

    .body-width {
        width: 80%;
        justify-self: center;
    }
}

/* ----- Hamburger Menu Button ----- */
.menu-toggle {
    /* Hide by default on larger screens */
    display: none;
    position: relative;
    width: 30px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    margin: 0 auto; /* center horizontally if desired */
    padding: 0;
}

/* The hamburger bars (3 lines) */
.bar {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #333;
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

/* Position each bar */
.bar1 {
    top: 0;
}
.bar2 {
    top: 10px;
}
.bar3 {
    top: 20px;
}

/* When the button has class 'active', transform into an X */
.menu-toggle.active .bar1 {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar2 {
    opacity: 0;
    left: -30px;
}

.menu-toggle.active .bar3 {
    top: 10px;
    transform: rotate(-45deg);
}

/* Show hamburger button on smaller screens */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav {
        padding-top: 20px;
    }

    nav ul li {
        margin: 10px;
        border-right: none; /* Vertical separator */
        padding-right: 0px;
    }

    .contact-info {
        display:none;
    }

    /* Hide the flex display for nav by default in mobile,
       so we rely on the .open class for the visible state */
    nav ul {
        display: block;
        text-align: center;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }

    .logo {
        float: center;
        width: 200px;
        height: 100px;
        padding-bottom: 30px;
    }

    .main-title {
        display: none;
    }

    .body-width {
        width: 95%;
        justify-self: center;
    }
}

/* ----- Accordion Styles ----- */
.accordion-toggle {
    background: none;
    border: none;
    outline: none;
    text-align: left;
    width: 100%;
    padding: 10px;
    font-size: 18px;
    cursor: pointer;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 10px;
    border: 1px solid #ccc;
    border-top: none;
}

.icon {
    float: right;
    transition: transform 0.3s ease-out;
}

.icon.rotate {
    transform: rotate(45deg);
}

.active .accordion-content {
    padding: 10px;
}
/*
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
    height: 0;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
}
*/

.map-container {
    display:flex;
    justify-content: center;
}
