/* ==========================================================================
   TNP News — front-end theme
   Mobile-first, layered on top of Bootstrap 5.3.
   Sections: 1 tokens · 2 base · 3 header/nav · 4 breaking · 5 cards
             6 sections · 7 rail · 8 article · 9 forms/pagination
             10 footer · 11 utilities/motion
   ========================================================================== */

/* ------------------------------------------------------------ 1. tokens -- */
:root {
    --brand:        #cc0000;
    --brand-dark:   #a31d20;
    --brand-ink:    #7d1113;
    --brand-soft:   #fdecec;

    --ink:          #15171a;
    --ink-2:        #3c4149;
    --muted:        #6b7280;
    --line:         #e6e8eb;
    --line-soft:    #f0f1f3;
    --bg:           #f4f5f7;
    --surface:      #ffffff;
    --dark:         #14161a;
    --dark-2:       #1e2127;

    --radius:       12px;
    --radius-sm:    8px;
    --radius-lg:    18px;
    --shadow-xs:    0 1px 2px rgba(16, 24, 40, .06);
    --shadow-sm:    0 2px 8px rgba(16, 24, 40, .07);
    --shadow-md:    0 8px 24px rgba(16, 24, 40, .10);

    --header-h:     58px;
    --font-hi:      "Noto Sans Devanagari", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

    --bs-body-font-family: var(--font-hi);
}

/* -------------------------------------------------------------- 2. base -- */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-hi);
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    padding-bottom: 62px;            /* mobile app bar */
}
@media (min-width: 992px) { body { padding-bottom: 0; } }

a { color: inherit; text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--brand); }

h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.35; margin: 0; }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }

::selection { background: var(--brand); color: #fff; }

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 2000;
    background: var(--brand); color: #fff; padding: 10px 18px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid rgba(204, 0, 0, .45); outline-offset: 2px; border-radius: 4px; }

.site-main { display: block; }

/* scrollbars on horizontal rails */
.hide-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------- 3. header & nav -- */
.site-header { background: var(--surface); box-shadow: var(--shadow-xs); position: relative; z-index: 1030; }

/* -- top bar -- */
.topbar {
    background: var(--dark);
    color: #cfd3d9;
    font-size: 13px;
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 16px; }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 14px; }
.topbar a { color: #cfd3d9; }
.topbar a:hover { color: #fff; }
.topbar i { color: var(--brand); margin-right: 4px; }
.topbar__sep { width: 1px; height: 14px; background: rgba(255, 255, 255, .18); }
.topbar__follow { font-size: 12px; color: #8d949d; letter-spacing: .2px; }
.topbar__social {
    width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: rgba(255, 255, 255, .08); transition: background .2s ease;
}
.topbar__social i { margin: 0; color: #cfd3d9; font-size: 12px; transition: color .2s ease; }
/* --brand is set inline per network, so each icon lights up in its own colour */
.topbar__social:hover { background: var(--brand); }
.topbar__social:hover i { color: #fff; }
.topbar__date { color: #fff; font-weight: 500; }
/* the only route to Live TV on desktop now that the home page has no embed */
.topbar__live {
    display: inline-flex; align-items: center; gap: 7px;
    background: transparent; border: 1px solid rgba(255, 255, 255, .22);
    color: #fff; font-size: 12.5px; font-weight: 600; font-family: inherit;
    padding: 3px 12px; border-radius: 999px;
    transition: background .2s ease, border-color .2s ease;
}
.topbar__live:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* -- masthead -- */
.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__grid {
    display: flex; align-items: center; gap: 12px;
    min-height: var(--header-h);
    padding: 8px 0;
}
@media (min-width: 992px) { .masthead__grid { min-height: 96px; gap: 24px; } }

.masthead__burger {
    width: 40px; height: 40px; border: 0; background: transparent; padding: 9px 8px;
    display: flex; flex-direction: column; justify-content: space-between; flex: 0 0 auto;
}
.masthead__burger span { display: block; height: 2.5px; width: 100%; background: var(--ink); border-radius: 2px; }

.masthead__logo { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.masthead__logo img { height: 38px; width: auto; }
@media (min-width: 992px) { .masthead__logo { flex: 0 0 auto; } .masthead__logo img { height: 54px; } }
.masthead__tagline { font-size: 12px; color: var(--muted); border-left: 2px solid var(--brand); padding-left: 10px; }

/* The banner is only printed when an ad actually fills it, so no min-height is
   reserved here — the masthead simply closes up when there is nothing to show. */
.masthead__banner { flex: 1 1 auto; justify-content: center; align-items: center; }
.masthead__banner .ad-slot { margin: 0; width: 100%; max-width: 728px; }

/* margin-left keeps the actions hard right even when the banner is absent */
.masthead__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: auto; }

.btn-live {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--brand); color: #fff; border: 0;
    font-size: 12.5px; font-weight: 700; letter-spacing: .3px;
    padding: 8px 12px; border-radius: 999px;
    box-shadow: 0 4px 14px rgba(204, 0, 0, .28);
}
.btn-live:hover { background: var(--brand-dark); color: #fff; }
@media (min-width: 992px) { .btn-live { padding: 10px 18px; font-size: 14px; } }

.btn-live__dot {
    width: 8px; height: 8px; border-radius: 50%; background: #fff;
    box-shadow: 0 0 0 0 rgba(255, 255, 255, .8);
    animation: livePulse 1.6s infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 255, 255, .75); }
    70%  { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.btn-icon {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
    background: var(--surface); color: var(--ink-2);
    display: inline-flex; align-items: center; justify-content: center;
}
.btn-icon:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* -- main nav -- */
.mainnav { background: var(--brand); display: none; }
@media (min-width: 992px) { .mainnav { display: block; } }
.mainnav__list {
    list-style: none; margin: 0; padding: 0;
    display: flex; align-items: stretch; flex-wrap: wrap;
}
.mainnav__list > li > a {
    display: flex; align-items: center; gap: 6px;
    color: #fff; font-size: 15px; font-weight: 500;
    padding: 12px 14px; position: relative;
}
.mainnav__list > li > a:hover,
.mainnav__list > li > a.is-active { background: rgba(0, 0, 0, .18); color: #fff; }
.mainnav__list > li > a.is-active::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: #fff; border-radius: 2px;
}
.mainnav__list .dropdown-menu {
    border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md); padding: 6px; margin-top: 0; min-width: 200px;
}
.mainnav__list .dropdown-item { border-radius: 6px; font-size: 14.5px; padding: 8px 12px; }
.mainnav__list .dropdown-item:hover { background: var(--brand-soft); color: var(--brand); }
.mainnav__cta { margin-left: auto; }
.mainnav__cta a { background: var(--dark); }
.mainnav__cta a:hover { background: #000; }

/* -- search drawer -- */
.search-panel { background: var(--dark-2); }
.search-panel__form { display: flex; gap: 10px; padding: 14px 0; }
.search-panel__form .form-control { height: 46px; border: 0; }
.btn-brand {
    background: var(--brand); color: #fff; border: 0; font-weight: 600;
    padding: 10px 20px; border-radius: var(--radius-sm);
}
.btn-brand:hover { background: var(--brand-dark); color: #fff; }

/* sticky compact header on scroll */
.site-header.is-stuck {
    position: fixed; top: 0; left: 0; right: 0;
    box-shadow: var(--shadow-md); animation: dropIn .25s ease;
}
.site-header.is-stuck .topbar { display: none !important; }
.site-header.is-stuck .masthead__grid { min-height: 56px; }
.site-header.is-stuck .masthead__logo img { height: 34px; }
.site-header.is-stuck .masthead__banner { display: none !important; }
@keyframes dropIn { from { transform: translateY(-100%); } to { transform: translateY(0); } }
body.is-stuck-pad { padding-top: var(--stuck-pad, 0); }

/* -- offcanvas -- */
.mobile-menu { width: 300px; max-width: 86vw; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid var(--line); }
.mobile-menu__search { display: flex; margin-bottom: 14px; }
.mobile-menu__search .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); border-right: 0; }
.mobile-menu__search button {
    border: 1px solid var(--brand); background: var(--brand); color: #fff;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 0 14px;
}
.mobile-menu__live {
    width: 100%; border: 0; background: var(--brand); color: #fff; font-weight: 700;
    padding: 11px; border-radius: var(--radius-sm); margin-bottom: 16px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.mobile-menu__list { list-style: none; margin: 0; padding: 0; }
.mobile-menu__list a {
    display: flex; align-items: center; gap: 10px;
    padding: 11px 4px; border-bottom: 1px solid var(--line-soft); font-weight: 500;
}
.mobile-menu__list i { color: var(--brand); width: 20px; text-align: center; }
.mobile-menu__list img { width: 20px; height: 20px; object-fit: contain; }
.mobile-menu__social { display: flex; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
/* --brand is overridden inline per network, so each icon gets its own colour */
.mobile-menu__social a {
    width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--brand);
    display: inline-flex; align-items: center; justify-content: center;
}
.mobile-menu__social a:hover { color: #fff; filter: brightness(1.1); }
.mobile-menu__foot { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }

/* -- live modal -- */
.live-modal .modal-content { background: #0d0f12; color: #fff; border: 0; border-radius: var(--radius); overflow: hidden; }
.live-modal .modal-header { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.live-modal .modal-title { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.live-modal .modal-body { padding: 0; }
.live-modal .modal-footer { border-top: 1px solid rgba(255, 255, 255, .1); }

/* --------------------------------------------------------- 4. breaking -- */
.breaking { background: var(--dark); color: #fff; }
.breaking__bar { display: flex; align-items: center; gap: 0; min-height: 42px; }

.breaking__label {
    display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto;
    background: var(--brand); color: #fff; font-weight: 700; font-size: 13px;
    padding: 9px 14px; position: relative; letter-spacing: .3px;
}
.breaking__label::after {
    content: ""; position: absolute; right: -10px; top: 0; border-style: solid;
    border-width: 21px 0 21px 10px; border-color: transparent transparent transparent var(--brand);
}
.breaking__pulse {
    width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: livePulse 1.6s infinite;
}

.breaking__viewport { flex: 1 1 auto; overflow: hidden; margin-left: 18px; }
.breaking__track {
    display: inline-flex; align-items: center; gap: 42px; white-space: nowrap;
    animation: marquee 45s linear infinite; will-change: transform;
}
.breaking__viewport:hover .breaking__track,
.breaking.is-paused .breaking__track { animation-play-state: paused; }
.breaking__item { font-size: 14px; color: #eceef1; }
.breaking__item i { color: var(--brand); margin-right: 7px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.breaking__toggle {
    flex: 0 0 auto; width: 34px; height: 34px; margin-left: 8px;
    border: 0; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; font-size: 12px;
}
.breaking__toggle:hover { background: var(--brand); }

/* ------------------------------------------------------------ 5. cards -- */
.c-tag {
    display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
    color: var(--brand); background: var(--brand-soft);
    padding: 3px 9px; border-radius: 4px; margin-bottom: 8px;
}
.c-tag--solid { background: var(--brand); color: #fff; }
a.c-tag:hover { background: var(--brand); color: #fff; }

.c-meta { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.c-meta--light { color: rgba(255, 255, 255, .82); }

/* grid card */
.c-card {
    background: var(--surface); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-xs); height: 100%;
    display: flex; flex-direction: column;
    transition: transform .22s ease, box-shadow .22s ease;
}
.c-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.c-card__media { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-soft); }
.c-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.c-card:hover .c-card__media img { transform: scale(1.05); }
.c-card__cat {
    position: absolute; left: 10px; bottom: 10px;
    background: rgba(204, 0, 0, .94); color: #fff; font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 4px;
}
.c-card__body { padding: 14px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.c-card__title { font-size: 16px; line-height: 1.45; }
.c-card__title a:hover { color: var(--brand); }
.c-card__blurb { font-size: 13.5px; color: var(--ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.c-card__body .c-meta { margin-top: auto; }

/* horizontal list card */
.c-list { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.c-list:last-child { border-bottom: 0; }
.c-list__thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--line-soft); }
.c-list__thumb img { width: 100%; height: 100%; object-fit: cover; }
.c-list__body { flex: 1 1 auto; min-width: 0; }
.c-list__body .c-tag { margin-bottom: 4px; }
.c-list__title { font-size: 14.5px; line-height: 1.45; margin-bottom: 5px; }
.c-list__title a:hover { color: var(--brand); }
@media (min-width: 768px) { .c-list__thumb { flex-basis: 116px; width: 116px; } .c-list__title { font-size: 15.5px; } }

/* text-only */
.c-text { padding: 11px 0; border-bottom: 1px dashed var(--line); }
.c-text:last-child { border-bottom: 0; }
.c-text__title { font-size: 14.5px; font-weight: 600; line-height: 1.5; margin-bottom: 4px; }
.c-text:hover .c-text__title { color: var(--brand); }

/* overlay card */
.c-overlay { position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 190px; background: #111; }
.c-overlay > a { display: block; height: 100%; }
.c-overlay img { width: 100%; height: 100%; object-fit: cover; opacity: .78; transition: transform .45s ease, opacity .3s ease; position: absolute; inset: 0; }
.c-overlay:hover img { transform: scale(1.06); opacity: .62; }
.c-overlay__body {
    position: relative; z-index: 2; padding: 16px; color: #fff;
    display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-height: 190px;
    background: linear-gradient(to top, rgba(0, 0, 0, .88) 0%, rgba(0, 0, 0, .45) 45%, rgba(0, 0, 0, 0) 100%);
}
.c-overlay__title { font-size: 17px; line-height: 1.42; color: #fff; margin-bottom: 6px; }
@media (min-width: 768px) { .c-overlay { min-height: 230px; } .c-overlay__body { min-height: 230px; } .c-overlay__title { font-size: 19px; } }

/* hero card */
.c-hero { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.c-hero__media { display: block; aspect-ratio: 16 / 9; background: var(--line-soft); }
.c-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.c-hero__body { padding: 16px; }
.c-hero__title { font-size: 21px; line-height: 1.38; margin-bottom: 8px; }
.c-hero__title a:hover { color: var(--brand); }
.c-hero__blurb { color: var(--ink-2); font-size: 14.5px; margin-bottom: 8px; }
@media (min-width: 768px) { .c-hero__body { padding: 22px; } .c-hero__title { font-size: 28px; } }
@media (min-width: 1200px) { .c-hero__title { font-size: 32px; } }

/* --------------------------------------------------------- 6. sections -- */
.section { padding: 26px 0; }
.section--tight { padding: 16px 0; }
.section--alt { background: var(--surface); }
.section--dark { background: var(--dark); color: #fff; }

.sec-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--line);
    position: relative;
}
.sec-head::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 78px; height: 2px; background: var(--brand); }
.sec-head__title { font-size: 19px; display: inline-flex; align-items: center; gap: 8px; }
.sec-head__title i { color: var(--brand); }
.sec-head__more { font-size: 13.5px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sec-head--light { border-bottom-color: rgba(255, 255, 255, .18); }
.sec-head--light .sec-head__title { color: #fff; }
.sec-head--light .sec-head__more { color: #fff; }
@media (min-width: 768px) { .sec-head__title { font-size: 22px; } }

/* -------------------------------------- big story (directly under the nav) */
.section--topstory { padding: 16px 0 0; }

/* One tinted panel holds all three columns, so they read as a single block:
   the image is inset (not full-bleed) and the columns are split by hairlines
   rather than by a change of background. */
.topstory {
    position: relative;
    display: grid; grid-template-columns: 1fr; gap: 0;
    padding: 14px;
    background: linear-gradient(135deg, #ffffff 0%, #fffbfb 52%, #fef5f5 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.topstory::before {
    content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--brand-ink) 55%, var(--brand) 100%);
}
@media (min-width: 992px) {
    .topstory { grid-template-columns: 1.05fr 1fr .82fr; padding: 20px; }
}

.topstory__media {
    display: block; position: relative; aspect-ratio: 16 / 9;
    background: var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.topstory__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.topstory:hover .topstory__media img { transform: scale(1.04); }
.topstory__flag {
    position: absolute; left: 12px; top: 12px;
    background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
    padding: 4px 10px; border-radius: 4px;
    box-shadow: 0 4px 12px rgba(204, 0, 0, .32);
}
@media (min-width: 992px) { .topstory__media { aspect-ratio: auto; height: 100%; min-height: 310px; } }

.topstory__body { padding: 14px 2px 4px; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 992px) { .topstory__body { padding: 4px 24px; justify-content: center; } }
.topstory__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topstory__meta .c-tag { margin-bottom: 0; }
.topstory__title {
    font-size: 21px; line-height: 1.38; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.topstory__title a:hover { color: var(--brand); }
.topstory__blurb {
    font-size: 14.5px; line-height: 1.7; color: var(--ink-2); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.topstory__cta {
    align-self: flex-start; display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: var(--brand);
    transition: gap .2s ease;
}
.topstory__cta:hover { gap: 11px; }
@media (min-width: 992px) {
    .topstory__title { font-size: 26px; }
    .topstory__blurb { -webkit-line-clamp: 5; }
}

/* no background of its own — only a hairline keeps it apart from column 2 */
.topstory__side { padding: 14px 2px 2px; margin-top: 12px; border-top: 1px solid var(--line); }
@media (min-width: 992px) {
    .topstory__side { margin-top: 0; padding: 4px 0 4px 24px; border-top: 0; border-left: 1px solid var(--line); }
}
.topstory__side-head {
    position: relative;
    font-size: 12.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase;
    color: var(--brand); margin-bottom: 6px; padding-bottom: 10px;
}
.topstory__side-head::after {
    content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--brand) 0 38px, var(--line) 38px);
}

.topstory__list { list-style: none; margin: 0; padding: 0; }
.topstory__list li { border-bottom: 1px dashed var(--line); }
.topstory__list li:last-child { border-bottom: 0; }
.topstory__list a { display: block; position: relative; padding: 10px 0 10px 30px; }

/* chevron marker, drawn in CSS: a soft disc (::before) with a ">" made from
   two borders (::after) sitting on top of it. Both fill in on hover. */
.topstory__list a::before {
    content: ""; position: absolute; left: 0; top: 11px;
    width: 20px; height: 20px; border-radius: 50%;
    /* a stronger tint than --brand-soft, which would vanish into the panel */
    background: rgba(204, 0, 0, .11);
    transition: background .22s ease, transform .22s ease;
}
.topstory__list a::after {
    content: ""; position: absolute; left: 10px; top: 21px;
    width: 5px; height: 5px;
    border-right: 2px solid var(--brand);
    border-bottom: 2px solid var(--brand);
    transform: translate(-62%, -50%) rotate(-45deg);
    transition: border-color .22s ease, transform .22s ease;
}
.topstory__list a:hover::before { background: var(--brand); transform: translateX(3px); }
.topstory__list a:hover::after {
    border-color: #fff;
    transform: translate(-62%, -50%) translateX(3px) rotate(-45deg);
}

.topstory__list-title {
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    font-size: 14px; font-weight: 600; line-height: 1.5;
    transition: color .2s ease, transform .22s ease;
}
.topstory__list a:hover .topstory__list-title { color: var(--brand); transform: translateX(3px); }
.topstory__list .c-meta { font-size: 11.5px; margin-top: 3px; }

@media (prefers-reduced-motion: reduce) {
    .topstory__list a:hover::before,
    .topstory__list a:hover .topstory__list-title { transform: none; }
    .topstory__list a:hover::after { transform: translate(-62%, -50%) rotate(-45deg); }
}

/* ------------------------------------------------- featured slider ------ */
.section--slider { padding: 18px 0 6px; }

.hero-slider {
    border-radius: var(--radius-lg); overflow: hidden;
    background: #0d0f12; box-shadow: var(--shadow-sm);
}
.hero-slider .carousel-item { transition: transform .55s ease-in-out; }

.hero-slide { display: block; position: relative; color: #fff; }
.hero-slide:hover { color: #fff; }

.hero-slide__media { position: relative; aspect-ratio: 4 / 3; background: #16181d; }
.hero-slide__media img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 6s ease-out;
}
.hero-slider .carousel-item.active .hero-slide__media img { transform: scale(1.05); }
.hero-slide__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.94) 8%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.12) 78%);
}

.hero-slide__body {
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
    padding: 18px 16px 46px;
}
.hero-slide__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.hero-slide__meta .c-tag { margin-bottom: 0; }

.hero-slide__title {
    font-size: 20px; line-height: 1.4; color: #fff; margin-bottom: 8px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .55);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide__blurb {
    font-size: 14px; line-height: 1.65; color: rgba(255, 255, 255, .88); margin: 0 0 10px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-slide__cta {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: 13px; font-weight: 700; color: #fff;
    background: var(--brand); padding: 8px 16px; border-radius: 999px;
    transition: background .2s ease, gap .2s ease;
}
.hero-slide:hover .hero-slide__cta { background: var(--brand-dark); gap: 11px; }

@media (min-width: 576px) {
    .hero-slide__media { aspect-ratio: 16 / 9; }
    .hero-slide__title { font-size: 26px; }
}
@media (min-width: 992px) {
    .section--slider { padding: 22px 0 4px; }
    .hero-slide__media { aspect-ratio: 21 / 9; max-height: 520px; }
    .hero-slide__body { padding: 30px 40px 56px; max-width: 68%; }
    .hero-slide__title { font-size: 36px; -webkit-line-clamp: 2; }
    .hero-slide__blurb { font-size: 15.5px; }
}

/* arrows */
.hero-slider__nav {
    width: 46px; height: 46px; top: 50%; transform: translateY(-50%);
    opacity: 1; border-radius: 50%; border: 0;
    background: rgba(0, 0, 0, .42); color: #fff; backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; font-size: 17px;
    transition: background .2s ease, transform .2s ease;
}
.hero-slider__nav:hover, .hero-slider__nav:focus-visible {
    background: var(--brand); color: #fff; transform: translateY(-50%) scale(1.06);
}
.carousel-control-prev.hero-slider__nav { left: 10px; }
.carousel-control-next.hero-slider__nav { right: 10px; }
@media (min-width: 992px) {
    .carousel-control-prev.hero-slider__nav { left: 18px; }
    .carousel-control-next.hero-slider__nav { right: 18px; }
}

/* dots */
.hero-slider__dots { margin-bottom: 12px; gap: 7px; align-items: center; }
.hero-slider__dots [data-bs-target] {
    width: 9px; height: 9px; border-radius: 50%; border: 0; opacity: 1;
    background: rgba(255, 255, 255, .45); margin: 0; transition: all .25s ease;
}
.hero-slider__dots .active { background: var(--brand); width: 26px; border-radius: 999px; }

@media (prefers-reduced-motion: reduce) {
    .hero-slider .carousel-item { transition: none; }
    .hero-slider .carousel-item.active .hero-slide__media img { transform: none; }
}

/* home hero grid */
.hero-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 992px) {
    .hero-grid { grid-template-columns: 1.55fr 1fr 1fr; align-items: start; }
    .hero-grid__side { display: grid; gap: 14px; }
}

/* headline rail — replaced the live-TV embed that used to sit here */
.hero-panel { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-xs); }
.hero-panel__head {
    display: flex; align-items: center; gap: 8px; padding: 10px 14px;
    background: var(--dark); color: #fff; font-size: 14px; font-weight: 700;
}
.hero-panel__head i { color: var(--brand); }
.hero-panel__list { padding: 4px 14px; }
.hero-panel__more {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 11px; font-size: 13px; font-weight: 700; color: var(--brand);
    border-top: 1px solid var(--line-soft); background: var(--bg);
    transition: background .2s ease, color .2s ease;
}
.hero-panel__more:hover { background: var(--brand); color: #fff; }

/* category block */
.cat-block { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xs); height: 100%; }
@media (min-width: 768px) { .cat-block { padding: 20px; } }

.cat-strip { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .cat-strip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .cat-strip { grid-template-columns: repeat(4, 1fr); } }

/* dark "देश / प्रदेश" style band */
.band { background: linear-gradient(135deg, var(--brand-ink), var(--brand)); color: #fff; padding: 28px 0; }
.band .sec-head { border-bottom-color: rgba(255, 255, 255, .25); }
.band .sec-head::after { background: #fff; }
.band .sec-head__title, .band .sec-head__more { color: #fff; }
.band .c-card { background: rgba(255, 255, 255, .07); backdrop-filter: blur(2px); }
.band .c-card__title a { color: #fff; }
.band .c-card__blurb { color: rgba(255, 255, 255, .8); }
.band .c-meta { color: rgba(255, 255, 255, .72); }

/* shorts */
.section--shorts { background: var(--dark); }
.shorts-scroller { position: relative; }
.shorts-track {
    display: flex; gap: 12px; overflow-x: auto; scroll-behavior: smooth;
    padding-bottom: 6px; scrollbar-width: none;
}
.shorts-track::-webkit-scrollbar { display: none; }
.short-card { flex: 0 0 148px; }
@media (min-width: 768px) { .short-card { flex-basis: 176px; } }
.short-card__btn {
    display: block; width: 100%; padding: 0; border: 0; background: #000;
    border-radius: var(--radius); overflow: hidden; position: relative; aspect-ratio: 9 / 16;
}
.short-card__btn img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: transform .4s ease; }
.short-card__btn:hover img { transform: scale(1.07); }
.short-card__play {
    position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(204, 0, 0, .92); color: #fff; border-radius: 50%;
}
.short-card__meta {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; text-align: left;
    background: linear-gradient(to top, rgba(0, 0, 0, .92), transparent); color: #fff;
    display: block;
}
.short-card__cat { display: block; font-size: 10.5px; color: #ff9a9a; font-weight: 700; margin-bottom: 3px; }
.short-card__title { display: block; font-size: 12.5px; line-height: 1.4; font-weight: 500; }

.scroller-btn {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
    width: 38px; height: 38px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: var(--shadow-sm);
    display: none;
}
.scroller-btn--prev { left: -14px; }
.scroller-btn--next { right: -14px; }
@media (min-width: 992px) { .scroller-btn { display: inline-flex; align-items: center; justify-content: center; } }
.scroller-btn:hover { background: var(--brand); color: #fff; }

/* youtube panel */
.section--yt { background: var(--surface); }
.yt-panel { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 992px) { .yt-panel { grid-template-columns: 1.7fr 1fr; } }
.yt-panel__player { border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-panel__side { background: var(--bg); border-radius: var(--radius); padding: 18px; }
.yt-panel__brand { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.yt-panel__brand i { font-size: 34px; color: #ff0000; line-height: 1; }
.yt-panel__brand h2 { font-size: 17px; }
.yt-panel__brand p { font-size: 13.5px; color: var(--muted); margin: 4px 0 0; }
.btn-yt {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #ff0000; color: #fff; font-weight: 700; padding: 11px; border-radius: var(--radius-sm);
}
.btn-yt:hover { background: #cc0000; color: #fff; }
.yt-panel__list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.yt-panel__list button {
    display: flex; gap: 10px; align-items: center; width: 100%; text-align: left;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 7px;
}
.yt-panel__list button:hover { border-color: var(--brand); }
.yt-panel__list img { width: 74px; height: 46px; object-fit: cover; border-radius: 5px; flex: 0 0 auto; }
.yt-panel__list span { font-size: 13px; line-height: 1.4; font-weight: 500; }

/* social strip */
.section--social { background: var(--bg); }
.social-strip {
    display: flex; flex-direction: column; gap: 16px;
    background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs);
}
@media (min-width: 992px) { .social-strip { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; } }
.social-strip__lead h2 { font-size: 19px; }
.social-strip__lead p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.social-strip__links { display: flex; flex-wrap: wrap; gap: 10px; }
.social-chip {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
    font-size: 13.5px; font-weight: 600; color: var(--ink);
    transition: all .2s ease;
}
.social-chip i { color: var(--brand); font-size: 15px; }
.social-chip:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.social-chip:hover i { color: #fff; }

/* partners */
.section--partners { background: var(--surface); padding: 22px 0; overflow: hidden; }
.partners__title { font-size: 15px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.partners-marquee { overflow: hidden; }
.partners-marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 55s linear infinite; }
.partners-marquee:hover .partners-marquee__track { animation-play-state: paused; }
.partners-marquee__item { flex: 0 0 auto; height: 64px; display: flex; align-items: center; }
/* real sponsor logos — shown in their own colours, lifted slightly on hover */
.partners-marquee__item img { max-height: 64px; width: auto; opacity: .88; transition: opacity .25s ease, transform .25s ease; }
.partners-marquee__item img:hover { opacity: 1; transform: scale(1.05); }

/* ads */
.ad-slot { position: relative; margin: 18px 0; text-align: center; background: var(--line-soft); border-radius: var(--radius-sm); padding: 10px; }
.ad-slot img { border-radius: var(--radius-sm); }
.ad-slot__label { display: block; font-size: 10px; letter-spacing: 1px; color: #9aa1ab; text-transform: uppercase; margin-bottom: 6px; }
.ad-slot--rail { margin: 0 0 18px; }
/* visible only when APP_ENV = development, so slots can be located on screen */
.ad-slot--empty {
    background: repeating-linear-gradient(45deg, #fafbfc, #fafbfc 10px, #f1f2f4 10px, #f1f2f4 20px);
    border: 1px dashed #c9ced6; min-height: 92px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.ad-slot--empty .ad-slot__label { margin: 0; color: #7a828d; font-weight: 700; }
.ad-slot__hint { font-size: 11.5px; color: #9aa1ab; }
.ad-slot--leaderboard { padding: 8px; }
.ad-slot--inline { margin: 22px 0; }
/* mobile top banner, directly under the breaking ticker */
.ad-slot--toprail { margin: 12px 0 0; }

/* AdSense units collapse to nothing when they do not fill, so the grey card is
   dropped for them — an unfilled unit should leave no visible box behind. */
.ad-slot--adsense { background: transparent; padding: 0; }
.ad-slot--adsense .ad-slot__label { margin-bottom: 4px; }

/* mid-article unit: full width of the copy, set apart from the text */
.article-body .ad-slot { margin: 26px 0; clear: both; }

/* ------------------------------------------------------------- 7. rail -- */
.layout { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 992px) { .layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; } }
.layout__main { min-width: 0; }

.rail { display: grid; gap: 18px; }
@media (min-width: 992px) { .rail { position: sticky; top: 14px; } }
.rail__box { background: var(--surface); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow-xs); }
.rail__title {
    font-size: 16px; margin-bottom: 12px; padding-bottom: 9px; border-bottom: 2px solid var(--line);
    position: relative; display: flex; align-items: center; gap: 8px;
}
.rail__title i { color: var(--brand); }
.rail__title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 54px; height: 2px; background: var(--brand); }
.rail__lead { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

.rail__rank { list-style: none; margin: 0; padding: 0; counter-reset: rank; }
.rail__rank li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.rail__rank li:last-child { border-bottom: 0; }
.rail__num { font-size: 20px; font-weight: 800; color: var(--line); line-height: 1; flex: 0 0 auto; width: 26px; }
.rail__rank li:nth-child(1) .rail__num { color: var(--brand); }
.rail__rank li:nth-child(2) .rail__num { color: #e08a8a; }
.rail__rank li:nth-child(3) .rail__num { color: #efb8b8; }
.rail__rank a { font-size: 14px; font-weight: 600; line-height: 1.45; }
.rail__rank a:hover { color: var(--brand); }

.rail__social { display: grid; gap: 8px; }
.rail__social a {
    display: flex; align-items: center; gap: 10px; padding: 9px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 600;
}
.rail__social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.rail__social i { width: 18px; text-align: center; color: var(--brand); }
.rail__social a:hover i { color: #fff; }

.rail__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.rail__cats a { font-size: 13px; padding: 6px 12px; background: var(--bg); border-radius: 999px; font-weight: 500; }
.rail__cats a:hover { background: var(--brand); color: #fff; }

.rail__apps { display: flex; gap: 10px; }
.rail__apps img { height: 40px; width: auto; }
.rail__box--live { background: linear-gradient(135deg, var(--dark), var(--brand-ink)); color: #fff; }
.rail__box--live .rail__title { color: #fff; border-bottom-color: rgba(255, 255, 255, .2); }
.rail__box--live .rail__lead { color: rgba(255, 255, 255, .8); }

/* ---------------------------------------------------------- 8. article -- */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs li:last-child::after { content: ""; }
.crumbs a:hover { color: var(--brand); }

.article-page { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); }
@media (min-width: 768px) { .article-page { padding: 30px; } }

.article-head { margin-bottom: 18px; }
.article-head h1 { font-size: 24px; line-height: 1.36; margin-bottom: 12px; }
@media (min-width: 768px) { .article-head h1 { font-size: 34px; } }
.article-head__blurb { font-size: 16.5px; color: var(--ink-2); font-weight: 500; line-height: 1.62; margin-bottom: 14px; }
.article-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
    padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-size: 13px; color: var(--muted);
}
.article-meta strong { color: var(--ink); font-weight: 600; }
.article-meta i { color: var(--brand); margin-right: 5px; }

.article-figure { margin: 18px 0; }
.article-figure img { width: 100%; border-radius: var(--radius); }
.article-figure figcaption { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

.article-body { font-size: 17px; line-height: 1.95; color: #222; word-break: break-word; }
.article-body p { margin: 0 0 1.15em; }
.article-body img { height: auto !important; width: 100% !important; border-radius: var(--radius); margin: 14px 0; }
.article-body iframe { max-width: 100%; border-radius: var(--radius); }
.article-body h2 { font-size: 22px; margin: 1.5em 0 .6em; }
.article-body h3 { font-size: 19px; margin: 1.4em 0 .5em; }
.article-body ul, .article-body ol { margin: 0 0 1.15em; padding-left: 1.4em; }
.article-body li { margin-bottom: .45em; }
.article-body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.article-body blockquote {
    margin: 1.4em 0; padding: 14px 18px; border-left: 4px solid var(--brand);
    background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 17.5px; font-style: italic; color: var(--ink-2);
}
.article-body table { width: 100%; border-collapse: collapse; margin-bottom: 1.2em; }
.article-body td, .article-body th { border: 1px solid var(--line); padding: 8px 10px; }

.article-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.article-tags a, .article-tags span {
    font-size: 12.5px; background: var(--bg); border: 1px solid var(--line);
    padding: 5px 12px; border-radius: 999px; color: var(--ink-2);
}
.article-tags a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

.share-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.share-bar__label { font-size: 13.5px; font-weight: 600; color: var(--muted); margin-right: 4px; }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 0; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
    background: var(--ink-2); transition: transform .18s ease, filter .18s ease;
}
.share-btn:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.share-btn--fb { background: #1877f2; }
.share-btn--x  { background: #000; }
.share-btn--wa { background: #25d366; }
.share-btn--tg { background: #0088cc; }
.share-btn--in { background: #0a66c2; }
.share-btn--copy { background: var(--muted); }

.author-box {
    display: flex; gap: 14px; align-items: flex-start; margin: 22px 0;
    background: var(--bg); border-radius: var(--radius); padding: 16px;
}
.author-box__avatar {
    width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 22px; flex: 0 0 auto;
}
.author-box h3 { font-size: 15px; margin-bottom: 4px; }
.author-box p { margin: 0; font-size: 13.5px; color: var(--muted); }

/* listing page */
.page-hero {
    background: linear-gradient(135deg, var(--dark), var(--brand-ink));
    color: #fff; padding: 26px 0; margin-bottom: 22px;
}
.page-hero h1 { font-size: 26px; margin-bottom: 6px; }
.page-hero h1 i { color: rgba(255, 255, 255, .55); margin-right: 6px; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .78); font-size: 14.5px; }
@media (min-width: 768px) { .page-hero h1 { font-size: 34px; } }

/* third-party widget page (weather + cricket) */
.widget-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .widget-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.widget-card {
    background: var(--bg); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 14px; min-width: 0;
}
.widget-card__title {
    font-size: 13px; font-weight: 700; letter-spacing: .3px;
    color: var(--muted); text-transform: uppercase; margin-bottom: 10px;
}
/* third-party markup we do not control — keep it inside the card */
.widget-card .tomorrow { max-width: 100%; overflow-x: auto; }

.score-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.score-frame iframe { display: block; width: 100%; min-height: 460px; border: 0; }

.widget-note {
    display: flex; gap: 8px; align-items: flex-start;
    margin: 14px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--muted);
}
.widget-note i { color: var(--brand); margin-top: 3px; }
.widget-note a { color: var(--brand); font-weight: 600; }

/* share market — TradingView embeds. They inject their own sized iframes, so
   we only own the frame around them and stop wide tables from bleeding out. */
.market-ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.tv-widget { min-width: 0; border-radius: var(--radius); overflow: hidden; }
.tv-widget .tradingview-widget-container { min-width: 0; }
.tv-widget iframe { display: block; width: 100% !important; border: 0; }
.tv-widget--chart iframe { min-height: 500px; }

.listing-toolbar {
    display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between;
    background: var(--surface); border-radius: var(--radius); padding: 12px 16px;
    box-shadow: var(--shadow-xs); margin-bottom: 18px; font-size: 14px;
}
.listing-toolbar__count { color: var(--muted); }
.listing-toolbar__sort { display: flex; gap: 6px; }
.listing-toolbar__sort a {
    font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--bg); font-weight: 600;
}
.listing-toolbar__sort a.is-active, .listing-toolbar__sort a:hover { background: var(--brand); color: #fff; }

.listing-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .listing-grid { grid-template-columns: repeat(3, 1fr); } }

.empty-state { background: var(--surface); border-radius: var(--radius); padding: 40px 20px; text-align: center; box-shadow: var(--shadow-xs); }
.empty-state i { font-size: 40px; color: var(--line); margin-bottom: 14px; }
.empty-state h2 { font-size: 19px; margin-bottom: 8px; }
.empty-state p { color: var(--muted); margin: 0; }

/* ---------------------------------------------- 9. forms & pagination --- */
.pagination-wrap { display: flex; justify-content: center; margin: 26px 0 6px; }
.pagination-wrap .page-link { color: var(--ink); border-color: var(--line); font-weight: 600; }
.pagination-wrap .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination-wrap .page-link:hover { background: var(--brand-soft); color: var(--brand); }

.static-page { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
@media (min-width: 768px) { .static-page { padding: 34px 38px; } }
.static-page h1 { font-size: 26px; margin-bottom: 6px; }
.static-page .updated { font-size: 13px; color: var(--muted); margin-bottom: 20px; display: block; }
.static-page h2 { font-size: 20px; margin: 1.6em 0 .5em; color: var(--brand-ink); }
.static-page h3 { font-size: 17px; margin: 1.3em 0 .4em; }
.static-page p, .static-page li { font-size: 15.5px; line-height: 1.85; color: var(--ink-2); }
.static-page ul, .static-page ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.static-page a { color: var(--brand); text-decoration: underline; }

.form-card { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs); }
.form-card label { font-weight: 600; font-size: 14px; margin-bottom: 5px; }
.form-card .form-control, .form-card .form-select { border-color: var(--line); padding: 10px 12px; }
.form-card .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(204, 0, 0, .12); }
.req { color: var(--brand); }
.alert-ok { background: #e8f7ee; border: 1px solid #b7e4c7; color: #1c6b3c; border-radius: var(--radius-sm); padding: 12px 14px; }
.alert-err { background: #fdecec; border: 1px solid #f4c2c2; color: #8f1d1d; border-radius: var(--radius-sm); padding: 12px 14px; }

.info-card { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-xs); }
.info-card h3 { font-size: 16px; margin-bottom: 12px; }
.info-card__row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.info-card__row:last-child { border-bottom: 0; }
.info-card__row i { color: var(--brand); width: 20px; text-align: center; margin-top: 3px; }

/* ----------------------------------------------------------- 10. footer -- */
.site-footer { background: var(--dark); color: #b9bfc7; padding: 34px 0 0; margin-top: 30px; }
.footer__top { padding-bottom: 24px; }
.footer__logo { display: inline-block; margin-bottom: 14px; }
.footer__logo img { height: 46px; width: auto; }
.footer__about { font-size: 14px; line-height: 1.75; margin-bottom: 16px; }
.footer__head { font-size: 15px; color: #fff; margin-bottom: 14px; position: relative; padding-bottom: 9px; }
.footer__head::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--brand); }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: 9px; }
.footer__links a { font-size: 14px; color: #b9bfc7; }
.footer__links a:hover { color: #fff; padding-left: 3px; }
.footer__links--2col { columns: 2; column-gap: 14px; }
.footer__contact p { display: flex; gap: 9px; font-size: 14px; margin-bottom: 10px; font-style: normal; }
.footer__contact i { color: var(--brand); margin-top: 4px; }
.footer__contact a { color: #b9bfc7; }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: 9px; }
.footer__social a {
    width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .08);
    display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.footer__social a:hover { background: var(--brand); }
.footer__apps { display: flex; gap: 10px; margin-top: 12px; }
.footer__apps img { height: 38px; width: auto; }
.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1); padding: 16px 0;
    display: flex; flex-direction: column; gap: 10px; align-items: center; font-size: 13px;
}
@media (min-width: 768px) { .footer__bottom { flex-direction: row; justify-content: space-between; } }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: center; }
.footer__legal a { color: #b9bfc7; }
.footer__legal a:hover { color: #fff; }

/* mobile app bar */
.appbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040;
    background: var(--surface); border-top: 1px solid var(--line);
    display: flex; justify-content: space-around; align-items: stretch;
    box-shadow: 0 -2px 12px rgba(16, 24, 40, .08);
    padding-bottom: env(safe-area-inset-bottom);
}
.appbar a, .appbar button {
    flex: 1 1 0; border: 0; background: transparent; color: var(--muted);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; padding: 8px 2px; font-size: 10.5px; font-weight: 600;
}
.appbar i { font-size: 17px; }
.appbar .is-active, .appbar a:hover, .appbar button:hover { color: var(--brand); }
.appbar__live i { color: var(--brand); }

.to-top {
    position: fixed; right: 14px; bottom: 74px; z-index: 1035;
    width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: var(--brand); color: #fff; box-shadow: var(--shadow-md);
    opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
    transform: translateY(6px);
}
.to-top.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
@media (min-width: 992px) { .to-top { bottom: 22px; right: 22px; } }

/* --------------------------------------------------- 11. motion & print -- */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    html { scroll-behavior: auto; }
    .breaking__track, .partners-marquee__track { animation: none; }
    .breaking__viewport { overflow-x: auto; }
}

@media print {
    .site-header, .breaking, .rail, .site-footer, .appbar, .to-top, .ad-slot, .share-bar { display: none !important; }
    body { background: #fff; padding: 0; }
    .article-page { box-shadow: none; padding: 0; }
}
