/* Hero Slider Size Adjustment */
.heroSwiper {
    height: 70vh !important;
    min-height: 600px !important;
}

/* Align content and image vertically */
.hero-slide .row {
    height: 100%;
    align-items: center !important;
}

.hero-slide .col-lg-6 {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    width: 100%;
}

.hero-image {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Reduce image size */
.hero-image img.img-fluid {
    max-width: 75% !important;
    width: 75% !important;
    height: auto !important;
    object-fit: contain !important;
}

/* Adjust content spacing for smaller slider */
.hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.3;
}

.hero-content .lead {
    font-size: 1.1rem;
    line-height: 1.7;
}

.hero-content .badge {
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hero-content .animate-buttons {
    margin-top: 1.5rem;
}

/* Ensure no overflow */
.hero-slide {
    overflow: visible !important;
}

.heroSwiper {
    overflow: visible !important;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .heroSwiper {
        height: 65vh !important;
        min-height: 550px !important;
    }
    
    .hero-content h1 {
        font-size: 2.3rem;
    }
}

@media (max-width: 992px) {
    .heroSwiper {
        height: 60vh !important;
        min-height: 500px !important;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .hero-image img.img-fluid {
        max-width: 80% !important;
        width: 80% !important;
    }
}

@media (max-width: 768px) {
    .heroSwiper {
        height: auto !important;
        min-height: 750px !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        padding-top: 100px !important;
        padding-bottom: 70px !important;
        min-height: 750px !important;
        overflow: visible !important;
    }
    
    .hero-slide .row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .hero-slide .col-lg-6 {
        width: 100%;
        padding: 15px;
    }
    
    .hero-slide .col-lg-6:first-child {
        order: 1;
    }
    
    .hero-slide .col-lg-6:last-child {
        order: 2;
        margin-top: 5px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.75rem;
        margin-bottom: 15px;
        line-height: 1.4;
    }
    
    .hero-content .lead {
        font-size: 0.95rem;
        margin-bottom: 20px;
        line-height: 1.6;
    }
    
    .hero-content .animate-buttons {
        justify-content: center;
        margin-top: 20px;
    }
    
    .hero-image {
        margin-top: 0;
    }
    
    .hero-image img.img-fluid {
        max-width: 65% !important;
        width: 65% !important;
    }
}

@media (max-width: 576px) {
    .heroSwiper {
        min-height: 700px !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        padding-top: 80px !important;
        padding-bottom: 60px !important;
        min-height: 700px !important;
        overflow: visible !important;
    }
    
    .hero-slide .col-lg-6:last-child {
        margin-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 18px;
        line-height: 1.6;
    }
    
    .hero-content .badge {
        font-size: 0.7rem;
        padding: 5px 10px !important;
        margin-bottom: 12px;
    }
    
    .hero-content .btn {
        font-size: 0.85rem;
        padding: 10px 18px !important;
    }
    
    .hero-content .animate-buttons {
        gap: 10px !important;
        margin-top: 15px;
    }
    
    .hero-image img.img-fluid {
        max-width: 75% !important;
        width: 75% !important;
    }
}

@media (max-width: 480px) {
    .heroSwiper {
        min-height: 670px !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        padding-top: 70px !important;
        padding-bottom: 55px !important;
        min-height: 670px !important;
        overflow: visible !important;
    }
    
    .hero-slide .col-lg-6:last-child {
        margin-top: 8px;
    }
    
    .hero-content h1 {
        font-size: 1.35rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    
    .hero-content .lead {
        font-size: 0.85rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .hero-content .badge {
        font-size: 0.65rem;
        padding: 4px 8px !important;
        margin-bottom: 10px;
    }
    
    .hero-content .btn {
        font-size: 0.8rem;
        padding: 8px 15px !important;
    }
    
    .hero-image img.img-fluid {
        max-width: 80% !important;
        width: 80% !important;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .heroSwiper {
        min-height: 550px !important;
        overflow: visible !important;
    }
    
    .hero-slide {
        padding-top: 60px !important;
        padding-bottom: 40px !important;
        min-height: 550px !important;
        overflow: visible !important;
    }
    
    .hero-slide .col-lg-6:last-child {
        margin-top: 10px;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .hero-content .lead {
        font-size: 0.9rem;
        margin-bottom: 15px;
        line-height: 1.6;
    }
    
    .hero-content .badge {
        line-height: 1.5;
    }
    
    .hero-image img.img-fluid {
        max-width: 55% !important;
        width: 55% !important;
    }
}

/* Portrait Mobile - Extra height for vertical orientation */
@media (max-width: 768px) and (orientation: portrait) {
    .heroSwiper {
        min-height: 800px !important;
    }
    
    .hero-slide {
        min-height: 800px !important;
        padding-bottom: 80px !important;
    }
}

@media (max-width: 576px) and (orientation: portrait) {
    .heroSwiper {
        min-height: 750px !important;
    }
    
    .hero-slide {
        min-height: 750px !important;
        padding-bottom: 70px !important;
    }
}

@media (max-width: 480px) and (orientation: portrait) {
    .heroSwiper {
        min-height: 720px !important;
    }
    
    .hero-slide {
        min-height: 720px !important;
        padding-bottom: 65px !important;
    }
}
