body {
    margin: 0;
    font-family: "Be Vietnam Pro", Tahoma, sans-serif;
    background: radial-gradient(circle at 8% 10%, #ffe7d7, #f3f6ff 45%, #edf1f8 100%);
    color: #18202b;
}

.bg-orb {
    position: fixed;
    border-radius: 999px;
    filter: blur(70px);
    opacity: .5;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    width: 320px;
    height: 320px;
    background: #ffd39a;
    top: -80px;
    right: -120px;
}

.bg-orb-2 {
    width: 260px;
    height: 260px;
    background: #a7d8ff;
    bottom: -80px;
    left: -100px;
}

.blog-wrap {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 22px 16px 36px;
}

.blog-head {
    background: linear-gradient(145deg, #8f0c0c, #5f0912 65%, #3d2d4d);
    color: #fff;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(38, 20, 20, .28);
}

.tagline {
    margin: 0 0 10px;
    font-size: 12px;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
}

.blog-head h1 {
    margin: 0 0 8px;
    font-size: 33px;
    line-height: 1.25;
}

.blog-head p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    max-width: 760px;
}

.section-block {
    margin-top: 18px;
    background: rgba(255, 255, 255, .82);
    border: 1px solid #dfe7f3;
    border-radius: 14px;
    padding: 14px;
    backdrop-filter: blur(6px);
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.section-title-row h2 {
    margin: 2px 0;
    font-size: 20px;
    color: #102744;
}

.section-title-row span {
    font-size: 12px;
    color: #5b6780;
    background: #eef4ff;
    border: 1px solid #d6e3fa;
    border-radius: 999px;
    padding: 5px 10px;
}

.card-tabs {
    margin-bottom: 12px;
    align-items: stretch;
    flex-wrap: wrap;
}

.tab-btn {
    border: 1px solid #c9d9f1;
    border-radius: 999px;
    background: #f7faff;
    color: #24466f;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 14px;
    cursor: pointer;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b0000, #bf3b00);
    border-color: #8b0000;
    color: #fff;
}

.blog-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.blog-card {
    display: block;
    background: #fff;
    border: 1px solid #dce4f3;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    padding: 14px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.blog-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 9px 18px rgba(27, 48, 86, .12);
}

.blog-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    color: #8b0000;
    line-height: 1.35;
}

.blog-card p {
    margin: 0;
    font-size: 14px;
    color: #364758;
    line-height: 1.64;
}

.blog-meta {
    margin-top: 10px;
    font-size: 12px;
    color: #607088;
}

.pagination-row {
    margin-top: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pagination-row button {
    border: 1px solid #c8d8ec;
    border-radius: 8px;
    background: #fff;
    color: #24466f;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 10px;
    cursor: pointer;
}

.pagination-row button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#pageIndicator {
    font-size: 13px;
    color: #415973;
}

.source-config-box {
    margin-top: 14px;
    border: 1px dashed #c6d7ef;
    border-radius: 10px;
    background: #f9fcff;
    padding: 10px 12px;
}

.source-config-box h3 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #2b3f56;
}

.source-config-box p {
    margin: 0;
    font-size: 12px;
    color: #4c6075;
    line-height: 1.6;
    white-space: pre-line;
}

.nav-home {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    color: #8b0000;
    font-weight: 700;
}

.article {
    background: #fff;
    border: 1px solid #dce3ee;
    border-radius: 10px;
    padding: 18px;
}

.article h1 {
    margin: 0 0 8px;
    font-size: 27px;
    color: #8b0000;
    line-height: 1.35;
}

.article h2 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 18px;
    color: #2b3f56;
}

.article p, .article li {
    font-size: 15px;
    line-height: 1.68;
    color: #2a2f35;
}

.article ul { padding-left: 20px; }

.article .updated {
    font-size: 12px;
    color: #677;
    margin-bottom: 14px;
}

.sources {
    border-top: 1px dashed #c8d1de;
    margin-top: 14px;
    padding-top: 10px;
    font-size: 13px;
    color: #4e5d6f;
}

@media (max-width: 760px) {
    .blog-grid { grid-template-columns: 1fr; }
    .blog-head h1 { font-size: 24px; }
    .section-title-row h2 { font-size: 18px; }
    .tab-btn {
        width: 100%;
        text-align: left;
    }
    .article h1 { font-size: 22px; }
    .article { padding: 14px; }
}