.coach-bio-toggle {
    display: inline-block;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    color: blue;
    text-decoration: underline;
}

.coach-about {
    margin-bottom: 20px;
}

.coach-card {
    padding: 10px 40px 30px;
}

.pt-coach-cta {
    cursor: pointer;
    display: flex;
    margin: 20px auto;
    color: white;
    background-color: var(--green);
    text-decoration: none;
    padding: 14px 28px;
    width: fit-content;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    border-radius: var(--cta-radius);
    box-shadow: rgba(255, 255, 255, 0.16) 0px 1px 4px;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out;
}

.pt-coach-cta:hover {
    transform: scale(1.05);
}

/* Role Tabs Styling */
.pt-coach-role-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 30px 20px;
    justify-content: center;
}

.pt-coach-role-tab {
    background-color: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    outline: none;
}

.pt-coach-role-tab:hover {
    background-color: #e8e8e8;
    border-color: #bbb;
}

.pt-coach-role-tab.active {
    background-color: var(--green);
    color: white;
    border-color: var(--green);
}

.pt-coach-role-tab.active:hover {
    background-color: var(--green);
    border-color: var(--green);
}

/* Single Coach View Header */
.pt-coach-single-view-header {
    margin: 30px 0;
    text-align: center;
}

.pt-coach-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pt-coach-back-link:hover {
    color: #555;
    text-decoration: underline;
}

.pt-coach-back-link i {
    font-size: 14px;
}

/* Coach Name Link Styles */
.pt-coach-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pt-coach-name-link:hover {
    color: var(--green);
    text-decoration: none;
}

/* Coach Profile Styles */
.coach-profile-full-width {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.coach-profile-container {
    margin: 0 auto;
    width: 100%;
    background-color: #fff;
}

.coach-profile {
    padding: 50px 100px 60px;
    max-width: 1600px;
    margin: 0 auto;
}

/* Header Title Section */
.coach-profile-header-title {
    text-align: left;
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.coach-profile-header-title h2.pt-coach-name {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
}

.coach-profile-header-title h3.pt-coach-title {
    font-size: 24px;
    font-weight: 400;
    margin-bottom: 8px;
    color: #666;
}

.coach-profile-header-title .pt-coach-roles {
    font-size: 18px;
    color: #555;
    margin-top: 12px;
    margin-bottom: 8px;
    font-weight: 500;
}

/* Certification Badges */
.pt-cert-badges {
    display: flex !important;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    margin-bottom: 6px;
}

.pt-card-coach-info .pt-cert-badges {
    margin-top: 2px;
}

.pt-cert-badge {
    display: inline-flex !important;
    align-items: center;
    border-radius: 100px;
    font-size: 12px;
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
}

.pt-cert-badge__stars {
    padding: 5px 8px;
    font-weight: 600;
    color: #fff;
    letter-spacing: 1px;
    font-size: 0.85em;
    border-radius: 100px 0 0 100px;
    align-self: stretch;
    display: flex;
    align-items: center;
}

.pt-cert-badge__level {
    padding: 5px 12px 5px 6px;
    font-weight: 500;
}

/* Level 1 – entry level (green) */
.pt-cert-badge--level-1 {
    background-color: #e8f5e9;
    border: 1.5px solid #4a8c5c;
}
.pt-cert-badge--level-1 .pt-cert-badge__stars {
    background-color: #4a8c5c;
}
.pt-cert-badge--level-1 .pt-cert-badge__level {
    color: #2e6335;
}

/* Level 2 – mid level (blue) */
.pt-cert-badge--level-2 {
    background-color: #e3f2fd;
    border: 1.5px solid #1565c0;
}
.pt-cert-badge--level-2 .pt-cert-badge__stars {
    background-color: #1565c0;
}
.pt-cert-badge--level-2 .pt-cert-badge__level {
    color: #0d47a1;
}

/* Level 3 – top level (gold) */
.pt-cert-badge--level-3 {
    background-color: #fff8e1;
    border: 1.5px solid #b8860b;
}
.pt-cert-badge--level-3 .pt-cert-badge__stars {
    background-color: #b8860b;
}
.pt-cert-badge--level-3 .pt-cert-badge__level {
    color: #8b6914;
}

/* NCCP – neutral */
.pt-cert-badge--nccp {
    background-color: #f0f0f0;
    border: 1.5px solid #666;
}
.pt-cert-badge--nccp .pt-cert-badge__stars {
    background-color: #666;
}
.pt-cert-badge--nccp .pt-cert-badge__level {
    color: #444;
}

/* Profile header badge sizing */
.coach-profile-header-title .pt-cert-badges {
    margin-top: 14px;
}
.coach-profile-header-title .pt-cert-badge {
    font-size: 13px;
}
.coach-profile-header-title .pt-cert-badge__stars {
    padding: 6px 9px;
}
.coach-profile-header-title .pt-cert-badge__level {
    padding: 6px 12px 6px 9px;
}

/* Compact badges (group class cards) */
.pt-cert-badges--compact {
    margin-top: 2px;
    gap: 4px;
}
.pt-cert-badges--compact .pt-cert-badge {
    font-size: 10px;
}
.pt-cert-badges--compact .pt-cert-badge__stars {
    padding: 3px 5px;
}
.pt-cert-badges--compact .pt-cert-badge__level {
    padding: 3px 7px 3px 5px;
}

/* Main Grid Layout */
.coach-profile-main-grid {
    display: grid;
    grid-template-columns: 450px 1fr;
    gap: 80px;
    margin-bottom: 50px;
}

/* Image Column */
.coach-profile-image-column {
    /* No sticky positioning */
}

.coach-profile-headshot__container {
    width: 100%;
    position: relative;
}

.coach-profile-headshot-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: block;
}

.coach-profile-logo-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    object-fit: contain;
    background-color: rgba(0, 0, 0, 0.85);
    border-radius: 8px 0 12px 0;
    padding: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Content Column */
.coach-profile-content-column {
    min-width: 0;
}

.coach-section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
    border-bottom: 2px solid #ddd;
    padding-bottom: 8px;
    display: inline-block;
}

.coach-about {
    margin-bottom: 35px;
}

.coach-profile-bio p {
    margin-bottom: 15px;
    line-height: 1.7;
    font-size: 16px;
    color: #444;
}

/* Credentials */
.coach-credentials {
    margin-bottom: 35px;
}

.coach-credentials ul {
    list-style: disc;
    padding-left: 20px;
}

.coach-credentials li {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* Metadata Section */
.coach-profile-metadata {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
}

.coach-metadata-item {
    margin-bottom: 12px;
    font-size: 15px;
}

.coach-metadata-item:last-child {
    margin-bottom: 0;
}

.coach-metadata-item strong {
    display: inline-block;
    min-width: 140px;
    color: #333;
}

.coach-metadata-item span {
    color: #555;
}

/* CTA Section */
.coach-profile-cta-section {
    margin-top: 50px;
    text-align: center;
}

.coach-profile-cta-section .coach-section-title {
    display: block;
    text-align: center;
    margin: 0 auto 25px;
}

.coach-profile-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* Coach Card CTA - smaller to avoid text wrapping */
.pt-coach-card-cta {
    font-size: 15px;
    padding: 12px 24px;
}

/* View Profile Button Styling */
.pt-coach-profile-btn {
    background-color: var(--green);
    margin-top: 10px;
}

/* Responsive Styles */

/* Large tablet breakpoint */
@media (max-width: 1200px) {
    .coach-profile {
        padding: 45px 60px 55px;
    }

    .coach-profile-main-grid {
        grid-template-columns: 380px 1fr;
        gap: 60px;
    }
}

/* Tablet breakpoint - adjust grid for medium screens */
@media (max-width: 1024px) {
    .coach-profile {
        padding: 40px 40px 50px;
    }

    .coach-profile-main-grid {
        grid-template-columns: 340px 1fr;
        gap: 50px;
    }

    .coach-profile-header-title h2.pt-coach-name {
        font-size: 36px;
    }

    .coach-profile-header-title h3.pt-coach-title {
        font-size: 22px;
    }
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    .pt-coach-role-tabs {
        gap: 8px;
    }

    .pt-coach-role-tab {
        padding: 10px 18px;
        font-size: 14px;
    }

    /* Coach Profile Mobile Styles */
    .coach-profile {
        padding: 30px 20px;
    }

    .coach-profile-header-title {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .coach-profile-header-title h2.pt-coach-name {
        font-size: 28px;
    }

    .coach-profile-header-title h3.pt-coach-title {
        font-size: 18px;
    }

    .coach-profile-main-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .coach-profile-image-column {
        position: static;
        text-align: center;
    }

    .coach-profile-headshot__container {
        max-width: 300px;
        margin: 0 auto;
    }

    .coach-profile-logo-overlay {
        width: 50px;
        height: 50px;
        padding: 6px;
        bottom: 0;
        right: 0;
    }

    .coach-section-title {
        font-size: 18px;
    }

    .coach-profile-bio p {
        font-size: 15px;
    }

    .coach-metadata-item strong {
        min-width: 120px;
        font-size: 14px;
    }

    .coach-metadata-item {
        font-size: 14px;
    }

    .coach-profile-cta-section {
        margin-top: 35px;
        padding-top: 30px;
    }

    .coach-profile-cta-buttons {
        flex-direction: column;
    }

    .coach-profile-cta-buttons .pt-coach-cta {
        width: 100%;
        max-width: 300px;
    }
}

/* ── Loading spinner ── */
.pt-coaches-loading {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 60px 0;
}

.pt-coaches-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: pt-coaches-spin 0.6s linear infinite;
}

@keyframes pt-coaches-spin {
    to { transform: rotate(360deg); }
}