.qm-team {
    background: #f6f4f2;
    color: #2d3137;
    font-family: "Cairo", sans-serif;
}

.qm-team h1,
.qm-team h2,
.qm-team h4,
.qm-team p,
.qm-team a {
    font-family: "Cairo", sans-serif;
}

.qm-team-hero {
    display: flex;
    direction: ltr;
    min-height: 560px;
    background: #161616;
}

.qm-team-photo {
    flex: 0 0 42%;
    max-width: 42%;
    background: #111;
}

.qm-team-photo img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    object-position: center top;
}

.qm-team-intro {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    padding: 56px 8vw 56px 48px;
    color: #fff;
}

html[dir="rtl"] .qm-team-intro {
    direction: rtl;
    text-align: right;
}

html[dir="ltr"] .qm-team-intro {
    direction: ltr;
    padding: 56px 48px 56px 8vw;
    text-align: left;
}

.qm-team-kicker {
    margin: 0 0 14px;
    color: #ffb819;
    font-size: 15px;
    font-weight: 700;
}

.qm-team-kicker span {
    display: inline-block;
    width: 42px;
    height: 2px;
    margin-inline-end: 12px;
    background: #ce021d;
    vertical-align: middle;
}

.qm-team-intro h1 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 46px;
    font-weight: 800;
    line-height: 1.35;
}

.qm-team-name {
    margin: 0 0 8px;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
}

.qm-team-role {
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.qm-team-profile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 26px;
    padding: 0 22px;
    border-radius: 12px;
    background: #ce021d;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.qm-team-profile:hover,
.qm-team-profile:focus {
    background: #fff;
    color: #ce021d;
    text-decoration: none;
}

.qm-team-body {
    padding: 56px 0 72px;
}

.qm-team-section {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 18px;
    max-width: 920px;
    margin: 0 auto 28px;
    padding: 28px 28px 18px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(22, 22, 22, 0.05);
}

.qm-team-num {
    color: #ce021d;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.qm-team-section h2 {
    margin: 0 0 12px;
    color: #1c1c1c;
    font-size: 28px;
    font-weight: 800;
}

.qm-team-section p {
    margin: 0 0 14px;
    color: #3a3f45;
    font-size: 17px;
    line-height: 1.95;
}

@media (max-width: 767px) {
    .qm-team-hero {
        display: block;
    }

    .qm-team-photo {
        max-width: none;
    }

    .qm-team-photo img {
        min-height: 360px;
        height: 360px;
    }

    .qm-team-intro,
    html[dir="ltr"] .qm-team-intro {
        padding: 32px 20px 36px;
    }

    .qm-team-intro h1 {
        font-size: 32px;
    }

    .qm-team-section {
        grid-template-columns: 1fr;
        padding: 22px 18px 10px;
    }
}
