/* Start custom CSS for section, class: .elementor-element-1ae8c59e *//* Target the specific container holding your 2 cards */
.elementor-21291 .elementor-element.elementor-element-1ae8c59e .elementor-container {
    max-width: 850px !important; /* Adjust this: smaller number = cards closer together */
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex !important;
    justify-content: center !important;
}

/* Remove extra padding that Elementor adds to columns */
.elementor-21291 .elementor-element.elementor-element-1ae8c59e .elementor-column-gap-default > .elementor-column > .elementor-element-populated {
    padding-left: 10px !important;
    padding-right: 10px !important;
}

/* Force the cards to align to the inner edges */
.elementor-21291 .elementor-element.elementor-element-1ae8c59e .elementor-column:first-child .coach-card-single {
    margin-right: 10px !important;
    margin-left: auto !important;
}

.elementor-21291 .elementor-element.elementor-element-1ae8c59e .elementor-column:last-child .coach-card-single {
    margin-left: 10px !important;
    margin-right: auto !important;
}

/* Ensure they stack properly on mobile */
@media (max-width: 767px) {
    .elementor-21291 .elementor-element.elementor-element-1ae8c59e .elementor-container {
        max-width: 100% !important;
    }
    .elementor-21291 .elementor-element.elementor-element-1ae8c59e .coach-card-single {
        margin: 15px auto !important;
    }
}/* End custom CSS */
/* Start custom CSS *//* --- MASTER COACH CARD STYLES --- */
.coach-card-single {
    width: 100%;
    max-width: 380px; 
    height: 550px;
    perspective: 2000px;
    font-family: -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
    margin: 20px auto;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Desktop 2-column override */
.elementor-column .coach-card-single { max-width: 420px; }

/* HOVER POP EFFECT */
.coach-card-single:hover {
    transform: translateY(-8px) scale(1.02);
}

.coach-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    transform-style: preserve-3d;
}

.coach-card-single.active-flip .coach-card-inner {
    transform: rotateY(180deg);
}

.coach-card-front, .coach-card-back {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: box-shadow 0.4s ease;
}

.coach-card-front img { width: 100%; height: 100%; object-fit: cover; }

/* CLICK HINT */
.coach-card-front::after {
    content: "Click to View Bio";
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 0.7;
    z-index: 10;
}

.coach-info-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 80px 25px 55px; 
    background: linear-gradient(to top, rgba(0,0,0,0.95) 25%, rgba(0,0,0,0.4), transparent);
    color: white;
    text-align: left;
}

.coach-name { font-size: 24px; font-weight: 800; margin-bottom: 8px; }

/* QUALIFICATIONS - CHANGED TO NON-CAPS */
.coach-qual-list { display: flex; flex-direction: column; gap: 4px; }
.coach-qual-list span {
    font-size: 11px;
    color: #00C6FF;
    font-weight: 600;
    text-transform: none; /* This removes the ALL CAPS */
    letter-spacing: 0.3px;
    line-height: 1.3;
}

/* Back Side (Blue Glass) */
.coach-card-back {
    background: rgba(248, 250, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    color: #1d1d1f;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    padding: 35px 25px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.back-content { width: 100%; }
.back-name { 
    font-size: 22px; font-weight: 800; margin-bottom: 15px; text-align: center;
    border-bottom: 1px solid rgba(0, 122, 255, 0.08); padding-bottom: 12px;
}

.back-scroll-area { max-height: 400px; overflow-y: auto; padding-right: 12px; }
.back-scroll-area::-webkit-scrollbar { width: 3px; }
.back-scroll-area::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 10px; }
.back-bio { font-size: 14px; line-height: 1.6; color: #3a3a3c; font-weight: 500; }

/* --- MOBILE STABILIZER --- */
@media (max-width: 767px) {
    .coach-card-single, 
    .elementor-column .coach-card-single { 
        width: 85vw !important; 
        max-width: 340px !important; 
        height: 500px !important;
        margin: 20px auto !important;
    }
    
    .back-scroll-area { 
        max-height: 340px !important;
    }

    .coach-name { font-size: 20px !important; }
}/* End custom CSS */