/* Banner Container */
.banner {
    display: flex;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
    background: #1e293b;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    min-height: 60vh;
    position: relative;
    overflow: hidden;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 40%, rgba(59, 130, 246, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                radial-gradient(circle at 40% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Banner bên trái - Ưu đãi */
.banner-left {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.promo-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid #3b82f6;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.3);
    background: rgba(255, 255, 255, 1);
    border-left: 4px solid #3b82f6;
}

.promo-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.promo-card p {
    color: var(--accent-color);
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.promo-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.promo-detail {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

/* Banner chính - Slider */
.slider {
    flex: 2;
    height: 60vh;
    overflow: hidden;
    position: relative;
    background-color: var(--primary-color);
    border-radius: 12px;
}

/* Banner bên phải - Cam kết/Tư vấn */
.banner-right {
    flex: 1;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.service-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-right: 4px solid #10b981;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    backdrop-filter: blur(20px);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(16, 185, 129, 0.3);
    background: rgba(255, 255, 255, 1);
    border-right: 4px solid #10b981;
}

.service-card h3 {
    color: var(--text-primary);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.service-card p {
    color: var(--success-color, #28a745);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.service-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.service-detail {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.8;
}

.cta-card {
    background: linear-gradient(135deg, var(--accent-color), #1e40af);
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-card:hover::before {
    left: 100%;
}

.cta-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(59, 130, 246, 0.4);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.cta-card h3 {
    color: var(--secondary-color);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cta-card p {
    color: var(--secondary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.cta-text {
    color: var(--secondary-color);
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
    display: block;
}

.cta-btn {
    background-color: var(--secondary-color);
    color: var(--accent-color);
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background-color: var(--background-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .banner {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .banner-left,
    .banner-right {
        max-width: 100%;
        flex-direction: row;
        gap: 1rem;
    }
    
    .promo-card,
    .service-card,
    .cta-card {
        flex: 1;
        padding: 1rem;
    }
    
    .slider {
        height: 40vh;
        order: -1; /* Đặt slider lên đầu trên mobile */
    }
}


.slides {
    display: flex;
    width: 100%;
    height: 100%;

    /* hiệu ứng trượt cho 5 ảnh */
    animation: slideAnimation 15s infinite;
}


.slides img {
    width: 100%;
    height: 100%;
    object-position: center;
    object-fit: contain;
    flex-shrink: 0;
}


/* Hiệu ứng trượt ngang cho 5 ảnh */
@keyframes slideAnimation {
    0% {
        transform: translateX(0%);
    }

    18% {
        transform: translateX(0%);
    }

    20% {
        transform: translateX(-100%);
    }

    38% {
        transform: translateX(-100%);
    }

    40% {
        transform: translateX(-200%);
    }

    58% {
        transform: translateX(-200%);
    }

    60% {
        transform: translateX(-300%);
    }

    78% {
        transform: translateX(-300%);
    }

    80% {
        transform: translateX(-400%);
    }

    98% {
        transform: translateX(-400%);
    }

    100% {
        transform: translateX(0%);
    }
}