﻿.coach-card {
    margin-bottom: 30px;
    cursor: pointer;
}

.coach-card .card {
    width: 100%;
    height: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.3s;
    position: relative;
}

.coach-card .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.coach-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.coach-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.coach-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
    padding: 20px 15px;
    text-align: left;
}

.coach-name {
    font-size: 2.3rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.coach-location {
    font-size: 1.4rem;
    margin-top: 5px;
    font-weight: 500;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    text-align: left;
}

.coach-verified {
    background-color: #4caf50;
    color: white;
    font-size: 0.9rem;
    padding: 3px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 10px;
}

.coach-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.coach-branches {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.5rem;
    text-align: left;
}

.coach-branches svg,
.coach-locations svg {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    color: #0078d4;
    flex-shrink: 0;
}

.coach-locations {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 1.5rem;
    text-align: left;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.coach-rating {
    display: flex;
    align-items: center;
    font-size: 1.9rem;
    font-weight: 600;
}

    .coach-rating svg {
        color: #ffc107;
        margin-right: 5px;
        width: 28px;
        height: 28px;
    }

.review-count {
    margin-left: 5px;
    opacity: 0.9;
}

.coach-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0078d4;
    text-align: right;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s;
    z-index: 10;
}

.favorite-btn:hover {
    transform: scale(1.1);
}

.favorite-btn svg {
    width: 24px;
    height: 24px;
}

/* Use the Tailwind CSS classes on the SVG elements */
.w-8 {
    width: 2rem;
}

.h-8 {
    height: 2rem;
}

.text-blue-500 {
    color: #3b82f6;
}

/* Responsive styles */
@media (max-width: 991px) {
    .coach-image {
        height: 240px;
    }
    
    .coach-name {
        font-size: 1.8rem;
    }
    
    .coach-location {
        font-size: 1.25rem;
    }
    
    .coach-details {
        padding: 16px;
    }
    
    .coach-branches, 
    .coach-locations {
        font-size: 1.05rem;
    }
    
    .coach-branches svg,
    .coach-locations svg,
    .w-8, .h-8 {
        width: 20px;
        height: 20px;
    }
    
    .coach-price {
        font-size: 1.4rem;
    }
    
    .coach-rating {
        font-size: 1.4rem;
    }
    
    .coach-rating svg {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 767px) {
    .coach-image {
        height: 220px;
    }
    
    .coach-details {
        padding: 14px;
    }
    
    .coach-name {
        font-size: 1.6rem;
    }
    
    .coach-location {
        font-size: 1.15rem;
    }
    
    .coach-rating {
        font-size: 1.2rem;
    }
    
    .coach-rating svg {
        width: 22px;
        height: 22px;
    }
    
    .coach-price {
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .coach-card {
        padding-left: 10px;
        padding-right: 10px;
    }
}
