/*
Theme Name: Sarkari Pro
Theme URI: https://example.com/sarkari-pro
Author: Sarkari Pro
Description: A government job portal theme with Result, Admit Card, Latest Job, Answer Key, Syllabus and Admission boxes, admin options, demo content, comments, dark mode and a responsive mobile and desktop design.
Version: 1.1.1
Requires at least: 5.8
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: sarkari-pro
Tags: blog, news, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ---------- Tokens (colours are overridden from Theme Options) ---------- */
:root {
	--sp-primary: #0fa56f;
	--sp-primary-dark: #07704c;
	--sp-btn: #1a9a62;
	--sp-danger: #d92d20;
	--sp-bg: #eef3f1;
	--sp-card: #ffffff;
	--sp-text: #1b2a26;
	--sp-footer: #0b3d2e;
	--sp-radius: 8px;
	--sp-container: 1180px;
	--sp-cols: 3;
	--sp-arch-cols: 2;
	--sp-muted: #5b6b66;
	--sp-border: #d5e2dc;
	--sp-soft: #f3f8f6;
	--sp-shadow: 0 1px 2px rgba(16, 40, 32, .06), 0 6px 18px rgba(16, 40, 32, .06);
	--sp-grad: linear-gradient(135deg, var(--sp-primary-dark), var(--sp-primary));
	--sp-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="dark"] {
	--sp-bg: #0e1614;
	--sp-card: #16211e;
	--sp-text: #e7f0ed;
	--sp-muted: #9db3ab;
	--sp-border: #2a3b35;
	--sp-soft: #1b2925;
	--sp-footer: #07201a;
	--sp-shadow: 0 1px 2px rgba(0, 0, 0, .4);
	color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--sp-bg);
	color: var(--sp-text);
	font: 15px/1.6 var(--sp-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.3; text-wrap: balance; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--sp-primary) 60%, #fff); outline-offset: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.sp-skip { position: absolute; left: -999px; top: 0; background: #000; color: #fff; padding: 10px 14px; z-index: 999; }
.sp-skip:focus { left: 8px; top: 8px; }
.sp-container { width: 100%; max-width: var(--sp-container); margin-inline: auto; padding-inline: 16px; }
.sp-i { width: 1em; height: 1em; flex: none; vertical-align: -.125em; }

/* ---------- Header ---------- */
.sp-header { background: var(--sp-card); box-shadow: 0 1px 0 var(--sp-border); position: relative; z-index: 60; }
.sp-sticky .sp-header { position: sticky; top: 0; }
.admin-bar.sp-sticky .sp-header { top: 32px; }
.sp-header.is-stuck { box-shadow: 0 4px 16px rgba(0, 0, 0, .1); }
.sp-header__in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.sp-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--sp-primary-dark); font-weight: 800; font-size: 22px; letter-spacing: -.3px; }
:root[data-theme="dark"] .sp-logo { color: #5fe3b0; }
.sp-logo__img { height: var(--sp-logo-h, 44px); width: auto; max-width: 62vw; object-fit: contain; display: block; }
.sp-logo__emblem { height: var(--sp-logo-h, 44px); width: auto; aspect-ratio: 1; }
.sp-footer .sp-logo__img { height: min(var(--sp-logo-h, 44px), 64px); }
.sp-nav { margin-left: auto; }
.sp-menu, .sp-menu ul { list-style: none; margin: 0; padding: 0; }
.sp-menu { display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.sp-menu li { position: relative; }
.sp-menu a { display: block; padding: 10px 12px; font-weight: 600; font-size: 14px; text-decoration: none; border-radius: 6px; }
.sp-menu a:hover, .sp-menu .current-menu-item > a, .sp-menu .current-menu-ancestor > a, .sp-menu .current_page_item > a { color: var(--sp-primary); background: var(--sp-soft); }
.sp-menu .sub-menu { display: none; position: absolute; left: 0; top: 100%; min-width: 200px; background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 6px; z-index: 70; }
.sp-menu li:hover > .sub-menu, .sp-menu li:focus-within > .sub-menu { display: block; }
.sp-actions { display: flex; align-items: center; gap: 8px; }
.sp-iconbtn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--sp-border); background: var(--sp-card); color: var(--sp-text); border-radius: 10px; cursor: pointer; font-size: 18px; }
.sp-iconbtn:hover { background: var(--sp-soft); }
.sp-burger { display: none; }
.sp-theme-toggle .sp-i-sun { display: none; }
:root[data-theme="dark"] .sp-theme-toggle .sp-i-sun { display: inline; }
:root[data-theme="dark"] .sp-theme-toggle .sp-i-moon { display: none; }

/* ---------- Hero ---------- */
.sp-hero { position: relative; overflow: hidden; background: var(--sp-grad); color: #fff; text-align: center; padding: 38px 0 84px; }
.sp-hero::before, .sp-hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .09); pointer-events: none; }
.sp-hero::before { width: 520px; height: 520px; left: -140px; top: -300px; }
.sp-hero::after { width: 420px; height: 420px; right: -100px; bottom: -260px; }
.sp-hero .sp-container { position: relative; z-index: 1; }
.sp-hero h1 { margin: 0 auto 20px; width: max-content; max-width: none; white-space: nowrap; font-size: clamp(22px, 4.4vw, 36px); font-weight: 800; line-height: 1.3; text-shadow: 0 1px 2px rgba(0, 0, 0, .18); }
.sp-hero__word { display: inline-block; padding: 0 .32em; margin: 0 .12em; color: #ffe45c; background: rgba(0, 0, 0, .2); border: 1.5px solid #ffe45c; border-radius: 6px; transition: opacity .22s ease, transform .22s ease; min-width: 2ch; }
.sp-hero__word.is-out { opacity: 0; transform: translateY(8px); }
.sp-search { display: flex; max-width: 400px; margin-inline: auto; background: #fff; border-radius: 999px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.sp-search input[type="search"] { flex: 1; min-width: 0; border: 0; padding: 12px 18px; font: inherit; font-size: 14px; background: transparent; color: #1b2a26; outline: none; -webkit-appearance: none; appearance: none; }
.sp-search input::placeholder { color: #8b9a95; }
.sp-search button { border: 0; background: var(--sp-primary-dark); color: #fff; padding: 0 20px; cursor: pointer; font-size: 17px; }
.sp-search button:hover { background: var(--sp-primary); }

.sp-banner { background: var(--sp-grad); color: #fff; padding: 28px 0; text-align: center; }
.sp-banner h1 { margin: 0; font-size: clamp(22px, 3.6vw, 32px); }
.sp-banner p { margin: 6px auto 0; max-width: 680px; opacity: .92; }
.sp-banner .sp-search { margin-top: 16px; }

/* ---------- Panels & home ---------- */
.sp-main { padding-block: 18px 6px; }
.sp-panel { background: var(--sp-card); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); padding: 18px; }
.sp-intro { margin-top: -50px; position: relative; z-index: 2; }
.sp-hl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.sp-hl a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 64px; padding: 10px 12px; border-radius: 6px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; text-decoration: none; background: linear-gradient(135deg, var(--c1, #0f9d6a), var(--c2, #0b7d55)); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .15s ease, box-shadow .15s ease; }
.sp-hl a:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0, 0, 0, .22); }
.sp-intro__text { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--sp-muted); }
.sp-intro__text strong { color: var(--sp-text); }
.sp-join { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.sp-join a { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 16px; border-radius: 6px; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .3px; text-decoration: none; text-transform: uppercase; box-shadow: 0 3px 8px rgba(0, 0, 0, .16); transition: filter .15s; }
.sp-join a:hover { filter: brightness(1.07); }
.sp-join .sp-wa { background: #2fbf4a; }
.sp-join .sp-tg { background: #25a8e6; }
.sp-join img { width: 26px; height: 26px; padding: 3px; background: #fff; border-radius: 50%; }
.sp-adslot { margin: 16px 0; text-align: center; overflow: hidden; }

.sp-grid { display: grid; grid-template-columns: repeat(var(--sp-cols, 3), minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.sp-box { background: var(--sp-card); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); box-shadow: var(--sp-shadow); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sp-box__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 12px; background: var(--sp-grad); color: #fff; }
.sp-box__head h2 { margin: 0; font-size: 15px; font-weight: 700; }
.sp-viewall { font-size: 12px; font-weight: 700; color: #fff; text-decoration: none; border: 1.5px solid rgba(255, 255, 255, .85); border-radius: 5px; padding: 2px 9px; white-space: nowrap; }
.sp-viewall:hover { background: #fff; color: var(--sp-primary-dark); }
.sp-box__body { padding: 10px; display: grid; gap: 8px; align-content: start; flex: 1; }
.sp-empty { margin: 0; padding: 18px 8px; text-align: center; color: var(--sp-muted); font-size: 13px; }

.sp-item { border: 1.5px solid var(--sp-primary); border-radius: 6px; padding: 8px 10px; background: var(--sp-card); min-width: 0; transition: box-shadow .15s ease, transform .15s ease; }
.sp-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); }
.sp-item__title { display: block; font-weight: 700; font-size: 13px; line-height: 1.4; text-decoration: none; color: var(--sp-text); overflow-wrap: anywhere; }
.sp-item__title:hover { color: var(--sp-primary); }
.sp-item__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.sp-date { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--sp-danger); font-weight: 600; min-width: 0; }
.sp-item.is-closed .sp-date { color: var(--sp-muted); }
.sp-item.is-closed .sp-btn { background: #6b7c76; }
.sp-btn { display: inline-block; background: var(--sp-btn); color: #fff; font-size: 11px; font-weight: 700; line-height: 1.2; padding: 5px 10px; border-radius: 5px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; transition: filter .15s; }
.sp-btn:hover { filter: brightness(1.1); color: #fff; }
.sp-btn--lg { font-size: 13px; padding: 8px 16px; }
.sp-new { display: inline-block; background: var(--sp-danger); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .5px; line-height: 1; padding: 3px 5px; border-radius: 3px; vertical-align: 2px; animation: sp-blink 1.6s ease-in-out infinite; }
@keyframes sp-blink { 50% { opacity: .55; } }

/* ---------- SEO / FAQ blocks ---------- */
.sp-seo { margin-top: 18px; padding: 0; overflow: hidden; }
.sp-seo > h2 { margin: 0; padding: 10px 14px; text-align: center; font-size: 17px; background: var(--sp-grad); color: #fff; }
.sp-seo .sp-prose { padding: 14px 18px 8px; font-size: 14px; }
.sp-faq details { border-bottom: 1px solid var(--sp-border); }
.sp-faq details:last-child { border-bottom: 0; }
.sp-faq summary { cursor: pointer; font-weight: 700; padding: 12px 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.sp-faq summary::-webkit-details-marker { display: none; }
.sp-faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--sp-primary); }
.sp-faq details[open] summary::after { content: "–"; }
.sp-faq__a { padding: 0 18px 14px; font-size: 14px; color: var(--sp-muted); }

/* ---------- Layout with sidebar ---------- */
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sp-sidebar { display: grid; gap: 16px; min-width: 0; }
.sp-widget__title { margin: -18px -18px 12px; padding: 9px 14px; background: var(--sp-grad); color: #fff; font-size: 15px; border-radius: var(--sp-radius) var(--sp-radius) 0 0; }
.sp-widget ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-widget li a { text-decoration: none; font-weight: 600; font-size: 13px; }
.sp-widget li a:hover { color: var(--sp-primary); }
.sp-widget .sp-join { grid-template-columns: 1fr; margin-top: 0; }

/* ---------- Single post ---------- */
.sp-crumbs { font-size: 12.5px; color: var(--sp-muted); margin-bottom: 8px; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.sp-crumbs a { text-decoration: none; }
.sp-crumbs a:hover { color: var(--sp-primary); }
.sp-single h1 { margin: 4px 0 10px; font-size: clamp(22px, 3.4vw, 30px); }
.sp-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; color: var(--sp-muted); margin-bottom: 14px; }
.sp-chip { display: inline-block; background: var(--sp-soft); color: var(--sp-primary-dark); border: 1px solid var(--sp-border); font-weight: 700; font-size: 12px; padding: 2px 10px; border-radius: 999px; text-decoration: none; }
:root[data-theme="dark"] .sp-chip { color: #5fe3b0; }
.sp-chip:hover { background: var(--sp-primary); color: #fff; }
.sp-chip--date { color: var(--sp-danger); border-color: color-mix(in srgb, var(--sp-danger) 40%, transparent); background: transparent; }
.sp-hero-img { border-radius: var(--sp-radius); margin: 0 0 16px; overflow: hidden; }
.sp-hero-img img { display: block; width: 100%; }
.sp-block-title { margin: 22px 0 0; padding: 9px 14px; background: var(--sp-grad); color: #fff; font-size: 16px; font-weight: 700; border-radius: 6px 6px 0 0; }
.sp-tablewrap { overflow-x: auto; border: 1px solid var(--sp-border); border-radius: 0 0 6px 6px; }
.sp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sp-table th, .sp-table td { border: 1px solid var(--sp-border); padding: 9px 12px; text-align: left; vertical-align: middle; }
.sp-tablewrap .sp-table tr:first-child > * { border-top: 0; }
.sp-tablewrap .sp-table tr > :first-child { border-left: 0; }
.sp-tablewrap .sp-table tr > :last-child { border-right: 0; }
.sp-tablewrap .sp-table tr:last-child > * { border-bottom: 0; }
.sp-table th { background: var(--sp-soft); width: 38%; font-weight: 700; }
.sp-table td.sp-center { text-align: center; }
.sp-prose { font-size: 16px; overflow-wrap: anywhere; }
.sp-prose > :first-child { margin-top: 0; }
.sp-prose h2 { font-size: 22px; margin: 1.4em 0 .5em; }
.sp-prose h3 { font-size: 18px; margin: 1.2em 0 .4em; }
.sp-prose ul, .sp-prose ol { padding-left: 22px; }
.sp-prose li { margin: .3em 0; }
.sp-prose a { color: var(--sp-primary-dark); text-decoration: underline; }
:root[data-theme="dark"] .sp-prose a { color: #5fe3b0; }
.sp-prose table { display: block; overflow-x: auto; border-collapse: collapse; max-width: 100%; }
.sp-prose td, .sp-prose th { border: 1px solid var(--sp-border); padding: 7px 10px; }
.sp-prose img { border-radius: 6px; }
.sp-demo-note { background: #fff8e1; border: 1px dashed #e0a800; color: #6b4e00; padding: 10px 14px; border-radius: 6px; font-size: 14px; margin: 0 0 16px; }
:root[data-theme="dark"] .sp-demo-note { background: #2b2410; color: #f3d98a; }
.sp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--sp-border); }
.sp-share strong { font-size: 14px; margin-right: 4px; }
.sp-share a img { width: 34px; height: 34px; border-radius: 8px; display: block; transition: transform .15s; }
.sp-share a:hover img { transform: translateY(-2px); }
.sp-note { margin-top: 16px; font-size: 12.5px; color: var(--sp-muted); background: var(--sp-soft); border-radius: 6px; padding: 10px 12px; }
.sp-related { margin-top: 18px; }
.sp-related .sp-list { margin-top: 10px; }

/* ---------- Archive ---------- */
.sp-list { display: grid; grid-template-columns: repeat(var(--sp-arch-cols, 2), minmax(0, 1fr)); gap: 10px; }
.sp-list .sp-item { padding: 10px 12px; }
.sp-list .sp-item__title { font-size: 14px; }
.sp-pagination { margin-top: 18px; }
.sp-pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; border: 0; background: none; }
.sp-pagination ul.page-numbers > li { margin: 0; }
.sp-pagination li > a.page-numbers, .sp-pagination li > span.page-numbers { display: inline-block; min-width: 40px; text-align: center; padding: 8px 13px; border: 1px solid var(--sp-border); border-radius: 6px; background: var(--sp-card); color: var(--sp-text); text-decoration: none; font-weight: 700; font-size: 14px; line-height: 1.2; }
.sp-pagination li > span.current, .sp-pagination li > a.page-numbers:hover { background: var(--sp-primary); border-color: var(--sp-primary); color: #fff; }
.sp-pagination li > span.dots { border-color: transparent; background: transparent; min-width: 0; padding-inline: 4px; }
.sp-404 { text-align: center; padding: 40px 16px; }
.sp-404 h1 { font-size: 72px; margin: 0; color: var(--sp-primary); }

/* ---------- Footer ---------- */
.sp-footer { background: var(--sp-footer); color: #d5e7df; margin-top: 30px; }
.sp-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding-block: 34px; }
.sp-footer h3 { margin: 0 0 12px; font-size: 17px; color: #fff; }
.sp-footer p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.7; }
.sp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-footer a { text-decoration: none; font-size: 14px; }
.sp-footer a:hover { color: #fff; text-decoration: underline; }
.sp-footer .sp-logo { color: #fff; margin-bottom: 10px; }
.sp-social { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 8px; }
.sp-social a img { width: 38px; height: 38px; border-radius: 8px; display: block; transition: transform .15s; }
.sp-social a:hover img { transform: translateY(-2px); }
.sp-disclaimer { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 14px; font-size: 12.5px; color: #a9c4b8; text-align: center; }
.sp-footer__bar { background: var(--sp-primary); color: #fff; text-align: center; padding: 10px 16px; font-size: 13px; font-weight: 600; }

.sp-share-float { position: fixed; left: 0; top: 50%; transform: translateY(-50%); z-index: 40; display: none; flex-direction: column; box-shadow: 0 4px 14px rgba(0, 0, 0, .2); border-radius: 0 8px 8px 0; overflow: hidden; }
.sp-share-float a { display: block; line-height: 0; }
.sp-share-float img { width: 40px; height: 40px; border-radius: 0; display: block; }
.sp-top { position: fixed; right: 16px; bottom: 16px; z-index: 50; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--sp-primary); color: #fff; font-size: 20px; cursor: pointer; display: none; place-items: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.sp-top.is-on { display: grid; }

/* ---------- Responsive ---------- */
@media (min-width: 1300px) {
	.sp-share-float { display: flex; }
}
@media (max-width: 1000px) {
	.sp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-layout { grid-template-columns: minmax(0, 1fr); }
	.sp-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.sp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.sp-burger { display: inline-grid; }
	.sp-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; margin: 0; background: var(--sp-card); border-top: 1px solid var(--sp-border); box-shadow: 0 12px 24px rgba(0, 0, 0, .14); max-height: calc(100vh - 80px); overflow-y: auto; }
	.sp-nav.is-open { display: block; }
	.sp-menu { flex-direction: column; align-items: stretch; padding: 8px 16px 14px; gap: 0; }
	.sp-menu a { padding: 12px 8px; border-bottom: 1px solid var(--sp-border); border-radius: 0; }
	.sp-menu .sub-menu { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 14px; min-width: 0; }
	.sp-actions { margin-left: auto; }
}
@media (max-width: 782px) {
	.admin-bar.sp-sticky .sp-header { top: 46px; }
}
@media (max-width: 600px) {
	/* On small phones the WordPress admin bar scrolls away, so the sticky header must not leave a gap. */
	.admin-bar.sp-sticky .sp-header { top: 0; }
}
@media (max-width: 680px) {
	body { font-size: 14.5px; }
	.sp-grid, .sp-list { grid-template-columns: minmax(0, 1fr); }
	.sp-join { grid-template-columns: minmax(0, 1fr); }
	.sp-hero { padding: 28px 0 74px; }
	.sp-panel { padding: 14px; }
	.sp-widget__title { margin: -14px -14px 12px; }
	.sp-hl a { font-size: 12.5px; min-height: 58px; }
	.sp-footer__grid { grid-template-columns: minmax(0, 1fr); padding-block: 26px; }
	.sp-logo { font-size: 19px; }
	.sp-logo__img { height: var(--sp-logo-h-m, 34px); }
	.sp-prose { font-size: 15.5px; }
	.sp-table th { width: 42%; }
	.sp-table th, .sp-table td { padding: 8px 9px; }
}
@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.sp-header, .sp-footer, .sp-share-float, .sp-top, .sp-share, .sp-sidebar, .sp-hero { display: none !important; }
}

/* ---------- Default WordPress block widgets inside the sidebar ---------- */
.sp-widget h2, .sp-widget .wp-block-heading, .sp-widget .wp-block-search__label { margin: -18px -18px 12px; padding: 9px 14px; background: var(--sp-grad); color: #fff; font-size: 15px; font-weight: 700; border-radius: var(--sp-radius) var(--sp-radius) 0 0; display: block; }
.sp-widget .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.sp-widget .wp-block-search__input { flex: 1; min-width: 0; border: 1px solid var(--sp-border); border-radius: 6px; padding: 8px 10px; background: var(--sp-card); color: var(--sp-text); font: inherit; }
.sp-widget .wp-block-search__button { border: 0; background: var(--sp-btn); color: #fff; border-radius: 6px; padding: 8px 14px; font-weight: 700; cursor: pointer; }
.sp-widget .wp-block-latest-posts, .sp-widget .wp-block-categories, .sp-widget .wp-block-archives, .sp-widget .wp-block-latest-comments { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.sp-widget a { text-decoration: none; }
@media (max-width: 680px) {
	.sp-widget h2, .sp-widget .wp-block-heading, .sp-widget .wp-block-search__label { margin: -14px -14px 12px; }
}
.sp-widget .wp-block-search__label { width: calc(100% + 36px); box-sizing: border-box; }
@media (max-width: 680px) { .sp-widget .wp-block-search__label { width: calc(100% + 28px); } }


/* =====================================================================
   v1.1 – corner button, animation, comments, author line, no-sidebar
   ===================================================================== */

/* Post cards: the button sits in the bottom-right corner of the card. */
.sp-item { position: relative; overflow: hidden; padding: 9px 0 0 11px; }
.sp-item__title { padding-right: 11px; font-size: 13.5px; }
.sp-item__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 6px; min-height: 30px; }
.sp-item .sp-date { padding-bottom: 8px; align-self: flex-end; }
.sp-item .sp-btn { border-radius: 12px 0 0 0; padding: 8px 16px 7px; font-size: 12px; margin: 0; align-self: flex-end; }
.sp-list .sp-item { padding: 10px 0 0 12px; }
.sp-list .sp-item__title { padding-right: 12px; }

/* Header: a little tighter on phones. */
@media (max-width: 680px) {
	.sp-header__in { min-height: 56px; gap: 10px; }
	.sp-logo { font-size: 18px; gap: 8px; min-width: 0; }
	.sp-logo__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
	.sp-logo__emblem, .sp-logo__img { height: var(--sp-logo-h-m, 34px); width: auto; }
	.sp-footer .sp-logo__img { height: min(var(--sp-logo-h-m, 34px), 56px); }
	.sp-iconbtn { width: 38px; height: 38px; }
}

/* WhatsApp / Telegram buttons: gentle pulse and a moving shine. */
.sp-join a { position: relative; overflow: hidden; isolation: isolate; }
.sp-anim .sp-join a::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: sp-shine 3.2s ease-in-out infinite; pointer-events: none; z-index: -1; }
.sp-anim .sp-join .sp-wa { animation: sp-pulse-wa 2.2s ease-out infinite; }
.sp-anim .sp-join .sp-tg { animation: sp-pulse-tg 2.2s ease-out infinite .5s; }
.sp-anim .sp-join a img { animation: sp-wiggle 3.2s ease-in-out infinite; }
@keyframes sp-shine { 0% { left: -60%; } 55%, 100% { left: 130%; } }
@keyframes sp-pulse-wa { 0% { box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 0 0 0 rgba(47, 191, 74, .55); } 70%, 100% { box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 0 0 14px rgba(47, 191, 74, 0); } }
@keyframes sp-pulse-tg { 0% { box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 0 0 0 rgba(37, 168, 230, .55); } 70%, 100% { box-shadow: 0 3px 8px rgba(0, 0, 0, .16), 0 0 0 14px rgba(37, 168, 230, 0); } }
@keyframes sp-wiggle { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-12deg); } 90% { transform: rotate(10deg); } 94% { transform: rotate(-6deg); } }
.sp-join a:hover { transform: translateY(-2px); }

/* Sidebar switched off. */
.sp-layout--full { grid-template-columns: minmax(0, 1fr); }

/* Author line (photo + name). */
.sp-author { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: var(--sp-text); font-weight: 600; font-size: 13px; }
.sp-author__img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid var(--sp-border); background: var(--sp-soft); display: block; }
.sp-author:hover .sp-author__name { color: var(--sp-primary); }

/* Comments. */
.sp-comments { margin-top: 18px; }
.sp-comments__title { margin: -18px -18px 14px; padding: 10px 16px; background: var(--sp-grad); color: #fff; font-size: 16px; border-radius: var(--sp-radius) var(--sp-radius) 0 0; }
.sp-comment-list, .sp-comment-list .children { list-style: none; margin: 0; padding: 0; }
.sp-comment-list .children { margin-left: 28px; border-left: 2px solid var(--sp-border); padding-left: 12px; }
.sp-comment { margin: 0 0 12px; }
.sp-comment__body { display: flex; gap: 12px; padding: 12px; background: var(--sp-soft); border: 1px solid var(--sp-border); border-radius: var(--sp-radius); }
.sp-comment__avatar img { width: 44px; height: 44px; border-radius: 50%; display: block; object-fit: cover; border: 2px solid var(--sp-card); box-shadow: 0 0 0 1px var(--sp-border); }
.sp-comment__main { flex: 1; min-width: 0; }
.sp-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sp-comment__name { font-size: 14px; }
.sp-badge { background: var(--sp-primary); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.sp-comment__time { margin-left: auto; font-size: 12px; color: var(--sp-muted); text-decoration: none; }
.sp-comment__text { font-size: 14.5px; overflow-wrap: anywhere; }
.sp-comment__text p { margin: .4em 0; }
.sp-comment__wait { margin: 6px 0 0; font-size: 12.5px; color: #b45309; }
.sp-comment__foot { display: flex; gap: 12px; font-size: 12.5px; font-weight: 700; }
.sp-comment__foot a { color: var(--sp-primary-dark); text-decoration: none; }
:root[data-theme="dark"] .sp-comment__foot a { color: #5fe3b0; }
.sp-comment__foot a:hover { text-decoration: underline; }
.sp-comment-nav { display: flex; justify-content: space-between; margin: 8px 0 14px; font-weight: 700; font-size: 14px; }
.sp-comments .comment-respond { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--sp-border); }
.sp-comments .comment-reply-title { margin: 0 0 6px; font-size: 18px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.sp-comments .comment-reply-title small a { font-size: 12.5px; color: var(--sp-danger); }
.sp-comments .comment-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.sp-cform__note { grid-column: 1 / -1; margin: 0 0 8px; font-size: 12.5px; color: var(--sp-muted); }
.sp-cform__field { margin: 0 0 12px; min-width: 0; }
.sp-cform__field--wide, .sp-comments .form-submit, .sp-comments .logged-in-as { grid-column: 1 / -1; }
.sp-comments .logged-in-as { margin: 0 0 10px; font-size: 13px; color: var(--sp-muted); }
.sp-cform__field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.sp-cform__cookies label { font-weight: 500; font-size: 12.5px; color: var(--sp-muted); }
.sp-cform__field input[type="text"], .sp-cform__field input[type="email"], .sp-cform__field textarea { width: 100%; font: inherit; font-size: 14px; padding: 10px 12px; border: 1px solid var(--sp-border); border-radius: 6px; background: var(--sp-card); color: var(--sp-text); }
.sp-cform__field textarea { resize: vertical; min-height: 120px; }
.sp-cform__field input:focus, .sp-cform__field textarea:focus { outline: 2px solid var(--sp-primary); border-color: transparent; }
.sp-comments .form-submit { margin: 0; }
@media (max-width: 680px) {
	.sp-comments__title { margin: -14px -14px 12px; }
	.sp-comments .comment-form { grid-template-columns: minmax(0, 1fr); }
	.sp-comment-list .children { margin-left: 12px; padding-left: 8px; }
	.sp-comment__body { padding: 10px; gap: 10px; }
	.sp-comment__time { margin-left: 0; width: 100%; }
}
