/**
 * Instructor Carousel Styles
 */

.mie-instructor-carousel-wrapper {
    position: relative;
    width: 100%;
    margin: 40px 0;
}

.mie-instructor-carousel {
    position: relative;
    overflow: hidden;
}

.mie-instructor-card {
    position: relative;
    height: 100%;
}

.mie-instructor-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.mie-instructor-card-image {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    overflow: hidden;
    border-radius: 8px;
    background: #f0f0f0;
}

.mie-instructor-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mie-instructor-card-link:hover .mie-instructor-card-image img {
    transform: scale(1.05);
}

.mie-instructor-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
    padding: 60px 20px 20px;
    color: #fff;
    transition: padding 0.3s ease;
}

.mie-instructor-card-link:hover .mie-instructor-card-overlay {
    padding: 80px 20px 20px;
}

.mie-instructor-prefix {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 5px;
    opacity: 0.9;
}

.mie-instructor-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.2;
    color: #fff;
    text-transform: uppercase;
}

.mie-instructor-description {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    opacity: 0.9;
}

/* Navigation Buttons */
.mie-carousel-nav-prev,
.mie-carousel-nav-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mie-carousel-nav-prev:hover,
.mie-carousel-nav-next:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mie-carousel-nav-prev {
    left: 10px;
}

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

.mie-carousel-nav-prev::after,
.mie-carousel-nav-next::after {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .mie-instructor-name {
        font-size: 20px;
    }
    
    .mie-instructor-description {
        font-size: 13px;
    }
    
    .mie-carousel-nav-prev,
    .mie-carousel-nav-next {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .mie-instructor-name {
        font-size: 18px;
    }
    
    .mie-instructor-card-overlay {
        padding: 40px 15px 15px;
    }
    
    .mie-carousel-nav-prev {
        left: 5px;
    }
    
    .mie-carousel-nav-next {
        right: 5px;
    }
}

/* --- Style: Peterson Academy (New) --- */
.mie-carousel-container.style-peterson .mie-instructor-card {
    width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.mie-carousel-container.style-peterson .mie-instructor-card:hover {
    transform: translateY(-5px);
}

.mie-carousel-container.style-peterson .mie-instructor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding-bottom: 0; /* Override default 1:1 aspect ratio */
    border-radius: 0; /* Override default */
}

.mie-carousel-container.style-peterson .mie-instructor-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mie-carousel-container.style-peterson .mie-instructor-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 2;
    padding: 0; /* Reset padding */
}

.mie-carousel-container.style-peterson .mie-instructor-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    z-index: 3;
    text-align: left;
}

.mie-carousel-container.style-peterson .mie-instructor-prefix {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
    opacity: 1;
}

.mie-carousel-container.style-peterson .mie-instructor-name {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: #fff;
}

.mie-carousel-container.style-peterson .mie-instructor-description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    max-height: 4.2em; /* Show max 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    opacity: 0.9;
}

/* Navigation Arrows - Using Swiper's default classes for simplicity */
.mie-carousel-container.style-peterson .swiper-button-next,
.mie-carousel-container.style-peterson .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s;
    z-index: 10;
}

.mie-carousel-container.style-peterson .swiper-button-next:hover,
.mie-carousel-container.style-peterson .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.mie-carousel-container.style-peterson .swiper-button-next:after,
.mie-carousel-container.style-peterson .swiper-button-prev:after {
    font-size: 18px;
}

/* Swiper Overrides for this style */
.mie-carousel-container.style-peterson .swiper-slide {
    width: 300px; /* Match card width */
}


/* --- Style: Peterson Academy (New) --- */
.mie-carousel-container.style-peterson .mie-instructor-card {
    width: 300px;
    height: 450px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.mie-carousel-container.style-peterson .mie-instructor-card:hover {
    transform: translateY(-5px);
}

.mie-carousel-container.style-peterson .mie-instructor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding-bottom: 0; /* Override default 1:1 aspect ratio */
    border-radius: 0; /* Override default */
}

.mie-carousel-container.style-peterson .mie-instructor-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mie-carousel-container.style-peterson .mie-instructor-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 50%);
    z-index: 2;
    padding: 0; /* Reset padding */
}

.mie-carousel-container.style-peterson .mie-instructor-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    color: #fff;
    z-index: 3;
    text-align: left;
}

.mie-carousel-container.style-peterson .mie-instructor-prefix {
    display: block;
    font-size: 14px;
    font-weight: 400;
    text-transform: uppercase;
    margin-bottom: 5px;
    line-height: 1.2;
    opacity: 1;
}

.mie-carousel-container.style-peterson .mie-instructor-name {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 10px 0;
    line-height: 1.1;
    color: #fff;
}

.mie-carousel-container.style-peterson .mie-instructor-description {
    font-size: 14px;
    font-weight: 300;
    line-height: 1.4;
    max-height: 4.2em; /* Show max 3 lines */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    opacity: 0.9;
}

/* Navigation Arrows - Using Swiper's default classes for simplicity */
.mie-carousel-container.style-peterson .swiper-button-next,
.mie-carousel-container.style-peterson .swiper-button-prev {
    color: #fff;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    transition: background-color 0.3s;
    z-index: 10;
}

.mie-carousel-container.style-peterson .swiper-button-next:hover,
.mie-carousel-container.style-peterson .swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.mie-carousel-container.style-peterson .swiper-button-next:after,
.mie-carousel-container.style-peterson .swiper-button-prev:after {
    font-size: 18px;
}

/* Swiper Overrides for this style */
.mie-carousel-container.style-peterson .swiper-slide {
    width: 300px; /* Match card width */
}
