/* Ensure the carousel is centered and spans the full width */
.carousel-container {
    width: 100vw;
    /* Full viewport width */
    max-width: 100%;
    /* Prevent any constraints */
    margin: 0 auto;
    /* Center the carousel */
    padding: 0;
    position: relative;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 500px;
    width: 100%;
    /* Ensure the inner carousel spans the full width */
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    transition: opacity 0.3s ease;
}

.carousel-slide.active {
    opacity: 1;
}

.project-banner {
    width: 100%;
    height: 100%;
    position: relative;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 20px;
    max-width: 400px;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.project-info h2 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #000;
}

.project-info p {
    margin-bottom: 15px;
    color: #000;
}

.project-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.project-links a {
    padding: 8px 12px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.project-links a:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.carousel-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    pointer-events: auto;
    z-index: 2;
    color: #000;
    font-size: 24px;
    font-weight: normal;
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 30px;
    display: flex;
    gap: 8px;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.carousel-indicator.active {
    background-color: rgba(255, 255, 255, 1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel {
        height: 400px;
    }

    .project-info {
        bottom: 15px;
        right: 15px;
        max-width: 80%;
        padding: 15px;
    }

    .carousel-button {
        width: 40px;
        height: 40px;
    }

    .carousel-prev {
        left: 10px;
    }

    .carousel-next {
        right: 10px;
    }
}