.footer {
        background-color: rgb(23 26 27);
        color: #ffffff;
        /* Padding trên dưới giữ nguyên, padding trái phải trả về 0 */
        padding: 80px 0 60px 0 !important;
        border-bottom: 1px solid #ffffff;
        width: 100%;
        display: flex;
        justify-content: center;
    }

.footer-container {
        width: 100% !important;
        max-width: var(--container-max) !important; /* Khóa 1650px */
        margin: 0 auto !important;
        padding: 0 var(--side-padding) !important; /* Lề 55px huyền thoại */
        box-sizing: border-box;
    }


/* Cụm Mission ở trên */
.footer-mission {
        margin-bottom: 143px;
        max-width: 1650px !important; /* Giới hạn để text không dãn quá dài khi zoom out */
        text-align: left;
    }

.mission-text {
    font-size: 2.2rem; /* To và Full như QUOC */
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 34px;
    letter-spacing: -1px;
}

.learn-more-btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 100px;
    background: #fff;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.9rem;
    transition: none;
}

.learn-more-btn:hover {
        color:#ffffff !important;
        background-color: rgb(23 26 27) !important;
        box-shadow: inset 0 0 0 2px #ffffff !important; 
}

/* Layout Main */
.footer-main {
        display: grid;
        grid-template-columns: 1fr 1fr 7fr;
        gap: 30px !important;
        margin-bottom: 33px;
        width: 100%;
    }

.footer-links li {
    list-style: none;
    margin-bottom: 5px;
}

.footer-links a {
    color: #fff;
    font-size: 13px;
    gap: 5px !important;
    text-decoration: none;
    opacity: 0.8;
}

.footer-links a:hover { opacity: 1; }


.newsletter-title { 
    font-size: 16px; 
    margin-bottom: 30px; 
    font-weight: 400;
}

.newsletter-desc { 
    font-size: 13px; 
    line-height: 1.6;
    color: #ccc; 
    margin-bottom: 23px; 
    max-width: 470px; 
}

/* Box Email: Ép lại độ dài và tạo khung tối */
.newsletter-form .input-group {
    display: flex;
    align-items: center;
    justify-content: space-between; 
    background: rgb(23 26 27); 
    border: 1px solid #626161; 
    padding: 12px 20px 12px 20px; 
    max-width: 405px; 
    transition: all 0.3s ease;
}


.newsletter-input {
    background: transparent !important; 
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 13px;
    font-weight: 500;
    flex: 1;
    padding: 10px 0;
}


.newsletter-input::placeholder {
    color: #626161;      
    font-weight: 600;    
    font-size: 13px;
    opacity: 1;      
}


/* Nút tròn mũi tên: Nằm bên phải, đối xứng lề */
.submit-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-right: 0px;
}

.arrow-circle {
    width: 24px;
    height: 24px;
    background: #626161;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.arrow-circle svg {
    stroke-width: 3; 
    width: 12px;
    height: 12px;
}


/* Hiệu ứng Hover cho sang */
.newsletter-form .input-group:focus-within {
    border: 2px solid #ffffff; /* Viền mờ tinh tế */
}

.submit-btn:hover .arrow-circle {
    background: #fff;
    color: #000;
}

/* Bottom Bar */
.footer-bottom {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        padding-top: 20px;
    }

.social-links { gap: 30px; display: flex; margin-bottom: 45px; }
.social-links a { color: #fff; font-size: 23px; }

.copyright-group { color: rgba(255, 255, 255, 0.721); font-size: 12px; line-height: 1.2; margin-bottom: 8px;}

.legal-links { display: flex; gap: 20px; list-style: none; padding: 0; margin-top: 8px; }
.legal-links a { color: rgba(255,255,255,0.5); text-decoration: none; }



/* Loại bỏ cái kén đen, chỉ giữ lại icon và chữ [cite: 2025-12-29] */
.country-selector {
    background: transparent !important; /* Xóa nền đen [cite: 2025-12-29] */
    border: none !important; /* Xóa viền [cite: 2025-12-29] */
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    cursor: pointer;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* Lá cờ tròn xoe chuẩn [cite: 2025-12-29] */
.casa-flag-box-footer {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
}
.casa-flag-box-footer img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    aspect-ratio: 1/1;
}

/* Bảng Drop-up: Phẳng, không bóng đổ, dài ra [cite: 2025-12-29] */
.langg-dropdown {
    position: absolute;
    bottom: calc(100% + 20px); /* Khoảng cách trồi lên trên [cite: 2025-12-29] */
    
    /* SỬA TẠI ĐÂY: Ép lề phải thẳng hàng với lề phải của nút [cite: 2025-12-29] */
    right: 0; 
    left: auto; 
    
    background: #ffffff;
    list-style: none !important;
    padding: 10px 0 !important;
    width: 200px; /* Bảng dài ra hơn nút [cite: 2025-12-29] */
    display: none;
    z-index: 9999;
    border-radius: 0; /* Phẳng lỳ [cite: 2025-12-29] */
    box-shadow: none !important; /* Không bóng đổ [cite: 2025-12-29] */
    border: 1px solid #eee;
}

.langg-dropdown.active {
    display: block;
    animation: fadeInUp 0.3s ease-out;
}

.langg-dropdown li {
    padding: 12px 20px;
    display: flex; 
    align-items: center; 
    justify-content: flex-start; /* Căn trái toàn bộ nội dung trong bảng [cite: 2025-12-29] */
    gap: 12px;
    color: #000;
    font-weight: 400;
    transition: 0.2s;
}

.langg-dropdown li img {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50%;
    object-fit: cover;
}

.langg-dropdown li:hover {
    background: #f8f8f8;
}

.langg-dropdown li.active {
    font-weight: 700;
}

/* Xoay mũi tên [cite: 2025-12-29] */
.casa-arrow-footer {
    transition: transform 0.3s ease;
}
.country-selector.open .casa-arrow-footer {
    transform: rotate(180deg);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.lang-sheet-overlay, 
.lang-sheet-container {
    display: none !important;
}

/* Responsive lề 20px [cite: 2026-02-07] */
@media (max-width: 1024px) {
    .bottom-right {
        padding: 0 20px;
    }
}






@media (max-width: 1024px) {
    .footer {
        padding: 60px 20px 40px 20px !important;
    }

    /* 1. Cụm Mission: Vẫn dóng lề trái cho lỳ */
    .footer-mission {
        margin-bottom: 90px !important;
    }

    .mission-text {
        font-size: 1.4rem !important; /* Thu nhỏ tí cho bớt thô trên mobile */
        line-height: 1.3 !important;
        text-align: left !important;
    }

    /* 2. Layout Main: Chia 2 cột cho Link, Newsletter thì tràn hàng */
    .footer-main {
        display: grid !important;
        /* Hai cột đầu chia đôi, cột Newsletter (thứ 3) sẽ cho xuống hàng */
        grid-template-columns: 1fr 1fr !important; 
        column-gap: 20px !important;
        row-gap: 50px !important;
        margin-bottom: 0px !important;
    }

    /* Ép cái Newsletter phải chiếm trọn 2 cột (xuống hàng riêng) */
    .newsletter-col {
        grid-column: span 2; 
        display: flex;
        flex-direction: column;
        align-items: flex-start !important;
    }


    .newsletter-form {
        width: 100% !important;
    }


    /* 3. Newsletter Box: Tràn 100% như QUOC */
    .newsletter-form .input-group {
        width: 100%;
        max-width: 100% !important;
        margin: 0 !important;
    }

    /* 4. Bottom Bar: Trình bày trật tự dóng lề trái */
    .footer-bottom {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 30px !important;
        padding-top: 40px !important;
    }

    .social-links {
        margin-bottom: 40px;
        gap: 30px;
    }

    .copyright-group {
        font-size: 10px;
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .legal-links {
        flex-direction: row;
        gap: 10px;
        margin-top: -5px;
    }

    .legal-links a { 
        font-size: 10px;
        font-weight: 500;
        color: rgba(255,255,255,0.5); 
        text-decoration: none; 
    }




    /* Nút chọn quốc gia: Phẳng hóa & Dóng trái */
    /* Nút chọn quốc gia Footer */

.footer-bottom {
        display: flex !important;
        flex-direction: column !important; /* Xếp chồng để dóng hàng dọc [cite: 2025-12-29] */
        align-items: flex-start !important; /* Ép tất cả dạt trái [cite: 2025-12-29] */
        padding: 40px 0 0 0 !important; /* Xóa padding ngang để dùng padding của .footer [cite: 2025-12-29] */
        width: 100% !important;
    }

    /* 2. Cụm bên trái (Social, Copyright) [cite: 2025-12-29] */
    .bottom-left {
        width: 100% !important;
        margin-bottom: 30px !important;
    }

    /* 3. Cụm bên phải (Nút chọn ngôn ngữ) [cite: 2025-12-29] */
    .bottom-right {
        width: 100% !important;
        padding: 0 !important; /* Xóa cái padding 20px thừa này đi Danna! [cite: 2026-02-07] */
        display: flex !important;
        justify-content: flex-start !important;
    }

    /* 4. Nắn cái nút ID langgSelector [cite: 2025-12-29] */
    #langgSelector.country-selector {
        margin-left: 0 !important; /* Đã có padding 20px của .footer bọc ngoài rồi [cite: 2026-02-07] */
        padding: 0 !important;
        display: inline-flex !important;
    }
    

.langg-dropdown { display: none !important; }

/* Overlay & Container mới */
.lang-sheet-overlay {
    display: block !important;
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 3000;
    opacity: 0; visibility: hidden;
    transition: opacity 0.4s ease;
}

.lang-sheet-container {
    display: block !important;
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: #fff; border-radius: 24px 24px 0 0;
    padding: 30px 20px 50px 20px; z-index: 3001;
    transform: translateY(110%); visibility: hidden;
    /* Nhịp trễ 0.1s huyền thoại của Danna */
    transition: transform 0.6s cubic-bezier(0.32, 1, 0.23, 1) 0.1s, visibility 0.6s 0.1s;
}

/* Nút X bay lơ lửng */
.lang-sheet-close {
    position: absolute; top: -65px; left: 50%; transform: translateX(-50%);
    width: 44px; height: 44px; background: #fff; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    z-index: 9999 !important; border: none; cursor: pointer;
}

/* Trạng thái mở Sheet */
body.footer-sheet-open .lang-sheet-overlay { opacity: 1; visibility: visible; }
body.footer-sheet-open .lang-sheet-container { transform: translateY(0); visibility: visible; }
body.footer-sheet-open .lang-sheet-close { 
    display: flex !important; 
    /* Đợi 0.5s cho Sheet lên xong mới nhảy ra */
    animation: fadeInXFooter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 0.5s; 
    opacity: 0; 
}

/* Nội dung bên trong Sheet */
.lang-sheet-title { font-size: 16px; font-weight: 700; color: #000; margin-bottom: 15px; text-align: center; }
.lang-sheet-divider { height: 1px; background: #eee; margin: 0 auto 15px auto; width: 100%; }
.lang-sheet-list { list-style: none !important; padding: 0 !important; margin: 0 !important; display: flex; flex-direction: column; align-items: center; }
.lang-sheet-list li { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 18px 0; width: 100%; border-bottom: 1px solid #f9f9f9; font-size: 15px; color: #333; transition: 0.2s; }
.lang-sheet-list li img { width: 22px !important; height: 22px !important; border-radius: 50% !important; object-fit: cover !important; flex-shrink: 0; }
.lang-sheet-list li.active { font-weight: 700; color: #000; }

@keyframes fadeInXFooter { 
    from { opacity: 0; transform: translateX(-50%) scale(0.5); } 
    to { opacity: 1; transform: translateX(-50%) scale(1); } 
}


    @media (max-width: 768px) {
    /* 1. GIẢI PHÓNG CÁI LỒNG TỔNG (QUAN TRỌNG NHẤT) */
    .footer-container, 
    .footer-content,
    .footer-mission,
    .footer-main {
        max-width: 100% !important; /* Phá bỏ giới hạn 1650px */
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* 2. ÉP DÃN CỘT TRÊN HỆ GRID */
    .footer-main {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important; /* Chia đôi chuẩn như hình cũ */
        gap: 20px !important;
        justify-content: stretch !important;
    }

    .footer-col {
        width: 100% !important;
    }

    /* 3. ĐẢM BẢO CHỮ SỨ MỆNH DÀN TRẢI */
    .mission-text {
        width: 100% !important;
        max-width: 100% !important;
    }
}
}