/* Homepage Specific Styles (Chỉ áp dụng cho Trang Chủ /) */

/* Hero Carousel Slider with Full Background Images */
.hero-slider-wrapper {
    border-radius: 0 0 24px 24px;
    background-color: #0b1120;
    overflow: hidden;
}

.hero-slide {
    color: #ffffff;
    min-height: 540px;
    padding-top: 3.5rem !important;
    padding-bottom: 4.5rem !important;
    display: flex;
    align-items: center;
    position: relative;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.85) 50%, rgba(15, 23, 42, 0.5) 100%);
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-slide.slide-1 {
    background-image: url('/img/slider_bg_1.png?v=3');
}

.hero-slide.slide-2 {
    background-image: url('/img/slider_bg_2.png?v=3');
}

.hero-slide.slide-3 {
    background-image: url('/img/slider_bg_3.png?v=3');
}

/* Carousel Fade Transition Custom Rule */
.hero-carousel.carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
}

.hero-carousel.carousel-fade .carousel-item.active,
.hero-carousel.carousel-fade .carousel-item-next.carousel-item-left,
.hero-carousel.carousel-fade .carousel-item-prev.carousel-item-right {
    z-index: 1;
    opacity: 1;
}

.hero-carousel.carousel-fade .active.carousel-item-left,
.hero-carousel.carousel-fade .active.carousel-item-right {
    z-index: 0;
    opacity: 0;
}

.hero-title {
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-badge {
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    padding: 6px 18px;
    border-radius: 50rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.carousel-indicators {
    bottom: 24px !important;
    margin-bottom: 0 !important;
    z-index: 10;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    transition: all 0.3s ease;
}

.carousel-indicators li.active {
    width: 32px;
    border-radius: 6px;
    background-color: #3b82f6;
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(6px);
    width: 46px;
    height: 46px;
    background-size: 45%;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover, .carousel-control-next-icon:hover {
    background-color: var(--primary-color);
    transform: scale(1.1);
}

/* Feature Box for Homepage */
.feature-box {
    padding: 30px 20px;
    text-align: center;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100% !important;
    margin: 0 !important;
}

.feature-box h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.75rem;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.feature-box p {
    font-size: 0.875rem;
    line-height: 1.5;
    color: #64748b;
    margin-bottom: 0;
    flex-grow: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.feature-box:hover {
    transform: translateY(-6px) !important;
    box-shadow: var(--shadow-lg);
    border-color: #cbd5e1;
}

.feature-box .icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
}

/* Glassmorphism & Custom Hero Banner Styles */
.hero-glass-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-glass-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.45);
}

.hero-badge-gradient {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(217, 119, 6, 0.35) 100%);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fef08a;
    backdrop-filter: blur(8px);
}

.hero-badge-info {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%);
    border: 1px solid rgba(56, 189, 248, 0.5);
    color: #e0f2fe;
    backdrop-filter: blur(8px);
}

.hero-badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25) 0%, rgba(5, 150, 105, 0.35) 100%);
    border: 1px solid rgba(52, 211, 153, 0.5);
    color: #d1fae5;
    backdrop-filter: blur(8px);
}

.border-white-15 {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.border-white-10 {
    border-color: rgba(255, 255, 255, 0.10) !important;
}

.bg-warning-soft {
    background: rgba(245, 158, 11, 0.18) !important;
}

.bg-info-soft {
    background: rgba(14, 165, 233, 0.18) !important;
}

.bg-success-soft {
    background: rgba(16, 185, 129, 0.18) !important;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.hover-scale {
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-scale:hover {
    transform: translateY(-2px) scale(1.02);
}

.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.65;
    letter-spacing: -0.01em;
}
