/* ===== EXTREMELY UNIQUE CSS CLASSES - NO TAILWIND - NO CSS VARIABLES ===== */

.qm-team-ux-section-wrapper-998 {
    padding-top: 96px;
    padding-bottom: 96px;
    padding-left: 16px;
    padding-right: 16px;
    background-color: #f9fafb;
    overflow: hidden;
    transition: background-color 0.3s;
}

@media (min-width: 768px) {
    .qm-team-ux-section-wrapper-998 {
        padding-left: 40px;
        padding-right: 40px;
    }
}

.qm-team-ux-container-998 {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== HEADER LAYOUT ===== */
.qm-team-ux-header-layout-998 {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 64px;
}

@media (min-width: 768px) {
    .qm-team-ux-header-layout-998 {
        flex-direction: row;
        align-items: flex-end;
    }
}

.qm-team-ux-header-text-998 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qm-team-ux-label-998 {
    color: #E03D26;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.qm-team-ux-title-998 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    color: #0f172a;
}

@media (min-width: 768px) {
    .qm-team-ux-title-998 {
        font-size: 48px;
    }
}

.qm-team-ux-description-998 {
    margin: 0;
    color: #6b7280;
    font-weight: 500;
    font-size: 16px;
    max-width: 448px;
    line-height: 1.5;
}

/* ===== GRID SYSTEM ===== */
.qm-team-ux-grid-998 {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    row-gap: 64px;
    column-gap: 32px;
}

@media (min-width: 640px) {
    .qm-team-ux-grid-998 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .qm-team-ux-grid-998 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .qm-team-ux-grid-998 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* ===== TEAM CARD ===== */
.qm-team-ux-card-998 {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.qm-team-ux-card-998:hover .qm-team-ux-img-wrap-998 {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.qm-team-ux-card-998:hover .qm-team-ux-img-998 {
    transform: scale(1.1);
    filter: grayscale(0);
}

.qm-team-ux-card-998:hover .qm-team-ux-overlay-998 {
    opacity: 1;
}

.qm-team-ux-card-998:hover .qm-team-ux-read-btn-wrap-998 {
    transform: translateY(0);
}

.qm-team-ux-card-998:hover .qm-team-ux-name-998 {
    color: #E03D26;
}

.qm-team-ux-img-wrap-998 {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 32px;
    overflow: hidden;
    background-color: #f3f4f6;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qm-team-ux-img-998 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(0.2);
}

.qm-team-ux-overlay-998 {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, rgba(15, 23, 42, 0.8), transparent, transparent);
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.qm-team-ux-read-btn-wrap-998 {
    position: absolute;
    bottom: 24px;
    left: 24px;
    right: 24px;
    transform: translateY(16px);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.qm-team-ux-read-btn-998 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background-color: rgba(224, 61, 38, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 8px 16px;
    border-radius: 9999px;
}

.qm-team-ux-read-btn-icon-998 {
    font-size: 14px !important;
}

.qm-team-ux-info-wrap-998 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.qm-team-ux-name-998 {
    margin: 0;
    font-size: 20px;
    line-height: 28px;
    font-weight: 900;
    color: #0f172a;
    transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.qm-team-ux-role-998 {
    margin: 0;
    color: #E03D26;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ===== MODAL CSS ===== */
.qm-team-ux-modal-open-998 {
    overflow: hidden !important;
    max-width: 100vw !important;
}

.qm-team-ux-modal-open-998 body {
    overflow: hidden !important;
    max-width: 100vw !important;
}

.qm-team-ux-modal-overlay-998 {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    z-index: 99999 !important;
    box-sizing: border-box;
    padding: 16px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.qm-team-ux-modal-backdrop-998 {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s ease;
    cursor: pointer;
}

.qm-team-ux-modal-box-998 {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: calc(100vw - 32px);
    max-width: 420px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(32px) scale(0.97);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
    box-sizing: border-box;
}

.qm-team-ux-modal-img-wrap-998 {
    width: 100%;
    height: 220px;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
    background: #111111;
}

.qm-team-ux-modal-img-998 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.qm-team-ux-modal-img-wrap-998::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
}

.qm-team-ux-modal-content-998 {
    flex: 1;
    padding: 28px 24px 32px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
    background: #ffffff;
}

.qm-team-ux-modal-close-btn-998 {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: all 0.25s ease;
}

.qm-team-ux-modal-close-btn-998:hover {
    background: #E03D26;
    color: #ffffff;
}

.qm-team-ux-modal-body-998 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qm-team-ux-bio-tag-998 {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 9999px;
    background: rgba(224, 61, 38, 0.12);
    color: #E03D26;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.qm-team-ux-modal-name-998 {
    font-size: 1.9rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 12px 0 6px 0;
}

.qm-team-ux-modal-title-998 {
    color: #E03D26;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin: 0;
}

.qm-team-ux-bio-divider-998 {
    height: 2px;
    width: 40px;
    background: #E03D26;
}

.qm-team-ux-modal-text-998 {
    color: #475569;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

.qm-team-ux-social-links-998 {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.qm-team-ux-social-btn-998 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.qm-team-ux-social-btn-998:hover {
    background: #E03D26;
    color: #ffffff;
    border-color: #E03D26;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(224, 61, 38, 0.4);
}

.qm-team-ux-social-btn-998 svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

@media (min-width: 768px) {
    .qm-team-ux-modal-overlay-998 {
        padding: 24px;
    }

    .qm-team-ux-modal-box-998 {
        flex-direction: row;
        max-width: 960px;
        max-height: calc(100vh - 48px);
    }

    .qm-team-ux-modal-img-wrap-998 {
        width: 42%;
        height: auto;
        flex-shrink: 0;
    }

    .qm-team-ux-modal-content-998 {
        padding: 48px 48px 48px 40px;
    }

    .qm-team-ux-modal-close-btn-998 {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        background: #f1f5f9;
        color: #64748b;
    }

    .qm-team-ux-modal-name-998 {
        font-size: 3rem;
    }

    .qm-team-ux-modal-text-998 {
        font-size: 1.05rem;
    }

    .qm-team-ux-modal-body-998 {
        gap: 24px;
    }
}

@media (min-width: 1200px) {
    .qm-team-ux-modal-box-998 {
        max-width: 1100px;
    }

    .qm-team-ux-modal-name-998 {
        font-size: 3.5rem;
    }
}
