/* ===== COACH PAGE STYLES ===== */

/* Hero Banner */
#top-hero-banner-section {
    height: 380px !important;
    min-height: unset !important;
    background: linear-gradient(rgba(0,0,0,0.315), rgba(0,0,0,0.363)),
                url('../mc-images/coachbg.jpg') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

#animated-background-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(102,126,234,0.3), transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(118,75,162,0.3), transparent 50%);
    animation: pulseEffect 8s ease-in-out infinite;
}

@keyframes pulseEffect {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.05); }
}

#hero-text-content-wrapper {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

#main-hero-heading {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero-subtitle-text {
    font-size: 1.1rem;
    opacity: 0.85;
    letter-spacing: 1px;
    color: #fff;
}

/* ===== Search Bar ===== */
#location-dropdown-search {
    padding: 0;
    background: transparent;
}

.search-container {
    background-color: #1a1a1a;
    padding: 20px;
    display: flex;
    justify-content: center;
    margin: 40px auto;
    max-width: 800px;
    border-radius: 12px;
}

.search-input-group {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
}

#search-text-input {
    flex: 1 1 220px;
    padding: 12px 18px;
    height: 46px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #f0f0f0;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s;
}

#search-text-input::placeholder { color: rgba(255,255,255,0.4); }
#search-text-input:focus { border-color: #667eea; }

.dropdown-select {
    flex: 1 1 160px;
    padding: 12px 14px;
    height: 46px;
    border: 1px solid #444;
    border-radius: 8px;
    background-color: #2c2c2c;
    color: #f0f0f0;
    font-size: 0.95rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
    -webkit-appearance: none;
    appearance: none;
}

.dropdown-select option { background: #1a1a1a; color: #f0f0f0; }
.dropdown-select:focus { border-color: #667eea; }
.dropdown-select:disabled { opacity: 0.45; cursor: not-allowed; }

.search-button,
#dropdown-search-btn {
    padding: 12px 28px;
    height: 46px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.search-button:hover,
#dropdown-search-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== COACHES MAIN LAYOUT ===== */
#coaches-main-layout {
    background: #0a0a0a;
    color: #ffffff;
    padding: 5rem 0;
}

.container-coaches {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 24px;
}

.row-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ===== LEFT: Coach Cards ===== */
.left-coach-section {
    flex: 0 0 70%;
    margin-top: 104px;
}

#section-title-area {
    text-align: center;
    margin-bottom: 4rem;
}

#coaches-main-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#title-divider-line {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #f7971e, #ffd200);
    border-radius: 2px;
    margin: 1rem auto 0;
}

.left-coach-section .row.g-5 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
    padding: 0;
}

.coach-card {
    width: 100%;
}

/* ===== Professional Coach Card ===== */
.professional-coach-card {
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.professional-coach-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(102,126,234,0.3);
}

.card-top-accent-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.professional-coach-card:hover .card-top-accent-line {
    transform: scaleX(1);
}

.profile-image-container {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    flex-shrink: 0;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.professional-coach-card:hover .profile-image-container img {
    transform: scale(1.06);
}

.rating-overlay-display {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    color: #ffc107;
    padding: 1.5rem;
    font-size: 0.85rem;
    letter-spacing: 3px;
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.professional-coach-card:hover .rating-overlay-display {
    transform: translateY(0);
}

.coach-info-section {
    padding: 18px 16px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.professional-name-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #f7971e, #ffd200);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.specialty-field-display {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #aaa;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

.specialty-field-display i { color: #667eea; font-size: 0.8rem; }

.professional-bio-text {
    font-size: 0.82rem;
    color: #bbb;
    line-height: 1.55;
    margin-bottom: 14px;
    flex: 1;
}

.connect-cta-button {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.2s;
    letter-spacing: 0.3px;
}

.connect-cta-button:hover { opacity: 0.88; transform: scale(1.02); }

/* ===== RIGHT: Sidebar ===== */
.right-sidebar-section {
    flex: 0 0 30%;
    flex-shrink: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.288);
    color: #fff;
    padding: 30px;
    margin-top: 104px;
}

.sidebar-widget {
    margin-bottom: 28px;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    padding-bottom: 10px;
    margin-bottom: 16px;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(90deg, #667eea, #764ba2) 1;
}

.recent-post {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.recent-post:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.recent-post img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-post div p {
    font-size: 0.82rem;
    color: #ddd;
    margin-bottom: 4px;
    line-height: 1.4;
}

.recent-post div span { font-size: 0.75rem; color: #aaa; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-cloud span {
    padding: 5px 12px;
    background: rgba(255,255,255,0.08);
    border-radius: 20px;
    font-size: 0.78rem;
    color: #ccc;
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    border: 1px solid rgba(255,255,255,0.15);
}

.tag-cloud span:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-color: transparent;
}

.sidebar-widget p {
    font-size: 0.85rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .left-coach-section .row.g-5 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .row-layout { flex-direction: column; }
    .left-coach-section,
    .right-sidebar-section { flex: 0 0 100%; width: 100%; margin-top: 0; }
}

@media (max-width: 576px) {
    .left-coach-section .row.g-5 { grid-template-columns: 1fr; }
    #main-hero-heading { font-size: 2.5rem; }
    .search-input-group { flex-direction: column; }
    #search-text-input, .dropdown-select, .search-button, #dropdown-search-btn { width: 100%; flex: none; }
    .search-container { margin: 20px 16px; }
}
