/*
Theme Name: Clash Verge SEO
Theme URI: https://wordpress.org
Author: WordPress
Author URI: https://wordpress.org
Description: A high-performance, pixel-perfect WordPress theme optimized for Google SEO, Schema.org structured data, Core Web Vitals, and responsive devices. Exactly replicates the Clash client UI suite.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
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: clash-verge
Tags: one-column, two-columns, custom-menu, featured-images, full-site-editing, seo-friendly
*/

/* CSS Variables & Global Resets */
:root {
  --primary: #9333ea;
  --primary-hover: #7e22ce;
  --primary-light: #f3e8ff;
  --accent-pink: #c026d3;
  --gradient-btn: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
  --gradient-btn-hover: linear-gradient(135deg, #9333ea 0%, #6d28d9 100%);
  --gradient-banner: linear-gradient(135deg, #0d3227 0%, #061c16 100%);
  --bg-main: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #f1f5f9;
  --border-light: #e2e8f0;
  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --badge-green-bg: #ecfdf5;
  --badge-green-text: #059669;
  --badge-purple-bg: #f5f3ff;
  --badge-purple-text: #7c3aed;
  --badge-blue-bg: #eff6ff;
  --badge-blue-text: #2563eb;
  --footer-bg: #0f111a;
  --footer-border: #1e2230;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 20px -2px rgba(147, 51, 234, 0.08);
  --shadow-hover: 0 10px 25px -5px rgba(147, 51, 234, 0.15);
  --max-w: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-body);
  background-color: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-title);
}

.site-logo-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 24px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active, .current-menu-item > a {
  color: var(--primary);
  background-color: var(--primary-light);
}

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

.lang-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--text-body);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  cursor: pointer;
  background: #fff;
}

.btn-header-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.btn-header-download:hover {
  background: var(--gradient-btn-hover);
  box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
  transform: translateY(-1px);
}

/* Top Promo Banner */
.top-promo-wrap {
  margin-top: 16px;
  margin-bottom: 24px;
}

.promo-banner {
  background: linear-gradient(90deg, #092c22 0%, #0e3b2e 100%);
  border-radius: 16px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  box-shadow: 0 8px 24px rgba(9, 44, 34, 0.15);
}

.promo-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: #a7f3d0;
}

.promo-title {
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.promo-title .highlight {
  color: #34d399;
  font-size: 22px;
}

.promo-subtitle {
  font-size: 13px;
  color: #94a3b8;
  margin-top: 2px;
}

.promo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #34d399;
  color: #064e3b;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.promo-btn:hover {
  background: #6ee7b7;
  transform: translateY(-1px);
}

/* Secondary Affiliate Bar */
.affiliate-bar {
  background: #15332c;
  border-radius: 12px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin: 32px 0;
}

.aff-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.aff-tag {
  background: rgba(52, 211, 153, 0.2);
  color: #34d399;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.aff-text {
  font-size: 14px;
  color: #e2e8f0;
}

.aff-text strong {
  color: #fff;
}

.aff-btn {
  background: #fff;
  color: #0f172a;
  font-weight: 600;
  font-size: 13px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.aff-btn:hover {
  background: #f1f5f9;
}

/* Breadcrumb */
.breadcrumbs {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

/* Hero Section */
.hero-section {
  padding: 30px 0 50px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-title);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 16px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gradient-btn);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(168, 85, 247, 0.35);
}

.btn-primary-lg:hover {
  background: var(--gradient-btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(168, 85, 247, 0.45);
}

.btn-secondary-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-title);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-secondary-link:hover {
  color: var(--primary);
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.feat-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.feat-item svg {
  color: #10b981;
}

.hero-preview {
  position: relative;
  background: linear-gradient(135deg, #f5f3ff 0%, #fdf2f8 100%);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
  border: 1px solid rgba(243, 232, 255, 0.8);
}

.mockup-window {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.mockup-header {
  height: 36px;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
}

.mockup-dot.red { background: #f87171; }
.mockup-dot.yellow { background: #fbbf24; }
.mockup-dot.green { background: #34d399; }

.mockup-body {
  padding: 16px;
}

/* Client Download Grid */
.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 10px;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 36px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.platform-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.platform-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d8b4fe;
}

.platform-card.highlight-card {
  border-color: #a855f7;
  background: #faf5ff;
}

.platform-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f3e8ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.platform-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 6px;
}

.platform-version {
  font-size: 13px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.platform-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  flex-grow: 1;
}

.btn-card-action {
  width: 100%;
  padding: 9px 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s;
}

.btn-card-solid {
  background: var(--gradient-btn);
  color: #fff;
}

.btn-card-solid:hover {
  background: var(--gradient-btn-hover);
}

.btn-card-ghost {
  border: 1px solid var(--border-light);
  color: var(--text-body);
  background: #fff;
}

.btn-card-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

/* Feature Matrix Grid */
.core-features-section {
  padding: 60px 0;
}

.feature-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: all 0.3s;
}

.feature-box:hover {
  border-color: #e9d5ff;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feat-icon-sq {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 20px;
}

.feat-icon-sq.purple { background: #f3e8ff; color: #9333ea; }
.feat-icon-sq.blue { background: #e0f2fe; color: #0284c7; }
.feat-icon-sq.indigo { background: #e0e7ff; color: #4f46e5; }
.feat-icon-sq.pink { background: #fce7f3; color: #db2777; }
.feat-icon-sq.emerald { background: #d1fae5; color: #059669; }
.feat-icon-sq.violet { background: #ede9fe; color: #7c3aed; }

.feat-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}

.feat-detail {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Guides & Articles Section */
.guides-section {
  padding: 50px 0;
}

.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.article-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s;
}

.article-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.article-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.tag-blue { background: #eff6ff; color: #2563eb; }
.tag-purple { background: #f5f3ff; color: #7c3aed; }
.tag-red { background: #fef2f2; color: #dc2626; }
.tag-green { background: #f0fdf4; color: #16a34a; }

.article-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-title);
  line-height: 1.45;
  margin-bottom: 10px;
}

.article-card-title a:hover {
  color: var(--primary);
}

.article-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.article-card-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 4px;
}

.center-btn-wrap {
  text-align: center;
}

.btn-outline-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  background: #fff;
  transition: all 0.2s;
}

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

/* Callout Purple Card (CFW Banner) */
.cfw-banner-box {
  background: linear-gradient(135deg, #a855f7 0%, #c026d3 100%);
  border-radius: 16px;
  padding: 28px 36px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  box-shadow: 0 10px 30px rgba(168, 85, 247, 0.25);
}

.cfw-banner-content h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.cfw-banner-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.cfw-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-banner-white {
  background: #fff;
  color: #7c3aed;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
}

.btn-banner-ghost {
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Resource Section */
.resource-section {
  padding: 40px 0 60px;
}

.resource-header-label {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 4px;
}

.resource-header-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
}

.resource-header-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.resource-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.resource-box {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.resource-box-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.resource-box-desc {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-grow: 1;
}

.resource-box-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-title);
}

/* Download Page Specifics */
.download-hero-box {
  background: #fff7ed;
  border-radius: 16px;
  padding: 32px;
  margin: 28px 0;
  border: 1px solid #ffedd5;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
}

.download-hero-box.purple-theme {
  background: #faf5ff;
  border-color: #f3e8ff;
}

.dl-badge {
  font-size: 12px;
  font-weight: 700;
  color: #db2777;
  margin-bottom: 8px;
}

.dl-main-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 8px;
}

.dl-sub-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.dl-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-body);
}

.dl-features-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dl-features-list svg {
  color: #10b981;
}

.download-table-section {
  margin: 40px 0;
}

.table-platform-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 14px;
}

.table-responsive {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  margin-bottom: 28px;
}

.table-responsive th {
  background: #f8fafc;
  padding: 12px 20px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-light);
}

.table-responsive td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-body);
  vertical-align: middle;
}

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

.table-badge-rec {
  background: #f3e8ff;
  color: #7c3aed;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 8px;
}

.btn-table-dl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #475569;
}

.btn-table-dl:hover {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-table-dl.primary-dl {
  background: var(--gradient-btn);
  color: #fff;
}

.notice-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 36px 0;
}

.notice-box {
  background: #f8fafc;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 20px;
}

.notice-box-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-title);
}

.notice-box-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* FAQ Accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 32px 0 40px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-title);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  background: #f8fafc;
}

.faq-icon-arrow {
  transition: transform 0.25s ease;
  color: var(--text-muted);
}

.faq-item.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 24px;
  background: #fff;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px 24px;
  border-top: 1px solid var(--border-color);
}

/* Article Detail & Guides Layout */
.single-article-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 0 60px;
}

.article-header {
  margin-bottom: 30px;
}

.article-category-badge {
  display: inline-block;
  background: #f5f3ff;
  color: #7c3aed;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  margin-bottom: 12px;
}

.article-main-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-title);
  line-height: 1.3;
  margin-bottom: 16px;
}

.article-meta-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.article-content {
  font-size: 15px;
  line-height: 1.8;
  color: #334155;
}

.article-content h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-title);
  margin: 36px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.article-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-title);
  margin: 24px 0 12px;
}

.article-content p {
  margin-bottom: 18px;
}

.article-content ul, .article-content ol {
  margin: 0 0 20px 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-callout-warning {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
}

.article-callout-info {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 14px;
}

.article-nav-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 40px 0;
}

.nav-box-prev, .nav-box-next {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 16px 20px;
  transition: all 0.2s;
}

.nav-box-prev:hover, .nav-box-next:hover {
  border-color: var(--primary);
  background: var(--bg-alt);
}

.nav-box-label {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.nav-box-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-title);
}

/* Footer */
.site-footer {
  background-color: var(--footer-bg);
  color: #94a3b8;
  padding: 60px 0 30px;
  border-top: 1px solid var(--footer-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.footer-brand-desc {
  font-size: 13px;
  line-height: 1.7;
  color: #64748b;
  margin-bottom: 16px;
  max-width: 320px;
}

.footer-github-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.footer-github-link:hover {
  color: #fff;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-list a {
  font-size: 13px;
  color: #64748b;
  transition: color 0.2s;
}

.footer-nav-list a:hover {
  color: #cbd5e1;
}

.footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #475569;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .feature-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .article-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .platform-grid {
    grid-template-columns: 1fr;
  }
  .feature-cards-grid {
    grid-template-columns: 1fr;
  }
  .article-cards-grid {
    grid-template-columns: 1fr;
  }
  .download-hero-box {
    grid-template-columns: 1fr;
  }
  .cfw-banner-box {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .nav-menu {
    display: none; /* Can be toggled on mobile */
  }
}
