/* Swiper Slide Flex Stretch for Equal Heights */
.swiper-slide {
    height: auto !important;
    display: flex;
}

/* Card Container Styles */
.elementskit-single-team-member {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    
    /* Flexbox setup to stretch cards equally */
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Image 250px x 250px with 10% border-radius */
.elementskit-team-image-box {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}

.elementskit-team-image-box img {
    width: 250px !important;
    height: 250px !important;
    max-width: 100%;
    border-radius: 10% !important;
    object-fit: cover;
    display: block;
}

/* Content Container & Equal Height Fixes */
.elementskit-team-content {
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Fixed Height for Person Title (handles up to 3 lines cleanly) */
.profile-title {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    text-decoration: none;
    line-height: 1.3;
    min-height: 48px; /* Standardized title block height */
    margin-bottom: 6px;
}

/* Fixed Height for Designation */
.profile-designation {
    font-size: 12px;
    color: #666666;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-height: 32px; /* Standardized designation block height */
    line-height: 1.2;
}

/* Push Footer Button to Bottom */
.elementskit-team-footer {
    margin-top: auto; /* Keeps all buttons aligned at the bottom */
    padding-top: 15px;
}

/* Button Styling */
.ekit-team-btn {
    display: inline-block;
    padding: 8px 18px;
    background-color: #ba8042;
    color: #ffffff !important;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ekit-team-btn:hover {
    background-color: #a06c35;
    transform: translateY(-1px);
}

/* Position Navigation Arrows Closer to Cards */
.elementskit-team-slider {
    position: relative;
    padding: 0 35px; /* Creates tighter padding for arrows */
}

.swiper-button-prev.ekit-team-prev::after,
.swiper-button-next.ekit-team-next::after {
    display: none !important;
}

.ekit-team-prev,
.ekit-team-next {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
}

/* Position left and right arrows closer */
.ekit-team-prev {
    left: 0px !important;
}

.ekit-team-next {
    right: 0px !important;
}

.ekit-team-prev svg,
.ekit-team-next svg {
    width: 36px;
    height: 36px;
    fill: #ba8042;
    transition: fill 0.2s ease;
}

.ekit-team-prev:hover svg,
.ekit-team-next:hover svg {
    fill: #a06c35;
}

/* Modal Styling */
.ekit-team-modal {
    position: relative;
    background: #fff;
    padding: 40px;
    width: auto;
    max-width: 850px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.ekit-team-modal-inner {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.ekit-team-modal-image {
    flex: 0 0 35%;
}

.ekit-team-modal-image img {
    width: 100%;
    border-radius: 10%;
}

.ekit-team-modal-info {
    flex: 1;
}

.ekit-team-modal-title {
    margin-top: 0;
    font-size: 26px;
    margin-bottom: 5px;
}

.ekit-team-modal-designation {
    font-size: 15px;
    color: #777;
    display: block;
    margin-bottom: 20px;
}

.ekit-team-modal-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

@media (max-width: 767px) {
    .ekit-team-modal-inner {
        flex-direction: column;
    }
    .ekit-team-modal-image {
        width: 100%;
    }
}

/* Magnific Popup Fade Scale Effect */
.mfp-fade-in-scale.mfp-bg {
    opacity: 0;
    transition: all 0.3s ease-out;
}
.mfp-fade-in-scale.mfp-bg.mfp-ready {
    opacity: 0.8;
}
.mfp-fade-in-scale.mfp-bg.mfp-removing {
    opacity: 0;
}
.mfp-fade-in-scale .zoom-anim-dialog {
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: scale(0.8);
}
.mfp-fade-in-scale.mfp-ready .zoom-anim-dialog {
    opacity: 1;
    transform: scale(1);
}
.mfp-fade-in-scale.mfp-removing .zoom-anim-dialog {
    transform: scale(0.8);
    opacity: 0;
}