:root {
    --bado-green-primary: #187455;
    --bado-text-dark: #2A2D32;
    --bado-text-gray: #555;
}

.bado-footer-2025 {
    background-color: #ffffff;
    background-image: url('https://media.bado.vn/BadoSite/background_footer.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--bado-text-dark);
    padding-top: 60px;
    font-family: 'Inter', sans-serif;
    position: relative;
    z-index: 10;
}

.bado-footer-2025 .footer-title {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--bado-text-dark);
    text-transform: uppercase;
}

.bado-footer-2025 .footer-info-text {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--bado-text-dark);
}

.bado-footer-2025 .footer-item {
    margin-bottom: 8px;
}

.bado-footer-2025 .footer-item a {
    color: var(--bado-text-gray);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.bado-footer-2025 .footer-item a:hover {
    color: var(--bado-green-primary);
}

.bado-footer-2025 .company-name {
    font-weight: 700;
    font-size: 14px;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
}

.bado-footer-2025 .contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 14px;
}

.bado-footer-2025 .contact-item i {
    color: var(--bado-text-dark);
    font-size: 16px;
}

.bado-footer-2025 .contact-item a {
    color: var(--bado-text-dark);
    text-decoration: none;
}

.bado-footer-2025 .divider {
    border-top: 1px solid #E0E0E0;
    margin: 20px 0;
    display: none;
}

.bado-footer-2025 .badges-row {
    margin-top: 30px;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.bado-footer-2025 .badges-container {
    display: flex;
    flex-wrap: nowrap !important;
    /* Force items to stay on one line */
    gap: 12px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 20px;
    width: 100%;
}

.bado-footer-2025 .badge-item {
    flex: 0 1 auto;
    /* Allow scaling down if needed */
    min-width: 0;
}

.bado-footer-2025 .badge-item img {
    max-height: 38px;
    /* Standardize height */
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transition: transform 0.3s ease;
}

/* Keep it sharp and in line on small devices */
@media (max-width: 1199px) {
    .bado-footer-2025 .badges-container {
        gap: 8px;
    }

    .bado-footer-2025 .badge-item img {
        max-height: 32px;
    }
}

@media (max-width: 767px) {
    .bado-footer-2025 {
        background-image: url('https://media.bado.vn/BadoSite/background_footer_mobile.webp') !important;
    }

    .bado-footer-2025 .badges-container {
        gap: 5px;
        justify-content: flex-start;
    }

    .bado-footer-2025 .badge-item img {
        max-height: 28px;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .bado-footer-2025 {
        background-image: url('https://media.bado.vn/BadoSite/background_footer_tablet.webp') !important;
    }
}

.bado-footer-2025 .badge-item img:hover {
    transform: scale(1.05);
}

.bado-footer-bottom-bar {
    background-color: var(--bado-green-primary);
    background-image: url('https://media.bado.vn/BadoSite/backrground_footer_bottom.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    padding: 12px 0;
    font-size: 13px;
    position: relative;
    z-index: 10;
}

.bado-footer-bottom-bar a {
    color: #ffffff;
    text-decoration: none;
}

.bado-footer-bottom-bar .social-icons {
    display: flex;
    gap: 10px;
}

.bado-footer-bottom-bar .social-icons a {
    width: 30px;
    height: 30px;
    background: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.bado-footer-bottom-bar .social-icons a:hover {
    transform: translateY(-3px);
}

.bado-footer-bottom-bar .social-icons a img {
    width: 20px;
    height: 20px;
}

/* Custom grid for 5 columns on desktop */
@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .col-lg-7-2 {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

@media (max-width: 991.98px) {
    .bado-footer-2025 {
        padding-top: 30px;
    }

    .bado-footer-2025 .divider {
        display: block;
    }

    .bado-footer-bottom-bar .container>.row {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .bado-footer-bottom-bar .social-icons {
        justify-content: center;
    }

    .social-body-mobile {
        display: flex;
        justify-content: center;
        gap: 20px;
        padding: 15px 0;
        border-top: 1px solid #000000;
        border-bottom: 1px solid #000000;
        margin: 20px 0;
    }

    .social-body-mobile a img,
    .social-body-mobile a i {
        font-size: 24px;
        width: 24px;
    }
}

/* Hide social icons in mobile body on desktop */
@media (min-width: 992px) {
    .bado-footer-2025 {
        background-image: url('https://media.bado.vn/BadoSite/background_footer.webp') !important;
        /* Mobile as per instruction "background #ffffff" implies keeping it simple */
    }

    .social-body-mobile {
        display: none;
    }
}

/* ===== TABLET LAYOUT: 768px – 991.98px ===== */
@media (min-width: 768px) and (max-width: 991.98px) {

    /* Logo luôn full width */
    .bado-footer-2025 .col-12.col-lg-7-2 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Row 2 tablet: 5 cột đều nhau (20% mỗi cột) */
    .bado-footer-2025 .footer-col-md-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }

    /* Row 3 tablet: 4 cột đều nhau (25% mỗi cột) */
    .bado-footer-2025 .footer-col-md-4 {
        flex: 0 0 25%;
        max-width: 25%;
    }

    /* Địa chỉ (order-3) xuống dưới, full width */
    .bado-footer-2025 .col-12.col-lg-7-2.order-3 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    /* Ẩn social-body-mobile trên tablet (hiển ở bên dưới địa chỉ thay thế) */
    .social-body-mobile {
        display: none !important;
    }

    /* Badges container */
    .bado-footer-2025 .badges-container {
        justify-content: flex-start;
        gap: 10px;
    }

    .bado-footer-2025 .badge-item img {
        max-height: 34px;
    }

    /* Badges + Social nằm ngang dưới địa chỉ (chỉ tablet) */
    .footer-badges-social-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        margin-top: 20px;
        width: 100%;
    }

    .footer-badges-social-row .badges-container {
        margin-top: 0;
        flex: 1 1 auto;
    }

    .footer-social-tablet {
        display: flex;
        gap: 10px;
        align-items: center;
        flex-shrink: 0;
    }

    .footer-social-tablet a {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        transition: transform 0.2s ease;
    }

    .footer-social-tablet a:hover {
        transform: translateY(-2px);
    }
}