/* =============================================================
   FOOTER — GoldStar SEO App
   Thiết kế theo bố cục ảnh mẫu:
   - Hàng 1: Tên bệnh viện + thông tin | Nhóm link 1 | Nhóm link 2 | Nhóm link 3
   - Hàng 2: Hệ thống cơ sở (full width, 3 cột)
   - Hàng 3: Copyright + chứng nhận
   Lưu ý: KHÔNG dùng class .mobile-menu-* / .mobile-action-* / .mobile-quick-*
   để tránh xung đột với _Header.cshtml
   ============================================================= */

/* ===== Reset footer riêng ===== */
.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    background-color: #0D3C61;
    color: #ffffff;
    margin-top: 48px;
    font-family: inherit;
}

/* ===== Container riêng cho footer ===== */
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ===== HÀNG 1: Grid 4 cột ===== */
.footer-main {
    padding: 40px 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* ===== CỘT 1: Brand (tên bệnh viện + thông tin) ===== */
.footer-area-brand {
    min-width: 0;
}

.footer-company-name {
    font-size: 29px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.footer-company-meta {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.98);
    margin: 0 0 6px 0;
    line-height: 1.5;
}

/* ===== CỘT 2–4: Nhóm link ===== */
.footer-area-links-col2,
.footer-area-group2 {
    min-width: 0;
}

    /* Khi nhóm link 1 + 3 xếp dọc trong cùng 1 cột */
    .footer-area-links-col2 .footer-col-links + .footer-col-links {
        margin-top: 24px;
    }

.footer-col-links {
    min-width: 0;
}

.footer-group-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    margin-top: 5px;
}

.footer-arrow {
    font-size: 1rem;
    opacity: 0.7;
    font-weight: 400;
}

/* Ghi đè .footer-links từ layout.css trong phạm vi .site-footer */
.site-footer .footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .site-footer .footer-links li {
        margin-bottom: 6px;
    }

    .site-footer .footer-links a {
        color: rgba(255, 255, 255, 0.78);
        text-decoration: none;
        font-size: 0.82rem;
        line-height: 1.5;
        transition: color 0.2s ease;
        display: inline-flex;
        align-items: center;
        gap: 3px;
    }

        .site-footer .footer-links a:hover {
            color: #ffffff;
            text-decoration: underline;
        }

/* ===== HÀNG 2: Hệ thống cơ sở (full width) ===== */
.footer-area-branches {
    grid-column: 1 / -1;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    margin-top: 8px;
}

.footer-section-title {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 1);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 16px 0;
}

.footer-branches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-col-branch {
    min-width: 0;
    /*padding: 16px;*/
    /*border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);*/
}

.footer-branch-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.footer-branch-name {
    display: inline-block; /* để background ôm sát nội dung */
    background-color: #1e73be; /* xanh dương (có thể đổi theo màu site) */
    color: #ffffff; /* chữ trắng */
    text-transform: uppercase; /* in hoa */
    font-size: 15px;
    font-weight: 700;
    padding: 6px; /* tạo khoảng cách trong */
    margin: 0 0 10px 0;
    line-height: 1.3;
    border-radius: 30px; /* bo nhẹ giống mẫu */
}

.footer-branch-icon {
    flex-shrink: 0;
    font-size: 0.82rem;
    margin-top: 1px;
}

.footer-branch-row {
    margin-bottom: 5px !important;
    font-size: 14px;
}

.footer-branches-grid > .footer-col-branch:nth-child(2) {
    /* CSS bạn muốn thêm */
    margin-left: 70px;
}

.footer-map-link {
    color: #7ec8f4;
    text-decoration: underline;
    font-size: 0.78rem;
    transition: color 0.2s;
}

    .footer-map-link:hover {
        color: #ffffff;
    }

/* ===== FOOTER BOTTOM: Copyright + Chứng nhận ===== */
.footer-bottom {
    background-color: rgba(0, 0, 0, 0.25);
    padding: 16px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-copyright-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* ===== Nhóm phải: Chứng chỉ + Social nằm ngang ===== */
.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-certificates {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-cert-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

    .footer-cert-img:hover {
        opacity: 1;
    }

/* ===== Social buttons trong footer (dùng ảnh giống floating header) ===== */
.footer-social-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    overflow: hidden;
    transition: transform 0.2s ease, opacity 0.2s ease;
    flex-shrink: 0;
}

    .footer-social-btn img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .footer-social-btn:hover {
        transform: scale(1.12);
        opacity: 0.9;
    }

/* ===== RESPONSIVE ===== */

/* Tablet: 992px trở xuống — 2 cột cho grid chính */
@media (max-width: 992px) {
    .footer-container {
        padding: 0 20px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-area-brand {
        grid-column: 1 / -1;
    }

    .footer-branches-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Mobile: 768px trở xuống — 1 cột */
@media (max-width: 768px) {


    .footer-branches-grid > .footer-col-branch:nth-child(2) {
        /* CSS bạn muốn thêm */
        margin-left: 0px;
    }


    .footer-main {
        padding: 28px 0 20px;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-area-brand {
        grid-column: auto;
    }

    .footer-company-name {
        font-size: 1rem;
    }

    .footer-branches-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .footer-bottom-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .footer-bottom-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px;
    }

    .footer-certificates {
        gap: 8px;
    }

    .footer-cert-img {
        height: 30px;
    }

    .footer-social-btn {
        width: 34px;
        height: 34px;
    }
}

/* Mobile nhỏ: 576px trở xuống */
@media (max-width: 576px) {
    .footer-container {
        padding: 0 16px;
    }

    .footer-main {
        padding: 24px 0 16px;
    }

    .footer-company-name {
        font-size: 0.95rem;
    }

    .footer-group-title {
        font-size: 0.88rem;
    }

    .site-footer .footer-links a {
        font-size: 0.8rem;
    }

    .footer-col-branch {
        padding: 12px;
    }

    .footer-branch-name {
        font-size: 0.85rem;
    }

    .footer-copyright-text {
        font-size: 0.75rem;
    }
}
