.footer{
    font-family: Arial, sans-serif;
    z-index: 100;
}

.footer-top{
    background-color: #00579c;
    color: #ffffff;
    padding: 2.5rem 4rem 1.25rem;
}

.footer-top a{
    color: #ffffff;
    text-decoration: none;
}

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

.footer-main{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 3rem;
}

.footer-column h3{
    margin: 0 0 0.75rem;
    font-size: 1.1rem;
}

.footer-column p{
    margin: 0.25rem 0;
    line-height: 1.4;
}

.footer-center{
    text-align: center;
    flex: 1;
}

.footer-center h3{
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-links{
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li{
    margin: 0.3rem 0;
    font-size: 0.98rem;
}

.footer-icon{
    margin-right: 0.4rem;
}

.footer-right{
    text-align: right;
}

.footer-nav{
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 1.5rem 0 0.75rem;
    font-size: 0.95rem;
}

.footer-lower{
    background-color: #ffffff;
    color: #111111;
    padding: 1.25rem 4rem 1.25rem;
    border-top: 1px solid rgba(0,0,0,0.08);
}

.footer-lower a{
    color: #111111;
    text-decoration: underline;
}

.footer-lower a:hover{
    text-decoration: none;
}

.footer-lower-row{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    font-size: 0.85rem;
}

.footer-gov{
    max-width: 60%;
}

.footer-logo img{
    height: 100px;
}

.footer-copy{
    margin-top: 0.75rem;
    text-align: center;
    font-size: 0.8rem;
}

body{
    margin: 0;
}

/* Inside the modal */
#modal-body h2 {
    color: #00579c;
    border-bottom: 2px solid #00579c;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

#modal-body p {
    line-height: 1.6;
    color: #444;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

#modal-body strong {
    color: #00579c; /* Matching the Bacolod Blue */
}

.modal-scroll-area {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 10px;
}

.hotline-list, .advisory-list {
    list-style: none;
    padding: 0;
}

.hotline-list li {
    display: flex;
    justify-content: space-between; /* Pushes name to left, number to right */
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    gap: 15px;
}

.agency-name {
    font-weight: 600;
    color: #333;
    flex: 1; /* Allows name to take up available space */
}

.hotline-number {
    color: #d32f2f;
    font-weight: bold;
    text-align: right;
    font-family: 'Courier New', Courier, monospace; /* Makes numbers easier to read */
}

.advisory-list li {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.advisory-list li strong {
    color: #333;
}

.advisory-list small {
    color: #888;
    display: block;
    margin-bottom: 5px;
}

.advisory-list p {
    margin: 5px 0 0;
    font-size: 0.95rem;
}

@media screen and (max-width: 768px) {
    /* 1. Stack the main footer columns */
    .footer-main {
        flex-direction: column;
        gap: 2rem;
        text-align: left; /* Better readability on mobile */
    }

    .footer-top {
        padding: 2rem 1.5rem; /* Reduce large desktop padding */
    }

    /* 2. Reset alignments for center and right columns */
    .footer-center, 
    .footer-right {
        text-align: left;
        flex: none;
    }

    .footer-center h3 {
        margin-bottom: 0.75rem;
    }

    /* 3. Stack the secondary navigation (About, Terms, etc.) */
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
        padding-top: 1rem;
    }

    /* 4. Handle the lower white section */
    .footer-lower {
        padding: 1.5rem;
    }

    .footer-lower-row {
        flex-direction: column-reverse; /* Put the logo above the text on mobile */
        align-items: flex-start;
        gap: 1.5rem;
    }

    .footer-gov {
        max-width: 100%; /* Take up full width */
    }

    .footer-logo img {
        height: 80px; /* Slightly smaller logo */
    }

    .footer-copy {
        text-align: left;
        margin-top: 1.5rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 1rem;
    }

    /* Make the overlay have less padding so the modal can be wider */
    .modal-overlay {
        padding: 15px;
    }

    /* Expand modal width and limit height for small screens */
    .modal-content {
        width: 95%;
        padding: 1.5rem;
        max-height: 85vh; /* Prevents modal from touching top/bottom of screen */
    }

    /* Adjust the Title size */
    #modal-body h2 {
        font-size: 1.25rem;
        text-align: center;
    }

    /* Stack Hotline items vertically on mobile for better spacing */
    .hotline-list li {
        flex-direction: column; /* Stack them on mobile */
        align-items: flex-start;
        gap: 5px;
    }

    .hotline-number {
        text-align: left;
        font-size: 1rem;
    }

    /* Adjust Advisory text size for readability */
    .advisory-list p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    /* Make the close button easier to tap */
    .close-modal {
        top: 0.5rem;
        right: 1rem;
        font-size: 2rem;
    }
}