/* Carousel Styles */
.carousel-section {
    margin-top: -60px;
    background: var(--light-bg);
    position: relative;
    overflow: hidden;
}

.carousel-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.05), rgba(44, 62, 80, 0.05));
    z-index: 1;
}

.carousel-item {
    height: 85vh;
    position: relative;
    padding: 2rem 0;
}

.carousel-text {
    position: relative;
    z-index: 2;
    padding: 3rem;
    background: rgba(27, 43, 75, 0.03);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(255, 127, 80, 0.1);
}

.carousel-text h1 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 3rem;
    text-shadow: none;
}

.carousel-text .lead {
    color: #445577;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.carousel-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image img {
    max-height: 70vh;
    max-width: 100%;
    object-fit: contain;
}

@media (max-width: 991px) {
    .carousel-section {
        margin-top: 0; /* Remove negative margin for mobile */
    }

    .carousel-item {
        height: auto;
        padding: 4rem 0 2rem; /* Increased top padding to prevent navbar overlap */
    }
    
    .carousel-text {
        text-align: center;
        padding: 1.5rem;
        margin-top: 60px; /* Add space for navbar */
    }
    
    .carousel-image {
        margin-top: 1rem;
    }
    
    .carousel-image img {
        max-height: 50vh;
    }

    .carousel-text h1 {
        font-size: 2.2rem; /* Slightly smaller font for mobile */
    }

    .carousel-text .lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .carousel-text {
        padding: 1rem;
        margin-top: 50px;
    }

    .carousel-text h1 {
        font-size: 2rem;
    }

    .carousel-text .lead {
        font-size: 1.1rem;
    }
}