﻿/* --- DRIVING PROMOTION COMPONENT --- */

.promotion-wrapper {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08); /* Bóng đổ mềm mại */
    border: 1px solid rgba(0,0,0,0.02);
    position: relative;
    overflow: hidden;
}

    /* Trang trí nền mờ (Gradient Blob) */
    .promotion-wrapper::before {
        content: '';
        position: absolute;
        top: -50px;
        right: -50px;
        width: 200px;
        height: 200px;
        background: radial-gradient(circle, rgba(255, 59, 48, 0.05) 0%, transparent 70%); /* Màu đỏ nhạt */
        border-radius: 50%;
        z-index: 0;
    }

/* 1. Header */
.section-title {
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

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

/* 2. Item Card */
.promo-item-card {
    background: #fff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    z-index: 1;
}

    /* Hiệu ứng Hover */
    .promo-item-card:hover {
        transform: translateX(5px); /* Trượt nhẹ sang phải */
        border-color: rgba(0, 70, 186, 0.3); /* Viền xanh */
        box-shadow: 0 5px 15px rgba(0, 70, 186, 0.1);
        background: #f8fbff; /* Nền xanh rất nhạt */
    }

/* 3. Image Styles */
.promo-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    background: #f1f5f9;
    padding: 5px;
    border: 1px solid #e2e8f0;
}

.promo-img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Đảm bảo icon/ảnh không bị cắt */
    transition: transform 0.3s;
}

.promo-item-card:hover .promo-img {
    transform: scale(1.1);
}

/* 4. Text Content */
.promo-item-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color, #0046ba);
    margin-bottom: 4px;
}

.promo-item-desc {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

/* 5. Decor Icon */
.promo-check {
    color: #e2e8f0; /* Màu xám mờ mặc định */
    font-size: 1.2rem;
    transition: all 0.3s;
}

.promo-item-card:hover .promo-check {
    color: #28a745; /* Chuyển màu xanh lá khi hover */
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 768px) {
    .promotion-wrapper {
        padding: 20px;
    }

    .promo-img-wrapper {
        width: 50px;
        height: 50px;
    }

    .promo-item-title {
        font-size: 1rem;
    }
}
