/* Custom Styles */
.slider-container {
    height: 80vh;
    overflow: hidden !important;
    position: relative;
}

.flexslider {
    margin: 0;
    border: none;
    background: transparent;
    position: relative;
    height: 100%;
}

.slides,
.slides li {
    height: 100%;
    position: relative;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay styling */
.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
    z-index: 2;
}

/* Vertical pagination */
.flex-control-nav {
    width: auto;
    position: absolute;
    bottom: auto;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.flex-control-paging li {
    margin: 5px 0;
}

.flex-control-paging li a {
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    width: 12px;
    height: 12px;
}

.flex-control-paging li a.flex-active {
    background: rgba(255, 255, 255, 0.9);
}

/* Left-aligned caption styling */
.slider-caption {
    position: absolute;
    bottom: 50%;
    left: 10%;
    right: 40%;
    color: white;
    text-align: left;
    z-index: 5;
    padding: 0;
    width: 600px;
}

.slider-caption h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: #fff;
    margin-bottom: 0;
}

.slider-caption p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #fff;
}

/* Fixed navigation controls */
.slider-controls {
    position: absolute;
    bottom: 15%;
    left: 10%;
    z-index: 10;
    display: flex;
    align-items: center;
}

.custom-nav {
    display: flex;
    gap: 10px;
}

.custom-nav a {
    display: block;
    width: 50px;
    height: 50px;
    margin-top: 0;
    text-align: center;
    margin-right: 10px;
    background-image: none !important;
    background-color: white;
    border-radius: 50%;
    outline: none;
    cursor: pointer;
}

.custom-nav a:hover {
    /* background: rgba(0, 0, 0, 0.8); */
}

.custom-nav a span {
    font-size: 1.5rem;
    line-height: 50px;
    color: black;
}

/* Slide counter */
.slide-counter {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    min-width: 60px;
    text-align: center;
    margin-left: 10px;
    display: inline-block;
}

/* Progress bar */
.progress-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.3);
    z-index: 9;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: rgba(255, 255, 255, 0.9);
    transition: width 0.1s ease-in-out;
}

/* Hide default FlexSlider navigation */
.flex-direction-nav {
    display: none !important;
}

@media (max-width: 992px) {
    .slider-caption {
        right: 20%;
    }

    .slider-caption h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .slider-caption {
        bottom: 25%;
        right: 15%;
    }

    .slider-controls {
        bottom: 18%;
    }

    .slider-caption h2 {
        font-size: 1.8rem;
    }

    .slider-caption p {
        font-size: 1rem;
    }

    .custom-nav a {
        width: 35px;
        height: 35px;
        line-height: 35px;
    }

    .custom-nav a span {
        font-size: 20px;
        line-height: 35px;
    }

    .flex-control-nav {
        right: 10px;
    }
}

@media (max-width: 576px) {
    .slider-container {
        height: auto;
        overflow: hidden;
        position: relative;
    }

    .slider-caption {
        bottom: 20%;
        left: 5%;
        right: 15%;
    }

    .slider-controls {
        bottom: 12%;
        left: 5%;
    }

    .slider-caption h2 {
        font-size: 1.4rem;
        margin-bottom: 8px;
    }

    .slider-caption p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .custom-nav a {
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .custom-nav a span {
        font-size: 18px;
        line-height: 30px;
    }

    .slide-counter {
        font-size: 12px;
        min-width: 50px;
        padding: 4px 8px;
    }
}
