/* =====================================================
   Kim Ngân Đà Lạt - Hero Banner & Category Block CSS
   ===================================================== */

:root {
    --hero-green: #004d44;
    --hero-orange: #c3862e;
    --hero-dark: #003932;
    --hero-gold-gradient: linear-gradient(135deg, #d4a843 0%, #c3862e 40%, #a06b1e 70%, #d4a843 100%);
    --hero-gold-gradient-subtle: linear-gradient(135deg, #e0be6a 0%, #c3862e 50%, #b8922e 100%);
}

/* 3-Column Layout Proportions */
@media (min-width: 1200px) {
    .col-hero-sidebar {
        flex: 0 0 17.5%;
        max-width: 17.5%;
        width: 17.5%;
    }

    .col-hero-slider {
        flex: 0 0 62%;
        max-width: 62%;
        width: 62%;
    }

    .col-hero-features {
        flex: 0 0 20.5%;
        /* +17% wider than sidebar */
        max-width: 20.5%;
        width: 20.5%;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-hero-sidebar {
        flex: 0 0 22%;
        max-width: 22%;
        width: 22%;
    }

    .col-hero-slider {
        flex: 0 0 52%;
        max-width: 52%;
        width: 52%;
    }

    .col-hero-features {
        flex: 0 0 26%;
        max-width: 26%;
        width: 26%;
    }
}

/* Swiper Core Structural Layout Fallbacks */
.swiper {
    margin-left: auto;
    margin-right: auto;
    position: relative;
    overflow: hidden;
    list-style: none;
    padding: 0;
    z-index: 1;
}

.swiper-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex !important;
    flex-direction: row !important;
    transition-property: transform;
    box-sizing: content-box;
}

.swiper-slide {
    flex-shrink: 0 !important;
    width: 100% !important;
    height: 100%;
    position: relative;
    transition-property: transform;
}

/* Category Sidebar */
.hero-cat-sidebar {
    min-height: 380px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    border-radius: 10px !important;
    overflow: hidden;
}

.hero-cat-header {
    background-color: var(--hero-green) !important;
    border-top-left-radius: 9px !important;
    border-top-right-radius: 9px !important;
}

.bg-success-brand {
    background-color: var(--hero-green) !important;
}

.text-success-brand {
    color: var(--hero-green) !important;
}

.bg-brand-orange {
    background: var(--hero-gold-gradient) !important;
}

.text-brand-orange {
    background: var(--hero-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.text-brand-orange::before {
    -webkit-text-fill-color: transparent;
}

.border-bottom-subtle {
    border-bottom: 1px solid #f1f3f5;
}

.hero-cat-item:last-child .hero-cat-link {
    border-bottom: none;
}

.hero-cat-link {
    transition: all 0.2s ease-in-out;
}

.hero-cat-link:hover {
    background-color: rgba(0, 57, 50, 0.04) !important;
    padding-left: 1.25rem !important;
    color: var(--hero-green) !important;
}

.hero-cat-link:hover i {
    opacity: 1 !important;
    transform: scale(1.1);
}

.hero-section-wrapper {
    overflow-x: hidden;
    width: 100%;
}

/* Top Featured Tags */
.hero-top-tags {
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    max-width: 100%;
    flex-wrap: nowrap;
}

.hero-top-tags::-webkit-scrollbar {
    display: none;
}

.hero-tag-item {
    transition: all 0.2s ease;
    border-color: #e5e9f0 !important;
    border-radius: 20px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.hero-tag-item:hover {
    border-color: var(--hero-green) !important;
    color: var(--hero-green) !important;
    background-color: rgba(0, 57, 50, 0.04) !important;
}

/* Hero Slider Main */
.hero-slider-box {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    background-color: #f8f9fa;
    border-radius: 12px !important;
    overflow: hidden;
    height: 100%;
}

.hero-main-swiper {
    height: 100%;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px !important;
    display: block;
}

.bg-gradient-dark {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 60%, transparent 100%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.hero-swiper-next,
.hero-swiper-prev {
    color: #ffffff !important;
    width: 38px !important;
    height: 38px !important;
    background: rgba(0, 57, 50, 0.65) !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}

.hero-swiper-next:hover,
.hero-swiper-prev:hover {
    background: var(--hero-green) !important;
    transform: scale(1.1);
}

.hero-swiper-next::after,
.hero-swiper-prev::after {
    font-size: 16px !important;
    font-weight: bold;
}

.hero-swiper-pagination .swiper-pagination-bullet {
    background: #ffffff !important;
    opacity: 0.6;
}

.hero-swiper-pagination .swiper-pagination-bullet-active {
    background: var(--hero-green) !important;
    opacity: 1;
    width: 20px;
    border-radius: 10px;
}

/* 4 Feature Cards Grid (Equal Heights & Uniform Gaps) */
.hero-feature-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 0.8rem;
    height: 100%;
}

.hero-feature-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    box-sizing: border-box;
    border-radius: 10px !important;
    overflow: hidden;
}

.hero-feature-card.border-card-orange {
    border: 1px solid transparent !important;
    background-image: linear-gradient(white, white), var(--hero-gold-gradient);
    background-origin: border-box;
    background-clip: padding-box, border-box;
}

.hero-feature-card.border-card-orange .feature-card-icon {
    background: var(--hero-gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-feature-card.border-card-green {
    border: 1px solid var(--hero-green) !important;
}

.hero-feature-card.border-card-green .feature-card-icon {
    color: var(--hero-green) !important;
}

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

/* Utilities */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.py-1-5 {
    padding-top: 0.375rem !important;
    padding-bottom: 0.375rem !important;
}

.me-1-5 {
    margin-right: 0.375rem !important;
}

.mt-0-5 {
    margin-top: 0.125rem !important;
}

.fs-7 {
    font-size: 0.9rem !important;
}

.fs-8 {
    font-size: 0.8rem !important;
}

.fs-9 {
    font-size: 0.725rem !important;
}

.shadow-xs {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-slider-box {
        min-height: unset !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .hero-main-swiper {
        height: 100% !important;
    }

    .hero-slide-img {
        min-height: unset !important;
        max-height: unset !important;
        height: 100% !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
        border-radius: 12px !important;
        display: block;
    }

    .hero-feature-cards-grid {
        min-height: 240px;
    }

    .hero-feature-card {
        padding: 0.75rem !important;
    }

    .hero-swiper-next,
    .hero-swiper-prev {
        width: 32px !important;
        height: 32px !important;
    }

    .hero-swiper-next::after,
    .hero-swiper-prev::after {
        font-size: 13px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-slider-box {
        min-height: unset !important;
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 10px !important;
    }

    .hero-slide-img {
        min-height: unset !important;
        max-height: unset !important;
        height: 100% !important;
        width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
        border-radius: 10px !important;
    }

    .hero-slide-caption {
        padding: 0.75rem 1rem !important;
    }

    .hero-slide-caption h3 {
        font-size: 1.15rem !important;
        margin-bottom: 0.25rem !important;
    }

    .hero-swiper-next,
    .hero-swiper-prev {
        width: 28px !important;
        height: 28px !important;
    }

    .hero-swiper-next::after,
    .hero-swiper-prev::after {
        font-size: 11px !important;
    }

    .hero-swiper-pagination .swiper-pagination-bullet {
        width: 6px;
        height: 6px;
    }
}