.sbn-wrap,
.sbn-wrap * {
    box-sizing: border-box;
}

.sbn-wrap {
    --sbh-blue: #1d6fd6;
    --sbh-pink: #ff5fa2;
    --sbh-navy: #14335a;
    --sbh-soft-blue: #eef7ff;
    --sbh-border: #cfe7ff;
    --sbh-text: #22324a;
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 12px 34px;
    color: var(--sbh-text);
    font-family: inherit;
}

.sbn-wrap .sbh-hero {
    background: linear-gradient(135deg, var(--sbh-blue) 0%, #4e9af4 52%, var(--sbh-pink) 100%);
    border-radius: 28px;
    padding: 30px 24px;
    color: #fff;
    box-shadow: 0 16px 42px rgba(29, 111, 214, 0.22);
    overflow: hidden;
    position: relative;
}

.sbn-wrap .sbh-hero:after {
    content: "";
    position: absolute;
    right: -60px;
    top: -80px;
    width: 220px;
    height: 220px;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 999px;
}

.sbn-wrap .sbh-hero-text {
    position: relative;
    z-index: 1;
}

.sbn-wrap .sbh-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(2rem, 7vw, 3.4rem);
    line-height: 1.02;
    font-weight: 900;
}

.sbn-wrap .sbh-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(1rem, 3.4vw, 1.28rem);
    line-height: 1.45;
    max-width: 720px;
    font-weight: 400;
}

.sbn-wrap .sbh-intro-card {
    margin: 18px 0;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--sbh-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 51, 90, 0.08);
    line-height: 1.55;
    font-weight: 650;
}

.sbn-body {
    margin: 0;
}

.sbn-category-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}

.sbn-category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 16px;
    background: #fff;
    color: var(--sbh-navy) !important;
    text-decoration: none !important;
    text-align: center;
    font-size: 0.94rem;
    line-height: 1.2;
    font-weight: 900;
    border: 1px solid var(--sbh-border);
    box-shadow: 0 10px 30px rgba(20, 51, 90, 0.08);
}

.sbn-category-button:hover,
.sbn-category-button:focus {
    color: var(--sbh-navy) !important;
    text-decoration: none !important;
    filter: brightness(1.02);
}

.sbn-category-button.is-active {
    background: linear-gradient(135deg, var(--sbh-blue), var(--sbh-pink));
    color: #fff !important;
    border-color: transparent;
    box-shadow: 0 12px 26px rgba(29, 111, 214, 0.2);
}

.sbn-news-section {
    margin: 0;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--sbh-border);
    box-shadow: 0 12px 34px rgba(20, 51, 90, 0.08);
}

.sbn-section-heading {
    display: block;
    margin: 0 0 16px;
}

.sbn-section-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 0 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff1f7;
    color: #b61c63;
    border: 1px solid #ffd0e4;
    font-weight: 800;
    font-size: 0.78rem;
    line-height: 1.2;
    letter-spacing: 0.02em;
    text-transform: none;
}

.sbn-section-heading h3 {
    margin: 0 0 8px;
    color: var(--sbh-navy);
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.12;
    font-weight: 900;
}

.sbn-section-heading p:not(.sbn-section-kicker) {
    margin: 0;
    line-height: 1.5;
    color: #52647d;
    font-size: 0.98rem;
}

.sbn-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sbn-news-card {
    display: flex;
    flex-direction: column;
    min-height: 238px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--sbh-border);
    box-shadow: 0 12px 34px rgba(20, 51, 90, 0.08);
}

.sbn-card-topline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
    color: #52647d;
    font-size: 0.82rem;
    line-height: 1.2;
    font-weight: 700;
}

.sbn-source {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--sbh-soft-blue);
    color: var(--sbh-navy);
    border: 1px solid var(--sbh-border);
    font-weight: 800;
    font-size: 0.78rem;
}

.sbn-news-card h4 {
    margin: 0 0 8px;
    color: var(--sbh-navy);
    font-size: 1.16rem;
    line-height: 1.22;
    font-weight: 900;
}

.sbn-news-card p {
    margin: 0 0 18px;
    line-height: 1.5;
    color: #52647d;
    font-size: 0.98rem;
}

.sbn-wrap .sbh-open-button,
.sbn-read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--sbh-blue), var(--sbh-pink));
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 900;
    border: 0;
    box-shadow: 0 12px 26px rgba(29, 111, 214, 0.2);
    padding: 11px 16px;
    font-size: 0.98rem;
    line-height: 1.2;
}

.sbn-wrap .sbh-open-button:hover,
.sbn-wrap .sbh-open-button:focus,
.sbn-read-more:hover,
.sbn-read-more:focus {
    color: #fff !important;
    text-decoration: none !important;
    filter: brightness(1.03);
}

.sbn-friendly-message {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 18px;
    background: #fff;
    border: 1px solid var(--sbh-border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(20, 51, 90, 0.08);
    color: var(--sbh-text);
    font-size: 0.98rem;
    line-height: 1.5;
}

.sbn-friendly-message strong {
    color: var(--sbh-navy);
}

.sbn-story-section {
    padding: 18px;
}

.sbn-back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 14px;
    padding: 9px 13px;
    border: 1px solid var(--sbh-border);
    border-radius: 16px;
    background: #fff;
    color: var(--sbh-navy) !important;
    font-size: 0.92rem;
    font-weight: 900;
    text-decoration: none !important;
    box-shadow: 0 10px 30px rgba(20, 51, 90, 0.08);
}

.sbn-back-link:hover,
.sbn-back-link:focus {
    color: var(--sbh-navy) !important;
    text-decoration: none !important;
    filter: brightness(1.02);
}

.sbn-story-card {
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--sbh-border);
    box-shadow: 0 12px 34px rgba(20, 51, 90, 0.08);
}

.sbn-story-card h3 {
    margin: 0 0 12px;
    color: var(--sbh-navy);
    font-size: clamp(1.45rem, 5vw, 2rem);
    line-height: 1.12;
    font-weight: 900;
}

.sbn-story-summary {
    margin: 0 0 14px;
    color: #52647d;
    font-size: 1rem;
    line-height: 1.6;
}

.sbn-story-note {
    margin: 0 0 16px;
    padding: 14px 16px;
    background: #fff1f7;
    border: 1px solid #ffd0e4;
    border-radius: 16px;
    color: #52647d;
    font-size: 0.92rem;
    line-height: 1.45;
}

.sbn-admin-wrap {
    max-width: 1120px;
}

.sbn-admin-wrap .sbn-admin-hero {
    margin: 18px 0;
    padding: 24px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(135deg, #1d6fd6 0%, #4e9af4 52%, #ff5fa2 100%);
    box-shadow: 0 14px 34px rgba(29, 111, 214, 0.16);
}

.sbn-admin-wrap .sbn-admin-hero h1 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 32px;
    line-height: 1.1;
}

.sbn-admin-wrap .sbn-admin-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
}

.sbn-admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 18px;
    align-items: start;
}

.sbn-admin-card {
    padding: 22px;
    border: 1px solid #cfe7ff;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(20, 51, 90, 0.08);
}

.sbn-admin-card h2 {
    margin-top: 22px;
    color: #14335a;
}

.sbn-admin-card h2:first-child {
    margin-top: 0;
}

.sbn-admin-card label:not(.sbn-admin-check) {
    display: block;
    margin-top: 14px;
    margin-bottom: 6px;
    color: #263b57;
    font-weight: 800;
}

.sbn-admin-card input.regular-text,
.sbn-admin-card textarea.large-text {
    max-width: 720px;
    border-radius: 10px;
}

.sbn-admin-categories {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.sbn-admin-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid #cfe7ff;
    border-radius: 18px;
    background: #fbfdff;
}

.sbn-admin-check em {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-style: normal;
}

.sbn-admin-side code {
    display: inline-block;
    padding: 10px 12px;
    border-radius: 14px;
    background: #eef7ff;
    border: 1px solid #cfe7ff;
    color: #14335a;
    font-weight: 800;
}

@media (max-width: 900px) {
    .sbn-category-nav,
    .sbn-card-grid,
    .sbn-admin-categories {
        grid-template-columns: 1fr 1fr;
    }

    .sbn-admin-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sbn-wrap {
        padding-left: 10px;
        padding-right: 10px;
    }

    .sbn-wrap .sbh-hero {
        padding: 26px 20px;
        border-radius: 24px;
    }

    .sbn-category-nav,
    .sbn-card-grid,
    .sbn-admin-categories {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .sbn-news-card {
        min-height: auto;
    }
}
