/*==================================================
        DIEN MAY NK - MAIN CONTENT STYLES
==================================================*/

.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* display:none/.active{display:block} KHÔNG được ghi đè ở đây nữa - Bootstrap
   tự xử lý display cho cả .active LẪN .carousel-item-next/-prev (2 slide
   đang trượt qua nhau lúc chuyển cảnh). Selector 3 lớp class ở đây từng
   thắng .carousel-item-next/-prev (1 lớp) của Bootstrap do specificity cao
   hơn, khiến slide sắp trượt vào bị ẩn (display:none) suốt lúc chuyển cảnh -
   lộ nền phía sau ra giữa 2 slide thay vì thấy ảnh trượt mượt. */
.hero-slider .carousel-item {
    height: 480px;
    position: relative;
    background: #000;
    transition: transform .6s ease-in-out;
}

.hero-slider .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 1;
}

.hero-slider .carousel-caption {
    z-index: 2;
    bottom: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 600px;
}

@media (max-width: 768px) {
    .hero-slider .carousel-item {
        height: 250px;
    }
    .hero-slider .carousel-caption h1 {
        font-size: 22px !important;
    }
    .hero-slider .carousel-caption .lead {
        font-size: 13px !important;
    }
}

.core-features {
    background: #f8f9fa;
}

.feature-card {
    border: 1px solid #eee;
    transition: var(--transition, .3s ease);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08) !important;
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.bg-warning-subtle { background-color: rgba(255, 193, 7, 0.15) !important; }
.bg-primary-subtle { background-color: rgba(13, 110, 253, 0.15) !important; }
.bg-success-subtle { background-color: rgba(25, 135, 84, 0.15) !important; }
.bg-danger-subtle { background-color: rgba(220, 53, 69, 0.15) !important; }
