/* =========================================================
   MRPSN Component — Section Header
   Shared by widgets that need a polished heading/intro block.
   ========================================================= */

.mrpsn-section-header,
.mrpsn-section-header *,
.mrpsn-section-header *::before,
.mrpsn-section-header *::after {
    box-sizing: border-box;
}

.mrpsn-section-header {
    --msh-primary: var(--mrpsn-blue);
    --msh-primary-rgb: var(--mrpsn-blue-rgb);
    --msh-ink: var(--mrpsn-ink);
    --msh-muted: var(--mrpsn-muted);
    --msh-soft: var(--mrpsn-soft);
    --msh-line: var(--mrpsn-line);

    width: 100%;
    margin: 0 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    direction: rtl;
}

.mrpsn-section-header--center {
    justify-content: center;
    text-align: center;
}

.mrpsn-section-header--start {
    justify-content: flex-start;
}

.mrpsn-section-header__main {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.mrpsn-section-header__accent {
    flex: 0 0 auto;
    width: 7px;
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--msh-primary), rgba(var(--msh-primary-rgb), .35));
    box-shadow: 0 8px 22px rgba(var(--msh-primary-rgb), .18);
}

.mrpsn-section-header__text {
    min-width: 0;
}

.mrpsn-section-header__eyebrow {
    width: fit-content;
    margin: 0 0 6px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 9px;
    border: 1px solid rgba(var(--msh-primary-rgb), .12);
    border-radius: 999px;
    background: rgba(var(--msh-primary-rgb), .07);
    color: var(--msh-primary);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.mrpsn-section-header__eyebrow--icon-only {
    width: 30px;
    height: 30px;
    justify-content: center;
    padding: 0;
}

.mrpsn-section-header__icon,
.mrpsn-section-header__icon i,
.mrpsn-section-header__icon svg {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
}

.mrpsn-section-header__title {
    margin: 0;
    color: var(--msh-ink);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 950;
    line-height: 1.45;
    letter-spacing: -.02em;
}

.mrpsn-section-header__subtitle {
    max-width: 620px;
    margin: 4px 0 0;
    color: var(--msh-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.8;
}

.mrpsn-section-header__link {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    border: 1px solid var(--msh-line);
    color: var(--msh-ink);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    text-decoration: none !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
    transition: transform .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.mrpsn-section-header__link:hover {
    color: var(--msh-primary);
    border-color: rgba(var(--msh-primary-rgb), .24);
    box-shadow: 0 12px 28px rgba(var(--msh-primary-rgb), .10);
    transform: translateY(-1px);
}

.mrpsn-section-header__link:focus-visible {
    outline: 2px solid var(--msh-primary);
    outline-offset: 2px;
}

.mrpsn-section-header__link i {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 767px) {
    .mrpsn-section-header {
        margin-bottom: 14px;
        align-items: flex-start;
        gap: 12px;
    }

    .mrpsn-section-header__main {
        gap: 10px;
    }

    .mrpsn-section-header__accent {
        width: 6px;
        height: 36px;
    }

    .mrpsn-section-header__title {
        font-size: 17px;
    }

    .mrpsn-section-header__subtitle {
        font-size: 12px;
    }

    .mrpsn-section-header__link {
        min-height: 34px;
        padding: 0 10px;
        font-size: 11px;
    }
}
