/* Footer Base Styles */
#footer {
    width: 100%;
}

.footer-logo-img {
    height: 78px;
    width: auto;
    object-fit: contain;
}

.footer-1-container {
    background-color: #f6f6f6;
    border-bottom: 4px solid #FFC700 !important;
    padding: 12px 0 !important;
}

.footer-nav-links {
    text-decoration: none !important;
    color: #00A99D;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    border-bottom: none !important;
}

.footer-nav-links:hover {
    color: #00564F;
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-nav-links.active {
    color: #003632;
    font-weight: 900;
    text-decoration: none !important;
    border-bottom: none !important;
}

.footer-2-container {
    background-color: #FFC700;
}

.footer-desc-col {
    max-width: 440px;
    flex: 1 1 320px;
}

.footer-info-col {
    flex: 0 1 auto;
}

.footer-icon-circle {
    width: 28px;
    height: 28px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.hover-underline {
    transition: opacity 0.2s ease, text-decoration 0.2s ease;
}

.hover-underline:hover {
    text-decoration: underline !important;
    opacity: 0.85;
}

/* Mobile & Responsive Tweaks */
@media (min-width: 768px) and (max-width: 991.98px) {
    .footer-desc-col {
        max-width: 100%;
        width: 100%;
        flex: 0 0 auto !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-info-col {
        width: 100%;
        flex: 0 0 auto !important;
        margin-bottom: 0.5rem !important;
    }

    .footer-1-container {
        padding: 14px 0 !important;
    }

    .footer-logo {
        margin-bottom: 0 !important;
        flex-shrink: 0;
    }

    .footer-logo-img {
        height: 58px !important;
    }

    .footer-nav-links {
        font-size: 0.95rem !important;
    }

    .footer-navs {
        gap: 0.65rem 1.4rem !important;
        max-width: 480px !important;
        margin: 0 0 0 auto !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-tablet-grid {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100% !important;
        gap: 16px !important;
    }

    .footer-tablet-col {
        flex: 0 1 auto !important;
    }

    .footer-col-alamat {
        max-width: 26%;
    }

    .footer-col-kontak {
        max-width: 25%;
    }

    .footer-col-email {
        max-width: 24%;
    }

    .footer-col-social {
        max-width: 20%;
    }
}

@media (max-width: 767.98px) {
    .footer-1-container {
        padding: 16px 0 18px 0 !important;
    }

    .footer-logo {
        margin-bottom: 12px;
        display: block;
        text-align: center;
    }

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

    .footer-navs {
        gap: 0.5rem 0.85rem !important;
        justify-content: center !important;
        padding-left: 0;
    }

    .footer-nav-links {
        font-size: 0.85rem;
    }

    .footer-2-container {
        padding-top: 24px !important;
        padding-bottom: 40px !important; /* Clearance for floating WhatsApp widget */
    }

    .footer-desc-mobile {
        text-align: center;
        margin-bottom: 1.5rem !important;
    }

    .footer-mobile-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) !important;
        gap: 18px 20px !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }

    .footer-grid-item {
        width: 100% !important;
    }

    .footer-icon-circle {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .footer-grid-item h6 {
        font-size: 0.92rem !important;
    }

    .footer-grid-item p,
    .footer-grid-item span,
    .footer-grid-item a {
        font-size: 0.8rem !important;
        word-break: break-word;
        overflow-wrap: anywhere;
    }

    .footer-copyright-text {
        font-size: 0.82rem !important;
        line-height: 1.45;
        padding: 0 10px;
    }
}

@media (max-width: 360px) {
    .footer-mobile-grid {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr) !important;
        gap: 14px 12px !important;
    }

    .footer-grid-item h6 {
        font-size: 0.85rem !important;
    }

    .footer-grid-item p,
    .footer-grid-item span,
    .footer-grid-item a {
        font-size: 0.73rem !important;
    }

    .footer-icon-circle {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .footer-copyright-text {
        font-size: 0.75rem !important;
    }
}
