/* =========================================
   STYLING CHO FOOTER VIFASO SMART SOLUTIONS
   ========================================= */

.site-footer {
    background-color: #0b132b; /* Tông màu tối sang trọng, hiện đại */
    color: #cbd5e1;
    padding: 60px 0 30px 0;
    font-size: 14px;
    line-height: 1.6;
}

.site-footer .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Cấu trúc Grid chia 3 cột */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

/* Tiêu đề trong mỗi cột footer */
.footer-col h3,
.footer-col .hq-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 8px;
    border-bottom: 2px solid #0b633d; /* Điểm nhấn xanh lá thương hiệu Vifaso */
    display: inline-block;
}

/* --- CỘT 1: THÔNG TIN LIÊN HỆ --- */
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.contact-info-list i {
    font-size: 16px;
    margin-top: 3px;
    flex-shrink: 0;
}

.contact-info-list span {
    color: #94a3b8;
    word-break: break-word;
}

/* --- CỘT 2: DỊCH VỤ TRỌNG TÂM --- */
.service-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-links-list .dropdown-category {
    margin-bottom: 15px;
}

.service-links-list .category-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4ade80; /* Màu xanh lá nổi bật cho nhóm dịch vụ */
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 6px;
}

.service-links-list ul {
    list-style: none;
    padding-left: 24px;
    margin: 0;
}

.service-links-list ul li {
    margin-bottom: 6px;
}

.service-links-list ul li a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
    display: inline-block;
}

.service-links-list ul li a:hover {
    color: #ffffff;
    padding-left: 4px; /* Hiệu ứng dịch chuyển nhẹ khi rê chuột */
}

/* --- CỘT 3: BẢN ĐỒ GOOGLE MAPS --- */
.headquarter-image-box {
    width: 100%;
}

.hq-map-container {
    border-radius: 8px;
    overflow: hidden;
    height: 180px;
    width: 100%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hq-map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}

/* ==========================================================================
   WIDGETS NỔI: HOTLINE GỌI NHANH & BACK TO TOP
   ========================================================================== */

/* 1. Nút Hotline Góc Dưới Bên Trái */
.hotline-widget {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #0b633d;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px 10px 10px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(11, 99, 61, 0.4);
    text-decoration: none;
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulseHotline 2s infinite;
}

.hotline-widget:hover {
    background: #094e2f;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(11, 99, 61, 0.6);
    color: #ffffff;
}

.hotline-icon-box {
    width: 36px;
    height: 36px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ringIcon 1.5s ease infinite;
}

.hotline-widget span {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Hiệu ứng rung chuông / nhấp nháy thu hút cho Hotline */
@keyframes ringIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes pulseHotline {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
    70% { box-shadow: 0 0 0 12px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}


/* 2. Nút Back to Top Góc Dưới Bên Phải */
.back-to-top-btn {
    display: none; /* Mặc định ẩn, chỉ hiện khi cuộn trang > 300px nhờ Javascript */
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: #0f172a;
    color: #ffffff;
    border: 2px solid #4ade80;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.back-to-top-btn:hover {
    background: #0b633d;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 99, 61, 0.5);
}

/* ==========================================================================
   FIX LỖI MÀU NỀN TRẮNG & MÀU CHỮ TRONG FOOTER
   ========================================================================== */

.site-footer .service-links-list a {
    background-color: transparent !important; /* Đảm bảo không bị dính nền trắng */
    color: #94a3b8 !important;                  /* Màu chữ mặc định xám nhạt */
    padding: 4px 0 !important;
    border-radius: 0 !important;
}

.site-footer .service-links-list a:hover {
    background-color: transparent !important;
    color: #ffffff !important;                  /* Khi hover chuyển sang chữ trắng */
    padding-left: 4px !important;
}


/* Responsive điều chỉnh trên màn hình nhỏ di động */
@media (max-width: 768px) {
    .hotline-widget {
        bottom: 20px;
        left: 15px;
        padding: 8px 14px 8px 8px;
    }
    .hotline-widget span {
        font-size: 13px;
    }
    .hotline-icon-box {
        width: 32px;
        height: 32px;
    }
    .back-to-top-btn {
        bottom: 20px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   RESPONSIVE CHO THIẾT BỊ DI ĐỘNG
   ========================================= */
@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 20px 0;
    }
    .footer-grid {
        gap: 30px;
    }
}