/*
Theme Name: Divi Child
Theme URI: https://www.elegantthemes.com/gallery/divi/
Description: Divi Child Theme
Author: Oliver
Author URI: https://edcademy.ai
Template: Divi
Version: 1.0.0
*/

/* ========================================
   Coach Directory Styles
   ======================================== */

.coach-directory-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Filter Buttons */
.coach-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 40px;
    align-items: center;
}

/* Dropdown Styles */
.filter-dropdown-wrapper {
    position: relative;
}

.filter-dropdown {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    border: none;
    padding: 15px 50px 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    color: #333;
    min-width: 200px;
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
}

.filter-dropdown:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.filter-dropdown:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.filter-dropdown.active {
    background-color: #eff6ff;
    border: 2px solid #2563eb;
    color: #2563eb;
    font-weight: 600;
}

.filter-dropdown option {
    padding: 10px;
    font-size: 15px;
}

.filter-actions {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.clear-filters-btn {
    background: white;
    border: 2px solid #e5e7eb;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.clear-filters-btn:hover {
    border-color: #d1d5db;
    background: #f9fafb;
}

.see-results-btn {
    background: #374151;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.see-results-btn:hover {
    background: #1f2937;
    transform: translateY(-2px);
}

/* Coaches Grid */
.coaches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;}

/* Coach Card */
.coach-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.coach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.coach-card.hidden {
    display: none;
}

/* Avatar */
.coach-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
}

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

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Location */
.coach-location {
    font-size: 14px;
    color: #9ca3af;
    margin-bottom: 10px;
}

/* Name */
.coach-name {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 15px 0;
}

/* Badges */
.coach-badges {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Solutions */
.coach-solutions {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 25px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 10px;
}

.coach-solutions strong {
    color: #374151;
}

/* View Profile Button */
.view-profile-btn {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 12px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.view-profile-btn:hover {
    background: #d97706;
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .coach-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-btn {
        flex: 1;
        min-width: 120px;
    }
    
    .filter-actions {
        width: 100%;
        margin-left: 0;
    }
    
    .clear-filters-btn,
    .see-results-btn {
        flex: 1;
    }
    
    .coaches-grid {
        grid-template-columns: repeat(2, 1fr);;
    }
}

/* ========================================
   Coach Slider Styles
   ======================================== */

.coach-slider-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 80px;
}

.coach-slider {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.coach-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.coach-slide.active {
    display: block;
    opacity: 1;
}

.coach-slide-content {
    background: white;
    border-radius: 30px;
    padding: 60px 40px 40px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Avatar */
.coach-slide-avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    border: 8px solid white;
}

.coach-slide-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-slide-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Badge */
.coach-slide-badge {
    font-size: 18px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 10px;
}

/* Name */
.coach-slide-name {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 15px 0 10px 0;
}

/* Location */
.coach-slide-location {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* Solutions */
.coach-slide-solutions {
    font-size: 16px;
    color: #374151;
    margin-bottom: 15px;
    padding: 15px;
    background: #f9fafb;
    border-radius: 12px;
}

/* Year */
.coach-slide-year {
    font-size: 16px;
    color: #374151;
    font-weight: 500;
}

/* Navigation Arrows */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #6b7280;
    color: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.slider-nav:hover {
    background: #4b5563;
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 0;
}

.slider-next {
    right: 0;
}

/* Dots */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #6b7280;
    width: 32px;
    border-radius: 6px;
}

.slider-dot:hover {
    background: #9ca3af;
}

/* Responsive */
@media (max-width: 768px) {
    .coach-slider-wrapper {
        padding: 20px 60px;
    }
    
    .coach-slide-content {
        padding: 40px 20px 30px;
    }
    
    .coach-slide-avatar {
        width: 140px;
        height: 140px;
    }
    
    .coach-slide-name {
        font-size: 24px;
    }
    
    .slider-nav {
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}

/* Hide post meta and sidebar on coach pages */
.single-coach .et_post_meta_wrapper,
.single-coach #sidebar,
.single-coach .post-meta {
    display: none !important;
}

.single-coach #left-area {
    width: 100% !important;
    padding-right: 0 !important;
}

.single-coach .container {
    padding-left: 0;
    padding-right: 0;
}


/* ========================================
   Single Coach Header Styles
   ======================================== */

.coach-single-header {
    position: relative;
    padding: 80px 0 10px;
    overflow: hidden;
}

/* Angled Background */
.coach-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 400px;
    background: url('https://edcademy.ai/wp-content/uploads/2025/10/bg1-scaled.png') center center / cover no-repeat;
    transform: skewY(-6deg);
    transform-origin: top left;
    z-index: 0;
}

.coach-header-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.3); /* White overlay for readability */
}

/* Header Content */
.coach-header-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    gap: 60px;
    align-items: center;
    margin-top: 13em;
}

/* Left Side - Avatar */
.coach-header-left {
    flex-shrink: 0;
    text-align: center;
}

.coach-header-avatar {
    position: relative;
    width: 280px;
    height: 280px;
    margin: 0 auto 30px;
    border-radius: 50%;
    overflow: hidden;
    background: white;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    border: 12px solid white;
}

.coach-header-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-header-avatar .avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Avatar Badges (colored dots) */
.avatar-badges {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.avatar-badge {
    position: absolute;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.avatar-badge.top-left {
    top: 20px;
    left: 20px;
}

.avatar-badge.bottom-left {
    bottom: 20px;
    left: 20px;
}

/* Contact Button */
.coach-contact-btn {
    display: inline-block;
    background: #f59e0b;
    color: white;
    padding: 15px 50px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.coach-contact-btn:hover {
    background: #d97706;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

/* Right Side - Info */
.coach-header-right {
    flex: 1;
}

.coach-header-name {
    font-size: 48px;
    font-weight: 800;
    color: #1f2937;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

/* Badges */
.coach-header-badges {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 18px;
    flex-wrap: wrap;
}

.header-badge-icon {
    font-size: 24px;
}

.header-badge {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Location */
.coach-header-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 20px;
}

.location-icon {
    font-size: 20px;
}

/* Social Links */
.coach-header-social {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 25px;
}

.social-icon {
    font-size: 20px;
    color: #6b7280;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    color: #374151;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Content Area (Divi Builder) */
.coach-content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px 80px;
}

/* Responsive */
@media (max-width: 992px) {
    .coach-header-content {
        flex-direction: column;
        text-align: center;
    }
    
    .coach-header-right {
        text-align: center;
    }
    
    .coach-header-badges,
    .coach-header-location,
    .coach-header-social {
        justify-content: center;
    }
    
    .coach-header-name {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .coach-header-avatar {
        width: 200px;
        height: 200px;
    }
    
    .coach-header-name {
        font-size: 32px;
    }
    
    .coach-header-content {
        padding: 0 20px;
    }
    
    .coach-content-area {
        padding: 0 20px 60px;
    }
}