/* Home Page Image Slider Section Styles */

.home-image-slider-section {
    padding: 50px 0; /* Increased from 5px to match other sections */
    overflow: hidden;
    position: relative;
    background: #fff;
}

.home-image-slider-header h2 {
font-family: Montserrat, serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    color: #000;
    font-style: italic;
}

.home-image-slider-wrapper {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    padding: 0 10px;
}

.home-image-slider {
    margin: 0 -10px; /* Adjust for padding on slides */
}

.image-slider-item {
    padding: 0 10px;
    outline: none;
}

.image-slider-card {
    position: relative;
    width: 100%;
    /* Aspect ratio roughly 471/565 = 83.36% */
    padding-bottom: 120%; 
    background: #D9D9D9;
    overflow: hidden;
    border-radius: 4px;
}

.image-slider-card img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-slider-item:hover img {
    transform: scale(1.05);
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.image-slider-item:hover .card-hover-overlay {
    opacity: 1;
}

.hover-rectangle {
    position: absolute;
    left: 0%;
    right: -1.49%;
    top: 70.44%;
    bottom: 0%;
    background: #FFFFFF;
}

.hover-title {
    position: absolute;
    left: 38.85%;
    right: 38.85%;
    top: 72%;
    bottom: 23%;
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    text-align: center;
    text-transform: capitalize;
    color: #000000;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hover-divider {
    position: absolute;
    left: 2.02%;
    right: 2.65%;
    top: 79.5%;
    bottom: 20.5%;
    border: 1px solid #000000;
}

.hover-description {
    position: absolute;
    left: 4.03%;
    right: 2.76%;
    top: 80%;
    bottom: 0%;
    font-family: Montserrat, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    line-height: 25px;
    color: #000000;
    margin: 0;
    overflow: hidden;
}

/* Slick Arrows Styling to match UI */
.home-image-slider-wrapper .slick-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; /* Smaller as per Figma */
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    z-index: 10;
    cursor: pointer;
    font-size: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.home-image-slider-wrapper .slick-arrow:hover {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.home-image-slider-wrapper .prev-arrow {
    left: 20px;
}

.home-image-slider-wrapper .next-arrow {
    right: 20px;
}

/* Custom SVG-like arrows for better quality */
.home-image-slider-wrapper .slick-arrow::before {
    content: '';
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
    display: block;
}

.home-image-slider-wrapper .prev-arrow::before {
    transform: rotate(-45deg);
    margin-left: 3px;
}

.home-image-slider-wrapper .next-arrow::before {
    transform: rotate(135deg);
    margin-right: 3px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .home-image-slider-section {
        padding: 40px 0 60px;
    }
    .hover-title {
        font-size: 20px;
        line-height: 28px;
    }
    .hover-description {
        font-size: 14px;
        line-height: 20px;
    }
}

@media (max-width: 768px) {
    .image-slider-card {
        padding-bottom: 125%;
    }
    .home-image-slider-wrapper .slick-arrow {
        width: 35px;
        height: 35px;
        background: rgba(255, 255, 255, 0.95);
    }
    .home-image-slider-wrapper .prev-arrow {
        left: 10px;
    }
    .home-image-slider-wrapper .next-arrow {
        right: 10px;
    }
    .hover-rectangle {
        top: 65%;
    }
    .hover-title {
        font-size: 18px;
        line-height: 24px;
        top: 67%;
        bottom: 28%;
    }
    .hover-divider {
        top: 75%;
        bottom: 24.5%;
    }
    .hover-description {
        font-size: 13px;
        line-height: 18px;
        top: 77%;
        bottom: 2%;
        padding: 0 5%;
    }
}

@media (max-width: 480px) {
    .home-image-slider-section {
        padding: 30px 0 50px;
    }
    .hover-rectangle {
        top: 60%;
    }
    .hover-title {
        top: 62%;
        bottom: 33%;
    }
    .hover-divider {
        top: 70%;
        bottom: 29.5%;
    }
    .hover-description {
        top: 72%;
    }
}
