/* --------------------------------------------------------------
   Rased Rafidain - main stylesheet (demo)
   -------------------------------------------------------------- */

:root {
    --rr-red: #c0392b;
    --rr-red-dark: #97291e;
    --rr-navy: #101b2d;
    --rr-navy-2: #17263c;
    --rr-gold: #e0a33e;
    --rr-bg: #eef1f5;
    --rr-surface: #ffffff;
    --rr-line: #e2e6ec;
    --rr-text: #1b2029;
    --rr-muted: #6b7787;
    --rr-radius: 12px;
    --rr-radius-sm: 8px;
    --rr-shadow: 0 8px 26px rgba(16, 27, 45, .08);
    --rr-shadow-lg: 0 18px 44px rgba(16, 27, 45, .16);
    --rr-container: 1200px;
    --rr-font: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--rr-font);
    background: var(--rr-bg);
    color: var(--rr-text);
    line-height: 1.8;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--rr-red);
}

h1,
h2,
h3,
h4 {
    line-height: 1.4;
    margin: 0 0 .5em;
    font-weight: 700;
}

.container {
    width: 100%;
    max-width: var(--rr-container);
    margin-inline: auto;
    padding-inline: 18px;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 8px;
    right: 8px;
    z-index: 9999;
    background: var(--rr-red);
    color: #fff;
    padding: 10px 16px;
    clip: auto;
    width: auto;
    height: auto;
}

/* Placeholder boxes for demo */
.ph {
    display: block;
    width: 100%;
    background:
        repeating-linear-gradient(45deg, #d9dee6, #d9dee6 12px, #cfd6e0 12px, #cfd6e0 24px);
    border-radius: var(--rr-radius-sm);
}

.ph--16x9 {
    aspect-ratio: 16 / 9;
}

.ph--1x1 {
    aspect-ratio: 1 / 1;
}

/* ---------------- Top bar ---------------- */
.topbar {
    background: var(--rr-navy);
    color: #c9d2df;
    font-size: 13px;
}

.topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 44px;
    flex-wrap: wrap;
}

.topbar__date {
    color: #9fb0c6;
}

.topbar__weather {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dfe6ef;
}

.topbar__weather-icon {
    color: var(--rr-gold);
    display: inline-flex;
}

.topbar__weather strong {
    color: #fff;
}

.topbar__weather-cond {
    color: #9fb0c6;
}

.topbar__social {
    display: flex;
    gap: 10px;
}

.topbar__social a {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    font-size: 12px;
    color: #dfe6ef;
    transition: .2s;
}

.topbar__social a:hover {
    background: var(--rr-red);
    color: #fff;
}

/* ---------------- Masthead ---------------- */
.site-header {
    background: #fff;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-block: 18px;
    flex-wrap: wrap;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.site-logo-text__main {
    font-size: 38px;
    font-weight: 900;
    color: var(--rr-navy);
    letter-spacing: -.5px;
}

.site-logo-text__main::after {
    content: "";
    display: block;
    width: 68px;
    height: 4px;
    background: var(--rr-red);
    border-radius: 4px;
    margin-top: 6px;
}

.site-logo-text__tag {
    font-size: 13px;
    color: var(--rr-muted);
    margin-top: 8px;
}

.custom-logo {
    max-height: 70px;
    width: auto;
}

.site-header__aside {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-toggle {
    background: none;
    border: 1px solid var(--rr-line);
    color: var(--rr-navy);
    border-radius: 50px;
    padding: 9px 20px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    transition: .2s;
}

.search-toggle:hover {
    border-color: var(--rr-navy);
}

.btn-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--rr-red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 50px;
    transition: .2s;
}

.btn-live:hover {
    background: var(--rr-red-dark);
    color: #fff;
}

.btn-live .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #fff;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .35;
        transform: scale(.7);
    }
}

.header-search {
    background: #f6f8fb;
    border-top: 1px solid var(--rr-line);
    padding-block: 14px;
}

.header-search__inner {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rased-search-form {
    flex: 1;
    margin: 0;
}

.rased-search-form .search-form__inner {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.rased-search-form .search-field {
    flex: 1;
    padding: 11px 18px;
    border: 1.5px solid var(--rr-line);
    border-radius: var(--rr-radius-sm);
    font-family: inherit;
    font-size: 15px;
    background: #fff;
    outline: none;
    color: var(--rr-text);
    transition: border-color .2s, box-shadow .2s;
}

.rased-search-form .search-field:focus {
    border-color: var(--rr-navy);
    box-shadow: 0 0 0 3px rgba(11, 27, 61, .08);
}

.rased-search-form .search-submit {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    background: linear-gradient(135deg, var(--rr-navy), var(--rr-navy-2));
    color: #fff;
    border: none;
    border-radius: var(--rr-radius-sm);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(11, 27, 61, .15);
    transition: transform .18s, box-shadow .18s, background .18s;
}

.rased-search-form .search-submit:hover {
    background: linear-gradient(135deg, var(--rr-navy-2), #1c3660);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 27, 61, .25);
}

.rased-search-form .search-submit:active {
    transform: translateY(0);
}

.rased-search-form .search-submit svg {
    flex-shrink: 0;
}

.search-close {
    flex: 0 0 auto;
    background: none;
    border: 1.5px solid var(--rr-line);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rr-muted);
    transition: background .2s, color .2s, border-color .2s;
}

.search-close:hover {
    background: var(--rr-red);
    border-color: var(--rr-red);
    color: #fff;
}

.search-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------------- Navigation ---------------- */
.main-navigation {
    background: var(--rr-navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
}

.main-navigation__inner {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 52px;
}

.main-navigation .menu {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
}

.main-navigation .menu a {
    display: block;
    padding: 12px 16px;
    color: #d5dde8;
    font-weight: 600;
    font-size: 15px;
    border-radius: 6px;
    transition: .18s;
}

.main-navigation .menu a:hover,
.main-navigation .menu .current-menu-item>a {
    background: var(--rr-red);
    color: #fff;
}

.nav-clock {
    color: var(--rr-gold);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    background: var(--rr-navy-2);
    color: #fff;
    border: 0;
    padding: 10px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
    content: "";
    display: block;
    width: 18px;
    height: 2px;
    background: #fff;
    position: relative;
}

.menu-toggle__bars::before {
    position: absolute;
    top: -6px;
}

.menu-toggle__bars::after {
    position: absolute;
    top: 6px;
}

/* ---------------- Breaking ticker ---------------- */
.breaking {
    background: #fff;
    border-bottom: 1px solid var(--rr-line);
}

.breaking__inner {
    display: flex;
    align-items: center;
    gap: 0;
}

.breaking__label {
    background: var(--rr-red);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 0 8px 8px 0;
    white-space: nowrap;
    position: relative;
}

.breaking__track {
    overflow: hidden;
    flex: 1;
}

.breaking__items {
    display: inline-flex;
    gap: 46px;
    white-space: nowrap;
    padding: 12px 20px;
    animation: ticker 32s linear infinite;
}

.breaking__items span {
    font-size: 14px;
    color: #39424f;
}

.breaking__items span::before {
    content: "◆";
    color: var(--rr-red);
    font-size: 9px;
    margin-inline-end: 8px;
    vertical-align: middle;
}

@keyframes ticker {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ---------------- Layout ---------------- */
.site-content {
    padding-block: 26px 40px;
}

.site-main {
    display: block;
}

/* ---------------- Hero ---------------- */
.hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: auto auto;
    gap: 18px;
    margin-bottom: 28px;
}

.hero__main {
    grid-row: span 2;
    background: #fff;
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow);
    position: relative;
}

.hero__media {
    position: relative;
    display: block;
}

.hero__media img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.hero__body {
    padding: 20px 22px 24px;
}

.hero__title {
    font-size: 27px;
    margin-bottom: 10px;
}

.hero__excerpt {
    color: var(--rr-muted);
    margin: 0 0 12px;
    font-size: 15px;
}

.hero__side {
    display: flex;
    gap: 14px;
    background: #fff;
    border-radius: var(--rr-radius);
    padding: 14px;
    box-shadow: var(--rr-shadow);
    transition: transform .2s;
}

.hero__side:hover {
    transform: translateY(-3px);
}

.hero__side-media {
    flex: 0 0 96px;
}

.hero__side-media img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: var(--rr-radius-sm);
}

.hero__side-title {
    font-size: 16px;
    margin: 0 0 6px;
}

.badge {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    background: var(--rr-red);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 50px;
}

.meta {
    font-size: 13px;
    color: var(--rr-muted);
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---------------- Weather ---------------- */
.weather {
    background: linear-gradient(135deg, var(--rr-navy), var(--rr-navy-2));
    border-radius: var(--rr-radius);
    padding: 24px;
    color: #eaf0f7;
    margin-bottom: 30px;
    box-shadow: var(--rr-shadow-lg);
}

.weather__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.weather__title {
    color: #fff;
    font-size: 22px;
    margin: 0;
}

.weather__sub {
    margin: 2px 0 0;
    color: #93a4bb;
    font-size: 14px;
}

.weather__all {
    color: var(--rr-gold);
    font-weight: 600;
    font-size: 14px;
}

.weather__grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(5, 1fr);
    gap: 12px;
}

.weather__feature {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--rr-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.weather__feature-loc {
    font-weight: 700;
    color: #fff;
}

.weather__feature-main {
    display: flex;
    align-items: center;
    gap: 10px;
}

.weather__icon {
    color: var(--rr-gold);
    display: inline-flex;
}

.weather__temp {
    font-size: 44px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
}

.weather__feature-cond {
    color: #b9c6d8;
}

.weather__feature-low {
    font-size: 13px;
    color: #93a4bb;
    margin-top: auto;
}

.weather__card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--rr-radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    text-align: center;
    transition: .2s;
}

.weather__card:hover {
    background: rgba(255, 255, 255, .1);
}

.weather__card-icon {
    color: var(--rr-gold);
}

.weather__card-name {
    font-weight: 700;
    color: #fff;
    font-size: 15px;
}

.weather__card-cond {
    color: #a9b7ca;
    font-size: 12px;
}

.weather__card-temp {
    font-size: 22px;
    font-weight: 900;
    color: #fff;
}

/* ---------------- Section + cards ---------------- */
.section {
    margin-bottom: 34px;
}

.section__head {
    display: flex;
    align-items: center;
    gap: 14px;
    border-bottom: 3px solid var(--rr-navy);
    padding-bottom: 0;
    margin-bottom: 18px;
}

.section__title {
    margin: 0;
    font-size: 21px;
    position: relative;
    background: var(--rr-navy);
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px 8px 0 0;
}

.section__title a {
    color: #fff;
}

.section__title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -3px;
    width: 100%;
    height: 3px;
    background: var(--rr-red);
}

.section__subtitle {
    color: var(--rr-muted);
    font-size: 14px;
}

.section__more {
    margin-inline-start: auto;
    color: var(--rr-red);
    font-weight: 700;
    font-size: 14px;
}

.cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr);
}

.cards--archive {
    grid-template-columns: repeat(3, 1fr);
}

/* Column count modifiers — used by dynamic front-page sections */
.cards--cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards--cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards--cols-4 { grid-template-columns: repeat(4, 1fr); }


.card {
    background: #fff;
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--rr-shadow-lg);
}

.card__media img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}

.card__body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card__title {
    font-size: 16px;
    margin: 0;
}

.card__excerpt {
    color: var(--rr-muted);
    font-size: 14px;
    margin: 0;
    flex: 1;
}

.chip {
    align-self: flex-start;
    background: #fdecea;
    color: var(--rr-red);
    font-size: 12px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 50px;
}

.chip--sm {
    font-size: 11px;
    padding: 2px 8px;
}

/* ---------------- Split + sidebar ---------------- */
.split {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 26px;
    align-items: start;
    margin-bottom: 34px;
}

.split__main {
    min-width: 0;
}

.split__aside {
    position: sticky;
    top: 76px;
}

.news-list {
    display: flex;
    flex-direction: column;
}

/* ---------------- 2 Categories Side-by-Side ---------------- */
.categories-duo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 26px;
    align-items: start;
    margin-bottom: 34px;
}

.categories-duo--single {
    grid-template-columns: 1fr;
}

.categories-duo .section {
    margin-bottom: 0;
}

.section--category-list .news-list {
    background: #fff;
    border: 1px solid var(--rr-line);
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow);
}

.section--category-list .news-item {
    padding: 12px 14px;
    border-bottom: 1px solid var(--rr-line);
    border-radius: 0 !important;
    transition: background .15s ease;
}

.section--category-list .news-item:hover {
    background: #f8fafc;
}

.section--category-list .news-item:last-child {
    border-bottom: 0;
}

.section--category-list .news-item__media {
    flex: 0 0 95px;
}

.section--category-list .news-item__media img,
.section--category-list .news-item__media .ph {
    width: 95px;
    height: 72px;
    object-fit: cover;
    border-radius: var(--rr-radius-sm);
}

.section--category-list .news-item__title {
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item {
    display: flex;
    gap: 14px;
    background: #fff;
    padding: 14px;
    border-bottom: 1px solid var(--rr-line);
}

.news-item:first-child {
    border-radius: var(--rr-radius) var(--rr-radius) 0 0;
}

.news-item:last-child {
    border-bottom: 0;
    border-radius: 0 0 var(--rr-radius) var(--rr-radius);
}

.news-item__media {
    flex: 0 0 110px;
}

.news-item__media img,
.news-item__media .ph {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--rr-radius-sm);
}

.news-item__body {
    flex: 1;
}

.news-item__title {
    font-size: 17px;
    margin: 0 0 8px;
}

.news-item:hover .news-item__title a {
    color: var(--rr-red);
}

.widgets {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.widget {
    background: #fff;
    border-radius: var(--rr-radius);
    padding: 18px;
    box-shadow: var(--rr-shadow);
}

.widget-title {
    font-size: 17px;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--rr-line);
    position: relative;
}

.widget-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -2px;
    width: 54px;
    height: 2px;
    background: var(--rr-red);
}

.rank-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: rank;
}

.rank-item {
    display: flex;
    gap: 12px;
    padding: 9px 0;
    border-bottom: 1px dashed var(--rr-line);
}

.rank-item:last-child {
    border-bottom: 0;
}

.rank-item__num {
    flex: 0 0 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--rr-navy);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 15px;
}

.rank-item:first-child .rank-item__num {
    background: var(--rr-red);
}

.rank-item__title {
    font-size: 14px;
    font-weight: 600;
}

.cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cat-list li {
    border-bottom: 1px solid var(--rr-line);
}

.cat-list li:last-child {
    border-bottom: 0;
}

.cat-list a {
    display: block;
    padding: 10px 0;
    font-weight: 600;
}

.cat-list a::before {
    content: "◄";
    color: var(--rr-red);
    font-size: 9px;
    margin-inline-end: 8px;
}

.mini-weather {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mini-weather__icon {
    color: var(--rr-gold);
}

.mini-weather__temp {
    font-size: 34px;
    font-weight: 900;
}

.mini-weather__cond {
    color: var(--rr-muted);
}

.newsletter {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.newsletter input[type="email"] {
    flex: 1;
    padding: 11px 14px;
    border: 1px solid var(--rr-line);
    border-radius: var(--rr-radius-sm);
    font-family: inherit;
}

.newsletter button {
    background: var(--rr-red);
    color: #fff;
    border: 0;
    padding: 11px 18px;
    border-radius: var(--rr-radius-sm);
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: .2s;
}

.newsletter button:hover {
    background: var(--rr-red-dark);
}

/* ---------------- Single / Page ---------------- */
.single-post,
.page-content {
    background: #fff;
    border-radius: var(--rr-radius);
    padding: 26px 30px;
    box-shadow: var(--rr-shadow);
}

.entry-title {
    font-size: 34px;
    margin: 12px 0 14px;
}

.meta--single {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--rr-line);
    margin-bottom: 20px;
}

.entry-media {
    margin: 0 0 22px;
}

.entry-media img {
    border-radius: var(--rr-radius);
    width: 100%;
}

.entry-content {
    font-size: 17px;
}

.entry-content p {
    margin: 0 0 1.2em;
}

.entry-content h2 {
    font-size: 24px;
    margin-top: 1.4em;
}

.entry-content img {
    border-radius: var(--rr-radius-sm);
}

.entry-content blockquote {
    margin: 1.4em 0;
    padding: 16px 22px;
    background: #f6f8fb;
    border-inline-start: 4px solid var(--rr-red);
    border-radius: var(--rr-radius-sm);
}

.entry-footer {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--rr-line);
}

.tags a {
    display: inline-block;
    background: #f1f4f8;
    color: var(--rr-navy);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 50px;
    margin: 4px;
    transition: .2s;
}

.tags a:hover {
    background: var(--rr-red);
    color: #fff;
}

.page-head {
    margin-bottom: 20px;
}

.page-head__title {
    font-size: 24px;
    border-inline-start: 5px solid var(--rr-red);
    padding-inline-start: 14px;
}

.no-results {
    background: #fff;
    padding: 30px;
    border-radius: var(--rr-radius);
    text-align: center;
    color: var(--rr-muted);
}

.pagination {
    margin-top: 26px;
}

.pagination .nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.pagination .page-numbers {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 8px;
    font-weight: 700;
    box-shadow: var(--rr-shadow);
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background: var(--rr-red);
    color: #fff;
}

/* ---------------- Footer ---------------- */
.site-footer {
    background: var(--rr-navy);
    color: #a9b7ca;
    margin-top: 30px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 30px;
    padding-block: 44px;
}

.site-footer__title {
    color: #fff;
    font-size: 18px;
    margin-bottom: 14px;
}

.site-footer__col p {
    font-size: 14px;
    line-height: 1.9;
}

.site-footer__social {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.site-footer__social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    display: grid;
    place-items: center;
    color: #dfe6ef;
    transition: .2s;
}

.site-footer__social a:hover {
    background: var(--rr-red);
    color: #fff;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    display: block;
    padding: 6px 0;
    font-size: 14px;
}

.footer-menu a::before {
    content: "›";
    color: var(--rr-gold);
    margin-inline-end: 8px;
}

.site-footer .newsletter input[type="email"] {
    border-color: rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, .06);
    color: #fff;
}

.site-footer .newsletter input::placeholder {
    color: #8ea0b8;
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .08);
    font-size: 13px;
}

.site-footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-block: 16px;
    flex-wrap: wrap;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
    .cards,
    .cards--cols-2,
    .cards--cols-3,
    .cards--cols-4 {
        grid-template-columns: repeat(3, 1fr);
    }
    .cards--cols-2 { grid-template-columns: repeat(2, 1fr); }

    .weather__grid {
        grid-template-columns: 1.3fr repeat(2, 1fr);
    }

    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero__main {
        grid-row: auto;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__aside {
        position: static;
    }

    .categories-duo {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .menu-toggle {
        display: inline-flex;
    }

    .main-navigation .menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        inset-inline: 0;
        background: var(--rr-navy-2);
        padding: 10px;
        z-index: 200;
        box-shadow: var(--rr-shadow-lg);
    }

    .main-navigation .menu.is-open {
        display: flex;
    }

    .main-navigation .menu a {
        padding: 12px 14px;
    }

    .main-navigation__inner {
        position: relative;
    }

    .cards--archive {
        grid-template-columns: repeat(2, 1fr);
    }
    .cards--cols-3,
    .cards--cols-4 { grid-template-columns: repeat(2, 1fr); }
    .cards--cols-2 { grid-template-columns: repeat(2, 1fr); }

    .entry-title {
        font-size: 27px;
    }

    .site-logo-text__main {
        font-size: 30px;
    }
}

@media (max-width: 640px) {

    .cards,
    .cards--archive,
    .cards--cols-2,
    .cards--cols-3,
    .cards--cols-4 {
        grid-template-columns: 1fr;
    }

    .weather__grid {
        grid-template-columns: 1fr 1fr;
    }

    .weather__feature {
        grid-column: 1 / -1;
    }

    .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .topbar__social {
        display: none;
    }

    .single-post,
    .page-content {
        padding: 18px;
    }

    .hero__title {
        font-size: 22px;
    }
}

/* ==============================================================
   Weather page + header weather pill
   ============================================================== */

/* Header weather pill */
.weather-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f2f5f9;
    border: 1px solid var(--rr-line);
    color: var(--rr-navy);
    font-weight: 700;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 50px;
    transition: .2s;
}

.weather-pill:hover {
    border-color: var(--rr-red);
    color: var(--rr-red);
}

.weather-pill__icon {
    color: var(--rr-gold);
    display: inline-flex;
}

.weather-pill__text strong {
    color: var(--rr-red);
}

/* Page shell */
.weather-page {
    padding-block: 8px 40px;
}

.weather-page__head {
    margin-bottom: 20px;
}

.weather-page__title {
    font-size: 30px;
    margin: 0 0 6px;
}

.weather-page__sub {
    color: var(--rr-muted);
    margin: 0;
}

.weather-page__top {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 20px;
    margin-bottom: 22px;
    align-items: stretch;
}

/* Map */
.weather-map-wrap {
    position: relative;
}

.weather-map {
    height: 520px;
    width: 100%;
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow);
    background: #0b1420;
}

.weather-map .leaflet-container {
    background: #0b1420;
    font-family: var(--rr-font);
}

.weather-map__hint {
    position: absolute;
    top: 12px !important;
    inset-inline-start: 12px;
    z-index: 500;
    background: rgba(16, 27, 45, .85);
    color: #dbe4ef;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 50px;
    pointer-events: none;
}

.map-marker-wrap {
    background: none;
    border: 0;
}

.map-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transform: translate(-50%, -100%);
    background: rgba(16, 27, 45, .9);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 10px;
    padding: 5px 9px;
    color: #eaf0f7;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
    transition: .18s;
    cursor: pointer;
}

.map-marker:hover {
    background: var(--rr-red);
    border-color: var(--rr-red);
}

.map-marker.is-active {
    background: var(--rr-red);
    border-color: var(--rr-red);
    transform: translate(-50%, -100%) scale(1.12);
}

.map-marker__icon {
    color: var(--rr-gold);
    display: inline-flex;
}

.map-marker.is-active .map-marker__icon {
    color: #fff;
}

.map-marker__temp {
    font-weight: 900;
    font-size: 15px;
    line-height: 1;
}

.map-marker__name {
    font-size: 11px;
    opacity: .9;
}

.map-marker::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid rgba(16, 27, 45, .9);
}

.map-marker.is-active::after {
    border-top-color: var(--rr-red);
}

/* Satellite */
.satellite {
    margin: 0;
    background: var(--rr-navy);
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow-lg);
    display: flex;
    flex-direction: column;
}

.satellite__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    color: #fff;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.satellite__time {
    color: var(--rr-gold);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.satellite__frame {
    position: relative;
    flex: 1;
    min-height: 400px;
    background: #060c14;
}

.satellite__map {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: #060c14;
}

.satellite__map .leaflet-container {
    background: #060c14;
}

.satellite__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9fb0c6;
    font-size: 14px;
    background: #060c14;
    z-index: 1000;
}

.satellite__note {
    margin: 0;
    padding: 10px 16px;
    font-size: 12px;
    color: #8ea0b8;
}

/* Detail */
.weather-detail {
    background: linear-gradient(135deg, var(--rr-navy), var(--rr-navy-2));
    border-radius: var(--rr-radius);
    padding: 22px;
    color: #eaf0f7;
    margin-bottom: 28px;
    box-shadow: var(--rr-shadow-lg);
}

.weather-detail__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.weather-detail__loc {
    display: flex;
    align-items: center;
    gap: 14px;
}

.weather-detail__icon {
    color: var(--rr-gold);
    display: inline-flex;
}

.weather-detail__name {
    color: #fff;
    margin: 0;
    font-size: 26px;
}

.weather-detail__cond {
    color: #a9b7ca;
    font-size: 14px;
}

.weather-detail__now {
    font-size: 20px;
    color: #fff;
}

.weather-detail__now strong {
    font-size: 46px;
    font-weight: 900;
}

.weather-detail__days {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.day-card {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--rr-radius-sm);
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.day-card__name {
    font-weight: 700;
    color: #fff;
}

.day-card__icon {
    color: var(--rr-gold);
}

.day-card__cond {
    font-size: 12px;
    color: #a9b7ca;
    min-height: 32px;
}

.day-card__temp {
    font-size: 15px;
}

.day-card__temp b {
    color: #fff;
    font-size: 18px;
}

.day-card__wind {
    font-size: 11px;
    color: #8ea0b8;
}

/* City grid */
.weather-cities__title {
    font-size: 21px;
    border-inline-start: 5px solid var(--rr-red);
    padding-inline-start: 14px;
    margin-bottom: 18px;
}

.weather-cities__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.city-card {
    background: #fff;
    border-radius: var(--rr-radius);
    padding: 14px;
    box-shadow: var(--rr-shadow);
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: transform .18s, box-shadow .18s;
}

.city-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--rr-shadow-lg);
}

.city-card__name {
    font-weight: 700;
}

.city-card__icon {
    color: var(--rr-gold);
}

.city-card__cond {
    font-size: 12px;
    color: var(--rr-muted);
    min-height: 30px;
}

.city-card__temp {
    font-size: 22px;
    font-weight: 900;
    color: var(--rr-navy);
}

.city-card__range {
    font-size: 12px;
    color: var(--rr-muted);
}

.city-skeleton {
    height: 150px;
    border-radius: var(--rr-radius);
    background: #fff;
    position: relative;
    overflow: hidden;
}

.city-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(16, 27, 45, .06), transparent);
    animation: shimmer 1.2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media (max-width: 1080px) {
    .weather-page__top {
        grid-template-columns: 1fr;
    }

    .weather-cities__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .weather-detail__days {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .weather-map {
        height: 380px;
    }

    .weather-cities__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-detail__days {
        grid-template-columns: repeat(2, 1fr);
    }

    .weather-detail__now strong {
        font-size: 34px;
    }
}

/* ---------------------------------------------------------------
   Wide archive / category pages (no sidebar)
   --------------------------------------------------------------- */
.page-wrap {
    max-width: 100%;
    padding-block: 28px;
}

.page-wrap .page-head {
    margin-bottom: 24px;
}

.page-wrap .page-head__title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--rr-navy);
    border-right: 4px solid var(--rr-red);
    padding-right: 12px;
}

/* 4-column wide card grid */
.cards--wide {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card--wide {
    background: var(--rr-surface);
    border-radius: var(--rr-radius);
    overflow: hidden;
    box-shadow: var(--rr-shadow);
    transition: transform .2s, box-shadow .2s;
    display: flex;
    flex-direction: column;
}

.card--wide:hover {
    transform: translateY(-3px);
    box-shadow: var(--rr-shadow-lg);
}

.card--wide .card__media {
    display: block;
    position: relative;
    overflow: hidden;
    height: 180px;
    flex-shrink: 0;
}

.card--wide .card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s;
}

.card--wide .card__media:hover img {
    transform: scale(1.04);
}

.card--wide .card__media .ph {
    width: 100%;
    height: 180px;
    background: var(--rr-line);
    display: block;
}

.card--wide .card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card--wide .card__title {
    font-size: .95rem;
    font-weight: 700;
    margin: 6px 0 8px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card--wide .card__excerpt {
    font-size: .82rem;
    color: var(--rr-muted);
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.6;
}

.card--wide .meta {
    margin-top: 12px;
    font-size: .76rem;
    color: var(--rr-muted);
}

@media (max-width: 1024px) {
    .cards--wide {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .cards--wide {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cards--wide {
        grid-template-columns: 1fr;
    }
}

/* ==============================================================
   Single Post Layout
   ============================================================== */

.single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 28px;
    align-items: start;
    padding-block: 26px 48px;
    max-width: 100%;
    overflow: hidden;
}

.single-layout__main {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.single-layout__aside {
    position: sticky;
    top: 76px;
}

/* ── Aside news list ── */
.news-list--aside {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-item--aside {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--rr-line);
    align-items: flex-start;
}

.news-item--aside:last-child {
    border-bottom: 0;
}

.news-item--aside .news-item__media {
    flex: 0 0 80px;
}

.news-item--aside .news-item__media img {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--rr-radius-sm);
    display: block;
}

.news-item--aside .news-item__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.news-item--aside .news-item__title {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-item--aside .news-item__title a:hover {
    color: var(--rr-red);
}

.news-item--aside .meta {
    font-size: 12px;
    color: var(--rr-muted);
}

/* ==============================================================
   Comments — Premium Design
   ============================================================== */

.comments-area {
    margin-top: 32px;
    background: #fff;
    border-radius: var(--rr-radius);
    padding: 28px 30px;
    box-shadow: var(--rr-shadow);
}

.comments-title {
    font-size: 20px;
    font-weight: 900;
    color: var(--rr-navy);
    margin: 0 0 22px;
    padding-bottom: 14px;
    border-bottom: 3px solid var(--rr-navy);
    position: relative;
}

.comments-title::after {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    bottom: -3px;
    width: 60px;
    height: 3px;
    background: var(--rr-red);
}

/* Comment list */
.comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.comment-list .comment {
    padding: 18px 0;
    border-bottom: 1px solid var(--rr-line);
}

.comment-list .comment:last-child {
    border-bottom: 0;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: 2px solid var(--rr-line);
}

.comment-author .fn {
    font-weight: 700;
    font-size: 15px;
    color: var(--rr-navy);
}

.comment-metadata {
    font-size: 12px;
    color: var(--rr-muted);
    margin-bottom: 8px;
}

.comment-metadata a {
    color: var(--rr-muted);
}

.comment-content p {
    font-size: 15px;
    line-height: 1.7;
    color: #39424f;
    margin: 0;
}

.comment-reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--rr-red);
    border: 1px solid var(--rr-red);
    padding: 4px 14px;
    border-radius: 50px;
    transition: .2s;
}

.comment-reply-link:hover {
    background: var(--rr-red);
    color: #fff;
}

/* Comment form */
.comment-respond {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 2px solid var(--rr-line);
}

.comment-reply-title {
    font-size: 18px;
    font-weight: 900;
    color: var(--rr-navy);
    margin: 0 0 18px;
}

.comment-form label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--rr-navy);
    margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--rr-line);
    border-radius: var(--rr-radius-sm);
    font-family: var(--rr-font);
    font-size: 14px;
    background: #f9fafb;
    transition: border-color .2s;
    box-sizing: border-box;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--rr-navy);
    background: #fff;
}

.comment-form textarea {
    min-height: 130px;
    resize: vertical;
}

.comment-form-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.comment-form-comment {
    margin-bottom: 14px;
}

.form-submit {
    margin: 0;
}

.comment-form .submit,
#submit {
    background: var(--rr-red);
    color: #fff;
    border: 0;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--rr-font);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background .2s;
}

.comment-form .submit:hover,
#submit:hover {
    background: var(--rr-red-dark);
}

/* ==============================================================
   Mobile Responsive — Single Post
   ============================================================== */

@media (max-width: 960px) {
    .single-layout {
        grid-template-columns: 1fr;
    }

    .single-layout__aside {
        position: static;
        max-width: 100%;
        overflow: hidden;
    }

    /* Horizontal scrollable news strip — contained within its widget */
    .widget--latest-news {
        overflow: hidden;
    }

    .news-list--aside {
        flex-direction: row;
        overflow-x: auto;
        gap: 14px;
        padding-bottom: 8px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        max-width: 100%;
    }

    .news-item--aside {
        flex: 0 0 180px;
        flex-direction: column;
        border-bottom: 0;
        border-radius: var(--rr-radius);
        background: #fff;
        box-shadow: var(--rr-shadow);
        padding: 10px;
    }

    .news-item--aside .news-item__media img {
        width: 100%;
        height: 100px;
    }

    .news-item--aside .news-item__media {
        flex: none;
        width: 100%;
    }

    /* Entry content overflow guard */
    .entry-content {
        max-width: 100%;
        overflow-x: hidden;
        word-break: break-word;
    }

    .entry-content img,
    .entry-content iframe,
    .entry-content table {
        max-width: 100% !important;
        height: auto;
    }

    .single-post {
        overflow: hidden;
    }
}

@media (max-width: 640px) {
    .single-layout {
        padding-block: 14px 32px;
    }

    .single-post,
    .comments-area {
        padding: 16px;
    }

    .entry-title {
        font-size: 22px;
    }

    .comment-form-fields {
        grid-template-columns: 1fr;
    }

    .comments-title {
        font-size: 17px;
    }
}