﻿/* --- TRUST GRID SECTION --- */

.trust-section-wrapper {
    padding: 30px 0;
    position: relative;
}

/* 1. Image Column */
.trust-image-wrapper {
    position: relative;
    padding-left: 20px; /* Chừa chỗ cho badge */
}

.trust-img {
    width: 100%;
    object-fit: cover;
    border-radius: 20px;
    /* Hiệu ứng viền bo nhẹ */
    border: 8px solid rgba(255,255,255,0.5);
}

/* Floating Badge (Huy hiệu nổi) */
.floating-badge {
    position: absolute;
    bottom: 30px;
    left: 0;
    background: linear-gradient(135deg, var(--primary-color, #0046ba) 0%, #0060ff 100%);
    padding: 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0, 70, 186, 0.4);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
    min-width: 120px;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* 2. Content Header */
.ls-2 {
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.title-line {
    width: 60px;
    height: 4px;
    background: var(--primary-color, #0046ba);
    border-radius: 2px;
}

/* 3. Trust Cards (Grid Item) */
.trust-card {
    background: #fff;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: flex-start;
}

    /* Hiệu ứng Hover Card */
    .trust-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0, 70, 186, 0.1);
        border-color: rgba(0, 70, 186, 0.1);
    }

.icon-box {
    width: 40px;
    height: 40px;
    background: rgba(0, 70, 186, 0.1); /* Màu xanh nhạt */
    color: var(--primary-color, #0046ba);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 15px;
    flex-shrink: 0;
    transition: all 0.3s;
}

.trust-card:hover .icon-box {
    background: var(--primary-color, #0046ba);
    color: #fff;
}

.card-text {
    flex-grow: 1;
}

.trust-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #333;
}

.trust-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
    margin-bottom: 0;
}

/* 4. CTA Button */
.btn-trust-cta {
    padding: 12px 30px;
    background: #0046ba;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    transition: all 0.3s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

    .btn-trust-cta:hover {
        background: var(--primary-color, #0046ba);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 70, 186, 0.3);
    }

/* Responsive */
@media (max-width: 991px) {
    .trust-image-wrapper {
        padding-left: 0;
        margin-bottom: 40px;
        text-align: center;
    }

    .floating-badge {
        left: 50%;
        transform: translateX(-50%);
        bottom: -20px;
    }

    .trust-content .register {
        text-align: center;
    }

    @keyframes float {
        0%, 100% {
            transform: translate(-50%, 0px);
        }

        50% {
            transform: translate(-50%, -10px);
        }
    }
}

/* ======================================================
   RESPONSIVE FIX - MOBILE & TABLET OPTIMIZATION
   ====================================================== */

/* 1. TABLET & MÀN HÌNH NHỎ (Dưới 992px) */
@media (max-width: 991.98px) {

    .trust-section-wrapper {
        padding: 40px 0; /* Tăng khoảng cách để thoáng hơn */
    }

    /* Xử lý phần Ảnh */
    .trust-image-wrapper {
        padding-left: 0; /* Bỏ padding trái */
        margin-bottom: 60px; /* Đẩy nội dung chữ xuống xa hơn để nhường chỗ cho Badge */
        text-align: center; /* Căn giữa ảnh */
        max-width: 600px; /* Giới hạn chiều rộng ảnh cho đẹp */
        margin-left: auto;
        margin-right: auto;
    }

    .trust-img {
        width: 100%;
        border-width: 6px; /* Giảm độ dày viền trắng chút */
    }

    /* Xử lý Huy hiệu nổi (Căn giữa) */
    .floating-badge {
        left: 50%; /* Đặt mốc ở giữa */
        bottom: -25px; /* Treo lơ lửng xuống dưới ảnh */
        transform: translateX(-50%); /* Kỹ thuật căn giữa tuyệt đối */
        min-width: 180px; /* Đảm bảo đủ rộng cho chữ */
        padding: 15px 25px;
        width: auto;
        white-space: nowrap; /* Không cho chữ xuống dòng */
    }

    /* Override Animation Float cho trạng thái căn giữa */
    @keyframes float {
        0%, 100% {
            transform: translate(-50%, 0px);
        }

        50% {
            transform: translate(-50%, -10px);
        }
    }
}

/* 2. MOBILE (Dưới 576px) */
@media (max-width: 575.98px) {

    /* Thu gọn tiêu đề */
    .section-title {
        font-size: 1.6rem;
        line-height: 1.3;
    }

    .trust-desc {
        font-size: 0.95rem; /* Tăng size chữ mô tả xíu cho dễ đọc trên đt */
    }

    /* Tinh chỉnh Card Trust cho gọn */
    .trust-card {
        padding: 15px; /* Giảm padding trong card */
        margin-bottom: 15px; /* Khoảng cách giữa các card */
    }

    .icon-box {
        width: 35px; /* Thu nhỏ icon chút */
        height: 35px;
        font-size: 1rem;
        margin-right: 12px;
    }

    .trust-title {
        font-size: 1rem; /* Giảm size tiêu đề card */
    }

    /* Xử lý Badge trên màn hình điện thoại bé */
    .floating-badge {
        width: 80%; /* Chiếm 80% chiều ngang ảnh */
        min-width: auto;
        padding: 12px;
        bottom: -20px;
        border-radius: 12px;
    }

        .floating-badge h5,
        .floating-badge span {
            font-size: 0.9rem; /* Giảm size chữ trong badge */
        }

    .trust-image-wrapper {
        margin-bottom: 50px; /* Giảm khoảng cách chút trên mobile */
    }

    
}
