/* ==========================================================================
   Watar Media – public site styles
   Colours come from Admin → Settings (CSS variables set in <head>)
   ========================================================================== */
:root {
  --primary: #1b3a8c; --primary-rgb: 27,58,140;
  --secondary: #1fb4f5; --secondary-rgb: 31,180,245;
  --accent: #e11d48; --accent-rgb: 225,29,72;
  --dark: #0b1535;
  --bg: #f3f5fb; --card: #fff; --text: #0f172a; --muted: #5b6477; --line: #e4e8f1;
  --radius: 16px; --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15,23,42,.05), 0 8px 24px rgba(15,23,42,.06);
  --shadow-lg: 0 20px 50px rgba(15,23,42,.16);
  --grad: linear-gradient(120deg, #2a1878 0%, var(--primary) 45%, var(--secondary) 100%);
  --font-head: 'Poppins', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --container: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0; letter-spacing: -.01em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 14px; z-index: 999; }
.skip:focus { left: 10px; }
.ico { flex-shrink: 0; vertical-align: middle; }
.center { text-align: center; margin: 26px 0 8px; }
.empty { background: var(--card); padding: 30px; border-radius: var(--radius); text-align: center; color: var(--muted); }
.notice { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary); color: #fff; border: 0; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; transition: transform .25s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid rgba(var(--primary-rgb), .25); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: #fff; color: var(--primary); }
.btn-glow { background: linear-gradient(90deg, var(--secondary), #56d3ff); color: #06214d; box-shadow: 0 8px 30px rgba(var(--secondary-rgb), .55); }

/* Pulse dot */
.pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; position: relative; flex-shrink: 0; }
.pulse::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(3.2); opacity: 0; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--dark); color: #cbd5f5; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 10px; }
.tb-left a { display: inline-flex; gap: 6px; align-items: center; }
.tb-sep { width: 1px; height: 14px; background: rgba(255,255,255,.2); }
.tb-tag { font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 11.5px; background: linear-gradient(90deg, #fff, var(--secondary), #fff); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4s linear infinite; margin-right: 6px; }
@keyframes shine { to { background-position: 200% center; } }
.soc { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.08); transition: background .25s, transform .25s; }
.soc:hover { background: var(--secondary); color: #fff; transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-dark { background: var(--grad); border-bottom: 0; color: #fff; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15,23,42,.1); }
.header-in { display: flex; align-items: center; gap: 22px; min-height: 76px; transition: min-height .3s; }
.scrolled .header-in { min-height: 62px; }
.logo img { height: 50px; width: auto; transition: height .3s; }
.scrolled .logo img { height: 42px; }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { list-style: none; display: flex; flex-wrap: nowrap; gap: 2px; margin: 0; padding: 4px 0; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
.main-nav ul::-webkit-scrollbar { display: none; }
.main-nav li { flex-shrink: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 14.5px; position: relative; transition: color .2s, background .2s; font-family: var(--font-head); }
.main-nav a::after { content: ''; position: absolute; left: 50%; right: 50%; bottom: 2px; height: 3px; border-radius: 3px; background: var(--c, var(--secondary)); transition: left .3s, right .3s; }
.main-nav a:hover::after, .main-nav a.active::after { left: 12px; right: 12px; }
.main-nav a.active { color: var(--primary); }
.is-dark .main-nav a.active { color: #fff; }
.header-actions { display: flex; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(var(--primary-rgb), .07); color: inherit; display: grid; place-items: center; transition: background .2s, transform .2s; }
.icon-btn:hover { background: rgba(var(--primary-rgb), .15); transform: scale(1.06); }
.is-dark .icon-btn { background: rgba(255,255,255,.15); }
.burger, .nav-mobile-head, .nav-mobile-social { display: none; }
.nav-backdrop { display: none; }

/* ---------- Breaking ticker ---------- */
.ticker { background: #fff; border-bottom: 1px solid var(--line); }
.ticker-in { display: flex; align-items: center; height: 46px; gap: 0; }
.ticker-label { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 0 16px 0 14px; height: 32px; border-radius: 8px; position: relative; z-index: 2; white-space: nowrap; font-family: var(--font-head); box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }
.ticker-label::after { content: ''; position: absolute; right: -8px; top: 50%; transform: translateY(-50%); border: 8px solid transparent; border-left-color: var(--accent); border-right: 0; }
.ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-move { display: flex; width: max-content; animation: ticker calc(var(--speed, 45) * 1s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-group { display: flex; }
.ticker-item { white-space: nowrap; padding: 0 28px; font-weight: 600; font-size: 14.5px; position: relative; }
.ticker-item::before { content: ''; position: absolute; left: 0; top: 50%; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: translateY(-50%) rotate(45deg); }
.ticker-item a:hover { color: var(--accent); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,40,.92); backdrop-filter: blur(8px); display: flex; align-items: flex-start; justify-content: center; padding: 18vh 20px 0; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.search-overlay.open { opacity: 1; visibility: visible; }
.search-form { width: 100%; max-width: 760px; display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 999px; padding: 8px 8px 8px 22px; transform: translateY(20px); transition: transform .4s cubic-bezier(.2,.8,.2,1); color: var(--muted); }
.open .search-form { transform: none; }
.search-form input { flex: 1; border: 0; outline: 0; font-size: 20px; padding: 10px 0; min-width: 0; font-family: inherit; color: var(--text); }
.search-close { position: absolute; top: 24px; right: 24px; color: #fff; background: rgba(255,255,255,.1); }

/* ---------- Hero slider ---------- */
.slider-wrap { margin-top: 22px; }
.hero-slider { position: relative; aspect-ratio: 1080 / 466; max-height: 600px; width: 100%; border-radius: 22px; overflow: hidden; background: var(--dark); box-shadow: var(--shadow-lg); isolation: isolate; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 1s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fit-contain .slide-img { object-fit: contain; }
.slide-backdrop { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.2); opacity: .8; }
.slide-link { position: absolute; inset: 0; z-index: 3; }
.slide.is-active .slide-img { animation: kenburns calc(var(--interval, 6s) + 1.2s) ease-out both; }
.fit-contain.is-active .slide-img { animation-name: kenburns-soft; }
@keyframes kenburns { from { transform: scale(1.14) translate(1.5%, 1%); } to { transform: scale(1) translate(0,0); } }
@keyframes kenburns-soft { from { transform: scale(1.05); } to { transform: scale(1); } }
.fit-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,40,.78) 0%, rgba(6,12,40,.35) 55%, rgba(6,12,40,0) 100%); z-index: 1; }
.slide-content { position: absolute; z-index: 2; left: 0; top: 0; bottom: 0; width: min(640px, 70%); display: flex; flex-direction: column; justify-content: center; padding: 0 56px; color: #fff; }
.slide-kicker { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; backdrop-filter: blur(6px); color: #fff; }
.slide-kicker .pulse { color: #ff4d6d; }
.slide-title { font-size: clamp(24px, 4vw, 50px); font-weight: 800; margin: 16px 0 10px; text-shadow: 0 4px 30px rgba(0,0,0,.35); }
.slide-sub { font-size: clamp(14px, 1.5vw, 18px); opacity: .92; margin: 0 0 22px; max-width: 520px; }
.slide-btn { align-self: flex-start; }
.slide-content > * { opacity: 0; }
.is-active .slide-content > * { animation: .9s cubic-bezier(.2,.8,.2,1) both; }
.is-active .slide-content > :nth-child(1) { animation-delay: .25s; }
.is-active .slide-content > :nth-child(2) { animation-delay: .45s; }
.is-active .slide-content > :nth-child(3) { animation-delay: .65s; }
.is-active .slide-content > :nth-child(4) { animation-delay: .85s; }
.anim-slide.is-active .slide-content > * { animation-name: inLeft; }
.anim-up.is-active .slide-content > * { animation-name: inUp; }
.anim-zoom.is-active .slide-content > * { animation-name: inZoom; }
.anim-fade.is-active .slide-content > * { animation-name: inFade; }
@keyframes inLeft { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: none; } }
@keyframes inUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes inZoom { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@keyframes inFade { from { opacity: 0; } to { opacity: 1; } }
.sl-arrow { position: absolute; top: 50%; z-index: 5; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: rgba(10,20,60,.35); color: #fff; display: grid; place-items: center; backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s, background .3s, transform .3s; }
.hero-slider:hover .sl-arrow { opacity: 1; }
.sl-arrow:hover { background: var(--secondary); transform: translateY(-50%) scale(1.08); }
.sl-prev { left: 16px; } .sl-next { right: 16px; }
.sl-dots { position: absolute; z-index: 5; top: 18px; right: 20px; display: flex; gap: 8px; }
.sl-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; background: rgba(255,255,255,.5); padding: 0; transition: width .4s, background .4s; }
.sl-dots button.is-active { width: 30px; background: #fff; }
.sl-progress { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.12); }
.sl-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--secondary), #fff); }
.sl-progress span.run { animation: progress var(--interval, 6s) linear forwards; }
@keyframes progress { to { width: 100%; } }

/* ---------- Badges & meta ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; background: color-mix(in srgb, var(--c, var(--primary)) 12%, transparent); color: var(--c, var(--primary)); font-family: var(--font-head); line-height: 1.3; }
.badge-light { background: rgba(255,255,255,.2); color: #fff; }
.badge-live { background: var(--accent); color: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12.5px; color: var(--muted); align-items: center; }
.meta > * { display: inline-flex; align-items: center; gap: 5px; }
.meta-loc { font-weight: 600; color: var(--text); }

/* ---------- Cards ---------- */
.card { color: var(--text); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; position: relative; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; display: block; background: #dde3ef; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.card:hover .card-img img { transform: scale(1.08); }
.card-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.35)); opacity: 0; transition: opacity .4s; }
.card:hover .card-img::after { opacity: 1; }
.flags { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; z-index: 2; }
.flag { display: inline-flex; align-items: center; gap: 4px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(4px); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-title { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.card-title a:hover { background-size: 100% 2px; }
.card-excerpt { color: var(--muted); font-size: 14.5px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.read-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--primary); padding: 6px 12px; border-radius: 999px; background: rgba(var(--primary-rgb), .08); transition: gap .25s, background .25s, color .25s; font-family: var(--font-head); white-space: nowrap; }
.read-more:hover { gap: 10px; background: var(--primary); color: #fff; }
.card-sm .card-title { font-size: 15.5px; }
.card-sm .card-body { padding: 12px 14px 14px; }

/* Text-only card */
.card-text { background: linear-gradient(145deg, var(--c) 0%, color-mix(in srgb, var(--c) 55%, #0b1535) 100%); color: #fff; min-height: 220px; }
.card-text-inner { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; position: relative; z-index: 1; }
.card-text::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(255,255,255,.07); right: -90px; top: -90px; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card-text::after { content: ''; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.06); left: -40px; bottom: -60px; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card-text:hover::before { transform: scale(1.25) rotate(20deg); }
.card-text:hover::after { transform: scale(1.4); }
.quote-mark { position: absolute; right: 18px; top: -6px; font-size: 110px; font-family: Georgia, serif; line-height: 1; opacity: .18; }
.card-text .card-title { font-size: 19px; }
.card-text .card-excerpt, .card-text .meta, .card-text .meta-loc { color: rgba(255,255,255,.85); }
.card-text .read-more { background: rgba(255,255,255,.18); color: #fff; }
.card-text .read-more:hover { background: #fff; color: var(--c); }
.card-text.card-sm { min-height: 0; }
.card-text.card-sm .card-title { font-size: 16px; }
.card-hero-text { min-height: 100%; }
.card-hero-text .card-title { font-size: clamp(22px, 2.6vw, 32px); }
.card-hero-text .card-text-inner { justify-content: flex-end; padding: 34px; }
.card-hero-text .card-excerpt { -webkit-line-clamp: 4; font-size: 16px; }

/* Hero (top story) */
.card-hero { display: flex; flex-direction: column; justify-content: flex-end; position: relative; border-radius: var(--radius); overflow: hidden; height: 100%; min-height: 420px; box-shadow: var(--shadow); color: #fff; }
.card-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.card-hero:hover img { transform: scale(1.06); }
.hero-link { position: absolute; inset: 0; z-index: 1; }
.hero-overlay { position: relative; margin-top: auto; padding: 90px 30px 26px; background: linear-gradient(180deg, transparent, rgba(5,10,35,.92) 60%); z-index: 2; pointer-events: none; }
.hero-overlay a { pointer-events: auto; }
.hero-overlay h2 { font-size: clamp(22px, 2.8vw, 34px); font-weight: 800; margin-bottom: 8px; }
.hero-overlay p { margin: 0 0 12px; opacity: .88; max-width: 680px; }
.hero-overlay .meta, .hero-overlay .meta-loc { color: rgba(255,255,255,.85); }
.hero-overlay .read-more { background: var(--secondary); color: #04203f; }
.hero-overlay .badge:not(.badge-live) { background: rgba(255,255,255,.18); color: #fff; }

/* Row card */
.row-list { display: grid; gap: 18px; }
.row-card { display: grid; grid-template-columns: 300px 1fr; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .35s, box-shadow .35s; }
.row-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.row-img { position: relative; display: block; overflow: hidden; min-height: 190px; background: #dde3ef; }
.row-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.row-card:hover .row-img img { transform: scale(1.08); }
.row-img-text { background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 50%, #0b1535)); color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.row-img-text span { font-family: Georgia, serif; font-size: 90px; line-height: .6; opacity: .5; transition: transform .6s; }
.row-img-text em { font-style: normal; font-family: var(--font-head); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; opacity: .9; margin-top: 10px; }
.row-card:hover .row-img-text span { transform: scale(1.3) rotate(-8deg); }
.row-body { padding: 18px 22px; display: flex; flex-direction: column; }
.row-body .card-title { font-size: 19px; }

/* Mini list */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mini { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini:last-child { border-bottom: 0; }
.mini-thumb { width: 84px; height: 64px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: #dde3ef; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mini:hover .mini-thumb img { transform: scale(1.1); }
.mini-text { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(145deg, var(--c), color-mix(in srgb, var(--c) 50%, #0b1535)); color: #fff; font-family: Georgia, serif; font-size: 44px; line-height: 1; padding-top: 14px; }
.mini-title { font-weight: 600; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 4px; transition: color .2s; }
.mini-title:hover { color: var(--primary); }
.mini-num { font-family: var(--font-head); font-size: 30px; font-weight: 800; line-height: 1; width: 38px; flex-shrink: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Section head */
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; border-bottom: 2px solid var(--line); position: relative; }
.section-head h2 { font-size: 20px; font-weight: 800; padding-bottom: 10px; position: relative; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--primary)); transform: rotate(45deg); }
.section-head h2::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--c, var(--primary)); border-radius: 3px; }
.section-head .more { font-size: 13.5px; font-weight: 600; color: var(--c, var(--primary)); display: inline-flex; gap: 6px; align-items: center; padding-bottom: 10px; transition: gap .25s; }
.section-head .more:hover { gap: 10px; }

/* ---------- Home sections ---------- */
.top-stories { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; margin-top: 26px; }
.ts-side { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.ts-side .card-img { aspect-ratio: 16 / 9; }
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; margin-top: 40px; margin-bottom: 50px; align-items: start; }
.sidebar { display: grid; gap: 22px; position: sticky; top: 90px; }
.widget { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget-breaking .section-head { --c: var(--accent); }
.widget-follow { background: var(--grad); color: #fff; }
.widget-follow h3 { font-size: 17px; margin-bottom: 14px; }
.follow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fl { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.12); font-weight: 600; font-size: 14px; transition: background .25s, transform .25s; }
.fl:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.widget-tip { display: flex; align-items: center; gap: 14px; background: #e8fbef; color: #0f5132; border: 1px solid #b8ecc9; transition: transform .3s; }
.widget-tip:hover { transform: translateY(-3px); }
.widget-tip .ico { color: #16a34a; }
.widget-tip strong { display: block; font-family: var(--font-head); }
.widget-tip span { font-size: 13.5px; }

.spotlight { position: relative; padding: 60px 0 64px; background: linear-gradient(125deg, #1d0f5c 0%, var(--primary) 40%, var(--c) 100%); color: #fff; overflow: hidden; }
.spot-bg span { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.1); animation: float 14s ease-in-out infinite; }
.spot-bg span:nth-child(1) { width: 480px; height: 480px; right: -120px; top: -180px; }
.spot-bg span:nth-child(2) { width: 300px; height: 300px; left: -80px; bottom: -150px; animation-delay: -5s; background: rgba(255,255,255,.04); }
.spot-bg span:nth-child(3) { width: 160px; height: 160px; left: 45%; top: 20px; animation-delay: -9s; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(20px, 26px); } }
.spot-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 28px; position: relative; flex-wrap: wrap; }
.spot-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.spot-head h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin: 6px 0; }
.spot-head p { margin: 0; opacity: .85; max-width: 620px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.spotlight .card-text { box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset; }

.cat-blocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 30px; margin: 50px auto; }
.cat-block .card { margin-bottom: 8px; }

/* ---------- Page hero / listing ---------- */
.page-hero { background: linear-gradient(125deg, #1d0f5c, var(--c, var(--primary)) 70%, var(--secondary)); color: #fff; padding: 44px 0 50px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; width: 400px; height: 400px; right: -100px; top: -160px; border-radius: 50%; border: 50px solid rgba(255,255,255,.06); }
.page-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; animation: inUp .8s both; }
.page-hero p { margin: 6px 0 0; opacity: .85; animation: inUp .8s .15s both; }
.crumbs { font-size: 13.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.crumbs a:hover { color: var(--primary); }
.crumbs.light { color: rgba(255,255,255,.75); }
.crumbs.light a:hover { color: #fff; }
.listing-lead { margin-bottom: 22px; }
.listing-lead .card-hero { min-height: 380px; }
.inline-search { display: flex; gap: 10px; margin-bottom: 22px; }
.inline-search input { flex: 1; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 16px; font-family: inherit; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 30px 0 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; padding: 0 10px; }
.pagination .current { background: var(--primary); color: #fff; }
.pagination a:hover { background: rgba(var(--primary-rgb), .1); }
.pagination .dots { background: none; box-shadow: none; }

/* ---------- Article ---------- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 90; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--secondary)); }
.article-wrap { margin-top: 30px; }
.article { background: var(--card); border-radius: 20px; padding: 34px 40px 40px; box-shadow: var(--shadow); min-width: 0; }
.article-title { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 6px 0 14px; animation: inUp .7s both; }
.article-lede { font-size: 19px; color: #334155; margin: 0 0 16px; font-weight: 500; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.article-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.author { font-weight: 600; color: var(--text); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.font-ctl { margin-left: auto; gap: 4px !important; }
.font-ctl button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 3px 9px; font-weight: 700; font-size: 13px; }
.share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; color: var(--muted); }
.share a, .share button { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; transition: transform .25s, box-shadow .25s; }
.share a:hover, .share button:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 8px 18px rgba(0,0,0,.18); }
.sh-wa { background: #25d366; } .sh-fb { background: #1877f2; } .sh-x { background: #111; } .sh-tg { background: #229ed9; } .sh-copy { background: #64748b; }
.sh-copy.copied { background: #16a34a; }
.article-figure { margin: 22px 0; border-radius: 16px; overflow: hidden; background: #eef1f7; }
.article-figure img { width: 100%; max-height: 640px; object-fit: cover; animation: inFade 1s both; cursor: zoom-in; }
.article-figure figcaption { font-size: 13.5px; color: var(--muted); padding: 10px 16px; }
.article-textbanner { margin: 22px 0; height: 150px; border-radius: 16px; background: linear-gradient(125deg, var(--c), color-mix(in srgb, var(--c) 45%, #0b1535)); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 30px; overflow: hidden; position: relative; }
.article-textbanner span { font-family: Georgia, serif; font-size: 150px; line-height: .8; opacity: .35; margin-top: 50px; }
.article-textbanner em { font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: .03em; }
.video { position: relative; aspect-ratio: 16/9; border-radius: 16px; overflow: hidden; margin: 22px 0; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.prose { font-size: var(--fs, 18px); line-height: 1.8; color: #1e293b; overflow-wrap: break-word; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 1.35em; margin: 1.4em 0 .6em; }
.prose h3 { font-size: 1.15em; margin: 1.3em 0 .5em; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 12px; margin: 1em 0; height: auto; }
.prose blockquote { margin: 1.4em 0; padding: 16px 24px; border-left: 5px solid var(--c, var(--primary)); background: #f4f7fd; border-radius: 0 12px 12px 0; font-size: 1.08em; font-style: italic; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose iframe { max-width: 100%; border-radius: 12px; }
.prose .ql-align-center { text-align: center; } .prose .ql-align-right { text-align: right; } .prose .ql-align-justify { text-align: justify; }
.dateline { font-weight: 800; color: var(--c, var(--primary)); margin-right: 4px; font-family: var(--font-head); font-size: .9em; letter-spacing: .02em; }
.gallery { margin: 28px 0; }
.gallery h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; margin-bottom: 12px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.gallery-grid a { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; display: block; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; cursor: zoom-in; }
.gallery-grid a:hover img { transform: scale(1.1); }
.article-end { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.related { margin-top: 40px; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5,8,25,.94); display: flex; align-items: center; justify-content: center; animation: inFade .3s; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; color: #cbd5e1; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; animation: inZoom .35s; }
.lightbox figcaption { margin-top: 10px; font-size: 14px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; } .lb-next { right: 20px; }

/* Page / contact */
.page-body { background: var(--card); padding: 34px 40px; border-radius: 20px; box-shadow: var(--shadow); }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 22px; }
.cc { background: var(--card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; transition: transform .3s; color: var(--primary); }
.cc:hover { transform: translateY(-4px); }
.cc strong { color: var(--text); font-family: var(--font-head); }
.cc span { color: var(--muted); font-size: 14.5px; }
.cc-wa { color: #16a34a; }
.notfound { text-align: center; padding: 60px 20px; }
.nf-code { font-family: var(--font-head); font-size: 120px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: inZoom .8s both; }
.notfound h1 { margin: 10px 0; }
.notfound p { color: var(--muted); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #b9c3e0; position: relative; margin-top: 30px; }
.footer-wave { height: 6px; background: linear-gradient(90deg, var(--accent), var(--primary), var(--secondary), var(--primary), var(--accent)); background-size: 200% 100%; animation: wave 8s linear infinite; }
@keyframes wave { to { background-position: 200% 0; } }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 56px 20px 40px; }
.f-logo { height: 58px; width: auto; margin-bottom: 14px; }
.f-about p { font-size: 14.5px; margin: 0 0 16px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.site-footer ul a { transition: color .2s, padding .2s; display: inline-flex; align-items: center; gap: 6px; }
.site-footer ul a:hover { color: var(--secondary); padding-left: 4px; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact .ico { color: var(--secondary); margin-top: 3px; }
.f-social { display: flex; gap: 8px; flex-wrap: wrap; }
.f-social a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.07); display: grid; place-items: center; color: #fff; transition: background .25s, transform .25s; }
.f-social a:hover { background: var(--secondary); transform: translateY(-3px) rotate(-6deg); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 18px 0; font-size: 13.5px; text-align: center; }
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .3s, transform .3s; }
.to-top .ico { transform: rotate(90deg); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* Breaking toast */
.breaking-toast { position: fixed; left: 20px; bottom: 20px; z-index: 80; max-width: 420px; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,.25); padding: 16px 44px 16px 16px; border-left: 5px solid var(--accent); transform: translateX(-120%); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.breaking-toast.show { transform: none; }
.breaking-toast[hidden] { display: block; visibility: hidden; }
.breaking-toast.show[hidden] { visibility: visible; }
.bt-label { display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 800; font-size: 12px; letter-spacing: .08em; margin-bottom: 4px; font-family: var(--font-head); }
.breaking-toast a { display: block; font-weight: 700; line-height: 1.4; font-family: var(--font-head); }
.bt-close { position: absolute; top: 10px; right: 10px; border: 0; background: #f1f5f9; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.card.reveal.in:hover { transform: translateY(-6px); }
.row-card.reveal.in:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ticker-move { animation: none; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav a { padding: 8px 9px; font-size: 14px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .burger { display: grid; }
  .site-header, .site-header.is-dark { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .site-header { background: #fff; }
  .site-header.is-dark { background: var(--grad); }
  .header-in { justify-content: space-between; }
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; color: var(--text); z-index: 120; transform: translateX(100%); transition: transform .45s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; padding: 16px; overflow-y: auto; box-shadow: -20px 0 60px rgba(0,0,0,.2); }
  .main-nav.open { transform: none; }
  .nav-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .nav-mobile-head img { height: 40px; }
  .main-nav ul { flex-direction: column; flex-wrap: nowrap; overflow: visible; }
  .main-nav li a { font-size: 16px; padding: 12px 14px; border-radius: 10px; border-left: 4px solid var(--c, var(--secondary)); margin-bottom: 4px; background: #f6f8fc; }
  .main-nav li a::after { display: none; }
  .nav-mobile-social { display: flex; gap: 10px; margin-top: 18px; }
  .nav-mobile-social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(var(--primary-rgb), .08); display: grid; place-items: center; color: var(--primary); }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(5,10,30,.5); z-index: 55; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .nav-backdrop.open { opacity: 1; visibility: visible; }
  .with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .top-stories { grid-template-columns: 1fr; }
  .card-hero { min-height: 360px; }
}
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .container { padding: 0 14px; }
  .tb-tag, .tb-sep, .tb-left a { display: none; }
  .header-in { min-height: 64px; }
  .logo img { height: 40px; }
  .hero-slider { aspect-ratio: 16 / 10; border-radius: 16px; }
  .fit-contain .slide-img { object-fit: contain; }
  .slide-content { width: 100%; padding: 0 22px; }
  .fit-cover::after { background: linear-gradient(0deg, rgba(6,12,40,.85), rgba(6,12,40,.3)); }
  .slide-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; }
  .sl-arrow { display: none; }
  .ts-side { grid-template-columns: 1fr 1fr; gap: 12px; }
  .row-card { grid-template-columns: 1fr; }
  .row-img { min-height: 0; aspect-ratio: 16/9; }
  .row-img-text { aspect-ratio: auto; height: 110px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .cat-blocks { grid-template-columns: 1fr; }
  .article { padding: 22px 18px 26px; border-radius: 16px; }
  .page-body { padding: 22px 18px; }
  .prose { font-size: var(--fs, 17px); }
  .font-ctl { margin-left: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .ticker-label span { display: none; }
  .ticker-label { padding: 0 10px; }
  .breaking-toast { left: 10px; right: 10px; max-width: none; bottom: 10px; }
  .to-top { bottom: 90px; right: 12px; }
}
@media (max-width: 420px) {
  .ts-side { grid-template-columns: 1fr; }
  .card-hero { min-height: 320px; }
  .hero-overlay { padding: 70px 18px 18px; }
}

/* Quill 2 list + video output */
.prose li[data-list="bullet"] { list-style-type: disc; }
.prose ol:has(> li[data-list="bullet"]) { list-style-type: disc; }
.prose li .ql-ui { display: none; }
.prose iframe.ql-video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; margin: 1em 0; }
