/* Talent Carousel Styles */

/* Hero Background Carousel - ensure parent section has positioning context */
.et_pb_section:has(.ne-hero-carousel) {
    position: relative;
    /* No min-height - let content determine height naturally */
}

.et_pb_row:has(.ne-hero-carousel) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1;
}

.et_pb_column:has(.ne-hero-carousel) {
    padding: 0 !important;
}

.ne-talent-carousel-wrapper.ne-hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    z-index: 1;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-carousel {
    height: 100%;
    max-width: none;
    padding: 0;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-slide {
    height: 100%;
    padding: 0;
    text-align: center;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-headshot {
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: none;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-headshot:hover img {
    transform: none;
}

.ne-talent-carousel-wrapper.ne-hero-carousel .ne-talent-name {
    display: none;
}

/* Standard Carousel Styles (if used elsewhere) */
.ne-talent-carousel-wrapper:not(.ne-hero-carousel) {
    margin: 40px 0;
    padding: 20px 0;
    background: #f5f5f5;
}

.ne-talent-carousel-wrapper:not(.ne-hero-carousel) .ne-talent-carousel {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.ne-talent-carousel-wrapper:not(.ne-hero-carousel) .ne-talent-slide {
    padding: 15px;
    text-align: center;
}

.ne-talent-carousel-wrapper:not(.ne-hero-carousel) .ne-talent-headshot {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ne-talent-carousel-wrapper:not(.ne-hero-carousel) .ne-talent-headshot img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ne-talent-carousel-wrapper:not(.ne-hero-carousel) .ne-talent-headshot:hover img {
    transform: scale(1.05);
}

.ne-talent-name {
    margin-top: 15px;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Slick carousel customization */
.ne-talent-carousel .slick-dots {
    bottom: -35px;
}

.ne-talent-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #666;
}

.ne-talent-carousel .slick-dots li.slick-active button:before {
    color: #333;
}

.ne-talent-carousel .slick-prev,
.ne-talent-carousel .slick-next {
    z-index: 10;
}

.ne-talent-carousel .slick-prev {
    left: -10px;
}

.ne-talent-carousel .slick-next {
    right: -10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ne-talent-carousel {
        padding: 0 40px;
    }

    .ne-talent-name {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .ne-talent-carousel-wrapper {
        display: none; /* Hide on mobile per spec */
    }
}
