/**
 * Footer Styles - Redesigned Layout
 * 3 Column Layout with Optimized Spacing
 */

/* Footer Area */
.footer_area {
    background-image: linear-gradient(rgb(76 118 222 / 94%), rgb(0 23 80 / 94%)), url('../images/header_banner.png');
    background-size: cover, cover;
    background-position: center, top;
    background-repeat: no-repeat, no-repeat;
    color: #ffffff;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-style: normal;
    padding-top: 60px;
}

/* Footer Top */
.footer_top {
    padding-bottom: 50px;
}

/* Row */
.footer_area .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

/* Columns */
.footer_area .col-lg-4,
.footer_area .col-md-6,
.footer_area .col-sm-6 {
    padding: 0 15px;
    box-sizing: border-box;
}

.footer_area .col-lg-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

@media (max-width: 991px) {
    .footer_area .col-lg-4 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 30px;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER HEADER - Logo & Company Name */
/* ═══════════════════════════════════════════════════════════ */

.footer_header {
    width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.f_logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    flex-wrap: wrap;
}

.f_logo:hover {
    opacity: 0.8;
}

.f_logo img {
    max-height: 35px;
    width: auto;
    display: block;
}

.footer_logo_text {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-weight: 600;
    font-style: normal;
    font-size: 35px;
    color: #FFFFFF;
    letter-spacing: 0.3px;
    line-height: 1.3;
    white-space: normal;
    text-transform: uppercase;
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER WIDGETS */
/* ═══════════════════════════════════════════════════════════ */

.f_widget {
    margin-bottom: 30px;
}

/* Widget Title */
.f_title {
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    font-style: normal;
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 16px;
}

.f_size_20 {
    font-size: 16px;
}

.f_500 {
    font-weight: 700;
}

.color_w {
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════════ */
/* COLUMN 1: THÔNG TIN (Information) */
/* ═══════════════════════════════════════════════════════════ */

.info_widget {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.info_widget .f_title {
    margin-bottom: 20px;
    flex-shrink: 0;
}

.info_widget .f_widget_body {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
}

.info_widget .custom-html-widget {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    height: 100%;
    margin: 0;
    padding: 0;
}

.info_widget p {
    font-family: 'Noto Sans', 'Noto Sans SC', sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.info_widget p i {
    color: rgba(255, 255, 255, 0.7);
    margin-right: 8px;
    min-width: 14px;
}

.info_widget p a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info_widget p a:hover {
    color: #B5D3FF;
    text-decoration: underline;
}

.info_widget .f_contact_line {
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.6;
    margin: 0 0 6px;
}

.info_widget .f_contact_line i {
    margin-right: 0;
    flex: 0 0 auto;
}

.info_widget .f_contact_line a {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════════ */
/* COLUMN 2: LIÊN KẾT (Links) */
/* ═══════════════════════════════════════════════════════════ */

.link_widget {
    margin-left: 0;
    text-align: center; /* Căn giữa khung bọc trên toàn cột */
}

/* Khối bao quanh tiêu đề + danh sách: tự co theo chiều rộng nội dung và căn trái bên trong */
.link_widget .link_inner_wrap {
    display: inline-block;
    text-align: left;
}

.link_widget .f_title {
    margin-bottom: 20px;
    text-align: left;
    display: block;
    width: auto;
}

.link_widget .f_title_inner {
    text-align: left;
}

.link_widget .f_widget_body {
    display: block;
}

/* Giữ nguyên toàn bộ CSS của danh sách bên dưới */
.link_widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.link_widget ul li {
    margin-bottom: 10px;
}

.link_widget ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
}

.link_widget ul li a:hover {
    color: #B5D3FF;
}
/* ═══════════════════════════════════════════════════════════ */
/* COLUMN 3: ĐĂNG KÝ NHẬN TIN (Newsletter) */
/* ═══════════════════════════════════════════════════════════ */

.news_widget h5 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 400;
    margin: 0;
}

/* Newsletter Form */
.subscrib_form {
    display: flex;
    margin-bottom: 20px;
    gap: 0;
}

.subscrib_form .form-control {
    flex: 1;
    height: 45px;
    padding: 10px 15px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 13px;
    border-radius: 0;
    transition: background-color 0.3s ease;
}

.subscrib_form .form-control::placeholder {
    color: #999;
}

.subscrib_form .form-control:focus {
    outline: none;
    background-color: #ffffff;
}

.submit_btn_b {
    width: 45px;
    height: 45px;
    background-color: #3363DD;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.submit_btn_b:hover {
    background-color: #1530A0;
}

.submit_btn_b img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

/* Newsletter Response */
.newsletter-response {
    margin-top: 10px;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-response.success {
    background-color: #d4edda;
    color: #155724;
}

.newsletter-response.error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Social Icons */
.social_icon {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
}

.social_icon li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 14px;
}

.social_icon li a:hover {
    background-color: #ffffff;
    border-color: #ffffff;
    color: #3363DD;
}

/* ═══════════════════════════════════════════════════════════ */
/* FOOTER COPYRIGHT */
/* ═══════════════════════════════════════════════════════════ */

.footer_copyright {
    background-color: rgba(0, 0, 10, 0.3);
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.bottom_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
}

.pull-left a,
.pull-right a {
    color: #B5D3FF;
    text-decoration: none;
}

.pull-left a:hover,
.pull-right a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .bottom_info {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .pull-left,
    .pull-right {
        margin: 0;
    }
}

/* ═══════════════════════════════════════════════════════════ */
/* RESPONSIVE - TABLET (768px) */
/* ═══════════════════════════════════════════════════════════ */

.phone-second-line {
    display: block;
    margin-left: 105px;
}

@media (max-width: 1200px) {
    .phone-second-line {
        margin-left: 0 !important;
    }
}

@media (max-width: 992px) {
    .phone-second-line {
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .phone-second-line {
        margin-left: 0 !important;
    }
}

@media (max-width: 576px) {
    .phone-second-line {
        margin-left: 0 !important;
    }
}

@media (max-width: 767px) {
    .footer_area {
        padding-top: 40px;
    }

    .footer_top {
        padding-bottom: 20px;
    }

    .footer_header {
        margin-bottom: 25px;
        padding-bottom: 20px;
    }

    .f_logo {
        gap: 8px;
    }

    .f_logo img {
        max-height: 28px;
    }

    .footer_logo_text {
        font-size: 16px;
        letter-spacing: 0.2px;
    }

    .f_title {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .info_widget p,
    .link_widget ul li a {
        font-size: 13px;
    }

    .link_widget ul li {
        margin-bottom: 8px;
    }

    .subscrib_form .form-control {
        height: 40px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .submit_btn_b {
        width: 40px;
        height: 40px;
    }

    .submit_btn_b img {
        width: 14px;
        height: 14px;
    }

    .social_icon li a {
        width: 34px;
        height: 34px;
        font-size: 12px;
    }

    .footer_copyright {
        padding: 15px 0;
    }

    .bottom_info {
        font-size: 12px;
    }
}

/* Utility Classes */
.mb-0 {
    margin-bottom: 0;
}

.list-unstyled {
    list-style: none;
    padding: 0;
    margin: 0;
}

.d-flex {
    display: flex;
}

.justify-content-between {
    justify-content: space-between;
}
