/* ============================================================
   ZerodayPost — Modern v4
   Dark / Light mode · Card grid · Space Grotesk + Inter
   ============================================================ */

/* ── THEME TOKENS ── */
:root {
    --bg:      #080d1a;
    --bg-2:    #0d1629;
    --bg-3:    #132035;
    --bg-card: #0e1929;

    --red:     #ff2d55;
    --red-dim: rgba(255,45,85,0.12);

    /* category pill colors */
    --c-red:    #ff6b8a;  --c-red-bg:    rgba(255,45,85,0.14);
    --c-amber:  #fbbf24;  --c-amber-bg:  rgba(245,158,11,0.14);
    --c-cyan:   #22d3ee;  --c-cyan-bg:   rgba(34,211,238,0.11);
    --c-blue:   #60a5fa;  --c-blue-bg:   rgba(59,130,246,0.14);
    --c-green:  #34d399;  --c-green-bg:  rgba(16,185,129,0.11);
    --c-grey:   #64748b;  --c-grey-bg:   rgba(255,255,255,0.07);

    --text:   #eef2ff;
    --text-2: #8ba3c4;
    --text-3: #3f5872;

    --border:   rgba(255,255,255,0.06);
    --border-2: rgba(255,255,255,0.11);

    --fh: 'Space Grotesk', sans-serif;
    --fb: 'Inter', sans-serif;
    --r:  12px;
    --rs: 6px;
    --w:  1280px;
    --ease: .18s ease;
}

[data-theme="light"] {
    --bg:      #f1f5fb;
    --bg-2:    #ffffff;
    --bg-3:    #e6ecf5;
    --bg-card: #ffffff;

    --c-red:    #e11d48;  --c-red-bg:    rgba(225,29,72,0.09);
    --c-amber:  #b45309;  --c-amber-bg:  rgba(180,83,9,0.09);
    --c-cyan:   #0284c7;  --c-cyan-bg:   rgba(2,132,199,0.09);
    --c-blue:   #1d4ed8;  --c-blue-bg:   rgba(29,78,216,0.09);
    --c-green:  #059669;  --c-green-bg:  rgba(5,150,105,0.09);
    --c-grey:   #64748b;  --c-grey-bg:   rgba(0,0,0,0.06);

    --text:   #0c1220;
    --text-2: #455568;
    --text-3: #94a3b8;

    --border:   rgba(0,0,0,0.07);
    --border-2: rgba(0,0,0,0.13);

    --red-dim: rgba(255,45,85,0.08);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

html {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    transition: background var(--ease), color var(--ease);
}

body   { min-height: 100vh; display: flex; flex-direction: column; }
main   { flex: 1; }
a      { color: inherit; text-decoration: none; }
img    { max-width: 100%; display: block; }
h1,h2,h3,h4,h5,h6 { font-family: var(--fh); line-height: 1.15; color: var(--text); }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 2rem; }

/* ── MASTHEAD ── */
.masthead {
    border-bottom: 1px solid var(--border);
    background: rgba(8,13,26,0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky; top: 0; z-index: 200;
}
[data-theme="light"] .masthead { background: rgba(241,245,251,0.94); }

.masthead-top {
    max-width: var(--w); margin: 0 auto;
    padding: 0 2rem; height: 62px;
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
}

.brand {
    font-family: var(--fh);
    font-size: 1.25rem; font-weight: 800; letter-spacing: -0.05em; line-height: 1;
    color: var(--text);
    display: flex; align-items: baseline;
}
.brand-slash { color: var(--red); }

.masthead-right { display: flex; align-items: center; gap: 0.65rem; }
.masthead-date  { font-size: 0.73rem; color: var(--text-3); letter-spacing: 0.04em; font-weight: 500; }

/* ── THEME TOGGLE ── */
.theme-btn {
    width: 34px; height: 34px; border-radius: var(--rs);
    background: transparent;
    border: 1px solid var(--border-2);
    color: var(--text-2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.theme-btn:hover { border-color: var(--red); color: var(--text); background: var(--red-dim); }
.theme-btn svg   { width: 16px; height: 16px; display: block; }

/* show sun in dark mode, moon in light mode */
.icon-moon { display: none; }
[data-theme="light"] .icon-sun  { display: none; }
[data-theme="light"] .icon-moon { display: block; }

/* ── LANG SWITCHER ── */
.lang-switcher { position: relative; display: inline-flex; }
.lang-switcher select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--bg-3);
    border: 1px solid var(--border-2);
    border-radius: var(--rs);
    color: var(--text-2);
    font-size: 0.78rem; font-weight: 500;
    padding: 0.38rem 1.9rem 0.38rem 0.75rem;
    cursor: pointer; outline: none;
    max-width: 140px;
    transition: border-color var(--ease), color var(--ease), background var(--ease);
}
.lang-switcher select option { background: var(--bg-2); color: var(--text); }
.lang-switcher select:hover,
.lang-switcher select:focus { border-color: var(--red); color: var(--text); }
.lang-switcher::after {
    content: ''; position: absolute; right: 0.65rem; top: 50%;
    transform: translateY(-50%) translateY(1px);
    border: 4px solid transparent; border-top-color: var(--text-3);
    pointer-events: none;
}

/* ── CATEGORY NAV ── */
.cat-nav         { border-top: 1px solid var(--border); background: var(--bg-2); }
.cat-nav-inner   {
    max-width: var(--w); margin: 0 auto;
    padding: 0 2rem; height: 40px;
    display: flex; align-items: center;
    overflow-x: auto; scrollbar-width: none;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav a {
    font-size: 0.71rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--text-3); padding: 0 1rem; height: 40px;
    display: inline-flex; align-items: center;
    border-bottom: 2px solid transparent; white-space: nowrap;
    transition: color var(--ease), border-color var(--ease);
}
.cat-nav a:first-child { padding-left: 0; }
.cat-nav a:hover  { color: var(--text); border-bottom-color: var(--red); }
.cat-nav a.active { color: var(--text); border-bottom-color: var(--red); }

/* ── CATEGORY PILLS ── */
.cat-pill {
    display: inline-flex; align-items: center;
    padding: 0.2rem 0.65rem; border-radius: 20px;
    font-size: 0.61rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
    white-space: nowrap; width: fit-content;
}
.pill-red   { background: var(--c-red-bg);   color: var(--c-red);   }
.pill-amber { background: var(--c-amber-bg); color: var(--c-amber); }
.pill-cyan  { background: var(--c-cyan-bg);  color: var(--c-cyan);  }
.pill-blue  { background: var(--c-blue-bg);  color: var(--c-blue);  }
.pill-green { background: var(--c-green-bg); color: var(--c-green); }
.pill-grey  { background: var(--c-grey-bg);  color: var(--c-grey);  }

/* ── HOMEPAGE LAYOUT ── */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 1.5rem;
    padding: 2rem 0;
}

/* ── FEATURED STORY (card) ── */
.featured {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--red);
    border-radius: var(--r);
    padding: 2.25rem;
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
}
.featured::before {
    content: ''; position: absolute; inset: 0 auto auto 0;
    width: 50%; height: 130px;
    background: radial-gradient(ellipse at top left, var(--red-dim) 0%, transparent 70%);
    pointer-events: none;
}

.featured .cat-pill { margin-bottom: 1.25rem; position: relative; }

.featured-title {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800; letter-spacing: -0.04em; line-height: 1.1;
    margin-bottom: 1.1rem; position: relative;
}
.featured-title a { transition: color var(--ease); }
.featured-title a:hover { color: var(--red); }

.featured-summary {
    font-size: 0.95rem; color: var(--text-2); line-height: 1.75;
    max-width: 64ch; margin-bottom: 1.75rem; flex: 1;
}

.featured-meta {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; color: var(--text-3); margin-bottom: 1.75rem;
}
.featured-meta .source { color: var(--text-2); font-weight: 600; }

.read-btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1.35rem;
    background: var(--red); color: #fff;
    font-size: 0.82rem; font-weight: 700; letter-spacing: 0.02em;
    border-radius: var(--rs); width: fit-content;
    transition: background var(--ease), transform var(--ease);
}
.read-btn:hover { background: #e0264a; color: #fff; transform: translateY(-1px); }

/* ── LIVE FEED (card) ── */
.live-feed {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 1.5rem;
    display: flex; flex-direction: column;
}

.feed-header {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 1.25rem; padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.feed-live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red); flex-shrink: 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

.feed-label {
    font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3);
}

.feed-items { display: flex; flex-direction: column; flex: 1; }

.feed-item {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 0.45rem;
}
.feed-item:last-child  { border-bottom: none; padding-bottom: 0; }
.feed-item:first-child { padding-top: 0; }

.feed-item-title {
    font-size: 0.87rem; font-weight: 700; line-height: 1.38; letter-spacing: -0.01em;
    color: var(--text);
}
.feed-item-title a { transition: color var(--ease); }
.feed-item-title a:hover { color: var(--red); }

.feed-item-meta {
    font-size: 0.71rem; color: var(--text-3);
    display: flex; gap: 0.35rem; align-items: center;
}
.feed-item-meta .src { color: var(--text-2); font-weight: 500; }

/* ── SECTION HEADER ── */
.sec-header {
    display: flex; align-items: center; gap: 1rem;
    margin-bottom: 1.25rem;
}
.sec-label {
    font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3); white-space: nowrap;
}
.sec-line  { flex: 1; height: 1px; background: var(--border); }
.sec-count { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

/* ── NEWS CARD GRID ── */
.news-section { padding-bottom: 2.5rem; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    display: flex; flex-direction: column;
    overflow: hidden;
    transition: border-color var(--ease), transform var(--ease), box-shadow var(--ease);
}
.news-card:hover {
    border-color: var(--border-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}
[data-theme="light"] .news-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.10); }

.news-card-body {
    padding: 1.25rem;
    display: flex; flex-direction: column; flex: 1; gap: 0.65rem;
}

.news-card-title {
    font-size: 0.92rem; font-weight: 700; line-height: 1.42; letter-spacing: -0.01em;
    color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card-title a { transition: color var(--ease); }
.news-card-title a:hover { color: var(--red); }

.news-card-summary {
    font-size: 0.82rem; color: var(--text-2); line-height: 1.65;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}

.news-card-foot {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.71rem; color: var(--text-3);
    padding-top: 0.65rem; border-top: 1px solid var(--border);
    margin-top: auto;
}
.news-card-foot .src { color: var(--text-2); font-weight: 500; }

/* ── PAGINATION ── */
.pagination {
    display: flex; justify-content: center; align-items: center;
    gap: 0.3rem; padding: 2rem 0 2.5rem;
}
.pagination a, .pagination span {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.1rem; height: 2.1rem; padding: 0 0.4rem;
    border: 1px solid var(--border); border-radius: var(--rs);
    font-size: 0.83rem; color: var(--text-3); background: var(--bg-card);
    transition: all var(--ease);
}
.pagination a:hover       { border-color: var(--red); color: var(--red); background: var(--red-dim); }
.pagination span.active   { border-color: var(--red); color: var(--red); background: var(--red-dim); font-weight: 700; }

/* ── NEWSLETTER ── */
.nl-band {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 4rem 0; text-align: center;
}
.nl-band h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; margin-bottom: 0.5rem; }
.nl-band h2 em { font-style: normal; color: var(--red); }
.nl-band p  { color: var(--text-2); font-size: 0.93rem; margin-bottom: 1.75rem; }
.nl-row     { display: flex; gap: 0.5rem; max-width: 420px; margin: 0 auto; }
.nl-row .fi { flex: 1; }

/* ── FORMS ── */
.fg { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.fl { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }

.fi, .fs, .ft {
    background: var(--bg-3); border: 1px solid var(--border-2);
    border-radius: var(--rs); color: var(--text);
    font-family: var(--fb); font-size: 0.9rem; padding: 0.65rem 0.95rem;
    width: 100%; transition: border-color var(--ease);
}
.fi:focus, .fs:focus, .ft:focus { outline: none; border-color: var(--red); }
.fs { appearance: none; cursor: pointer; }
.ft { resize: vertical; min-height: 130px; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
    padding: 0.65rem 1.35rem; border-radius: var(--rs);
    font-family: var(--fb); font-size: 0.88rem; font-weight: 700;
    cursor: pointer; border: none; transition: all var(--ease);
    white-space: nowrap; letter-spacing: 0.02em;
}
.btn-red   { background: var(--red); color: #fff; }
.btn-red:hover   { background: #e0264a; color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; border: 1px solid var(--border-2); color: var(--text-2); }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }

/* compat aliases */
.btn-primary       { background: var(--red); color: #fff; }
.btn-primary:hover { background: #e0264a; color: #fff; }
.btn-outline       { background: transparent; border: 1px solid var(--border-2); color: var(--text-2); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.form-group   { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
.form-label   { font-size: 0.8rem; color: var(--text-2); font-weight: 500; }
.form-input, .form-select, .form-textarea {
    background: var(--bg-3); border: 1px solid var(--border-2); border-radius: var(--rs);
    color: var(--text); font-family: var(--fb); font-size: 0.9rem;
    padding: 0.65rem 0.95rem; width: 100%; transition: border-color var(--ease);
}
.form-select   { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 130px; }
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--red); }

/* ── ALERTS ── */
.alert         { padding: 0.7rem 1rem; border-radius: var(--rs); font-size: 0.85rem; }
.alert-success { background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.2); color: var(--c-green); }
.alert-error   { background: var(--red-dim); border: 1px solid rgba(255,45,85,0.25); color: #f87171; }

/* ── ARTICLE PAGE ── */
.article-wrap {
    display: grid; grid-template-columns: 1fr 290px;
    gap: 3rem; padding: 3rem 0; align-items: start;
}
.article-header {
    padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.article-kicker {
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--red); margin-bottom: 1rem;
}
.article-header h1 {
    font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 800;
    letter-spacing: -0.04em; line-height: 1.15; margin-bottom: 1rem;
}
.article-meta {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.8rem; color: var(--text-3); flex-wrap: wrap;
}
.article-meta .src { color: var(--text-2); font-weight: 600; }
.article-meta .sep { color: var(--text-3); }
.article-body { font-size: 1rem; line-height: 1.85; }
.article-body p { margin-bottom: 1.25rem; color: var(--text-2); }
.article-body p:first-of-type { color: var(--text); font-size: 1.05rem; }
.article-body h2, .article-body h3 { margin: 2rem 0 0.75rem; color: var(--text); }
.article-body a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    border-left: 3px solid var(--red); padding: 0.75rem 1.25rem;
    background: var(--bg-2); border-radius: 0 var(--rs) var(--rs) 0; margin: 1.5rem 0;
}
.article-tags {
    display: flex; flex-wrap: wrap; gap: 0.35rem;
    margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
}
.tag {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.2rem 0.55rem; border: 1px solid var(--border-2); border-radius: 3px; color: var(--text-3);
}

/* ── SIDEBAR ── */
.sidebar { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 1.25rem; }
.sb-box  { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r); padding: 1.25rem; }
.sb-label {
    font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--text-3); padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); margin-bottom: 0.75rem;
}
.sb-links { list-style: none; }
.sb-links li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.sb-links li:last-child  { border-bottom: none; padding-bottom: 0; }
.sb-links li:first-child { padding-top: 0; }
.sb-links a   { font-size: 0.85rem; color: var(--text); line-height: 1.4; transition: color var(--ease); display: block; }
.sb-links a:hover { color: var(--red); }
.sb-links .meta { font-size: 0.72rem; color: var(--text-3); margin-top: 0.2rem; }

/* ── INNER PAGE HERO ── */
.inner-hero { padding: 2.5rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.inner-hero h1 { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.04em; }
.inner-hero p  { color: var(--text-2); margin-top: 0.5rem; font-size: 0.95rem; }

/* ── ABOUT PAGE ── */
.about-stats        { display: flex; align-items: center; gap: 0; margin-bottom: 3rem;
                      border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.about-stat         { flex: 1; padding: 1.5rem 1rem; text-align: center; }
.about-stat-num     { display: block; font-size: 2rem; font-weight: 800;
                      letter-spacing: -0.04em; color: var(--red); font-family: var(--ff-head); }
.about-stat-label   { display: block; font-size: 0.78rem; color: var(--text-3);
                      text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.about-stat-sep     { width: 1px; align-self: stretch; background: var(--border); }

.about-how          { margin-bottom: 3rem; }
.about-steps        { display: flex; align-items: center; gap: 0; margin-bottom: 1.75rem; }
.about-step         { flex: 1; padding: 1.5rem 1rem; background: var(--bg-2);
                      border: 1px solid var(--border); border-radius: 10px; text-align: center; }
.about-step-icon    { width: 2.5rem; height: 2.5rem; margin: 0 auto 0.75rem;
                      color: var(--red); display: flex; align-items: center; justify-content: center; }
.about-step-icon svg { width: 100%; height: 100%; }
.about-step-num     { font-size: 0.7rem; font-weight: 700; color: var(--text-3);
                      letter-spacing: 0.1em; margin-bottom: 0.3rem; }
.about-step-title   { font-size: 0.95rem; font-weight: 700; color: var(--text-1); }
.about-step-arrow   { width: 2rem; flex-shrink: 0; text-align: center; color: var(--text-3); }
.about-step-arrow svg { width: 1.25rem; height: 1.25rem; }
[dir="rtl"] .about-step-arrow svg { transform: scaleX(-1); }

.about-how-desc     { font-size: 0.93rem; color: var(--text-2); line-height: 1.7;
                      max-width: 640px; }

.about-note-box     { border-left: 3px solid var(--red); padding: 1.25rem 1.5rem;
                      background: var(--bg-2); border-radius: 0 8px 8px 0; margin-bottom: 3rem; }
[dir="rtl"] .about-note-box { border-left: none; border-right: 3px solid var(--red);
                               border-radius: 8px 0 0 8px; }
.about-note-title   { font-size: 0.85rem; font-weight: 700; text-transform: uppercase;
                      letter-spacing: 0.06em; color: var(--text-3); margin-bottom: 0.5rem; }
.about-note-body    { font-size: 0.9rem; color: var(--text-2); line-height: 1.65;
                      margin-bottom: 0.75rem; }
.about-note-link    { font-size: 0.85rem; color: var(--red); text-decoration: none;
                      transition: opacity var(--ease); }
.about-note-link:hover { opacity: 0.75; }

/* ── EDITORIAL POLICY PAGE ── */
.policy-body        { max-width: 720px; padding-bottom: 4rem; }
.policy-section     { margin-bottom: 2.25rem; }
.policy-section h2  { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.75rem; }
.policy-section p   { color: var(--text-2); line-height: 1.75; font-size: 0.93rem; }
.policy-disclaimer  { border-left: 3px solid var(--red); padding-left: 1.5rem;
                      padding: 1.25rem 1.5rem 1.25rem 1.5rem; background: var(--bg-2);
                      border-radius: 0 8px 8px 0; }
[dir="rtl"] .policy-disclaimer { border-left: none; border-right: 3px solid var(--red);
                                 padding-left: 1.5rem; padding-right: 1.5rem;
                                 border-radius: 8px 0 0 8px; }
.policy-contact-cta { margin-top: 3rem; }

/* ── FOOTER ── */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 3rem 0 1.75rem; margin-top: auto; }
.footer-cols {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem;
    padding-bottom: 2.5rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem;
}
.f-brand   { font-family: var(--fh); font-size: 1.15rem; font-weight: 800; letter-spacing: -0.05em; margin-bottom: 0.75rem; }
.f-brand .slash { color: var(--red); }
.f-desc    { font-size: 0.83rem; color: var(--text-2); line-height: 1.65; max-width: 30ch; }
.f-col-title { font-size: 0.63rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.f-links   { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.f-links a { font-size: 0.84rem; color: var(--text-2); transition: color var(--ease); }
.f-links a:hover { color: var(--red); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.f-copy        { font-size: 0.77rem; color: var(--text-3); }
.f-disclaimer  { font-size: 0.74rem; color: var(--text-3); max-width: 50ch; text-align: right; }

/* ── CONTACT PAGE ── */
.contact-layout {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 2rem;
    padding-bottom: 4rem;
    align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 0.75rem; }

.cic {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    transition: border-color var(--ease);
}
.cic:hover { border-color: var(--border-2); }

.cic-icon {
    width: 38px; height: 38px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.cic-icon svg      { width: 17px; height: 17px; }
.cic-icon--red     { background: var(--c-red-bg);   color: var(--c-red);   }
.cic-icon--blue    { background: var(--c-blue-bg);  color: var(--c-blue);  }
.cic-icon--green   { background: var(--c-green-bg); color: var(--c-green); }
.cic-icon--grey    { background: var(--c-grey-bg);  color: var(--c-grey);  }

.cic-title { font-size: 0.88rem; font-weight: 700; color: var(--text); margin-bottom: 0.25rem; }
.cic-desc  { font-size: 0.79rem; color: var(--text-2); line-height: 1.55; }

.contact-note {
    padding: 0.9rem 1.1rem;
    background: var(--bg-3);
    border-left: 3px solid var(--red);
    border-radius: 0 var(--rs) var(--rs) 0;
    font-size: 0.8rem; color: var(--text-2); line-height: 1.6;
}
.contact-note strong { color: var(--text); }

.contact-form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    padding: 2rem;
}

.cfc-title {
    font-family: var(--fh);
    font-size: 1.05rem; font-weight: 700; letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}

/* ── RTL ── */
[dir="rtl"] { direction: rtl; }
[dir="rtl"] .masthead-top, [dir="rtl"] .masthead-right,
[dir="rtl"] .featured-meta, [dir="rtl"] .feed-header,
[dir="rtl"] .feed-item-meta, [dir="rtl"] .sec-header,
[dir="rtl"] .news-card-foot, [dir="rtl"] .article-meta,
[dir="rtl"] .footer-bottom, [dir="rtl"] .nl-row,
[dir="rtl"] .article-tags { flex-direction: row-reverse; }
[dir="rtl"] .home-grid    { direction: rtl; }
[dir="rtl"] .footer-cols  { direction: rtl; }
[dir="rtl"] .f-disclaimer { text-align: left; }
[dir="rtl"] .cat-nav-inner { flex-direction: row-reverse; }
[dir="rtl"] .article-body blockquote { border-left: none; border-right: 3px solid var(--red); border-radius: var(--rs) 0 0 var(--rs); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    .home-grid  { grid-template-columns: 1fr 300px; }
    .news-grid  { grid-template-columns: repeat(2, 1fr); }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-cols > *:first-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
    .home-grid       { grid-template-columns: 1fr; }
    .article-wrap    { grid-template-columns: 1fr; }
    .sidebar         { position: static; }
    .news-grid       { grid-template-columns: 1fr; }
    .footer-cols     { grid-template-columns: 1fr; gap: 1.5rem; }
    .f-disclaimer    { text-align: left; }
    .nl-row          { flex-direction: column; }
    .contact-layout  { grid-template-columns: 1fr; }
    .about-steps     { flex-direction: column; gap: 0.75rem; }
    .about-step-arrow { transform: rotate(90deg); }
    [dir="rtl"] .about-step-arrow { transform: rotate(90deg); }
    .about-stats     { flex-direction: column; }
    .about-stat-sep  { width: auto; height: 1px; align-self: stretch; }
}

@media (max-width: 480px) {
    .wrap            { padding: 0 1.25rem; }
    .masthead-top    { padding: 0 1.25rem; }
    .cat-nav-inner   { padding: 0 1.25rem; }
    .masthead-date   { display: none; }
}
