﻿/* =========================================
   WHY CHOOSE US - ULTIMATE PROFESSIONAL STYLE
   ========================================= */

.why-us-premium {
    background-color: #f8fbff;
    position: relative;
    padding: 60px 0;
}

/* 1. SECTION TITLE */
.section-title {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* 2. FEATURE CARD */
.feature-card {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    /* Bóng đổ nhẹ nhàng, hiện đại */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
    height: 100%;
}

    /* Thanh màu Gradient dưới đáy (Ẩn) */
    .feature-card::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, var(--primary-color, #0046ba), #00c6fb);
        transform: scaleX(0);
        transform-origin: center;
        transition: transform 0.4s ease;
    }

    /* Hover Card: Bay lên + Bóng đổ sâu */
    .feature-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 50px rgba(0, 70, 186, 0.12);
        border-color: rgba(0, 70, 186, 0.1);
    }

        .feature-card:hover::after {
            transform: scaleX(1); /* Hiện thanh màu */
        }

/* 3. ICON WRAPPER (CONTAINER 90px) */
.icon-box-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 30px; /* Canh giữa và cách text bên dưới */
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Vòng tròn nét đứt xoay (Spinning Ring) */
    .icon-box-wrapper::before {
        content: '';
        position: absolute;
        /* Mở rộng ra ngoài wrapper một chút */
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
        border-radius: 50%;
        border: 2px dashed #cbd5e1; /* Màu xám nhạt mặc định */
        z-index: -1;
        animation: spin-ring 15s linear infinite; /* Quay chậm mặc định */
        transition: all 0.4s ease;
    }

@keyframes spin-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Nền biến hình (Hình thoi -> Hình tròn) */
.icon-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 98%;
    height: 98%;
    background: #f1f5f974; /* Nền xám xanh nhẹ */
    border-radius: 24px; /* Bo góc mềm */
    transform: rotate(45deg); /* Xoay hình thoi */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.03); /* Bóng đổ trong tạo độ sâu */
}

/* --- HIỆU ỨNG ICON KHI HOVER CARD --- */
.feature-card:hover .icon-box-wrapper::before {
    border-color: var(--primary-color, #0046ba); /* Vòng tròn đổi màu xanh */
    animation-duration: 4s; /* Quay nhanh hơn */
    opacity: 0.6;
}

.feature-card:hover .icon-bg {
    background: var(--primary-color, #0046ba); /* Nền đổi màu xanh đậm */
    transform: rotate(0deg) scale(1.1); /* Hết xoay, thành hình vuông bo tròn to lên */
    border-radius: 50%; /* Biến thành hình tròn hoàn hảo */
    box-shadow: 0 10px 25px rgba(0, 70, 186, 0.3); /* Bóng đổ phát sáng */
}

/* 4. ẢNH ICON (SỬA LẠI KÍCH THƯỚC) */
.feature-icon {
    /* QUAN TRỌNG: Ảnh chỉ chiếm 60% kích thước khung 90px để lọt lòng đẹp */
    width: 150px;
    height: 150px;
    position: relative;
    z-index: 2;
    object-fit: contain; /* Giữ nguyên tỷ lệ ảnh không bị méo */
    transition: all 0.4s ease;
    /* Mặc định ảnh giữ nguyên màu gốc */
    filter: none;
}

/* Khi hover: Ảnh chuyển sang màu trắng để nổi bật trên nền xanh đậm */
.feature-card:hover .feature-icon {
    transform: scale(1.15); /* Phóng to nhẹ ảnh */
    /*filter: brightness(0) invert(1);*/ /* Biến ảnh thành màu trắng tinh */
}

/* 5. TEXT CONTENT */
.card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #334155;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.feature-card:hover .card-title {
    color: var(--primary-color, #0046ba);
}

.card-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}
