.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 0 !important;
    margin: 0 !important;
}
.heroSwiper {
    width: 100%;
    height: min(70vh, 620px);
}
.heroSwiper .swiper-wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    height: 100% !important;
}
.heroSwiper .swiper-slide {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
}
.heroSwiper .swiper-slide img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
}
.heroSwiper .slide-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        to left,
        rgba(var(--dark-rgb), 0.2),
        rgba(var(--dark-rgb), 0.75)
    ) !important;
    z-index: 1 !important;
}
.heroSwiper .slide-content {
    position: absolute !important;
    bottom: 12% !important;
    top: auto !important;
    right: 0 !important;
    left: 0 !important;
    transform: none !important;
    z-index: 2 !important;
    padding: 0 60px !important;
    direction: rtl !important;
    text-align: right !important;
}
.heroSwiper .slide-content h1 {
    color: var(--white) !important;
    font-size: clamp(1.4rem, 3.2vw, 46px) !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    line-height: 1.6 !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
}
.heroSwiper .slide-content p {
    color: rgba(255,255,255,0.9) !important;
    font-size: clamp(13px, 1.4vw, 17px) !important;
    margin-bottom: 30px !important;
}
.heroSwiper .slide-content .main-btn {
    width: auto !important;
    display: inline-flex !important;
}
.heroSwiper .swiper-pagination {
    z-index: 3 !important;
    bottom: 20px !important;
}
@media (max-width: 768px) {
    .heroSwiper .slide-content {
        padding: 0 20px !important;
        bottom: 10% !important;
    }
}

/* =====================================================
   FALLBACK HERO — only renders when slider.php finds no
   active slides in the database (see includes/slider.php).
   Minimal safety-net styling so the page never shows a
   completely unstyled section if that happens.
   ===================================================== */
.hero {
    padding: 160px 0 100px;
    background: var(--primary);
}
.hero .hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}
.hero .hero-text {
    flex: 1 1 460px;
}
.hero .hero-subtitle {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: .5px;
}
.hero .hero-text h1 {
    font-size: var(--font-size-hero);
    color: var(--white);
    line-height: 1.5;
    margin-bottom: 20px;
}
.hero .hero-text p {
    color: var(--text-light);
    font-size: 17px;
    margin-bottom: 35px;
}
.hero .hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.hero .hero-image {
    flex: 1 1 320px;
    max-width: 420px;
}
.hero .hero-image img {
    width: 100%;
    height: auto;
}
@media (max-width: 768px) {
    .hero {
        padding: 130px 0 70px;
        text-align: center;
    }
    .hero .hero-content {
        flex-direction: column;
    }
    .hero .hero-buttons {
        justify-content: center;
    }
}
