/*
 * KIỂU DÁNG CHÍNH (MAIN STYLES)
 * Tệp này chứa định dạng cho các thành phần cụ thể của trang web.
 */

/* --- ĐẦU TRANG (HEADER) --- */
.dau-trang {
    background-color: var(--mau-nen-trang);
    padding: 16px 0;
    border-bottom: 1px solid var(--mau-vien);
}

.thanh-dieu-huong {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}

.logo-van-ban {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mau-chinh-xanh);
    text-decoration: none;
    margin: 0;
}

.nut-menu {
    font-size: 1.5rem;
    background: none;
    border: 1px solid var(--mau-vien);
    border-radius: 4px;
    padding: 4px 12px;
    color: #999;
    cursor: pointer;
}

.tieu-de-phu {
    font-size: 1rem;
    color: var(--mau-chu-chinh);
    margin-top: 24px;
    margin-bottom: 0px;
    font-weight: 500;
    text-align: left;
    /* Căn trái */
}

/* --- KHU VỰC CHÍNH (HERO SECTION) --- */
.khu-vuc-chinh {
    padding: 24px 0;
    /* Padding nhỏ hơn xíu cho mobile */
    background-color: var(--mau-nen-trang);
}

.luoi-the-vay {
    display: grid;
    /* Mobile: 2 cột theo yêu cầu mới */
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

/* Desktop: 3 cột và padding lớn hơn */
@media (min-width: 1024px) {
    .khu-vuc-chinh {
        padding: 50px 0;
    }

    .luoi-the-vay {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }

    .logo-van-ban {
        font-size: 1.5rem;
    }
}

/* --- THẺ VAY TIỀN (LENDER CARD) --- */
.the-vay-tien {
    background: var(--mau-trang);
    /* Border: 1px solid #E5E7EB per Figma */
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    /* Figma: 8px */
    padding: 16px;
    /* Figma: 16px */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Center content horizontally */

    /* Box sizing */
    box-sizing: border-box;
    width: 100%;

    /* Hiệu ứng bóng đổ nhẹ và hover */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hiệu ứng hover cho thẻ */
.the-vay-tien:hover {
    transform: translateY(-5px);
    /* Nổi lên 5px */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    /* Bóng sâu hơn */
}

.dau-the {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 64px;
    /* Figma: 64px height for logo area */
    width: 100%;
    margin-bottom: 8px;
}

.logo-nha-cung-cap {
    max-width: 100%;
    max-height: 54px;
    /* Figma: ~53.86px */
    object-fit: contain;
}

.ten-nha-cung-cap {
    /* Ẩn tên văn bản nếu đã có logo, hoặc style nhỏ lại */
    display: none;
}

.mo-ta-ngan {
    /* Figma: Roboto, 400, 15.9px, Center, Black */
    font-size: 1rem;
    /* ~16px */
    color: #000000;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.5;
    width: 100%;
}

/* Thông tin chi tiết */
.thong-tin-chi-tiet {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
}

.hang-thong-tin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #E5E7EB;
    /* Mỏng hơn theo style tinh tế */
    width: 100%;
}

/* Remove border-top for the first item if needed, but Figma implies it might be there. 
   Checking image: usually first item might not have it or it acts as separator. 
   Let's keep it as separators. */

.nhan-thong-tin {
    /* Figma: Roboto, 400, 14px, #000000 */
    font-size: 0.875rem;
    /* 14px */
    color: #4B5563;
    /* Xám đậm thay vì đen sì cho mềm hơn */
}

/* Base style cho giá trị: Text thường, màu đen */
.gia-tri-thong-tin {
    font-size: 0.975rem;
    /* ~15.6px */
    font-weight: 400;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 4px;
    /* Khoảng cách giữa chữ và số */
}

/* Số nổi bật: Vàng, Đậm */
.so-noi-bat {
    font-weight: 700;
    color: #F0B51F;
    /* Vàng cam đậm */
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Ẩn cột trái (nhãn) ở mobile theo yêu cầu */
    .nhan-thong-tin {
        display: none;
    }

    /* Căn giữa hoặc căn phải nội dung còn lại */
    .hang-thong-tin {
        justify-content: center;
        /* Căn giữa giá trị khi mất nhãn */
    }
}

/* Nút bấm (CTA) */
.nut-chinh {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 44px;
    /* Figma: 44px */

    /* Figma: #1D47E0 */
    background-color: #1D47E0;
    color: #FFFFFF;

    border-radius: 8px;
    /* Figma: 8px */
    font-weight: 400;
    /* Figma says 400, looks bold in image but let's trust spec or go 500 */
    font-size: 1.1rem;
    /* ~17.7px */
    text-decoration: none;
    margin-top: auto;

    transition: background-color 0.2s ease;
    text-align: center;
    /* Đảm bảo text luôn căn giữa */
}

.nut-chinh:hover {
    background-color: #153bb5;
    /* Darker blue on hover */
}

/* Desktop: Nút inline hoặc kích thước vừa phải */
/* Desktop: Nút vẫn giữ flex để căn giữa text, chỉ điều chỉnh width */
@media (min-width: 1024px) {
    .nut-chinh {
        width: auto;
        min-width: 160px;
        padding: 0 24px;
        /* Thêm padding ngang cho đẹp khi content dài */
    }
}


/* --- KHU VỰC CHI TIẾT (DETAILS SECTION) --- */
.khu-vuc-chi-tiet {
    padding: 32px 0;
    background-color: var(--mau-nen-trang);
    /* Hoặc màu xám nhạt nếu cần tách biệt */
}

.luoi-chi-tiet {
    display: grid;
    /* Mobile: 1 cột */
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Desktop: 2 cột */
@media (min-width: 1024px) {
    .khu-vuc-chi-tiet {
        padding: 64px 0;
    }

    .luoi-chi-tiet {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* --- THẺ CHI TIẾT (DETAIL CARD) --- */
.the-chi-tiet {
    background-color: var(--mau-trang);
    /* Giả lập khung viền và khoảng cách */
    padding: 24px;
    border: 1px solid #E5E7EB;
    /* Màu viền nhẹ hơn */
    border-radius: 8px;
    /* Figma usually 8px */
    /* Hiệu ứng mờ khi hover để làm đẹp */
    transition: background-color 0.2s;
    text-align: center;
    /* Căn giữa toàn bộ nội dung trong thẻ */
}

.the-chi-tiet:hover {
    background-color: #FAFAFA;
}

.ten-cong-ty {
    color: #F0B51F;
    /* Màu vàng cam của tiêu đề */
    font-size: 1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 12px;
    text-transform: uppercase;
    font-weight: 700;
}

.noi-dung-chi-tiet {
    font-size: 0.9rem;
    color: var(--mau-chu-chinh);
}

.nhom-thong-tin {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E5E7EB;
    /* Đường gạch nét đứt */
}

.nhom-thong-tin:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.nhom-thong-tin p {
    margin-bottom: 6px;
    /* Tăng khoảng cách dòng xíu */
}

.nhan {
    color: var(--mau-chu-phu);
    font-weight: 400;
}

.gia-tri {
    font-weight: 600;
    color: #000000;
}

.gia-tri-nho {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--mau-chu-phu);
}

.lien-ket {
    color: var(--mau-chinh-xanh);
    text-decoration: underline;
}

.lien-ket:hover {
    color: var(--mau-chinh-xanh-dam);
}

/* --- CÁC THÀNH PHẦN KHÁC (FAQ, ETC.) --- */
.khu-vuc-cau-hoi,
.khu-vuc-vay-trach-nhiem,
.khu-vuc-apr {
    padding: 60px 0;
    /* Tăng khoảng cách đệm dọc cho thoáng */
    border-top: 1px solid var(--mau-vien);
}

.khu-vuc-cau-hoi h2,
.khu-vuc-vay-trach-nhiem h2 {
    font-size: 1.5rem;
    color: var(--mau-chu-chinh);
    margin-bottom: 24px;
    text-align: center;
    /* Căn giữa tiêu đề các phần này */
}

/* Danh sách gạch đầu dòng */
.danh-sach-cau-hoi,
.danh-sach-loi-ich {
    max-width: 800px;
    margin: 0 auto;
    /* Căn giữa danh sách */
}

.danh-sach-cau-hoi li,
.danh-sach-loi-ich li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--mau-chu-phu);
}

.danh-sach-cau-hoi li::before,
.danh-sach-loi-ich li::before {
    content: "✓";
    /* Dùng dấu tích thay vì chấm tròn */
    color: var(--mau-chinh-xanh);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.1em;
}

/* Phần lưu ý pháp lý (Disclaimer) */
.luu-y-phap-ly,
.khu-vuc-apr p {
    font-size: 0.85rem;
    color: #777;
    margin-top: 24px;
    text-align: justify;
    line-height: 1.4;
}

/* --- CHÂN TRANG (FOOTER) --- */
.chan-trang {
    background-color: #F9F9F9;
    /* Nền xám rất nhạt */
    border-top: 1px solid var(--mau-vien);
    padding: 40px 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.chan-trang h3 {
    font-size: 1rem;
    color: #444;
    margin-bottom: 12px;
}

.chan-trang-duoi {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #E0E0E0;
}

/* --- ANIMATION (HIỆU ỨNG CHUYỂN ĐỘNG) --- */

/* Lớp ẩn mặc định để chờ animation */
.hieu-ung-an {
    opacity: 0;
    transform: translateY(30px);
    /* Dịch xuống 30px */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Lớp hiển thị khi cuộn tới */
.hieu-ung-hien {
    opacity: 1;
    transform: translateY(0);
}

/* Hiệu ứng hover cho nút */
.nut-chinh {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.nut-chinh:hover {
    transform: scale(1.05);
    /* Phóng to nhẹ 5% */
}

.nut-chinh:active {
    transform: scale(0.95);
    /* Thu nhỏ nhẹ khi nhấn */
}

@media (max-width: 768px) {
    .luoi-the-vay {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 12px;
    }
}