/* Image Carousel Styles */
.image-carousel {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    max-height: 500px; /* Maximum height */
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
    width: 100%;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain to show full image */
    display: block;
    max-height: 100%;
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 20px;
    text-align: center;
}

.carousel-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    box-sizing: border-box;
    z-index: 2;
}

.carousel-nav button {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-nav button:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.1);
}

.carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 2;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #3B82F6;
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .image-carousel {
        max-width: 100%;
        margin: 2rem auto;
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    .image-carousel {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .image-carousel {
        max-height: 250px;
    }
    
    .carousel-caption h3 {
        font-size: 1rem;
    }
    
    .carousel-caption p {
        font-size: 0.8rem;
    }
}

/* Animation for slide transition */
@keyframes fadeIn {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.carousel-slide {
    animation: fadeIn 0.5s ease-in-out;
}

/* Manpower Carousel Styles */
.manpower-carousel {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}
.manpower-slides {
    display: flex;
    width: 100%;
    height: 100%;
}
.manpower-slide {
    min-width: 100%;
    position: relative;
}
.manpower-slide img {
    transition: transform 0.5s ease;
}
.manpower-carousel:hover .manpower-slide:not(:hover) img {
    transform: scale(1.03);
}
.manpower-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #1e40af;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.manpower-carousel:hover .manpower-arrow {
    opacity: 1;
}
.manpower-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}
.manpower-arrow i {
    font-size: 1.25rem;
}
.left-4 {
    left: 1rem;
}
.right-4 {
    right: 1rem;
}
.manpower-dots {
    z-index: 10;
}
.manpower-dots button {
    transition: all 0.3s ease;
}
.manpower-dots button.active {
    background: white;
    transform: scale(1.2);
}
.manpower-dots button:not(.active):hover {
    background: rgba(255, 255, 255, 0.8);
}
