/* carousel.css */
.carousel-wrapper {
    position: relative;
    margin-top: -1px; /* Remove gap between nav and carousel */
}

.carousel-container {
    position: relative;
    height: 80vh;
    max-height: 800px;
    min-height: 400px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    height: 100%;
    width: 100%;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-caption {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    padding: 2rem;
    color: white;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.carousel-caption h3 {
    font-size: 3rem;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgb(0 0 0 / 74%);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 2rem;
}

.carousel-next {
    right: 2rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    position: absolute;
    bottom: 2rem;
    left: 0;
    right: 0;
    z-index: 10;
}

.carousel-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-dot.active,
.carousel-dot:hover {
    background-color: white;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .carousel-container {
        height: 60vh;
        max-height: 600px;
    }
    
    .carousel-caption h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: 50vh;
        max-height: 500px;
    }
    
    .carousel-caption {
        padding: 1.5rem;
    }
    
    .carousel-caption h3 {
        font-size: 2rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        height: 40vh;
        max-height: 400px;
    }
    
    .carousel-caption {
        padding: 1rem;
        width: 95%;
    }
    
    .carousel-caption h3 {
        font-size: 1.5rem;
    }
    
    .carousel-prev,
    .carousel-next {
        width: 36px;
        height: 36px;
    }
    
    .carousel-prev {
        left: 1rem;
    }
    
    .carousel-next {
        right: 1rem;
    }
}

.section-padding {
    min-height: 200px; /* Default height ~400px + 200px increase */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.section-padding .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.section-padding .row {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.section-padding .col-lg-8 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-padding h2,
.section-padding p,
.section-padding a {
    text-align: center;
}