/*
Theme Name: Times of West Bengal
Theme URI: https://timesofwestbengal.in
Author: Times of West Bengal
Author URI: https://timesofwestbengal.in
Description: A fast, SEO-first and AdSense-ready Bengali news & education blog theme built for timesofwestbengal.in — শিক্ষা, পরীক্ষা, স্কলারশিপ, মাধ্যমিক, উচ্চমাধ্যমিক, চাকরি, ভর্তি ও খবর। Works with Rank Math for schema & sitemap.
Version: 2.22
Requires at least: 6.0
Tested up to: 6.8
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: timesofwestbengal
Tags: blog, news, education, one-column, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */
:root {
  --towb-red: #0e5f6b;
  --towb-red-dark: #093f48;
  --towb-gold: #f2863a;
  --towb-ink: #12213a;
  --towb-ink-2: #34445e;
  --towb-muted: #6b7280;
  --towb-line: #dfe5ec;
  --towb-paper: #f5f7fa;
  --towb-white: #ffffff;
  --towb-soft: #eaf1f3;
  --towb-green: #1f7a4d;
  --towb-blue: #1d4ed8;
  --towb-font-body: "Anek Bangla", "Noto Sans Bengali", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --towb-font-head: "Tiro Bangla", "Anek Bangla", Georgia, serif;
  --towb-container: min(1800px, 100%);
  --towb-radius: 12px;
  --towb-shadow: 0 1px 2px rgba(22, 24, 29, 0.06), 0 8px 24px -12px rgba(22, 24, 29, 0.18);
}

/* ==========================================================================
   2. Reset & base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--towb-font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--towb-ink);
  background: var(--towb-paper);
  word-break: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--towb-red); text-decoration: none; }
a:hover { color: var(--towb-red-dark); text-decoration: underline; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--towb-font-head);
  line-height: 1.3;
  margin: 0 0 .5em;
  color: var(--towb-ink);
  font-weight: 700;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.25em; }
ul, ol { padding-left: 1.4em; }
blockquote {
  margin: 1.5em 0; padding: 1em 1.25em;
  border-left: 4px solid var(--towb-gold);
  background: var(--towb-soft); font-style: italic;
}
table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95em; }
th, td { border: 1px solid var(--towb-line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--towb-soft); font-weight: 700; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { background: var(--towb-ink); color: #f5f5f5; padding: 1em; overflow: auto; border-radius: var(--towb-radius); }
hr { border: 0; border-top: 1px solid var(--towb-line); margin: 2em 0; }
button, input, select, textarea { font: inherit; }
.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--towb-ink); color: #fff; padding: .6em 1em; z-index: 9999; }
.skip-link:focus { left: 8px; top: 8px; }

.towb-container { max-width: var(--towb-container); margin: 0 auto; padding: 0 clamp(16px, 2.5vw, 44px); }

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.towb-social ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.towb-date { white-space: nowrap; }

/* ==========================================================================
   4. Header
   ========================================================================== */
.towb-header { background: var(--towb-white); border-bottom: 1px solid var(--towb-line); }
.towb-masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 24px; }
.towb-masthead-left { display: flex; align-items: center; padding-inline-start: clamp(20px, 6vw, 130px); }
.towb-masthead-left .towb-date { font-size: .82rem; color: var(--towb-muted); background: var(--towb-paper, transparent); }
.towb-masthead-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.towb-masthead-right .towb-social-icons { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.towb-masthead-right .towb-social-icon { color: var(--towb-ink); display: inline-flex; }
.towb-masthead-right .towb-social-icon:hover { color: var(--towb-red); }
.towb-masthead-right .towb-social-icon svg { width: 18px; height: 18px; fill: currentColor; }
.towb-brand { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.towb-brand .custom-logo { max-height: 64px; width: auto; }
.towb-site-title { font-family: var(--towb-font-head); font-size: 2.1rem; font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-align: center; }
.towb-site-title a { color: var(--towb-ink); }
.towb-site-title a:hover { text-decoration: none; color: var(--towb-red); }
.towb-site-title span { color: var(--towb-red); }
.towb-tagline { margin: 2px 0 0; font-size: .85rem; color: var(--towb-muted); text-align: center; }
.towb-header-ad { display: flex; justify-content: center; padding-bottom: 12px; }
.towb-header-ad > * { max-width: 728px; width: 100%; }

.towb-nav { background: var(--towb-red); position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.admin-bar .towb-nav { top: 32px; }
.towb-nav .towb-container { display: flex; align-items: center; justify-content: space-between; }
.towb-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.towb-nav li { position: relative; }
.towb-nav a { display: block; padding: 12px 14px; color: #fff; font-weight: 600; font-size: .95rem; white-space: nowrap; }
.towb-nav a:hover, .towb-nav .current-menu-item > a, .towb-nav .current-menu-ancestor > a { background: var(--towb-red-dark); text-decoration: none; }
.towb-nav .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 220px; background: #fff; flex-direction: column; box-shadow: var(--towb-shadow); border-top: 3px solid var(--towb-gold); z-index: 950; }
.towb-nav .sub-menu .sub-menu { left: 100%; top: -3px; }
.towb-nav li:hover > .sub-menu, .towb-nav li:focus-within > .sub-menu { display: flex; }
.towb-nav .sub-menu a { color: var(--towb-ink); font-weight: 500; padding: 10px 14px; border-bottom: 1px solid var(--towb-line); }
.towb-nav .sub-menu a:hover { background: var(--towb-soft); color: var(--towb-red); }
.towb-nav .menu-item-has-children > a::after { content: " ▾"; font-size: .8em; }
.towb-nav-tools { display: flex; align-items: center; gap: 6px; }
.towb-nav-btn { background: transparent; border: 0; color: #fff; padding: 10px; cursor: pointer; display: none; line-height: 0; }
.towb-search-toggle { display: inline-flex; }
.towb-nav-search { display: none; background: var(--towb-red-dark); padding: 10px 0; }
.towb-nav-search.is-open { display: block; }

.towb-search-form { display: flex; gap: 0; max-width: 640px; margin: 0 auto; }
.towb-search-form input[type="search"] { flex: 1; padding: 10px 14px; border: 1px solid var(--towb-line); border-radius: var(--towb-radius) 0 0 var(--towb-radius); min-width: 0; }
.towb-search-form button { padding: 10px 18px; border: 0; background: var(--towb-ink); color: #fff; font-weight: 600; border-radius: 0 var(--towb-radius) var(--towb-radius) 0; cursor: pointer; }

/* Ticker */
.towb-ticker { background: var(--towb-white); border-bottom: 1px solid var(--towb-line); font-size: .9rem; }
.towb-ticker .towb-container { display: flex; align-items: center; gap: 12px; overflow: hidden; height: 40px; }
.towb-ticker-label { background: var(--towb-red); color: #fff; font-weight: 700; padding: 3px 10px; border-radius: 3px; font-size: .8rem; flex-shrink: 0; }
.towb-ticker-track { flex: 1; overflow: hidden; position: relative; white-space: nowrap; }
.towb-ticker-track ul { list-style: none; margin: 0; padding: 0; display: inline-flex; gap: 40px; animation: towb-ticker 45s linear infinite; }
.towb-ticker-track:hover ul { animation-play-state: paused; }
.towb-ticker-track a { color: var(--towb-ink-2); }
@keyframes towb-ticker { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .towb-ticker-track ul { animation: none; } }

/* ==========================================================================
   5. Layout
   ========================================================================== */
.towb-main { padding: 28px 0 40px; }
.towb-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 26vw, 420px); gap: clamp(24px, 3vw, 44px); }
.towb-layout--full { grid-template-columns: minmax(0, 1fr); }
.towb-layout--full .towb-content { width: 100%; }
.towb-sidebar { min-width: 0; }

/* Once the sidebar is done, the full-width band uses every pixel it gets. */
@media (min-width: 1400px) and (pointer: coarse) {
  .towb-hero-main { min-height: 520px; }
  .towb-hero-title { font-size: 2.15rem; }
  .towb-layout--full .towb-grid--3 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .towb-layout--full .towb-catblock { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
  .towb-layout--full .towb-catblock .towb-card-thumb { max-height: 430px; }
}

/* Section heading */
.towb-section { margin-bottom: 36px; }
.towb-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--towb-ink); margin-bottom: 18px; }
.towb-section-title { font-size: 1.25rem; margin: 0; background: var(--towb-ink); color: #fff; padding: 6px 14px; position: relative; }
.towb-section-title::after { content: ""; position: absolute; right: -10px; top: 0; border: 17px solid transparent; border-left-color: var(--towb-ink); border-right: 0; }
.towb-section-title a { color: inherit; }
.towb-section-title a:hover { text-decoration: none; color: var(--towb-gold); }
.towb-section-more { font-size: .85rem; font-weight: 600; color: var(--towb-red); }

/* Cards */
.towb-card { background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.towb-card:hover { box-shadow: var(--towb-shadow); transform: translateY(-2px); }
.towb-card-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--towb-soft); }
.towb-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.towb-card:hover .towb-card-thumb img { transform: scale(1.04); }
.towb-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.towb-card-title { font-size: 1.08rem; margin: 0; line-height: 1.4; }
.towb-card-title a { color: var(--towb-ink); }
.towb-card-title a:hover { color: var(--towb-red); text-decoration: none; }
.towb-card-excerpt { font-size: .92rem; color: var(--towb-ink-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.towb-cat { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #fff; background: var(--towb-red); padding: 2px 8px; border-radius: 3px; }
.towb-cat:hover { background: var(--towb-ink); color: #fff; text-decoration: none; }
.towb-cat--overlay { position: absolute; left: 10px; top: 10px; z-index: 2; }
.towb-meta { font-size: .8rem; color: var(--towb-muted); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.towb-meta a { color: var(--towb-muted); }
.towb-meta a:hover { color: var(--towb-red); }
.towb-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; fill: currentColor; }

.towb-grid { display: grid; gap: 20px; }
.towb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.towb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.towb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Hero */
.towb-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; margin-bottom: 36px; align-items: stretch; }
.towb-hero-main { position: relative; border-radius: var(--towb-radius); overflow: hidden; min-height: 420px; background: var(--towb-ink); display: flex; align-items: flex-end; }
.towb-hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.towb-hero-main::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); }
.towb-hero-main .towb-hero-body { position: relative; z-index: 2; padding: 28px; color: #fff; }
.towb-hero-main .towb-hero-title { font-size: 1.85rem; margin: 10px 0 8px; line-height: 1.25; color: #fff; }
.towb-hero-main .towb-hero-title a { color: #fff; }
.towb-hero-main .towb-hero-title a:hover { color: var(--towb-gold); text-decoration: none; }
.towb-hero-main .towb-meta, .towb-hero-main .towb-meta a { color: rgba(255,255,255,.8); }
.towb-hero-main p { color: rgba(255,255,255,.9); margin: 0; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.towb-hero-side { display: grid; grid-auto-rows: 1fr; gap: 12px; }
.towb-hero-item { display: grid; grid-template-columns: 120px 1fr; gap: 12px; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); overflow: hidden; }
.towb-hero-item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.towb-hero-item .towb-hero-item-body { padding: 8px 10px 8px 0; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.towb-hero-item h3 { font-size: .98rem; margin: 0; line-height: 1.35; }
.towb-hero-item h3 a { color: var(--towb-ink); }
.towb-hero-item h3 a:hover { color: var(--towb-red); text-decoration: none; }

/* Category block (home) */
.towb-catblock { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; }
.towb-catblock > .towb-card .towb-card-thumb { max-height: 520px; }
.towb-catblock-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.towb-catblock-list li { flex: 1 1 auto; display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--towb-line); align-items: center; }
.towb-catblock-list li:last-child { border-bottom: 0; }
.towb-catblock-list img { width: 96px; height: 68px; object-fit: cover; border-radius: 4px; }
.towb-catblock-list h3 { font-size: .96rem; margin: 0 0 4px; line-height: 1.4; }
.towb-catblock-list h3 a { color: var(--towb-ink); }
.towb-catblock-list h3 a:hover { color: var(--towb-red); text-decoration: none; }
.towb-catblock-list .towb-meta { font-size: .75rem; }

/* Quick links strip */
.towb-quicklinks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 36px; }
.towb-quicklink { background: var(--towb-white); border: 1px solid var(--towb-line); border-top: 3px solid var(--towb-red); border-radius: var(--towb-radius); padding: 14px 12px; text-align: center; font-weight: 700; color: var(--towb-ink); font-size: .95rem; transition: all .2s; }
.towb-quicklink:hover { background: var(--towb-red); color: #fff; text-decoration: none; border-color: var(--towb-red); }
.towb-quicklink small { display: block; font-weight: 400; font-size: .75rem; color: var(--towb-muted); margin-top: 2px; }
.towb-quicklink:hover small { color: rgba(255,255,255,.85); }

/* Post list (archive) */
.towb-list { display: flex; flex-direction: column; gap: 20px; }
.towb-list-item { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 20px; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); overflow: hidden; }
.towb-list-item .towb-card-thumb { display: block; width: 100%; min-width: 0; aspect-ratio: 4/3; height: 100%; }
.towb-list-item .towb-card-thumb img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.towb-list-item .towb-card-body { min-width: 0; padding: 16px 18px 16px 0; }
.towb-list-item .towb-card-title,
.towb-list-item .towb-card-excerpt { overflow-wrap: anywhere; }
.towb-list-item .towb-card-title { font-size: 1.25rem; }

/* Archive header */
.towb-archive-head { background: var(--towb-white); border: 1px solid var(--towb-line); border-left: 5px solid var(--towb-red); padding: 18px 22px; margin-bottom: 24px; border-radius: var(--towb-radius); }
.towb-archive-head h1 { font-size: 1.6rem; margin: 0 0 4px; }
.towb-archive-head p { margin: 0; color: var(--towb-ink-2); font-size: .95rem; }

/* Breadcrumbs */
.towb-breadcrumbs { font-size: .82rem; color: var(--towb-muted); margin-bottom: 14px; }
.towb-breadcrumbs a { color: var(--towb-muted); }
.towb-breadcrumbs a:hover { color: var(--towb-red); }
.towb-breadcrumbs .sep { margin: 0 6px; opacity: .6; }
.towb-breadcrumbs .last { color: var(--towb-ink); font-weight: 600; }

/* ==========================================================================
   6. Single post
   ========================================================================== */
.towb-single { background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 28px 32px 32px; }
.towb-entry-header { margin-bottom: 20px; }
.towb-entry-title { font-size: 2.1rem; line-height: 1.28; margin: 10px 0 12px; }
.towb-entry-sub { font-size: 1.05rem; color: var(--towb-ink-2); margin-bottom: 14px; }
.towb-entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .86rem; color: var(--towb-muted); padding: 12px 0; border-top: 1px solid var(--towb-line); border-bottom: 1px solid var(--towb-line); }
.towb-entry-meta .towb-avatar { width: 32px; height: 32px; border-radius: 50%; }
.towb-entry-meta .towb-author { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--towb-ink); }
.towb-entry-meta .towb-author a { color: var(--towb-ink); }
.towb-featured { margin: 20px 0; border-radius: var(--towb-radius); overflow: hidden; }
.towb-featured img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.towb-featured figcaption { font-size: .8rem; color: var(--towb-muted); padding: 6px 0 0; text-align: center; }

.towb-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.towb-share a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 30px; font-size: .82rem; font-weight: 600; color: #fff; }
.towb-share a:hover { text-decoration: none; opacity: .9; }
.towb-share .fb { background: #1877f2; }
.towb-share .wa { background: #25d366; }
.towb-share .tg { background: #229ed9; }
.towb-share .x { background: #000; }
.towb-share .cp { background: var(--towb-ink-2); }
.towb-share svg { width: 15px; height: 15px; fill: currentColor; }

.towb-toc { background: var(--towb-soft); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 14px 18px; margin: 0 0 24px; font-size: .95rem; }
.towb-toc summary { font-weight: 700; cursor: pointer; font-family: var(--towb-font-head); }
.towb-toc ol { margin: 10px 0 0; padding-left: 1.3em; }
.towb-toc li { margin: 4px 0; }
.towb-toc a { color: var(--towb-ink-2); }

.towb-entry-content { font-size: 1.08rem; line-height: 1.85; }
.towb-entry-content > * { max-width: 100%; }
.towb-entry-content h2 { font-size: 1.55rem; margin: 1.6em 0 .6em; padding-bottom: .3em; border-bottom: 2px solid var(--towb-line); position: relative; }
.towb-entry-content h2::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 70px; height: 2px; background: var(--towb-red); }
.towb-entry-content h3 { font-size: 1.3rem; margin: 1.4em 0 .5em; }
.towb-entry-content h4 { font-size: 1.12rem; margin: 1.2em 0 .5em; }
.towb-entry-content img { border-radius: var(--towb-radius); margin: 1.2em auto; }
.towb-entry-content figure { margin: 1.5em 0; }
.towb-entry-content figcaption { font-size: .82rem; color: var(--towb-muted); text-align: center; }
.towb-entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.towb-entry-content ul, .towb-entry-content ol { margin: 0 0 1.4em; }
.towb-entry-content li { margin: .35em 0; }
.towb-entry-content .wp-block-table { overflow-x: auto; }
.towb-entry-content .wp-block-button__link { background: var(--towb-red); color: #fff; text-decoration: none; border-radius: var(--towb-radius); }
.towb-entry-content .wp-block-quote { border-left-color: var(--towb-red); }
.towb-entry-content iframe { max-width: 100%; }
.towb-entry-content .towb-note { background: #fff8e6; border: 1px solid #f1d58a; border-left: 4px solid var(--towb-gold); padding: 12px 16px; border-radius: 4px; margin: 1.5em 0; }
.towb-entry-content .towb-btn { display: inline-block; background: var(--towb-red); color: #fff !important; padding: 10px 22px; border-radius: 4px; font-weight: 700; text-decoration: none !important; margin: 4px 6px 4px 0; }
.towb-entry-content .towb-btn:hover { background: var(--towb-ink); }
.towb-entry-content .towb-btn--green { background: var(--towb-green); }
.towb-entry-content .towb-btn--blue { background: var(--towb-blue); }
.towb-page-links { margin: 1.5em 0; font-weight: 600; }
.towb-page-links a, .towb-page-links > span { display: inline-block; padding: 4px 12px; border: 1px solid var(--towb-line); border-radius: 4px; margin-right: 4px; }
.towb-page-links > span:not(.towb-page-links-title) { background: var(--towb-red); color: #fff; border-color: var(--towb-red); }

.towb-tags { margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .85rem; }
.towb-tags a { background: var(--towb-soft); color: var(--towb-ink-2); padding: 4px 12px; border-radius: 30px; border: 1px solid var(--towb-line); }
.towb-tags a:hover { background: var(--towb-red); color: #fff; border-color: var(--towb-red); text-decoration: none; }

.towb-author-box { display: grid; grid-template-columns: 84px 1fr; gap: 18px; background: var(--towb-soft); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 20px; margin: 30px 0; }
.towb-author-box img { border-radius: 50%; width: 84px; height: 84px; }
.towb-author-box h3 { margin: 0 0 4px; font-size: 1.1rem; }
.towb-author-box p { margin: 0 0 6px; font-size: .92rem; color: var(--towb-ink-2); }
.towb-author-box .towb-author-link { font-size: .85rem; font-weight: 600; }

.towb-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.towb-postnav a { display: block; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 14px 16px; color: var(--towb-ink); }
.towb-postnav a:hover { text-decoration: none; border-color: var(--towb-red); }
.towb-postnav .label { display: block; font-size: .75rem; color: var(--towb-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.towb-postnav .title { font-weight: 700; font-family: var(--towb-font-head); line-height: 1.35; }
.towb-postnav .next { text-align: right; }

.towb-related { margin-top: 36px; }

/* Comments */
.towb-comments { margin-top: 36px; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 24px 28px; }
.towb-comments .comment-list { list-style: none; padding: 0; margin: 0 0 24px; }
.towb-comments .comment { padding: 16px 0; border-bottom: 1px solid var(--towb-line); }
.towb-comments .comment .children { list-style: none; padding-left: 40px; }
.towb-comments .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.towb-comments .comment-author img { border-radius: 50%; }
.towb-comments .comment-metadata { font-size: .8rem; color: var(--towb-muted); margin: 4px 0 8px; }
.towb-comments .comment-content { font-size: .96rem; }
.towb-comments .reply { font-size: .85rem; }
.comment-form label { display: block; font-weight: 600; font-size: .9rem; 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(--towb-line); border-radius: 4px; background: var(--towb-paper); }
.comment-form .form-submit input { background: var(--towb-red); color: #fff; border: 0; padding: 10px 24px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.comment-form .form-submit input:hover { background: var(--towb-ink); }

/* ==========================================================================
   7. Ads
   ========================================================================== */
.towb-ad { margin: 24px auto; text-align: center; clear: both; max-width: 100%; overflow: hidden; }
.towb-ad--header { margin: 0; }
.towb-ad--sidebar { margin: 0 0 24px; position: sticky; top: 70px; }
.towb-ad--in-content { margin: 28px auto; }
.towb-ad-label { display: block; font-size: .65rem; color: #9ca3af; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 4px; }
.towb-ad ins.adsbygoogle { display: block; }
.towb-ad-placeholder { background: repeating-linear-gradient(45deg, #f5f3ee, #f5f3ee 10px, #eeebe3 10px, #eeebe3 20px); border: 1px dashed #d4cfc2; color: #9a9384; font-size: .8rem; display: flex; align-items: center; justify-content: center; min-height: 90px; border-radius: 4px; }

/* ==========================================================================
   8. Sidebar widgets
   ========================================================================== */
.widget { background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); padding: 18px 20px; margin-bottom: 24px; font-size: .95rem; }
.widget-title { font-size: 1.05rem; margin: -18px -20px 16px; padding: 10px 20px; background: var(--towb-ink); color: #fff; border-radius: var(--towb-radius) var(--towb-radius) 0 0; border-bottom: 3px solid var(--towb-red); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 7px 0; border-bottom: 1px dashed var(--towb-line); }
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--towb-ink-2); }
.widget ul li a:hover { color: var(--towb-red); }
.widget_categories li, .wp-block-categories li { display: flex; justify-content: space-between; }
.towb-popular { list-style: none; margin: 0; padding: 0; counter-reset: pop; }
.towb-popular li { display: grid; grid-template-columns: 80px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--towb-line); align-items: center; }
.towb-popular li:last-child { border-bottom: 0; }
.towb-popular img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; }
.towb-popular h4 { font-size: .93rem; margin: 0 0 2px; line-height: 1.4; }
.towb-popular h4 a { color: var(--towb-ink); }
.towb-popular h4 a:hover { color: var(--towb-red); text-decoration: none; }
.towb-popular .towb-meta { font-size: .74rem; }
.towb-popular--numbered li { grid-template-columns: 34px 1fr; }
.towb-popular--numbered li::before { counter-increment: pop; content: counter(pop); font-family: var(--towb-font-head); font-size: 1.6rem; font-weight: 800; color: var(--towb-line); line-height: 1; }
.towb-catgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.towb-catgrid a { display: flex; justify-content: space-between; align-items: center; background: var(--towb-soft); padding: 8px 12px; border-radius: 4px; color: var(--towb-ink); font-weight: 600; font-size: .86rem; }
.towb-catgrid a span { background: var(--towb-red); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 20px; }
.towb-catgrid a:hover { background: var(--towb-ink); color: #fff; text-decoration: none; }
.towb-newsletter { background: linear-gradient(135deg, var(--towb-red), var(--towb-red-dark)); color: #fff; border-radius: var(--towb-radius); padding: 20px; text-align: center; margin-bottom: 24px; }
.towb-newsletter h3 { color: #fff; margin-bottom: 6px; }
.towb-newsletter p { font-size: .9rem; margin-bottom: 12px; opacity: .92; }
.towb-newsletter a { display: inline-block; background: #fff; color: var(--towb-red); font-weight: 700; padding: 8px 20px; border-radius: 30px; }
.towb-newsletter a:hover { text-decoration: none; background: var(--towb-gold); color: var(--towb-ink); }

/* Pagination */
.towb-pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 32px 0 0; }
.towb-pagination .page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 12px; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: 4px; color: var(--towb-ink); font-weight: 600; }
.towb-pagination .page-numbers.current, .towb-pagination .page-numbers:hover { background: var(--towb-red); color: #fff; border-color: var(--towb-red); text-decoration: none; }
.towb-pagination .dots { border: 0; background: transparent; }

/* ==========================================================================
   9. Footer
   ========================================================================== */
.towb-footer { background: var(--towb-ink); color: #c9ccd3; margin-top: 40px; font-size: .92rem; }
.towb-footer a { color: #e6e7ea; }
.towb-footer a:hover { color: var(--towb-gold); }
.towb-footer-widgets { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding: 44px 0 28px; border-bottom: 1px solid rgba(255,255,255,.1); }
.towb-footer .widget { background: transparent; border: 0; padding: 0; margin: 0; }
.towb-footer .widget-title { background: transparent; margin: 0 0 14px; padding: 0 0 8px; border-bottom: 2px solid var(--towb-red); display: inline-block; color: #fff; border-radius: 0; }
.towb-footer .widget ul li { border-bottom-color: rgba(255,255,255,.08); }
.towb-footer .widget ul li a { color: #c9ccd3; }
.towb-footer-about .towb-site-title { font-size: 1.5rem; }
.towb-footer-about .towb-site-title a { color: #fff; }
.towb-footer-about p { color: #aeb2bb; }
.towb-footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 0; font-size: .82rem; color: #9aa0ab; }
.towb-footer-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.towb-backtop { position: fixed; right: 18px; bottom: 18px; width: 42px; height: 42px; border-radius: 50%; background: var(--towb-red); color: #fff; border: 0; cursor: pointer; box-shadow: var(--towb-shadow); opacity: 0; visibility: hidden; transition: all .3s; z-index: 800; display: flex; align-items: center; justify-content: center; }
.towb-backtop.is-visible { opacity: 1; visibility: visible; }

/* 404 / search */
.towb-404 { text-align: center; padding: 60px 20px; background: var(--towb-white); border: 1px solid var(--towb-line); border-radius: var(--towb-radius); }
.towb-404 h1 { font-size: 5rem; color: var(--towb-red); margin: 0; line-height: 1; }
.towb-404 p { color: var(--towb-ink-2); }

/* Page */
.towb-page .towb-entry-title { font-size: 1.9rem; }

/* Gutenberg alignment */
.alignwide { margin-left: -32px; margin-right: -32px; max-width: none; }
.alignfull { margin-left: -32px; margin-right: -32px; max-width: none; }
.alignleft { float: left; margin: .5em 1.5em 1em 0; }
.alignright { float: right; margin: .5em 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .82rem; color: var(--towb-muted); text-align: center; }
.sticky .towb-card-title::before { content: "📌 "; }
.bypostauthor { }
.gallery-caption { font-size: .82rem; }

/* ==========================================================================
   10. Responsive
   ========================================================================== */
@media (max-width: 1024px) and (pointer: coarse), (max-width: 1024px) and (hover: none) {
  .towb-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .towb-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .towb-quicklinks { grid-template-columns: repeat(3, 1fr); }
  .towb-footer-widgets { grid-template-columns: 1fr 1fr; }
  .towb-header-ad { display: none; }
}
@media (max-width: 860px) and (pointer: coarse), (max-width: 860px) and (hover: none) {
  .towb-layout { grid-template-columns: minmax(0, 1fr); }
  .towb-hero { grid-template-columns: 1fr; }
  .towb-hero-main { min-height: 320px; }
  .towb-hero-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .towb-catblock { grid-template-columns: 1fr; }
  .towb-list-item { grid-template-columns: 1fr; }
  .towb-list-item .towb-card-body { padding: 14px 16px 16px; }
  .towb-list-item .towb-card-thumb { aspect-ratio: 16/9; height: auto; }
  .towb-nav-btn { display: inline-flex; }
  .towb-nav-menu { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--towb-red-dark); max-height: calc(100vh - 60px); overflow-y: auto; }
  .towb-nav-menu.is-open { display: block; }
  .towb-nav-menu ul { flex-direction: column; }
  .towb-nav-menu li { border-bottom: 1px solid rgba(255,255,255,.1); }
  .towb-nav .sub-menu { display: block; position: static; box-shadow: none; border: 0; background: rgba(0,0,0,.15); }
  .towb-nav .sub-menu a { color: #fff; padding-left: 28px; border: 0; }
  .towb-nav .sub-menu a:hover { background: rgba(0,0,0,.2); color: #fff; }
  .towb-single { padding: 20px 16px 24px; }
  .towb-entry-title { font-size: 1.6rem; }
  .towb-entry-content { font-size: 1.02rem; }
  .alignwide, .alignfull { margin-left: -16px; margin-right: -16px; }
  .towb-ad--sidebar { position: static; }
  .admin-bar .towb-nav { top: 46px; }
}
@media (max-width: 560px) and (pointer: coarse), (max-width: 560px) and (hover: none) {
  body { font-size: 16px; }
  .towb-grid--2, .towb-grid--3, .towb-grid--4 { grid-template-columns: 1fr; }
  .towb-hero-side { grid-template-columns: 1fr; }
  .towb-quicklinks { grid-template-columns: repeat(2, 1fr); }
  .towb-footer-widgets { grid-template-columns: 1fr; }
  .towb-site-title { font-size: 1.35rem; }
  .towb-masthead { grid-template-columns: 1fr; text-align: center; row-gap: 8px; }
  .towb-masthead-left, .towb-masthead-right { justify-content: center; }
  .towb-masthead-left { padding-inline-start: 0; }
  .towb-postnav { grid-template-columns: 1fr; }
  .towb-author-box { grid-template-columns: 1fr; text-align: center; }
  .towb-author-box img { margin: 0 auto; }
  .towb-hero-main .towb-hero-title { font-size: 1.35rem; }

}

/* Print */
@media print {
  .towb-nav, .towb-ticker, .towb-sidebar, .towb-ad, .towb-share, .towb-footer, .towb-backtop, .towb-comments, .towb-related, .towb-postnav { display: none !important; }
  .towb-layout { grid-template-columns: 1fr; }
  .towb-single { border: 0; padding: 0; }
}


/* ==========================================================================
   11. v1.1 — Premium polish, bug fixes, dark mode, mobile menu, newsletter
   ========================================================================== */

/* --- Bugfix: inline SVG icons rendered at full size inside meta rows ------ */
.towb-meta svg,
.towb-entry-meta svg,
.widget svg,
.towb-breadcrumbs svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  flex: 0 0 auto;
  vertical-align: -2px;
  display: inline-block;
}
.towb-entry-meta > span,
.towb-entry-meta > a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.towb-entry-meta .towb-author { max-width: 100%; overflow-wrap: anywhere; }
.towb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; color: var(--towb-muted); }
.towb-meta span { display: inline-flex; align-items: center; gap: 5px; }

/* --- Premium type & surface refinements ---------------------------------- */
:root {
  --towb-shadow-lg: 0 18px 40px -22px rgba(22, 24, 29, .45);
  --towb-surface: var(--towb-white);
  --towb-surface-2: var(--towb-soft);
  --towb-text: var(--towb-ink);
  --towb-text-2: var(--towb-ink-2);
  --towb-hairline: var(--towb-line);
}
body { background-image: radial-gradient(1200px 400px at 50% -180px, rgba(179, 18, 27, .07), transparent 70%); background-repeat: no-repeat; }
.towb-header { background: linear-gradient(180deg, var(--towb-surface), var(--towb-surface)); }
.towb-card, .widget, .towb-single, .towb-archive-head, .towb-postnav a { box-shadow: 0 1px 2px rgba(22,24,29,.04); }
.towb-card:hover { box-shadow: var(--towb-shadow-lg); }
.towb-cat, .towb-card-cat {
  display: inline-block; background: var(--towb-red); color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .02em; padding: 3px 10px; border-radius: 3px; text-transform: uppercase;
}
.towb-cat:hover { background: var(--towb-ink); color: #fff; text-decoration: none; }
.towb-section-title { background: linear-gradient(135deg, var(--towb-ink), #2b2f3a); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--towb-gold) 70%, transparent);
  outline-offset: 2px;
}

/* --- Reading progress ----------------------------------------------------- */
.towb-progress-wrap { position: fixed; inset: 0 0 auto 0; height: 3px; background: transparent; z-index: 1000; pointer-events: none; }
.towb-progress { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--towb-red), var(--towb-gold)); transition: transform .1s linear; }

/* --- Dark mode toggle ----------------------------------------------------- */
.towb-dark-toggle { display: inline-flex; align-items: center; justify-content: center; }
.towb-dark-icon { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); display: block; }

/* --- Mobile drawer + nav fixes -------------------------------------------- */
.towb-nav .towb-container { position: relative; }
.towb-menu-head { display: none; }
.towb-submenu-toggle { display: none; }

/* --- Newsletter / subscription -------------------------------------------- */
.towb-subscribe {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center;
  background: linear-gradient(135deg, var(--towb-red), var(--towb-red-dark) 65%, #4a0508);
  border-radius: calc(var(--towb-radius) * 2); padding: 28px 32px; margin: 32px 0 0;
  color: #fff; box-shadow: var(--towb-shadow-lg); position: relative; overflow: hidden;
}
.towb-subscribe::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  border-radius: 50%; background: rgba(255,255,255,.07);
}
.towb-subscribe-title { color: #fff; margin: 0 0 6px; font-size: 1.5rem; }
.towb-subscribe p { margin: 0; color: rgba(255,255,255,.88); font-size: .93rem; }
.towb-subscribe-row { display: flex; gap: 8px; position: relative; z-index: 1; }
.towb-subscribe input[type="email"] {
  flex: 1; min-width: 0; padding: 13px 16px; border: 0; border-radius: 40px; background: #fff;
  color: var(--towb-ink); font-size: .95rem;
}
.towb-subscribe button {
  border: 0; border-radius: 40px; padding: 13px 26px; font-weight: 700; cursor: pointer;
  background: var(--towb-gold); color: #23180a; transition: transform .15s, background .2s; white-space: nowrap;
}
.towb-subscribe button:hover { background: #fff; transform: translateY(-1px); }
.towb-subscribe-note { margin: 10px 0 0 !important; font-size: .76rem !important; color: rgba(255,255,255,.7) !important; }
.towb-subscribe-msg { margin: 12px 0 0; grid-column: 1 / -1; background: rgba(255,255,255,.14); border-radius: 8px; padding: 10px 14px; font-size: .9rem; }
.towb-subscribe-msg.is-err { background: rgba(0,0,0,.28); }
.towb-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }
.towb-subscribe--widget { grid-template-columns: 1fr; padding: 22px; margin: 0; text-align: center; }
.towb-subscribe--widget .towb-subscribe-title { font-size: 1.15rem; }
.towb-subscribe--widget .towb-subscribe-row { flex-direction: column; }
.towb-footer .towb-subscribe a { color: #fff; }
.towb-subscribe-wrap { margin-bottom: 40px; }
.towb-subscribe-wrap .towb-subscribe { margin-top: 0; }

/* --- Footer contact us ---------------------------------------------------- */
.towb-contact-list { list-style: none; margin: 0 0 16px; padding: 0; }
.towb-contact-list li { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.towb-contact-list li:last-child { border-bottom: 0; }
.towb-contact-list a { color: #c9ccd3; }
.towb-contact-list a:hover { color: var(--towb-gold); }
.towb-contact-list address { font-style: normal; color: #aeb2bb; line-height: 1.6; }
.towb-contact-ico { display: inline-flex; color: var(--towb-gold); flex: 0 0 auto; margin-top: 3px; }
.towb-social-icons { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.towb-social-icons a {
  display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px;
  border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; transition: background .2s, transform .15s;
}
.towb-social-icons a:hover { background: var(--towb-red); color: #fff; transform: translateY(-2px); }
.towb-social-icons svg { width: 16px; height: 16px; fill: currentColor; }
.towb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* --- Dark theme ------------------------------------------------------------ */
html.towb-dark {
  --towb-ink: #e9eaee;
  --towb-ink-2: #b9bec9;
  --towb-muted: #8f97a5;
  --towb-line: #2b3039;
  --towb-paper: #0f1216;
  --towb-white: #171b21;
  --towb-soft: #1e232b;
}
html.towb-dark body { background-image: radial-gradient(1200px 400px at 50% -180px, rgba(217,164,65,.10), transparent 70%); }
html.towb-dark .towb-header,
html.towb-dark .towb-ticker { background: #171b21; border-color: #2b3039; }
html.towb-dark .towb-footer { background: #0b0e12; }
html.towb-dark .towb-site-title a { color: #f2f3f5; }
html.towb-dark .towb-masthead-right .towb-social-icon { color: #f2f3f5; }
html.towb-dark .towb-masthead-right .towb-social-icon:hover { color: var(--towb-red); }
html.towb-dark .widget-title { background: #22262e; }
html.towb-dark .towb-section-title { background: linear-gradient(135deg, #22262e, #2c313b); }
html.towb-dark .towb-section-title::after { border-left-color: #2c313b; }
html.towb-dark .towb-section-head { border-bottom-color: #2b3039; }
html.towb-dark pre { background: #0b0e12; }
html.towb-dark .towb-entry-content .towb-note { background: #241f12; border-color: #4a3c17; }
html.towb-dark .towb-ad-placeholder { background: #1b1f26; border-color: #2b3039; color: #6c7482; }
html.towb-dark img:not(.custom-logo) { filter: brightness(.94); }

/* --- Responsive: primary menu on mobile (rebuilt) --------------------------- */
@media (max-width: 860px) and (pointer: coarse), (max-width: 860px) and (hover: none) {
  .towb-nav .towb-container { justify-content: space-between; }
  .towb-nav-btn { display: inline-flex; align-items: center; justify-content: center; }

  .towb-nav-menu {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    right: auto;
    width: min(86vw, 340px);
    max-height: none;
    height: 100%;
    display: block;
    background: var(--towb-red-dark);
    box-shadow: 0 0 40px rgba(0,0,0,.45);
    transform: translateX(-100%);
    transition: transform .28s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 1200;
    visibility: hidden;
  }
  .towb-nav-menu.is-open { transform: translateX(0); visibility: visible; }
  body.towb-menu-open { overflow: hidden; }
  body.towb-menu-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 1100;
  }

  .towb-menu-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.15);
    color: #fff; font-weight: 700; font-family: var(--towb-font-head); position: sticky; top: 0;
    background: var(--towb-red-dark); z-index: 2;
  }
  .towb-menu-close { background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; cursor: pointer; padding: 0 4px; }

  .towb-nav-menu ul { flex-direction: column; display: block; }
  .towb-nav-menu li { position: relative; border-bottom: 1px solid rgba(255,255,255,.1); }
  .towb-nav-menu > ul > li > a { font-size: 1rem; }
  .towb-nav-menu a { padding: 14px 46px 14px 18px; white-space: normal; }
  .towb-nav-menu .menu-item-has-children > a::after { content: ""; }

  .towb-submenu-toggle {
    display: flex; align-items: center; justify-content: center;
    position: absolute; top: 4px; right: 4px; width: 42px; height: 42px;
    background: rgba(255,255,255,.1); border: 0; border-radius: 6px; color: #fff;
    font-size: 1.35rem; line-height: 1; cursor: pointer;
  }
  .towb-nav-menu .sub-menu {
    display: none; position: static; background: rgba(0,0,0,.22); box-shadow: none; border: 0;
  }
  .towb-nav-menu li.is-expanded > .sub-menu { display: block; }
  .towb-nav-menu li:hover > .sub-menu,
  .towb-nav-menu li:focus-within > .sub-menu { display: none; }
  .towb-nav-menu li.is-expanded > .towb-submenu-toggle span { transform: rotate(45deg); display: block; }
  .towb-nav-menu .sub-menu a { padding-left: 32px; font-size: .93rem; }
  .towb-nav-menu .sub-menu .sub-menu a { padding-left: 46px; }

  .towb-subscribe { grid-template-columns: 1fr; padding: 22px 18px; text-align: center; }
  .towb-subscribe-row { flex-direction: column; }
  .towb-subscribe button { width: 100%; }
  .towb-entry-meta { gap: 8px 14px; font-size: .82rem; }
  .towb-entry-meta .towb-avatar { width: 26px; height: 26px; }
}

@media (max-width: 560px) and (pointer: coarse), (max-width: 560px) and (hover: none) {
  .towb-entry-meta { display: grid; grid-template-columns: 1fr; gap: 6px; }
  .towb-entry-meta > span, .towb-entry-meta > a { justify-content: flex-start; }
}

@media print {
  .towb-subscribe, .towb-progress-wrap { display: none !important; }
}

/* ==========================================================================
   Times of West Bengal — signature skin
   ========================================================================== */
.towb-top { background: linear-gradient(90deg, var(--towb-ink), var(--towb-red-dark)); }
.towb-header { border-bottom: 0; box-shadow: inset 0 -4px 0 var(--towb-gold); }
.towb-site-title { font-size: 2.4rem; letter-spacing: 0; }
.towb-site-title span { color: var(--towb-gold); }
.towb-nav { background: var(--towb-ink); }
.towb-nav a:hover, .towb-nav .current-menu-item > a, .towb-nav .current-menu-ancestor > a { background: transparent; box-shadow: inset 0 -3px 0 var(--towb-gold); color: #fff; }
.towb-ticker-label { background: var(--towb-gold); color: var(--towb-ink); border-radius: 999px; padding: 3px 12px; }
.towb-section-head { border-bottom: 1px solid var(--towb-line); }
.towb-section-title { background: transparent; color: var(--towb-ink); padding: 6px 0 6px 14px; border-left: 5px solid var(--towb-gold); }
.towb-section-title::after { display: none; }
.towb-section-title a { color: inherit; }
.towb-card { border: 0; box-shadow: var(--towb-shadow); }
.towb-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -16px rgba(18,33,58,.35); }
.towb-footer { background: var(--towb-ink); border-top: 5px solid var(--towb-gold); }
blockquote { border-left-color: var(--towb-red); border-radius: 0 var(--towb-radius) var(--towb-radius) 0; }
.towb-startup-badge { text-align: center; padding: 22px 18px; }
.towb-startup-badge a { display: block; text-decoration: none; transition: transform .15s ease; }
.towb-startup-badge a:hover { transform: translateY(-2px); }
.towb-startup-badge img { display: block; margin: 0 auto; width: 200px; height: auto; }
.towb-important-links ul li a { display: block; }

/* ==========================================================================
   18. Equal-size homepage category sections
   Named sections (madhyamik, hs, recruitment, career, admission, scheme)
   always render full width with identical block proportions. Sizing uses
   fixed pixels / fractions only, so nothing changes when the browser is
   zoomed out (no vw units, no 1400px+ overrides apply here).
   ========================================================================== */
@media (min-width: 861px), (hover: hover) and (pointer: fine) {
  .towb-section--equal .towb-catblock { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: stretch; }
  .towb-section--equal .towb-catblock > .towb-card .towb-card-thumb { aspect-ratio: auto; max-height: none; flex: 1 1 auto; min-height: 320px; }
  .towb-section--equal .towb-catblock > .towb-card .towb-card-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .towb-section--equal .towb-catblock-list { height: 100%; }
  .towb-section--equal .towb-catblock-list li { flex: 1 1 0%; min-height: 92px; }
  .towb-section--equal .towb-catblock-list h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}

/* ==========================================================================
   19. Catblock list fills full height of featured card (all sections)
   Every headline row gets the same height and the list ends level with
   the featured card on the left — no empty gap at the bottom.
   ========================================================================== */
@media (min-width: 861px), (hover: hover) and (pointer: fine) {
  .towb-catblock { align-items: stretch; }
  .towb-catblock-list { height: 100%; align-self: stretch; margin: 0; }
  .towb-catblock-list li { flex: 1 1 0% !important; min-height: 0; }
  .towb-hero-side { display: flex; flex-direction: column; height: 100%; }
  .towb-hero-side > .towb-hero-item { flex: 1 1 0%; }
}

/* ==========================================================================
   20. Zoom-proof desktop layout
   On mouse/trackpad devices the page has one fixed design width. Browser
   zoom in/out only scales the page; grids, posts and sections never reflow.
   Touch devices (phones/tablets) keep the responsive layout.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  :root { --towb-container: 1320px; }
  body { min-width: 1320px; overflow-x: auto; }
  .towb-container { width: 1320px; max-width: 1320px; padding: 0 24px; }
  .towb-masthead-left { padding-inline-start: 40px; }
  .towb-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
  .towb-layout--full { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   21. Laptop fit fix (13"-15" screens, 125% Windows scaling)
   Fluid up to 1320px instead of forcing a fixed 1320px width, so nothing
   gets cut off on the left/right. Extra breathing room above the masthead.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  body { min-width: 0; overflow-x: hidden; }
  .towb-container { width: 100%; max-width: 1320px; padding: 0 24px; box-sizing: border-box; }
  .towb-masthead { padding: 28px 24px 18px; }
  .towb-site-title { line-height: 1.2; }
  .towb-tagline { margin-top: 6px; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 1366px) {
  .towb-site-title { font-size: 2.1rem; }
  .towb-masthead-left { padding-inline-start: 24px; }
  .towb-nav a { padding: 12px 11px; font-size: .9rem; }
  .towb-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 1180px) {
  .towb-nav a { padding: 11px 8px; font-size: .85rem; }
  .towb-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; }
}
