/* ==========================================================================
   Kiwi Footer - Clean, Professional White / Light Theme
   ========================================================================== */

.kiwi-main-footer {
    background-color: #ffffff;
    color: #475569;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    border-top: 1px solid #e2e8f0;
    position: relative;
    z-index: 20;
}

.kiwi-main-footer * {
    box-sizing: border-box;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   1. Pre-Footer Trust Strip (Light Slate Band)
   ========================================================================== */
.footer-trust-strip {
    padding: 26px 0;
    border-bottom: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

.trust-flex {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.trust-col {
    display: flex;
    align-items: center;
    gap: 14px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #65a30d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}

.trust-col:hover .trust-icon {
    background-color: #84cc16;
    border-color: #84cc16;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(132, 204, 22, 0.25);
}

.trust-info {
    display: flex;
    flex-direction: column;
}

.trust-info strong {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 2px;
}

.trust-info span {
    font-size: 13px;
    color: #64748b;
    line-height: 1.35;
}

/* ==========================================================================
   2. Main Footer Body (Pure White Background)
   ========================================================================== */
.footer-body-wrap {
    padding: 60px 0 45px 0;
    background-color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1.25fr 0.85fr 1.6fr;
    gap: 40px;
}

.footer-cell {
    display: flex;
    flex-direction: column;
}

/* Titles */
.cell-title {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin: 0 0 20px 0;
    position: relative;
    padding-bottom: 10px;
}

.cell-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background-color: #84cc16;
}

/* Col 1: Brand */
.footer-brand-logo {
    display: inline-block;
    margin-bottom: 16px;
}

.footer-brand-logo img {
    height: 46px;
    width: auto;
    object-fit: contain;
    display: block;
}

.brand-desc {
    font-size: 14.5px;
    line-height: 1.65;
    color: #475569;
    margin: 0 0 24px 0;
}

.social-block {
    margin-top: auto;
}

.social-title {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.social-list {
    display: flex;
    gap: 10px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background-color: #f1f5f9;
    color: #475569 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.social-link:hover {
    background-color: #84cc16;
    border-color: #84cc16;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(132, 204, 22, 0.25);
}

/* Col 2: Hệ Sinh Thái Kiwi */
.eco-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.eco-list li a {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: transform 0.2s ease;
}

.eco-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

.eco-name {
    font-size: 15.5px;
    font-weight: 700;
    color: #0f172a;
    transition: color 0.2s ease;
}

.eco-title-row i {
    font-size: 11px;
    color: #94a3b8;
    transition: all 0.2s ease;
}

.eco-detail {
    display: block;
    font-size: 13.5px;
    color: #64748b;
    line-height: 1.45;
}

.eco-list li a:hover .eco-name {
    color: #65a30d;
}

.eco-list li a:hover .eco-title-row i {
    color: #65a30d;
    transform: translate(2px, -2px);
}

/* Col 3: Liên kết nhanh */
.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.nav-list li a {
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.nav-list li a:hover {
    color: #65a30d !important;
    transform: translateX(4px);
}

/* Col 4: Hệ thống trụ sở & Hotline */
.office-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.office-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.office-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.office-city {
    font-size: 14.5px;
    font-weight: 700;
    color: #0f172a;
}

.office-map-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #65a30d !important;
    text-decoration: none !important;
    padding: 2px 8px;
    background-color: #f0fdf4;
    border: 1px solid #dcfce7;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.office-map-link:hover {
    background-color: #84cc16;
    border-color: #84cc16;
    color: #ffffff !important;
}

.office-addr {
    font-size: 14px;
    color: #475569;
    line-height: 1.45;
    margin: 0;
}

.office-phones {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: #64748b;
}

.office-phones a {
    color: #0f172a !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.office-phones a:hover {
    color: #65a30d !important;
    text-decoration: underline !important;
}

.office-phones .sep {
    color: #cbd5e1;
}

.office-hours {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 13px;
    color: #64748b;
}

.office-hours i {
    color: #65a30d;
    font-size: 14px;
}

.office-hours strong {
    color: #0f172a;
}

/* ==========================================================================
   3. Bottom Legal & Copyright Bar
   ========================================================================== */
.footer-base-wrap {
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
    font-size: 13.5px;
    color: #64748b;
}

.base-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.base-legal p {
    margin: 0 0 2px 0;
}

.legal-company {
    color: #334155;
    font-weight: 600;
}

.legal-reg {
    font-size: 12.5px;
    color: #64748b;
}

.base-copyright p {
    margin: 0;
    color: #64748b;
}

.base-copyright strong {
    color: #0f172a;
    font-weight: 700;
}

/* ==========================================================================
   4. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
    .trust-flex {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 36px 28px;
    }
}

@media (max-width: 640px) {
    .trust-flex {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-body-wrap {
        padding: 40px 0 30px 0;
    }
    .base-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}