/*
Theme Name: UniResultBihar v2
Theme URI: https://uniresultbihar.com/
Author: UniResultBihar
Author URI: https://uniresultbihar.com/
Description: Light modern theme for UniResultBihar — results, admit cards, scholarships and sarkari jobs in simple Hinglish. v2.1 is a faithful port of the first design preview (v1): Plus Jakarta Sans, poster-tile update cards, Last Date Alert strip, ticker, Category Wise panels and a mid-page join section.
Version: 2.1.7
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: uniresultbihar-v2
Tags: education, news, light, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ------------------------------------------------------------------ */
/*  Design tokens — v1 design preview (13 Nov 2026)                    */
/* ------------------------------------------------------------------ */
:root {
	--bg: #f4f7f6;
	--brand: #065a68;
	--brand-dark: #04333d;
	--ink: #0d2b33;
	--red: #e63329;
	--green: #128c4a;
	--gold: #b7791f;
	--gold-bg: #fff7e0;
	--card: #ffffff;
	--muted: #5b6b70;
	--line: #e6ebec;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(13, 43, 51, 0.06), 0 4px 16px rgba(13, 43, 51, 0.05);
	--shadow-lg: 0 4px 8px rgba(13, 43, 51, 0.08), 0 12px 32px rgba(13, 43, 51, 0.1);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
body.dark-mode {
	--bg: #0e1a1d;
	--ink: #e8f0f2;
	--card: #16262a;
	--muted: #a7b6ba;
	--line: #24383d;
	--shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.25);
	--shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.3);
	--gold-bg: #2e2610;
}

/* ------------------------------------------------------------------ */
/*  Base                                                                 */
/* ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
body.dark-mode a { color: #7fd4de; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; font-weight: 800; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.screen-reader-text {
	position: absolute; 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: 16px; top: -48px; z-index: 100;
	background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
	transition: top 0.15s ease;
}
.skip-link:focus { top: 12px; color: #fff; text-decoration: none; }
.section { padding: 28px 0 8px; }

/* ------------------------------------------------------------------ */
/*  Topbar — date + EN/Hindi (display only; see README)                 */
/* ------------------------------------------------------------------ */
.topbar {
	background: var(--brand-dark);
	color: #cfe3e6;
	font-size: 13px;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.topbar-lang { font-weight: 700; letter-spacing: 0.02em; }

/* ------------------------------------------------------------------ */
/*  Header — brand, large search, WhatsApp Join, dark toggle            */
/*  (the header itself is NOT sticky — only the nav below is)           */
/* ------------------------------------------------------------------ */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); }
.header-inner {
	display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
	padding: 18px 0;
}
.site-brand { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.brand-link { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-link:hover { text-decoration: none; }
.brand-cap {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px;
	background: var(--brand); color: #fff;
}
.brand-cap svg { width: 26px; height: 26px; }
.brand-name { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }
.brand-tld { color: var(--brand); }
.site-tagline { margin: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.header-search--large { flex: 1 1 300px; max-width: 480px; margin-left: auto; }
.header-search--large .search-form { display: flex; gap: 0; }
.header-search--large input[type="search"] {
	flex: 1; min-width: 0; padding: 12px 16px; font: inherit; font-size: 15px;
	border: 2px solid var(--line); border-right: 0;
	border-radius: 12px 0 0 12px; background: var(--bg); color: var(--ink);
}
.header-search--large input[type="search"]:focus { outline: none; border-color: var(--brand); }
.header-search--large button[type="submit"],
.header-search--large input[type="submit"] {
	padding: 12px 20px; border: 0; border-radius: 0 12px 12px 0;
	background: var(--brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
/* The search input sits inside a <label> (WP default + searchform.php),
   so the label must stretch for the input to fill the available width. */
.header-search--large .search-form label { flex: 1; min-width: 0; display: flex; }
.header-join {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px; border-radius: 999px; background: var(--green);
	color: #fff; font-weight: 800; font-size: 15px; white-space: nowrap;
}
.header-join:hover { color: #fff; text-decoration: none; background: #0e7a3e; }
.header-join::before { content: "\2706"; font-size: 16px; }
.icon-btn {
	display: inline-flex; align-items: center; justify-content: center;
	width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px;
	background: var(--card); color: var(--ink); cursor: pointer; flex: 0 0 auto;
}
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .icon-sun { display: none; }
body.dark-mode .icon-btn .icon-sun { display: block; }
body.dark-mode .icon-btn .icon-moon { display: none; }

/* ------------------------------------------------------------------ */
/*  Primary nav — sticky pill nav (only the nav sticks, not the header) */
/*  Pills stay visible on mobile (horizontal scroll, no hamburger).     */
/* ------------------------------------------------------------------ */
.primary-nav {
	position: sticky; top: 0; z-index: 50;
	background: var(--card); border-top: 1px solid var(--line);
	box-shadow: 0 2px 10px rgba(13, 43, 51, 0.06);
}
.nav-pills {
	display: flex; gap: 8px; list-style: none; margin: 0; padding: 10px 0;
	overflow-x: auto; scrollbar-width: none;
}
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pills a {
	display: block; padding: 8px 16px; border-radius: 999px; white-space: nowrap;
	color: var(--ink); font-weight: 700; font-size: 15px;
}
.nav-pills a:hover { background: var(--bg); text-decoration: none; }
.nav-pills .current-menu-item a, .nav-pills .current_page_item a {
	background: var(--brand); color: #fff;
}
body.dark-mode .nav-pills .current-menu-item a, body.dark-mode .nav-pills .current_page_item a { color: #fff; }

/* ------------------------------------------------------------------ */
/*  Ticker — LATEST breaking-headlines strip (homepage only)            */
/* ------------------------------------------------------------------ */
.ticker { background: var(--brand-dark); color: #fff; }
.ticker-inner { display: flex; align-items: center; gap: 14px; padding: 8px 0; }
.ticker-label {
	flex: 0 0 auto; background: var(--red); color: #fff; font-weight: 800;
	font-size: 12px; letter-spacing: 0.08em; padding: 4px 10px; border-radius: 6px;
}
.ticker-track { display: flex; flex-wrap: nowrap; overflow: hidden; flex: 1; min-width: 0; mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-items { display: inline-flex; flex-shrink: 0; gap: 0; white-space: nowrap; animation: ur2-ticker 60s linear infinite; }
.ticker-track:hover .ticker-items { animation-play-state: paused; }
.ticker-items a { color: #fff; font-size: 14px; font-weight: 600; padding: 0 28px 0 0; }
.ticker-items a::after { content: "\2022"; margin-left: 28px; color: #8fb9be; }
.ticker-items a:hover { text-decoration: underline; }
@keyframes ur2-ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker-items { animation: none; }
}

/* ------------------------------------------------------------------ */
/*  Section heads                                                        */
/* ------------------------------------------------------------------ */
.section-head {
	display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
	margin-bottom: 16px;
}
.section-head h2 { margin: 0; font-size: 24px; position: relative; padding-left: 14px; }
.section-head h2::before {
	content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 5px;
	border-radius: 3px; background: var(--red);
}
.view-all { font-weight: 700; font-size: 14px; white-space: nowrap; }

/* ------------------------------------------------------------------ */
/*  Last Date Alert — auto-sliding deadline cards (v2.1.6)              */
/* ------------------------------------------------------------------ */
.last-date { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.last-date-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.last-date-card {
	border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 12px; padding: 16px;
	background: var(--bg);
}
.last-date-card h3 { margin: 8px 0 4px; font-size: 17px; }
.last-date-card h3 a { color: var(--ink); }
.last-date-card p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ld-badge {
	display: inline-block; background: var(--red); color: #fff;
	font-size: 12px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
	padding: 3px 9px; border-radius: 999px;
}
.ld-badge.teal { background: var(--brand); }
/* The "AAJ AAKHRI DIN" pill is hidden by default and shown by JS only
   when a deadline falls today — the [hidden] guard is needed because
   .ld-badge sets display: inline-block, which would override it. */
.ld-badge[hidden] { display: none; }
.last-date-card .ld-days { color: var(--red); font-weight: 800; font-size: 14px; margin: 0 0 6px; text-transform: uppercase; }
.last-date-card .ld-days.expired { color: var(--red); }
.ld-link { font-weight: 800; font-size: 14px; }

/* Auto-slide (v2.1.6): the grid becomes a horizontal scroll-snap track
   inside .ld-slider. Without JS it still scrolls and swipes by hand;
   the arrows and dots are JS-built, so no-JS visitors just see a
   swipeable row. The countdown text is still filled by theme.js per
   card (data-deadline) — the slider never touches it. */
.ld-slider { position: relative; }
.ld-viewport { overflow: hidden; border-radius: 12px; }
.ld-slider .last-date-grid {
	display: flex; gap: 14px; overflow-x: auto;
	scroll-snap-type: x mandatory; scroll-behavior: smooth;
	scrollbar-width: none; -ms-overflow-style: none;
}
.ld-slider .last-date-grid::-webkit-scrollbar { display: none; }
.ld-slider .last-date-card { flex: 0 0 calc((100% - 28px) / 3); scroll-snap-align: start; }
.ld-arrow {
	position: absolute; top: 50%; transform: translateY(-50%);
	width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--card); color: var(--ink);
	font-size: 22px; line-height: 1; cursor: pointer; box-shadow: var(--shadow); z-index: 2;
}
.ld-prev { left: -12px; }
.ld-next { right: -12px; }
.ld-arrow:hover, .ld-arrow:focus-visible { background: var(--brand); color: #fff; border-color: var(--brand); }
.ld-dots { display: flex; gap: 8px; justify-content: center; margin-top: 14px; }
.ld-dot { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: var(--line); cursor: pointer; }
.ld-dot[aria-current="true"] { background: var(--brand); }

/* ------------------------------------------------------------------ */
/*  Filter bar (chips only — the v1 preview has no mini search here)     */
/* ------------------------------------------------------------------ */
.filter-bar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1 1 auto; }
.chip {
	padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line);
	background: var(--card); color: var(--ink); font: inherit; font-size: 14px;
	font-weight: 700; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* The no-results box must stay hidden until a filter genuinely finds
   nothing — display: block on its own would override the hidden
   attribute, which is why it showed on page load. */
.no-results:not([hidden]) {
	display: block; background: var(--card); border: 1px solid var(--line);
	border-radius: var(--radius); padding: 24px; text-align: center; color: var(--muted);
}

/* ------------------------------------------------------------------ */
/*  Latest Updates — poster-tile cards (v1 design)                      */
/* ------------------------------------------------------------------ */
.cards-grid {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.post-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow);
	display: flex; flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tile {
	position: relative; display: flex; align-items: center; justify-content: center;
	min-height: 128px; padding: 18px 16px; text-align: center;
}
.tile:hover { text-decoration: none; }
.tile-org {
	color: #fff; font-size: 26px; font-weight: 800; line-height: 1.15;
	letter-spacing: -0.01em; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}
.tile-new {
	position: absolute; top: 10px; right: 10px;
	background: #f59e0b; color: #1a1a1a; font-size: 11px; font-weight: 800;
	letter-spacing: 0.06em; padding: 3px 9px; border-radius: 999px;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.tile-teal .tile { background: linear-gradient(135deg, #065a68, #0a7a8a); }
.tile-navy .tile { background: linear-gradient(135deg, #0f2b46, #1d4e79); }
.tile-red .tile { background: linear-gradient(135deg, #c81e1e, #e63329); }
.tile-gold .tile { background: linear-gradient(135deg, #8a5a00, #b7791f); }
.tile-teal .tile .tile-org, .tile-navy .tile .tile-org,
.tile-red .tile .tile-org, .tile-gold .tile .tile-org { color: #fff; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cat-badge {
	align-self: flex-start; display: inline-block; padding: 3px 10px; border-radius: 999px;
	font-size: 12px; font-weight: 800; letter-spacing: 0.03em;
	background: #e6f2f3; color: var(--brand);
}
.cat-badge:hover { text-decoration: none; }
body.dark-mode .cat-badge { background: #1d3a40; }
.card-body h3 { margin: 0; font-size: 18px; }
.card-body h3 a { color: var(--ink); }
.card-body h3 a:hover { color: var(--brand); text-decoration: none; }
.card-meta { margin: 0; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ld-chip {
	background: #fdecea; color: var(--red); font-weight: 800; font-size: 12px;
	padding: 2px 8px; border-radius: 999px; white-space: nowrap;
}
body.dark-mode .ld-chip { background: #3a1d1b; }
.read-link { margin-top: auto; font-weight: 800; font-size: 14px; }

/* ------------------------------------------------------------------ */
/*  Category Wise Updates — 4 panels                                    */
/* ------------------------------------------------------------------ */
.catwise-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.catwise-panel {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 18px; box-shadow: var(--shadow);
}
.catwise-panel h3 { margin: 0 0 10px; font-size: 18px; }
.catwise-panel h3 a { color: var(--ink); }
.catwise-panel ul { list-style: none; margin: 0 0 12px; padding: 0; }
.catwise-panel li { padding: 8px 0; border-top: 1px solid var(--line); }
.catwise-panel li:first-child { border-top: 0; }
.catwise-panel li a { color: var(--ink); font-weight: 600; font-size: 14px; display: block; }
.catwise-panel li time { font-size: 12px; color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  Join section (mid-page)                                             */
/* ------------------------------------------------------------------ */
/* Join section (mid-page) — v1 preview: two cards, green WhatsApp +
   blue Telegram, each with an icon, title, description and a white
   pill button. (The Telegram button reads "Join Karein" — the
   preview's wrong Telegram button label was a preview error and
   must not be copied; the link is the correct t.me invite.) */
.join-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.join-card {
	display: flex; gap: 16px; align-items: flex-start;
	border-radius: var(--radius); padding: 24px; color: #fff; box-shadow: var(--shadow);
}
.join-whatsapp { background: var(--green); }
.join-telegram { background: #229ed9; }
.join-icon {
	flex: 0 0 56px; width: 56px; height: 56px; border-radius: 50%;
	background: rgba(255, 255, 255, 0.2);
	display: inline-flex; align-items: center; justify-content: center;
}
.join-icon svg { width: 28px; height: 28px; }
.join-text { min-width: 0; }
.join-text h3 { margin: 2px 0 6px; font-size: 19px; color: #fff; }
.join-text p { margin: 0 0 14px; color: rgba(255, 255, 255, 0.92); font-size: 15px; }
.join-btn {
	display: inline-block; padding: 10px 22px; border-radius: 999px;
	background: #fff; font-weight: 800; font-size: 15px;
}
.join-btn:hover { text-decoration: none; filter: brightness(0.96); }
.join-whatsapp .join-btn { color: var(--green); }
.join-telegram .join-btn { color: #229ed9; }
.channel-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.channel-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px;
	border-radius: 999px; font-weight: 800; font-size: 15px; color: #fff;
}
.channel-btn:hover { color: #fff; text-decoration: none; filter: brightness(1.08); }
.channel-btn.whatsapp { background: #25d366; color: #06281a; }
.channel-btn.telegram { background: #229ed9; color: #fff; }

/* ------------------------------------------------------------------ */
/*  Browse by Category / About / FAQ                                    */
/* ------------------------------------------------------------------ */
.cat-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-grid a {
	display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--card);
	color: var(--ink); font-weight: 700; font-size: 15px;
}
.cat-grid a:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.cat-count {
	background: var(--bg); color: var(--muted); font-size: 12px; font-weight: 800;
	padding: 2px 8px; border-radius: 999px;
}
.white-card {
	background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 24px 28px; box-shadow: var(--shadow);
}
.white-card h2 { margin-top: 0; }
.white-card p:last-child { margin-bottom: 0; }
.faq-list { display: grid; gap: 12px; }
.faq-list details {
	background: var(--card); border: 1px solid var(--line); border-radius: 12px;
	padding: 14px 18px;
}
.faq-list summary { font-weight: 700; font-size: 16px; cursor: pointer; }
.faq-list summary::marker { color: var(--brand); }
.faq-list details p { margin: 10px 0 0; color: var(--muted); }

/* ------------------------------------------------------------------ */
/*  Post page (v1) — no featured image, author, tags, related, comments */
/* ------------------------------------------------------------------ */
.post-wrap { width: min(820px, 100% - 32px); margin: 32px auto 48px; }
.post-header { margin-bottom: 20px; }
.post-header h1 { font-size: 32px; margin: 12px 0 10px; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0; }
.post-featured { margin: 0 0 20px; }
.post-featured img { display: block; width: 100%; height: auto; border-radius: 12px; }
.entry-content { font-size: 17px; }
.entry-content h2 { font-size: 24px; margin: 32px 0 12px; }
.entry-content h3 { font-size: 19px; margin: 26px 0 10px; }
.entry-content p { margin: 0 0 16px; }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-left: 24px; }
.entry-content li { margin-bottom: 6px; }
.entry-content a { font-weight: 600; }
.entry-content img { border-radius: 12px; }
.entry-content figure { margin: 0 0 16px; }
.entry-content figcaption { font-size: 13px; color: var(--muted); text-align: center; margin-top: 6px; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; display: block; overflow-x: auto; }
.entry-content thead th { background: var(--brand); color: #fff; text-align: left; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 10px 12px; vertical-align: top; }
.entry-content tbody tr:nth-child(even) { background: var(--bg); }
.entry-content blockquote { border-left: 4px solid var(--brand); margin: 0 0 16px; padding: 8px 16px; background: var(--card); border-radius: 0 12px 12px 0; }

/* Direct Answer callout — added server-side in functions.php. */
.entry-content h2.direct-answer {
	background: #e6f2f3; color: var(--brand-dark);
	border: 1px solid #bcdde0; border-radius: 12px; padding: 16px 18px;
	font-size: 20px;
}
body.dark-mode .entry-content h2.direct-answer { background: #1d3a40; border-color: #2c5259; color: #a8dde3; }
.entry-content h2.direct-answer + p { font-weight: 600; }

/* Important Links as large buttons — added server-side in functions.php. */
.entry-content table.important-links { display: block; border: 0; }
.entry-content table.important-links thead { display: none; }
.entry-content table.important-links tbody { display: grid; gap: 10px; }
.entry-content table.important-links tr { display: contents; }
.entry-content table.important-links td { border: 0; padding: 0; }
.entry-content table.important-links td:first-child { display: none; }
.entry-content table.important-links a {
	display: block; padding: 14px 18px; border-radius: 12px; text-align: center;
	background: var(--brand); color: #fff; font-weight: 800; font-size: 16px;
}
.entry-content table.important-links a:hover { background: var(--brand-dark); color: #fff; text-decoration: none; }
.post-nav-links {
	display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
	margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line);
	font-weight: 700;
}

/* ez-toc — keep the plugin's own container readable. */
.ez-toc-container { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.ez-toc-container a { color: var(--brand); }

/* ------------------------------------------------------------------ */
/*  Post page fit-to-screen (v2.1.4) — single posts ONLY; homepage     */
/*  untouched. On phones the post page scrolled sideways while the     */
/*  homepage fit perfectly. No single culprit could be measured — the  */
/*  cloud browser cannot set a mobile viewport — so this covers every  */
/*  post-only overflow source at once:                                 */
/*  - long unbroken words in the article (e.g. the 56-char             */
/*    SC/ST/Ex-Servicemen/... fee-category string) now break;          */
/*  - the ez-toc container is display:table + width:auto in the       */
/*    plugin CSS (shrink-to-fit), forced to full-width block here;    */
/*  - overflow-x: clip on single posts stops any remaining            */
/*    horizontal scroll without breaking the sticky nav (clip,        */
/*    unlike hidden, does not create a scroll container).             */
/* ------------------------------------------------------------------ */
body.single { overflow-x: clip; }
body.single .entry-content,
body.single .entry-content p,
body.single .entry-content li,
body.single .entry-content td,
body.single .entry-content th { overflow-wrap: break-word; }
body.single #ez-toc-container { display: block; width: 100%; max-width: 100%; }
body.single .entry-content table { max-width: 100%; }

/* ------------------------------------------------------------------ */
/*  Archives / search / 404                                             */
/* ------------------------------------------------------------------ */
.archive-wrap { width: min(1120px, 100% - 32px); margin: 32px auto 48px; }
.archive-head { margin-bottom: 20px; }
.archive-head h1 { font-size: 28px; margin: 0 0 6px; }
.archive-head p { color: var(--muted); margin: 0; }
.pagination { display: flex; gap: 8px; justify-content: center; margin: 28px 0 8px; flex-wrap: wrap; }
.pagination .page-numbers {
	padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px;
	background: var(--card); color: var(--ink); font-weight: 700;
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination a.page-numbers:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }

/* ------------------------------------------------------------------ */
/*  Footer — fixed columns; no line-clamp anywhere (bug fix)            */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--brand-dark); color: #cfe3e6; margin-top: 40px; }
.footer-grid {
	display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px;
	padding: 40px 0 32px;
}
.footer-grid h3 { color: #fff; font-size: 17px; margin: 0 0 12px; }
.footer-about p { margin: 0 0 16px; font-size: 14px; }
.footer-about .channel-buttons { justify-content: flex-start; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: #cfe3e6; font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding: 16px 0 20px; }
.footer-bottom p { margin: 4px 0; font-size: 13px; color: #9dbec3; }

/* ------------------------------------------------------------------ */
/*  Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 960px) {
	.cards-grid { grid-template-columns: repeat(2, 1fr); }
	.last-date-grid { grid-template-columns: repeat(2, 1fr); }
	.ld-slider .last-date-card { flex-basis: calc((100% - 14px) / 2); }
	.catwise-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.header-inner { gap: 14px; }
	.header-search--large { order: 3; flex: 1 1 100%; max-width: none; margin-left: 0; }
}
@media (max-width: 600px) {
	body { font-size: 15px; }
	.cards-grid, .last-date-grid, .catwise-grid { grid-template-columns: 1fr; }
	.ld-slider .last-date-card { flex-basis: 100%; }
	.footer-grid { grid-template-columns: 1fr; }
	.post-header h1 { font-size: 25px; }
	.brand-name { font-size: 22px; }
	.section-head h2 { font-size: 20px; }
	.tile-org { font-size: 22px; }
	.topbar-date { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.header-join { padding: 10px 14px; font-size: 14px; }
	.join-grid { grid-template-columns: 1fr; }
}
