
/* =====================================================
   MOSTPLAY PARTNERS — GENERAL PAGE
   About Us reference layout
===================================================== */

.mp-general-page {
    --mp-general-navy: #10143b;
    --mp-general-blue: #0055d9;
    --mp-general-text: #65708e;
    --mp-general-line: #e7e9f0;
    --mp-general-info-bg: #eaf4ff;

    width: 100%;
    min-height: 60vh;
    padding: 52px 20px 80px;
    background: #ffffff;
    color: var(--mp-general-navy);
}

.mp-general-page *,
.mp-general-page *::before,
.mp-general-page *::after {
    box-sizing: border-box;
}

.mp-general-container {
    width: min(100%, 1090px);
    margin: 0 auto;
}

/* =====================================================
   1. PAGE TITLE AND SUBTITLE
===================================================== */

.mp-general-header {
    margin: 0 auto 34px;
    text-align: center;
}

.mp-general-header__title {
    margin: 0 0 12px;
    color: var(--mp-general-navy);
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1.4px;
}

.mp-general-header__subtitle {
    margin: 0 auto;
    max-width: 720px;
    color: var(--mp-general-text);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
}

/* =====================================================
   2. NAVIGATION TABS
===================================================== */

.mp-general-tabs__nav {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    border-bottom: 1px solid var(--mp-general-line);
}

.mp-general-tabs__button {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    margin: 0 32px 0 0;
    padding: 13px 2px 16px;

    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;

    color: #4e5975;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;

    cursor: pointer;
    transition: color 0.2s ease;
}

.mp-general-tabs__button:hover,
.mp-general-tabs__button:focus-visible {
    color: var(--mp-general-blue);
    background: transparent;
}

.mp-general-tabs__button.is-active,
.mp-general-tabs__button[aria-selected="true"] {
    color: var(--mp-general-blue);
    font-weight: 700;
}

.mp-general-tabs__button.is-active::after,
.mp-general-tabs__button[aria-selected="true"]::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--mp-general-blue);
}

.mp-general-tabs__button:focus-visible {
    outline: 2px solid var(--mp-general-blue);
    outline-offset: -4px;
}

/* =====================================================
   3. TAB PANELS AND CONTENT AREA
===================================================== */

.mp-general-tabs__panel {
    padding-top: 34px;
}

.mp-general-tabs__panel[hidden] {
    display: none !important;
}

.mp-general-tabs__content {
    margin-bottom: 26px;
    color: var(--mp-general-text);
    font-size: 15px;
    line-height: 1.8;
}

.mp-general-tabs__content > :first-child {
    margin-top: 0;
}

.mp-general-tabs__content > :last-child {
    margin-bottom: 0;
}

.mp-general-tabs__content h2,
.mp-general-tabs__content h3 {
    margin: 24px 0 12px;
    color: var(--mp-general-navy);
    font-weight: 800;
    line-height: 1.3;
}

.mp-general-tabs__content h2 {
    font-size: 25px;
}

.mp-general-tabs__content h3 {
    font-size: 21px;
}

.mp-general-tabs__content p {
    margin: 0 0 15px;
}

.mp-general-tabs__content a,
.mp-general-section__body a {
    color: var(--mp-general-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* =====================================================
   4. MAIN CONTENT SECTIONS
===================================================== */

.mp-general-sections {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.mp-general-section {
    width: 100%;
}

.mp-general-section__label {
    margin: 0 0 9px;
    color: var(--mp-general-blue);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.mp-general-section__heading {
    margin: 0 0 14px;
    color: var(--mp-general-navy);
    font-size: clamp(23px, 2.5vw, 28px);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.mp-general-section__body {
    color: var(--mp-general-text);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.mp-general-section__body p {
    margin: 0 0 14px;
}

.mp-general-section__body p:last-child {
    margin-bottom: 0;
}

.mp-general-section__body ul,
.mp-general-section__body ol {
    padding-left: 24px;
    margin: 10px 0 16px;
}

.mp-general-section__body li {
    margin-bottom: 7px;
}

/* =====================================================
   5. IMPORTANT INFORMATION CALLOUT
===================================================== */

.mp-general-info {
    display: flex;
    align-items: flex-start;
    gap: 18px;

    margin-top: 36px;
    padding: 23px 25px;

    border-radius: 9px;
    background: var(--mp-general-info-bg);
}

.mp-general-info__icon {
    display: flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;
}

.mp-general-info__icon img {
    display: block;
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.mp-general-info__content {
    flex: 1;
    min-width: 0;
}

.mp-general-info__heading {
    margin: 0 0 9px;
    color: var(--mp-general-blue);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.mp-general-info__description {
    margin: 0;
    color: var(--mp-general-text);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.7;
}

/* =====================================================
   6. TABLET
===================================================== */

@media (max-width: 900px) {

    .mp-general-page {
        padding: 42px 24px 65px;
    }

    .mp-general-container {
        max-width: 760px;
    }

    .mp-general-header {
        margin-bottom: 28px;
    }

    .mp-general-header__title {
        font-size: 42px;
    }

    .mp-general-tabs__button {
        margin-right: 27px;
        font-size: 14px;
    }

    .mp-general-tabs__panel {
        padding-top: 28px;
    }

    .mp-general-section__heading {
        font-size: 25px;
    }

    .mp-general-sections {
        gap: 30px;
    }
}

/* =====================================================
   7. MOBILE
===================================================== */

@media (max-width: 600px) {

    .mp-general-page {
        padding: 32px 16px 55px;
    }

    .mp-general-container {
        width: 100%;
    }

    .mp-general-header {
        margin-bottom: 25px;
    }

    .mp-general-header__title {
        margin-bottom: 10px;
        font-size: 34px;
        line-height: 1.18;
        letter-spacing: -0.8px;
    }

    .mp-general-header__subtitle {
        max-width: 330px;
        font-size: 14px;
        line-height: 1.55;
    }

    /* Horizontally scrollable tabs on small screens */
    .mp-general-tabs__nav {
        gap: 22px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mp-general-tabs__nav::-webkit-scrollbar {
        display: none;
    }

    .mp-general-tabs__button {
        flex: 0 0 auto;
        min-height: 48px;
        margin: 0;
        padding: 11px 1px 13px;
        font-size: 13px;
    }

    .mp-general-tabs__panel {
        padding-top: 24px;
    }

    .mp-general-tabs__content {
        font-size: 14px;
        line-height: 1.75;
    }

    .mp-general-sections {
        gap: 28px;
    }

    .mp-general-section__label {
        margin-bottom: 7px;
        font-size: 11px;
    }

    .mp-general-section__heading {
        margin-bottom: 11px;
        font-size: 22px;
        line-height: 1.3;
    }

    .mp-general-section__body {
        font-size: 14px;
        line-height: 1.75;
    }

    .mp-general-section__body p {
        margin-bottom: 12px;
    }

    .mp-general-info {
        gap: 12px;
        margin-top: 30px;
        padding: 18px 16px;
        border-radius: 8px;
    }

    .mp-general-info__icon {
        flex-basis: 24px;
        width: 24px;
        height: 24px;
    }

    .mp-general-info__icon img {
        width: 24px;
        height: 24px;
    }

    .mp-general-info__heading {
        font-size: 15px;
    }

    .mp-general-info__description {
        font-size: 13px;
        line-height: 1.65;
    }
}

/* =====================================================
   8. REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .mp-general-tabs__button {
        transition: none;
    }
}


/* ==========================================
   GENERAL PAGE — FIX OVERVIEW CONTENT WIDTH
   Desktop and mobile
========================================== */

/* Allow Overview sections to use full width */
.mp-general-page .mp-general-sections,
.mp-general-page .mp-general-section,
.mp-general-page .mp-general-section__body {
    width: 100% !important;
    max-width: none !important;
}

/* Remove width restrictions on Overview paragraphs */
.mp-general-page .mp-general-section__body p {
    width: 100% !important;
    max-width: none !important;
}

/* Prevent inherited narrow column layouts */
.mp-general-page .mp-general-section__body {
    display: block !important;
    column-count: 1 !important;
}

/* Match the width of other tab panels */
.mp-general-page .mp-general-tabs__panel,
.mp-general-page .mp-general-tabs__panels {
    width: 100% !important;
    max-width: none !important;
}



/* ==========================================
   GENERAL PAGE — OVERVIEW TEXT WRAPPING FIX
========================================== */

.mp-general-page .mp-general-section__body {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
}

.mp-general-page .mp-general-section__body p {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
}

/* Ignore manually inserted line breaks */
.mp-general-page .mp-general-section__body br {
    display: none !important;
}




/* ==========================================
   GENERAL PAGE — ALL 3 TABS CONTENT WIDTH
   Desktop: 80% / Mobile: 100%
========================================== */

@media (min-width: 901px) {

    /* Apply to content inside all three tabs */
    .mp-general-page .mp-general-tabs__panel > .mp-general-tabs__content,
    .mp-general-page .mp-general-tabs__panel > .mp-general-sections,
    .mp-general-page .mp-general-tabs__panel > .mp-general-info {
        width: 80% !important;
        max-width: 80% !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }

}

/* Keep mobile and tablet content full width */
@media (max-width: 900px) {

    .mp-general-page .mp-general-tabs__panel > .mp-general-tabs__content,
    .mp-general-page .mp-general-tabs__panel > .mp-general-sections,
    .mp-general-page .mp-general-tabs__panel > .mp-general-info {
        width: 100% !important;
        max-width: 100% !important;
    }

}