﻿/* =========================================
   POLICY SECTION - PREMIUM STYLE
   ========================================= */

.policy-section {
    background-color: #f8fbff; /* Nền xanh pha xám rất nhẹ, sáng sủa */
}

.mw-600 {
    max-width: 600px;
}

/* 1. CARD CHÍNH SÁCH (BASE CARD) */
.policy-card {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 24px; /* Bo góc lớn hiện đại */
    border: 1px solid #eff2f7; /* Viền siêu mờ */
    /* Bóng đổ 2 lớp tạo chiều sâu */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
    text-align: center; /* Căn giữa nội dung mặc định */
}

    /* Thanh màu trang trí trên đầu card (Accent Line) */
    .policy-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-color, #0046ba), #00c6fb);
        transform: scaleX(0); /* Ẩn mặc định */
        transform-origin: left;
        transition: transform 0.4s ease;
    }

    /* Hiệu ứng Hover vào Card */
    .policy-card:hover {
        transform: translateY(-12px); /* Bay lên cao hơn chút */
        box-shadow: 0 20px 50px rgba(0, 70, 186, 0.12); /* Bóng đổ lan tỏa màu xanh */
        border-color: rgba(0, 70, 186, 0.1);
    }

        .policy-card:hover::before {
            transform: scaleX(1); /* Hiện thanh màu trên đầu */
        }

/* 2. ICON WRAPPER (DÀNH CHO ẢNH THẬT) - ĐIỂM NHẤN CHÍNH */
.policy-icon-wrapper {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px; /* Căn giữa */
    /* Tạo nền mềm mại làm nổi bật ảnh */
    background: radial-gradient(circle at 30% 30%, #ffffff, #f1f5f9);
    border-radius: 22px; /* Dáng Squircle (Lai giữa tròn và vuông) */

    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px; /* Khoảng cách an toàn cho ảnh */
    /* Hiệu ứng viền và bóng nhẹ */
    border: 1px solid #fff;
    box-shadow: 0 10px 25px rgba(148, 163, 184, 0.15), /* Bóng đổ xuống */
    inset 0 -5px 10px rgba(0,0,0,0.02); /* Bóng đổ vào trong */

    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Hiệu ứng nảy đàn hồi */
}

    /* Style cho ảnh bên trong */
    .policy-icon-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        /* Bóng đổ cho chính vật thể trong ảnh */
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
        transition: transform 0.5s ease;
    }

/* Hover vào Card -> Icon phản ứng */
.policy-card:hover .policy-icon-wrapper {
    background: #fff;
    transform: scale(1.1) rotate(-3deg); /* Phóng to và nghiêng nhẹ */
    box-shadow: 0 15px 35px rgba(0, 70, 186, 0.2);
}

    .policy-card:hover .policy-icon-wrapper img {
        transform: scale(1.1) translateY(-5px); /* Ảnh bên trong bay lên */
    }

/* 3. TYPOGRAPHY (CHỮ) */
.policy-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.policy-desc {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
    /* Giới hạn số dòng nếu cần */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 4. SPECIAL POLICY (CARD BỘ ĐỘI) */
.policy-card.special-policy {
    background: linear-gradient(145deg, #fff5f5 0%, #ffffff 100%);
    border: 1px solid #fed7d7;
    flex-direction: row; /* Quay ngang trên desktop */
    text-align: left;
    padding: 30px;
}

    .policy-card.special-policy:hover {
        box-shadow: 0 15px 40px rgba(220, 53, 69, 0.15);
        transform: translateY(-5px);
    }

    .policy-card.special-policy::before {
        background: #dc3545; /* Thanh màu đỏ */
    }

/* Icon box cho Special Card (Giữ nguyên icon font) */
.icon-box-lg {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    background: linear-gradient(135deg, #dc3545, #ff6b6b);
    box-shadow: 0 10px 20px rgba(220, 53, 69, 0.3);
    border: 4px solid #fff;
}

/* Nút đăng ký đặc biệt */
/* --- BUTTON STYLE 1: SHINE GRADIENT --- */
.btn-register-premium {
    position: relative;
    padding: 12px 40px;
    border-radius: 50px;
    background: linear-gradient(90deg, #dc3545 0%, #ff5e62 100%); /* Đỏ sang cam đỏ */
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

    /* Hiệu ứng lóa sáng chạy qua */
    .btn-register-premium::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 50%;
        height: 100%;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
        transform: skewX(-20deg);
        animation: btnShine 3s infinite;
    }

@keyframes btnShine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }
    /* Chạy nhanh */
    100% {
        left: 200%;
    }
}

/* Hover Effect */
.btn-register-premium:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(220, 53, 69, 0.6);
    background: linear-gradient(90deg, #c82333 0%, #dc3545 100%);
}

    .btn-register-premium:hover i {
        transform: translateX(5px); /* Mũi tên trượt sang phải */
        transition: transform 0.3s;
    }

/* 5. RESPONSIVE */
@media (max-width: 991px) {
    .policy-card.special-policy {
        flex-direction: column;
        text-align: center;
    }

    .icon-box-lg {
        margin: 0 auto 15px !important; /* Căn giữa icon bộ đội */
    }

    .ms-lg-auto {
        margin-left: 0 !important;
        margin-top: 20px;
        width: 100%;
    }

    .policy-card.special-policy .btn {
        width: 100%; /* Nút full màn hình mobile */
    }
}
