/* slider-styles.css */
.acf-slider-container {
    position: relative;
    max-width: 100%;
    overflow: hidden;
    margin: 0 auto;
    height: 60vh;
    min-height: 650px;
}

.acf-slider {
    width: 100%;
    height: 100%;
}

.acf-slide {
    width: 100%;
    height: 100%; /* Adjust as needed */
    overflow: hidden;
}

.acf-slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.acf-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.acf-slide-content {
    position: relative;
    width: 42%;
    max-width: 600px;
    padding: 2rem 4rem;
    margin-left: auto;
    margin-right: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 2;
    height: 100%;
}
.home .acf-slide-content {
    width: 50%;
}
.home h2.acf-slide-title {
    font-size: 2.3rem;
}
.acf-slide-title {
    font-size: 3.2rem;
    color: #4a6d9d;
    overflow: hidden;
    line-height: 1.1;
}

.acf-slide-title .title-line {
    overflow: hidden;
    display: block;
}

.acf-slide-description {
    font-size: 1rem;
    margin-bottom: 2rem;
    color: #333;
}

.acf-slide-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.acf-slide-button {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: #A8BE57;
    color: #000;
    text-decoration: none;
    border-radius: 0;
    transition: background-color 0.3s ease;
    font-size: 1rem;
}
.acf-slide-buttons a:first-child {
    background: #fff;
}
.btn, .acf-slide-button:hover {
    background-color: #709630;
}
.overlay {
    width: 100%;
    position: absolute;
    bottom: 0;
    z-index: 99;
    margin-bottom: -17px;
}
/* Swiper specific styles */
.acf-slider-nav {
    position: absolute;
    bottom: 15%;
    width: 100%;
    display: flex;
    align-items: center;
    z-index: 10;
}
.swiper-button-prev.prev-slide {
    left: auto;
    right: 15%;
}
.swiper-button-next.next-slide {
    right: calc(15% - 50px);
}
.swiper-pagination {
    position: absolute;
    bottom: 0;
    left: auto !important;
    right: 42%;
    width: auto !important;
}
.swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background-color: white;
}

.swiper-button-prev, .swiper-button-next {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease;
    margin: 0 10px;
    top: auto;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 18px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Fade effect overrides */
.swiper-fade .swiper-slide {
    pointer-events: none;
    transition-property: opacity;
}

.swiper-fade .swiper-slide-active {
    pointer-events: auto;
}

/* Responsive styles */
@media (max-width: 768px) {
    .acf-slide {
        height: auto;
        min-height: 100vh;
    }
    
    .acf-slide-image {
        position: relative;
        height: 100vh;
    }
    
  .acf-slide-content {
    width: 100% !important;
    max-width: 100%;
    margin: 0;
    padding: 2rem 1.5rem;
    position: absolute;
    top: 0;
    height: 70%;
}
    
.acf-slide-title {
    font-size: 2rem;
    text-shadow: 2px 2px 9px rgb(255 255 255 / 80%);
}
    
    .swiper-button-prev,
    .swiper-button-next {
        width: 35px;
        height: 35px;
    }
    
    .swiper-button-prev:after,
    .swiper-button-next:after {
        font-size: 16px;
    }
}