/* ==========================================================================
   Qalam — main stylesheet (v1.2)
   Logical properties (inline-start/end) keep it working in LTR and RTL.
   Light/dark: tokens below switch on <html data-theme="dark">.
   ========================================================================== */

:root {
	--q-accent: #0f5e4b;
	--q-dark: #0b2a24;
	--q-gold: #c8a24a;

	--q-bg: #f5f3ee;
	--q-surface: #ffffff;
	--q-surface-2: #f8f6f1;
	--q-ink: #1b1f1e;
	--q-muted: #5f6b67;
	--q-line: #e3dfd6;
	--q-link: var(--q-accent);
	--q-header: var(--q-surface);
	--q-footer: var(--q-dark);
	--q-shadow: 0 1px 2px rgba(16, 32, 28, .06), 0 4px 16px rgba(16, 32, 28, .06);
	--q-shadow-lg: 0 10px 30px rgba(16, 32, 28, .14);

	--q-radius: 12px;
	--q-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--q-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
	--q-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
	--q-hindi: "Noto Sans Devanagari", "Mangal", sans-serif;
	--q-wrap: 1200px;
	--q-article-scale: 1;
	--q-wa: #25d366;
	color-scheme: light;
}

:root[data-theme="dark"] {
	/* Dark mode is tinted by the active palette's dark color, so each color theme has its own dark look. */
	--q-bg: color-mix(in srgb, var(--q-dark) 42%, #060708);
	--q-surface: color-mix(in srgb, var(--q-dark) 52%, #111315);
	--q-surface-2: color-mix(in srgb, var(--q-dark) 55%, #191c1e);
	--q-ink: #e8ecea;
	--q-muted: #a2aba8;
	--q-line: color-mix(in srgb, var(--q-dark) 45%, #2c3134);
	--q-link: color-mix(in srgb, var(--q-accent) 45%, #ffffff);
	--q-header: color-mix(in srgb, var(--q-dark) 50%, #0d0f10);
	--q-footer: color-mix(in srgb, var(--q-dark) 60%, #000000);
	--q-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 4px 16px rgba(0, 0, 0, .25);
	--q-shadow-lg: 0 10px 30px rgba(0, 0, 0, .45);
	color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--q-bg);
	color: var(--q-ink);
	font: 400 16px/1.65 var(--q-font);
	-webkit-font-smoothing: antialiased;
	transition: background-color .25s, color .25s;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--q-link); }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--q-gold); outline-offset: 2px; }
.q-icon { flex: none; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto;
	inset-block-start: 8px; inset-inline-start: 8px;
	z-index: 100; padding: 10px 16px;
	background: var(--q-surface); color: var(--q-ink);
}

.q-wrap { max-width: var(--q-wrap); margin-inline: auto; padding-inline: 20px; }

/* ---------- Language handling ---------- */
[lang="ur"],
.lang-ur .q-card-title,
.lang-ur .q-card-excerpt { font-family: var(--q-urdu); direction: rtl; text-align: right; }
[lang="hi"] { font-family: var(--q-hindi); }
[lang="ur"] { line-height: 2.1; }
.q-card-title[lang="ur"] { line-height: 1.95; font-weight: 600; }
.q-article-body[lang="ur"] { font-size: calc(1.22rem * var(--q-article-scale)); line-height: 2.35; }
.q-article-body[lang="ur"] p { margin-block: 0 1.1em; }
.q-article-head[lang="ur"] .q-article-title { font-family: var(--q-urdu); line-height: 1.9; font-weight: 700; }
.q-article-head[lang="hi"] .q-article-title,
.q-card-title[lang="hi"] { font-family: var(--q-hindi); }
.q-article-body[lang="hi"] { font-size: calc(1.1rem * var(--q-article-scale)); line-height: 1.95; }

/* ---------- Reading progress ---------- */
.q-progress { position: fixed; inset-inline: 0; top: 0; height: 3px; z-index: 60; pointer-events: none; }
.admin-bar .q-progress { top: 32px; }
.q-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--q-gold), var(--q-accent)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .q-progress span { transform-origin: right; }

/* ---------- Top bar ---------- */
.q-topbar { background: var(--q-footer); color: rgba(255, 255, 255, .78); font-size: 13px; }
.q-topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.q-topbar-start { display: flex; align-items: center; gap: 22px; min-width: 0; }
.q-topnav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.q-topnav a:hover { color: #fff; }

.q-social { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.q-social a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: inherit; transition: background .15s, color .15s, transform .15s; }
.q-social a:hover { color: #fff; transform: translateY(-1px); }
.q-social--top a:hover,
.q-social--footer a:hover { background: var(--q-accent); }
.q-social a.q-social-whatsapp:hover { background: var(--q-wa); }
.q-social--footer { margin-top: 18px; }
.q-social--footer a { width: 38px; height: 38px; background: rgba(255, 255, 255, .08); }

/* ---------- Header ---------- */
.q-header { background: var(--q-header); border-block-end: 1px solid var(--q-line); transition: background-color .25s; }
.q-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 20px; }
.q-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.q-brand.has-tagline .q-tagline { padding-inline-start: 18px; border-inline-start: 2px solid var(--q-line); }
.q-site-title { display: inline-flex; align-items: center; gap: 10px; font: 700 clamp(24px, 3.4vw, 36px)/1.1 var(--q-serif); letter-spacing: -.01em; color: var(--q-ink); }
.q-site-title:hover { color: var(--q-ink); }
.q-site-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(135deg, var(--q-accent), var(--q-dark)); color: var(--q-gold); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.q-tagline { margin: 0; max-width: 340px; color: var(--q-muted); font-size: 14px; line-height: 1.45; }
.custom-logo-link { display: block; flex: none; }
.custom-logo { max-height: 64px; width: auto; }
[data-theme="dark"] .custom-logo { filter: drop-shadow(0 0 1px rgba(255, 255, 255, .35)); }

.q-header-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.q-icon-btn,
.q-mode-toggle {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
	border: 1px solid var(--q-line); background: var(--q-surface-2); color: var(--q-ink);
	transition: background .15s, transform .25s;
}
.q-mode-toggle:hover { transform: rotate(-15deg); border-color: var(--q-accent); }
.q-icon-btn:hover { border-color: var(--q-accent); color: var(--q-link); }
.q-icon-btn[aria-expanded="true"] { border-color: var(--q-accent); color: var(--q-link); }
.q-mode-sun { display: none; }
[data-theme="dark"] .q-mode-sun { display: inline-flex; color: var(--q-gold); }
[data-theme="dark"] .q-mode-moon { display: none; }
.q-mode-moon { display: inline-flex; }
.q-mode-sun,
.q-mode-moon { line-height: 0; }

.q-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 20px; border-radius: 999px;
	background: var(--q-accent); color: #fff;
	font-weight: 600; font-size: 14px; line-height: 1.2; border: 0;
	box-shadow: 0 4px 14px color-mix(in srgb, var(--q-accent) 35%, transparent);
	transition: filter .15s, transform .15s, box-shadow .15s;
}
.q-btn:hover { color: #fff; filter: brightness(1.1); transform: translateY(-1px); }
.q-btn--ghost { background: transparent; color: var(--q-link); border: 1.5px solid currentColor; box-shadow: none; }
.q-btn--ghost:hover { background: var(--q-accent); border-color: var(--q-accent); color: #fff; }
.q-btn--lg { padding: 14px 26px; font-size: 15px; }
.q-btn--write { background: linear-gradient(135deg, var(--q-accent), color-mix(in srgb, var(--q-accent) 70%, var(--q-gold))); }

/* ---------- Color theme selector ---------- */
.q-palette { position: relative; }
.q-palette-menu {
	position: absolute; top: calc(100% + 10px); inset-inline-end: -54px; z-index: 80; width: 280px;
	padding: 16px; border-radius: 14px; background: var(--q-surface); border: 1px solid var(--q-line); box-shadow: var(--q-shadow-lg);
	animation: q-pop .18s ease-out;
}
.q-palette-menu[hidden] { display: none; }
.q-palette-title { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--q-muted); }
.q-palette-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 6px; }
.q-swatch { display: grid; justify-items: center; gap: 5px; padding: 4px 0; border: 0; background: none; border-radius: 10px; }
.q-swatch:hover { background: var(--q-surface-2); }
.q-swatch-dot {
	width: 34px; height: 34px; border-radius: 50%;
	background: linear-gradient(135deg, var(--a) 0 58%, var(--g) 58% 100%);
	box-shadow: 0 0 0 2px var(--q-surface), 0 0 0 3px var(--q-line);
	transition: box-shadow .15s, transform .15s;
}
.q-swatch:hover .q-swatch-dot { transform: scale(1.06); }
.q-swatch[aria-pressed="true"] .q-swatch-dot { box-shadow: 0 0 0 2px var(--q-surface), 0 0 0 4px var(--q-ink); }
.q-swatch-name { font-size: 11px; font-weight: 600; color: var(--q-muted); line-height: 1.2; text-align: center; }
.q-swatch[aria-pressed="true"] .q-swatch-name { color: var(--q-ink); }
.q-palette-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: var(--q-surface-2); }
.q-mode-pick { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 6px; border: 0; border-radius: 999px; background: none; font-size: 13px; font-weight: 600; color: var(--q-muted); }
.q-mode-pick[aria-pressed="true"] { background: var(--q-surface); color: var(--q-ink); box-shadow: var(--q-shadow); }

/* ---------- Admin-only setup hints ---------- */
.q-admin-chip {
	display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
	border: 1px dashed rgba(255, 255, 255, .45); color: rgba(255, 255, 255, .85); font-size: 12px; font-weight: 600;
}
.q-admin-chip:hover { color: #fff; border-color: #fff; }
.q-admin-chip--light { border-color: var(--q-gold); color: var(--q-link); background: color-mix(in srgb, var(--q-gold) 8%, transparent); }
.q-admin-chip--light:hover { color: var(--q-link); border-style: solid; }
.q-footer .q-admin-chip--light { color: var(--q-gold); }

/* ---------- Nav bar ---------- */
.q-navbar { position: sticky; top: 0; z-index: 40; background: var(--q-accent); color: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.admin-bar .q-navbar { top: 32px; }
.q-navbar-inner { display: flex; align-items: center; gap: 8px; min-height: 52px; }
.q-primary { flex: 1; }
.q-menu { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.q-menu > li { position: relative; }
.q-menu a { display: block; padding: 15px 14px; font-weight: 600; font-size: 15px; color: #fff; }
.q-menu a:hover,
.q-menu .current-menu-item > a,
.q-menu .current-cat > a { background: rgba(0, 0, 0, .16); color: #fff; }
.q-menu .sub-menu,
.q-menu .children {
	position: absolute; inset-inline-start: 0; top: 100%;
	min-width: 220px; list-style: none; margin: 0; padding: 6px 0;
	background: var(--q-surface); color: var(--q-ink);
	border-radius: 0 0 var(--q-radius) var(--q-radius); box-shadow: var(--q-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s;
}
.q-menu li:hover > .sub-menu,
.q-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.q-menu .sub-menu a { color: var(--q-ink); padding: 9px 16px; font-weight: 500; }
.q-menu .sub-menu a:hover { background: var(--q-surface-2); color: var(--q-link); }

.q-menu-toggle,
.q-search-toggle { background: none; border: 0; color: #fff; padding: 12px; border-radius: 8px; display: inline-flex; align-items: center; gap: 10px; }
.q-menu-toggle { display: none; font-weight: 600; }
.q-search-toggle:hover,
.q-menu-toggle:hover { background: rgba(0, 0, 0, .16); }
.q-burger, .q-burger::before, .q-burger::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: .2s; border-radius: 2px; }
.q-burger::before, .q-burger::after { content: ""; position: absolute; }
.q-burger::before { top: -6px; }
.q-burger::after { top: 6px; }
[aria-expanded="true"] > .q-burger { background: transparent; }
[aria-expanded="true"] > .q-burger::before { top: 0; transform: rotate(45deg); }
[aria-expanded="true"] > .q-burger::after { top: 0; transform: rotate(-45deg); }

.q-search-panel { background: var(--q-footer); padding-block: 16px; }
.q-search-form { display: flex; gap: 8px; max-width: 640px; }
.q-search-form input {
	flex: 1; min-width: 0; padding: 12px 18px; font: inherit;
	border: 1px solid var(--q-line); border-radius: 999px; background: var(--q-surface); color: var(--q-ink);
}
.q-search-form button { padding: 0 22px; border: 0; border-radius: 999px; background: var(--q-gold); color: #1b1f1e; font-weight: 700; }

/* ---------- Ticker ---------- */
.q-ticker { background: var(--q-surface); border-block-end: 1px solid var(--q-line); }
.q-ticker-inner { display: flex; align-items: center; gap: 14px; min-height: 46px; overflow: hidden; }
.q-ticker-label {
	flex: none; display: inline-flex; align-items: center; gap: 8px;
	background: var(--q-dark); color: #fff; font-size: 12px; font-weight: 700;
	letter-spacing: .06em; text-transform: uppercase; padding: 6px 12px; border-radius: 6px;
}
[data-theme="dark"] .q-ticker-label { background: var(--q-accent); }
.q-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--q-gold); animation: q-pulse 1.6s infinite; }
@keyframes q-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.q-ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.q-ticker-list { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: q-scroll var(--q-ticker-speed, 40s) linear infinite; }
.q-ticker-track:hover .q-ticker-list { animation-play-state: paused; }
.q-ticker-list li { padding-inline: 22px; white-space: nowrap; font-weight: 500; font-size: 15px; position: relative; }
.q-ticker-list li[lang="ur"] { font-size: 16px; line-height: 2; }
.q-ticker-list li::after { content: "◆"; position: absolute; inset-inline-end: -5px; color: var(--q-gold); font-size: 8px; top: 50%; transform: translateY(-50%); }
@keyframes q-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .q-ticker-list { animation-name: q-scroll-rtl; }
@keyframes q-scroll-rtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (prefers-reduced-motion: reduce) {
	.q-ticker-list { animation: none; }
	.q-ticker-track { overflow-x: auto; }
	html { scroll-behavior: auto; }
}

/* ---------- Layout ---------- */
.q-content { padding-block: 28px 64px; }
.q-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
.no-sidebar .q-layout { grid-template-columns: minmax(0, 1fr); }
.no-sidebar .q-main { max-width: 860px; margin-inline: auto; width: 100%; }
.q-main--full { max-width: none; }
.q-sidebar-inner { position: sticky; top: 76px; display: grid; gap: 24px; }

/* ---------- Thumbnails & placeholders ---------- */
.q-thumb { display: block; position: relative; overflow: hidden; border-radius: var(--q-radius); background: var(--q-dark); aspect-ratio: 16 / 10; }
.q-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.q-card:hover .q-thumb img { transform: scale(1.04); }
.q-thumb-ph {
	position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	color: rgba(255, 255, 255, .9);
	background:
		radial-gradient(circle at 0 0, transparent 14px, color-mix(in srgb, var(--q-gold) 16%, transparent) 15px, transparent 16px) 0 0 / 32px 32px,
		radial-gradient(circle at 100% 100%, transparent 14px, color-mix(in srgb, var(--q-gold) 16%, transparent) 15px, transparent 16px) 0 0 / 32px 32px,
		linear-gradient(135deg, var(--q-accent), var(--q-dark));
}
.q-thumb-ph-mark { font-size: 28px; color: var(--q-gold); }
.q-thumb-ph-label { font-size: 13px; font-weight: 600; letter-spacing: .04em; padding-inline: 10px; text-align: center; }

.q-badge { display: inline-block; background: var(--q-accent); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; padding: 4px 10px; border-radius: 6px; }
.q-badge:hover { color: #fff; background: var(--q-dark); }
.q-card-media { position: relative; }
.q-card-media > .q-badge { position: absolute; inset-block-start: 10px; inset-inline-start: 10px; z-index: 2; }

/* ---------- Cards ---------- */
.q-card-title { margin: 0; font: 700 18px/1.35 var(--q-serif); letter-spacing: -.005em; }
.q-card-title a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .3s; }
.q-card-title a:hover { background-size: 100% 1.5px; }
.q-card-excerpt { margin: 8px 0 0; color: var(--q-muted); font-size: 15px; }
.q-card-excerpt[lang="ur"] { font-size: 15px; line-height: 2; }

.q-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 10px; font-size: 13px; color: var(--q-muted); }
.q-meta > * + *::before { content: "·"; margin-inline-end: 12px; color: var(--q-line); }
.q-meta-avatar { border-radius: 50%; }
.q-meta .q-meta-avatar + .q-meta-author::before { content: none; }
.q-meta-author { font-weight: 600; color: var(--q-ink); }

.q-card--grid { background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.q-card--grid:hover { transform: translateY(-3px); box-shadow: var(--q-shadow-lg); }
.q-card--grid .q-thumb { border-radius: 0; }
.q-card--grid .q-card-body { padding: 16px 18px 18px; }

.q-card--row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 18px; align-items: start; }
.q-card--row .q-card-title { font-size: 20px; }
.q-row-list { display: grid; gap: 22px; }
.q-row-list .q-card--row { padding-block-end: 22px; border-block-end: 1px solid var(--q-line); }
.q-row-list .q-card--row:last-child { border: 0; padding: 0; }
.q-block-list .q-card--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
.q-block-list .q-card--row .q-card-title { font-size: 16px; }
.q-block-list .q-card--row .q-badge { display: none; }

.q-card--overlay { position: relative; height: 100%; border-radius: var(--q-radius); overflow: hidden; color: #fff; }
.q-card--overlay .q-card-media,
.q-card--overlay .q-thumb { height: 100%; aspect-ratio: auto; border-radius: 0; }
.q-card--overlay .q-card-body {
	position: absolute; inset: auto 0 0 0; padding: 50px 18px 16px; pointer-events: none;
	background: linear-gradient(to top, rgba(6, 18, 16, .94), rgba(6, 18, 16, .55) 60%, transparent);
}
.q-card--overlay .q-card-body a { pointer-events: auto; }
.q-card--overlay .q-card-title { font-size: 17px; color: #fff; margin-top: 8px; }
.q-card--overlay .q-card-title a:hover { color: #fff; }
.q-card--overlay .q-meta,
.q-card--overlay .q-meta-author { color: rgba(255, 255, 255, .85); }
.q-card--overlay .q-meta > * + *::before { color: rgba(255, 255, 255, .4); }
.q-card--overlay .q-card-excerpt { color: rgba(255, 255, 255, .85); }
.q-card--overlay .q-thumb-ph { justify-content: flex-start; padding-top: 18%; }
.q-hero-side .q-thumb-ph-label,
.q-block-list .q-thumb-ph-label { display: none; }

/* ---------- Hero ---------- */
.q-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; margin-block-end: 36px; }
.q-hero-main { min-height: 440px; }
.q-hero-main .q-card-title { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.25; }
.q-hero-main .q-card-title[lang="ur"] { line-height: 1.9; }
.q-hero-side { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(212px, 1fr); gap: 14px; }
.q-hero-side .q-meta-read,
.q-hero-side .q-meta-date { display: none; }

/* ---------- Section headings ---------- */
.q-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-end: 18px; border-block-end: 2px solid var(--q-line); }
.q-section-title,
.widget-title { margin: 0; font: 700 19px/1.3 var(--q-serif); }
.q-section-title span,
.widget-title span { display: inline-block; padding-block-end: 10px; margin-block-end: -2px; border-block-end: 3px solid var(--q-accent); }
.q-section-more { font-size: 14px; font-weight: 600; color: var(--q-link); white-space: nowrap; }

/* ---------- Homepage blocks ---------- */
.q-block { margin-block-end: 44px; }
.q-block--grid .q-block-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.q-block--list .q-block-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.q-block-list { display: grid; gap: 16px; align-content: start; }
.q-block-lead .q-card-title { font-size: 22px; }
.q-more-btn { margin-top: 26px; }
.q-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.q-writers-strip { margin-block-end: 44px; padding: 22px; background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); }
.q-writers-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(120px, 1fr); gap: 12px; overflow-x: auto; padding-block-end: 6px; scroll-snap-type: x mandatory; }
.q-writer-chip { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 10px 6px; border-radius: var(--q-radius); scroll-snap-align: start; }
.q-writer-chip:hover { background: var(--q-surface-2); }
.q-writer-chip img { border-radius: 50%; border: 3px solid var(--q-surface); box-shadow: 0 0 0 2px var(--q-gold); background: var(--q-surface-2); }
.q-writer-chip-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.q-writer-chip-count { font-size: 12px; color: var(--q-muted); }

.q-admin-hint { padding: 14px 16px; background: color-mix(in srgb, var(--q-gold) 12%, var(--q-surface)); border: 1px dashed var(--q-gold); border-radius: var(--q-radius); font-size: 14px; }
.q-admin-hint a { color: var(--q-link); font-weight: 600; }

/* ---------- Widgets ---------- */
.widget { background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); padding: 20px; }
.widget-title { margin-block-end: 16px; border-block-end: 2px solid var(--q-line); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding-block: 7px; border-block-end: 1px solid var(--q-line); }
.widget li:last-child { border: 0; }
.widget select,
.widget input { max-width: 100%; }

.q-mini-list { list-style: none; margin: 0; padding: 0; }
.q-mini { display: flex; gap: 14px; align-items: flex-start; }
.q-mini-num { flex: none; font: 700 26px/1 var(--q-serif); color: var(--q-gold); min-width: 22px; }
.q-mini-title { margin: 0; font: 600 15px/1.4 var(--q-serif); }
.q-mini-title[lang="ur"] { font: 600 15px/1.95 var(--q-urdu); }
.q-mini-meta { font-size: 12px; color: var(--q-muted); }

.q-writer-list li { padding: 0; border: 0; }
.q-writer-list a { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 8px; }
.q-writer-list a:hover { background: var(--q-surface-2); }
.q-writer-list img { border-radius: 50%; background: var(--q-surface-2); }
.q-writer-name { flex: 1; font-weight: 600; font-size: 14px; }
.q-writer-count { font-size: 12px; font-weight: 700; background: var(--q-surface-2); color: var(--q-link); padding: 2px 9px; border-radius: 999px; }
.q-widget-more { display: inline-block; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--q-link); }

/* ---------- Breadcrumb & archive headers ---------- */
.q-crumbs { font-size: 13px; color: var(--q-muted); margin-block-end: 18px; }
.q-crumbs .sep { margin-inline: 8px; color: var(--q-line); }
.q-crumbs a:hover { color: var(--q-link); }
.q-archive-head { margin-block-end: 28px; padding: 26px; background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); border-inline-start: 5px solid var(--q-accent); }
.q-archive-title { margin: 0; font: 700 clamp(24px, 3vw, 34px)/1.25 var(--q-serif); }
.q-archive-desc { margin-top: 8px; color: var(--q-muted); }
.q-archive-desc p:last-child { margin-bottom: 0; }

.q-author-hero { display: flex; gap: 22px; align-items: center; margin-block-end: 28px; padding: 26px; background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); }
.q-author-hero img { border-radius: 50%; box-shadow: 0 0 0 4px var(--q-surface-2), 0 0 0 6px var(--q-gold); flex: none; }
.q-author-box-kicker,
.q-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--q-link); }
.q-author-stat { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; background: var(--q-surface-2); padding: 4px 12px; border-radius: 999px; }

/* ---------- Single article ---------- */
.q-article { background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); padding: clamp(20px, 4vw, 44px); }
.q-article-head { margin-block-end: 18px; }
.q-article-title { margin: 12px 0 0; font: 700 clamp(28px, 3.6vw, 42px)/1.2 var(--q-serif); letter-spacing: -.015em; }
.q-article-dek { margin: 12px 0 0; font-size: 18px; color: var(--q-muted); }
.q-article-meta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-block: 14px; border-block: 1px solid var(--q-line); margin-block-end: 24px; }
.q-article-meta-row .q-meta { margin: 0; }

.q-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.q-size { display: inline-flex; align-items: center; border: 1px solid var(--q-line); border-radius: 999px; overflow: hidden; background: var(--q-surface-2); }
.q-size-btn { border: 0; background: none; padding: 6px 12px; font-size: 13px; font-weight: 700; }
.q-size-btn:hover { background: var(--q-accent); color: #fff; }
.q-size-icon { display: inline-flex; color: var(--q-muted); padding-inline: 2px; }
.q-share { display: flex; gap: 6px; }
.q-share-btn {
	display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
	border: 1px solid var(--q-line); background: var(--q-surface); color: var(--q-ink);
	transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.q-share-btn:hover { color: #fff; transform: translateY(-2px); }
.q-c-wa:hover { background: var(--q-wa); border-color: var(--q-wa); }
.q-c-tg:hover { background: #229ed9; border-color: #229ed9; }
.q-c-fb:hover { background: #1877f2; border-color: #1877f2; }
.q-c-x:hover { background: #111; border-color: #111; }
.q-c-copy:hover { background: var(--q-accent); border-color: var(--q-accent); }

.q-article-figure { margin: 0 0 26px; }
.q-article-figure img { border-radius: var(--q-radius); width: 100%; }

.q-article-body { font-size: calc(1.075rem * var(--q-article-scale)); line-height: 1.8; overflow-wrap: break-word; }
.q-article-body > * { margin-block: 0 1.2em; }
.q-article-body h2,
.q-article-body h3,
.q-article-body h4 { font-family: var(--q-serif); line-height: 1.3; margin-block: 1.6em .6em; }
.q-article-body[lang="ur"] h2,
.q-article-body[lang="ur"] h3,
.q-article-body[lang="ur"] h4 { font-family: var(--q-urdu); line-height: 2; }
.q-article-body a { color: var(--q-link); text-decoration: underline; text-underline-offset: 3px; }
.q-article-body blockquote {
	margin-inline: 0; padding: 18px 22px; background: var(--q-surface-2);
	border-inline-start: 4px solid var(--q-gold); border-radius: 0 var(--q-radius) var(--q-radius) 0; font-style: italic;
}
.q-article-body blockquote p:last-child { margin-bottom: 0; }
[dir="rtl"] .q-article-body blockquote,
.q-article-body[dir="rtl"] blockquote { border-radius: var(--q-radius) 0 0 var(--q-radius); font-style: normal; }
.q-article-body img { border-radius: 8px; }
.q-article-body table { width: 100%; border-collapse: collapse; }
.q-article-body th,
.q-article-body td { border: 1px solid var(--q-line); padding: 8px 10px; }
.q-article-body .ayah,
.q-article-body [lang="ar"] { font-family: "Amiri", "Traditional Arabic", var(--q-urdu); font-size: 1.5em; line-height: 2.1; direction: rtl; text-align: center; color: var(--q-link); }

.q-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.q-tags a { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: var(--q-surface-2); }
.q-tags a:hover { background: var(--q-accent); color: #fff; }

.q-author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 30px; padding: 22px; background: var(--q-surface-2); border-radius: var(--q-radius); }
.q-author-box img { border-radius: 50%; flex: none; background: var(--q-surface); }
.q-author-box-name { margin: 2px 0 6px; font: 700 20px/1.3 var(--q-serif); }
.q-author-box-bio { margin: 0 0 8px; color: var(--q-muted); font-size: 15px; }
.q-author-box-link { font-size: 14px; font-weight: 600; color: var(--q-link); }

.post-navigation { margin-top: 30px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.post-navigation a { display: block; height: 100%; padding: 16px; border: 1px solid var(--q-line); border-radius: var(--q-radius); }
.post-navigation a:hover { border-color: var(--q-accent); }
.post-navigation .nav-next { text-align: end; }
.q-nav-kicker { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--q-muted); }
.q-nav-title { display: block; font: 600 16px/1.4 var(--q-serif); margin-top: 4px; }

.q-related,
.q-comments { margin-top: 36px; }
.q-comments { background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); padding: clamp(20px, 3vw, 32px); }
.q-comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.q-comment-list .children { list-style: none; padding-inline-start: 28px; }
.q-comment-list .comment-body { padding-block: 16px; border-block-end: 1px solid var(--q-line); }
.q-comment-list .avatar { border-radius: 50%; float: inline-start; margin-inline-end: 12px; }
.comment-meta { font-size: 13px; color: var(--q-muted); }
.comment-form input:not([type="submit"]):not([type="checkbox"]),
.comment-form textarea,
.q-field input,
.q-field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--q-line); border-radius: 10px;
	font: inherit; background: var(--q-surface-2); color: var(--q-ink); transition: border-color .15s, box-shadow .15s;
}
.comment-form input:focus,
.comment-form textarea:focus,
.q-field input:focus,
.q-field textarea:focus { outline: none; border-color: var(--q-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--q-accent) 20%, transparent); }
.comment-form .submit { padding: 12px 22px; border: 0; border-radius: 999px; background: var(--q-accent); color: #fff; font-weight: 600; cursor: pointer; }

/* ---------- WhatsApp channel CTA ---------- */
.q-channel {
	display: flex; align-items: center; gap: 16px; padding: 18px 20px; margin-top: 30px;
	border-radius: var(--q-radius);
	background: linear-gradient(135deg, color-mix(in srgb, var(--q-wa) 14%, var(--q-surface)), var(--q-surface-2));
	border: 1px solid color-mix(in srgb, var(--q-wa) 35%, var(--q-line));
}
.q-channel-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--q-wa); color: #fff; flex: none; box-shadow: 0 6px 18px color-mix(in srgb, var(--q-wa) 40%, transparent); }
.q-channel-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.q-channel-text strong { font-size: 16px; }
.q-channel-text span { font-size: 14px; color: var(--q-muted); }
.q-channel-btn { flex: none; padding: 10px 18px; border-radius: 999px; background: var(--q-wa); color: #fff; font-weight: 700; font-size: 14px; }
.q-channel-btn:hover { color: #fff; filter: brightness(1.05); }
.q-channel--footer { margin: 0; flex-wrap: wrap; background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .1); }
.q-channel--footer .q-channel-text span { color: rgba(255, 255, 255, .65); }
.q-channel--footer .q-channel-text strong { color: #fff; }
.q-channel--footer .q-channel-btn { width: 100%; text-align: center; }

/* ---------- Social Links widget ---------- */
.q-widget-text { margin: 0 0 12px; font-size: 14px; color: var(--q-muted); }
.q-sw { list-style: none; margin: 0; padding: 0; }
.widget .q-sw li { padding: 0; border: 0; }
.q-sw--buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-sw--buttons .q-sw-link {
	display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px;
	background: var(--q-surface-2); font-size: 13px; font-weight: 600; transition: transform .15s, background .15s, color .15s;
}
.q-sw--buttons .q-sw-link:hover { color: #fff; transform: translateY(-2px); }
.q-sw-icon { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; flex: none; background: var(--q-accent); }
.q-sw-whatsapp .q-sw-icon { background: var(--q-wa); }
.q-sw-telegram .q-sw-icon { background: #229ed9; }
.q-sw-facebook .q-sw-icon { background: #1877f2; }
.q-sw-youtube .q-sw-icon { background: #e62117; }
.q-sw-instagram .q-sw-icon { background: linear-gradient(45deg, #f9a825, #e1306c, #833ab4); }
.q-sw-x .q-sw-icon { background: #111; }
.q-sw--buttons .q-sw-whatsapp:hover { background: var(--q-wa); }
.q-sw--buttons .q-sw-telegram:hover { background: #229ed9; }
.q-sw--buttons .q-sw-facebook:hover { background: #1877f2; }
.q-sw--buttons .q-sw-youtube:hover { background: #e62117; }
.q-sw--buttons .q-sw-instagram:hover { background: #c13584; }
.q-sw--buttons .q-sw-x:hover { background: #111; }
.q-sw--buttons .q-sw-link:hover .q-sw-icon { background: rgba(255, 255, 255, .2); }
.q-sw--icons { display: flex; flex-wrap: wrap; gap: 8px; }
.q-sw--icons .q-sw-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.q-sw--icons .q-sw-icon { width: 40px; height: 40px; transition: transform .15s; }
.q-sw--icons .q-sw-link:hover .q-sw-icon { transform: translateY(-2px); }
.q-footer .q-sw--buttons .q-sw-link { background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); }

/* ---------- CTA widgets (WhatsApp Channel, Write for Us) ---------- */
.q-cta { display: grid; justify-items: start; gap: 6px; padding: 18px; border-radius: var(--q-radius); }
.q-cta-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; color: #fff; margin-block-end: 4px; }
.q-cta-heading { font: 700 17px/1.3 var(--q-serif); }
.q-cta-text { font-size: 14px; color: var(--q-muted); }
.q-cta-btn { margin-top: 8px; padding: 10px 18px; border-radius: 999px; color: #fff; font-weight: 700; font-size: 14px; justify-self: stretch; text-align: center; transition: filter .15s; }
.q-cta-btn:hover { color: #fff; filter: brightness(1.08); }
.q-cta--wa { background: linear-gradient(135deg, color-mix(in srgb, var(--q-wa) 14%, var(--q-surface)), var(--q-surface-2)); border: 1px solid color-mix(in srgb, var(--q-wa) 35%, var(--q-line)); }
.q-cta--wa .q-cta-icon,
.q-cta--wa .q-cta-btn { background: var(--q-wa); }
.q-cta--write { background: linear-gradient(135deg, color-mix(in srgb, var(--q-gold) 14%, var(--q-surface)), var(--q-surface-2)); border: 1px dashed color-mix(in srgb, var(--q-gold) 60%, var(--q-line)); }
.q-cta--write .q-cta-icon { background: linear-gradient(135deg, var(--q-accent), var(--q-dark)); color: var(--q-gold); }
.q-cta--write .q-cta-btn { background: var(--q-accent); }
.widget .q-cta { margin: -4px; }
.q-footer .q-cta { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); }
.q-footer .q-cta-heading { color: #fff; }
.q-footer .q-cta-text { color: rgba(255, 255, 255, .65); }
.q-fwidget + .q-fwidget { margin-top: 16px; }
.q-footer .q-fwidget > ul:not([class]) { list-style: none; margin: 0; padding: 0; }
.q-footer .q-fwidget > ul:not([class]) li { padding: 6px 0; font-size: 14px; }

/* ---------- WordPress block widgets (Search, Archives, Categories…) ---------- */
.widget_block h2,
.widget_block .wp-block-heading,
.widget_block .wp-block-search__label {
	display: block; margin: 0 0 16px; padding-block-end: 10px; border-block-end: 2px solid var(--q-line);
	font: 700 19px/1.3 var(--q-serif); color: var(--q-ink);
}
.widget_block .wp-block-search__inside-wrapper { display: flex; gap: 6px; }
.widget_block .wp-block-search__input { flex: 1; min-width: 0; padding: 10px 14px; border: 1px solid var(--q-line); border-radius: 999px; background: var(--q-surface-2); color: var(--q-ink); font: inherit; }
.widget_block .wp-block-search__button { margin: 0; padding: 0 16px; border: 0; border-radius: 999px; background: var(--q-accent); color: #fff; font-weight: 600; }
.widget_block ul { list-style: none; margin: 0; padding: 0; }
.widget_block .wp-block-latest-comments { padding: 0; }
.q-footer .widget_block h2,
.q-footer .widget_block .wp-block-heading { color: #fff; border-color: rgba(255, 255, 255, .12); font-size: 16px; }
.widget .q-footer-links li { padding: 0; border: 0; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 34px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 10px; border-radius: 10px; background: var(--q-surface); box-shadow: var(--q-shadow); font-weight: 600; }
.page-numbers.current,
a.page-numbers:hover { background: var(--q-accent); color: #fff; }

/* ---------- Writers directory ---------- */
.q-stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.q-stat { background: var(--q-surface-2); border-radius: var(--q-radius); padding: 10px 18px; }
.q-stat strong { display: block; font: 700 26px/1.1 var(--q-serif); color: var(--q-link); }
.q-stat span { font-size: 13px; color: var(--q-muted); }
.q-writers-search { margin-block-end: 20px; }
.q-writers-search input { width: 100%; max-width: 420px; padding: 12px 18px; border: 1px solid var(--q-line); border-radius: 999px; font: inherit; background: var(--q-surface); color: var(--q-ink); }
.q-writers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.q-writer-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 16px; background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); transition: transform .15s, box-shadow .15s; }
.q-writer-card:hover { transform: translateY(-3px); box-shadow: var(--q-shadow-lg); color: inherit; }
.q-writer-card img { border-radius: 50%; box-shadow: 0 0 0 3px var(--q-surface-2), 0 0 0 5px var(--q-gold); background: var(--q-surface-2); }
.q-writer-card-name { font: 700 17px/1.35 var(--q-serif); margin-top: 6px; }
.q-writer-card-bio { font-size: 13px; color: var(--q-muted); }
.q-writer-card-count { font-size: 12px; font-weight: 700; color: var(--q-link); background: var(--q-surface-2); padding: 3px 12px; border-radius: 999px; }

/* ---------- Write for Us ---------- */
.q-hero-panel {
	display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 30px; align-items: center;
	padding: clamp(24px, 4vw, 48px); border-radius: calc(var(--q-radius) + 6px); margin-block-end: 28px;
	background:
		radial-gradient(circle at 100% 0, color-mix(in srgb, var(--q-gold) 22%, transparent), transparent 45%),
		linear-gradient(135deg, var(--q-accent), var(--q-dark));
	color: #fff;
}
.q-hero-panel .q-kicker { color: var(--q-gold); }
.q-hero-panel-title { margin: 10px 0 0; font: 700 clamp(28px, 4vw, 44px)/1.15 var(--q-serif); }
.q-hero-panel-lead { margin: 14px 0 0; font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 560px; }
.q-hero-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.q-hero-panel .q-btn { background: var(--q-gold); color: #1b1f1e; box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.q-hero-panel .q-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.q-hero-panel .q-btn--ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.q-note { font-size: 14px; color: rgba(255, 255, 255, .85); }
.q-stats--panel { margin: 0; justify-content: flex-end; }
.q-stats--panel .q-stat { background: rgba(255, 255, 255, .1); backdrop-filter: blur(4px); min-width: 110px; }
.q-stats--panel .q-stat strong { color: #fff; }
.q-stats--panel .q-stat span { color: rgba(255, 255, 255, .75); }

.q-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0 0 28px; padding: 0; }
.q-steps li { display: grid; gap: 6px; padding: 22px; background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); }
.q-step-num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--q-accent) 14%, var(--q-surface)); color: var(--q-link); font: 700 18px/1 var(--q-serif); margin-block-end: 6px; }
.q-steps strong { font: 700 17px/1.35 var(--q-serif); }
.q-steps span:last-child { font-size: 14px; color: var(--q-muted); }

/* ---------- Contact ---------- */
.q-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px; align-items: start; }
.q-contact-info { padding-top: 8px; }
.q-contact-info .q-hero-panel-title { color: var(--q-ink); }
.q-contact-info .q-article-body { margin-top: 14px; color: var(--q-muted); }
.q-contact-channels { display: grid; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.q-contact-channels a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--q-radius); background: var(--q-surface); box-shadow: var(--q-shadow); font-weight: 600; transition: transform .15s; }
.q-contact-channels a:hover { transform: translateX(3px); color: var(--q-ink); }
[dir="rtl"] .q-contact-channels a:hover { transform: translateX(-3px); }
.q-contact-channels .q-icon { color: var(--q-link); }
.q-contact-channels .q-c-whatsapp .q-icon { color: var(--q-wa); }
.q-form { display: grid; gap: 16px; padding: clamp(20px, 3vw, 32px); background: var(--q-surface); border-radius: var(--q-radius); box-shadow: var(--q-shadow); }
.q-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.q-field { display: grid; gap: 6px; }
.q-field > span { font-size: 14px; font-weight: 600; }
.q-form .q-btn { justify-self: start; }
.q-hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.q-alert { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.q-alert--ok { background: color-mix(in srgb, var(--q-wa) 15%, var(--q-surface)); color: color-mix(in srgb, var(--q-wa) 60%, var(--q-ink)); }
.q-alert--err { background: color-mix(in srgb, #dc2626 12%, var(--q-surface)); color: color-mix(in srgb, #dc2626 70%, var(--q-ink)); }

/* ---------- Empty / 404 ---------- */
.q-empty { text-align: center; padding-block: 40px; }
.q-empty .q-search-form { margin-inline: auto; }
.q-404-num { margin: 0; font: 700 96px/1 var(--q-serif); color: var(--q-gold); }

/* ---------- Footer ---------- */
.q-footer { background: var(--q-footer); color: rgba(255, 255, 255, .72); }
.q-footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; padding-block: 52px 40px; }
.q-footer-brand { display: inline-flex; align-items: center; gap: 10px; font: 700 24px/1.2 var(--q-serif); color: #fff; }
.q-footer-brand:hover { color: #fff; }
.q-footer-logo { max-height: 56px; width: auto; }
.q-footer-text { margin: 14px 0 0; font-size: 14px; line-height: 1.7; max-width: 320px; }
.q-footer-title { margin: 0 0 16px; font: 700 16px/1.3 var(--q-serif); color: #fff; position: relative; padding-block-end: 10px; }
.q-footer-title::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--q-gold); }
.q-footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.q-footer-links a { display: inline-flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; transition: color .15s, gap .15s; }
.q-footer-links a:hover { color: #fff; gap: 13px; }
.q-footer-links .q-icon { color: var(--q-gold); }
.q-footer-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.q-footer-tags a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 13px; }
.q-footer-tags a:hover { background: var(--q-accent); color: #fff; }
.q-footer-tags span { font-size: 11px; opacity: .6; }
.q-footer-write { display: flex; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: var(--q-radius); border: 1px dashed rgba(255, 255, 255, .25); font-size: 13px; }
.q-footer-write .q-icon { color: var(--q-gold); }
.q-footer-write span { display: grid; }
.q-footer-write strong { color: #fff; font-size: 15px; }
.q-footer-write:hover { border-color: var(--q-gold); color: #fff; }
.q-footer-widgets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding-block: 0 36px; }
.q-footer .widget { background: none; box-shadow: none; padding: 0; }
.q-footer .widget-title { color: #fff; border-color: rgba(255, 255, 255, .12); }
.q-footer .widget-title span { border-color: var(--q-gold); }
.q-footer .widget li { border-color: rgba(255, 255, 255, .08); }
.q-footer a:hover { color: #fff; }
.q-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.q-footer-bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; }
.q-copy { margin: 0; }
.q-footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; }

/* ---------- Floating buttons ---------- */
.q-fab-stack { position: fixed; inset-block-end: 22px; inset-inline-end: 20px; z-index: 50; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.q-fab {
	position: relative; display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; border: 0;
	color: #fff; transition: transform .2s, box-shadow .2s;
}
.q-fab:hover { color: #fff; transform: scale(1.06); }
.q-fab--share {
	background: linear-gradient(135deg, var(--q-gold), var(--q-accent));
	box-shadow: 0 8px 22px color-mix(in srgb, var(--q-accent) 45%, transparent);
}
.q-fab--wa { background: var(--q-wa); box-shadow: 0 8px 22px color-mix(in srgb, var(--q-wa) 45%, transparent); }
.q-fab--wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--q-wa); animation: q-ring 2.4s ease-out infinite; }
@keyframes q-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.q-fab-tip {
	position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%);
	white-space: nowrap; padding: 7px 12px; border-radius: 8px; background: var(--q-ink); color: var(--q-bg);
	font-size: 13px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.q-fab--wa:hover .q-fab-tip,
.q-fab--wa:focus-visible .q-fab-tip { opacity: 1; }

.q-fab-share { position: relative; display: flex; flex-direction: column; align-items: center; }
.q-fab-close { display: none; }
.q-fab-share.is-open .q-fab-open { display: none; }
.q-fab-share.is-open .q-fab-close { display: inline-flex; }
.q-fab-open,
.q-fab-close { line-height: 0; }
.q-fab-share.is-open .q-fab--share { transform: rotate(90deg); }
.q-fab-menu { position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.q-fab-menu:not([hidden]) li { animation: q-pop .22s ease-out backwards; }
.q-fab-menu li:nth-child(2) { animation-delay: .03s; }
.q-fab-menu li:nth-child(3) { animation-delay: .06s; }
.q-fab-menu li:nth-child(4) { animation-delay: .09s; }
.q-fab-menu li:nth-child(5) { animation-delay: .12s; }
@keyframes q-pop { from { opacity: 0; transform: translateY(10px) scale(.92); } }
.q-fab-item {
	display: flex; align-items: center; gap: 10px; width: 100%; min-width: 156px;
	padding: 9px 16px 9px 10px; border-radius: 999px; border: 1px solid var(--q-line);
	background: var(--q-surface); color: var(--q-ink); box-shadow: var(--q-shadow-lg);
	font-size: 14px; font-weight: 600; white-space: nowrap;
}
.q-fab-item .q-icon { box-sizing: content-box; padding: 6px; border-radius: 50%; color: #fff; }
.q-fab-item.q-c-wa .q-icon { background: var(--q-wa); }
.q-fab-item.q-c-tg .q-icon { background: #229ed9; }
.q-fab-item.q-c-fb .q-icon { background: #1877f2; }
.q-fab-item.q-c-x .q-icon { background: #111; }
.q-fab-item.q-c-copy .q-icon { background: var(--q-accent); }
.q-fab-item:hover { color: var(--q-ink); border-color: var(--q-accent); transform: translateX(-3px); }
[dir="rtl"] .q-fab-item:hover { transform: translateX(3px); }

.q-top {
	position: fixed; inset-block-end: 22px; inset-inline-start: 20px; z-index: 30;
	display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	border: 1px solid var(--q-line); background: var(--q-surface); color: var(--q-ink); box-shadow: var(--q-shadow-lg);
}
.q-top:hover { background: var(--q-accent); color: #fff; border-color: var(--q-accent); }
.q-top[hidden],
.q-toast[hidden],
.q-fab-menu[hidden],
.q-search-panel[hidden] { display: none; }

.q-toast {
	position: fixed; left: 50%; bottom: 28px; z-index: 70; display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 18px; border-radius: 999px; background: var(--q-ink); color: var(--q-bg);
	font-size: 14px; font-weight: 600; box-shadow: var(--q-shadow-lg);
	transform: translate(-50%, 16px); opacity: 0; transition: transform .25s, opacity .25s;
}
.q-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- WordPress core classes ---------- */
.alignleft { float: inline-start; margin-inline-end: 1.2em; }
.alignright { float: inline-end; margin-inline-start: 1.2em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text,
figcaption { font-size: 13px; color: var(--q-muted); text-align: center; margin-top: 6px; }
.sticky .q-card-title::before { content: "★ "; color: var(--q-gold); }
.bypostauthor > .comment-body .fn::after { content: " ✓"; color: var(--q-link); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.q-layout { grid-template-columns: minmax(0, 1fr); }
	.q-sidebar-inner { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
	.q-hero { grid-template-columns: 1fr; }
	.q-hero-main { min-height: 380px; }
	.q-footer-main { grid-template-columns: 1fr 1fr; }
	.q-hero-panel { grid-template-columns: 1fr; }
	.q-stats--panel { justify-content: flex-start; }
}

@media (max-width: 782px) {
	.admin-bar .q-navbar,
	.admin-bar .q-progress { top: 0; }
	.q-menu-toggle { display: inline-flex; }
	.q-primary { position: absolute; inset-inline: 0; top: 100%; background: var(--q-accent); display: none; box-shadow: 0 10px 20px rgba(0, 0, 0, .15); max-height: 75vh; overflow-y: auto; }
	.q-primary.is-open { display: block; }
	.q-navbar-inner { position: relative; justify-content: space-between; }
	.q-menu { flex-direction: column; padding-block: 8px; }
	.q-menu a { padding: 12px 20px; }
	.q-menu .sub-menu,
	.q-menu .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: rgba(0, 0, 0, .12); border-radius: 0; }
	.q-menu .sub-menu a { color: #fff; padding-inline-start: 36px; }

	.q-header-inner { padding-block: 14px; gap: 12px; }
	.q-brand { flex: 1; flex-direction: column; align-items: flex-start; gap: 4px; }
	.q-site-title { font-size: clamp(18px, 5.2vw, 24px); gap: 8px; overflow-wrap: anywhere; }
	.q-brand.has-tagline .q-tagline { padding-inline-start: 0; border: 0; font-size: 13px; }
	.q-site-mark { width: 36px; height: 36px; border-radius: 10px; }
	.custom-logo { max-height: 48px; }
	.q-btn--write { padding: 10px 14px; }
	.q-mode-toggle { width: 38px; height: 38px; }

	.q-hero-side { grid-template-columns: 1fr; grid-auto-rows: 200px; }
	.q-block--grid .q-block-grid,
	.q-block--list .q-block-grid,
	.q-grid-3,
	.q-steps,
	.q-contact,
	.q-form-row { grid-template-columns: 1fr; }
	.q-card--row { grid-template-columns: 120px minmax(0, 1fr); gap: 14px; }
	.q-card--row .q-card-title { font-size: 17px; }
	.q-card--row .q-card-excerpt { display: none; }
	.q-card--row .q-badge,
	.q-card--row .q-thumb-ph-label { display: none; }
	.q-footer-main { grid-template-columns: 1fr; gap: 30px; padding-block: 40px 30px; }
	.q-footer-widgets { grid-template-columns: 1fr; }
	.q-footer-bottom-inner { flex-direction: column; text-align: center; padding-block-end: 90px; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.q-author-hero,
	.q-author-box { flex-direction: column; align-items: center; text-align: center; }
	.q-topnav,
	.q-date { display: none; }
	.q-topbar-inner { justify-content: center; min-height: 36px; }
	.q-channel { flex-wrap: wrap; }
	.q-channel-btn { width: 100%; text-align: center; }
	.q-fab { width: 50px; height: 50px; }
	.q-fab-stack { inset-block-end: 16px; inset-inline-end: 14px; gap: 12px; }
	.q-top { inset-block-end: 16px; inset-inline-start: 14px; }
}

@media (max-width: 480px) {
	.q-header-inner { gap: 8px; }
	.q-site-mark { display: none; }
	.q-site-title { font-size: 19px; overflow-wrap: normal; word-break: normal; white-space: nowrap; }
	.q-brand { min-width: 0; overflow: hidden; }
	.q-tagline { font-size: 12.5px; }
	.q-header-actions { gap: 6px; }
	.q-icon-btn,
	.q-mode-toggle { width: 36px; height: 36px; }
	.q-btn--write span { display: none; }
	.q-btn--write { width: 38px; height: 38px; padding: 0; }
	.q-palette-menu { inset-inline-end: -84px; width: min(280px, calc(100vw - 32px)); }
}
