/* ═══════════════════════════════════════════════════════════════
   OturnNews — legit.ng-inspired stylesheet
═══════════════════════════════════════════════════════════════ */

:root {
    --primary:       #F89506;
    --primary-dark:  #D06000;
    --navy:          #1B192C;
    --navy-dark:     #0E0D18;
    --yellow:        #FDB920;
    --red:           #DB0000;
    --text:          #212121;
    --text-muted:    #6b727e;
    --text-subtle:   #757575;
    --border:        #d8d8d8;
    --border-soft:   #f3f3f3;
    --bg-gray:       #f3f3f3;
    --bg-light:      #fafafa;
    --white:         #ffffff;
    --container-max: 1400px;
    --font-body:     "Open Sans","Segoe UI",Arial,sans-serif;
    --font-display:  "Merriweather","Playfair Display",Georgia,serif;
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: 87.5%; line-height: 1.5; }
@media (min-width:800px) { html { font-size: 100%; } }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem; line-height: 1.5;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
article, aside, footer, header, main, nav, section { display: block; }
img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4,h5,h6 { margin: 0; font-weight: 700; }
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ─── Header ─────────────────────────────────────────────── */
.l-header { position: sticky; top: 0; z-index: 40; background: var(--white); border-bottom: 1px solid var(--primary); }
.l-header__top {
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
    height: 72px; max-width: var(--container-max); margin: 0 auto; padding: 0 20px; position: relative;
}
.c-header-award {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; font-weight: 700; color: var(--navy);
    text-transform: uppercase; letter-spacing: 0.4px;
}
.c-header-award svg { flex-shrink: 0; }
.c-header-logo { justify-self: center; display: block; }
.c-header-logo img { display: block; height: 40px; max-width: 240px; object-fit: contain; }
.c-header-logo__text {
    font-family: var(--font-display); font-weight: 900; font-size: 26px;
    color: var(--primary); letter-spacing: -0.5px;
}
.c-header-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.c-header-search {
    display: none; align-items: center; gap: 6px;
    border: 1.5px solid var(--primary); border-radius: 4px;
    padding: 6px 10px; background: var(--white);
}
.c-header-search input { border: 0; outline: 0; font-family: inherit; font-size: 13px; background: transparent; width: 180px; }
@media (min-width: 900px) { .c-header-search { display: inline-flex; } }
.c-header-burger {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border: 0; background: transparent;
    cursor: pointer; padding: 0; color: var(--primary);
}
.c-header-burger { color: var(--primary) !important; }
.c-header-burger:hover { background: rgba(248,149,6,0.10); border-radius: 10px; }
.c-header-burger:focus-visible { outline: 3px solid rgba(248,149,6,0.25); outline-offset: 2px; border-radius: 10px; }
.c-header-burger svg { width: 26px; height: 26px; }
@media (min-width: 1024px) { .c-header-burger { display: none; } }

/* Teal navigation bar */
.c-header-menu { background: var(--primary); color: var(--white); display: none; }
@media (min-width: 1024px) { .c-header-menu { display: block; } }
.c-header-menu__nav { max-width: var(--container-max); margin: 0 auto; display: flex; overflow-x: auto; }
.c-header-menu__nav::-webkit-scrollbar { display: none; }
.c-header-menu__item { position: relative; }
.c-header-menu__item.has-children { display: flex; align-items: stretch; }
.c-header-menu__link {
    padding: 14px 18px; font-size: 14px; font-weight: 500;
    color: var(--white); white-space: nowrap;
    transition: background .15s; position: relative;
}
.c-header-menu__link:first-child { font-weight: 700; font-size: 15px; }
.c-header-menu__link:first-child::after {
    content: ""; position: absolute; right: 0; top: 10px; bottom: 10px;
    width: 1px; background: rgba(255,255,255,0.35);
}
.c-header-menu__link:hover, .c-header-menu__link--active { background: var(--primary-dark); color: var(--white); }
.c-header-menu__toggle{
    border:0;background:transparent;color:#fff;cursor:pointer;
    padding:14px 10px; font-size:12px; line-height:1;
}
.c-header-menu__item.has-children:hover .c-header-menu__toggle,
.c-header-menu__item.has-children.menu-open .c-header-menu__toggle { background: var(--primary-dark); }
.c-header-menu__item.has-children:hover .c-header-submenu,
.c-header-menu__item.has-children:focus-within .c-header-submenu,
.c-header-menu__item.has-children.menu-open .c-header-submenu { display: block; }
.c-header-submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e9eaf2;
    box-shadow: 0 14px 30px rgba(16,18,32,.16);
    z-index: 80;
}
.c-header-submenu__link {
    display: block;
    padding: 10px 12px;
    color: var(--navy);
    font-size: 13px;
    border-bottom: 1px solid #f1f2f8;
}
.c-header-submenu__link:last-child { border-bottom: 0; }
.c-header-submenu__link:hover { background: #f7f8fd; color: var(--primary-dark); }

/* Mobile global menu */
.global-menu {
    display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--primary); color: var(--white); z-index: 50; overflow-y: auto;
}
.global-menu--open { display: block; }
.global-menu__container { max-width: var(--container-max); margin: 0 auto; padding: 20px; }
.global-menu__search { display: flex; gap: 12px; margin-bottom: 24px; }
.global-menu__search input {
    flex: 1; padding: 12px; border: 0; border-radius: 4px; font-size: 16px; font-family: inherit; outline: 0;
}
.global-menu__search button {
    padding: 12px 16px; background: transparent; border: 2px solid var(--white);
    color: var(--white); border-radius: 4px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.global-menu__list { list-style: none; margin: 0; padding: 0; }
.global-menu__list li { border-bottom: 1px solid rgba(255,255,255,0.15); }
.global-menu__row { display:flex; align-items:center; justify-content:space-between; gap:8px; }
.global-menu__row > a { flex: 1; min-width: 0; }
.global-menu__list a { display: block; padding: 14px 0; color: var(--white); font-size: 16px; font-weight: 500; }
.global-menu__toggle{
    border:1px solid rgba(255,255,255,.3); background:rgba(255,255,255,.06); color:#fff;
    border-radius:6px; width:28px; height:28px; line-height:1; cursor:pointer; font-size:18px;
}
.global-menu__sublist { list-style: none; margin: 0 0 10px 14px; padding: 0; display:none; }
.global-menu__sublist.menu-open { display:block; }
.global-menu__sublist li { border-bottom: 0; }
.global-menu__sublist a { padding: 7px 0; font-size: 14px; opacity: .9; }

/* Desktop dropdowns must not be clipped by nav overflow container */
@media (min-width: 1024px) {
  .c-header-menu__nav { overflow: visible; }
  .c-header-menu__item { z-index: 2; }
  .c-header-menu__item.has-children.menu-open { z-index: 90; }
}

/* ─── Cookie banner ───────────────────────────────────── */
.cookie-banner{
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 9999;
}
.cookie-banner__inner{
    max-width: 980px;
    margin: 0 auto;
    background: rgba(27,25,44,.95);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    padding: 14px 14px;
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 18px 60px rgba(0,0,0,.25);
    backdrop-filter: blur(10px);
}
.cookie-banner__text{ font-size: 12.5px; line-height: 1.45; color: rgba(255,255,255,.82); }
.cookie-banner__text strong{ display:block; font-size: 13.5px; color:#fff; margin-bottom: 2px; }
.cookie-banner__actions{ display:flex; gap:8px; flex-wrap: wrap; justify-content:flex-end; }
.cookie-btn{
    border: 0;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    padding: 10px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 12.5px;
}
.cookie-btn--ghost{
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
}
.cookie-modal{
    display:none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    z-index: 10000;
    padding: 16px;
}
.cookie-modal__dialog{
    max-width: 620px;
    margin: 6vh auto 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 25px 70px rgba(0,0,0,.35);
}
.cookie-modal__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-soft);
}
.cookie-x{
    border:0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: var(--text-muted);
}
.cookie-modal__body{ padding: 14px 16px 16px; }
.cookie-row{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap: 12px;
    padding: 12px 10px;
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    margin-bottom: 10px;
}
.cookie-row small{ color: var(--text-muted); }
.cookie-modal__foot{ display:flex; gap:10px; justify-content:flex-end; margin-top: 10px; }
@media (max-width: 640px){
    .cookie-banner__inner{ flex-direction: column; align-items: stretch; }
    .cookie-banner__actions{ justify-content: stretch; }
    .cookie-btn{ width: 100%; justify-content:center; }
}

/* ─── Live notice (homepage) ─────────────────────────── */
.live-notice{
    display:flex;
    align-items:center;
    gap:10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(248,149,6,.14), rgba(253,185,32,.08));
    border: 1px solid rgba(248,149,6,.30);
    color: var(--navy);
}
.live-notice:hover{ border-color: rgba(248,149,6,.55); }
.live-notice__dot{
    width:10px;height:10px;border-radius:999px;
    background: #DB0000;
    box-shadow: 0 0 0 5px rgba(219,0,0,.12);
    animation: livePulse 1.35s infinite ease-in-out;
    flex: 0 0 10px;
}
@keyframes livePulse{
    0%,100%{ transform: scale(1); opacity: 1; }
    50%{ transform: scale(1.15); opacity: .7; }
}
.live-notice__text{ font-size: 13px; color: var(--navy); overflow:hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.live-notice__cta{ font-size: 12.5px; font-weight: 800; color: var(--primary-dark); white-space: nowrap; }
@media (max-width: 640px){
    .live-notice__text{ white-space: normal; }
}

/* ─── Livestream page ─────────────────────────────────── */
.live-hero{ padding: 26px 0 14px; }
.live-hero h1{ font-family: var(--font-display); font-size: clamp(22px, 3.6vw, 34px); margin-bottom: 6px; color: var(--navy); }
.live-hero p{ color: var(--text-muted); max-width: 860px; }
.live-embed{
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.08);
}
.live-embed__frame{
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display:block;
}

/* ─── Breaking ticker ───────────────────────────────── */
.c-breaking { background: #000; color: var(--white); padding: 10px 0; font-size: 13px; font-weight: 600; }
.c-breaking__inner {
    display: flex; align-items: center; gap: 14px;
    max-width: var(--container-max); margin: 0 auto; padding: 0 20px;
}
.c-breaking__label {
    flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px;
    background: var(--red); color: var(--white); padding: 4px 10px;
    font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; border-radius: 3px;
}
.c-breaking__label::before {
    content: ""; display: inline-block;
    width: 7px; height: 7px; background: var(--white); border-radius: 50%;
    animation: live-pulse 1.7s ease-in-out infinite;
}
@keyframes live-pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .28; transform: scale(.92); } }
.c-breaking__items { flex: 1; overflow: hidden; white-space: nowrap; }
.c-breaking__track { display: inline-block; animation: ticker 40s linear infinite; padding-left: 100%; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
.c-breaking__track a { display: inline-block; color: var(--white); margin-right: 40px; padding-left: 20px; position: relative; }
.c-breaking__track a::before { content: "•"; color: var(--red); position: absolute; left: 0; font-size: 16px; }

.l-main { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }

/* ─── Section headlines ─────────────────────────────────── */
.c-section-headline {
    position: relative; text-align: center; margin: 32px 0 20px;
}
.c-section-headline::before {
    content: ""; position: absolute; left: 0; right: 0; top: 50%;
    height: 1px; background: var(--primary); z-index: 0;
}
.c-section-headline__text {
    position: relative; z-index: 1; background: var(--white);
    color: var(--primary); font-size: 15px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    padding: 0 20px; display: inline-block;
}
.c-article-column-headline {
    background: var(--primary); color: var(--white);
    font-size: 12px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.3px; padding: 0 12px; line-height: 40px; margin: 0 0 15px;
}

/* ─── Hero section ─────────────────────────────────────── */
/* ═══════════════ HERO: Latest | Featured | Trending ══════════════
   Desktop (≥1024px): 3 columns (1fr 2.2fr 1fr) — Featured wider
   Tablet  (≥640px):  Featured spans full width on top, Latest+Trending below
   Mobile  (<640px):  Stack with Featured FIRST (highlighted big card shows first)
═══════════════════════════════════════════════════════════════════ */
.l-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 20px 0 30px;
}
.l-hero__latest   { order: 2; min-width: 0; }
.l-hero__featured { order: 1; min-width: 0; } /* featured comes FIRST on mobile */
.l-hero__trending { order: 3; min-width: 0; }

@media (min-width: 640px) {
    .l-hero { grid-template-columns: 1fr 1fr; gap: 24px; }
    .l-hero__featured { grid-column: 1 / -1; order: 1; }
    .l-hero__latest   { order: 2; }
    .l-hero__trending { order: 3; }
}
@media (min-width: 1024px) {
    .l-hero {
        grid-template-columns: 1fr 2.2fr 1fr;
        gap: 28px;
    }
    .l-hero__latest   { grid-column: 1; order: 1; }
    .l-hero__featured { grid-column: 2; order: 2; }
    .l-hero__trending { grid-column: 3; order: 3; }
}

/* Featured grid: 4 smaller cards below the big highlighted card */
.l-hero__featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}
/* Mobile: show all 4 small featured cards (big + 4 = 5 total) */
.l-hero__featured-grid .c-article-card { display: block; }
@media (min-width: 480px) and (max-width: 1023px) {
    .l-hero__featured-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    .l-hero__featured-grid { grid-template-columns: repeat(2, 1fr); }
    /* Desktop: keep only first 2 small cards (big + 2 = 3 total) */
    .l-hero__featured-grid .c-article-card:nth-child(n+3) { display: none; }
}
@media (min-width: 1300px) {
    .l-hero__featured-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Old hero section (kept for backward-compat if anything else uses it) */
.l-hero-section { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 20px 0; }
@media (min-width: 768px) { .l-hero-section { grid-template-columns: 2fr 1fr; } }
@media (min-width: 1100px) { .l-hero-section { grid-template-columns: 3fr 1fr 1fr; } }
.l-hero-section__main-wrap { display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 640px) { .l-hero-section__main-wrap { flex-direction: row; gap: 20px; } }
.l-hero-section__top { flex: 2; min-width: 0; }
.l-hero-section__latest { flex: 1; min-width: 0; }

/* ─── Article cards ─────────────────────────────────── */
.c-article-card-main { position: relative; margin-bottom: 20px; }
.c-article-card-main__image {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    display: block; margin-bottom: 12px; background: var(--bg-gray);
}
.c-article-card-main__headline {
    color: var(--navy); font-family: var(--font-display);
    font-size: 22px; font-weight: 900; line-height: 1.25;
    margin: 0 0 10px; display: block;
}
@media (min-width: 1100px) { .c-article-card-main__headline { font-size: 28px; } }
.c-article-card-main__headline:hover span { background-size: 100% 100%; }
.c-article-card-main__headline span {
    background-image: linear-gradient(0deg, var(--yellow) 0%, var(--yellow) 20%, transparent 20%, transparent 100%);
    background-repeat: no-repeat; background-size: 0 100%;
    transition: background-size .2s; padding: 0 2px;
}
.c-article-card-main__description {
    color: var(--text-muted); font-size: 14px; margin-bottom: 10px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

.c-article-card-highlighted {
    position: relative; background: var(--navy); color: var(--white);
    padding-bottom: 16px; margin-bottom: 20px;
}
.c-article-card-highlighted__image { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.c-article-card-highlighted__headline {
    display: block; color: var(--white); font-size: 15px; font-weight: 700;
    line-height: 1.35; padding: 12px 16px 0;
}

.c-article-card-horizontal {
    position: relative; display: flex; gap: 14px;
    padding: 12px 0; border-bottom: 1px solid var(--border);
}
.c-article-card-horizontal:last-child { border-bottom: 0; }
.c-article-card-horizontal__image {
    width: 95px; height: 76px; flex-shrink: 0;
    object-fit: cover; background: var(--bg-gray); display: block;
}
.c-article-card-horizontal__body { flex: 1; min-width: 0; }
.c-article-card-horizontal__headline {
    color: var(--navy); font-weight: 700; font-size: 15px;
    line-height: 1.3; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.c-article-card-horizontal__headline:hover { text-decoration: underline; }

.c-article-card { position: relative; padding: 15px 0; border-bottom: 1px solid var(--border); }
.c-article-card:last-child { border-bottom: 0; }
.c-article-card--with-image { padding-top: 0; }
.c-article-card__image {
    width: 100%; aspect-ratio: 16/9; object-fit: cover;
    display: block; margin-bottom: 10px; background: var(--bg-gray);
}
.c-article-card__headline {
    color: var(--navy); font-weight: 700; font-size: 15px;
    line-height: 1.35; margin: 0 0 6px;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.c-article-card__headline:hover { text-decoration: underline; }

/* ─── Article info row (clock, author, category) ────── */
.c-article-info {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    color: var(--text-subtle); font-size: 12px; line-height: 1rem; margin-top: 8px;
}
.c-article-info__time, .c-article-info__author { display: inline-flex; align-items: center; gap: 5px; }
.c-article-info__time svg, .c-article-info__author svg { width: 12px; height: 12px; flex-shrink: 0; }
.c-article-info__category {
    background: var(--bg-light); border: 1px solid var(--border-soft);
    color: var(--text-subtle); font-size: 11px; font-weight: 500;
    padding: 4px 9px; text-decoration: none; display: inline-block;
}
.c-article-info__category:hover { opacity: .7; }
.c-article-info__category--featured { background: var(--yellow); border: 0; color: var(--navy); font-weight: 700; }
.c-article-info--highlighted { color: #cfcfcf; margin: 0 16px; }
.c-article-info--highlighted svg { filter: brightness(0) invert(1); }
.c-article-info--highlighted .c-article-info__category { background: var(--yellow); border: 0; color: var(--navy); }

/* ─── Featured collection (4-col with dividers) ─────── */
.l-featured-collection {
    display: grid; grid-template-columns: 1fr; gap: 20px;
    padding: 28px 0; border-top: 2px solid var(--border-soft);
    border-bottom: 2px solid var(--border-soft); margin: 30px 0;
}
@media (min-width: 640px) { .l-featured-collection { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .l-featured-collection { grid-template-columns: repeat(4, 1fr); } }
.l-featured-collection__item { position: relative; padding-right: 20px; }
@media (min-width: 1024px) {
    .l-featured-collection__item:not(:last-child)::after {
        content: ""; position: absolute; right: 0; top: 0; bottom: 0;
        width: 1px; background: var(--border);
    }
}

/* ─── Category block ─────────────────────────────── */
.l-article-column { margin-bottom: 32px; }
.l-article-column__header {
    display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px;
}
.l-article-column__title {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 8px 16px; font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
}
.l-article-column__more {
    font-size: 12px; color: var(--primary); font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
}
.l-article-column__more:hover { text-decoration: underline; }
.l-two-column { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 700px) { .l-two-column { grid-template-columns: 2fr 3fr; } }

/* Category section grid — big card on left, side list of 4 on right.
   On mobile stacks (big card on top, side list below).
   On desktop fills full width of container. */
.l-category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}
@media (min-width: 700px) {
    .l-category-grid {
        grid-template-columns: 1.3fr 1fr;
        gap: 28px;
    }
}
@media (min-width: 1024px) {
    .l-category-grid {
        grid-template-columns: 1.4fr 1fr;
        gap: 32px;
    }
}
.l-category-grid__hero { min-width: 0; margin-bottom: 0; }
.l-category-grid__side { min-width: 0; display: flex; flex-direction: column; }

/* ─── Trending / sidebar list ───────────────────── */
.c-trending-list { background: var(--bg-light); padding: 0 14px 14px; border: 1px solid var(--border-soft); }
.c-trending-list__item {
    display: flex; gap: 12px; padding: 14px 0;
    border-bottom: 1px solid var(--border); position: relative;
}
.c-trending-list__item:last-child { border-bottom: 0; }
.c-trending-list__num {
    font-family: var(--font-display); font-size: 30px; font-weight: 900;
    color: var(--primary); line-height: 1; flex-shrink: 0; width: 32px;
}
.c-trending-list__headline {
    color: var(--navy); font-weight: 700; font-size: 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.c-trending-list__headline:hover { text-decoration: underline; }

/* ─── Ads ───────────────────────────────────── */
.c-adv {
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-gray); padding: 22px 12px 12px;
    position: relative; min-height: 80px; margin: 20px 0;
}
.c-adv::before {
    content: "Advertisement"; position: absolute; top: 4px; left: 0; right: 0;
    font-size: 11px; color: #a7a7a7; font-weight: 300; text-align: center;
}
.c-adv img { max-width: 100%; height: auto; display: block; }
.c-adv:empty { display: none; }
.ad-container { width: 100%; }

/* ─── Post single ───────────────────────────── */
.l-post-page { display: grid; grid-template-columns: 1fr; gap: 30px; padding: 20px 0; }
@media (min-width: 1024px) { .l-post-page { grid-template-columns: 1fr 300px; } }
.c-post-header { margin-bottom: 24px; }
.c-post-category {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.c-post-title {
    font-family: var(--font-display); font-size: 28px; font-weight: 900;
    color: var(--navy); line-height: 1.2; margin: 0 0 14px;
}
@media (min-width: 800px) { .c-post-title { font-size: 38px; } }
.c-post-excerpt { font-size: 17px; color: var(--text-muted); line-height: 1.5; margin-bottom: 18px; }
.c-post-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
    padding: 12px 0; border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text-subtle);
}
.c-post-author { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }
.c-post-thumbnail { width: 100%; margin: 20px 0; }
.c-post-thumbnail img { width: 100%; display: block; }
.c-post-content { font-family: var(--font-body); font-size: 17px; line-height: 1.7; color: #2a2a2a; }
.c-post-content p { margin: 0 0 18px; }
.c-post-content h2 { font-family: var(--font-display); font-size: 24px; color: var(--navy); margin: 28px 0 14px; }
.c-post-content h3 { font-size: 20px; color: var(--navy); margin: 22px 0 12px; }
.c-post-content a { color: var(--primary); text-decoration: underline; }
.c-post-content img { margin: 18px 0; max-width: 100%; height: auto; }
.c-post-content blockquote {
    border-left: 4px solid var(--primary); padding: 2px 0 2px 18px; margin: 22px 0;
    color: var(--text-muted); font-style: italic;
}
.c-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.c-post-tag {
    background: var(--bg-light); border: 1px solid var(--border-soft);
    color: var(--text-subtle); padding: 5px 12px; font-size: 12px; text-decoration: none;
}
.c-post-tag:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

/* Comments */
.c-comments {
    margin-top: 34px;
    border-top: 1px solid var(--border-soft);
    padding-top: 18px;
}
.c-comments__list {
    display: grid;
    gap: 12px;
    margin: 14px 0 24px;
}
.c-comment {
    border: 1px solid var(--border-soft);
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px 12px;
}
.c-comment__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 6px;
    color: var(--text-subtle);
    font-size: 12px;
}
.c-comment p { margin: 0; color: var(--text); line-height: 1.55; }
.c-comments__empty {
    border: 1px dashed var(--border);
    border-radius: 10px;
    padding: 14px;
    color: var(--text-muted);
    font-size: 14px;
}
.c-comments__form-wrap {
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px;
    background: var(--bg-light);
}
.c-comments__form-wrap h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.c-comments__note { margin: 0 0 12px; color: var(--text-muted); font-size: 13px; }
.c-comments__feedback { margin-top: 10px; font-size: 13px; color: var(--text-muted); min-height: 18px; }
.c-comments__feedback.ok { color: #0f7a33; }
.c-comments__feedback.err { color: #b3261e; }
@media (max-width: 640px) {
    .c-comments__form-wrap { padding: 12px; }
}

/* ─── Sidebar widgets ────────────────────────── */
.c-sidebar { display: flex; flex-direction: column; gap: 24px; }
.c-sidebar-widget { border: 1px solid var(--border-soft); }
.c-sidebar-widget__title {
    background: var(--primary); color: var(--white); padding: 10px 14px;
    font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px;
}
.c-sidebar-widget__body { padding: 14px; }

/* ─── Newsletter block ───────────────────────── */
.c-newsletter-block {
    background: var(--navy); color: var(--white);
    padding: 28px 20px;
    margin: 30px 0; text-align: center;
}
.c-newsletter-block__title { font-family: var(--font-display); font-size: 22px; font-weight: 900; margin: 0 0 6px; }
.c-newsletter-block__desc { color: rgba(255,255,255,0.85); font-size: 14px; margin: 0 0 16px; }
.c-newsletter-block__form {
    display: flex; gap: 8px;
    max-width: 440px; margin: 0 auto;
    flex-wrap: wrap;
}
.c-newsletter-block__form input {
    flex: 1 1 220px;
    min-width: 0;           /* let it shrink inside flex without overflow */
    padding: 12px 14px;
    border: 0; outline: 0; border-radius: 3px;
    font-family: inherit; font-size: 14px;
    width: 100%;
}
.c-newsletter-block__form button {
    flex: 0 0 auto;
    padding: 12px 22px;
    background: var(--primary); color: var(--white);
    border: 0; border-radius: 3px;
    font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 1px;
    cursor: pointer; transition: background .15s;
    white-space: nowrap;
}
.c-newsletter-block__form button:hover { background: var(--primary-dark); }

/* Mobile: stack input and button vertically — input goes full-width,
   button sits below it. Also reduce padding on small phones. */
@media (max-width: 640px) {
    .c-newsletter-block {
        padding: 24px 16px;
        margin: 24px 0;
    }
    .c-newsletter-block__title { font-size: 19px; }
    .c-newsletter-block__desc  { font-size: 13px; }
    .c-newsletter-block__form {
        flex-direction: column;
        gap: 10px;
        max-width: 100%;
    }
    .c-newsletter-block__form input,
    .c-newsletter-block__form button {
        width: 100%;
        flex: 1 1 100%;
    }
}

.newsletter-msg { margin-top: 10px; font-size: 13px; }
.newsletter-msg.success { color: var(--yellow); }
.newsletter-msg.error { color: #ffb3b3; }

/* ─── Footer ───────────────────────────────────── */
.l-footer { background: var(--navy); color: rgba(255,255,255,0.85); padding: 40px 0 0; margin-top: 60px; }
.l-footer__top {
    display: grid; grid-template-columns: 1fr; gap: 32px;
    max-width: var(--container-max); margin: 0 auto; padding: 0 20px 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
@media (min-width: 700px) { .l-footer__top { grid-template-columns: 2fr 1fr 1fr 1.5fr; } }
.l-footer h3 {
    color: var(--white); font-size: 13px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    margin: 0 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--primary);
}
.l-footer__about p { font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.75); margin: 14px 0; }
.l-footer__logo {
    font-family: var(--font-display); font-size: 22px; font-weight: 900;
    color: var(--white); margin-bottom: 6px;
}
.l-footer__logo img { max-height: 48px; width: auto; object-fit: contain; }
.l-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.l-footer__links a { color: rgba(255,255,255,0.8); font-size: 14px; transition: color .15s; }
.l-footer__links a:hover { color: var(--primary); }
.l-footer__socials { display: flex; gap: 10px; margin-top: 10px; }
.l-footer__socials a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: rgba(255,255,255,0.1); color: var(--white); transition: background .2s;
}
.l-footer__socials a:hover { background: var(--primary); }
.l-footer__bottom {
    max-width: var(--container-max); margin: 0 auto; padding: 18px 20px;
    font-size: 12px; color: rgba(255,255,255,0.55);
    display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
}

/* ─── Flash / buttons / forms / utility ────────── */
.flash { display: flex; align-items: center; gap: 10px; padding: 12px 16px; margin: 16px 0; font-size: 14px; border-radius: 3px; font-weight: 500; }
.flash-success { background: #e6f7f1; color: #D06000; border-left: 4px solid var(--primary); }
.flash-error   { background: #fdecec; color: #c40303; border-left: 4px solid var(--red); }
.flash-info    { background: #e6f2fa; color: var(--navy); border-left: 4px solid var(--navy); }
.flash-warning { background: #fff8e1; color: #8a6d00; border-left: 4px solid #ffb800; }
.flash-icon { font-size: 18px; }

.page-intro { margin: 30px 0 24px; }
.page-badge {
    display: inline-block; background: var(--primary); color: var(--white);
    padding: 5px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.page-headline {
    font-family: var(--font-display); font-size: 32px; font-weight: 900;
    color: var(--navy); margin: 0 0 10px; line-height: 1.15;
}
@media (min-width: 800px) { .page-headline { font-size: 42px; } }
.page-subline { font-size: 17px; color: var(--text-muted); line-height: 1.5; max-width: 720px; }

.posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 100%;
}
@media (min-width: 520px)  { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .posts-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .posts-grid { grid-template-columns: repeat(4, 1fr); } }
.post-card { min-width: 0; }
.post-card .card-thumb { display: block; margin-bottom: 0; }
.post-card .card-thumb img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.post-card { position: relative; }
.post-card .card-thumb { display: block; margin-bottom: 12px; }
.post-card .card-thumb img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

.pagination { display: flex; gap: 4px; justify-content: center; margin: 40px 0; flex-wrap: wrap; }
.page-btn {
    min-width: 40px; padding: 8px 12px; border: 1px solid var(--border);
    background: var(--white); color: var(--navy);
    font-size: 14px; font-weight: 500; text-align: center; transition: all .15s;
}
.page-btn:hover, .page-btn.active { background: var(--primary); color: var(--white); border-color: var(--primary); }
.page-dots { padding: 8px 4px; color: var(--text-subtle); }

.search-form { display: flex; align-items: stretch; border: 2px solid var(--primary); border-radius: 4px; overflow: hidden; background: var(--white); }
.search-input { flex: 1; padding: 12px 14px; border: 0; outline: 0; font-size: 14px; font-family: inherit; }
.search-btn { padding: 0 18px; border: 0; background: var(--primary); color: var(--white); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.search-btn:hover { background: var(--primary-dark); }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-weight: 600; font-size: 13px; color: var(--navy); margin-bottom: 6px; }
.form-group input[type="text"], .form-group input[type="email"], .form-group input[type="tel"],
.form-group input[type="password"], .form-group input[type="number"], .form-group input[type="url"],
.form-group input[type="search"], .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--border);
    font-family: inherit; font-size: 14px; color: var(--text); background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(248,149,6,0.15);
}

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 22px; border: 0; background: var(--primary); color: var(--white);
    font-family: inherit; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    cursor: pointer; text-decoration: none; transition: background .15s; border-radius: 0; }
.btn:hover { background: var(--primary-dark); }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--bg-gray); color: var(--text); }
.btn-secondary:hover { background: #e0e0e0; }
.btn-sm { padding: 7px 14px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 15px; }

#back-to-top {
    position: fixed; bottom: 24px; right: 24px; width: 44px; height: 44px;
    border: 0; border-radius: 50%; background: var(--primary); color: var(--white);
    display: flex; align-items: center; justify-content: center; cursor: pointer;
    opacity: 0; pointer-events: none; transform: translateY(12px);
    transition: opacity .25s, transform .25s; z-index: 30;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#back-to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-to-top:hover { background: var(--primary-dark); }

.contact-layout { display: grid; gap: 30px; grid-template-columns: 1fr; margin: 24px 0; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 2fr 1fr; } }
.contact-info { background: var(--bg-light); border: 1px solid var(--border-soft); padding: 20px; }
.contact-info h3 { font-size: 14px; color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.contact-info p { font-size: 14px; color: var(--text); margin: 0 0 10px; }

.static-page-content { font-size: 16px; line-height: 1.7; color: #2a2a2a; }
.static-page-content p { margin: 0 0 16px; }
.static-page-content h2 { color: var(--navy); font-family: var(--font-display); font-size: 24px; margin: 24px 0 12px; }
.static-page-content h3 { color: var(--navy); font-size: 19px; margin: 20px 0 10px; }
.static-page-content a { color: var(--primary); text-decoration: underline; }
.static-page-content ul, .static-page-content ol { margin: 0 0 16px; padding-left: 24px; }

.text-center { text-align: center; }
.no-thumb {
    background: linear-gradient(135deg, var(--bg-gray), #e0e0e0);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-subtle); font-size: 32px; aspect-ratio: 16/9;
}

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .5s, transform .5s; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Anonymous submission pages */
.anon-hero {
    padding: 70px 0 46px;
    background:
      radial-gradient(circle at 10% 20%, rgba(248,149,6,.38), transparent 44%),
      radial-gradient(circle at 85% 12%, rgba(253,185,32,.20), transparent 36%),
      linear-gradient(135deg, #121226, #171932 56%, #1f2147);
}
.anon-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.anon-hero__title {
    margin-top: 14px;
    max-width: 920px;
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 58px);
    line-height: 1.08;
}
.anon-hero__desc {
    margin-top: 16px;
    max-width: 760px;
    font-size: 17px;
    color: rgba(255,255,255,.88);
}
.anon-hero__cta { margin-top: 24px; border-radius: 8px; }
.anon-grid-wrap { background: #fff; padding: 32px 0 52px; }
.anon-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.anon-card {
    border: 1px solid #ececf4;
    border-radius: 14px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(10,12,24,.06);
}
.anon-card h2 { font-size: 18px; color: var(--navy); margin-bottom: 7px; }
.anon-card p { color: var(--text-muted); }
@media (max-width: 900px) {
    .anon-grid { grid-template-columns: 1fr; }
}
