/* File: responsive-slider.css */
/* Hero Slider Responsive Styles - Improved for Mobile */
.hero-slider-section {
    position: relative;
    margin-bottom: 40px;
    width: 100%;
    overflow: hidden;
}

.hero-slider {
    position: relative;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    z-index: 1;
    overflow: hidden;
}

.slide.active {
    opacity: 1;
    z-index: 2;
}

.slide-inner {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    width: 90%;
    max-width: 800px;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    z-index: 3;
    box-sizing: border-box;
}

.slide-title {
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
    width: 100%;
    display: block;
    word-wrap: break-word;
    text-align: center;
}

.slide-title span {
    color: #f78fb3;
    font-weight: 700;
}

.slide-description {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 25px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    line-height: 1.5;
    width: 100%;
    display: block;
    word-wrap: break-word;
    text-align: center;
}

.slide-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(to right, #f78fb3, #b197fc);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    border: none;
    margin-top: 10px;
    word-wrap: break-word;
    word-break: keep-all;
    white-space: normal;
    max-width: 100%;
    text-align: center;
}

.slide-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

/* Slider Navigation */
.slider-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 5;
    transform: translateY(-50%);
    box-sizing: border-box;
}

.prev-slide, .next-slide {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-slide:hover, .next-slide:hover {
    background-color: rgba(255, 255, 255, 0.5);
    transform: scale(1.1);
}

.prev-slide i, .next-slide i {
    font-size: 1.5rem;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.slider-dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background-color: #fff;
    transform: scale(1.2);
}

/* Ensure slide height is set properly */
.hero-slider::before {
    content: "";
    display: block;
    width: 100%;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    pointer-events: none;
}

.hero-slider-section,
.hero-slider,
.slide,
.slide-inner {
    min-height: 300px; /* Minimum height */
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .slide-inner {
        padding-bottom: 56.25%; /* Maintain aspect ratio */
        height: 0;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 12px;
    }
    
    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .slide-content {
        padding: 25px;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .slide-inner {
        height: 0; /* Reset fixed height */
        padding-bottom: 66.67%; /* 3:2 aspect ratio - better for mobile */
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    
    .slide {
        height: auto; /* Let the padding-bottom control height */
        padding-bottom: 66.67%; /* Match the slide-inner */
    }
    
    .slide-content {
        width: 92%;
        padding: 20px;
        max-width: 92%;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.6rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .slide-description {
        font-size: 1rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    .slide-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .prev-slide, .next-slide {
        width: 40px;
        height: 40px;
    }
    
    .prev-slide i, .next-slide i {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .hero-slider-section {
        margin-bottom: 30px;
    }
    
    .hero-slider {
        border-radius: 8px;
    }
    
    .slide-inner {
        height: 0; /* Reset fixed height */
        padding-bottom: 75%; /* 4:3 aspect ratio for smaller screens */
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        background-size: cover;
        background-position: center;
    }
    
    .slide {
        height: auto;
        padding-bottom: 75%; /* Match the slide-inner */
    }
    
    .slide-content {
        width: 92%;
        padding: 15px;
        max-width: 92%;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.4rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .slide-description {
        font-size: 0.9rem;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .slide-btn {
        padding: 8px 18px;
        font-size: 0.85rem;
        display: inline-block;
        text-align: center;
    }
    
    .slider-nav {
        padding: 0 10px;
    }
    
    .prev-slide, .next-slide {
        width: 35px;
        height: 35px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
}

/* Additional mobile fixes */
@media (max-width: 480px) {
    .slide-inner {
        height: 0;
        padding-bottom: 75%; /* 4:3 aspect ratio - better for small screens */
        width: 100%;
        background-size: cover;
        background-position: center;
    }
    
    .slide {
        height: auto;
        padding-bottom: 75%; /* Match the slide-inner */
    }
    
    .slide-content {
        width: 94%;
        max-width: 94%;
        padding: 12px;
        text-align: center;
    }
    
    .slide-title {
        font-size: 1.2rem;
        margin-bottom: 6px;
        text-align: center;
    }
    
    .slide-description {
        font-size: 0.85rem;
        margin-bottom: 8px;
        text-align: center;
    }
    
    .slide-btn {
        padding: 7px 15px;
        font-size: 0.8rem;
        text-align: center;
    }
    
    /* Ensure slider controls are always visible but smaller */
    .prev-slide, .next-slide {
        width: 30px;
        height: 30px;
    }
    
    .prev-slide i, .next-slide i {
        font-size: 1rem;
    }
    
    /* Adjust dots position */
    .slider-dots {
        bottom: 10px;
    }
    
    .slider-dot {
        width: 6px;
        height: 6px;
    }
}