/* ═══════════════════════════════════════════════
   Dabaywa Sudan — Frontend Styles (Guardian-style)
   ═══════════════════════════════════════════════ */
:root {
    --font-en: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-ar: 'Noto Kufi Arabic', 'Inter', sans-serif;
    --font-headline: Georgia, 'Noto Kufi Arabic', serif;
    --c-navy: #052962;
    --c-navy-dark: #041F4A;
    --c-primary: #c70000;
    --c-primary-hover: #ab0613;
    --c-yellow: #FFE500;
    --c-blue: #0077B6;
    --c-dark: #121212;
    --c-text: #121212;
    --c-text-secondary: #333333;
    --c-muted: #707070;
    --c-light: #f6f6f6;
    --c-border: #dcdcdc;
    --c-border-dark: #bababa;
    --c-white: #fff;
    --max-w: 1300px;
    --gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }
body {
    font-family: var(--font-en);
    color: var(--c-text);
    background: var(--c-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.rtl body, html.rtl body { font-family: var(--font-ar); direction: rtl; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gap); }

/* ─── BREAKING TICKER ─── */
.breaking-ticker {
    background: var(--c-yellow);
    color: var(--c-dark);
    display: flex; align-items: center;
    overflow: hidden; height: 36px;
    font-size: .82rem; font-weight: 700;
}
.breaking-label {
    background: var(--c-dark);
    color: var(--c-yellow);
    padding: 0 16px; height: 100%;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; flex-shrink: 0;
    font-weight: 900; text-transform: uppercase; letter-spacing: .02em;
}
.ticker-wrapper { overflow: hidden; flex: 1; }
.ticker-content {
    display: flex; gap: 24px; white-space: nowrap;
    animation: tickerScroll 30s linear infinite;
    padding: 0 12px;
}
.ticker-content a { color: var(--c-dark); font-weight: 600; }
.ticker-content a:hover { text-decoration: underline; }
.ticker-sep { opacity: .4; }
@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.rtl .ticker-content { animation-name: tickerScrollRTL; }
@keyframes tickerScrollRTL {
    0% { transform: translateX(0); }
    100% { transform: translateX(50%); }
}

/* ─── HEADER ─── */
.site-header { position: sticky; top: 0; z-index: 100; }
.header-top {
    background: var(--c-navy-dark);
    color: var(--c-white); font-size: .8rem; padding: 6px 0;
}
.header-top-inner { display: flex; justify-content: space-between; align-items: center; }
.header-date { opacity: .75; display: flex; align-items: center; gap: 6px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    background: rgba(255,255,255,.12); padding: 3px 12px;
    border-radius: 2px; font-size: .75rem; transition: background .2s;
    color: var(--c-white);
}
.lang-switch:hover { background: var(--c-yellow); color: var(--c-dark); }
.search-toggle { background: none; border: none; color: var(--c-white); cursor: pointer; font-size: 1rem; }

.header-main {
    background: var(--c-navy);
    padding: 10px 0;
}
.header-main-inner { display: flex; align-items: center; gap: 24px; }
.site-logo img { height: 50px; }
.main-nav { flex: 1; display: flex; justify-content: flex-end; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--c-white); }
.nav-list { display: flex; gap: 2px; flex-wrap: wrap; }
.nav-list li a {
    display: block; padding: 8px 12px; font-size: .85rem; font-weight: 600;
    color: var(--c-white);
    transition: color .2s;
}
.nav-list li a:hover { color: var(--c-yellow); }
.nav-more { position: relative; }
.nav-dropdown {
    display: none; position: absolute; top: 100%; right: 0;
    background: var(--c-white); border: 1px solid var(--c-border);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    min-width: 200px; z-index: 50; padding: 6px 0;
}
.rtl .nav-dropdown { right: auto; left: 0; }
.nav-more:hover .nav-dropdown { display: block; }
.nav-dropdown li a { padding: 8px 16px; font-size: .85rem; color: var(--c-text) !important; }
.nav-dropdown li a:hover { background: var(--c-light); color: var(--c-primary) !important; }

/* Search overlay */
.search-overlay {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5,41,98,.92); z-index: 200; align-items: flex-start; justify-content: center;
    padding-top: 120px;
}
.search-overlay.active { display: flex; }
.search-form-overlay { display: flex; max-width: 600px; width: 100%; }
.search-form-overlay input {
    flex: 1; padding: 14px 20px; font-size: 1.2rem; border: none;
    font-family: var(--font-headline);
}
.search-form-overlay button {
    padding: 14px 20px; border: none; cursor: pointer;
    font-size: 1.2rem; background: var(--c-yellow); color: var(--c-dark);
}
.search-form-overlay button:last-child { background: rgba(255,255,255,.2); color: var(--c-white); }

/* ─── AD SPACES ─── */
.ad-space { text-align: center; padding: 10px 0; }
.ad-space img { max-width: 100%; }
.ad-header { background: var(--c-light); border-bottom: 1px solid var(--c-border); }
.ad-between { margin: 30px 0; padding: 16px; background: var(--c-light); border: 1px solid var(--c-border); }
.ad-inline { margin: 24px 0; padding: 16px; background: var(--c-light); border: 1px solid var(--c-border); }
.ad-widget img { width: 100%; }

/* ─── FEATURED SLIDER ─── */
.featured-slider {
    position: relative; overflow: hidden;
    margin-bottom: 10px;
    background: var(--c-dark); aspect-ratio: 16/7;
}
.slider-track { position: relative; width: 100%; height: 100%; }
.slide {
    position: absolute; inset: 0; opacity: 0;
    transition: opacity .6s ease;
}
.slide.active { opacity: 1; z-index: 1; }
.slide img, .slide-placeholder {
    width: 100%; height: 100%; object-fit: cover;
}
.slide-placeholder { background: linear-gradient(135deg, #041F4A, #052962); }
.slide-overlay {
    position: absolute; bottom: 0; left: 0; right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.82));
    padding: 50px 30px 30px; color: var(--c-white);
}
.slide-cat {
    display: inline-block; padding: 3px 10px; font-size: .72rem;
    font-weight: 700; text-transform: uppercase;
    margin-bottom: 8px; letter-spacing: .03em;
}
.slide-overlay h2 {
    font-family: var(--font-headline); font-size: 2rem;
    line-height: 1.2; margin-bottom: 6px; font-weight: 500;
}
.rtl .slide-overlay h2 { font-family: var(--font-ar); }
.slide-meta { font-size: .82rem; opacity: .75; }
.slide-link { display: block; width: 100%; height: 100%; }

.slider-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.45); color: var(--c-white);
    border: none; width: 40px; height: 40px; border-radius: 50%;
    font-size: 1rem; cursor: pointer; z-index: 2;
    transition: background .2s;
}
.slider-btn:hover { background: var(--c-navy); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.rtl .slider-prev { left: auto; right: 12px; }
.rtl .slider-next { right: auto; left: 12px; }

.slider-dots {
    position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
    display: flex; gap: 8px; z-index: 2;
}
.dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255,255,255,.35); border: none; cursor: pointer;
    transition: background .2s;
}
.dot.active { background: var(--c-yellow); }

/* ─── LAYOUT ─── */
.content-with-sidebar {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 0;
    margin-bottom: 40px;
}
.content-with-sidebar > .main-content {
    padding-right: 20px;
    border-right: 1px solid var(--c-border);
}
.rtl .content-with-sidebar > .main-content {
    padding-right: 0; padding-left: 20px;
    border-right: none; border-left: 1px solid var(--c-border);
}
.content-with-sidebar > .sidebar { padding-left: 20px; }
.rtl .content-with-sidebar > .sidebar { padding-left: 0; padding-right: 20px; }

/* Article page sidebar */
.article-page .content-with-sidebar > .main-content {
    padding-right: 20px;
    border-right: 1px solid var(--c-border);
}

/* ─── SECTION HEADERS ─── */
.section-header {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 12px;
    padding-top: 6px;
    border-top: 1px solid var(--c-border-dark);
}
.section-header h1,
.section-header h2 {
    font-family: var(--font-headline);
    font-size: 1.25rem; font-weight: 700;
    padding-top: 2px;
    border-top: 3px solid var(--c-primary);
    margin-top: -7px;
    line-height: 1.3;
    color: var(--c-text);
}
.rtl .section-header h1,
.rtl .section-header h2 { font-family: var(--font-ar); }
.see-all { font-size: .82rem; color: var(--c-blue); font-weight: 600; }
.see-all:hover { color: var(--c-primary); }
.see-all i { font-size: .7rem; }

/* ─── STORIES GRID ─── */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}
.story-main { grid-column: 1 / -1; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.story-main .story-img img { aspect-ratio: 5/2; object-fit: cover; }
.story-main h3 { font-size: 1.6rem; font-weight: 500; font-family: var(--font-headline); }
.rtl .story-main h3 { font-family: var(--font-ar); }
.story-card {
    padding: 0 10px;
    border-left: 1px solid var(--c-border);
}
.rtl .story-card { border-left: none; border-right: 1px solid var(--c-border); }
.story-card:first-child { padding-left: 0; border-left: none; }
.rtl .story-card:first-child { padding-right: 0; border-right: none; }
.story-link { display: block; }
.story-img { margin-bottom: 8px; overflow: hidden; }
.story-img img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.story-body {}
.story-cat {
    font-size: .72rem; font-weight: 700; text-transform: uppercase;
    display: block; margin-bottom: 4px; letter-spacing: .02em;
}
.story-body h3 {
    font-family: var(--font-headline);
    font-size: 1rem; font-weight: 500; line-height: 1.3; margin-bottom: 6px;
    color: var(--c-text);
}
.rtl .story-body h3 { font-family: var(--font-ar); }
.story-excerpt { font-size: .85rem; color: var(--c-muted); line-height: 1.5; margin-bottom: 6px; }
.story-meta { font-size: .75rem; color: var(--c-muted); display: flex; gap: 6px; }
.story-author { font-weight: 600; }
.story-link:hover h3 { color: var(--c-primary); }

/* ─── CATEGORY GRID ─── */
.category-section { margin-bottom: 30px; padding-top: 20px; }
.cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}
.cat-card {
    padding: 0 10px;
    border-left: 1px solid var(--c-border);
}
.rtl .cat-card { border-left: none; border-right: 1px solid var(--c-border); }
.cat-card:first-child { padding-left: 0; border-left: none; }
.rtl .cat-card:first-child { padding-right: 0; border-right: none; }
.cat-card a { display: block; }
.cat-card-img { overflow: hidden; margin-bottom: 6px; }
.cat-card-img img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.cat-card-body { padding: 4px 0; }
.cat-card-body h4 {
    font-family: var(--font-headline);
    font-size: .92rem; font-weight: 500; line-height: 1.3; margin-bottom: 4px;
    color: var(--c-text);
}
.rtl .cat-card-body h4 { font-family: var(--font-ar); }
.cat-card a:hover h4 { color: var(--c-primary); }

/* ─── LIVE UPDATES ─── */
.live-updates { margin-bottom: 30px; padding-top: 20px; }
.live-dot {
    display: inline-block; width: 10px; height: 10px; background: var(--c-primary);
    border-radius: 50%; animation: livePulse 2s ease-in-out infinite;
    margin-right: 6px; vertical-align: middle;
}
.rtl .live-dot { margin-right: 0; margin-left: 6px; }
@keyframes livePulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }
.live-item { border-top: 1px solid var(--c-border); }
.live-item a {
    display: flex; gap: 12px; padding: 10px 0;
    font-size: .9rem; align-items: baseline;
}
.live-item time { font-size: .75rem; color: var(--c-muted); font-weight: 600; min-width: 45px; }
.live-item span { font-family: var(--font-headline); font-weight: 500; color: var(--c-text); }
.rtl .live-item span { font-family: var(--font-ar); }
.live-item a:hover span { color: var(--c-primary); }

/* ─── SIDEBAR ─── */
.sidebar-widget {
    margin-bottom: 20px;
    padding-bottom: 16px;
}
.widget-title {
    font-family: var(--font-headline);
    font-size: 1rem; font-weight: 700;
    padding: 6px 0 10px;
    border-top: 3px solid var(--c-primary);
    margin-bottom: 0;
}
.rtl .widget-title { font-family: var(--font-ar); }
.most-read-list { counter-reset: mr; }
.most-read-list li { border-top: 1px solid var(--c-border); }
.most-read-list li a { display: flex; gap: 10px; padding: 10px 0; align-items: flex-start; }
.mr-rank {
    min-width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .88rem; flex-shrink: 0;
    color: var(--c-primary);
    font-family: var(--font-headline);
}
.mr-title {
    font-family: var(--font-headline);
    font-size: .88rem; line-height: 1.35; font-weight: 500;
    color: var(--c-text);
}
.rtl .mr-title { font-family: var(--font-ar); }
.most-read-list li a:hover .mr-title { color: var(--c-primary); }

.ad-widget { border-top: 1px solid var(--c-border); padding-top: 12px; }

/* ─── ARTICLES GRID (category/search/tag pages) ─── */
.articles-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 0; margin-bottom: 30px;
}
.article-card {
    padding: 0 10px;
    border-left: 1px solid var(--c-border);
    margin-bottom: 20px;
}
.rtl .article-card { border-left: none; border-right: 1px solid var(--c-border); }
.article-card:nth-child(3n+1) { padding-left: 0; border-left: none; }
.rtl .article-card:nth-child(3n+1) { padding-right: 0; border-right: none; }
.article-card a { display: block; }
.card-img { overflow: hidden; margin-bottom: 6px; }
.card-img img { width: 100%; aspect-ratio: 5/3; object-fit: cover; }
.card-body { padding: 4px 0; }
.card-body h3 {
    font-family: var(--font-headline);
    font-size: 1rem; font-weight: 500; line-height: 1.3; margin-bottom: 6px;
    color: var(--c-text);
}
.rtl .card-body h3 { font-family: var(--font-ar); }
.card-excerpt { font-size: .85rem; color: var(--c-muted); margin-bottom: 6px; }
.article-card a:hover h3 { color: var(--c-primary); }

/* ─── ARTICLE PAGE ─── */
.article-page { max-width: 100%; }
.breadcrumb { font-size: .78rem; color: var(--c-muted); margin-bottom: 12px; }
.breadcrumb a:hover { color: var(--c-primary); }
.article-cat {
    display: inline-block; color: var(--c-white); padding: 3px 10px;
    font-size: .72rem; font-weight: 700;
    text-transform: uppercase; margin-bottom: 10px; letter-spacing: .02em;
}
.article-title {
    font-family: var(--font-headline);
    font-size: 2.4rem; font-weight: 700; line-height: 1.15; margin-bottom: 10px;
    color: var(--c-text);
}
.rtl .article-title { font-family: var(--font-ar); }
.article-subtitle {
    font-family: var(--font-headline);
    font-size: 1.2rem; color: var(--c-text-secondary); line-height: 1.45;
    margin-bottom: 16px; font-weight: 400;
}
.rtl .article-subtitle { font-family: var(--font-ar); }
.article-meta-bar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 12px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.meta-author { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 700; display: block; font-size: .88rem; color: var(--c-primary); }
.meta-author time { font-size: .75rem; color: var(--c-muted); }

/* Share buttons */
.share-buttons { display: flex; gap: 4px; }
.share-btn {
    width: 34px; height: 34px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: .85rem; color: var(--c-white); border: none; cursor: pointer;
    transition: opacity .2s;
}
.share-btn:hover { opacity: .75; }
.share-fb { background: #1877f2; }
.share-tw { background: #121212; }
.share-wa { background: #25d366; }
.share-copy { background: var(--c-muted); }
.share-bottom {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 0; border-top: 1px solid var(--c-border);
    margin-top: 24px;
}
.share-bottom span { font-weight: 700; font-size: .88rem; }

/* Hero & media */
.article-hero { margin-bottom: 20px; }
.article-hero img { width: 100%; }
.article-hero figcaption { font-size: .78rem; color: var(--c-muted); margin-top: 6px; font-style: italic; }
.article-media { margin-bottom: 20px; }
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; }
.video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.article-media video, .article-media audio { width: 100%; }

/* Article body */
.article-body {
    font-size: 1.0625rem; line-height: 1.7;
    color: var(--c-text);
}
.article-body p { margin-bottom: 1.1em; }
.article-body h2, .article-body h3 {
    font-family: var(--font-headline);
    margin: 1.3em 0 .5em; font-weight: 700;
}
.rtl .article-body h2, .rtl .article-body h3 { font-family: var(--font-ar); }
.article-body img { margin: 1em 0; }
.article-body blockquote {
    border-left: 3px solid var(--c-muted); padding: 10px 20px;
    margin: 1.2em 0; font-style: italic; color: var(--c-text-secondary);
}
.rtl .article-body blockquote { border-left: none; border-right: 3px solid var(--c-muted); }
.article-body a { color: var(--c-primary); text-decoration: underline; }
.article-body a:hover { color: var(--c-primary-hover); }

/* Tags */
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tag-pill {
    background: transparent; padding: 4px 12px;
    font-size: .8rem; font-weight: 600; border: 1px solid var(--c-border-dark);
    transition: all .2s; color: var(--c-text);
}
.tag-pill:hover { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

/* Related articles */
.related-articles {
    margin-top: 36px; padding-top: 6px;
    border-top: 1px solid var(--c-border-dark);
}
.related-articles h3 {
    font-family: var(--font-headline);
    font-size: 1.2rem; font-weight: 700; margin-bottom: 14px;
    border-top: 3px solid var(--c-text);
    padding-top: 4px; margin-top: -7px;
}
.rtl .related-articles h3 { font-family: var(--font-ar); }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.related-card { padding: 0 10px; border-left: 1px solid var(--c-border); }
.rtl .related-card { border-left: none; border-right: 1px solid var(--c-border); }
.related-card:first-child { padding-left: 0; border-left: none; }
.rtl .related-card:first-child { padding-right: 0; border-right: none; }
.related-card img { width: 100%; aspect-ratio: 5/3; object-fit: cover; margin-bottom: 6px; }
.related-card h4 { font-family: var(--font-headline); font-size: .9rem; font-weight: 500; line-height: 1.3; color: var(--c-text); }
.rtl .related-card h4 { font-family: var(--font-ar); }
.related-card a:hover h4 { color: var(--c-primary); }
.related-card time { font-size: .75rem; color: var(--c-muted); }

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 2px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.page-btn {
    padding: 8px 14px; border: 1px solid var(--c-border);
    font-size: .85rem; font-weight: 600;
    transition: all .2s; color: var(--c-text);
}
.page-btn:hover, .page-btn.active { background: var(--c-navy); color: var(--c-white); border-color: var(--c-navy); }

/* ─── NEWSLETTER ─── */
.newsletter-section { background: var(--c-navy); color: var(--c-white); padding: 36px 0; }
.newsletter-inner {
    display: flex; align-items: center; gap: 30px; flex-wrap: wrap;
    justify-content: center; text-align: center;
}
.newsletter-text h3 { font-family: var(--font-headline); font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.rtl .newsletter-text h3 { font-family: var(--font-ar); }
.newsletter-text p { font-size: .88rem; opacity: .75; }
.newsletter-form { display: flex; max-width: 400px; }
.newsletter-form input {
    flex: 1; padding: 11px 14px; border: none; font-size: .9rem;
}
.newsletter-form button {
    padding: 11px 22px; background: var(--c-yellow); color: var(--c-dark);
    border: none; font-weight: 700; cursor: pointer;
    transition: background .2s;
}
.newsletter-form button:hover { background: #ffd900; }
.newsletter-msg { font-size: .82rem; margin-top: 6px; }

/* ─── STATIC PAGES ─── */
.static-page { max-width: 740px; margin: 30px auto; }
.static-page h1 {
    font-family: var(--font-headline);
    font-size: 2rem; font-weight: 700; margin-bottom: 20px;
    border-top: 3px solid var(--c-primary);
    padding-top: 10px;
    color: var(--c-text);
}
.rtl .static-page h1 { font-family: var(--font-ar); }
.static-body { font-size: 1.05rem; line-height: 1.75; }
.static-body h2 {
    font-family: var(--font-headline);
    font-size: 1.25rem; font-weight: 700; margin: 1.4em 0 .5em;
    color: var(--c-text);
}
.rtl .static-body h2 { font-family: var(--font-ar); }
.static-body ul { padding-left: 20px; margin: 1em 0; }
.rtl .static-body ul { padding-left: 0; padding-right: 20px; }
.static-body li { margin-bottom: .5em; list-style: disc; }

/* Contact */
.contact-card { display: flex; flex-direction: column; gap: 20px; margin: 20px 0; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item i { font-size: 1.2rem; color: var(--c-primary); margin-top: 4px; }
.contact-item h3 { font-size: .95rem; margin-bottom: 2px; }
.social-contact { margin-top: 20px; }
.social-icons { display: flex; gap: 10px; margin-top: 10px; }
.social-icon {
    width: 42px; height: 42px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; color: var(--c-white);
    font-size: 1rem; transition: opacity .2s;
}
.social-icon:hover { opacity: .8; }
.social-icon.fb { background: #1877f2; }
.social-icon.tw { background: #121212; }
.social-icon.wa { background: #25d366; }

/* ─── FOOTER ─── */
.site-footer {
    background: var(--c-navy); color: rgba(255,255,255,.85);
    padding: 36px 0 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 24px; }
.footer-brand p { margin-top: 10px; font-size: .85rem; opacity: .65; }
.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a { font-size: 1rem; opacity: .65; transition: opacity .2s; color: var(--c-white); }
.footer-social a:hover { opacity: 1; color: var(--c-yellow); }
.footer-links h4 { font-size: .85rem; font-weight: 700; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .03em; }
.footer-links ul { display: flex; flex-direction: column; gap: 6px; }
.footer-links a { font-size: .82rem; opacity: .65; transition: all .2s; }
.footer-links a:hover { opacity: 1; color: var(--c-yellow); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    padding: 14px 0; text-align: center; font-size: .78rem; opacity: .45;
}

/* ─── SEARCH PAGE ─── */
.search-page { margin-bottom: 40px; }
.search-page-form { display: flex; margin-bottom: 20px; max-width: 500px; }
.search-page-form input { flex: 1; padding: 11px 14px; border: 1px solid var(--c-border-dark); font-size: 1rem; }
.search-page-form button { padding: 11px 20px; background: var(--c-navy); color: var(--c-white); border: none; cursor: pointer; font-weight: 600; }
.search-info { margin-bottom: 20px; font-size: .92rem; color: var(--c-muted); }
.no-results { text-align: center; padding: 60px 0; font-size: 1.05rem; color: var(--c-muted); }
.cat-desc { font-size: .95rem; color: var(--c-muted); margin-bottom: 20px; line-height: 1.5; }

/* ─── ERROR PAGES ─── */
.error-page { text-align: center; padding: 80px 20px; }
.error-page h1 { font-family: var(--font-headline); font-size: 5rem; font-weight: 700; color: var(--c-navy); }
.error-page p { font-size: 1.1rem; margin: 10px 0 20px; color: var(--c-muted); }
.btn-primary {
    display: inline-block; padding: 10px 24px; background: var(--c-navy); color: var(--c-white);
    font-weight: 700; transition: background .2s;
}
.btn-primary:hover { background: var(--c-navy-dark); }

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
    .content-with-sidebar { grid-template-columns: 1fr 250px; }
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .related-grid { grid-template-columns: repeat(3, 1fr); }
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
    .article-card:nth-child(3n+1) { padding-left: 10px; border-left: 1px solid var(--c-border); }
    .article-card:nth-child(2n+1) { padding-left: 0; border-left: none; }
    .rtl .article-card:nth-child(3n+1) { padding-right: 10px; border-right: 1px solid var(--c-border); }
    .rtl .article-card:nth-child(2n+1) { padding-right: 0; border-right: none; }
}

@media (max-width: 768px) {
    :root { --gap: 14px; }
    .content-with-sidebar { grid-template-columns: 1fr; }
    .content-with-sidebar > .main-content { padding-right: 0; border-right: none; }
    .content-with-sidebar > .sidebar { padding-left: 0; border-top: 1px solid var(--c-border); padding-top: 20px; }
    .rtl .content-with-sidebar > .main-content { padding-left: 0; border-left: none; }
    .rtl .content-with-sidebar > .sidebar { padding-right: 0; }
    .sidebar { order: 2; }
    .stories-grid { grid-template-columns: 1fr; }
    .story-card { padding: 12px 0; border-left: none; border-top: 1px solid var(--c-border); }
    .rtl .story-card { border-right: none; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
    .cat-card { border-left: none; padding: 0 0 12px; border-bottom: 1px solid var(--c-border); }
    .rtl .cat-card { border-right: none; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .related-card { border-left: none; padding: 0 0 12px; }
    .rtl .related-card { border-right: none; }
    .articles-grid { grid-template-columns: 1fr; }
    .article-card { border-left: none; padding: 12px 0; border-top: 1px solid var(--c-border); }
    .rtl .article-card { border-right: none; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-toggle { display: block; }
    .nav-list {
        display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        background: var(--c-navy); flex-direction: column; align-items: center;
        justify-content: center; gap: 8px; z-index: 300;
    }
    .nav-list.active { display: flex; }
    .nav-list li a { font-size: 1.15rem; padding: 10px 20px; }
    .nav-more:hover .nav-dropdown { display: none; }
    .nav-more.open .nav-dropdown { display: block; }
    .nav-dropdown { position: static; box-shadow: none; border: none; background: transparent; display: none; }
    .nav-dropdown li a { color: var(--c-white) !important; }
    .featured-slider { aspect-ratio: 16/9; }
    .slide-overlay h2 { font-size: 1.2rem; }
    .article-title { font-size: 1.7rem; }
    .article-meta-bar { flex-direction: column; align-items: flex-start; }
    .header-main-inner { justify-content: space-between; }
    .newsletter-inner { flex-direction: column; }
    .newsletter-form { width: 100%; max-width: none; }
}

@media (max-width: 480px) {
    .cat-grid { grid-template-columns: 1fr; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .slide-overlay h2 { font-size: 1rem; }
    .slide-overlay { padding: 20px 16px 16px; }
    .article-title { font-size: 1.5rem; }
}
