/* ═══════════════════════════════════════════════════════
   HOMEPEGE HERO SLIDER — Premium Scoped Styles
   ═══════════════════════════════════════════════════════ */

.hero-slider-wrapper {
    position: relative;
    overflow: hidden;
    background: #F4F8FC; /* Premium theme light background */
}

.hero-slider {
    width: 100%;
    height: auto;
}

/* Rebalanced Grid for Better Composition */
.hero-slider .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr; /* Slightly more space for text, focused image */
    gap: 60px;
    align-items: center;
    min-height: 650px;
    padding: 60px 0;
}

/* Content Transitions & Ghosting Prevention */
.hero-slider .swiper-slide {
    opacity: 0 !important;
    visibility: hidden !important; /* Prevents ghost text behind active slide */
    transition: opacity 0.8s ease, visibility 0.8s ease !important;
    pointer-events: none;
    z-index: 1;
}

.hero-slider .swiper-slide-active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
    z-index: 2; /* Ensures active slide is on top */
}

/* Refined Hero Image Wrapper — No more "Broken Panel" look */
.hero-slider .hero-image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: relative;
    z-index: 5;
}

.hero-slider .hero-image-wrapper::before {
    display: none !important; /* Explicitly killing the awkward beige panel from main.css */
}

.hero-slider .hero-slider-image {
    position: relative;
    width: 100%;
    max-width: 480px; /* More elegant desktop width */
    aspect-ratio: 600 / 932;
    background: rgba(16, 42, 67, 0.02) !important; /* Extremely subtle paper-like surface */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px; /* Soft edge for premium feel */
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 
        0 20px 40px rgba(0,0,0,0.06),
        0 10px 15px rgba(0,0,0,0.04);
}

.hero-slider .hero-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Full visibility as requested */
    object-position: center;
    display: block;
    box-shadow: none !important; /* Explicitly killing theme shadow to prevent broken artifacts */
    filter: drop-shadow(0 10px 25px rgba(0,0,0,0.1)); /* Cleaner, focused shadow */
}

/* Slide Transition Polish */
.hero-slider .swiper-slide-active .hero-slider-image {
    opacity: 1;
    transform: scale(1) translateX(0);
}

.hero-slider .swiper-slide:not(.swiper-slide-active) .hero-slider-image {
    opacity: 0;
    transform: scale(0.95) translateX(30px);
}

/* Minimal Navigation */
.hero-slider-nav {
    position: absolute;
    bottom: 40px;
    left: var(--container-padding, 2rem); /* Align with content container start if possible */
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Adjust nav for grid alignment */
@media (min-width: 1200px) {
    .hero-slider-nav {
        left: calc((100vw - 1200px) / 2 + 2rem);
    }
}

.hero-slider-prev,
.hero-slider-next {
    background: #FFFFFF !important;
    border: 1px solid rgba(16, 42, 67, 0.1) !important;
    color: #102A43 !important;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.hero-slider-prev:hover,
.hero-slider-next:hover {
    background: #102A43 !important;
    color: #FFFFFF !important;
    border-color: #102A43 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 42, 67, 0.15);
}

/* Minimal Pagination */
.hero-slider-pagination {
    display: flex;
    gap: 8px;
    margin: 0 8px;
}

.hero-slider .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background: #102A43 !important;
    opacity: 0.2;
    transition: all 0.4s ease;
    border-radius: 50%;
    margin: 0 !important;
}

.hero-section {
    background: #F4F8FC !important; /* Premium theme light background */
    overflow: hidden;
}

.hero-section::before {
    display: none !important; /* Removing complex gradients to prevent ghosting/clutter */
}

.hero-slider .swiper-pagination-bullet-active {
    opacity: 1;
    width: 20px;
    border-radius: 4px;
}

/* Mobile & Tablet Adjustments */
@media (max-width: 991px) {
    .hero-slider .hero-grid {
        gap: 40px;
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 40px;
        padding-bottom: 100px;
    }

    .hero-slider .hero-content {
        order: 2;
    }

    .hero-slider .hero-image-wrapper {
        order: 1;
    }

    .hero-slider .hero-slider-image {
        max-width: 360px;
        margin: 0 auto;
    }

    .hero-slider .hero-buttons {
        justify-content: center;
    }

    .hero-slider .hero-trust-strip {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-slider .hero-grid {
        gap: 30px;
    }

    .hero-slider-nav {
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
}
