/* ============================================================
   FOOTER CSS FULL - CONG TY DONG DUONG
   ============================================================ */

.footer {
    padding-top: 80px;
    padding-bottom: 60px;
}

.footer_main {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    gap: 40px;
}

/* --- LOGO & TITLES ALIGNMENT --- */
.footer_main-block .brand {
    /* Căn chỉnh cạnh dưới logo bằng với cạnh dưới tiêu đề cột liên hệ */
    margin-bottom: 25px; 
    display: block;
    line-height: 1;
}

.footer_main-block .brand_logo {
    max-width: 200px;
    height: auto;
    display: block;
}

.footer_main-block_title {
    /* Khoảng cách này phải khớp với .brand để hàng dưới thẳng nhau */
    margin-bottom: 25px; 
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- DESCRIPTION & CONTACT CONTENT --- */
.footer_main-block_subtitle {
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    margin-top: 0; /* Thu ngắn khoảng cách sát logo để bằng dòng số điện thoại */
    -webkit-hyphens: auto;
    hyphens: auto;
}

.footer_main-block .group-wrapper {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: 10px;
}

.footer_main-block .group-wrapper:first-of-type {
    margin-bottom: 15px;
}

.footer_main-block .group-wrapper .icon {
    color: #ffc631;
    font-size: 18px;
    margin-top: 5px;
}

.footer_main-block .group-wrapper .group {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    line-height: 28px; /* tăng spacing cho dễ đọc */
}

.footer_main-block .group-wrapper .group a,
.footer_main-block .group-wrapper .group span {
    display: inline-block;
}

.footer_main-block .group-wrapper .group a {
    -webkit-transition: opacity 0.3s ease-in-out;
    -o-transition: opacity 0.3s ease-in-out;
    transition: opacity 0.3s ease-in-out;
}

.footer_main-block .group-wrapper .group a:focus,
.footer_main-block .group-wrapper .group a:hover {
    opacity: 0.8;
}

/* --- RESPONSIVE & LAYOUT 2:1:1:1 --- */

@media screen and (min-width: 567.98px) {
    .footer_main-block .group-wrapper {
        display: -webkit-inline-box;
        display: -ms-inline-flexbox;
        display: inline-flex;
    }
    .footer_main-block .group-wrapper:first-of-type {
        margin-bottom: 0;
        margin-right: 30px;
    }
}

@media screen and (max-width: 1023.97px) and (min-width: 767.98px) {
    .footer_main {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    .footer_main-block:first-of-type {
        grid-column: span 2;
    }
}

/* Thiết lập Desktop 2:1:1:1 */
@media screen and (min-width: 1023.98px) {
    /* 2 cột, 2 hàng */
    .footer_main {
        display: grid !important;
        grid-template-columns: 1fr 1fr; /* 2 cột bằng nhau */
        column-gap: 60px;
        row-gap: 40px;
        align-items: start;
        padding-bottom: 80px;
    }

    /* mọi block chiếm 1 ô */
    .footer_main-block {
        width: 100% !important;
        max-width: none !important;
    }

    /* Brand giữ 1 cột (không span) để đi cùng HQ */
    .footer_main-block--brand {
        max-width: 400px !important;
        grid-column: auto;
    }

    /* đảm bảo icon + text align, text xuống dòng thoải mái */
    .footer_main-block .group-wrapper { display: flex; }
    .footer_main-block .group-wrapper .group { display: block; }
}

/* --- FOOTER SECONDARY --- */
.footer_secondary {
    border-top: 1px solid #a9a9a9;
    margin-top: 30px;
    padding-top: 20px;
    display: flex;
    justify-content: center !important;
    text-align: center;
}

.footer_secondary-copyright {
    margin: 0 !important;
    max-width: 100% !important;
}

.footer_secondary-copyright span {
    display: inline;
}

.copyright-link {
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

.copyright-link:hover {
    color: #ffc631;
}

.footer_secondary .socials {
    display: none !important;
}

html[dir="rtl"] .footer_main-block .group-wrapper:first-of-type {
    margin-right: 0;
    margin-left: 30px;
}