/* Footer Sections */
#main-footer, #secondary-footer {
    width: 100%;
    box-sizing: border-box;
    color: #FFFFFF;
}

/* Main Footer Section */
#main-footer {
    background-color: #FFFFFF;
    color: #1E3A8A;
    padding: clamp(1rem, 4vw, 1.5rem) clamp(0.5rem, 3vw, 1rem);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#main-footer .footer-content {
    display: flex;
    flex-direction: column;
    gap: clamp(0.75rem, 3vw, 1rem);
    max-width: 100%;
    margin: 0 auto;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

#main-footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

#main-footer .qr-code img {
    max-width: clamp(60px, 15vw, 80px);
    height: auto;
    border: 1px solid #1E3A8A;
}

#main-footer .qr-code p {
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    color: #1E3A8A;
    margin: 0.5rem 0;
}

#main-footer .social-icons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

#main-footer .social-icons a {
    color: #1E3A8A;
    font-size: clamp(1rem, 3vw, 1.2rem);
    transition: color 0.3s;
}

#main-footer .social-icons a:hover,
#main-footer .social-icons a:focus {
    color: #60A5FA;
}

#main-footer .quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#main-footer .quick-links li {
    margin-bottom: 0.5rem;
}

#main-footer .quick-links a {
    color: #1E3A8A;
    text-decoration: none;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

#main-footer .quick-links a i {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
    color: #1E3A8A;
    transition: color 0.3s;
}

#main-footer .quick-links a:hover,
#main-footer .quick-links a:focus,
#main-footer .quick-links a:hover i,
#main-footer .quick-links a:focus i {
    color: #60A5FA;
}

#main-footer .company-contact p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
    color: #1E3A8A;
    margin-bottom: 0.5rem;
}

#main-footer .company-contact a {
    color: #1E3A8A;
    text-decoration: none;
    transition: color 0.3s;
}

#main-footer .company-contact a:hover,
#main-footer .company-contact a:focus {
    color: #60A5FA;
}

#main-footer .company-contact i {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

#main-footer .company-contact .map-container {
    width: 100%;
    max-width: clamp(100px, 25vw, 120px);
    height: clamp(80px, 20vw, 100px);
    margin: 0.5rem auto;
}

#main-footer .company-contact .map-container iframe,
#main-footer .company-contact .map-container .fallback-map {
    width: 100%;
    height: 100%;
    border: 1px solid #1E3A8A;
    border-radius: 5px;
}

/* Secondary Footer Section */
#secondary-footer {
    background-color: #1E3A8A;
    padding: clamp(0.5rem, 3vw, 1rem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60px;
}

#secondary-footer .footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    width: 100%;
    max-width: 100%;
    padding: 0 clamp(0.5rem, 2vw, 1rem);
}

#secondary-footer .footer-links p {
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    margin: 0;
    text-align: center;
}

#secondary-footer .footer-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(0.5rem, 2vw, 0.75rem);
    width: 100%;
    max-width: 250px;
}

#secondary-footer .footer-btn {
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    padding: clamp(0.2rem, 1.5vw, 0.3rem) clamp(0.5rem, 2vw, 0.8rem);
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s, color 0.3s;
}

#secondary-footer .footer-btn:hover,
#secondary-footer .footer-btn:focus {
    background-color: #FFFFFF;
    color: #1E3A8A;
}

/* GTranslate Wrapper */
.gtranslate_wrapper {
    border: 1px solid #1E3A8A;
    padding: clamp(0.3rem, 1.5vw, 0.5rem);
    background-color: #1E3A8A;
    border-radius: 6px;
    display: inline-block;
}
.gtranslate_wrapper * {
    box-sizing: border-box;
    color: orange;
}
.gtranslate_wrapper select,
.gtranslate_wrapper button {
    background-color: #1E3A8A;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    padding: clamp(0.2rem, 1.5vw, 0.3rem) clamp(0.5rem, 2vw, 0.8rem);
    font-size: clamp(0.7rem, 2.5vw, 0.8rem);
    cursor: pointer;
}
.gtranslate_wrapper select:hover,
.gtranslate_wrapper button:hover {
    background-color: #2B4B9F;
}

/* Responsive Design for Tablets and Larger (≥401px) */
@media (min-width: 401px) {
    #main-footer {
        padding: clamp(1.5rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    }

    #main-footer .footer-content {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: clamp(1rem, 2vw, 1.5rem);
    }

    #main-footer .footer-column {
        width: calc(33.33% - clamp(0.5rem, 1vw, 0.75rem));
        min-width: 150px;
    }

    #main-footer .qr-code img {
        max-width: clamp(80px, 15vw, 100px);
    }

    #main-footer .company-contact .map-container {
        max-width: clamp(120px, 25vw, 150px);
        height: clamp(100px, 20vw, 120px);
    }

    #secondary-footer .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: clamp(0.75rem, 2vw, 1rem);
    }

    #secondary-footer .footer-buttons {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    #secondary-footer .footer-btn {
        width: auto;
        max-width: 150px;
    }
}

/* High-Resolution Displays (e.g., Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    #main-footer .qr-code img,
    #main-footer .company-contact .map-container iframe,
    #main-footer .company-contact .map-container .fallback-map {
        border-width: 0.5px;
    }
}