html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-x: hidden;
 }

 body{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: "Nunito Sans", sans-serif;
    position: relative;
 }

 .main {
    flex: 1 0 auto;
    width: 100%;
    padding-bottom: 45px;
 }

 .page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background-color: white;
    font-family: "Nunito Sans";
    color: #043259;
}



.logo-container {
    flex-shrink: 0;
}

.logo-container img {
    margin-top: 10px;
    width: 118px;
    height: 70px;
    object-fit: contain;
    margin-left: 59px;
}

.header-links {
    display: flex;
    gap: 59px;
    font-size: 16px;
    font-weight: 400;
    align-items:center;
    align-self: flex-end; 
    padding-bottom: 10px; 
}


.header-links a {
    color: #043259;
    text-decoration: none;
    font-size: 16px;
    line-height: 16.37px;

}

.header-links a:hover {
    text-decoration: underline;
}

header a:last-child {
    margin-right: 59px;
}

/* ADDING THIS NEW CODE 10/27/2025 */
.dropdown-nav {
    position: relative;
    display: inline-block;
    z-index: 1000;
}

.dropdown-nav > a {
    cursor: pointer;
    position: relative;
    z-index: 1001;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: white;
    min-width: 200px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1002;
    border-radius: 8px;
    margin-top: 5px;
    top: 100%;
    left: 0;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.3s;
    background-color: white;
}

.dropdown-content a:hover {
    background-color: #e0f7fa;
    color: #26a69a;
}

.dropdown-nav:hover .dropdown-content {
    display: block;

}

.home-header, .page-header {
    position: relative;
    z-index: 100; /* Lower than dropdown */
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }



    .header-links {
        gap: 15px;
        position: relative;
        z-index: 100;
    }

    .logo-container img {
        width: 100px;
        height: 60px;
    }
}


/* Footer - EDIT HERE FOR ALL PAGES */
footer {
    background-color: #043259; 
    color:white;
    padding: 0;
    display: flex;
    justify-content: space-between; 
    align-items: center;
    position: relative;
    left: 0px;
    bottom: 0; 
    width: 100%; 
    font-family: "Nunito Sans";
    font-size: 12px;
    font-weight: 400;
    line-height: 30px;
    margin-top: auto;
    margin-bottom: 0;
    clear: both;
    box-sizing: border-box;
    flex-shrink: 0;
}


.footer-links {
    display: flex;
    gap: 40px; /* Adjust this value to control space between links */
    margin-left: 77px;
}

footer a {
    color: white;
    text-decoration: none;

}

footer a:hover {
    text-decoration: underline;
}


.social-media-container {
    display: flex;
    justify-content: flex-end;
    margin-right: 77px;
}

.social-media {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-media img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    margin-top: 8px;
}

/* ==========================================
   HEADER & FOOTER MOBILE (max-width: 768px)
   ========================================== */
@media (max-width: 768px) {

    /* Header - keep logo left, help button right */
    .page-header {
        flex-direction: row; /* ← override the column from existing media query */
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        gap: 0;
    }

    .logo-container img {
        width: 90px;
        height: 50px;
        margin-left: 0;
        margin-top: 0;
    }

    .header-links {
        gap: 12px;
        padding-bottom: 0;
        align-self: center;
    }

    /* Last item (help button) no extra margin */
    header a:last-child {
        margin-right: 0;
    }

    /* Footer - stack vertically */
    footer {
        flex-direction: column;
        align-items: center;
        padding: 10px;
        text-align: center;
        gap: 8px;
        line-height: 1.8;
    }

    .footer-links {
        flex-direction: column;  /* stack links */
        gap: 4px;
        margin-left: 0;
        align-items: center;
        font-size: 10px;
    }

    .social-media-container {
        margin-right: 0;
        justify-content: center;
    }

    .social-media {
        gap: 16px;
    }

    .social-media img {
        margin-top: 0;
    }
}

/* ==========================================
   SMALL MOBILE (max-width: 480px)
   ========================================== */
@media (max-width: 480px) {

    .page-header {
        padding: 10px 12px;
    }

    .logo-container img {
        width: 80px;
        height: 45px;
    }

    .footer-links {
        font-size: 10px;
        gap: 2px;
    }
}