/* Footer Sections */
#main-footer, #secondary-footer {
    width: 100%;
    color: #FFFFFF;
}

/* Main Footer Section */
#main-footer {
    background-color: #FFFFFF;
    color: #1E3A8A;
    padding: clamp(1.5rem, 3vw, 3rem) clamp(0.8rem, 2vw, 2rem);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#main-footer .footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three-column layout for larger screens */
    gap: clamp(1rem, 2vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

#main-footer .footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

#main-footer .qr-code img {
    max-width: clamp(100px, 20vw, 150px);
    height: auto;
    border: 1px solid #1E3A8A;
}

#main-footer .qr-code p {
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #1E3A8A;
    margin: 0.5rem 0;
}

#main-footer .social-icons {
    display: flex;
    gap: 1rem;
}

#main-footer .social-icons a {
    color: #1E3A8A;
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    transition: color 0.3s;
}

#main-footer .social-icons a:hover,
#main-footer .social-icons a:focus {
    color: #60A5FA;
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

#main-footer .quick-links ul {
    list-style: none;
}

#main-footer .quick-links li {
    margin-bottom: 0.5rem;
}

#main-footer .quick-links a {
    color: #1E3A8A;
    text-decoration: none;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color 0.3s;
}

#main-footer .quick-links a i {
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    color: #1E3A8A;
    transition: color 0.3s;
}

#main-footer .quick-links a:hover,
#main-footer .quick-links a:focus {
    color: #60A5FA;
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
}

#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;
    gap: 0.5rem;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    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 {
    color: #1E3A8A;
    font-size: clamp(0.9rem, 1.8vw, 1.2rem);
}

#main-footer .company-contact .map-container {
    margin: 0.5rem 0;
    width: 100%;
    max-width: clamp(150px, 30vw, 200px);
    height: clamp(100px, 20vw, 150px);
    position: relative;
}

#main-footer .company-contact .map-container iframe {
    width: 100%;
    height: 100%;
    border: 1px solid #1E3A8A;
    border-radius: 5px;
    transition: transform 0.3s;
}

#main-footer .company-contact .map-container iframe:hover {
    transform: scale(1.02);
}

#main-footer .company-contact .map-container .fallback-map {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #1E3A8A;
    border-radius: 5px;
}

/* Secondary Footer Section */
#secondary-footer {
    background-color: #1E3A8A;
    padding: clamp(0.8rem, 2vw, 1.5rem) clamp(0.8rem, 2vw, 2rem);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

#secondary-footer .footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
}

#secondary-footer .footer-links p {
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    margin: 0;
}

#secondary-footer .footer-buttons {
    display: flex;
    gap: clamp(0.6rem, 1.5vw, 1rem);
    flex-wrap: wrap;
    justify-content: center;
}

#secondary-footer .footer-btn {
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(0.8rem, 1.5vw, 0.9rem);
    padding: clamp(0.2rem, 0.5vw, 0.3rem) clamp(0.5rem, 1.5vw, 0.8rem);
    border: 1px solid #FFFFFF;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s, transform 0.3s;
}

#secondary-footer .footer-btn:hover,
#secondary-footer .footer-btn:focus {
    background-color: #FFFFFF;
    color: #1E3A8A;
    outline: 2px solid #60A5FA;
    outline-offset: 2px;
    transform: scale(1.05);
}

/* Responsive Design for Smallest Mobile View (≤400px) */
@media (max-width: 400px) {
    #main-footer {
        padding: 1.5rem 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content horizontally */
    }

    #main-footer .footer-content {
        grid-template-columns: 1fr; /* Single-column layout for small screens */
        gap: 1rem;
        justify-items: center; /* Center grid items horizontally */
        max-width: 90%; /* Limit content width for better centering */
    }

    #main-footer .footer-column {
        align-items: center; /* Center column content */
        width: 100%;
        max-width: 400px; /* Cap width for consistency */
    }

    #main-footer .qr-code img {
        max-width: clamp(60px, 12vw, 80px);
    }

    #main-footer .qr-code p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        text-align: center; /* Center text */
    }

    #main-footer .social-icons {
        justify-content: center; /* Center social icons */
    }

    #main-footer .social-icons a {
        font-size: clamp(1rem, 2.2vw, 1.1rem);
    }

    #main-footer .quick-links ul {
        display: flex;
        flex-direction: column;
        align-items: center; /* Center quick links */
    }

    #main-footer .quick-links a {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        justify-content: center; /* Center link text and icon */
    }

    #main-footer .quick-links a i {
        font-size: clamp(0.8rem, 1.6vw, 0.9rem);
    }

    #main-footer .company-contact p {
        font-size: clamp(0.75rem, 1.8vw, 0.85rem);
        justify-content: center; /* Center contact text */
    }

    #main-footer .company-contact i {
        font-size: clamp(0.8rem, 1.8vw, 0.9rem);
    }

    #main-footer .company-contact .map-container {
        max-width: clamp(100px, 25vw, 120px);
        height: clamp(80px, 20vw, 100px);
        margin: 0.5rem auto; /* Center map */
    }

    #secondary-footer {
        padding: 0.8rem 0.8rem;
        min-height: 70px;
        display: flex;
        flex-direction: column;
        align-items: center; /* Center content */
    }

    #secondary-footer .footer-links {
        flex-direction: column; /* Stack links vertically */
        gap: 0.6rem;
        max-width: 90%; /* Limit width for centering */
        align-items: center; /* Center items */
    }

    #secondary-footer .footer-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0.6rem;
        width: 100%;
        max-width: 400px; /* Cap width for consistency */
    }

    #secondary-footer .footer-links p {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        text-align: center; /* Center text */
    }

    #secondary-footer .footer-btn {
        font-size: clamp(0.7rem, 1.8vw, 0.8rem);
        padding: 0.2rem 0.5rem;
        width: 100%; /* Full width for buttons */
        max-width: 200px; /* Cap button width */
        text-align: center; /* Center text */
    }
}

/* Responsive Design for Tablets (401px–1024px) */
@media (min-width: 401px) and (max-width: 1024px) {
    #main-footer {
        padding: clamp(1.5rem, 2vw, 2rem) 1rem;
    }

    #main-footer .footer-content {
        grid-template-columns: repeat(3, 1fr); /* Maintain three-column layout */
        gap: 1rem;
    }

    #main-footer .qr-code img {
        max-width: clamp(80px, 15vw, 100px);
    }

    #main-footer .qr-code p,
    #main-footer .quick-links a,
    #main-footer .company-contact p {
        font-size: clamp(0.85rem, 2vw, 0.95rem);
    }

    #main-footer .quick-links a i {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
    }

    #main-footer .social-icons a {
        font-size: clamp(1.2rem, 2.5vw, 1.3rem);
    }

    #main-footer .company-contact i {
        font-size: clamp(0.9rem, 2vw, 1rem);
    }

    #main-footer .company-contact .map-container {
        max-width: clamp(120px, 25vw, 150px);
        height: clamp(100px, 20vw, 120px);
    }

    #secondary-footer {
        padding: clamp(0.8rem, 2vw, 1rem) 1rem;
        min-height: 80px;
    }

    #secondary-footer .footer-links {
        flex-direction: row; /* Maintain horizontal layout */
        gap: 1rem;
        flex-wrap: wrap;
    }

    #secondary-footer .footer-buttons {
        flex-direction: row; /* Maintain horizontal buttons */
        gap: 0.8rem;
    }

    #secondary-footer .footer-btn {
        font-size: clamp(0.8rem, 2vw, 0.9rem);
        padding: 0.3rem 0.6rem;
        max-width: 150px;
        text-align: center;
    }
}

/* Responsive Design for Larger Desktops (>1024px) */
@media (min-width: 1025px) {
    #main-footer {
        padding: 3rem 2rem;
    }

    #main-footer .footer-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }

    #main-footer .qr-code img {
        max-width: 150px;
    }

    #main-footer .company-contact .map-container {
        max-width: 200px;
        height: 150px;
    }

    #secondary-footer {
        padding: 1.5rem 2rem;
    }

    #secondary-footer .footer-links {
        flex-direction: row;
        gap: 1.5rem;
    }

    #secondary-footer .footer-btn {
        font-size: 0.9rem;
        padding: 0.3rem 0.8rem;
        max-width: 200px;
    }
}

/* Styling for the GTranslate wrapper */
.gtranslate_wrapper {
    border: 2px solid #1E3A8A; /* Blue900 border */
    padding: 0.5rem; /* Padding for spacing */
    background-color: #1E3A8A; /* Blue900 background */
    border-radius: 8px; /* Consistent with other sections */
    display: inline-block; /* Fits content size */
    color: #1E3A8A; /* White text/icons */
}

/* Styling for elements inside the wrapper */
.gtranslate_wrapper * {
    box-sizing: border-box;
    color: grey; /* White text/icons for child elements */
}

/* Ensure the dropdown or button inherits styles */
.gtranslate_wrapper select, 
.gtranslate_wrapper button {
    background-color: #1E3A8A; /* Blue900 background */
    color: #FFFFFF; /* White text */
    border: 1px solid #FFFFFF; /* White border for contrast */
    border-radius: 5px;
    padding: 0.3rem 0.6rem;
    font-size: 1rem;
    cursor: pointer;
}

/* Hover effect */
.gtranslate_wrapper select:hover,
.gtranslate_wrapper button:hover {
    background-color: #2B4B9F; /* Slightly lighter blue for hover, matching your CSS */
}

/* Responsive design for mobile view (≤400px) */
@media (max-width: 400px) {
    .gtranslate_wrapper {
        padding: 0.3rem; /* Reduced padding for mobile */
        border-width: 1px; /* Thinner border for mobile */
        border-radius: 6px; /* Slightly smaller radius */
    }

    .gtranslate_wrapper select,
    .gtranslate_wrapper button {
        font-size: clamp(0.8rem, 2vw, 0.9rem); /* Matches mobile font sizes */
        padding: 0.2rem 0.5rem;
    }
}