/* ========================================================
   GruhSetu - Hero Dynamic Responsive Slider Styles
======================================================== */

.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--primary);
}

.hero-slider-container {
    position: relative;
    width: 100%;
    height: 600px;
    max-height: 700px;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-slider-container {
        height: 600px;
    }
}

@media (max-width: 991px) and (min-width: 769px) {
    .hero-slider-container {
        height: 520px;
    }
}

@media (max-width: 768px) {
    .hero-slider-container {
        height: 520px;
        min-height: 460px;
    }
}

@media (max-width: 480px) {
    .hero-slider-container {
        height: 480px;
        min-height: 400px;
    }
}

.slider-track {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide-item {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease;
    z-index: 1;
}

.slide-item.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Picture element responsive image switcher */
.slide-picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.slide-img,
.slide-img-desktop,
.slide-img-mobile {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Slide Content Overlay */
.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 39, 71, 0.85) 0%,
        rgba(15, 39, 71, 0.6) 45%,
        rgba(15, 39, 71, 0.15) 100%
    );
    display: flex;
    align-items: center;
    z-index: 3;
    padding: 40px 0;
}

.page-buyer-home .slide-overlay {
    padding-top: 86px;
}

@media (max-width: 768px) {
    .slide-overlay {
        background: linear-gradient(
            0deg,
            rgba(15, 39, 71, 0.95) 0%,
            rgba(15, 39, 71, 0.65) 50%,
            rgba(15, 39, 71, 0.3) 100%
        );
        align-items: flex-end;
        padding-bottom: 60px;
    }
}

.slide-content {
    max-width: 680px;
    color: #FFFFFF;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s, opacity 0.6s ease 0.2s;
}

.slide-item.active .slide-content {
    transform: translateY(0);
    opacity: 1;
}

.slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background-color: rgba(201, 162, 39, 0.2);
    border: 1px solid var(--secondary);
    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.slide-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--secondary);
}

.slide-title {
    font-family: var(--font-heading);
    font-size: 46px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .slide-title {
        font-size: 28px;
    }
}

.slide-subtitle {
    font-size: 17px;
    color: #E2E8F0;
    line-height: 1.6;
    margin-bottom: 28px;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .slide-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
}

.slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Slider Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(15, 39, 71, 0.7);
    color: #FFFFFF;
    border: 1px solid var(--border-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.slider-arrow-prev {
    left: 24px;
}

.slider-arrow-next {
    right: 24px;
}

@media (max-width: 768px) {
    .slider-arrow {
        display: none;
    }
}

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--radius-full);
    background-color: rgba(255, 255, 255, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    width: 32px;
    background-color: var(--secondary);
}
