/*
Theme Name: TokenBus
Theme URI: https://example.com/tokenbus
Author: TokenBus
Author URI: https://example.com
Description: A friendly, trustworthy and conversion-focused magazine theme for large language model token news, usage guides, API tutorials, discount updates and purchase guides. Lightweight, SEO-ready, multilingual (EN/ZH/JA/KO/FR/ES/DE).
Version: 1.1.0
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tokenbus
Tags: blog, news, one-column, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   1. Design tokens (mytokenbus style)
   ============================================================ */
:root {
	--bg: #f8fafc;
	--text: #0f172a;
	--muted: #64748b;
	--primary: #0ea5e9;
	--primary-dark: #0284c7;
	--accent: #8b5cf6;
	--border: #e2e8f0;
	--card-bg: #ffffff;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	--shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.10);
	--radius: 16px;
	--max-width: 1200px;
	--font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans JP", "Noto Sans KR", sans-serif;
}

/* ============================================================
   2. Reset & base
   ============================================================ */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

body {
	margin: 0;
	font-family: var(--font);
	background: var(--bg);
	color: var(--text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--primary);
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	line-height: 1.25;
	margin: 0 0 .5em;
	font-weight: 700;
	color: var(--text);
}

p {
	margin: 0 0 1em;
}

ul, ol {
	padding-left: 1.4em;
	margin: 0 0 1em;
}

code, kbd, pre {
	font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

pre {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 1em;
	overflow: auto;
}

table {
	border-collapse: collapse;
	width: 100%;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	width: auto;
	height: auto;
	clip: auto;
	top: 5px;
	left: 5px;
	z-index: 100000;
	background: #fff;
	padding: 12px 18px;
	border-radius: var(--radius);
	box-shadow: var(--shadow-lg);
}

/* ============================================================
   3. Container & section
   ============================================================ */
.container {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.section {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 40px 20px;
}

.section-title {
	font-size: 1.8rem;
	font-weight: 700;
	letter-spacing: -0.5px;
	margin-bottom: 24px;
	display: flex;
	align-items: center;
	gap: 12px;
}

.section-title::before {
	content: '';
	width: 6px;
	height: 32px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border-radius: 3px;
	flex: none;
}

.section-title i {
	font-size: 1.5rem;
	color: var(--primary);
}

.section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.section-link {
	font-weight: 600;
	color: var(--primary);
	white-space: nowrap;
}

.section-link:hover {
	text-decoration: underline;
}

/* Breadcrumb */
.breadcrumb {
	font-size: .85rem;
	color: var(--muted);
	padding: 20px 20px 0;
	max-width: var(--max-width);
	margin: 0 auto;
}

.breadcrumb a {
	color: var(--muted);
}

.breadcrumb a:hover {
	color: var(--primary);
}

.breadcrumb .sep {
	margin: 0 8px;
	color: var(--border);
}

/* ============================================================
   4. Header & navigation
   ============================================================ */
.header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	transition: box-shadow .2s ease;
}

.header.is-scrolled {
	box-shadow: var(--shadow);
}

.header-inner {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
	height: 64px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.logo {
	font-size: 1.6rem;
	font-weight: 800;
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	color: var(--primary);
	white-space: nowrap;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1;
}

.logo:hover {
	text-decoration: none;
}

.logo i {
	font-size: 1.4rem;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	/* Keep the glyph visible even if the gradient text-fill fails (e.g. webfont late). */
	color: var(--primary);
}

.logo img {
	max-height: 40px;
	width: auto;
}

.nav {
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
}

.nav ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 28px;
	flex-wrap: wrap;
	align-items: center;
}

.nav li {
	position: relative;
}

.nav a {
	color: var(--text);
	font-weight: 500;
	font-size: 0.95rem;
	transition: color 0.2s;
	display: flex;
	align-items: center;
	gap: 6px;
}

.nav a i {
	font-size: 0.9rem;
	color: var(--muted);
	transition: color 0.2s;
}

.nav a:hover {
	color: var(--primary);
	text-decoration: none;
}

.nav a:hover i {
	color: var(--primary);
}

.nav .current-menu-item > a,
.nav .current_page_item > a,
.nav .current-cat > a {
	color: var(--primary);
}

.nav .current-menu-item > a i,
.nav .current_page_item > a i {
	color: var(--primary);
}

.nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 8px;
	display: none;
	z-index: 20;
}

.nav .sub-menu li {
	display: block;
}

.nav li:hover > .sub-menu,
.nav li:focus-within > .sub-menu {
	display: block;
}

.nav .sub-menu a {
	padding: 8px 12px;
	font-size: .9rem;
	border-radius: 8px;
}

.nav .sub-menu a:hover {
	background: var(--bg);
}

.header-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.search-btn,
.menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
	cursor: pointer;
	font-size: .95rem;
	transition: all .2s;
}

.search-btn:hover,
.menu-toggle:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.menu-toggle {
	display: none;
}

/* Language switcher */
.lang-switcher {
	position: relative;
}

.lang-current {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: #fff;
	color: var(--text);
	font-weight: 500;
	font-size: .9rem;
	cursor: pointer;
}

.lang-current:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.lang-dropdown {
	position: absolute;
	top: calc(100% + 4px);
	right: 0;
	min-width: 150px;
	background: #fff;
	border: 1px solid var(--border);
	border-radius: 12px;
	box-shadow: var(--shadow);
	padding: 6px;
	display: none;
	z-index: 30;
}

.lang-switcher.is-open .lang-dropdown {
	display: block;
}

.lang-dropdown a {
	display: block;
	padding: 8px 12px;
	border-radius: 8px;
	color: var(--text);
	font-size: .9rem;
}

.lang-dropdown a:hover {
	background: var(--bg);
	text-decoration: none;
}

.lang-dropdown a.is-active {
	color: var(--primary);
	font-weight: 600;
}

/* Search panel */
.search-panel {
	display: none;
	border-top: 1px solid var(--border);
	background: #fff;
	padding: 16px 0;
}

.search-panel.is-open {
	display: block;
}

.search-panel .search-form {
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 0 20px;
}

/* ============================================================
   5. Buttons
   ============================================================ */
.btn {
	padding: 8px 18px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	font-weight: 600;
	font-size: 0.9rem;
	transition: all 0.2s;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.btn:hover {
	text-decoration: none;
}

.btn-primary {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
	color: #fff;
}

.btn-outline {
	background: transparent;
	border: 1px solid var(--border);
	color: var(--text);
}

.btn-outline:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.btn-lg {
	padding: 12px 26px;
	font-size: 1rem;
}

/* ============================================================
   6. Hero
   ============================================================ */
.hero {
	position: relative;
	padding: 80px 20px 60px;
	text-align: center;
	background:
		radial-gradient(55% 55% at 18% 15%, rgba(14, 165, 233, 0.35), transparent 65%),
		radial-gradient(45% 45% at 85% 25%, rgba(139, 92, 246, 0.30), transparent 65%),
		radial-gradient(60% 60% at 60% 110%, rgba(56, 189, 248, 0.18), transparent 70%),
		linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.hero-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.15);
	backdrop-filter: blur(8px);
	color: #fff;
	padding: 6px 16px;
	border-radius: 999px;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 24px;
	border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
	font-size: clamp(2.2rem, 5vw, 3.8rem);
	font-weight: 800;
	letter-spacing: -1px;
	line-height: 1.2;
	margin-bottom: 20px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero > .container > p,
.hero p.hero-desc {
	font-size: 1.2rem;
	color: rgba(255, 255, 255, 0.85);
	max-width: 640px;
	margin: 0 auto 32px;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}

.hero-cta {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

.hero-cta .btn-outline {
	border-color: rgba(255, 255, 255, 0.4);
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}

.hero-cta .btn-outline:hover {
	border-color: #fff;
	color: #fff;
}

.hero-stats {
	display: flex;
	justify-content: center;
	gap: 48px;
	margin-top: 48px;
	flex-wrap: wrap;
}

.stat-item {
	text-align: center;
	color: #fff;
}

.stat-number {
	font-size: 2rem;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.stat-number i {
	font-size: 1.6rem;
	color: #7dd3fc;
}

.stat-label {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 4px;
}

/* ============================================================
   7. Discount table
   ============================================================ */
.discount-table-wrapper {
	overflow-x: auto;
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 8px;
}

.discount-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
	min-width: 700px;
}

.discount-table th,
.discount-table td {
	padding: 14px 16px;
	text-align: left;
	border-bottom: 1px solid var(--border);
}

.discount-table th {
	background: #f1f5f9;
	font-weight: 700;
	color: #334155;
	white-space: nowrap;
}

.discount-table th i {
	margin-right: 6px;
	color: var(--primary);
}

.discount-table tr:last-child td {
	border-bottom: none;
}

.discount-table td a {
	font-weight: 600;
}

.discount-table .empty-row td {
	text-align: center;
	color: var(--muted);
	padding: 28px 16px;
}

.badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
}

.badge-verified {
	background: #dcfce7;
	color: #166534;
}

.badge-ending {
	background: #fef3c7;
	color: #92400e;
}

.badge-detail {
	background: rgba(14, 165, 233, 0.1);
	color: var(--primary-dark);
}

/* ============================================================
   8. Core columns
   ============================================================ */
.core-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 24px;
}

.core-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	padding: 28px 24px;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	border: 1px solid transparent;
	text-align: center;
	display: block;
	color: var(--text);
}

.core-card:hover {
	transform: translateY(-4px);
	border-color: rgba(14, 165, 233, 0.3);
	box-shadow: var(--shadow-lg);
	text-decoration: none;
	color: var(--text);
}

.core-icon {
	font-size: 2.8rem;
	margin-bottom: 16px;
	color: var(--primary);
	background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
	width: 80px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 20px;
	margin-left: auto;
	margin-right: auto;
}

.core-card h3 {
	font-size: 1.3rem;
	font-weight: 700;
	margin-bottom: 8px;
}

.core-card p {
	font-size: 0.95rem;
	color: var(--muted);
	margin-bottom: 0;
}

.core-card .core-count {
	display: inline-block;
	margin-top: 12px;
	font-size: .8rem;
	font-weight: 600;
	color: var(--primary);
	background: rgba(14, 165, 233, 0.1);
	padding: 3px 12px;
	border-radius: 999px;
}

/* ============================================================
   9. Article cards
   ============================================================ */
.article-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.article-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s;
	border: 1px solid transparent;
	display: flex;
	flex-direction: column;
}

.article-card:hover {
	transform: translateY(-4px);
	border-color: rgba(14, 165, 233, 0.3);
	box-shadow: var(--shadow-lg);
}

.article-thumb {
	height: 180px;
	background-size: cover;
	background-position: center;
	position: relative;
	display: block;
	background-color: #e0f2fe;
	background-image:
		radial-gradient(60% 60% at 30% 25%, rgba(14, 165, 233, 0.5), transparent 70%),
		radial-gradient(50% 50% at 75% 70%, rgba(139, 92, 246, 0.4), transparent 70%),
		linear-gradient(135deg, #bae6fd, #c7d2fe);
}

.article-thumb::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
	z-index: 1;
}

.article-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.article-thumb .thumb-letter {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.9);
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.article-content {
	padding: 24px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.article-category {
	align-self: flex-start;
	display: inline-block;
	background: rgba(14, 165, 233, 0.1);
	color: var(--primary-dark);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 600;
	margin-bottom: 12px;
}

.article-category:hover {
	background: rgba(14, 165, 233, 0.2);
	text-decoration: none;
}

.article-content h3 {
	font-size: 1.25rem;
	font-weight: 700;
	margin-bottom: 10px;
	line-height: 1.4;
}

.article-content h3 a {
	color: var(--text);
}

.article-content h3 a:hover {
	color: var(--primary);
	text-decoration: none;
}

.article-content .article-excerpt {
	font-size: 0.95rem;
	color: var(--muted);
	margin-bottom: 16px;
	flex: 1;
}

.article-meta {
	display: flex;
	gap: 16px;
	font-size: 0.85rem;
	color: var(--muted);
	border-top: 1px solid var(--border);
	padding-top: 16px;
	flex-wrap: wrap;
}

.article-meta i {
	margin-right: 4px;
}

.article-meta .meta-item {
	display: inline-flex;
	align-items: center;
}

/* ============================================================
   10. Subscribe box
   ============================================================ */
.subscribe-box {
	background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
	border-radius: var(--radius);
	padding: 48px 32px;
	text-align: center;
	color: #fff;
	position: relative;
	overflow: hidden;
}

.subscribe-box::before {
	content: '';
	position: absolute;
	top: -50%;
	right: -20%;
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.subscribe-box h2 {
	font-size: 1.8rem;
	font-weight: 700;
	margin-bottom: 12px;
	position: relative;
	z-index: 1;
	color: #fff;
}

.subscribe-box h2 i {
	margin-right: 6px;
	color: #7dd3fc;
}

.subscribe-box p {
	color: #94a3b8;
	margin-bottom: 28px;
	position: relative;
	z-index: 1;
}

.subscribe-form {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
	position: relative;
	z-index: 1;
}

.subscribe-form input {
	padding: 12px 20px;
	border-radius: 999px;
	border: 1px solid #334155;
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	font-size: 1rem;
	min-width: 280px;
	outline: none;
	transition: border-color 0.2s;
	font-family: inherit;
}

.subscribe-form input::placeholder {
	color: #64748b;
}

.subscribe-form input:focus {
	border-color: var(--primary);
}

/* Subscription success modal */
.subscribe-modal {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.subscribe-modal.is-open {
	opacity: 1;
	visibility: visible;
}

.subscribe-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(2px);
}

.subscribe-modal-content {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: var(--radius);
	padding: 40px 32px 32px;
	text-align: center;
	box-shadow: 0 24px 64px rgba(15, 23, 42, 0.35);
	transform: translateY(12px) scale(0.97);
	transition: transform 0.25s ease;
}

.subscribe-modal.is-open .subscribe-modal-content {
	transform: translateY(0) scale(1);
}

.subscribe-modal-close {
	position: absolute;
	top: 12px;
	right: 16px;
	background: none;
	border: 0;
	font-size: 1.6rem;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	font-family: inherit;
}

.subscribe-modal-close:hover {
	color: #0f172a;
}

.subscribe-modal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	margin-bottom: 16px;
	border-radius: 50%;
	background: #dcfce7;
	color: #16a34a;
	font-size: 1.6rem;
	font-weight: 700;
}

.subscribe-modal-content h2 {
	font-size: 1.5rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #0f172a;
}

.subscribe-modal-content p {
	color: #64748b;
	margin-bottom: 24px;
}

body.has-modal {
	overflow: hidden;
}

/* ============================================================
   11. Single article
   ============================================================ */
.article-header {
	margin-bottom: 24px;
}

.article-title {
	font-size: clamp(1.9rem, 4vw, 2.6rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	margin-bottom: 14px;
}

.article-body {
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px;
	margin-bottom: 40px;
}

.article-body .featured-media {
	border-radius: 12px;
	overflow: hidden;
	margin: 0 auto 24px;
}

.article-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #1e293b;
}

.article-content h2 {
	font-size: 1.6rem;
	margin: 28px 0 12px;
	color: var(--text);
}

.article-content h3 {
	font-size: 1.3rem;
	margin: 24px 0 10px;
	color: var(--text);
}

.article-content a {
	text-decoration: underline;
	text-underline-offset: 2px;
}

.article-content blockquote {
	margin: 1.5em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--primary);
	background: var(--bg);
	border-radius: 0 12px 12px 0;
	font-style: italic;
}

.article-content img {
	border-radius: 12px;
}

.article-content table {
	font-size: 0.9rem;
	margin: 16px 0;
}

.article-content table th,
.article-content table td {
	border: 1px solid var(--border);
	padding: 10px 12px;
	text-align: left;
}

.article-content table th {
	background: #f1f5f9;
}

.tags {
	margin: 28px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tags a {
	background: var(--bg);
	color: var(--muted);
	padding: 5px 12px;
	border-radius: 999px;
	font-size: .82rem;
}

.tags a:hover {
	background: var(--primary);
	color: #fff;
	text-decoration: none;
}

.author-box {
	display: flex;
	gap: 16px;
	align-items: center;
	padding: 20px;
	background: var(--bg);
	border-radius: var(--radius);
	margin-bottom: 32px;
}

.author-box .avatar {
	border-radius: 50%;
}

.author-name {
	font-weight: 700;
}

.author-bio {
	color: var(--muted);
	font-size: .9rem;
	margin: 4px 0 0;
}

.post-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 32px;
}

.post-nav a {
	display: block;
	padding: 16px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--card-bg);
	color: var(--text);
	font-size: .9rem;
}

.post-nav a:hover {
	border-color: var(--primary);
	color: var(--primary);
	text-decoration: none;
}

.post-nav .nav-label {
	display: block;
	color: var(--muted);
	font-size: .78rem;
	margin-bottom: 4px;
}

.post-nav .nav-next {
	text-align: right;
}

.related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
}

/* ============================================================
   12. Pagination
   ============================================================ */
.pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin-top: 40px;
	flex-wrap: wrap;
}

.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: var(--card-bg);
	color: var(--text);
	font-weight: 500;
	font-size: .9rem;
}

.pagination .page-numbers.current {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	border-color: transparent;
	color: #fff;
}

.pagination .page-numbers:hover:not(.current) {
	border-color: var(--primary);
	color: var(--primary);
	text-decoration: none;
}

/* ============================================================
   13. Search form
   ============================================================ */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="search"] {
	flex: 1;
	padding: 10px 18px;
	border: 1px solid var(--border);
	border-radius: 999px;
	background: #fff;
	font-size: .92rem;
	font-family: inherit;
	min-width: 0;
}

.search-form input[type="search"]:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.search-form .search-submit {
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

/* ============================================================
   14. Widgets & sidebar
   ============================================================ */
.widget {
	background: var(--card-bg);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
	margin-bottom: 24px;
}

.widget-title {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--border);
}

.widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.widget ul li {
	padding: 7px 0;
	border-bottom: 1px solid var(--bg);
	font-size: .92rem;
}

.widget ul li:last-child {
	border-bottom: none;
}

.widget ul li a {
	color: var(--text);
}

.widget ul li a:hover {
	color: var(--primary);
}

/* Footer widgets */
.footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px;
	max-width: var(--max-width);
	margin: 0 auto;
	padding: 40px 20px 0;
}

.footer-widget {
	font-size: .9rem;
}

.footer-widget h3 {
	font-size: 1rem;
	margin-bottom: 12px;
}

.footer-widget ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-widget ul li {
	padding: 4px 0;
}

.footer-widget a {
	color: var(--muted);
}

.footer-widget a:hover {
	color: var(--primary);
}

/* ============================================================
   15. Comments
   ============================================================ */
.comments-section {
	margin-top: 40px;
}

.comments-title {
	font-size: 1.4rem;
}

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.comment-list .comment {
	padding: 16px 0;
	border-bottom: 1px solid var(--border);
}

.comment-list .children {
	list-style: none;
	padding-left: 32px;
}

.comment-author {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn {
	font-weight: 700;
	font-style: normal;
}

.comment-meta {
	font-size: .8rem;
	color: var(--muted);
}

.comment-reply-link {
	font-size: .82rem;
}

.comment-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: .9rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid var(--border);
	border-radius: 12px;
	font-size: .95rem;
	margin-bottom: 14px;
	font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--primary);
	box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.comment-form .submit {
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.comment-form .submit:hover {
	transform: translateY(-1px);
}

/* ============================================================
   16. Footer
   ============================================================ */
.footer {
	border-top: 1px solid var(--border);
	margin-top: 60px;
	padding: 32px 20px;
	text-align: center;
	color: var(--muted);
	font-size: 0.9rem;
}

.footer p {
	margin: 8px 0;
}

.footer a {
	color: var(--muted);
	margin: 0 8px;
	text-decoration: none;
}

.footer a:hover {
	color: var(--primary);
}

.footer i {
	margin-right: 4px;
}

.footer-menu {
	list-style: none;
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px;
	padding: 0;
	margin: 8px 0 0;
}

.footer-menu li {
	display: inline-block;
}

.footer-menu a {
	margin: 0 8px;
}

/* Back to top */
.back-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--primary), var(--accent));
	color: #fff;
	border: none;
	cursor: pointer;
	display: none;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shadow-lg);
	z-index: 90;
	font-size: 1rem;
}

.back-top.is-visible {
	display: inline-flex;
}

.back-top:hover {
	transform: translateY(-2px);
}

/* ============================================================
   17. 404
   ============================================================ */
.not-found {
	text-align: center;
	padding: 80px 0;
}

.not-found h1 {
	font-size: 4rem;
	margin-bottom: 8px;
}

.not-found .search-form {
	max-width: 420px;
	margin: 20px auto;
}

/* ============================================================
   18. Responsive
   ============================================================ */
@media (max-width: 900px) {
	.article-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.menu-toggle {
		display: inline-flex;
	}

	.nav {
		position: fixed;
		top: 64px;
		left: 0;
		right: 0;
		background: #fff;
		padding: 12px 20px 20px;
		box-shadow: var(--shadow);
		border-bottom: 1px solid var(--border);
		transform: translateY(-12px);
		opacity: 0;
		pointer-events: none;
		transition: all .22s ease;
		z-index: 55;
	}

	.nav.is-open {
		transform: translateY(0);
		opacity: 1;
		pointer-events: auto;
	}

	.nav ul {
		flex-direction: column;
		align-items: stretch;
		gap: 4px;
		width: 100%;
	}

	.nav a {
		padding: 10px 12px;
		font-size: 1rem;
		border-radius: 10px;
	}

	.nav a:hover {
		background: var(--bg);
	}

	.nav .sub-menu {
		position: static;
		box-shadow: none;
		border: none;
		padding-left: 16px;
		display: none;
		background: transparent;
		border-radius: 0;
	}

	.nav li.is-open > .sub-menu {
		display: block;
	}

	.footer-widgets {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.article-grid {
		grid-template-columns: 1fr;
	}

	.header-inner {
		flex-wrap: wrap;
		height: auto;
		padding: 12px 16px;
		gap: 10px;
	}

	.nav {
		top: 62px;
	}

	.hero {
		padding: 48px 16px 40px;
	}

	.hero h1 {
		font-size: 2rem;
	}

	.hero-stats {
		gap: 24px;
	}

	.stat-number {
		font-size: 1.5rem;
	}

	.section {
		padding: 32px 16px;
	}

	.section-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.article-thumb {
		height: 140px;
	}

	.article-body {
		padding: 24px 20px;
	}

	.post-nav {
		grid-template-columns: 1fr;
	}

	.post-nav .nav-next {
		text-align: left;
	}

	.subscribe-form input {
		width: 100%;
		min-width: 0;
	}

	.footer-widgets {
		grid-template-columns: 1fr;
		gap: 20px;
	}
}

@media (max-width: 480px) {
	.logo {
		font-size: 1.35rem;
	}

	.header-actions {
		margin-left: auto;
	}

	.lang-label {
		display: none;
	}
}

/* ============================================================
   19. Accessibility: reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}