/* ==========================================================================
   Smart Portal — mobile-first design system
   Colors: Indigo (brand) + Violet (accent) + Amber (highlight) + Emerald (ok)
   ========================================================================== */

:root {
	--brand: #3b2fd1;
	--brand-2: #7c3aed;
	--brand-ink: #1c1560;
	--accent: #f59e0b;
	--ok: #059669;
	--danger: #dc2626;

	--bg: #f6f7fc;
	--surface: #ffffff;
	--surface-2: #f1f2fb;
	--text: #16162b;
	--muted: #5b5f7b;
	--line: #e5e7f2;

	--grad: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 55%, #b528d8 100%);
	--grad-soft: linear-gradient(135deg, rgba(59, 47, 209, .08), rgba(124, 58, 237, .08));
	--shadow-sm: 0 1px 2px rgba(20, 20, 60, .06), 0 2px 8px rgba(20, 20, 60, .05);
	--shadow-md: 0 6px 22px -8px rgba(28, 21, 96, .25);
	--shadow-lg: 0 22px 50px -22px rgba(28, 21, 96, .45);

	--radius: 16px;
	--radius-sm: 10px;
	--wrap: 1200px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Plus Jakarta Sans", var(--font);
	--head-h: 60px;
}

.smartportal-dark {
	--bg: #0d0f24;
	--surface: #151834;
	--surface-2: #1c2044;
	--text: #eef0ff;
	--muted: #a5a9d0;
	--line: #262b56;
	--grad-soft: linear-gradient(135deg, rgba(124, 58, 237, .22), rgba(59, 47, 209, .18));
	--shadow-sm: 0 1px 2px rgba(0, 0, 0, .5);
	--shadow-md: 0 10px 26px -12px rgba(0, 0, 0, .8);
	--shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .9);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 14px); }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

img, svg, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-2); }
button { font: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .6em; letter-spacing: -.015em; font-weight: 800; }
h1 { font-size: clamp(1.55rem, 5.2vw, 2.6rem); }
h2 { font-size: clamp(1.25rem, 4.2vw, 1.8rem); }
h3 { font-size: clamp(1.1rem, 3.6vw, 1.35rem); }
p { margin: 0 0 1.1em; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.text-muted { color: var(--muted); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 999;
	background: var(--brand); color: #fff; padding: .7rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }
:focus-visible { outline: 3px solid var(--brand-2); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons & badges ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .72rem 1.15rem; border-radius: 999px; border: 0; cursor: pointer;
	background: var(--grad); color: #fff !important; font-weight: 700; font-size: .94rem;
	box-shadow: var(--shadow-md); transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.1); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-ghost {
	background: var(--surface); color: var(--brand) !important;
	border: 1.5px solid var(--line); box-shadow: var(--shadow-sm);
}
.btn-block { width: 100%; }

.badge {
	display: inline-flex; align-items: center; gap: .35rem;
	font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
	padding: .3rem .65rem; border-radius: 999px;
	background: var(--grad-soft); color: var(--brand); border: 1px solid var(--line);
}
.smartportal-dark .badge { color: #c9bcff; }
.badge-accent { background: rgba(245, 158, 11, .16); color: #a45b00; border-color: rgba(245, 158, 11, .35); }

/* ---------- Header / navigation ---------- */
.read-progress {
	position: fixed; inset: 0 auto auto 0; height: 3px; width: 0;
	background: var(--grad); z-index: 120; transition: width .1s linear;
}
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: color-mix(in srgb, var(--surface) 88%, transparent);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; gap: .75rem; min-height: var(--head-h); }
.site-branding { display: flex; align-items: center; gap: .6rem; margin-right: auto; min-width: 0; }
.brand-icon { width: 36px; height: 36px; flex: none; }
.custom-logo { max-height: 42px; width: auto; }
.site-title { margin: 0; font-family: var(--font-head); font-size: 1.12rem; font-weight: 800; line-height: 1.15; }
.site-title a { color: var(--text); }
.site-tagline { margin: 0; font-size: .68rem; color: var(--muted); line-height: 1.2; }

.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
	display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none;
	border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
	color: var(--text); cursor: pointer; transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle span + span { margin-top: 4px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav a {
	display: block; padding: .8rem .2rem; color: var(--text); font-weight: 600; font-size: .95rem;
	border-bottom: 1px solid var(--line);
}
.main-nav .current-menu-item > a, .main-nav a:hover { color: var(--brand); }
.main-nav .sub-menu { padding-left: .9rem; }

/* Mobile drawer */
.main-nav {
	position: fixed; inset: var(--head-h) 0 auto 0; z-index: 99;
	background: var(--surface); border-bottom: 1px solid var(--line);
	padding: .25rem 16px 1rem; max-height: calc(100dvh - var(--head-h)); overflow-y: auto;
	transform: translateY(-8px); opacity: 0; visibility: hidden;
	transition: opacity .22s ease, transform .22s ease, visibility .22s;
	box-shadow: var(--shadow-lg);
}
.main-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }

.header-search {
	border-bottom: 1px solid var(--line); background: var(--surface);
	max-height: 0; overflow: hidden; transition: max-height .25s ease;
}
.header-search.is-open { max-height: 120px; }
.header-search .search-form { padding: .75rem 0; }

.search-form { display: flex; gap: .5rem; }
.search-form input[type="search"] {
	flex: 1; min-width: 0; padding: .7rem .9rem; border-radius: 999px;
	border: 1.5px solid var(--line); background: var(--surface-2); color: var(--text); font-size: .95rem;
}
.search-form input[type="search"]:focus { border-color: var(--brand); outline: none; background: var(--surface); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--grad); color: #fff; }
.hero::after {
	content: ""; position: absolute; inset: -40% -20% auto -20%; height: 130%;
	background: radial-gradient(60% 60% at 20% 10%, rgba(255, 255, 255, .28), transparent 60%),
		radial-gradient(45% 45% at 90% 20%, rgba(245, 158, 11, .38), transparent 65%);
	pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; padding: 2rem 16px 1.6rem; text-align: center; }
.hero .badge { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .3); }
.hero h1 { color: #fff; margin: .7rem 0 .4rem; font-size: clamp(1.5rem, 6.4vw, 3rem); }
.hero .lead { color: rgba(255, 255, 255, .92); font-size: clamp(.92rem, 3.6vw, 1.1rem); max-width: 62ch; margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin: 1.1rem 0 0; }
.hero-actions .btn { background: #fff; color: var(--brand) !important; }
.hero-actions .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff !important; border-color: rgba(255, 255, 255, .45); }

.quick-links {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: .55rem; margin-top: 1.3rem; text-align: left;
}
.quick-link {
	display: flex; align-items: center; gap: .55rem; padding: .7rem .75rem; border-radius: 14px;
	background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28);
	color: #fff !important; font-weight: 700; font-size: .86rem; backdrop-filter: blur(6px);
	transition: transform .2s ease, background .2s ease;
}
.quick-link:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .24); }
.quick-link small { display: block; font-weight: 500; font-size: .7rem; opacity: .82; }
.ql-icon { font-size: 1.15rem; }

/* Ticker */
.notice-strip {
	display: flex; align-items: center; gap: .6rem; margin-top: 1.1rem; overflow: hidden;
	background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .22);
	border-radius: 999px; padding: .35rem .35rem .35rem .6rem; text-align: left;
}
.notice-strip .tag {
	flex: none; background: var(--accent); color: #241300; font-weight: 800; font-size: .68rem;
	padding: .25rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}
.notice-track { display: flex; gap: 2.2rem; white-space: nowrap; animation: ticker 34s linear infinite; }
.notice-track a { color: #fff; font-size: .84rem; font-weight: 600; }
.notice-strip:hover .notice-track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Layout ---------- */
.layout-sidebar { display: grid; gap: 2rem; padding: 1.5rem 0 2.5rem; }
.section { padding: 1.6rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-title {
	position: relative; margin: 0; padding-left: .75rem; font-size: clamp(1.15rem, 4.4vw, 1.5rem);
}
.section-title::before {
	content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 5px;
	border-radius: 999px; background: var(--grad);
}
.section-sub { margin: .2rem 0 0; font-size: .85rem; color: var(--muted); font-weight: 500; }
.section-link { font-weight: 700; font-size: .85rem; white-space: nowrap; }
.section-cta { display: flex; justify-content: center; margin-top: 1.2rem; }

/* ---------- Post cards ---------- */
.post-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.post-card {
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.post-card__media { display: block; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.06); }
.post-card__body { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.post-card__title { margin: 0; font-size: 1.02rem; line-height: 1.35; }
.post-card__title a { color: var(--text); background-image: linear-gradient(var(--brand), var(--brand)); background-size: 0 2px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size .3s; }
.post-card:hover .post-card__title a { color: var(--brand); background-size: 100% 2px; }
.post-card__excerpt { margin: 0; font-size: .88rem; color: var(--muted); }
.post-card__meta { margin-top: auto; }
.post-card.is-featured .post-card__title { font-size: 1.25rem; }

.entry-meta {
	display: flex; flex-wrap: wrap; gap: .35rem .75rem; font-size: .76rem; color: var(--muted);
}
.entry-meta a { color: var(--muted); font-weight: 600; }
.entry-meta a:hover { color: var(--brand); }
.updated-on { color: var(--ok); font-weight: 700; }

/* Compact list (sidebar / category sections) */
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.post-list li { display: flex; gap: .7rem; align-items: flex-start; }
.post-list img { width: 76px; height: 56px; border-radius: 10px; object-fit: cover; flex: none; }
.post-list .pl-title { font-size: .9rem; font-weight: 700; line-height: 1.35; color: var(--text); }
.post-list .pl-title:hover { color: var(--brand); }
.post-list time { display: block; font-size: .72rem; color: var(--muted); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: .78rem; color: var(--muted); margin-bottom: .9rem; overflow-x: auto; white-space: nowrap; }
.breadcrumbs a { color: var(--muted); font-weight: 600; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .sep { margin: 0 .4rem; opacity: .6; }

/* ---------- Single post ---------- */
.entry-header { margin-bottom: 1rem; }
.entry-title { margin: .5rem 0 .4rem; }
.entry-subtitle { color: var(--muted); font-size: 1rem; }
.author-strip {
	display: flex; align-items: center; gap: .7rem; padding: .8rem; margin-bottom: 1.1rem;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.author-strip img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.author-strip .name { font-weight: 800; font-size: .92rem; }
.author-strip .name a { color: var(--text); }
.post-thumb { margin: 0 0 1.2rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }

.entry-content { font-size: 1.02rem; }
.entry-content > * + * { margin-top: 1.05em; }
.entry-content h2 { margin-top: 1.7em; scroll-margin-top: calc(var(--head-h) + 16px); }
.entry-content h3 { margin-top: 1.4em; scroll-margin-top: calc(var(--head-h) + 16px); }
.entry-content a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.15rem; }
.entry-content li + li { margin-top: .4em; }
.entry-content blockquote {
	margin: 1.4em 0; padding: .9rem 1rem; border-left: 5px solid var(--brand);
	background: var(--grad-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-style: italic;
}
.entry-content img { border-radius: var(--radius-sm); }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption { font-size: .8rem; color: var(--muted); text-align: center; margin-top: .5rem; }
.entry-content code { background: var(--surface-2); padding: .15em .4em; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: #12142e; color: #e7e9ff; padding: 1rem; border-radius: var(--radius-sm); overflow-x: auto; }

/* Tables: crucial for result / vacancy data on mobile */
.entry-content table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 460px; }
.entry-content > table, .entry-content .wp-block-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .6rem .7rem; text-align: left; }
.entry-content thead th { background: var(--grad-soft); font-weight: 800; }
.entry-content tbody tr:nth-child(even) { background: var(--surface-2); }

/* TOC */
.toc {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: .9rem 1rem; margin-bottom: 1.4rem; box-shadow: var(--shadow-sm);
}
.toc > summary { font-family: var(--font-head); font-weight: 800; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc > summary::-webkit-details-marker { display: none; }
.toc > summary::after { content: "▾"; transition: transform .2s; color: var(--brand); }
.toc[open] > summary::after { transform: rotate(180deg); }
.toc ol { margin: .8rem 0 0; padding-left: 1.1rem; font-size: .9rem; }
.toc li + li { margin-top: .35rem; }
.toc .toc-h3 { margin-left: .8rem; list-style: circle; }

/* Share */
.share-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.share-row a, .share-row button {
	padding: .5rem .85rem; border-radius: 999px; font-size: .82rem; font-weight: 700;
	border: 1.5px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer;
	transition: transform .18s, border-color .18s, color .18s;
}
.share-row a:hover, .share-row button:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }

/* Author box (E-E-A-T) */
.author-box {
	display: grid; gap: .85rem; padding: 1.1rem; margin: 1.8rem 0;
	background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--brand);
	border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.author-box .ab-head { display: flex; gap: .8rem; align-items: center; }
.author-box img { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.author-box h3 { margin: 0; font-size: 1.05rem; }
.author-box .ab-role { font-size: .78rem; color: var(--brand); font-weight: 700; }
.author-box p { margin: 0; font-size: .9rem; color: var(--muted); }
.author-box .ab-links { display: flex; flex-wrap: wrap; gap: .6rem; font-size: .8rem; font-weight: 700; }
.review-line { font-size: .8rem; color: var(--muted); margin-top: .3rem; }

.post-navigation { display: grid; gap: .7rem; margin: 1.8rem 0; }
.post-navigation a {
	display: block; padding: .85rem 1rem; border-radius: var(--radius); font-weight: 700; font-size: .9rem;
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.post-navigation a:hover { border-color: var(--brand); }

/* ---------- Authors section ---------- */
.author-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.author-card {
	text-align: center; padding: 1.2rem 1rem; border-radius: var(--radius);
	background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
	transition: transform .22s, box-shadow .22s;
}
.author-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.author-card img { width: 76px; height: 76px; border-radius: 50%; margin: 0 auto .7rem; box-shadow: 0 0 0 4px var(--surface-2); }
.author-card h3 { margin: 0 0 .2rem; font-size: 1rem; }
.author-card p { margin: 0; font-size: .84rem; color: var(--muted); }
.author-card .count { display: inline-block; margin-top: .6rem; font-size: .74rem; font-weight: 800; color: var(--brand); }

/* ---------- About section ---------- */
.about-section { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.about-grid { display: grid; gap: 1.2rem; padding: 2rem 0; }
.about-grid .lead { font-size: 1rem; color: var(--muted); }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.stat { padding: .9rem; border-radius: var(--radius-sm); background: var(--grad-soft); border: 1px solid var(--line); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.35rem; color: var(--brand); }
.stat span { font-size: .78rem; color: var(--muted); }

/* ---------- Sidebar ---------- */
.sidebar { display: grid; gap: 1rem; align-content: start; }
.widget {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
	padding: 1rem; box-shadow: var(--shadow-sm);
}
.widget-title { font-size: 1rem; margin: 0 0 .8rem; padding-bottom: .55rem; border-bottom: 2px solid var(--line); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 56px; height: 2px; background: var(--grad); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: .45rem 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--text); font-weight: 600; }
.widget a:hover { color: var(--brand); }
.widget.is-sticky { position: sticky; top: calc(var(--head-h) + 12px); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-cloud a { font-size: .78rem !important; padding: .3rem .6rem; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }

.ad-slot { margin: 1.4rem 0; text-align: center; overflow: hidden; }
.ad-slot small { display: block; font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }

/* ---------- Footer ---------- */
.site-footer { background: #10122b; color: #cfd3f0; margin-top: 2rem; }
.smartportal-dark .site-footer { background: #090b1c; }
.footer-top { display: grid; gap: 1.6rem; padding: 2.2rem 0 1.6rem; }
.footer-brand p { font-size: .88rem; color: #a8adcf; }
.footer-brand .brand-line { display: flex; align-items: center; gap: .55rem; margin-bottom: .6rem; }
.footer-brand .brand-line span { font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: #fff; }
.site-footer .widget-title, .footer-col h3 { color: #fff; font-size: .95rem; margin: 0 0 .7rem; }
.site-footer .widget { background: transparent; border: 0; box-shadow: none; padding: 0; }
.site-footer .widget li { border-bottom-color: rgba(255, 255, 255, .1); }
.site-footer a, .site-footer .widget a { color: #cfd3f0; }
.site-footer a:hover { color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .3rem 0; font-size: .88rem; }
.contact-list li { display: flex; gap: .5rem; align-items: flex-start; color: #a8adcf; }
.contact-list svg { width: 16px; height: 16px; flex: none; margin-top: .28rem; color: var(--accent); }
.social-row { display: flex; gap: .5rem; margin-top: .8rem; }
.social-row a { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.social-row a:hover { background: var(--brand); }
.social-row svg { width: 18px; height: 18px; }
.footer-bottom {
	display: grid; gap: .6rem; padding: 1rem 0 1.4rem; border-top: 1px solid rgba(255, 255, 255, .12);
	font-size: .8rem; color: #9aa0c6; text-align: center;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: center; }
.footer-legal a { font-weight: 600; }
.footer-disclaimer { font-size: .74rem; color: #7f86b0; max-width: 78ch; margin-inline: auto; }

.back-to-top {
	position: fixed; right: 14px; bottom: 14px; z-index: 90; width: 44px; height: 44px;
	border: 0; border-radius: 50%; background: var(--grad); color: #fff; font-size: 1.15rem; cursor: pointer;
	box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(14px); pointer-events: none;
	transition: opacity .25s, transform .25s;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ---------- Pagination ---------- */
.pagination, .nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; margin: 1.8rem 0 .5rem; }
.pagination .nav-links { margin: 0; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 .7rem;
	border-radius: 12px; background: var(--surface); border: 1px solid var(--line);
	color: var(--text); font-weight: 700; font-size: .88rem; box-shadow: var(--shadow-sm);
	transition: transform .18s, background .18s, color .18s;
}
.page-numbers:hover { transform: translateY(-2px); color: var(--brand); }
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }
.page-numbers.dots { background: transparent; border: 0; box-shadow: none; }

/* ---------- Comments / forms ---------- */
.comments-area { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.comment-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-list .children { list-style: none; padding-left: 1rem; }
input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea {
	width: 100%; padding: .7rem .85rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
	background: var(--surface); color: var(--text); font-family: inherit; font-size: .95rem;
}
textarea:focus, input:focus { outline: none; border-color: var(--brand); }
.comment-form p { margin-bottom: .8rem; }
.form-submit input[type="submit"], .comment-form input[type="submit"] {
	background: var(--grad); color: #fff; border: 0; border-radius: 999px; padding: .75rem 1.3rem;
	font-weight: 700; cursor: pointer; box-shadow: var(--shadow-md);
}

/* ---------- States / 404 ---------- */
.state-block {
	text-align: center; padding: 2.5rem 1rem; background: var(--surface);
	border: 1px dashed var(--line); border-radius: var(--radius); margin: 1.5rem 0;
}
.state-block .search-form { max-width: 420px; margin: 1rem auto 0; }

/* ---------- Animations ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .3, 1); }
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
	.reveal { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
	.post-grid { grid-template-columns: repeat(2, 1fr); gap: 1.15rem; }
	.quick-links { grid-template-columns: repeat(4, 1fr); }
	.author-grid { grid-template-columns: repeat(2, 1fr); }
	.about-stats { grid-template-columns: repeat(4, 1fr); }
	.post-navigation { grid-template-columns: 1fr 1fr; }
	.footer-bottom { grid-template-columns: 1fr auto; text-align: left; }
	.footer-legal { justify-content: flex-end; }
}

@media (min-width: 900px) {
	:root { --head-h: 72px; }
	body { font-size: 17px; }
	.hero-inner { padding: 3.2rem 16px 2.4rem; }
	.post-grid { grid-template-columns: repeat(3, 1fr); }
	.author-grid { grid-template-columns: repeat(4, 1fr); }
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 330px; gap: 2.2rem; padding-top: 2rem; }
	.no-sidebar .layout-sidebar { grid-template-columns: minmax(0, 1fr); }
	.about-grid { grid-template-columns: 1.2fr 1fr; align-items: center; }
	.footer-top { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; }
	.post-card.is-featured { grid-column: span 3; flex-direction: row; }
	.post-card.is-featured .post-card__media { width: 55%; aspect-ratio: 16 / 9; }
	.post-card.is-featured .post-card__body { padding: 1.5rem; justify-content: center; }
	.post-card.is-featured .post-card__title { font-size: 1.6rem; }
	.post-card.is-featured .post-card__excerpt { font-size: .96rem; }

	/* Desktop nav */
	.nav-toggle { display: none; }
	.main-nav {
		position: static; inset: auto; padding: 0; max-height: none; overflow: visible;
		background: transparent; border: 0; box-shadow: none;
		transform: none; opacity: 1; visibility: visible;
	}
	.main-nav > ul { display: flex; align-items: center; gap: .2rem; }
	.main-nav > ul > li { position: relative; }
	.main-nav a { border-bottom: 0; padding: .55rem .7rem; border-radius: 10px; }
	.main-nav > ul > li > a:hover { background: var(--surface-2); }
	.main-nav .sub-menu {
		position: absolute; top: 100%; left: 0; min-width: 210px; padding: .4rem;
		background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
		box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(8px);
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.main-nav li:hover > .sub-menu, .main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
	.entry-content { font-size: 1.06rem; }
}

@media (min-width: 1100px) {
	.hero h1 { font-size: 3rem; }
}

/* ---------- Footer social + legal ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: .9rem; }
.social-links a {
	font-size: .76rem; font-weight: 700; padding: .34rem .7rem; border-radius: 999px;
	border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05);
	transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.social-links a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

.legal-menu { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: center; }
.legal-menu ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: 0; padding: 0; }
.legal-menu a { font-size: .8rem; font-weight: 600; }
.legal-menu a:hover { text-decoration: underline; }

/* =========================================================
   MOBILE POLISH v2 — compact header, non-stacking hero
   ========================================================= */
@media (max-width: 899px) {
	:root { --head-h: 52px; }

	.brand-icon, .custom-logo { width: 28px; height: 28px; max-height: 28px; }
	.site-title { font-size: .95rem; }
	.site-tagline { font-size: .6rem; }
	.icon-btn { width: 32px; height: 32px; border-radius: 9px; }
	.icon-btn svg { width: 16px; height: 16px; }
	.nav-toggle span { width: 15px; height: 2px; }
	.header-actions { gap: .3rem; }
	.main-nav a { padding: .6rem .2rem; font-size: .88rem; }

	/* Hero: same structure as desktop, only smaller type */
	.hero-inner { padding: 1.35rem 14px 1.15rem; }
	.hero h1 { font-size: clamp(1.15rem, 5.6vw, 1.7rem); margin: .5rem 0 .3rem; }
	.hero .lead { font-size: clamp(.76rem, 3.2vw, .92rem); }
	.hero .badge { font-size: .58rem; padding: .22rem .5rem; }
	.hero-actions { flex-wrap: nowrap; gap: .45rem; margin-top: .85rem; }
	.hero-actions .btn { padding: .5rem .7rem; font-size: .74rem; white-space: nowrap; flex: 1; }

	/* Quick links stay 4-up like desktop, just smaller */
	.quick-links { grid-template-columns: repeat(4, 1fr); gap: .35rem; margin-top: .9rem; }
	.quick-link { flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: .5rem .25rem; font-size: .64rem; border-radius: 11px; line-height: 1.2; }
	.quick-link small { font-size: .54rem; }
	.ql-icon { font-size: .95rem; }

	.notice-strip { margin-top: .8rem; }
	.notice-strip .tag { font-size: .58rem; padding: .2rem .45rem; }
	.notice-track a { font-size: .74rem; }

	.section-sub { font-size: .76rem; }
	.post-card__title { font-size: .95rem; }
	.post-card__excerpt { font-size: .82rem; }
	.entry-meta { font-size: .7rem; gap: .25rem .55rem; }
	.back-to-top { width: 38px; height: 38px; right: 10px; bottom: 10px; }
}

@media (max-width: 480px) {
	.quick-link { font-size: .58rem; padding: .45rem .2rem; }
	.quick-link small { display: none; }
	.hero h1 { font-size: 1.2rem; }
}

/* =========================================================
   SIDEBAR FIX — proper right column on tablet + desktop
   ========================================================= */
@media (min-width: 860px) {
	.layout-sidebar {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 320px;
		align-items: start;
		gap: 2rem;
	}
	.layout-sidebar > * { min-width: 0; }
	.no-sidebar .layout-sidebar, .layout-sidebar.is-full { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: sticky; top: calc(var(--head-h) + 14px); max-height: calc(100dvh - var(--head-h) - 28px); overflow-y: auto; scrollbar-width: thin; }
}
@media (min-width: 1100px) {
	.layout-sidebar { grid-template-columns: minmax(0, 1fr) 340px; gap: 2.4rem; }
}

/* =========================================================
   TAIYARI PRO POST LAYOUT — SARKARI BLUE + GOLD
   ========================================================= */
.tp-container {
	width: 100%;
	margin: 0 0 1.5rem;
	padding: 34px;
	font-family: Georgia, "Noto Serif", serif;
	color: #1c2b3a;
	background: #ffffff;
	border: 1px solid #e6ecf2;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(0,0,0,.06);
	line-height: 1.75;
}

.tp-header-grid {
	display: grid;
	grid-template-columns: 63% 32%;
	gap: 5%;
	align-items: center;
	border-bottom: 4px solid #c99a2e;
	padding-bottom: 26px;
	margin-bottom: 30px;
}

.tp-badge {
	background: #eef4fa; color: #0b3d66;
	font-size: 13px; font-weight: 800; text-transform: uppercase;
	padding: 6px 14px; border-radius: 4px; display: inline-block;
	margin-bottom: 14px; letter-spacing: .5px; border: 1px solid #c99a2e;
}
.tp-badge:hover { background: #0b3d66; color: #fff; }

.tp-title {
	font-size: 36px; font-weight: 900; color: #0b3d66;
	line-height: 1.25; margin: 0; letter-spacing: -.5px; font-family: inherit;
}
.tp-subtitle { margin: 14px 0 0; font-size: 16px; color: #4a5a6a; }

.tp-meta-card {
	background: #eef4fa; padding: 22px; border-radius: 12px;
	border-left: 5px solid #c99a2e; box-shadow: 0 4px 15px rgba(0,0,0,.03);
}
.tp-meta-row {
	display: flex; align-items: center; gap: 10px;
	font-size: 14.5px; font-weight: 600; color: #1c2b3a; margin-bottom: 11px;
}
.tp-meta-row:last-child { margin-bottom: 0; }
.tp-meta-row.highlight { color: #0b3d66; font-weight: 700; }
.tp-meta-row a { color: #0b3d66; font-weight: 700; }
.tp-icon { font-size: 17px; width: 22px; text-align: center; }

.tp-hero-image {
	width: 100%; margin: 0 0 34px; border-radius: 6px; overflow: hidden;
	border: 1px solid #d8e2ea; box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.tp-hero-image img { width: 100%; height: auto; display: block; transition: transform .4s ease; }
.tp-hero-image:hover img { transform: scale(1.02); }

.tp-content { font-size: 17px; line-height: 1.75; color: #1c2b3a; }
.tp-content p { margin-bottom: 24px; font-size: 17px; }
.tp-content h2 {
	font-size: 27px; font-weight: 700; color: #0b3d66;
	margin: 46px 0 18px; padding: 10px 14px; background: #eef4fa;
	border-left: 5px solid #c99a2e; border-bottom: none; font-family: inherit;
	scroll-margin-top: calc(var(--head-h) + 16px);
}
.tp-content h3 { font-size: 22px; font-weight: 700; color: #144a75; margin: 32px 0 14px; font-family: inherit; scroll-margin-top: calc(var(--head-h) + 16px); }
.tp-content h4 { font-size: 15px; color: #4a4a4a; text-transform: uppercase; letter-spacing: .5px; font-weight: 700; margin-top: 18px; font-family: inherit; }
.tp-content strong, .tp-content b { color: #0b3d66; background: #fff3d6; padding: 1px 4px; border-radius: 3px; }
.tp-content em, .tp-content i { color: #5a4a2c; font-style: italic; }
.tp-content a { color: #b8791f; text-decoration: underline; font-weight: 600; }
.tp-content a:hover { color: #0b3d66; text-decoration: none; }

.tp-content .wp-block-table, .tp-content .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tp-content table {
	width: 100%; border-collapse: collapse; margin: 28px 0; font-size: 15px;
	border: 1px solid #d8e2ea; border-radius: 4px; overflow: hidden; min-width: 420px;
}
.tp-content th { background: #0b3d66; color: #fff; padding: 10px 12px; text-align: left; font-weight: 700; border: 1px solid #0b3d66; }
.tp-content td { padding: 10px 12px; border-bottom: 1px solid #d8e2ea; color: #1c2b3a; background: #fff; }
.tp-content tr:nth-child(even) td { background: #f5f8fb; }

.tp-content ul { list-style: none; padding: 0; margin: 24px 0; }
.tp-content ul li { position: relative; padding-left: 38px; margin-bottom: 14px; }
.tp-content ul li::before {
	content: "✔"; position: absolute; left: 0; top: 2px; width: 26px; height: 26px;
	background: #fff3d6; color: #c99a2e; border-radius: 50%; text-align: center;
	font-size: 14px; font-weight: bold; line-height: 26px;
}
.tp-content ol { padding-left: 22px; margin: 24px 0; }
.tp-content ol li { margin-bottom: 12px; }

.tp-content blockquote {
	background: #fff8e8; border: 1px solid #e8cf8e; border-left: 4px solid #c99a2e;
	padding: 14px 18px; margin: 25px 0; font-size: 15px; border-radius: 4px; font-style: normal;
}
.tp-content img { border-radius: 4px; }

.tp-footer {
	margin-top: 40px; padding: 18px; background: #eef4fa; border-radius: 4px;
	text-align: center; border: 1px dashed #c99a2e; color: #0b3d66; font-weight: 600; font-size: 15px;
}

/* TOC + share + author inside the sarkari card */
.tp-container .toc { background: #f5f8fb; border-color: #d8e2ea; border-radius: 8px; }
.tp-container .toc > summary { color: #0b3d66; font-family: inherit; }
.tp-container .toc > summary::after { color: #c99a2e; }
.tp-container .toc a { color: #0b3d66; }

.tp-share { display: flex; flex-wrap: wrap; gap: .5rem; margin: 30px 0 0; }
.tp-share a, .tp-share button {
	padding: .5rem .9rem; border-radius: 4px; font-size: 14px; font-weight: 700;
	border: 1px solid #d8e2ea; background: #eef4fa; color: #0b3d66; cursor: pointer;
	font-family: inherit; transition: background .2s, transform .18s;
}
.tp-share a:hover, .tp-share button:hover { background: #0b3d66; color: #fff; transform: translateY(-2px); }

.tp-author {
	display: grid; grid-template-columns: 88px 1fr; gap: 18px; align-items: start;
	margin: 34px 0 0; padding: 20px; background: #f5f8fb;
	border: 1px solid #d8e2ea; border-left: 5px solid #c99a2e; border-radius: 8px;
}
.tp-author img { width: 88px; height: 88px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.tp-author h3 { margin: 0 0 2px; font-size: 19px; color: #0b3d66; font-family: inherit; }
.tp-author h3 a { color: #0b3d66; text-decoration: none; }
.tp-author .tp-role { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: #b8791f; margin-bottom: 8px; }
.tp-author p { margin: 0 0 10px; font-size: 15px; color: #37485a; line-height: 1.65; }
.tp-author .tp-author-links { display: flex; flex-wrap: wrap; gap: .5rem .9rem; font-size: 13.5px; font-weight: 700; }
.tp-author .tp-author-links a { color: #b8791f; }
.tp-author .tp-review { display: block; margin-top: 10px; font-size: 12.5px; color: #6b7a8a; font-weight: 500; }

.tp-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 26px; }
.tp-tags a { font-size: 13px; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: #eef4fa; border: 1px solid #d8e2ea; color: #0b3d66; text-decoration: none; }
.tp-tags a:hover { background: #0b3d66; color: #fff; }

/* Dark mode: keep the sarkari card readable */
.smartportal-dark .tp-container { background: #f7f9fc; }

@media (max-width: 768px) {
	.tp-container { padding: 16px; border-radius: 12px; margin: 0 0 1rem; }
	.tp-header-grid { display: block; padding-bottom: 14px; margin-bottom: 18px; border-bottom-width: 3px; }
	.tp-badge { font-size: 10px; padding: 3px 8px; margin-bottom: 9px; }
	.tp-title { font-size: 24px; line-height: 1.3; margin-bottom: 14px; }
	.tp-subtitle { font-size: 14px; margin: 0 0 12px; }
	.tp-meta-card {
		padding: 8px 4px; border-left: none; border-top: 1px solid #d8e2ea; border-bottom: 1px solid #d8e2ea;
		border-radius: 0; display: flex; flex-direction: row; justify-content: space-around; box-shadow: none;
	}
	.tp-meta-row { margin-bottom: 0; font-size: 11px; white-space: nowrap; flex: 1; justify-content: center; border-right: 1px solid #d8e2ea; overflow: hidden; }
	.tp-meta-row:last-child { border-right: none; }
	.tp-icon { font-size: 12px; width: auto; margin-right: 3px; }
	.tp-hero-image { margin-bottom: 22px; }
	.tp-content, .tp-content p { font-size: 15px; }
	.tp-content { line-height: 1.7; }
	.tp-content h2 { font-size: 21px; padding: 8px 12px; border-left-width: 4px; margin-top: 34px; }
	.tp-content h3 { font-size: 18px; }
	.tp-content h4 { font-size: 13px; }
	.tp-content table { font-size: 13px; }
	.tp-content th, .tp-content td { padding: 6px 8px; }
	.tp-content blockquote { font-size: 14px; padding: 12px 14px; }
	.tp-content ul li { padding-left: 32px; }
	.tp-author { grid-template-columns: 1fr; text-align: left; padding: 16px; }
	.tp-author img { width: 64px; height: 64px; }
	.tp-share a, .tp-share button { font-size: 12.5px; padding: .42rem .7rem; }
}

@media (max-width: 480px) {
	.tp-title { font-size: 21px; }
	.tp-meta-row { font-size: 9.5px; }
	.tp-content, .tp-content p { font-size: 14.5px; }
	.tp-content h2 { font-size: 19px; }
	.tp-content h3 { font-size: 16px; }
	.tp-content table { font-size: 12px; }
}
