/* --- Thiết lập chung --- */
.site-footer {
    background-color: #000000;
    color: #b0b0b0;
    padding: 100px 40px 100px 40px; /* Padding trái phải để nội dung không dính sát mép màn hình */
    font-size: 14px;
    width: 100%;
    box-sizing: border-box; /* Quan trọng để padding không làm vỡ layout */
}

/* Wrapper không giới hạn max-width để full màn hình */
.footer-wrapper {
    width: 100%;
}

/* --- Layout Flexbox --- */
.footer-columns {
    display: flex;
    justify-content: space-between; /* Chia đều khoảng cách giữa các cột */
    flex-wrap: wrap; /* Cho phép xuống dòng trên màn hình nhỏ */
    gap: 30px; /* Khoảng cách giữa các cột */
}

/* --- Cột Logo (To hơn các cột khác) --- */
.footer-col.brand-col {
    flex: 2; /* Chiếm 2 phần không gian */
    min-width: 250px;
}

.footer-logo img {
    max-width: 180px;
    height: auto;
    display: block;
    margin-bottom: 20px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-icon {
    width: 35px;
    height: 35px;
    background-color: #BA9972;
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: 0.3s;
    font-size: 16px;
}

.social-icon:hover {
    background-color: #fff;
    transform: translateY(-3px);
}

/* --- Cột Links (Nhỏ và đều nhau) --- */
.footer-col.links-col {
    flex: 1; /* Chiếm 1 phần không gian */
    min-width: 150px;
}

.footer-heading {
    color: #fff;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 20px;
    margin-top: 0;
    font-weight: 400;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #d4af37;
}

/* --- Cột Newsletter (Vừa phải) --- */
.footer-col.newsletter-col {
    flex: 1.5; /* Chiếm 1.5 phần */
    min-width: 250px;
}

/* Custom Input Group (Thay thế Bootstrap Input Group) */
.custom-input-group {
    background-color: #fff;
    border-radius: 8px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.footer-input-icon {
    color: #333;
    margin-right: 10px;
    display: flex;
    align-items: center;
}

.newsletter-form input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
    background: transparent;
}

.btn-subscribe {
    width: 100%;
    background: linear-gradient(to right, #4D1210 0%, #000000 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-subscribe:hover {
    background-color: #5c1111;
}

.newsletter-desc {
    margin-top: 15px;
    font-size: 13px;
    color: #fff;
}

/* --- Footer Bottom --- */
.footer-divider {
    height: 1px;
    background-color: #333;
    margin: 40px 0 20px 0;
    width: 100%;
}

.footer-bottom {
    width: 100%;
}

.copyright-text {
    font-size: 12px;
    color: #666;
    margin: 0;
}

/* --- Responsive (Mobile & Tablet) --- */
@media (max-width: 992px) {
    /* Trên tablet: Các cột links có thể gộp lại */
    .footer-col.brand-col {
        flex: 100%; /* Logo chiếm hết dòng đầu */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 20px; /* Giảm padding viền trên mobile */
    }

    .footer-columns {
        flex-direction: column;
        gap: 40px;
    }

    .footer-col {
        width: 100%; /* Full chiều rộng từng khối */
        min-width: unset;
        text-align: center;
    }

    .footer-logo img {
        margin: 0 auto 20px;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-bottom {
        text-align: center;
    }
}
