/*
Theme Name: West Bengal Times
Theme URI: https://westbengaltimes.co.in
Author: West Bengal Times
Author URI: https://westbengaltimes.co.in
Description: News portal theme for westbengaltimes.co.in. Blue menu bar, breaking news ticker, top story with Latest / Most Read tabs, category blocks with sidebar, District News links for all 23 districts, photo gallery, opinion, citizen services links, newsletter box, clean article pages with share buttons, and a mobile bottom bar. Everything is editable from Appearance > WBT Options or the Customizer.
Version: 2.2.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: westbengaltimes
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/* ==========================================================================
   1. Settings
   ========================================================================== */
:root {
  --wbt-red: #0c3974;
  --wbt-alert: #dc2626;
  --wbt-red-dark: color-mix(in srgb, var(--wbt-red) 78%, #000);
  --wbt-red-soft: color-mix(in srgb, var(--wbt-red) 8%, #fff);
  --wbt-dark: #0b2347;
  --wbt-dark-2: color-mix(in srgb, var(--wbt-dark) 82%, #000);
  --wbt-bg: #f0f1f3;
  --wbt-white: #fff;
  --wbt-text: #1b1d21;
  --wbt-text-2: #41464d;
  --wbt-muted: #6b7178;
  --wbt-line: #e1e3e7;
  --wbt-line-2: #eceef1;
  --wbt-soft: #f7f8f9;
  --wbt-font: 'Hind Siliguri', 'Segoe UI', Arial, sans-serif;
  --wbt-radius: 4px;
  --wbt-wrap: 1220px;
}

/* ==========================================================================
   2. Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--wbt-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--wbt-text);
  background: var(--wbt-bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.3; font-weight: 700; color: var(--wbt-text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: inherit; text-decoration: none; transition: color .15s; }
a:hover { color: var(--wbt-red); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--wbt-red); outline-offset: 2px; }

.wbt-wrap { width: 100%; max-width: var(--wbt-wrap); margin: 0 auto; padding: 0 16px; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.wbt-skip { position: absolute; left: -9999px; top: 8px; z-index: 999; background: var(--wbt-red); color: #fff; padding: 8px 14px; border-radius: var(--wbt-radius); }
.wbt-skip:focus { left: 8px; color: #fff; }
.wbt-ico { flex: none; vertical-align: middle; }

/* Buttons */
.wbt-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 16px; border-radius: var(--wbt-radius);
  background: var(--wbt-red); color: #fff; border: 1px solid var(--wbt-red);
  font-size: 14.5px; font-weight: 600; line-height: 1; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.wbt-btn:hover { background: var(--wbt-red-dark); border-color: var(--wbt-red-dark); color: #fff; }
.wbt-btn-line { background: var(--wbt-white); color: var(--wbt-text); border-color: var(--wbt-line); }
.wbt-btn-line:hover { background: var(--wbt-white); color: var(--wbt-red); border-color: var(--wbt-red); }

/* Labels and meta */
.wbt-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.wbt-badge {
  display: inline-block; padding: 3px 8px 2px; border-radius: 3px;
  background: var(--wbt-red); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4;
}
a.wbt-badge:hover { color: #fff; background: var(--wbt-red-dark); }
.wbt-badge-dark { background: var(--wbt-dark); }
.wbt-cat { color: var(--wbt-red); font-size: 13px; font-weight: 600; }
.wbt-cat:hover { text-decoration: underline; }
.wbt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12.5px; color: var(--wbt-muted); margin-top: 6px; }
.wbt-meta > span, .wbt-time { display: inline-flex; align-items: center; gap: 4px; }

/* Avatar circle */
.wbt-avatar {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--wbt-red); color: #fff; font-weight: 700; font-size: 15px; letter-spacing: .5px;
}
.wbt-avatar-lg { width: 60px; height: 60px; font-size: 20px; }

/* Reading progress */
.wbt-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; }
.wbt-progress span { display: block; height: 100%; width: 0; background: var(--wbt-red); }

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.wbt-topbar { background: var(--wbt-dark); color: #c3c8ce; font-size: 13px; }
.wbt-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.wbt-topbar-left, .wbt-topbar-right { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.wbt-topbar-left > span { display: inline-flex; align-items: center; gap: 5px; }
.wbt-topbar-date { color: #fff; font-weight: 500; }
.wbt-topbar-menu { list-style: none; display: flex; gap: 16px; }
.wbt-topbar a:hover { color: #fff; }
.wbt-social { display: flex; align-items: center; gap: 6px; }
.wbt-social a {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .08); transition: background .15s, color .15s;
}
.wbt-social a:hover { background: var(--wbt-red); color: #fff; }
.wbt-social-lg a { width: 36px; height: 36px; }

/* ==========================================================================
   4. Header (logo row)
   ========================================================================== */
.wbt-header { background: var(--wbt-white); border-bottom: 1px solid var(--wbt-line); }
.wbt-header-inner { display: flex; align-items: center; gap: 24px; min-height: 92px; padding-top: 14px; padding-bottom: 14px; }
.wbt-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--wbt-text); }
.wbt-logo:hover { color: var(--wbt-text); }
.wbt-logo-mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  min-width: 58px; height: 58px; padding: 0 8px; border-radius: var(--wbt-radius);
  background: var(--wbt-red); color: #fff; font-weight: 700; font-size: 21px; letter-spacing: .5px; line-height: 1;
}
.wbt-logo-text { display: flex; flex-direction: column; }
.wbt-logo-name { font-size: 31px; font-weight: 700; line-height: 1.05; letter-spacing: -.3px; }
.wbt-logo-sub { font-size: 13.5px; color: var(--wbt-muted); margin-top: 4px; }
.wbt-logo-bn + .wbt-logo-tag::before { content: "|"; margin: 0 6px; opacity: .6; }
.wbt-logo-custom img { max-height: 70px; width: auto; }
.wbt-header-search { margin-left: auto; width: 340px; }
.wbt-header-actions { display: flex; align-items: center; gap: 8px; }
.wbt-header-search + .wbt-header-actions { margin-left: 0; }
.wbt-header-inner > .wbt-header-actions:only-of-type { margin-left: auto; }

/* Search form */
.wbt-searchform { display: flex; background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); overflow: hidden; }
.wbt-searchform input { flex: 1; min-width: 0; height: 40px; padding: 0 12px; border: 0; background: transparent; font-size: 15px; }
.wbt-searchform input:focus { outline: none; }
.wbt-searchform:focus-within { border-color: var(--wbt-red); }
.wbt-searchform button { width: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--wbt-red); color: #fff; }
.wbt-searchform button:hover { background: var(--wbt-red-dark); }

/* ==========================================================================
   5. Menu bar
   ========================================================================== */
.wbt-nav { position: sticky; top: 0; z-index: 60; background: var(--wbt-red); color: #fff; transition: box-shadow .2s; }
.wbt-nav.is-stuck { box-shadow: 0 2px 10px rgba(0, 0, 0, .18); }
.wbt-nav-inner { display: flex; align-items: stretch; height: 46px; }
.wbt-nav-btn { width: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.wbt-nav-btn:hover { background: rgba(0, 0, 0, .15); }
.wbt-nav-home { width: 46px; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--wbt-red-dark); color: #fff; }
.wbt-nav-home:hover, .wbt-nav-home.is-on { color: #fff; background: rgba(0, 0, 0, .3); }
.wbt-nav-scroll { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.wbt-nav-scroll::-webkit-scrollbar { display: none; }
.wbt-menu { list-style: none; display: flex; height: 100%; }
.wbt-menu li { flex: none; }
.wbt-menu a {
  display: flex; align-items: center; height: 100%; padding: 0 14px;
  font-size: 15.5px; font-weight: 600; color: #fff; white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, .14);
}
.wbt-menu a:hover, .wbt-menu .current-menu-item > a, .wbt-menu .current-category-ancestor > a { color: #fff; background: rgba(0, 0, 0, .18); }

/* Breaking ticker */
.wbt-ticker { background: var(--wbt-white); border-bottom: 1px solid var(--wbt-line); }
.wbt-ticker-inner { display: flex; align-items: center; height: 42px; gap: 14px; overflow: hidden; }
.wbt-ticker-label {
  flex: none; display: inline-flex; align-items: center; height: 28px; padding: 0 12px;
  background: var(--wbt-alert); color: #fff; font-size: 13.5px; font-weight: 700; border-radius: 3px; white-space: nowrap;
}
.wbt-ticker-track { flex: 1; min-width: 0; overflow: hidden; }
.wbt-ticker-move { display: inline-flex; white-space: nowrap; animation: wbt-ticker 55s linear infinite; }
.wbt-ticker:hover .wbt-ticker-move { animation-play-state: paused; }
.wbt-ticker-item { display: inline-flex; align-items: center; font-size: 15px; font-weight: 500; padding-right: 30px; }
.wbt-ticker-item::before { content: ""; width: 7px; height: 7px; background: var(--wbt-alert); margin-right: 10px; flex: none; }
@keyframes wbt-ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .wbt-ticker-move { animation: none; } }

/* Drawer */
.wbt-drawer { position: fixed; inset: 0; z-index: 300; }
.wbt-drawer[hidden], .wbt-searchlay[hidden] { display: none; }
.wbt-drawer-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.wbt-drawer-panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(330px, 88vw); overflow-y: auto;
  background: var(--wbt-white); padding: 0 16px 24px; animation: wbt-slide .2s ease-out;
}
@keyframes wbt-slide { from { transform: translateX(-100%); } to { transform: none; } }
.wbt-drawer-head { display: flex; align-items: center; justify-content: space-between; height: 60px; margin: 0 -16px 14px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--wbt-line); }
.wbt-drawer-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 17px; }
.wbt-drawer-name .wbt-logo-mark { min-width: 34px; height: 34px; font-size: 13px; }
.wbt-drawer-head .wbt-icon-btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; }
.wbt-drawer-label { margin: 20px 0 6px; font-size: 13px; font-weight: 700; color: var(--wbt-muted); text-transform: uppercase; letter-spacing: .04em; }
.wbt-drawer-list { list-style: none; }
.wbt-drawer-list a { display: block; padding: 10px 2px; border-bottom: 1px solid var(--wbt-line-2); font-size: 16px; font-weight: 500; }
.wbt-drawer-list .sub-menu { list-style: none; padding-left: 14px; }
.wbt-drawer .wbt-social a { background: var(--wbt-soft); border: 1px solid var(--wbt-line); }

/* Search overlay */
.wbt-searchlay { position: fixed; inset: 0; z-index: 300; background: rgba(20, 22, 26, .92); display: flex; align-items: flex-start; justify-content: center; padding: 16vh 16px 0; }
.wbt-searchlay-inner { position: relative; width: 100%; max-width: 640px; }
.wbt-searchlay-label { color: #fff; font-size: 20px; font-weight: 600; margin-bottom: 12px; }
.wbt-searchlay .wbt-searchform input { height: 52px; font-size: 17px; }
.wbt-searchlay .wbt-searchform button { width: 56px; }
.wbt-searchlay-close { position: absolute; right: 0; top: -54px; width: 44px; height: 44px; color: #fff; display: inline-flex; align-items: center; justify-content: center; }

/* ==========================================================================
   6. Layout pieces
   ========================================================================== */
.wbt-main { padding-top: 20px; }
.wbt-box { background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); padding: 16px; margin-bottom: 20px; }
.wbt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 336px; gap: 20px; align-items: start; }
.wbt-layout-main { min-width: 0; }
.wbt-side { min-width: 0; }
.wbt-side-sticky { position: sticky; top: 66px; }
.wbt-grid-2, .wbt-grid-3, .wbt-grid-4 { display: grid; gap: 20px; }
.wbt-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wbt-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wbt-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Section heading */
.wbt-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--wbt-line); margin-bottom: 14px; }
.wbt-sechead-title { position: relative; font-size: 20px; padding-bottom: 8px; }
.wbt-sechead-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 3px; background: var(--wbt-red); }
.wbt-sechead-sub { font-size: 15px; font-weight: 500; color: var(--wbt-muted); margin-left: 4px; }
.wbt-sechead-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13.5px; font-weight: 600; color: var(--wbt-red); padding-bottom: 8px; white-space: nowrap; }
.wbt-sechead-more:hover { color: var(--wbt-red-dark); text-decoration: underline; }

/* ==========================================================================
   7. Story cards
   ========================================================================== */
/* Image overlay (top story + small overlay) */
.wbt-ov { position: relative; border-radius: var(--wbt-radius); overflow: hidden; background: var(--wbt-dark); color: #fff; }
.wbt-ov-link { display: block; position: relative; aspect-ratio: 16 / 10; }
.wbt-ov-link img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wbt-ov:hover img { transform: scale(1.03); }
.wbt-ov-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .82) 100%); }
.wbt-ov-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; pointer-events: none; }
.wbt-ov-body a { pointer-events: auto; }
.wbt-ov-title { color: #fff; font-size: 18px; line-height: 1.35; font-weight: 600; }
.wbt-ov-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.wbt-ov-excerpt { margin-top: 8px; font-size: 15.5px; color: rgba(255, 255, 255, .88); max-width: 680px; }
.wbt-ov .wbt-meta { color: rgba(255, 255, 255, .78); }
.wbt-ov-hero { height: 100%; }
.wbt-ov-hero .wbt-ov-link { height: 100%; min-height: 420px; aspect-ratio: auto; }
.wbt-ov-hero .wbt-ov-body { padding: 24px; }
.wbt-ov-hero .wbt-ov-title { font-size: 32px; line-height: 1.25; font-weight: 700; max-width: 760px; }

/* Standard card */
.wbt-card { min-width: 0; }
.wbt-card-media { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--wbt-radius); overflow: hidden; background: var(--wbt-line-2); }
.wbt-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wbt-card:hover .wbt-card-media img { transform: scale(1.04); }
.wbt-card-badge { position: absolute; left: 8px; bottom: 8px; }
.wbt-card-body { padding-top: 10px; }
.wbt-card-title { font-size: 17px; line-height: 1.4; font-weight: 600; }
.wbt-card-excerpt { margin-top: 6px; font-size: 14.5px; color: var(--wbt-text-2); }

/* Small list item */
.wbt-li { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wbt-line-2); }
.wbt-li:last-child { border-bottom: 0; padding-bottom: 0; }
.wbt-li-media { display: block; aspect-ratio: 4 / 3; border-radius: 3px; overflow: hidden; background: var(--wbt-line-2); }
.wbt-li-media img { width: 100%; height: 100%; object-fit: cover; }
.wbt-li-title { font-size: 15px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.wbt-li .wbt-meta { margin-top: 4px; }

/* Row (image left, text right) */
.wbt-row { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--wbt-line-2); }
.wbt-sechead + .wbt-row { padding-top: 2px; }
.wbt-row:last-of-type { border-bottom: 0; }
.wbt-row-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--wbt-radius); overflow: hidden; background: var(--wbt-line-2); }
.wbt-row-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wbt-row:hover .wbt-row-media img { transform: scale(1.04); }
.wbt-row-title { font-size: 19px; line-height: 1.35; font-weight: 600; margin-top: 2px; }
.wbt-row-excerpt { margin-top: 6px; font-size: 14.5px; color: var(--wbt-text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Numbered (most read) */
.wbt-num { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wbt-line-2); }
.wbt-num:last-child { border-bottom: 0; padding-bottom: 0; }
.wbt-sechead + .wbt-num { padding-top: 2px; }
.wbt-num-n {
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wbt-red-soft); color: var(--wbt-red); font-weight: 700; font-size: 15px;
}
.wbt-num-title { font-size: 15px; line-height: 1.4; font-weight: 600; }
.wbt-num .wbt-meta { margin-top: 3px; }

/* Photo */
.wbt-photo { position: relative; display: block; border-radius: var(--wbt-radius); overflow: hidden; background: #000; color: #fff; min-height: 170px; }
.wbt-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: transform .4s ease, opacity .2s; }
.wbt-photo:hover img { transform: scale(1.04); opacity: 1; }
.wbt-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, .8)); }
.wbt-photo-icon { position: absolute; top: 10px; left: 10px; z-index: 1; width: 30px; height: 30px; border-radius: 50%; background: var(--wbt-red); display: inline-flex; align-items: center; justify-content: center; }
.wbt-photo-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 12px 14px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.wbt-photo:hover { color: #fff; }

/* ==========================================================================
   8. Home page
   ========================================================================== */
.wbt-topnews { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; margin-bottom: 20px; }
.wbt-top-main { min-width: 0; }
.wbt-topnews .wbt-tabs { margin-bottom: 0; }
.wbt-box.wbt-tabs { padding: 0; overflow: hidden; }
.wbt-tabs-head { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--wbt-line); }
.wbt-tabs-head button { padding: 12px 8px 10px; font-size: 16px; font-weight: 700; color: var(--wbt-muted); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.wbt-tabs-head button:hover { color: var(--wbt-text); }
.wbt-tabs-head button.is-on { color: var(--wbt-red); border-bottom-color: var(--wbt-red); background: var(--wbt-red-soft); }
.wbt-tabs-pane { padding: 4px 16px 16px; }

.wbt-top-row { margin-bottom: 20px; }
.wbt-top-row .wbt-card { background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); padding: 10px; }
.wbt-top-row .wbt-card-title { font-size: 16px; }

.wbt-block-split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; }
.wbt-block-split .wbt-card-title { font-size: 21px; line-height: 1.35; }
.wbt-block-list .wbt-li:first-child { padding-top: 0; }
.wbt-block-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wbt-headlines { list-style: none; margin-top: 6px; }
.wbt-headlines li { position: relative; padding: 10px 0 10px 16px; border-bottom: 1px solid var(--wbt-line-2); font-size: 15px; font-weight: 600; line-height: 1.4; }
.wbt-headlines li:last-child { border-bottom: 0; padding-bottom: 0; }
.wbt-headlines li::before { content: ""; position: absolute; left: 0; top: 18px; width: 6px; height: 6px; background: var(--wbt-red); }

/* District News */
.wbt-districts-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 8px; }
.wbt-districts-list a {
  display: flex; align-items: center; gap: 6px; padding: 9px 12px; border: 1px solid var(--wbt-line);
  border-radius: 3px; background: var(--wbt-soft); font-size: 14.5px; font-weight: 500;
}
.wbt-districts-list a .wbt-ico { color: var(--wbt-red); }
.wbt-districts-list a:hover { background: var(--wbt-red); border-color: var(--wbt-red); color: #fff; }
.wbt-districts-list a:hover .wbt-ico { color: #fff; }
.wbt-districts-posts { margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--wbt-line-2); }
.wbt-districts-posts .wbt-card-title { font-size: 15.5px; }

/* Photo gallery */
.wbt-gallery { background: var(--wbt-dark); padding: 24px 0 28px; margin-bottom: 20px; }
.wbt-gallery .wbt-sechead { border-bottom-color: rgba(255, 255, 255, .14); }
.wbt-gallery .wbt-sechead-title { color: #fff; }
.wbt-gallery .wbt-sechead-more { color: #fff; }
.wbt-gallery-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 190px 190px; gap: 12px; }
.wbt-gallery-grid .wbt-photo:first-child { grid-column: span 2; grid-row: span 2; }
.wbt-gallery-grid .wbt-photo:first-child .wbt-photo-cap { font-size: 20px; padding: 18px; }

/* Opinion */
.wbt-op { border: 1px solid var(--wbt-line); border-top: 3px solid var(--wbt-red); border-radius: var(--wbt-radius); padding: 16px; background: var(--wbt-soft); }
.wbt-op-who { display: flex; align-items: center; gap: 10px; }
.wbt-op-who strong { display: block; font-size: 15px; line-height: 1.3; }
.wbt-op-who em { display: block; font-style: normal; font-size: 13px; color: var(--wbt-muted); }
.wbt-op-title { margin-top: 12px; font-size: 16.5px; line-height: 1.45; font-weight: 600; }

/* Sidebar boxes */
.wbt-side > .wbt-box:last-child, .wbt-side-sticky > .wbt-box:last-child { margin-bottom: 20px; }
.wbt-services ul { list-style: none; }
.wbt-services li a { display: flex; align-items: center; gap: 6px; padding: 9px 0; border-bottom: 1px dashed var(--wbt-line); font-size: 14.5px; font-weight: 500; }
.wbt-services li:last-child a { border-bottom: 0; padding-bottom: 0; }
.wbt-services li a .wbt-ico { color: var(--wbt-red); }
.wbt-newsletter { background: var(--wbt-red-soft); border-color: color-mix(in srgb, var(--wbt-red) 22%, #fff); text-align: center; }
.wbt-newsletter-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--wbt-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.wbt-newsletter-title { font-size: 19px; }
.wbt-newsletter > p { font-size: 14.5px; color: var(--wbt-text-2); margin-top: 4px; }
.wbt-newsletter-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.wbt-newsletter-form input { height: 42px; padding: 0 12px; border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); background: var(--wbt-white); }
.wbt-newsletter-form input:focus { outline: none; border-color: var(--wbt-red); }
.wbt-newsletter-form .wbt-btn { height: 42px; }
.wbt-newsletter-note { margin-top: 8px; font-size: 13px; color: var(--wbt-red); }
.wbt-widget { background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); padding: 16px; margin-bottom: 20px; font-size: 15px; }
.wbt-widget-title { font-size: 18px; padding-bottom: 8px; margin-bottom: 12px; border-bottom: 3px solid var(--wbt-red); display: inline-block; }
.wbt-widget ul { list-style: none; }
.wbt-widget li { padding: 7px 0; border-bottom: 1px solid var(--wbt-line-2); }

.wbt-empty { text-align: center; padding: 48px 20px; }
.wbt-empty h1, .wbt-empty h2 { font-size: 24px; margin-bottom: 8px; }
.wbt-empty p { color: var(--wbt-muted); margin-bottom: 16px; }
.wbt-empty .wbt-searchform { max-width: 460px; margin: 0 auto; }

/* ==========================================================================
   9. Archive / search heads
   ========================================================================== */
.wbt-pagehead { border-left: 4px solid var(--wbt-red); padding: 16px 20px; }
.wbt-pagehead-title { font-size: 28px; }
.wbt-pagehead-desc { color: var(--wbt-muted); font-size: 15px; margin-top: 4px; }
.wbt-pagehead-desc p { margin: 0; }
.wbt-pagehead-search { max-width: 520px; margin-top: 12px; }
.wbt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13.5px; color: var(--wbt-muted); margin-bottom: 8px; }
.wbt-crumbs a:hover { color: var(--wbt-red); }
.wbt-layout-main > .wbt-ov-hero { margin-bottom: 20px; }
.wbt-layout-main > .wbt-ov-hero .wbt-ov-link { min-height: 400px; }
.wbt-archive-grid .wbt-card { background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); padding: 10px; }

/* Pagination */
.wbt-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 20px 0; }
.wbt-pages .page-numbers, .wbt-pages > a, .wbt-pages > span {
  min-width: 38px; height: 38px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--wbt-white); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); font-size: 14.5px; font-weight: 600;
}
.wbt-pages .current { background: var(--wbt-red); border-color: var(--wbt-red); color: #fff; }
.wbt-pages a:hover { border-color: var(--wbt-red); color: var(--wbt-red); }
.wbt-pages .dots { border: 0; background: none; }

/* ==========================================================================
   10. Article
   ========================================================================== */
.wbt-article { padding: 24px; }
.wbt-article-title { font-size: 33px; line-height: 1.28; margin: 10px 0 0; }
.wbt-standfirst { font-size: 18px; color: var(--wbt-text-2); margin-top: 10px; line-height: 1.55; }
.wbt-article-byline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 0; border-top: 1px solid var(--wbt-line); border-bottom: 1px solid var(--wbt-line); }
.wbt-byline-text { flex: 1; min-width: 200px; }
.wbt-by { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.wbt-by a:hover { color: var(--wbt-red); }
.wbt-byline-text .wbt-meta { margin-top: 2px; }
.wbt-share { display: flex; flex-wrap: wrap; gap: 6px; }
.wbt-share a, .wbt-share button {
  width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: var(--wbt-muted); transition: opacity .15s, transform .15s;
}
.wbt-share a:hover, .wbt-share button:hover { color: #fff; opacity: .88; transform: translateY(-1px); }
.wbt-share .wbt-share-whatsapp { background: #25a35a; }
.wbt-share .wbt-share-facebook { background: #1b62c9; }
.wbt-share .wbt-share-x { background: #111; }
.wbt-share .wbt-share-telegram { background: #2a8fc9; }
.wbt-share .wbt-share-copy.is-copied { background: #25a35a; }
.wbt-article-figure { margin: 18px 0; }
.wbt-article-figure img { width: 100%; border-radius: var(--wbt-radius); }
.wbt-article-figure figcaption { font-size: 13.5px; color: var(--wbt-muted); padding-top: 6px; }

.wbt-prose { font-size: 17.5px; line-height: 1.8; color: var(--wbt-text); overflow-wrap: break-word; }
.wbt-prose > * + * { margin-top: 1.05em; }
.wbt-dateline-city { color: var(--wbt-red); font-weight: 700; }
.wbt-prose h2 { font-size: 24px; margin-top: 1.5em; }
.wbt-prose h3 { font-size: 20px; margin-top: 1.4em; }
.wbt-prose h4 { font-size: 18px; margin-top: 1.3em; }
.wbt-prose a { color: var(--wbt-red); text-decoration: underline; text-underline-offset: 2px; }
.wbt-prose ul, .wbt-prose ol { padding-left: 1.4em; }
.wbt-prose li + li { margin-top: .35em; }
.wbt-prose blockquote { margin-left: 0; margin-right: 0; padding: 14px 18px; border-left: 4px solid var(--wbt-red); background: var(--wbt-soft); font-size: 19px; font-weight: 600; line-height: 1.55; }
.wbt-prose blockquote p { margin: 0; }
.wbt-prose blockquote cite { display: block; margin-top: 8px; font-size: 14px; font-weight: 400; font-style: normal; color: var(--wbt-muted); }
.wbt-prose blockquote cite::before { content: "— "; }
.wbt-prose img, .wbt-prose figure img { border-radius: var(--wbt-radius); }
.wbt-prose figure { margin-left: 0; margin-right: 0; }
.wbt-prose figcaption, .wbt-prose .wp-caption-text { font-size: 13.5px; color: var(--wbt-muted); margin-top: 6px; }
.wbt-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.wbt-prose th { background: var(--wbt-dark); color: #fff; text-align: left; font-weight: 600; }
.wbt-prose th, .wbt-prose td { padding: 9px 12px; border: 1px solid var(--wbt-line); }
.wbt-prose tbody tr:nth-child(even) td { background: var(--wbt-soft); }
.wbt-table-scroll { overflow-x: auto; }
.wbt-prose iframe, .wbt-prose video { max-width: 100%; }
.alignleft { float: left; margin: .3em 1.2em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.2em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }

/* Contents box */
.wbt-toc { border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); background: var(--wbt-soft); }
.wbt-toc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 16px; font-weight: 700; text-align: left; }
.wbt-toc-head::after { content: "−"; font-size: 20px; line-height: 1; color: var(--wbt-red); }
.wbt-toc.is-closed .wbt-toc-head::after { content: "+"; }
.wbt-toc-count { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--wbt-muted); }
.wbt-toc-list { margin: 0; list-style: none; padding: 0 14px 12px; font-size: 15.5px; line-height: 1.5; }
.wbt-toc-list li + li { margin-top: 6px; }
.wbt-toc-list a { color: var(--wbt-text); text-decoration: none; }
.wbt-toc-list a:hover { color: var(--wbt-red); }
.wbt-toc-list li { position: relative; padding-left: 14px; }
.wbt-toc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 5px; height: 5px; background: var(--wbt-red); }
.wbt-toc-l3 { margin-left: 16px; }
.wbt-toc-l3::before { background: var(--wbt-muted) !important; }
.wbt-toc.is-closed .wbt-toc-list { display: none; }

/* After the article */
.wbt-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 24px; }
.wbt-tags span { font-weight: 700; font-size: 15px; }
.wbt-tags a { padding: 4px 10px; border-radius: 3px; background: var(--wbt-bg); font-size: 13.5px; font-weight: 500; }
.wbt-tags a:hover { background: var(--wbt-red); color: #fff; }
.wbt-share-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; padding: 12px 0; border-top: 1px solid var(--wbt-line); border-bottom: 1px solid var(--wbt-line); }
.wbt-share-inline > span { font-weight: 700; font-size: 15px; }
.wbt-authorbox { display: flex; gap: 14px; align-items: flex-start; margin-top: 20px; padding: 16px; background: var(--wbt-soft); border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); }
.wbt-authorbox h3 { font-size: 17px; }
.wbt-authorbox p { font-size: 14.5px; color: var(--wbt-text-2); margin-top: 4px; }
.wbt-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.wbt-postnav a { display: block; padding: 12px 14px; border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); font-size: 15px; font-weight: 600; line-height: 1.4; }
.wbt-postnav a:hover { border-color: var(--wbt-red); }
.wbt-postnav span { display: block; font-size: 13px; color: var(--wbt-red); margin-bottom: 4px; }
.wbt-postnav-next { text-align: right; grid-column: 2; }

/* Comments */
.wbt-comments { margin-top: 28px; }
.wbt-comment-list { list-style: none; }
.wbt-comment-list .comment { padding: 14px 0; border-bottom: 1px solid var(--wbt-line-2); }
.wbt-comment-list .children { list-style: none; padding-left: 24px; }
.wbt-comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.wbt-comment-list .avatar { border-radius: 50%; }
.wbt-comment-list .comment-metadata { font-size: 12.5px; color: var(--wbt-muted); }
.wbt-comment-list .comment-content { font-size: 15.5px; margin-top: 6px; }
.wbt-comment-list .reply a { font-size: 13px; font-weight: 600; color: var(--wbt-red); }
.wbt-reply-title { font-size: 19px; margin-top: 12px; }
.comment-form { margin-top: 12px; }
.comment-form p { margin-bottom: 12px; }
.comment-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--wbt-line); border-radius: var(--wbt-radius); background: var(--wbt-white);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--wbt-red); }
.comment-form .wbt-meta { margin-bottom: 10px; }

/* Static page */
.wbt-page { max-width: 900px; margin-left: auto; margin-right: auto; }

/* 404 */
.wbt-404 { text-align: center; padding: 48px 20px; }
.wbt-404-code { font-size: 96px; font-weight: 700; line-height: 1; color: var(--wbt-red); }
.wbt-404 h1 { font-size: 30px; margin-top: 8px; }
.wbt-404 > p:not(.wbt-404-code) { max-width: 540px; margin: 10px auto 0; color: var(--wbt-muted); }
.wbt-404 .wbt-searchform { max-width: 460px; margin: 20px auto 16px; }

/* ==========================================================================
   11. Footer
   ========================================================================== */
.wbt-footer { background: var(--wbt-dark); color: #b9bfc6; font-size: 14.5px; margin-top: 12px; }
.wbt-footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 40px 0 32px; }
.wbt-footer .wbt-logo, .wbt-footer .wbt-logo:hover { color: #fff; }
.wbt-footer .wbt-logo-mark { min-width: 48px; height: 48px; font-size: 17px; }
.wbt-footer .wbt-logo-name { font-size: 24px; }
.wbt-footer .wbt-logo-sub { color: #8f969e; font-size: 13px; }
.wbt-footer-about p { margin: 14px 0 16px; line-height: 1.7; }
.wbt-foot-title { position: relative; color: #fff; font-size: 16.5px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.wbt-foot-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 40px; height: 2px; background: var(--wbt-red); }
.wbt-foot-list { list-style: none; }
.wbt-foot-list a { display: block; padding: 4px 0; }
.wbt-foot-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.wbt-footer a:hover { color: #fff; }
.wbt-foot-contact { list-style: none; }
.wbt-foot-contact li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.wbt-foot-contact .wbt-ico { margin-top: 4px; color: var(--wbt-red); }
.wbt-footer-base { background: var(--wbt-dark-2); font-size: 13px; color: #9aa1a8; }
.wbt-footer-base-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.wbt-footer-disc { display: block; color: #7d848c; margin-top: 2px; }
.wbt-foot-links { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; flex: none; }
.wbt-foot-links a { color: #c3c9d1; }
.wbt-foot-links a:hover { color: #fff; text-decoration: underline; }
.wbt-foot-sep { color: #4d5666; }
.wbt-top { flex: none; width: 38px; height: 38px; border-radius: var(--wbt-radius); background: var(--wbt-red); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.wbt-top:hover { background: var(--wbt-red-dark); }

/* Mobile bottom bar */
.wbt-appbar { display: none; }

/* ==========================================================================
   12. Responsive
   ========================================================================== */
@media (max-width: 1140px) {
  .wbt-topnews { grid-template-columns: minmax(0, 1fr) 320px; }
  .wbt-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .wbt-header-search { width: 260px; }
  .wbt-ov-hero .wbt-ov-title { font-size: 28px; }
}

@media (max-width: 960px) {
  .wbt-hide-md { display: none !important; }
  .wbt-header-actions { margin-left: auto; }
  .wbt-topnews, .wbt-layout { grid-template-columns: minmax(0, 1fr); }
  .wbt-side-sticky { position: static; }
  .wbt-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wbt-footer-cols { grid-template-columns: 1fr 1fr; }
  .wbt-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 160px 160px; }
  .wbt-gallery-grid .wbt-photo:first-child { grid-row: span 1; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; padding-bottom: 62px; }
  .wbt-hide-sm { display: none !important; }
  .wbt-wrap { padding: 0 12px; }
  .wbt-main { padding-top: 12px; }
  .wbt-box { padding: 12px; margin-bottom: 12px; }
  .wbt-grid-2, .wbt-grid-3, .wbt-grid-4, .wbt-layout, .wbt-topnews, .wbt-block-pair { gap: 12px; }
  .wbt-topnews, .wbt-top-row, .wbt-side > .wbt-box:last-child { margin-bottom: 12px; }
  .wbt-topbar-inner { min-height: 32px; font-size: 12px; }
  .wbt-topbar-right { display: none; }
  .wbt-header-inner { min-height: 0; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .wbt-logo { gap: 8px; }
  .wbt-logo-mark { min-width: 42px; height: 42px; font-size: 15px; }
  .wbt-logo-name { font-size: 21px; }
  .wbt-logo-sub { font-size: 12px; margin-top: 2px; }
  .wbt-logo-tag { display: none; }
  .wbt-header-actions .wbt-btn { height: 34px; padding: 0 10px; font-size: 13.5px; }
  .wbt-nav-inner { height: 44px; padding: 0; }
  .wbt-menu a { padding: 0 12px; font-size: 15px; }
  .wbt-ticker-inner { height: 38px; gap: 10px; }
  .wbt-ticker-label { height: 26px; padding: 0 8px; font-size: 12.5px; }
  .wbt-ticker-item { font-size: 14px; }
  .wbt-ov-hero .wbt-ov-link { min-height: 340px; }
  .wbt-ov-hero .wbt-ov-body { padding: 14px; }
  .wbt-ov-hero .wbt-ov-title { font-size: 22px; }
  .wbt-ov-excerpt { display: none; }
  .wbt-tabs-pane { padding: 2px 12px 12px; }
  .wbt-top-row .wbt-card { padding: 6px; }
  .wbt-top-row .wbt-card-title { font-size: 14.5px; }
  .wbt-card-badge { display: none; }
  .wbt-grid-3, .wbt-block-split, .wbt-block-pair, .wbt-grid-2 { grid-template-columns: minmax(0, 1fr); }
  .wbt-block-split .wbt-card-title { font-size: 19px; }
  .wbt-row { grid-template-columns: 116px minmax(0, 1fr); gap: 12px; padding: 12px 0; }
  .wbt-row-title { font-size: 15.5px; }
  .wbt-row-excerpt { display: none; }
  .wbt-row .wbt-meta > span:first-child { display: none; }
  .wbt-sechead-title { font-size: 18px; }
  .wbt-districts-list { grid-template-columns: 1fr 1fr; gap: 6px; }
  .wbt-districts-list a { padding: 8px 10px; font-size: 14px; }
  .wbt-gallery { padding: 16px 0 20px; margin-bottom: 12px; }
  .wbt-gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 140px 140px; gap: 8px; }
  .wbt-gallery-grid .wbt-photo:first-child .wbt-photo-cap { font-size: 17px; padding: 12px; }
  .wbt-photo-cap { font-size: 13.5px; padding: 10px; }
  .wbt-pagehead { padding: 12px 14px; }
  .wbt-pagehead-title { font-size: 22px; }
  .wbt-article { padding: 14px; }
  .wbt-article-title { font-size: 25px; }
  .wbt-standfirst { font-size: 16.5px; }
  .wbt-article-byline .wbt-share { width: 100%; }
  .wbt-prose { font-size: 17px; line-height: 1.75; }
  .wbt-prose h2 { font-size: 21px; }
  .wbt-postnav { grid-template-columns: 1fr; }
  .wbt-postnav-next { grid-column: auto; }
  .wbt-footer-cols { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 20px; }
  .wbt-footer-base-inner { flex-wrap: wrap; align-items: flex-start; }
  .wbt-footer-base-inner > p { flex: 1 1 100%; }
  .wbt-foot-links { order: 2; }
  .wbt-top { order: 3; margin-left: auto; }
  .wbt-404-code { font-size: 72px; }

  .wbt-appbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    background: var(--wbt-white); border-top: 1px solid var(--wbt-line); box-shadow: 0 -2px 10px rgba(0, 0, 0, .06);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .wbt-appbar a, .wbt-appbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 58px; font-size: 11.5px; font-weight: 600; color: var(--wbt-muted); }
  .wbt-appbar .is-on { color: var(--wbt-red); }
}
