/* ==========================================================================
   Base & Layout (Sticky Footer Implementation)
   ========================================================================== */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    width: 100%;
    background-color: #f8f9fa;

    /* --- This creates the sticky footer --- */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 70px;
}

@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
}

main {
    flex-grow: 1;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

/* ==========================================================================
   Header / Navbar
   ========================================================================== */
.navbar {
    background: rgba(15, 78, 163, 1);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.navbar-brand span {
    font-weight: bold;
}

.navbar-brand img {
    height: 45px;
}

@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 40px;
    }
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-nav .nav-link {
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease-in-out;
    font-weight: 500;
}

    /*.navbar-nav .nav-link.nav-active::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        height: 3px;
        width: 60%;
        background-color: gold;
        border-radius: 2px;
    }*/

    .navbar-nav .nav-link.nav-active::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: 0;
        height: 3px;
        width: 100%;
        background-color: gold;
        border-radius: 2px;
    }

@media (min-width: 992px) {
    .navbar-nav .nav-link:not(.nav-active):hover {
        color: #ffdd57 !important;
    }
}

/* ==========================================================================
   Two-Part Footer
   ========================================================================== */
/* This is the parent container for both footer sections */
footer {
    flex-shrink: 0; /* Prevents the footer from shrinking in the flex layout */
}

/* Styles for the MAIN, detailed footer section */
.footer-main {
    background: linear-gradient(to right, rgba(15,78,163,1) 0%, rgba(15,78,163,1) 30%, #054499 60%, #054499 100%);
    color: white;
    padding: 20px 20px;
}

.footer-heading {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffdd57;
}

.footer-logo {
    width: 80px;
    margin-bottom: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-school-name {
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    color: white;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-icon {
    color: #ff4b4b;
    margin-right: 15px;
    font-size: 1rem;
    margin-top: 4px;
    width: 20px;
    text-align: center;
}

.footer-map {
    width: 100%;
    height: 170px;
    border: none;
    border-radius: 5px;
}

/* Styles for the COPYRIGHT sub-footer section */
.footer-copyright {
    background-color: #003580; /* A solid, dark blue for contrast */
    color: white;
    padding: 20px 20px;
    text-align: center;
    font-size: 0.85rem;
}


    .footer-copyright a {
        color: #ffdd57; /* Use the same accent color for the link */
        text-decoration: none;
        font-weight: 500;
    }

    .footer-copyright a:hover {
        text-decoration: underline;
    }