.custom-slider {
    position: relative;
    width: 100%;
    margin: 50px auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slider-inner {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 20px 0;
}

.main-img,
.side-img {
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.main-img {
    width: 400px;
    height: 500px;
    z-index: 2;
    position: relative;
    /* Added to contain overlay */
}

.slider-caption-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 5;
    transition: all 0.3s ease;
    opacity: 0.9;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.main-img:hover .slider-caption-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.85);
}

.side-img {
    width: 250px;
    height: 350px;
    opacity: 0.5;
    transform: scale(0.8);
    z-index: 1;
}

/* Dots Styling */
.slider-dots {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ccc;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-color);
    width: 30px;
    border-radius: 10px;
}

/* Arrows Styling */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 30px;
    background: white;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
}

.arrow:hover {
    background: var(--accent-color);
    color: white;
}

.left-arrow {
    left: 5%;
}

.right-arrow {
    right: 5%;
}

@media (max-width: 768px) {
    .main-img {
        width: 280px;
        height: 380px;
    }

    .side-img {
        display: none;
    }

    .arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .left-arrow {
        left: 2%;
    }

    .right-arrow {
        right: 2%;
    }
}