:root {
    --red: #b7081c;
    --red-dark: #850514;
    --ink: #171717;
    --muted: #6b6b6b;
    --line: #e8e4df;
    --paper: #fff;
    --wash: #f6f3ef;
    --gold: #d7aa51;
    --radius: 18px;
    --shadow: 0 16px 42px rgba(35, 22, 12, .08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--wash);
    font-family: "Cairo", system-ui, sans-serif;
    line-height: 1.8;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.shell {
    width: min(1180px, calc(100% - 32px));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 8px 30px rgba(0, 0, 0, .06);
}

.topline {
    color: #fff;
    background: #181818;
    font-size: .78rem;
}

.topline .shell {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-block: 5px;
}

.brand-row {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    color: #fff;
    background: linear-gradient(145deg, #d01831, #860616);
    border-radius: 15px 6px 15px 6px;
    box-shadow: 0 8px 20px rgba(183, 8, 28, .24);
    font-size: 1.7rem;
    font-weight: 800;
}

.brand strong {
    display: block;
    color: var(--red);
    font-size: 1.7rem;
    line-height: 1.15;
}

.brand small { color: var(--muted); font-weight: 600; }

.search {
    width: min(420px, 45vw);
    display: flex;
    gap: 8px;
    padding: 6px;
    background: var(--wash);
    border: 1px solid var(--line);
    border-radius: 999px;
}

.search input {
    min-width: 0;
    flex: 1;
    padding: 8px 14px;
    border: 0;
    outline: 0;
    background: transparent;
    font: inherit;
}

.search button,
.primary-button {
    border: 0;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    padding: 8px 22px;
    font: 700 .9rem "Cairo", sans-serif;
    cursor: pointer;
}

.main-nav { background: var(--red); color: #fff; }

.nav-scroll {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.nav-scroll a {
    flex: 0 0 auto;
    padding: 11px 16px;
    font-weight: 700;
    border-inline-start: 1px solid rgba(255, 255, 255, .09);
}

.nav-scroll a:hover,
.nav-scroll a:focus-visible { background: var(--red-dark); }

.main-shell { min-height: 65vh; padding-block: 36px 64px; }

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 22px;
    border-bottom: 2px solid var(--ink);
}

.section-head h1,
.section-head h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.25rem); }

.eyebrow {
    display: inline-block;
    color: var(--red);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.news-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(35, 22, 12, .12);
}

.news-image {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #e7e1da;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-card:hover .news-image img { transform: scale(1.035); }

.image-placeholder {
    display: grid;
    place-items: center;
    height: 100%;
    color: rgba(255, 255, 255, .9);
    background: linear-gradient(135deg, #282828, #b7081c);
    font-size: 2rem;
    font-weight: 800;
}

.news-body { padding: 18px; }
.news-body time { color: var(--red); font-size: .78rem; font-weight: 700; }
.news-body h2 { margin: 7px 0 9px; font-size: 1.08rem; line-height: 1.65; }
.news-body h2 a:hover { color: var(--red); }
.news-body p { margin: 0; color: var(--muted); font-size: .9rem; }

.card-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 12px;
    color: #777;
    border-top: 1px solid var(--line);
    font-size: .75rem;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

.pagination a,
.pagination span {
    padding: 8px 15px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.article-page,
.static-page {
    padding: clamp(20px, 4vw, 50px);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: .82rem;
}

.breadcrumbs a:hover { color: var(--red); }
.article-header { max-width: 920px; }

.category-pill {
    display: inline-flex;
    color: #fff;
    background: var(--red);
    border-radius: 999px;
    padding: 5px 13px;
    font-size: .78rem;
    font-weight: 800;
}

.article-header h1,
.static-page h1 {
    margin: 12px 0;
    font-size: clamp(2rem, 5vw, 3.55rem);
    line-height: 1.35;
    letter-spacing: -.02em;
}

.article-deck {
    color: #555;
    font-size: 1.12rem;
    line-height: 1.9;
}

.article-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block: 15px;
    color: var(--muted);
    border-block: 1px solid var(--line);
    font-size: .84rem;
}

.hero-image {
    margin: 26px 0;
    overflow: hidden;
    border-radius: 18px;
}

.hero-image img { width: 100%; max-height: 720px; object-fit: cover; }
.hero-image figcaption { padding: 8px 12px; color: var(--muted); background: #f4f1ed; font-size: .78rem; }

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 42px;
}

.article-content {
    font-size: 1.08rem;
    line-height: 2.05;
}

.article-content p { margin: 0 0 1.25em; }
.article-content h2,
.article-content h3 { margin: 1.7em 0 .7em; line-height: 1.5; }
.article-content a { color: var(--red); text-decoration: underline; }
.article-content iframe { max-width: 100%; }
.article-content img { height: auto; margin: 20px auto; border-radius: 12px; }

.article-aside {
    position: sticky;
    top: 150px;
    align-self: start;
    display: grid;
    gap: 8px;
    padding: 16px;
    background: var(--wash);
    border-radius: 14px;
}

.article-aside h2 { margin: 0 0 4px; font-size: 1rem; }
.article-aside a { padding: 7px 10px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }

.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag-list a { color: var(--red); background: #fff1f3; border-radius: 999px; padding: 5px 12px; font-size: .8rem; }

.comments { margin-top: 40px; }
.comments article { margin-top: 12px; padding: 16px; background: var(--wash); border-radius: 12px; }
.comments time { margin-inline-start: 8px; color: var(--muted); font-size: .75rem; }
.comments p { margin-bottom: 0; }

.related { margin-top: 34px; }
.related-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.related-grid article { overflow: hidden; background: #fff; border-radius: 14px; box-shadow: var(--shadow); }
.related-grid img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.related-grid h3 { margin: 0; padding: 13px; font-size: .92rem; line-height: 1.6; }

.empty-state {
    padding: 70px 24px;
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.error-code { color: var(--red); font-size: 5rem; font-weight: 800; line-height: 1; }
.primary-button { display: inline-block; margin-top: 10px; }

.site-footer {
    color: #ddd;
    background: #151515;
    border-top: 5px solid var(--red);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1fr;
    gap: 30px;
    align-items: center;
    padding-block: 42px;
}

.footer-brand { color: #fff; font-size: 1.7rem; }
.footer-grid a { display: block; margin: 5px 0; }
.footer-grid p { margin: 5px 0; color: #aaa; }

@media (max-width: 900px) {
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: 1fr; }
    .article-aside { position: static; grid-template-columns: repeat(2, 1fr); }
    .article-aside h2 { grid-column: 1 / -1; }
    .related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
    .shell { width: min(100% - 20px, 1180px); }
    .topline .shell span:last-child { display: none; }
    .brand-row { min-height: 78px; gap: 12px; }
    .brand-mark { width: 44px; height: 44px; }
    .brand strong { font-size: 1.35rem; }
    .brand small { display: none; }
    .search { width: 52vw; }
    .search button { padding-inline: 13px; }
    .nav-scroll a { padding-inline: 13px; }
    .main-shell { padding-top: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .article-page,
    .static-page { padding: 20px 16px; border-radius: 16px; }
    .article-header h1,
    .static-page h1 { font-size: 1.85rem; }
    .article-content { font-size: 1rem; }
    .related-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
}

