/* ============================================================
   দৃষ্টিপট — Public site design system
   Original editorial theme: deep pine ink, warm paper, vermilion
   accent, serif Bengali headlines. Built on Bootstrap 5 (CDN)
   for grid/offcanvas/carousel primitives.
   ============================================================ */

:root {
    /* Gold-led দৃষ্টিপট palette — sun gold primary, coral, mint, ocean */
    --ink: #0b3b4a;
    --ink-strong: #06283a;
    --ink-soft: #55707a;
    --paper: #fbf8f1;
    --surface: #f4efe3;
    --card: #ffffff;
    --line: #e7dfcf;
    --line-soft: #f0eade;
    --accent: #ffd166;          /* primary — sun gold */
    --accent-dark: #f0b93f;
    --accent-ink: #8a6400;
    --accent-soft: #fff4d6;
    --coral: #ff7f50;           /* secondary — coral */
    --coral-dark: #e8623a;
    --coral-ink: #b8471f;
    --coral-soft: #fff0e9;
    --gold: #ffd166;
    --mint: #06d6a0;
    --ocean: #118ab2;
    --olive: var(--ocean);
    --live: #ff7f50;
    --font-serif: "Noto Serif Bengali", "Noto Sans Bengali", serif;
    --font-sans: "Noto Sans Bengali", "Hind Siliguri", "Nirmala UI", sans-serif;
    --radius: 14px;
    --radius-sm: 9px;
    --shadow-sm: 0 1px 2px rgba(8, 44, 58, .05), 0 2px 8px rgba(8, 44, 58, .04);
    --shadow-md: 0 4px 10px rgba(8, 44, 58, .06), 0 14px 34px rgba(8, 44, 58, .08);
    --shadow-lg: 0 10px 24px rgba(8, 44, 58, .10), 0 30px 60px rgba(8, 44, 58, .12);
    --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-ink); }
img { max-width: 100%; }
h1, h2, h3, h4, h5 { font-family: var(--font-serif); }

.container { max-width: 1240px; }

::selection { color: #06283a; background: var(--accent); }

:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }

.skip-link {
    position: absolute; top: -48px; left: 16px; z-index: 3000;
    padding: 10px 18px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    color: #fff; background: var(--ink); font-size: 13px;
    transition: top var(--transition);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------- Topline (date strip) ---------- */
.topline {
    min-height: 40px;
    color: #c3dde4;
    background: linear-gradient(90deg, var(--ink-strong) 0%, var(--ink) 55%, #0e4a63 100%);
    font-size: 11.5px;
    letter-spacing: .01em;
}
.topline .container { min-height: 40px; }
.topline-date { display: inline-flex; align-items: center; gap: 8px; }
.topline-date i { color: var(--gold); font-size: 12px; }
.topline a { color: #c3dde4; }
.topline a:hover { color: #fff; }
.topline-links { display: flex; align-items: center; gap: 4px; }
.topline-links a {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    transition: background var(--transition), color var(--transition);
}
.topline-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.topline-links .topline-pill {
    color: #06283a; background: rgba(255, 209, 102, .92);
    border: 1px solid rgba(255, 209, 102, .95);
}
.topline-links .topline-pill:hover { color: #06283a; background: var(--coral); }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead-inner {
    min-height: 108px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 33px; line-height: 1.15; font-weight: 700; letter-spacing: -.5px;
}
.brand-text strong em { font-style: normal; color: var(--accent-ink); }
.brand-text small {
    display: block; margin-top: 2px;
    color: var(--ink-soft); font-size: 11px; letter-spacing: .06em;
}
.masthead-ad { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.masthead-ad .ad-slot img { max-height: 90px; width: auto; border-radius: var(--radius-sm); }
.masthead-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.icon-btn {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--line); border-radius: 50%;
    color: var(--ink); background: var(--card); font-size: 17px;
    transition: all var(--transition);
}
.icon-btn:hover { color: #06283a; border-color: var(--accent); background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink); background: var(--card); font-size: 22px;
}
.btn-login {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: 999px;
    color: #fff; background: var(--ink);
    font-size: 12.5px; font-weight: 600;
    transition: all var(--transition);
}
.btn-login:hover { color: #06283a; background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ---------- Main navigation (sticky) ---------- */
.main-nav {
    position: sticky; top: 0; z-index: 1030;
    background: linear-gradient(180deg, rgba(255,255,255,.05) 0%, transparent 100%), var(--ink);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset;
    transition: box-shadow var(--transition);
}
.main-nav::before {
    content: ""; display: block; height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--coral) 34%, var(--mint) 67%, var(--ocean) 100%);
    background-size: 200% 100%;
    animation: nav-shine 9s linear infinite;
}
@keyframes nav-shine { to { background-position: 200% 0; } }
.main-nav.is-stuck { box-shadow: var(--shadow-lg); }
.nav-inner {
    min-height: 50px;
    display: flex; align-items: center; gap: 6px;
    white-space: nowrap; overflow-x: auto; scrollbar-width: none;
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-inner a {
    position: relative;
    padding: 13px 14px;
    color: #cfe3e8; font-size: 13.5px; font-weight: 600;
    transition: color var(--transition);
}
.nav-inner a::after {
    content: ""; position: absolute; right: 14px; bottom: 8px; left: 14px; height: 2px;
    border-radius: 2px; background: var(--accent);
    transform: scaleX(0); transform-origin: right;
    transition: transform var(--transition);
}
.nav-inner a:hover { color: #fff; }
.nav-inner a:hover::after, .nav-inner a.is-active::after { transform: scaleX(1); }
.nav-inner a.is-active { color: #fff; }
.nav-home {
    display: grid !important; place-items: center; width: 44px; height: 44px;
    margin-right: 4px; padding: 0 !important;
    border-radius: var(--radius-sm);
    color: #06283a !important; background: var(--accent); font-size: 17px;
}
.nav-home::after { display: none; }
.nav-home:hover { background: var(--accent-dark); }
.nav-inner .nav-search {
    margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
    color: #ffd166; font-size: 12.5px;
}
.nav-inner .nav-search::after { display: none; }
.nav-inner .nav-search:hover { color: #fff; }

/* Mobile drawer */
#mobileNav { width: 300px; background: var(--paper); }
#mobileNav .offcanvas-header { background: var(--ink); }
#mobileNav .offcanvas-title { color: #fff; font-family: var(--font-serif); }
#mobileNav .btn-close { filter: invert(1); }
.mobile-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 12px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: 14px;
    transition: all var(--transition);
}
.mobile-link:hover { color: var(--accent-ink); background: var(--accent-soft); }
.mobile-link i { color: var(--accent-ink); font-size: 12px; opacity: 0; transition: opacity var(--transition); }
.mobile-link:hover i { opacity: 1; }

/* ---------- Page shell ---------- */
.page-container { padding-top: 26px; padding-bottom: 72px; }

/* ---------- Breaking ticker ---------- */
.breaking-bar {
    display: flex; min-height: 46px; align-items: stretch;
    overflow: hidden; margin-bottom: 26px;
    border: 1px solid #f2d98f; border-radius: var(--radius);
    background: linear-gradient(90deg, #fff6dd, #fffdf7 60%, #fff6dd);
    box-shadow: var(--shadow-sm);
}
.breaking-label {
    display: flex; flex: 0 0 auto; align-items: center; gap: 8px;
    padding: 0 18px; border-radius: var(--radius) 0 0 var(--radius);
    color: #06283a; background: linear-gradient(135deg, var(--accent), var(--coral));
    font-size: 12.5px; font-weight: 700; letter-spacing: .04em;
}
.breaking-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #06283a; animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(6, 40, 58, .45); }
    55% { box-shadow: 0 0 0 7px rgba(6, 40, 58, 0); }
}
.breaking-viewport { flex: 1 1 auto; overflow: hidden; position: relative; display: flex; align-items: center; }
.breaking-track {
    display: flex; align-items: center; gap: 0;
    white-space: nowrap; will-change: transform;
    animation: ticker-scroll 34s linear infinite;
    padding-left: 6px;
}
.breaking-bar:hover .breaking-track { animation-play-state: paused; }
.breaking-track .ticker-item { display: inline-flex; align-items: center; flex: 0 0 auto; }
.breaking-track a, .breaking-track span.ticker-text {
    padding: 0 22px; color: #2c4a55;
    font-size: 13px; font-weight: 600;
    border-right: 1px dashed #f2d98f;
}
.breaking-track a:hover { color: var(--accent-ink); }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Hero zone: top slider + live list ---------- */
.hero-grid {
    display: grid; grid-template-columns: minmax(0, 1.68fr) minmax(300px, 1fr);
    gap: 26px; margin-bottom: 30px; align-items: start;
}

/* Top news slider */
.top-slider { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--ink-strong); box-shadow: var(--shadow-md); }
.top-slider .carousel-item { height: clamp(360px, 46vw, 486px); }
.slide-media { position: absolute; inset: 0; }
.slide-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 6s ease; }
.carousel-item.active .slide-media img { transform: scale(1.045); }
.slide-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 26, 35, .93) 0%, rgba(6, 26, 35, .55) 38%, rgba(6, 26, 35, .08) 72%); }
.slide-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 26px 30px 30px; color: #fff; }
.slide-kicker-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.slide-copy h2 {
    margin: 0 0 8px; max-width: 760px;
    font-size: clamp(21px, 2.5vw, 32px); font-weight: 700; line-height: 1.5;
    text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}
.slide-copy h2 a:hover { color: #ffd166; }
.slide-copy p { display: none; }
.slide-meta { display: flex; align-items: center; gap: 10px; color: #c3dde4; font-size: 11.5px; }
.slide-count {
    position: absolute; top: 16px; left: 16px; z-index: 3;
    padding: 5px 13px; border-radius: 999px;
    color: #fff; background: rgba(8, 40, 52, .55); backdrop-filter: blur(6px);
    font-size: 11.5px; font-weight: 600; letter-spacing: .05em;
}
.slider-arrow {
    position: absolute; top: 50%; z-index: 4;
    display: grid; place-items: center; width: 42px; height: 42px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%;
    color: #fff; background: rgba(8, 40, 52, .42); backdrop-filter: blur(6px);
    font-size: 16px; transition: all var(--transition);
}
.slider-arrow:hover { color: #06283a; background: var(--accent); border-color: var(--accent); }
.slider-arrow.prev { left: 14px; }
.slider-arrow.next { right: 14px; }
.top-slider .carousel-indicators { margin-bottom: 12px; }
.top-slider .carousel-indicators [data-bs-target] {
    width: 22px; height: 4px; border-radius: 3px;
    background: rgba(255, 255, 255, .45); border: 0; opacity: 1;
    transition: all var(--transition);
}
.top-slider .carousel-indicators .active { background: var(--accent); width: 34px; }

.category-kicker, .chip-kicker {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    color: var(--accent-ink); background: var(--accent-soft);
    font-family: var(--font-sans);
    font-size: 11px; font-weight: 700; letter-spacing: .02em;
    transition: all var(--transition);
}
a.category-kicker:hover, a.chip-kicker:hover { color: #06283a; background: var(--accent); }
.slide-kicker-row .category-kicker { color: #06283a; background: rgba(255, 209, 102, .94); }
.slide-kicker-row .category-kicker:hover { color: #06283a; background: var(--accent); }

/* "এই মুহূর্তে" live list */
.moment-panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
    overflow: hidden; height: 100%; display: flex; flex-direction: column;
}
.moment-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(180deg, #fff, #fffdf7);
}
.moment-head h2 { margin: 0; font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--live); animation: pulse-dot 1.6s infinite; }
.moment-head small { color: var(--ink-soft); font-size: 11px; }
.moment-list { list-style: none; margin: 0; padding: 6px 18px; flex: 1 1 auto; }
.moment-list li { border-bottom: 1px dashed var(--line); }
.moment-list li:last-child { border-bottom: 0; }
.moment-list a { display: grid; grid-template-columns: 62px 1fr; gap: 12px; padding: 12px 0; align-items: baseline; }
.moment-time {
    color: var(--accent-ink); font-size: 11.5px; font-weight: 700;
    padding: 2px 8px; border-radius: 7px; background: var(--accent-soft);
    text-align: center; white-space: nowrap;
}
.moment-list h3 { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.7; font-family: var(--font-sans); }
.moment-list a:hover h3 { color: var(--accent-ink); }
.moment-foot { padding: 10px 18px; border-top: 1px solid var(--line-soft); background: #fffdf7; }
.moment-foot a { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.moment-foot a:hover { color: var(--accent-ink); }

/* ---------- Hero fallback (welcome) ---------- */
.welcome-panel {
    position: relative; overflow: hidden;
    padding: 84px 9%; border-radius: var(--radius);
    color: #fff; background: radial-gradient(1200px 500px at 85% -10%, #0e4a63 0%, transparent 60%), var(--ink);
    margin-bottom: 30px;
}
.welcome-panel h1 { margin: 14px 0; font-size: clamp(32px, 5.4vw, 58px); font-weight: 700; line-height: 1.45; }
.welcome-panel p { color: #c3dde4; max-width: 560px; }
.welcome-panel .eyebrow { color: #ffd166; }

/* ---------- Section headings ---------- */
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-heading h2 { margin: 0; font-size: 20px; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; }
.section-heading h2::before {
    content: ""; width: 6px; height: 22px; border-radius: 3px;
    background: linear-gradient(180deg, var(--accent), var(--coral));
}
.section-heading > span, .section-heading > a { color: var(--ink-soft); font-size: 12px; font-weight: 600; }
.section-heading > a { display: inline-flex; align-items: center; gap: 5px; }
.section-heading > a:hover { color: var(--accent-ink); }
.section-heading-lined { padding-bottom: 12px; border-bottom: 1px solid var(--line); }

/* ---------- Tabs (সর্বশেষ সংবাদ / পাঠকের পছন্দ) ---------- */
.feed-zone { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; margin-bottom: 44px; align-items: start; }
.feed-tabs { display: flex; gap: 8px; margin-bottom: 0; }
.tab-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border: 1px solid var(--line); border-bottom: 0;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    color: var(--ink-soft); background: var(--surface);
    font-family: var(--font-serif); font-size: 15.5px; font-weight: 700;
    cursor: pointer; transition: all var(--transition);
    position: relative; top: 1px;
}
.tab-btn:hover { color: var(--ink); }
.tab-btn[aria-selected="true"] {
    color: var(--accent-ink); background: var(--card);
    border-color: var(--line);
    box-shadow: 0 -3px 0 var(--accent) inset;
}
.tab-btn i { font-size: 13px; }
.tab-panel-wrap { border: 1px solid var(--line); border-radius: 0 var(--radius) var(--radius) var(--radius); background: var(--card); padding: 8px 20px 20px; box-shadow: var(--shadow-sm); }
.tab-panel[hidden] { display: none; }

.latest-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 22px; }
.latest-grid .news-card:first-child { border-top: 0; }

/* ---------- News cards ---------- */
.news-card { min-width: 0; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.news-card:first-child { padding-top: 10px; }
.news-card-image {
    display: block; position: relative; overflow: hidden;
    height: 176px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #e6eef0, #d8e6ea);
}
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-card-image img { transform: scale(1.06); }
.image-placeholder {
    display: grid; width: 100%; height: 100%; place-items: center;
    color: #06283a; font-size: 30px;
    background:
        radial-gradient(120% 110% at 100% 0%, rgba(255, 209, 102, .85) 0%, transparent 58%),
        linear-gradient(135deg, #d9f7ef 0%, #cfeaf3 55%, #bfe3ef 100%);
}
.image-placeholder i { opacity: .85; }

/* Any <img> that fails to load is swapped for this branded placeholder by frontend.js */
img.img-fallback { object-fit: cover; background: #d9f7ef; }
.news-card-copy { padding-top: 11px; }
.news-card h3 { margin: 6px 0; font-size: 15.5px; font-weight: 700; line-height: 1.68; }
.news-card h3 a:hover { color: var(--accent-ink); }
.news-card-copy > p { margin: 0 0 8px; color: var(--ink-soft); font-size: 12.5px; line-height: 1.8; }
.byline { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; color: #5f7781; font-size: 11px; }
.byline span { padding: 0 4px; }
.byline a:hover { color: var(--accent-ink); }
.byline i { font-size: 10px; margin-right: 3px; }

/* Horizontal (row) card — thumb left, copy right */
.news-card-row {
    display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px;
    align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line-soft);
}
.news-card-row .news-card-image { height: 88px; }
.news-card-row .news-card-copy { padding-top: 0; }
.news-card-row h3 { font-size: 13.5px; line-height: 1.7; margin: 4px 0; }
.news-card-row .news-card-copy > p { display: none; }
.news-card-row .byline { font-size: 10.5px; }

/* Hero-feature (featured-news component) */
.hero-feature {
    position: relative; min-height: 460px; overflow: hidden;
    border-radius: var(--radius); background: #123c4f; box-shadow: var(--shadow-md);
}
.hero-image, .hero-image-shade { position: absolute; inset: 0; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-fallback {
    position: absolute; inset: 0; display: grid; place-items: center;
    color: #06283a; font-size: 54px;
    background:
        radial-gradient(90% 90% at 82% 8%, #ffd166 0%, transparent 55%),
        linear-gradient(135deg, #06d6a0 0%, #118ab2 62%, #0b3b4a 100%);
}
.hero-image-shade { background: linear-gradient(0deg, rgba(8, 32, 43, .94) 0%, rgba(8, 32, 43, .42) 45%, rgba(8, 32, 43, .04) 100%); }
.hero-copy { position: absolute; right: 0; bottom: 0; left: 0; padding: 30px 32px; color: #fff; }
.hero-copy .category-kicker { color: #06283a; background: rgba(255, 209, 102, .95); }
.hero-copy h1 { max-width: 760px; margin: 12px 0; font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.5; }
.hero-copy h1 a:hover { color: #ffd166; }
.hero-copy > p { max-width: 660px; margin: 0 0 12px; color: #dbe9ee; font-size: 13.5px; line-height: 1.9; }
.hero-copy .byline { color: #c3dde4; }

.hero-aside { min-width: 0; }
.hero-aside > .news-card { display: grid; grid-template-columns: 104px 1fr; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-soft); }
.hero-aside .news-card-image { height: 76px; border-radius: var(--radius-sm); }
.hero-aside .news-card h3 { margin: 2px 0 4px; font-size: 13px; line-height: 1.68; }
.hero-aside .news-card .news-card-copy { padding-top: 0; }
.hero-aside .news-card .news-card-copy > p { display: none; }
.hero-aside .byline { font-size: 10.5px; }

/* ---------- Popular (sidebar) ---------- */
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-bottom: 46px; }
.popular-panel {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
    padding: 18px 20px; position: sticky; top: 74px;
}
.popular-list { margin: 0; padding: 0; list-style: none; counter-reset: popular; }
.popular-list li { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.popular-list li:last-child { border-bottom: 0; }
.popular-number {
    flex: 0 0 auto; min-width: 34px; text-align: center;
    color: var(--accent-ink); font-family: var(--font-serif);
    font-size: 22px; font-weight: 700; line-height: 1.2;
    padding-bottom: 2px; border-bottom: 2px solid var(--accent-soft);
}
.popular-list li a { display: block; font-size: 13px; font-weight: 600; line-height: 1.8; }
.popular-list small { color: #5f7781; font-size: 10.5px; display: inline-flex; align-items: center; gap: 4px; }

/* Sidebar widget card */
.widget-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); padding: 18px 20px; margin-bottom: 22px; }
.widget-card .section-heading { margin-bottom: 10px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-cloud a {
    padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); background: var(--paper); font-size: 12px; font-weight: 600;
    transition: all var(--transition);
}
.chip-cloud a:hover { color: #06283a; border-color: var(--accent); background: var(--accent); transform: translateY(-1px); }

/* ---------- Category sections ---------- */
.category-section { margin-bottom: 46px; }
.category-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.category-grid .news-card {
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); padding: 12px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.category-grid .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.category-grid .news-card-image { height: 150px; }
.category-grid .news-card h3 { font-size: 13.5px; }
.category-grid .news-card:first-child { padding-top: 12px; }

/* Category block: lead + mini list (newspaper style) */
.category-block { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
.category-lead .news-card { padding: 0; border: 0; }
.category-lead .news-card-image { height: 268px; border-radius: var(--radius); }
.category-lead .news-card h3 { font-size: 19px; line-height: 1.6; }
.category-lead .news-card-copy { padding: 14px 2px 0; }
.category-minis .news-card-row:first-child { padding-top: 4px; }
.category-minis .news-card-row:last-child { border-bottom: 0; }

/* ---------- Gallery strip ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gallery-card {
    min-width: 0; overflow: hidden;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.gallery-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gallery-card-image { position: relative; display: block; height: 168px; background: var(--surface); overflow: hidden; }
.gallery-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-card:hover .gallery-card-image img { transform: scale(1.06); }
.gallery-card-count {
    position: absolute; right: 10px; bottom: 10px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 10px; border-radius: 999px;
    color: #fff; background: rgba(8, 40, 52, .68); backdrop-filter: blur(4px);
    font-size: 11px; font-weight: 600;
}
.gallery-card-copy { padding: 13px 15px 15px; }
.gallery-card-copy h3 { margin: 0 0 6px; font-size: 14.5px; line-height: 1.6; }
.gallery-card-copy h3 a:hover { color: var(--accent-ink); }
.gallery-card-copy p { margin: 0 0 6px; color: var(--ink-soft); font-size: 12px; }
.gallery-card-copy small { color: #5f7781; font-size: 10.5px; }

/* ---------- Video strip (dark band) ---------- */
.video-band {
    margin: 8px 0 46px; padding: 34px 0 40px;
    border-radius: var(--radius);
    background: radial-gradient(900px 420px at 90% 0%, #136a86 0%, transparent 55%), var(--ink);
    color: #e6f1f4;
}
.video-band .container { max-width: 1180px; }
.video-band .section-heading h2 { color: #fff; }
.video-band .section-heading > a { color: #b3cbd2; }
.video-band .section-heading > a:hover { color: #ffd166; }
.video-band .section-heading { padding: 0 26px 12px; }
.video-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 0 26px; }
.video-card-mini { position: relative; border-radius: var(--radius-sm); overflow: hidden; background: #0b3243; transition: transform var(--transition); }
.video-card-mini:hover { transform: translateY(-4px); }
.video-card-mini .thumb { position: relative; display: block; height: 148px; }
.video-card-mini .thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity var(--transition); }
.video-card-mini:hover .thumb img { opacity: 1; }
.play-badge {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    display: grid; place-items: center; width: 44px; height: 44px;
    border-radius: 50%; color: #06283a; background: rgba(255, 209, 102, .96);
    font-size: 17px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
    transition: all var(--transition);
}
.video-card-mini:hover .play-badge { background: var(--accent); transform: translate(-50%, -50%) scale(1.08); }
.video-card-mini .thumb .image-placeholder { color: #bfe3ef; background: linear-gradient(135deg, #0b3243, #136a86); }
.video-card-mini h3 { margin: 0; padding: 11px 13px 4px; font-size: 13px; font-weight: 600; line-height: 1.65; font-family: var(--font-sans); }
.video-card-mini h3 a:hover { color: #ffd166; }
.video-card-mini .byline { padding: 0 13px 12px; color: #95afb6; font-size: 10.5px; }

/* ---------- Newsletter ---------- */
.newsletter-panel {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 34px;
    margin-top: 54px; padding: 38px 42px;
    border-radius: var(--radius);
    color: #f0f7f9;
    background: radial-gradient(760px 340px at 100% 0%, #136a86 0%, transparent 60%), var(--ink);
    box-shadow: var(--shadow-md);
}
.newsletter-panel::after {
    content: "\F1D6"; /* decorative envelope glyph from Bootstrap Icons */
    position: absolute; right: -30px; bottom: -60px;
    font-family: "bootstrap-icons"; font-size: 220px;
    color: rgba(255, 255, 255, .04); pointer-events: none;
}
.newsletter-panel .eyebrow { color: #ffd166; }
.newsletter-panel h2 { margin: 8px 0; font-size: 23px; font-weight: 700; }
.newsletter-panel p { margin: 0; color: #bcd6dd; font-size: 12.5px; max-width: 440px; }
.newsletter-form {
    display: flex; width: min(100%, 420px); min-height: 52px;
    border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px;
    background: rgba(255, 255, 255, .06); overflow: hidden;
    position: relative; z-index: 1;
}
.newsletter-form input {
    flex: 1; min-width: 0; padding: 0 20px; border: 0; outline: 0;
    color: #fff; background: transparent; font-family: inherit; font-size: 13px;
}
.newsletter-form input::placeholder { color: #a3bcc3; }
.newsletter-form button {
    padding: 0 24px; border: 0; border-radius: 999px;
    color: #06283a; background: var(--accent);
    font-family: inherit; font-size: 13px; font-weight: 700;
    transition: background var(--transition);
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer {
    margin-top: 20px;
    color: #d7e7ec;
    background: linear-gradient(180deg, #08303f 0%, #041d28 100%);
}
.footer-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 44px;
    padding: 52px 0 38px;
}
.brand-footer, .brand-footer:hover { color: #fff; }
.brand-footer .brand-text strong { font-size: 27px; }
.brand-footer .brand-text small { color: #a3bcc3; }
.footer-about p { max-width: 380px; margin: 16px 0 18px; color: #a3bcc3; font-size: 12.5px; line-height: 1.9; }
.footer-social { display: flex; gap: 9px; }
.footer-social a {
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 1px solid #1d4a5c; border-radius: 50%;
    color: #c3dde4; font-size: 15px;
    transition: all var(--transition);
}
.footer-social a:hover { color: #06283a; border-color: var(--accent); background: var(--accent); transform: translateY(-3px); }
.footer-grid h2 {
    margin: 4px 0 14px; color: #fff; font-size: 15px; font-weight: 700;
    display: flex; align-items: center; gap: 8px;
}
.footer-grid h2::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-grid a, .footer-grid span { color: #a3bcc3; font-size: 12.5px; }
.footer-grid a:hover { color: #fff; padding-right: 4px; }
.footer-contact-line { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact-line i { color: var(--accent); font-size: 13px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 15px;
    padding: 16px 0; border-top: 1px solid #164a5c;
    color: #8fa6ad; font-size: 11.5px;
}
.footer-bottom .footer-tagline { display: inline-flex; align-items: center; gap: 7px; }
.footer-bottom .footer-tagline i { color: var(--gold); }

/* ---------- Shared bits ---------- */
.eyebrow { color: var(--accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
.btn-ink {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 20px; border: 0; border-radius: 999px;
    color: #fff; background: var(--ink);
    font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
.btn-ink:hover { color: #06283a; background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.empty-state { padding: 26px 0; color: var(--ink-soft); font-size: 13.5px; }
.empty-state-large { padding: 84px 20px; text-align: center; }
.empty-state-large > i { color: var(--accent-ink); font-size: 40px; }
.empty-state-large h2 { margin: 14px 0 8px; color: var(--ink); font-size: 24px; }
.empty-state-large p { margin-bottom: 22px; color: var(--ink-soft); }

/* Ad slots */
.ad-slot { display: block; text-align: center; }
.ad-slot-label {
    display: inline-block; margin-bottom: 5px; padding: 1px 9px;
    border: 1px dashed var(--line); border-radius: 999px;
    color: #95afb6; font-size: 9px; letter-spacing: .12em;
}
.ad-slot img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.ad-slot a { display: inline-block; }

/* ---------- Listing pages (category / archive / tag) ---------- */
.page-hero {
    position: relative; overflow: hidden;
    margin: 0 0 30px; padding: 34px 36px;
    border-radius: var(--radius);
    color: #eef7f9;
    background: radial-gradient(800px 320px at 88% -20%, #136a86 0%, transparent 60%), var(--ink);
    box-shadow: var(--shadow-md);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 22px 22px; pointer-events: none;
}
.page-hero .eyebrow { color: #ffd166; }
.page-hero h1 { margin: 8px 0 4px; font-size: clamp(25px, 3.6vw, 36px); font-weight: 700; position: relative; }
.page-hero p { margin: 6px 0 0; color: #b3cbd2; font-size: 13.5px; max-width: 720px; position: relative; }
.page-hero .hero-count {
    position: absolute; top: 28px; right: 36px;
    padding: 7px 16px; border-radius: 999px;
    color: #fff; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16);
    font-size: 12px; backdrop-filter: blur(4px);
}
.listing-heading { max-width: 820px; margin: 24px 0 30px; }
.listing-heading h1 { margin: 6px 0; font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
.listing-heading p { margin: 8px 0 0; color: var(--ink-soft); font-size: 13.5px; }
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.listing-grid .news-card {
    display: flex; flex-direction: column; height: 100%;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); padding: 12px; box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.listing-grid .news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.listing-grid .news-card-image { height: 168px; }
.listing-grid .news-card-copy { display: flex; flex-direction: column; flex: 1 1 auto; }
.listing-grid .news-card h3 { font-size: 15px; }
.listing-grid .news-card .byline { margin-top: auto; padding-top: 8px; }

.pagination-wrap { margin-top: 0; display: block; }
.pagination { gap: 6px; }
.page-link {
    min-width: 40px; height: 40px; display: grid; place-items: center;
    border: 1px solid var(--line); border-radius: 10px;
    color: var(--ink); background: var(--card);
    font-size: 13px; font-weight: 600;
    transition: all var(--transition);
}
.page-link:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.page-item.active .page-link { border-color: var(--accent); background: var(--accent); color: #06283a; box-shadow: var(--shadow-sm); }
.page-item.disabled .page-link { color: #b3cbd2; background: var(--surface); }

/* ---------- Search ---------- */
.search-form {
    position: relative; display: flex; max-width: 760px; min-height: 60px;
    margin-bottom: 22px; border: 1px solid var(--line); border-radius: 999px;
    background: var(--card); box-shadow: var(--shadow-sm); overflow: visible;
}
.search-form input {
    flex: 1; min-width: 0; padding: 0 24px; border: 0; outline: 0;
    background: transparent; font-family: inherit; font-size: 14.5px;
    border-radius: 999px;
}
.search-form button {
    width: 60px; margin: 5px; border: 0; border-radius: 50%;
    color: #fff; background: var(--ink); font-size: 18px;
    transition: background var(--transition);
}
.search-form button:hover { color: #06283a; background: var(--accent); }
.search-suggestions {
    position: absolute; top: calc(100% + 6px); right: 8px; left: 8px; z-index: 5;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: #fff; box-shadow: var(--shadow-md); overflow: hidden;
}
.search-suggestions[hidden] { display: none; }
.search-suggestion { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.search-suggestion:last-child { border-bottom: 0; }
.search-suggestion:hover, .search-suggestion:focus-visible { background: var(--surface); color: var(--accent-ink); }
.search-filters {
    display: flex; flex-wrap: wrap; align-items: end; gap: 14px;
    margin-bottom: 24px; padding: 18px 20px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.search-filters label { display: grid; gap: 5px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.search-filters select, .search-filters input {
    min-width: 132px; min-height: 40px; padding: 5px 12px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--paper); font: inherit; font-size: 12px; color: var(--ink);
}
.search-filters select:focus, .search-filters input:focus { border-color: var(--accent-ink); outline: 0; box-shadow: 0 0 0 3px var(--accent-soft); }
.search-summary { margin: 18px 0; color: var(--ink-soft); font-size: 13px; }

/* ---------- Article page ---------- */
.reading-progress {
    position: fixed; top: 0; left: 0; z-index: 1090;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--accent), var(--coral));
    transition: width .1s linear;
}
.breadcrumb-line {
    display: flex; align-items: center; flex-wrap: wrap; gap: 9px;
    margin: 6px 0 24px; color: #5f7781; font-size: 11.5px;
}
.breadcrumb-line a:hover { color: var(--accent-ink); }
.breadcrumb-line i { font-size: 9px; color: #a3bcc3; }
.breadcrumb-line span { overflow: hidden; color: var(--ink); text-overflow: ellipsis; white-space: nowrap; max-width: 420px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.article-main { min-width: 0; }
.article-title {
    max-width: 850px; margin: 12px 0 10px;
    font-size: clamp(27px, 4vw, 40px); font-weight: 700; line-height: 1.55;
    letter-spacing: -.2px;
}
.article-subtitle { max-width: 830px; margin: 0 0 18px; color: var(--ink-soft); font-size: 17px; line-height: 1.85; font-family: var(--font-serif); }
.article-meta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 14px 0 18px; border-bottom: 1px solid var(--line);
}
.author-avatar, .comment-avatar {
    display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center;
    border-radius: 50%; color: #06283a;
    background: linear-gradient(135deg, var(--mint), var(--ocean));
    font-size: 15px; font-weight: 700;
}
.article-meta > span:nth-child(2) strong, .article-meta > span:nth-child(2) small { display: block; }
.article-meta > span:nth-child(2) strong { font-size: 12.5px; }
.article-meta > span:nth-child(2) small { color: #5f7781; font-size: 10.5px; }
.meta-spacer { flex: 1; }
.article-meta .meta-stat {
    display: inline-flex; align-items: center; gap: 5px;
    color: #687b82; font-size: 11px;
    padding: 5px 11px; border-radius: 999px; background: var(--surface);
}
.print-button {
    padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    color: var(--ink-soft); background: var(--card); cursor: pointer;
    transition: all var(--transition);
}
.print-button:hover { color: var(--accent-ink); border-color: var(--accent); }
.article-cover { margin: 24px 0; }
.article-cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.article-cover figcaption { padding-top: 9px; color: #5f7781; font-size: 11px; display: flex; gap: 6px; }
.article-cover figcaption::before { content: "\F309"; font-family: "bootstrap-icons"; color: var(--accent-ink); }
.article-body { color: #20333a; font-size: 16.5px; line-height: 2.15; overflow-wrap: anywhere; }
.article-body p { margin: 0 0 20px; }
.article-body .article-lead {
    margin-bottom: 26px; padding: 16px 20px;
    border-right: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: #2b4148; background: var(--surface);
    font-family: var(--font-serif); font-size: 17.5px; font-weight: 500; line-height: 2;
}
.article-gallery { margin: 26px 0; }
.article-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px;
}
.article-gallery figure {
    margin: 0; overflow: hidden; border: 1px solid var(--line);
    border-radius: var(--radius-sm); background: var(--surface);
}
.article-gallery img { display: block; width: 100%; height: 170px; object-fit: cover; }
.article-gallery figcaption { padding: 7px 10px; color: #5f7781; font-size: 12px; line-height: 1.6; }

.article-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin: 24px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.article-tags > span { color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.article-tags a {
    padding: 5px 13px; border-radius: 999px;
    color: var(--accent-ink); background: var(--accent-soft);
    font-size: 11.5px; font-weight: 600;
    transition: all var(--transition);
}
.article-tags a:hover { color: #06283a; background: var(--accent); }
.article-actions {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin: 26px 0 40px; padding: 16px 18px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.reaction-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.reaction-button, .share-button {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
    color: var(--ink); background: var(--paper);
    font-family: inherit; font-size: 11.5px; font-weight: 600; cursor: pointer;
    transition: all var(--transition);
}
.reaction-button:hover, .share-button:hover {
    border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft);
    transform: translateY(-1px);
}
.share-links { display: flex; align-items: center; gap: 8px; }
.share-links a {
    display: grid; width: 34px; height: 34px; place-items: center;
    border-radius: 50%; color: #fff; font-size: 13px;
    background: var(--ink); transition: all var(--transition);
}
.share-links a:hover { color: #06283a; background: var(--accent); transform: translateY(-2px); }

/* Author profile (author page) */
.author-profile {
    display: flex; align-items: center; gap: 26px;
    margin: 14px 0 40px; padding: 30px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.author-profile > img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent-soft); }
.author-profile h1 { margin: 6px 0; font-size: 26px; font-weight: 700; }
.author-profile p { margin: 4px 0 0; color: var(--ink-soft); font-size: 13px; }
.author-avatar-large { width: 92px; height: 92px; flex-basis: 92px; font-size: 32px; }

/* Comments */
.comments-section { margin-bottom: 34px; }
.comment-form { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.comment-form label { display: block; flex: 1; margin-bottom: 14px; }
.comment-form label > span { display: block; margin-bottom: 6px; font-size: 11.5px; font-weight: 700; }
.comment-form input, .comment-form textarea, .comment-form select {
    width: 100%; padding: 11px 14px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); outline-color: var(--accent);
    background: var(--paper); font-family: inherit; font-size: 13px;
    transition: border var(--transition), box-shadow var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus, .comment-form select:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.comment-form-row { display: flex; gap: 14px; }
.form-note { display: inline; margin-left: 12px; color: #5f7781; font-size: 11px; }
.comment-list { margin-top: 16px; }
.comment-item {
    display: flex; gap: 14px; padding: 18px 0;
    border-bottom: 1px solid var(--line-soft);
}
.comment-avatar { flex-basis: 36px; width: 36px; height: 36px; color: var(--ink); background: #e6f1f4; font-size: 14px; }
.comment-item strong { font-size: 12.5px; }
.comment-item small { display: block; color: #5f7781; font-size: 10px; }
.comment-item p { margin: 8px 0 0; font-size: 13px; line-height: 1.9; }
.comment-copy { min-width: 0; flex: 1; }
.comment-tools { display: flex; gap: 15px; margin-top: 7px; }
.comment-reply-trigger { padding: 0; border: 0; color: var(--accent-ink); background: transparent; font-family: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.comment-reply-trigger:hover { text-decoration: underline; }
.comment-inline-form { margin-top: 12px; padding: 14px; }
.comment-inline-form[hidden] { display: none; }
.comment-reply {
    margin: 14px 0 0 14px; padding: 10px 14px;
    border-right: 2px solid var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--surface);
}
.comment-reply strong { font-size: 12px; }
.comment-reply p { margin: 4px 0 0; font-size: 12.5px; }

.article-sidebar { position: sticky; top: 74px; }
.article-sidebar .news-card-image { height: 118px; }
.article-sidebar .news-card h3 { font-size: 12.5px; }

/* ---------- Login ---------- */
.login-panel {
    max-width: 460px; margin: 46px auto 84px; padding: 42px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-md);
    position: relative; overflow: hidden;
}
.login-panel::before {
    content: ""; position: absolute; top: 0; right: 0; left: 0; height: 5px;
    background: linear-gradient(90deg, var(--accent), var(--coral), var(--ocean));
}
.login-panel h1 { margin: 8px 0; font-size: 26px; font-weight: 700; }
.login-panel > p { color: var(--ink-soft); font-size: 13px; }
.login-panel .form-control {
    min-height: 48px; border-radius: var(--radius-sm);
    border-color: var(--line); font-family: inherit; font-size: 14px;
}
.login-panel .form-control:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.login-panel .form-label, .login-panel .form-check-label { font-size: 12px; font-weight: 600; }
.login-panel .btn-ink { min-height: 48px; justify-content: center; }

/* ---------- Static page / contact ---------- */
.prose-page {
    max-width: 860px; margin: 30px auto 70px; padding: 40px 44px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-sm);
}
.prose-page h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; margin-bottom: 10px; }
.prose-page .lead { color: var(--ink-soft); font-size: 16px; font-family: var(--font-serif); }
.prose-page article { margin-top: 26px; font-size: 15.5px; line-height: 2.05; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: start; }
.contact-card { padding: 34px 38px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow-sm); }
.contact-card h1 { font-size: 27px; font-weight: 700; margin-bottom: 6px; }
.contact-card .form-label { font-size: 12px; font-weight: 700; }
.contact-card .form-control { border-radius: var(--radius-sm); border-color: var(--line); font-family: inherit; }
.contact-card .form-control:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-aside { padding: 28px; border-radius: var(--radius); color: #dfecef; background: radial-gradient(400px 220px at 100% 0%, #136a86 0%, transparent 60%), var(--ink); box-shadow: var(--shadow-md); }
.contact-aside h2 { color: #fff; font-size: 18px; margin-bottom: 14px; }
.contact-aside .contact-line { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; font-size: 12.5px; color: #b3cbd2; }
.contact-aside .contact-line i { color: var(--gold); font-size: 15px; margin-top: 3px; }

/* ---------- Toast + floating buttons ---------- */
.site-toast {
    position: fixed; right: 22px; bottom: 90px; z-index: 2000;
    max-width: min(400px, calc(100vw - 44px));
    padding: 13px 20px; border-radius: var(--radius-sm);
    transform: translateY(15px); opacity: 0;
    color: #fff; background: var(--ink); box-shadow: var(--shadow-lg);
    font-size: 12.5px; pointer-events: none;
    transition: .2s ease;
    border-right: 3px solid var(--accent);
}
.site-toast.is-visible { transform: translateY(0); opacity: 1; }
.to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 1080;
    display: grid; place-items: center; width: 46px; height: 46px;
    border: 0; border-radius: 50%;
    color: #06283a; background: var(--accent); box-shadow: var(--shadow-md);
    font-size: 17px; cursor: pointer;
    opacity: 0; transform: translateY(14px); pointer-events: none;
    transition: all var(--transition);
}
.to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--ink); transform: translateY(-3px); }

/* ---------- Video / gallery / live index pages (Bootstrap card polish) ---------- */
.card { border-radius: var(--radius) !important; border-color: var(--line) !important; }
.card.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.video-card h2, .video-card .h5 { font-family: var(--font-serif); }
.badge { border-radius: 999px; font-weight: 600; }

/* ---------- Auth (login) ---------- */
.auth-shell {
    display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1fr);
    max-width: 920px; margin: 34px auto 80px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden;
}
.auth-aside {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
    padding: 42px 38px;
    color: #e9f4f6;
    background: radial-gradient(500px 260px at 100% 0%, #136a86 0%, transparent 60%), var(--ink);
}
.auth-aside::after {
    content: ""; position: absolute; right: -50px; bottom: -70px; width: 220px; height: 220px;
    border-radius: 50%; border: 28px solid rgba(255, 209, 102, .22);
}
.auth-aside .brand { margin-bottom: 30px; }
.auth-aside h2 { margin: 0 0 10px; color: #fff; font-size: 27px; line-height: 1.5; }
.auth-aside p { margin: 0 0 20px; color: #b3cbd2; font-size: 13px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-points li { display: flex; gap: 9px; align-items: flex-start; color: #cbdde2; font-size: 12.5px; }
.auth-points i { color: var(--gold); font-size: 14px; margin-top: 3px; }
.auth-body { padding: 44px 42px; }
.auth-body h1 { margin: 8px 0 6px; font-size: 27px; font-weight: 700; }
.auth-lede { margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; }
.auth-body .form-label { font-size: 12px; font-weight: 700; }
.auth-body .form-control {
    min-height: 48px; border-radius: var(--radius-sm); border-color: var(--line);
    font-family: inherit; font-size: 14px;
}
.auth-body .form-control:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.auth-body .form-check-label { font-size: 12.5px; }

/* Password reveal */
.password-field { position: relative; }
.password-field .form-control { padding-inline-end: 46px; }
.password-toggle {
    position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%);
    display: grid; place-items: center; width: 34px; height: 34px;
    border: 0; border-radius: 8px;
    color: var(--ink-soft); background: transparent; cursor: pointer;
    transition: color var(--transition), background var(--transition);
}
.password-toggle:hover { color: var(--ink); background: var(--surface); }
.password-toggle i { font-size: 16px; pointer-events: none; }


.auth-body .btn-ink { min-height: 48px; justify-content: center; }
.auth-foot { margin: 20px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.auth-foot a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

.unsubscribe-shell {
    max-width: 560px; margin: 34px auto 80px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-lg); overflow: hidden;
}
.unsubscribe-shell .auth-body { padding: 38px 40px; }
.unsubscribe-shell .form-control {
    min-height: 48px; border-radius: var(--radius-sm); border-color: var(--line);
    font-family: inherit; font-size: 14px;
}
.unsubscribe-shell .form-control:focus { border-color: var(--accent-ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.unsubscribe-shell .btn { min-height: 48px; justify-content: center; }

/* ---------- Error pages ---------- */
.error-shell {
    position: relative; overflow: hidden; max-width: 720px; margin: 40px auto 60px;
    padding: 64px 46px 56px; text-align: center;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow-md);
}
.error-ghost {
    position: absolute; top: -42px; right: 50%; transform: translateX(50%);
    font-family: var(--font-serif); font-size: clamp(120px, 22vw, 200px); font-weight: 800;
    color: var(--surface); line-height: 1; pointer-events: none; user-select: none;
}
.error-shell .eyebrow, .error-shell h1, .error-shell p { position: relative; }
.error-shell h1 { margin: 10px 0 12px; font-size: clamp(24px, 3.6vw, 34px); font-weight: 700; }
.error-shell p { margin: 0 auto 26px; max-width: 460px; color: var(--ink-soft); font-size: 14px; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.error-actions .btn-outline-dark { border-radius: 999px; padding: 11px 20px; font-size: 13px; }

/* ============================================================
   Typography & legibility
   ============================================================ */
body { font-size: 15.5px; line-height: 1.82; }
.byline { font-size: 12.5px; }
.byline i { font-size: 11px; }
.news-card-row .byline,
.hero-aside .byline,
.video-card-mini .byline { font-size: 12px; }
.section-heading > span,
.section-heading > a { font-size: 13px; }
.news-card-copy > p { font-size: 13.5px; }
.moment-list h3, .video-card-mini h3 { font-size: 14.5px; }
.moment-head small, .popular-list small { font-size: 11.5px; }
.article-body { font-size: 17px; line-height: 2.05; }
.article-body .article-lead { font-size: 18.5px; }
.article-cover figcaption { font-size: 12px; }
.article-meta > span:nth-child(2) strong { font-size: 13.5px; }
.article-meta > span:nth-child(2) small { font-size: 12px; }
.article-meta .meta-stat { font-size: 12px; }
.breadcrumb-line { font-size: 12.5px; }
.article-tags > span { font-size: 12px; }
.article-tags a { font-size: 12.5px; }
.auth-body .form-label { font-size: 13px; }
.auth-body .form-control { font-size: 14.5px; }
.auth-body .form-check-label { font-size: 13px; }
.footer-grid a, .footer-grid span { font-size: 13px; }
.footer-about p { font-size: 13.5px; }

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .video-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 1 / -1; }
}

@media (max-width: 991.98px) {
    .masthead-inner { min-height: 86px; }
    .brand img { width: 48px; height: 48px; }
    .brand-text strong { font-size: 27px; }
    .masthead-ad { display: none; }
    .hero-grid { grid-template-columns: minmax(0, 1.45fr) minmax(250px, 1fr); gap: 20px; }
    .feed-zone, .content-grid { grid-template-columns: minmax(0, 1fr) 250px; gap: 26px; }
    .category-block { grid-template-columns: 1fr; gap: 16px; }
    .category-lead .news-card-image { height: 230px; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
    .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 28px; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767.98px) {
    .topline { font-size: 10px; }
    .topline .container { gap: 8px; }
    .topline-date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .topline-links { flex: 0 0 auto; gap: 2px; }
    .topline-links a { padding: 3px 7px; }
    .masthead-inner { min-height: 74px; gap: 12px; }
    .brand img { width: 42px; height: 42px; }
    .brand-text strong { font-size: 23px; }
    .brand-text small { font-size: 9.5px; }
    .masthead-actions .btn-login { padding: 8px 14px; font-size: 11.5px; }
    .page-container { padding-top: 18px; padding-bottom: 48px; }
    .breaking-bar { margin-bottom: 20px; border-radius: var(--radius-sm); }
    .breaking-label { padding: 0 12px; font-size: 11px; }
    .hero-grid, .feed-zone, .content-grid, .article-layout { grid-template-columns: 1fr; gap: 24px; }
    .top-slider .carousel-item { height: 330px; }
    .slide-copy { padding: 18px 20px 24px; }
    .slider-arrow { width: 36px; height: 36px; font-size: 13px; }
    .moment-panel { order: -1; }
    .tab-btn { font-size: 14px; padding: 9px 15px; }
    .tab-panel-wrap { padding: 6px 14px 16px; }
    .latest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
    .popular-panel { position: static; }
    .article-sidebar { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
    .article-sidebar .section-heading { grid-column: 1 / -1; }
    .newsletter-panel { align-items: flex-start; flex-direction: column; margin-top: 40px; padding: 28px 22px; }
    .newsletter-form { width: 100%; }
    .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px; padding: 40px 0 30px; }
    .footer-about { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; gap: 5px; text-align: center; }
    .page-hero { padding: 26px 22px; }
    .page-hero .hero-count { position: static; display: inline-block; margin-bottom: 10px; }
    .prose-page, .contact-card { padding: 24px 20px; }
    .auth-shell { grid-template-columns: 1fr; margin-top: 12px; }
    .auth-aside { padding: 28px 22px; }
    .auth-aside h2 { font-size: 22px; }
    .auth-aside .auth-points { display: none; }
    .auth-body { padding: 28px 22px; }
    .error-shell { padding: 46px 22px 40px; margin-top: 16px; }
    .video-strip { padding: 0 18px; }
    .video-band .section-heading { padding: 0 18px 12px; }
    .article-title { font-size: 26px; }
    .article-body { font-size: 15.5px; }
    .comment-form-row { flex-direction: column; gap: 0; }
    .form-note { display: block; margin: 9px 0 0; }
}

@media (max-width: 479.98px) {
    .top-slider .carousel-item { height: 300px; }
    .slide-copy h2 { font-size: 18px; }
    .latest-grid, .listing-grid, .category-grid, .gallery-grid, .video-strip { grid-template-columns: 1fr; }
    .latest-grid .news-card, .listing-grid .news-card {
        display: grid; grid-template-columns: 118px 1fr; align-items: start; gap: 12px;
        padding: 13px 0;
    }
    .latest-grid .news-card-image, .listing-grid .news-card-image { height: 92px; }
    .latest-grid .news-card-copy, .listing-grid .news-card-copy { padding-top: 0; }
    .latest-grid .news-card h3, .listing-grid .news-card h3 { font-size: 12.5px; line-height: 1.65; }
    .latest-grid .news-card-copy > p, .listing-grid .news-card-copy > p { display: none; }
    .listing-grid .news-card .byline { padding-top: 4px; }
    .category-grid .news-card { display: grid; grid-template-columns: 116px 1fr; gap: 12px; padding: 12px; }
    .category-grid .news-card-image { height: 90px; }
    .category-grid .news-card-copy { padding-top: 0; }
    .category-grid .news-card h3 { font-size: 12.5px; }
    .popular-list { display: block; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-meta { gap: 8px; }
    .brand-text strong { font-size: 21px; }
}


/* ---------- Pagination (shared design) ---------- */
.pager {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px 18px; margin-top: 34px; padding-top: 18px;
    border-top: 1px solid var(--line);
}
.pager-summary { margin: 0; color: var(--ink-soft); font-size: 12px; }
.pager-summary strong { color: var(--ink); font-weight: 700; }
.pager .pagination { margin: 0; gap: 6px; flex-wrap: wrap; }
.pager .page-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    min-width: 38px; height: 38px; padding: 0 12px;
    border: 1px solid var(--line); border-radius: 11px;
    color: var(--ink-2, var(--ink)); background: var(--card);
    font-size: 12px; font-weight: 700; line-height: 1;
    box-shadow: var(--shadow-sm);
}
.pager .page-link:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
.pager .page-item.active .page-link {
    border-color: var(--accent);
    color: #06283a; background: linear-gradient(135deg, var(--accent), var(--coral));
    box-shadow: 0 6px 16px rgba(255, 209, 102, .38);
}
.pager .page-item.disabled .page-link { color: #a3bcc3; border-color: var(--line); background: var(--surface); pointer-events: none; box-shadow: none; }
.pager .page-item.is-ellipsis .page-link { border-color: transparent; background: transparent; box-shadow: none; color: var(--ink-soft); }
.pager .page-link i { font-size: 12px; }
@media (max-width: 767.98px) {
    .pager { justify-content: center; }
    .pager-summary { width: 100%; text-align: center; }
    .pager .page-link { min-width: 34px; height: 34px; padding: 0 9px; }
    .pager .pager-label { display: none; }
}

/* ---------- Print ---------- */
@media print {
    .topline, .main-nav, .masthead-ad, .site-footer, .article-actions, .comments-section,
    .article-sidebar, .print-button, .ad-slot, .breaking-bar, .to-top, .reading-progress,
    .newsletter-panel, .skip-link { display: none !important; }
    body { background: #fff; }
    .container { max-width: 100%; }
    .article-layout { display: block; }
    .article-body { color: #000; }
    .article-cover img { border-radius: 0; box-shadow: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .breaking-track { animation: none; }
    .breaking-viewport { overflow-x: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
