/* ============================================================
 *  RQ Blog Plus — Frontend Styles
 *  Brand: pink #d6336c, deep #831843, bg #fdf2f8, accent #fde047
 * ============================================================ */

/* ===== ROOT TOKENS ===== */
.rqb-archive,
.rqb-single,
.rqb-recent,
.rqb-related,
.rqb-cat-nav {
	--rqb-pink: #d6336c;
	--rqb-pink-deep: #831843;
	--rqb-pink-soft: #fdf2f8;
	--rqb-pink-softer: #fce7f3;
	--rqb-pink-border: #fbcfe8;
	--rqb-yellow: #fde047;
	--rqb-green: #84cc16;
	--rqb-text: #18181b;
	--rqb-text-muted: #52525b;
	--rqb-text-mute: #71717a;
	--rqb-border: #e5e7eb;
	--rqb-border-soft: #f1f5f9;
	--rqb-radius: 16px;
	--rqb-radius-sm: 10px;
	--rqb-radius-lg: 24px;
	--rqb-shadow: 0 4px 16px rgba(214, 51, 108, 0.08);
	--rqb-shadow-md: 0 8px 28px rgba(214, 51, 108, 0.12);
	--rqb-shadow-lg: 0 16px 40px rgba(214, 51, 108, 0.15);
	--rqb-font-serif: Georgia, 'Times New Roman', serif;
	--rqb-font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	font-family: var(--rqb-font-sans);
	color: var(--rqb-text);
}

/* ============================================================
 *  ARCHIVE / BLOG LISTING
 * ============================================================ */

.rqb-archive {
	background: #fff;
	min-height: 50vh;
}

.rqb-archive-hero {
	background: linear-gradient(180deg, var(--rqb-pink-soft) 0%, #fff 100%);
	padding: 80px 24px 56px;
	text-align: center;
	border-bottom: 1px solid var(--rqb-pink-border);
}
.rqb-archive-hero-inner {
	max-width: 760px;
	margin: 0 auto;
}
.rqb-archive-eyebrow {
	display: inline-block;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--rqb-pink-deep);
	text-transform: uppercase;
	background: #fff;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--rqb-pink-border);
	margin-bottom: 18px;
}
.rqb-archive-eyebrow::before {
	content: "●";
	color: var(--rqb-pink);
	margin-right: 6px;
}
.rqb-archive-title {
	font-family: var(--rqb-font-serif);
	font-size: 44px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 14px;
	color: var(--rqb-text);
}
.rqb-archive-subtitle {
	font-size: 18px;
	color: var(--rqb-text-muted);
	line-height: 1.6;
	margin: 0;
	max-width: 580px;
	margin-left: auto;
	margin-right: auto;
}

/* ===== Filter pills ===== */
.rqb-archive-filter {
	background: #fff;
	border-bottom: 1px solid var(--rqb-border-soft);
	padding: 20px 24px;
	position: sticky;
	top: 0;
	z-index: 10;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.rqb-archive-filter-inner {
	max-width: 1140px;
	margin: 0 auto;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.rqb-filter-pill {
	display: inline-block;
	padding: 8px 18px;
	background: #fff;
	border: 1px solid var(--rqb-pink-border);
	color: var(--rqb-pink-deep);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
	white-space: nowrap;
}
.rqb-filter-pill:hover {
	background: var(--rqb-pink-soft);
	border-color: var(--rqb-pink);
	color: var(--rqb-pink-deep);
}
.rqb-filter-pill.is-active {
	background: var(--rqb-pink);
	border-color: var(--rqb-pink);
	color: #fff !important;
}

/* ===== Articles grid ===== */
.rqb-archive-grid-wrap {
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 24px 80px;
}
.rqb-archive-grid {
	display: grid;
	gap: 32px;
}
.rqb-archive-grid.rqb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rqb-archive-grid.rqb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rqb-archive-grid.rqb-cols-1 { grid-template-columns: 1fr; }

/* ===== Empty state ===== */
.rqb-archive-empty {
	text-align: center;
	padding: 80px 24px;
	color: var(--rqb-text-mute);
}
.rqb-archive-empty svg {
	color: var(--rqb-pink-border);
	margin-bottom: 18px;
}
.rqb-archive-empty h2 {
	font-family: var(--rqb-font-serif);
	font-size: 24px;
	color: var(--rqb-text);
	margin: 0 0 8px;
}

/* ===== Pagination ===== */
.rqb-archive-pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 56px;
	flex-wrap: wrap;
}
.rqb-archive-pagination a,
.rqb-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	background: #fff;
	border: 1px solid var(--rqb-pink-border);
	color: var(--rqb-pink-deep);
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: all 0.15s ease;
}
.rqb-archive-pagination a:hover {
	background: var(--rqb-pink-soft);
	border-color: var(--rqb-pink);
}
.rqb-archive-pagination .page-numbers.current {
	background: var(--rqb-pink);
	border-color: var(--rqb-pink);
	color: #fff;
}
.rqb-archive-pagination .page-numbers.dots {
	border: none;
	background: transparent;
}

/* ============================================================
 *  ARTICLE CARD (used in archive, recent, related)
 * ============================================================ */

.rqb-card {
	background: #fff;
	border: 1px solid var(--rqb-border);
	border-radius: var(--rqb-radius);
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
	position: relative;
}
.rqb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--rqb-shadow-md);
	border-color: var(--rqb-pink-border);
}
.rqb-card-link {
	display: block;
	color: inherit;
	text-decoration: none !important;
	height: 100%;
}

.rqb-card-thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--rqb-pink-soft);
}
.rqb-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}
.rqb-card:hover .rqb-card-thumb img {
	transform: scale(1.04);
}
.rqb-card-thumb-empty {
	background: linear-gradient(135deg, var(--rqb-pink-softer) 0%, var(--rqb-pink-soft) 100%);
}

.rqb-card-body {
	padding: 24px;
}
.rqb-card-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.12em;
	color: var(--rqb-pink-deep);
	background: var(--rqb-pink-soft);
	border: 1px solid var(--rqb-pink-border);
	padding: 4px 10px;
	border-radius: 999px;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.rqb-card-title {
	font-family: var(--rqb-font-serif);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
	color: var(--rqb-text);
	margin: 0 0 10px;
	letter-spacing: -0.01em;
}
.rqb-card:hover .rqb-card-title { color: var(--rqb-pink-deep); }
.rqb-card-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: var(--rqb-text-muted);
	margin: 0 0 14px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.rqb-card-meta {
	display: flex;
	gap: 10px;
	font-size: 13px;
	color: var(--rqb-text-mute);
	flex-wrap: wrap;
}
.rqb-card-readtime::before {
	content: "·";
	margin-right: 8px;
	color: var(--rqb-pink-border);
}

/* ============================================================
 *  SINGLE ARTICLE
 * ============================================================ */

.rqb-single {
	background: #fff;
}

/* === Hero === */
.rqb-single-hero {
	max-width: 820px;
	margin: 0 auto;
	padding: 64px 24px 32px;
	text-align: center;
}
.rqb-single-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}
.rqb-single-cat {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.16em;
	color: var(--rqb-pink-deep);
	background: var(--rqb-pink-soft);
	border: 1px solid var(--rqb-pink-border);
	padding: 6px 14px;
	border-radius: 999px;
	text-transform: uppercase;
	text-decoration: none !important;
	margin-bottom: 24px;
	transition: all 0.15s ease;
}
.rqb-single-cat:hover {
	background: var(--rqb-pink);
	color: #fff;
	border-color: var(--rqb-pink);
}
.rqb-single-title {
	font-family: var(--rqb-font-serif);
	font-size: 48px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--rqb-text);
	margin: 0 0 18px;
	letter-spacing: -0.02em;
}
.rqb-single-subtitle {
	font-family: var(--rqb-font-serif);
	font-size: 22px;
	font-style: italic;
	color: var(--rqb-text-muted);
	line-height: 1.5;
	margin: 0 0 28px;
}
.rqb-single-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 14px;
	color: var(--rqb-text-mute);
}
.rqb-single-author {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--rqb-text);
	font-weight: 600;
}
.rqb-single-avatar {
	border-radius: 50%;
	border: 2px solid var(--rqb-pink-border);
}
.rqb-single-meta-sep {
	color: var(--rqb-pink-border);
}

/* === Featured image === */
.rqb-single-feature {
	max-width: 1080px;
	margin: 32px auto 0;
	border-radius: var(--rqb-radius-lg);
	overflow: hidden;
	background: var(--rqb-pink-soft);
}
.rqb-single-feature img {
	width: 100%;
	height: auto;
	display: block;
}

/* === Content === */
.rqb-single-content-wrap {
	max-width: 720px;
	margin: 56px auto 0;
	padding: 0 24px;
}
.rqb-single-content {
	font-size: 18px;
	line-height: 1.75;
	color: var(--rqb-text);
}
.rqb-single-content > * { max-width: 720px; }

.rqb-single-content p {
	margin: 0 0 24px;
}
.rqb-single-content p:first-child::first-letter {
	font-family: var(--rqb-font-serif);
	float: left;
	font-size: 64px;
	line-height: 0.85;
	font-weight: 700;
	color: var(--rqb-pink);
	margin: 6px 12px 0 0;
}
.rqb-single-content h2 {
	font-family: var(--rqb-font-serif);
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--rqb-text);
	margin: 48px 0 18px;
	scroll-margin-top: 100px;
}
.rqb-single-content h3 {
	font-family: var(--rqb-font-serif);
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--rqb-text);
	margin: 36px 0 14px;
	scroll-margin-top: 100px;
}
.rqb-single-content h4 {
	font-size: 18px;
	font-weight: 700;
	color: var(--rqb-pink-deep);
	margin: 28px 0 12px;
}
.rqb-single-content ul,
.rqb-single-content ol {
	margin: 0 0 24px;
	padding-left: 26px;
}
.rqb-single-content ul li,
.rqb-single-content ol li {
	margin-bottom: 8px;
}
.rqb-single-content ul li::marker { color: var(--rqb-pink); }
.rqb-single-content a {
	color: var(--rqb-pink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
}
.rqb-single-content a:hover {
	color: var(--rqb-pink-deep);
	text-decoration-thickness: 2px;
}
.rqb-single-content strong { font-weight: 600; color: var(--rqb-text); }
.rqb-single-content em { color: var(--rqb-pink-deep); }
.rqb-single-content blockquote:not(.rqb-quote) {
	border-left: 4px solid var(--rqb-pink);
	padding: 8px 0 8px 24px;
	margin: 28px 0;
	font-family: var(--rqb-font-serif);
	font-size: 22px;
	font-style: italic;
	line-height: 1.5;
	color: var(--rqb-text-muted);
}
.rqb-single-content code {
	background: var(--rqb-pink-soft);
	color: var(--rqb-pink-deep);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 0.9em;
	font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}
.rqb-single-content pre {
	background: #18181b;
	color: #fafafa;
	padding: 18px 22px;
	border-radius: var(--rqb-radius-sm);
	overflow-x: auto;
	margin: 24px 0;
	font-size: 14px;
	line-height: 1.55;
}
.rqb-single-content pre code {
	background: transparent;
	color: inherit;
	padding: 0;
}
.rqb-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: var(--rqb-radius-sm);
	margin: 24px 0;
}
.rqb-single-content hr {
	border: none;
	height: 1px;
	background: var(--rqb-pink-border);
	margin: 48px 0;
}

/* === TOC === */
.rqb-toc {
	background: var(--rqb-pink-soft);
	border: 1px solid var(--rqb-pink-border);
	border-radius: var(--rqb-radius);
	padding: 22px 28px;
	margin: 0 0 36px;
}
.rqb-toc-toggle {
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0;
	cursor: pointer;
	color: var(--rqb-pink-deep);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.rqb-toc-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.2s ease;
}
.rqb-toc-toggle[aria-expanded="false"] .rqb-toc-icon {
	transform: rotate(-90deg);
}
.rqb-toc-list {
	margin: 14px 0 0;
	padding-left: 22px;
	list-style: decimal;
	font-size: 15px;
	transition: max-height 0.3s ease, opacity 0.2s ease;
	overflow: hidden;
}
.rqb-toc-toggle[aria-expanded="false"] + .rqb-toc-list {
	max-height: 0 !important;
	opacity: 0;
	margin: 0;
}
.rqb-toc-list li { margin-bottom: 6px; }
.rqb-toc-item-sub {
	margin-left: 0;
	list-style: none;
	font-size: 14px;
	padding-left: 14px;
	position: relative;
}
.rqb-toc-item-sub::before {
	content: "—";
	position: absolute;
	left: 0;
	color: var(--rqb-pink);
}
.rqb-toc-list a {
	color: var(--rqb-text-muted);
	text-decoration: none;
}
.rqb-toc-list a:hover { color: var(--rqb-pink); }

/* === Footer (tags + share) === */
.rqb-single-footer {
	margin-top: 56px;
	padding: 28px 0;
	border-top: 1px solid var(--rqb-border-soft);
	border-bottom: 1px solid var(--rqb-border-soft);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 18px;
}
.rqb-single-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	font-size: 14px;
}
.rqb-single-tags-label {
	color: var(--rqb-text-mute);
	font-weight: 600;
	margin-right: 4px;
}
.rqb-single-tag {
	display: inline-block;
	padding: 4px 12px;
	background: var(--rqb-pink-soft);
	border: 1px solid var(--rqb-pink-border);
	color: var(--rqb-pink-deep);
	border-radius: 999px;
	text-decoration: none !important;
	font-size: 12px;
	font-weight: 600;
	transition: all 0.15s ease;
}
.rqb-single-tag:hover {
	background: var(--rqb-pink);
	color: #fff;
	border-color: var(--rqb-pink);
}
.rqb-single-share {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}
.rqb-single-share-label {
	color: var(--rqb-text-mute);
	font-weight: 600;
	margin-right: 4px;
}
.rqb-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid var(--rqb-pink-border);
	color: var(--rqb-pink-deep);
	cursor: pointer;
	transition: all 0.15s ease;
	text-decoration: none !important;
}
.rqb-share-btn:hover {
	background: var(--rqb-pink);
	color: #fff;
	border-color: var(--rqb-pink);
	transform: translateY(-2px);
}
.rqb-share-btn svg { width: 16px; height: 16px; }
.rqb-share-btn.is-copied {
	background: var(--rqb-green);
	color: #fff;
	border-color: var(--rqb-green);
}

/* ============================================================
 *  CTA BOX (after article)
 * ============================================================ */

.rqb-single-cta {
	max-width: 880px;
	margin: 64px auto 0;
	padding: 0 24px;
}
.rqb-single-cta-inner {
	background: linear-gradient(135deg, var(--rqb-pink) 0%, var(--rqb-pink-deep) 100%);
	border-radius: var(--rqb-radius-lg);
	padding: 48px 44px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}
.rqb-single-cta-inner::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 60%;
	height: 200%;
	background: radial-gradient(circle, rgba(253, 224, 71, 0.18) 0%, transparent 60%);
	pointer-events: none;
}
.rqb-single-cta h2 {
	font-family: var(--rqb-font-serif);
	font-size: 30px;
	color: #fff;
	margin: 0 0 14px;
	position: relative;
}
.rqb-single-cta p {
	font-size: 17px;
	color: rgba(255, 255, 255, 0.92);
	margin: 0 auto 28px;
	max-width: 520px;
	position: relative;
}
.rqb-single-cta-btn {
	display: inline-block;
	padding: 16px 40px;
	background: var(--rqb-yellow);
	color: var(--rqb-text) !important;
	text-decoration: none !important;
	font-weight: 800;
	font-size: 16px;
	letter-spacing: 0.04em;
	border-radius: 999px;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
	position: relative;
}
.rqb-single-cta-btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}
.rqb-single-cta-btn::after { content: " →"; }

/* ============================================================
 *  RELATED ARTICLES
 * ============================================================ */

.rqb-single-related,
.rqb-related {
	background: var(--rqb-pink-soft);
	margin-top: 80px;
	padding: 64px 24px 80px;
}
.rqb-single-related-inner {
	max-width: 1140px;
	margin: 0 auto;
}
.rqb-single-related-title,
.rqb-related-title {
	font-family: var(--rqb-font-serif);
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	color: var(--rqb-text);
	margin: 0 0 36px;
}
.rqb-single-related-grid,
.rqb-related-grid {
	display: grid;
	gap: 28px;
}
.rqb-cols-3 { grid-template-columns: repeat(3, 1fr); }
.rqb-cols-2 { grid-template-columns: repeat(2, 1fr); }
.rqb-cols-1 { grid-template-columns: 1fr; }

/* ============================================================
 *  RECENT ARTICLES (shortcode)
 * ============================================================ */

.rqb-recent {
	max-width: 1140px;
	margin: 0 auto;
	padding: 56px 24px;
}
.rqb-recent-title {
	font-family: var(--rqb-font-serif);
	font-size: 28px;
	font-weight: 700;
	text-align: center;
	color: var(--rqb-text);
	margin: 0 0 36px;
}
.rqb-recent-grid {
	display: grid;
	gap: 28px;
}
.rqb-recent.rqb-cols-4 .rqb-recent-grid { grid-template-columns: repeat(4, 1fr); }
.rqb-recent.rqb-cols-3 .rqb-recent-grid { grid-template-columns: repeat(3, 1fr); }
.rqb-recent.rqb-cols-2 .rqb-recent-grid { grid-template-columns: repeat(2, 1fr); }
.rqb-recent.rqb-cols-1 .rqb-recent-grid { grid-template-columns: 1fr; }

/* ============================================================
 *  CATEGORIES NAV (shortcode)
 * ============================================================ */

.rqb-cat-nav {
	max-width: 1140px;
	margin: 0 auto;
	padding: 24px;
}
.rqb-cat-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}
.rqb-cat-item a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	background: #fff;
	border: 1px solid var(--rqb-pink-border);
	color: var(--rqb-pink-deep);
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	transition: all 0.15s ease;
}
.rqb-cat-item a:hover,
.rqb-cat-item.is-active a {
	background: var(--rqb-pink);
	color: #fff;
	border-color: var(--rqb-pink);
}
.rqb-cat-count {
	background: var(--rqb-pink-soft);
	color: var(--rqb-pink-deep);
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
}
.rqb-cat-item.is-active .rqb-cat-count,
.rqb-cat-item a:hover .rqb-cat-count {
	background: rgba(255, 255, 255, 0.25);
	color: #fff;
}

/* ============================================================
 *  MEDIA BLOCKS (Vimeo, YouTube, Gallery, Quote, Callout)
 * ============================================================ */

/* === Video === */
.rqb-video {
	margin: 32px 0;
}
.rqb-video-frame {
	position: relative;
	width: 100%;
	border-radius: var(--rqb-radius);
	overflow: hidden;
	background: #000;
	box-shadow: var(--rqb-shadow-md);
}
.rqb-video-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
.rqb-ratio-16-9 .rqb-video-frame { aspect-ratio: 16 / 9; }
.rqb-ratio-4-3  .rqb-video-frame { aspect-ratio: 4 / 3; }
.rqb-ratio-1-1  .rqb-video-frame { aspect-ratio: 1 / 1; }
.rqb-ratio-9-16 .rqb-video-frame { aspect-ratio: 9 / 16; max-width: 360px; margin: 0 auto; }
.rqb-video-caption {
	margin: 12px 0 0;
	font-size: 14px;
	color: var(--rqb-text-mute);
	text-align: center;
	font-style: italic;
}

/* === Gallery === */
.rqb-gallery {
	margin: 32px 0;
}
.rqb-gallery-grid {
	display: grid;
	gap: 16px;
}
.rqb-gallery.rqb-gap-small  .rqb-gallery-grid { gap: 8px; }
.rqb-gallery.rqb-gap-medium .rqb-gallery-grid { gap: 16px; }
.rqb-gallery.rqb-gap-large  .rqb-gallery-grid { gap: 24px; }
.rqb-gallery.rqb-cols-1 .rqb-gallery-grid { grid-template-columns: 1fr; }
.rqb-gallery.rqb-cols-2 .rqb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
.rqb-gallery.rqb-cols-3 .rqb-gallery-grid { grid-template-columns: repeat(3, 1fr); }
.rqb-gallery.rqb-cols-4 .rqb-gallery-grid { grid-template-columns: repeat(4, 1fr); }
.rqb-gallery-item {
	display: block;
	border-radius: var(--rqb-radius-sm);
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: var(--rqb-pink-soft);
	transition: transform 0.2s ease;
}
.rqb-gallery-item:hover {
	transform: scale(1.02);
}
.rqb-gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0 !important;
}
.rqb-gallery-caption {
	margin: 14px 0 0;
	font-size: 14px;
	color: var(--rqb-text-mute);
	text-align: center;
	font-style: italic;
}

/* === Quote === */
.rqb-quote {
	margin: 36px 0;
	padding: 28px 32px;
	background: var(--rqb-pink-soft);
	border-left: 5px solid var(--rqb-pink);
	border-radius: 0 var(--rqb-radius-sm) var(--rqb-radius-sm) 0;
	position: relative;
}
.rqb-quote::before {
	content: "\201C";
	position: absolute;
	top: -10px;
	left: 18px;
	font-family: Georgia, serif;
	font-size: 60px;
	line-height: 1;
	color: var(--rqb-pink-border);
}
.rqb-quote-text {
	font-family: var(--rqb-font-serif);
	font-size: 22px;
	line-height: 1.55;
	color: var(--rqb-text);
	font-style: italic;
	margin: 0;
}
.rqb-quote-text p { margin: 0 0 8px; }
.rqb-quote-attr {
	margin-top: 14px;
	font-size: 13px;
	color: var(--rqb-pink-deep);
}
.rqb-quote-author {
	font-style: normal;
	font-weight: 700;
}
.rqb-quote-source::before {
	content: " · ";
	color: var(--rqb-pink-border);
	font-style: normal;
}

/* === Callout === */
.rqb-callout {
	margin: 28px 0;
	padding: 20px 24px;
	border-radius: var(--rqb-radius-sm);
	border-left: 4px solid;
}
.rqb-callout-title {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin: 0 0 10px;
}
.rqb-callout-body p:last-child { margin-bottom: 0; }
.rqb-callout-body p { margin: 0 0 8px; }

.rqb-callout-info {
	background: #eff6ff;
	border-color: #3b82f6;
}
.rqb-callout-info .rqb-callout-title { color: #1e40af; }

.rqb-callout-tip {
	background: var(--rqb-pink-soft);
	border-color: var(--rqb-pink);
}
.rqb-callout-tip .rqb-callout-title { color: var(--rqb-pink-deep); }

.rqb-callout-warning {
	background: #fef9c3;
	border-color: #ca8a04;
}
.rqb-callout-warning .rqb-callout-title { color: #713f12; }

.rqb-callout-success {
	background: #ecfdf5;
	border-color: var(--rqb-green);
}
.rqb-callout-success .rqb-callout-title { color: #065f46; }

/* ============================================================
 *  LIGHTBOX
 * ============================================================ */

.rqb-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 40px 20px;
}
.rqb-lightbox.is-open { display: flex; }
.rqb-lightbox-img {
	max-width: 100%;
	max-height: 100%;
	border-radius: var(--rqb-radius-sm);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.rqb-lightbox-close {
	position: absolute;
	top: 20px;
	right: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.15);
	border: none;
	color: #fff;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	transition: background 0.15s ease;
}
.rqb-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
 *  RESPONSIVE
 * ============================================================ */

@media (max-width: 980px) {
	.rqb-archive-grid.rqb-cols-3,
	.rqb-recent.rqb-cols-4 .rqb-recent-grid,
	.rqb-recent.rqb-cols-3 .rqb-recent-grid,
	.rqb-single-related-grid.rqb-cols-3 {
		grid-template-columns: repeat(2, 1fr);
	}
	.rqb-gallery.rqb-cols-4 .rqb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.rqb-single-title { font-size: 36px; }
	.rqb-single-subtitle { font-size: 19px; }
}

@media (max-width: 640px) {
	.rqb-archive-hero { padding: 56px 18px 36px; }
	.rqb-archive-title { font-size: 30px; }
	.rqb-archive-subtitle { font-size: 16px; }
	.rqb-archive-grid-wrap { padding: 36px 18px 56px; }
	.rqb-archive-grid.rqb-cols-3,
	.rqb-archive-grid.rqb-cols-2,
	.rqb-recent .rqb-recent-grid,
	.rqb-single-related-grid {
		grid-template-columns: 1fr;
	}
	.rqb-gallery.rqb-cols-3 .rqb-gallery-grid,
	.rqb-gallery.rqb-cols-4 .rqb-gallery-grid { grid-template-columns: repeat(2, 1fr); }

	.rqb-single-hero { padding: 40px 18px 24px; }
	.rqb-single-title { font-size: 28px; }
	.rqb-single-subtitle { font-size: 17px; }
	.rqb-single-content-wrap { padding: 0 18px; margin-top: 36px; }
	.rqb-single-content { font-size: 17px; }
	.rqb-single-content p:first-child::first-letter { font-size: 48px; }
	.rqb-single-content h2 { font-size: 26px; margin: 36px 0 14px; }
	.rqb-single-content h3 { font-size: 21px; }
	.rqb-toc { padding: 18px 22px; }
	.rqb-quote { padding: 22px 24px; }
	.rqb-quote-text { font-size: 19px; }
	.rqb-single-cta-inner { padding: 36px 24px; }
	.rqb-single-cta h2 { font-size: 24px; }
	.rqb-single-related { padding: 48px 18px 56px; }
	.rqb-single-related-title { font-size: 22px; }

	.rqb-single-footer {
		flex-direction: column;
		align-items: stretch;
	}
	.rqb-archive-filter { padding: 14px 18px; }
	.rqb-archive-filter-inner { justify-content: flex-start; }
}
