/* Trainers Page Styles */

.trainers-hero {
    padding: 2rem 0 0 0;
    max-width: 1224px;
    text-align: center;
    margin: auto auto 3rem auto;
    width: 95%;
}

.trainers-section {
    margin: 0 0 3rem 0;
}

.trainers-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.trainer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4rem;
    width: 100%;
}

.trainer:last-child {
    margin-bottom: 0;
}

.trainer:nth-child(odd) .trainer-image {
    order: 1;
}

.trainer:nth-child(even) .trainer-image {
    order: 2;
}

.trainer .trainer-info {
    order: 1;
    width: 46%;
    max-width: 542px;
}

.trainer-image {
    width: 46%;
    max-width: 542px;
}

.trainer-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    overflow: hidden;
}

.trainer-name {
    font-weight: 700;
    margin-bottom: 1px;
}

.trainer-title {
    color: #F58549;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
}

.trainer-description {
    line-height: 1.6;
}

.expand-btn {
    display: none;
}

@media (min-width: 1440px) {
    .trainers-hero {
        margin-bottom: 0;
    }
}

/* Media Queries for Mobile */
@media (max-width: 768px) {

    .trainers-hero {
        width: 100%;
    }

    .trainers-hero .section-title {
        margin: 0 auto;
        width: 90%;
    }

    .trainers-section {
        margin: 0 0 2.5rem 0;
    }

    .trainers-grid {
        flex-direction: column;
        gap: 3.5rem;
    }

    .trainer .trainer-image {
        order: 1;
    }

    .trainer .trainer-info {
        order: 2;
    }

    .trainer {
        width: 100%;
        flex-direction: column;
        margin-bottom: 0;
    }

    .trainer-name {
        margin-top: 0;
    }

    .trainer-title {
        margin-bottom: 0;
    }

    .trainer-image {
        width: 90%;
        margin-right: 0;
        margin-bottom: 0.4rem;
    }

    .trainer .trainer-info {
        width: 90%;
        text-align: left;
    }

    .trainer-description .expanded-text {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease-in-out;
    }

    .trainer-description .expanded-text.expanded {
        max-height: 1000px;
    }

    .trainer-description .expanded-text.expanded p {
        margin-top: 0;
    }

    .expand-btn {
        display: flex;
        background-color: transparent;
        color: #F58549;
        border: none;
        text-align: left;
        padding-left: 0;
    }

    .chevron {
        width: 0.4rem;
        height: 0.4rem;
        border-left: 2px solid #F58549;
        border-bottom: 2px solid #F58549;
        transform: rotate(-45deg);
        transition: transform 0.3s ease;
        margin-left: 0.7rem;
        margin-top: 3.5px;
    }

    .expand-btn.expanded .chevron {
        transform: rotate(135deg);
        margin-top: 7px;
    }
}