/*
Theme Name:   EarnSocials
Theme URI:    https://earnsocials.com
Author:       EarnSocials
Description:  Fast, clean blog + Quora-style Q&A theme in Bangla, built for readability and Google AdSense. Works with GamiPress points and the EarnSocials Core plugin.
Version:      1.0.1
Requires at least: 6.0
Requires PHP: 7.4
License:      GPL-2.0-or-later
Text Domain:  earnsocials
*/

:root {
	--es-primary: #5b4fe9;
	--es-primary-dark: color-mix(in srgb, var(--es-primary) 80%, #000);
	--es-primary-soft: color-mix(in srgb, var(--es-primary) 10%, #fff);
	--es-gold: #f59e0b;
	--es-green: #10b981;
	--es-text: #1f2333;
	--es-muted: #6b7085;
	--es-line: #e7e8f0;
	--es-bg: #f6f7fb;
	--es-card: #fff;
	--es-radius: 14px;
	--es-shadow: 0 1px 2px rgba(20, 22, 60, .04), 0 6px 20px rgba(20, 22, 60, .06);
	--es-font: "Hind Siliguri", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--es-bg); color: var(--es-text); font: 16px/1.7 var(--es-font); }
img, video, iframe { max-width: 100%; height: auto; }
a { color: var(--es-primary); text-decoration: none; }
a:hover { color: var(--es-primary-dark); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .6em; font-weight: 700; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--es-primary) 45%, transparent); outline-offset: 2px; border-radius: 6px; }

.screen-reader-text, .skip-link:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: var(--es-shadow); }

.es-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.es-narrow { max-width: 820px; }
.es-main { min-height: 60vh; padding-bottom: 48px; }

/* ---------- Buttons & chips ---------- */
.es-btn, .comment-form .submit, .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px;
	padding: 10px 20px; border: 0; border-radius: 10px; cursor: pointer;
	background: var(--es-primary); color: #fff !important; font: 600 15px/1.2 var(--es-font);
	transition: background .15s, transform .15s, box-shadow .15s;
}
.es-btn:hover, .comment-form .submit:hover { background: var(--es-primary-dark); transform: translateY(-1px); box-shadow: 0 6px 16px color-mix(in srgb, var(--es-primary) 30%, transparent); }
.es-btn-sm { padding: 8px 14px; font-size: 14px; }
.es-btn-lg { padding: 14px 28px; font-size: 17px; }
.es-btn-outline { background: transparent; color: var(--es-primary) !important; box-shadow: inset 0 0 0 1.5px var(--es-primary); }
.es-btn-outline:hover { background: var(--es-primary-soft); box-shadow: inset 0 0 0 1.5px var(--es-primary); }
.es-btn-light { background: #fff; color: var(--es-primary) !important; }
.es-btn-light:hover { background: #f0efff; }
.es-btn-ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.es-btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.es-link { font-weight: 600; color: var(--es-text); }

.es-chip { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--es-primary-soft); color: var(--es-primary); font-size: 13px; font-weight: 600; line-height: 1.8; }
.es-chip:hover, .es-chip.is-active { background: var(--es-primary); color: #fff; }

/* ---------- Header ---------- */
.es-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(10px); border-bottom: 1px solid var(--es-line); }
body.admin-bar .es-header { top: 32px; }
.es-header-inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.es-brand .custom-logo { max-height: 42px; width: auto; display: block; }
.es-logo-text { display: inline-flex; align-items: center; gap: 8px; font: 700 21px/1 Inter, var(--es-font); color: var(--es-text); letter-spacing: -.3px; }
.es-logo-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--es-primary), #8b5cf6); color: #fff; font-size: 18px; }

.es-nav { flex: 1; }
.es-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.es-nav li { position: relative; }
.es-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--es-text); font-weight: 600; }
.es-nav a:hover, .es-nav .current-menu-item > a, .es-nav .current_page_item > a { background: var(--es-primary-soft); color: var(--es-primary); }
.es-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; padding: 8px; background: #fff; border-radius: 12px; box-shadow: var(--es-shadow); border: 1px solid var(--es-line); }
.es-nav li:hover > .sub-menu, .es-nav li:focus-within > .sub-menu { display: flex; }

.es-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.es-icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--es-text); cursor: pointer; }
.es-icon-btn:hover { background: var(--es-bg); }
.es-menu-btn { display: none; }
.es-points { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 99px; background: #fff6df; color: #8a5a00; font-size: 14px; white-space: nowrap; }
.es-points:hover { background: #ffedbd; color: #8a5a00; }
.es-user { position: relative; }
.es-user-btn { padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.es-user, .es-user-btn, .es-points, .es-icon-btn { flex: none; }
.es-user-btn img { display: block; width: 34px; height: 34px; border-radius: 50%; }
.es-user-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 8px; background: #fff; border: 1px solid var(--es-line); border-radius: 12px; box-shadow: var(--es-shadow); display: flex; flex-direction: column; }
.es-user-menu[hidden] { display: none; }
.es-user-menu strong { padding: 8px 12px; border-bottom: 1px solid var(--es-line); margin-bottom: 4px; }
.es-user-menu a { padding: 8px 12px; border-radius: 8px; color: var(--es-text); }
.es-user-menu a:hover { background: var(--es-bg); }
.es-search-panel { border-top: 1px solid var(--es-line); padding: 14px 0; background: #fff; }

.es-searchform { display: flex; gap: 8px; }
.es-searchform input { flex: 1; min-width: 0; }

/* ---------- Forms ---------- */
input[type=text], input[type=search], input[type=email], input[type=url], input[type=password], input[type=number], input[type=tel], textarea, select {
	width: 100%; padding: 11px 14px; border: 1.5px solid var(--es-line); border-radius: 10px; background: #fff;
	font: 16px/1.5 var(--es-font); color: var(--es-text); transition: border-color .15s, box-shadow .15s;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--es-primary); box-shadow: 0 0 0 4px var(--es-primary-soft); }

/* ---------- Hero ---------- */
.es-hero { position: relative; overflow: hidden; padding: 72px 0 84px; color: #fff; text-align: center;
	background: radial-gradient(1200px 400px at 10% -10%, rgba(255,255,255,.18), transparent 60%), linear-gradient(135deg, var(--es-primary) 0%, #7c3aed 55%, #c026d3 100%); }
.es-hero::after { content: ""; position: absolute; inset: auto -10% -60px; height: 120px; background: var(--es-bg); border-radius: 50% 50% 0 0; }
.es-hero h1 { font-size: clamp(28px, 5vw, 46px); max-width: 820px; margin: 0 auto .4em; }
.es-hero p { font-size: clamp(16px, 2.2vw, 19px); max-width: 680px; margin: 0 auto 28px; opacity: .92; }
.es-hero-search { max-width: 620px; margin: 0 auto 20px; padding: 6px; background: #fff; border-radius: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.es-hero-search input { border: 0; box-shadow: none !important; }
.es-hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Sections ---------- */
.es-section { margin-top: 40px; }
.es-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.es-section-head h2 { font-size: 24px; margin: 0; }
.es-section-head a { font-weight: 600; white-space: nowrap; }

/* ---------- Post cards ---------- */
.es-home-posts { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.es-home-posts .es-card-big { grid-column: span 2; grid-row: span 2; }
.es-grid { display: grid; gap: 22px; grid-template-columns: repeat(2, 1fr); }
.es-grid-3 { grid-template-columns: repeat(3, 1fr); }
.es-grid-wide { grid-column: 1 / -1; }

.es-card { display: flex; flex-direction: column; background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.es-card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,22,60,.05), 0 14px 32px rgba(20,22,60,.10); }
.es-card-img { display: block; aspect-ratio: 16 / 9; background: var(--es-primary-soft); overflow: hidden; }
.es-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.es-card:hover .es-card-img img { transform: scale(1.04); }
.es-card-placeholder { display: grid; place-items: center; height: 100%; font: 700 54px/1 var(--es-font); color: var(--es-primary); opacity: .35; }
.es-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.es-card-body .es-chip { align-self: flex-start; }
.es-card-title { font-size: 18px; margin: 0; }
.es-card-title a { color: var(--es-text); }
.es-card-title a:hover { color: var(--es-primary); }
.es-card-big .es-card-img { aspect-ratio: 16 / 8.5; }
.es-card-big .es-card-title { font-size: clamp(20px, 2.6vw, 28px); }
.es-card-excerpt { color: var(--es-muted); margin: 0; }
.es-card-meta { margin-top: auto; display: flex; gap: 14px; color: var(--es-muted); font-size: 13.5px; }

/* ---------- Layout with sidebar ---------- */
.es-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.es-sidebar { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.widget, .es-widget-cta, .es-how { background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: 20px; }
.widget-title { font-size: 17px; margin-bottom: 12px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px dashed var(--es-line); }
.widget li:last-child { border: 0; }
.widget li a { color: var(--es-text); }
.widget li a:hover { color: var(--es-primary); }
.es-widget-cta { background: linear-gradient(135deg, var(--es-primary), #8b5cf6); color: #fff; }
.es-widget-cta h3 { margin-bottom: 4px; }
.es-widget-cta p { opacity: .9; margin: 0 0 14px; }
.es-widget-cta .es-btn { background: #fff; color: var(--es-primary) !important; }

/* ---------- Page headers & breadcrumbs ---------- */
.es-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 14px; padding: 0; font-size: 14px; color: var(--es-muted); }
.es-breadcrumbs li + li::before { content: "›"; margin-right: 6px; opacity: .6; }
.es-breadcrumbs a { color: var(--es-muted); }
.es-breadcrumbs a:hover { color: var(--es-primary); }
.es-page-head { margin-bottom: 26px; }
.es-page-head h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; }
.es-page-intro { color: var(--es-muted); margin: 0; }
.es-page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Article ---------- */
.es-article { background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: clamp(20px, 4vw, 44px); }
.es-article-head h1 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -.2px; }
.es-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; color: var(--es-muted); font-size: 14.5px; }
.es-meta img { border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.es-meta a { color: var(--es-text); font-weight: 600; }
.es-meta .es-chip { color: var(--es-primary); }
.es-article-img { margin: 26px 0 0; border-radius: 12px; overflow: hidden; }
.es-article-img img { width: 100%; display: block; }

.es-prose { font-size: 18px; line-height: 1.85; margin-top: 24px; overflow-wrap: break-word; }
.es-prose > * { margin-top: 0; margin-bottom: 1.15em; }
.es-prose h2 { font-size: 26px; margin-top: 1.7em; scroll-margin-top: 90px; }
.es-prose h3 { font-size: 21px; margin-top: 1.4em; scroll-margin-top: 90px; }
.es-prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.es-prose img { border-radius: 10px; }
.es-prose blockquote { margin-left: 0; padding: 14px 20px; border-left: 4px solid var(--es-primary); background: var(--es-primary-soft); border-radius: 0 10px 10px 0; }
.es-prose table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.es-prose th, .es-prose td { border: 1px solid var(--es-line); padding: 10px 12px; text-align: left; }
.es-prose th { background: var(--es-bg); }
.es-prose ul, .es-prose ol { padding-left: 1.4em; }
.es-prose li { margin-bottom: .4em; }
.es-prose pre { background: #1e1f2e; color: #e8e8f0; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: 14px; }
.es-prose code { background: var(--es-bg); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.es-prose pre code { background: none; padding: 0; }

.es-toc { margin: 0 0 1.6em; padding: 16px 22px; background: var(--es-bg); border: 1px solid var(--es-line); border-radius: 12px; font-size: 16px; }
.es-toc summary { cursor: pointer; font-weight: 700; }
.es-toc ol { margin: 10px 0 0; padding-left: 1.3em; }
.es-toc a { text-decoration: none; color: var(--es-text); }
.es-toc a:hover { color: var(--es-primary); }

.es-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.es-tags a { padding: 3px 12px; border-radius: 99px; background: var(--es-bg); color: var(--es-muted); font-size: 14px; }
.es-tags a::before { content: "#"; }
.es-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--es-line); }
.es-share span { font-weight: 600; margin-right: 4px; }
.es-share a { padding: 6px 14px; border-radius: 8px; background: var(--es-bg); color: var(--es-text); font-size: 14px; font-weight: 600; }
.es-share a:hover { background: var(--es-primary); color: #fff; }
.es-author-box { display: flex; gap: 16px; margin-top: 26px; padding: 20px; background: var(--es-bg); border-radius: 12px; }
.es-author-box img { border-radius: 50%; flex: none; }
.es-author-box span { display: block; color: var(--es-muted); font-size: 13px; }
.es-author-box strong a { color: var(--es-text); font-size: 18px; }
.es-author-box p { margin: 4px 0 0; color: var(--es-muted); }
.es-related { margin-top: 36px; }
.es-related h2 { font-size: 22px; }
.es-related .es-card-title { font-size: 16px; }

/* ---------- Ads ---------- */
.es-ad { margin: 26px 0; text-align: center; min-height: 120px; }
.es-ad-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #a3a6b6; margin-bottom: 4px; }
.es-sidebar .es-ad { margin: 0; min-height: 250px; }

/* ---------- Comments ---------- */
.es-comments, .es-answers { margin-top: 36px; }
.es-comment-list, .es-answer-list { list-style: none; margin: 0 0 24px; padding: 0; }
.es-comment-list .comment { padding: 16px 0; border-bottom: 1px solid var(--es-line); }
.es-comment-list .children { list-style: none; padding-left: 28px; }
.es-comment-list .avatar { border-radius: 50%; float: left; margin-right: 12px; }
.es-comment-list .comment-meta { font-size: 14px; color: var(--es-muted); }
.es-comment-list .comment-content { clear: both; padding-top: 6px; }
.comment-form p { margin: 0 0 14px; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; }

/* ---------- Q&A ---------- */
.es-q-list { display: flex; flex-direction: column; gap: 12px; }
.es-q-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); transition: box-shadow .2s; }
.es-q-row:hover { box-shadow: 0 2px 4px rgba(20,22,60,.05), 0 10px 26px rgba(20,22,60,.09); }
.es-q-count { flex: none; width: 64px; padding: 8px 0; border-radius: 10px; text-align: center; background: var(--es-bg); color: var(--es-muted); line-height: 1.2; }
.es-q-count strong { display: block; font-size: 20px; color: var(--es-text); }
.es-q-count span { font-size: 12px; }
.es-q-count.has-answers { background: var(--es-primary-soft); }
.es-q-count.has-answers strong { color: var(--es-primary); }
.es-q-count.is-solved { background: var(--es-green); color: #fff; }
.es-q-count.is-solved strong { color: #fff; }
.es-q-main { min-width: 0; }
.es-q-title { font-size: 17.5px; margin: 0 0 6px; }
.es-q-title a { color: var(--es-text); }
.es-q-title a:hover { color: var(--es-primary); }
.es-q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13.5px; color: var(--es-muted); }
.es-q-meta img { border-radius: 50%; vertical-align: middle; margin-right: 3px; }
.es-q-meta a { color: var(--es-text); font-weight: 600; }
.es-q-meta .es-chip { color: var(--es-primary); }
.es-solved { color: var(--es-green); font-weight: 700; font-size: 13.5px; }

.es-tabs { display: flex; gap: 4px; margin-bottom: 14px; border-bottom: 2px solid var(--es-line); }
.es-tabs a { padding: 10px 16px; margin-bottom: -2px; color: var(--es-muted); font-weight: 600; border-bottom: 2px solid transparent; }
.es-tabs a.is-active { color: var(--es-primary); border-color: var(--es-primary); }
.es-topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }

.es-question { background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: clamp(20px, 4vw, 34px); }
.es-q-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.es-question h1 { font-size: clamp(23px, 3.5vw, 31px); }
.es-question .es-prose { font-size: 17px; margin-top: 16px; }
.es-q-actions { display: flex; gap: 10px; margin-top: 20px; }

.es-answers-title { font-size: 21px; }
.es-answer { display: flex; gap: 16px; padding: 22px; margin-bottom: 14px; background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); border: 2px solid transparent; }
.es-answer.is-best { border-color: var(--es-green); }
.es-vote { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; width: 44px; }
.es-vote.is-busy { opacity: .5; pointer-events: none; }
.es-vote-btn { width: 40px; height: 34px; border: 1.5px solid var(--es-line); border-radius: 10px; background: #fff; color: var(--es-muted); cursor: pointer; font-size: 14px; }
.es-vote-btn:hover { border-color: var(--es-primary); color: var(--es-primary); }
.es-vote-btn.is-on { background: var(--es-primary); border-color: var(--es-primary); color: #fff; }
.es-vote-score { font-weight: 700; font-size: 18px; padding: 2px 0; }
.es-answer-body { flex: 1; min-width: 0; }
.es-best-badge { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: 99px; background: var(--es-green); color: #fff; font-size: 13px; font-weight: 700; }
.es-answer-author { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; line-height: 1.3; }
.es-answer-author img { border-radius: 50%; }
.es-answer-author small { display: block; color: var(--es-muted); }
.es-answer-content { font-size: 17px; overflow-wrap: break-word; }
.es-answer-content p { margin: 0 0 1em; }
.es-pick-best { margin-top: 6px; padding: 6px 14px; border: 1.5px solid var(--es-green); border-radius: 8px; background: #fff; color: var(--es-green); font: 600 14px var(--es-font); cursor: pointer; }
.es-pick-best:hover { background: var(--es-green); color: #fff; }
.es-answer-form { padding: 24px; background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); scroll-margin-top: 90px; }
.es-counter { display: block; margin-top: 6px; color: #d97706; }
.es-counter.is-ok { color: var(--es-green); }
.es-note { font-size: 14px; color: var(--es-muted); }

.es-ask { background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); padding: clamp(20px, 4vw, 40px); }
.es-form { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.es-form label > span { display: block; font-weight: 700; margin-bottom: 6px; }
.es-form em { color: #e11d48; font-style: normal; }
.es-form small { display: block; margin-top: 5px; color: var(--es-muted); }
.es-form .es-btn { align-self: flex-start; }
.es-tips { padding: 14px 18px; background: var(--es-bg); border-radius: 10px; font-size: 15px; }
.es-tips ul { margin: 6px 0 0; padding-left: 1.2em; }
.es-alert { margin-top: 16px; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.es-alert.is-ok { background: #e6f9f1; color: #046c4e; }
.es-alert.is-error { background: #fdecef; color: #9f1239; }

/* ---------- Home extras ---------- */
.es-home-split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start; }
.es-topics { display: flex; flex-wrap: wrap; gap: 10px; }
.es-topic { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--es-card); border-radius: 10px; box-shadow: var(--es-shadow); color: var(--es-text); font-weight: 600; }
.es-topic span { padding: 0 8px; border-radius: 99px; background: var(--es-bg); color: var(--es-muted); font-size: 12px; }
.es-topic:hover { color: var(--es-primary); }
.es-how { margin-top: 20px; }
.es-how h3 { font-size: 17px; }
.es-how ul { list-style: none; margin: 0; padding: 0; }
.es-how li { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.es-how li span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff6df; }
.es-how strong { margin-left: auto; color: #b45309; }

.es-empty { padding: 36px 20px; text-align: center; background: var(--es-card); border-radius: var(--es-radius); box-shadow: var(--es-shadow); color: var(--es-muted); }
.es-empty .es-searchform { max-width: 460px; margin: 16px auto 0; }

/* ---------- Pagination ---------- */
.nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 32px; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px; border-radius: 10px; background: var(--es-card); box-shadow: var(--es-shadow); color: var(--es-text); font-weight: 600; }
.page-numbers.current, .page-numbers:hover { background: var(--es-primary); color: #fff; }
.page-numbers.dots { background: none; box-shadow: none; }

/* ---------- 404 ---------- */
.es-404 { text-align: center; padding-top: 50px; }
.es-404-code { font: 800 110px/1 Inter, sans-serif; background: linear-gradient(135deg, var(--es-primary), #c026d3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.es-404 .es-searchform { max-width: 460px; margin: 20px auto; }

/* ---------- Footer ---------- */
.es-footer { background: #151628; color: #b7b9cc; padding: 52px 0 24px; font-size: 15px; }
.es-footer a { color: #d9dbea; }
.es-footer a:hover { color: #fff; }
.es-footer .es-logo-text { color: #fff; }
.es-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.es-footer .widget { background: none; box-shadow: none; padding: 0; }
.es-footer .widget-title { color: #fff; }
.es-footer .widget li { border-color: rgba(255,255,255,.08); }
.es-footer .widget li a { color: #d9dbea; }
.es-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; }
.es-footer-menu { list-style: none; display: flex; flex-wrap: wrap; gap: 18px; margin: 0; padding: 0; }

/* ---------- Toast ---------- */
.es-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 999; padding: 12px 20px; border-radius: 10px; background: #1f2333; color: #fff; box-shadow: var(--es-shadow); animation: es-pop .2s ease-out; }
@keyframes es-pop { from { opacity: 0; transform: translate(-50%, 10px); } }

/* ---------- WordPress core classes ---------- */
.alignwide { margin-left: -40px; margin-right: -40px; max-width: calc(100% + 80px); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.wp-caption-text, figcaption { font-size: 14px; color: var(--es-muted); text-align: center; margin-top: 6px; }
.sticky .es-card-title::before { content: "📌 "; }
.bypostauthor > article .fn::after { content: " · লেখক"; color: var(--es-primary); font-size: 12px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.es-layout, .es-home-split { grid-template-columns: 1fr; }
	.es-sidebar { position: static; }
	.es-home-posts { grid-template-columns: repeat(2, 1fr); }
	.es-footer-grid { grid-template-columns: 1fr 1fr; }
	.alignwide { margin-left: 0; margin-right: 0; max-width: 100%; }
}

@media (max-width: 860px) {
	.es-menu-btn { display: grid; }
	.es-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; padding: 10px 16px 16px; background: #fff; border-bottom: 1px solid var(--es-line); box-shadow: 0 12px 24px rgba(20,22,60,.08); }
	.es-nav.is-open { display: block; }
	.es-nav ul { flex-direction: column; }
	.es-nav .sub-menu { position: static; display: flex; box-shadow: none; border: 0; padding: 0 0 0 14px; }
}

@media (max-width: 640px) {
	body { font-size: 15.5px; }
	.es-hide-sm { display: none !important; }
	.es-header-inner { gap: 8px; height: 60px; }
	.es-nav { top: 60px; }
	.es-logo-text { font-size: 18px; }
	.es-home-posts, .es-grid, .es-grid-3 { grid-template-columns: 1fr; }
	.es-home-posts .es-card-big { grid-column: auto; grid-row: auto; }
	.es-hero { padding: 48px 0 70px; }
	.es-prose { font-size: 17px; }
	.es-answer { padding: 16px; gap: 10px; }
	.es-vote { width: 36px; }
	.es-vote-btn { width: 34px; height: 30px; }
	.es-q-row { padding: 14px; gap: 12px; }
	.es-q-count { width: 54px; }
	.es-footer-grid { grid-template-columns: 1fr; }
	.es-searchform .es-btn { padding: 10px 14px; }
}

@media (max-width: 420px) {
	.es-header-inner, .es-actions { gap: 4px; }
	.es-logo-text { font-size: 16px; gap: 6px; }
	.es-logo-mark { width: 30px; height: 30px; font-size: 16px; }
	.es-icon-btn { width: 36px; height: 36px; }
	.es-points { padding: 5px 9px; font-size: 13px; }
	.es-user-btn img { width: 30px; height: 30px; }
}

@media (max-width: 782px) {
	body.admin-bar .es-header { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .es-header { top: 0; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
