.slider-section {
    padding: 50px 0;
    text-align: center;
}

.slider-container {
    position: relative;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    border-radius: 15px; /* Slightly more rounded corners */
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); /* Add a subtle shadow */
}

.slide {
    display: none; /* Hide slides by default */
    min-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Fade animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {opacity: .4}
  to {opacity: 1}
}


.slide img {
    width: 100%;
    display: block;
    border-radius: 15px;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent); /* Gradient background */
    padding: 40px 20px 20px; /* More padding */
    border-radius: 0 0 15px 15px;
    font-size: 1.3rem;
    text-align: left;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Center vertically */
    width: 50px; /* Set a fixed width */
    height: 50px; /* Set a fixed height */
    line-height: 50px; /* Center icon vertically */
    text-align: center; /* Center icon horizontally */
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 50%; /* Make it a circle */
    user-select: none;
    background-color: rgba(0,0,0,0.4);
}

.prev {
    left: 15px; /* Position from left */
}

.next {
    right: 15px; /* Position from right */
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}
