/* ================================================
   SVG Converter – Global Design System
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ─────────────────────────────── */
:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Light mode */
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --text-muted: #64748b;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-lg: rgba(0, 0, 0, 0.15);

  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 0.2s ease;
}

/* Dark mode removed – light mode only */

/* ── Reset ────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

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

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

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

button {
  cursor: pointer;
  font-family: inherit;
}

ul,
ol {
  list-style: none;
}

/* ── Utility Classes ──────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ── Header / Navbar ──────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 16px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
  white-space: nowrap;
}

.nav-logo .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}

.nav-logo .logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-links a {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--surface2);
  color: var(--primary);
}

/* ── More Tools Dropdown ─────────────────────── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.nav-dropdown-btn:hover,
.nav-dropdown.open .nav-dropdown-btn {
  background: var(--surface2);
  color: var(--primary);
}

.nav-dropdown-btn .dd-arrow {
  font-size: 0.6rem;
  transition: transform var(--transition);
  margin-top: 1px;
}

.nav-dropdown.open .dd-arrow {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 760px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px var(--shadow-lg);
  padding: 24px;
  display: none;
  z-index: 2000;
  animation: ddFadeIn 0.15s ease;
}

@keyframes ddFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

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

.dd-group-title {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}

.dd-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dd-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

.dd-links a:hover {
  background: var(--surface2);
  color: var(--primary);
}

.dd-links a .dd-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition);
}

.theme-toggle {
  display: none !important;
}

.nav-cta {
  padding: 8px 18px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--primary-dark);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 10px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  z-index: 1100;
  position: relative;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animated X when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile Menu Overlay ─────────────────────── */
.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 1050;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.menu-overlay.open {
  display: block;
  opacity: 1;
}

/* ── Mobile Menu Drawer ──────────────────────── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: 285px;
  max-width: 85vw;
  background: var(--surface);
  box-shadow: -4px 0 32px rgba(0, 0, 0, 0.15);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* Drawer header */
.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu-header .nav-logo {
  font-size: 1rem;
}

.mobile-menu-header .nav-logo .logo-img {
  width: 28px;
  height: 28px;
}

.mobile-menu-close {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface2);
  color: var(--text-muted);
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}

.mobile-menu-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* Scrollable body */
.mobile-menu-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 12px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-menu-body::-webkit-scrollbar {
  width: 4px;
}

.mobile-menu-body::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 2px;
}

/* Section label inside drawer */
.mobile-menu-label {
  padding: 14px 10px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--text-muted);
}

.mobile-menu-body a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--text);
  font-weight: 500;
  transition: all var(--transition);
}

.mobile-menu-body a:hover,
.mobile-menu-body a.active {
  background: rgba(99, 102, 241, 0.08);
  color: var(--primary);
}

.mobile-menu-body a .mm-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.mobile-menu-divider {
  height: 1px;
  background: var(--border);
  margin: 8px 0;
}

/* Footer CTA inside drawer */
.mobile-menu-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.mobile-menu-footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  transition: all var(--transition);
}

.mobile-menu-footer a:hover {
  background: var(--primary-dark);
  color: #fff;
}

/* ── Hero Section ─────────────────────────────── */
.hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  display: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
  color: var(--text);
}

.hero h1 .gradient-text {
  color: var(--primary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 32px;
}

.format-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.format-pill {
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.format-pill:hover,
.format-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── Upload / Converter Card ──────────────────── */
.converter-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 8px 40px var(--shadow);
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  background: var(--bg);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(99, 102, 241, 0.04);
}

.upload-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 2rem;
  transition: transform var(--transition);
}

.upload-zone:hover .upload-icon {
  transform: scale(1.08);
}

.upload-zone h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.upload-zone p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.upload-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  width: 100%;
}

.upload-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.83rem;
  font-weight: 500;
  transition: all var(--transition);
}

.upload-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

.upload-btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.upload-btn.primary:hover {
  background: var(--primary-dark);
}

/* URL input area */
.url-input-area {
  display: none;
  margin-top: 16px;
  gap: 8px;
  flex-direction: column;
}

.url-input-area.visible {
  display: flex;
}

.url-input-area input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
}

.url-input-area input:focus {
  border-color: var(--primary);
}

/* ── Settings Panel ───────────────────────────── */
.settings-panel {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: none;
}

.settings-panel.visible {
  display: block;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.setting-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.setting-group input,
.setting-group select {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.setting-group input:focus,
.setting-group select:focus {
  border-color: var(--primary);
}

.setting-group input[type="color"] {
  height: 44px;
  padding: 4px;
  cursor: pointer;
}

.setting-group input[type="range"] {
  padding: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.settings-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}

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

/* ── Format Selector (inline) ─────────────────── */
.format-selector {
  margin-top: 20px;
}

.format-selector label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.format-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.format-tab {
  padding: 8px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.format-tab:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.format-tab.selected {
  background: var(--primary);
  border-color: transparent;
  color: #fff;
}

/* ── Convert Button ───────────────────────────── */
.convert-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.btn-convert {
  flex: 1;
  min-width: 160px;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-convert:hover:not(:disabled) {
  background: var(--primary-dark);
}

.btn-convert:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-reset {
  padding: 14px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.btn-reset:hover {
  background: var(--border);
  color: var(--text);
}

/* ── Progress Bar ─────────────────────────────── */
.progress-wrap {
  margin-top: 20px;
  display: none;
}

.progress-wrap.visible {
  display: block;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ── Result Area ──────────────────────────────── */
.result-area {
  display: none;
  margin-top: 24px;
  padding: 24px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.result-area.visible {
  display: block;
}

.result-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.result-area h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--success);
}

.result-area p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--success);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-download:hover {
  background: #059669;
  color: #fff;
}

/* ── File Info Preview ───────────────────────── */
.file-preview {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface2);
  border-radius: var(--radius);
  margin-top: 12px;
}

.file-preview.visible {
  display: flex;
}

.file-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
  border: 1px solid var(--border);
}

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-size {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.file-remove {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}

.file-remove:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: var(--danger);
  color: var(--danger);
}

/* ── Toast Notification ───────────────────────── */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px var(--shadow-lg);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
  animation: slideUp 0.3s ease;
}

.toast.success {
  border-left: 4px solid var(--success);
}

.toast.error {
  border-left: 4px solid var(--danger);
}

.toast.info {
  border-left: 4px solid var(--primary);
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Section Layout ───────────────────────────── */
.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
}

/* ── Steps (How It Works) ─────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px var(--shadow);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

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

.step-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ── Features Grid ────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px var(--shadow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  display: block;
}

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

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Formats Section ──────────────────────────── */
.formats-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.format-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: all var(--transition);
  text-align: center;
}

.format-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow);
}

.format-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.badge-png {
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
}

.badge-jpg {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.badge-webp {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.badge-pdf {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.badge-gif {
  background: rgba(168, 85, 247, 0.12);
  color: #a855f7;
}

.badge-svg {
  background: rgba(99, 102, 241, 0.12);
  color: #6366f1;
}

.format-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Converter Links ──────────────────────────── */
.converter-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.converter-link {
  padding: 8px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}

.converter-link:hover,
.converter-link.current {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ── FAQ ──────────────────────────────────────── */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item.open {
  border-color: var(--primary);
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq-question:hover {
  background: var(--surface2);
}

.faq-question .chevron {
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item.open .chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 20px 18px;
}

.faq-answer p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── CTA / Banner ─────────────────────────────── */
.cta-section {
  background: var(--primary);
  padding: 60px 0;
  border-radius: var(--radius-xl);
  margin: 0 20px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 24px;
}

.btn-cta-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: #fff;
  color: var(--primary);
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  color: var(--primary);
}

/* ── Footer ───────────────────────────────────── */
/* ── Footer ─────────────────────────────────────── */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 0;
  margin-top: 80px;
}

/* Top strip with tagline */
.footer-tagline {
  text-align: center;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.footer-tagline p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 8px auto 0;
  line-height: 1.6;
}

/* Main grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  font-size: 1.05rem;
}

.footer-brand .nav-logo .logo-img {
  width: 30px;
  height: 30px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-top: 12px;
  max-width: 260px;
}

/* Social links */
.footer-social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: all var(--transition);
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

/* Column headings */
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}

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

/* Bottom bar */
.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-back-top {
  position: absolute;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-back-top:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(99, 102, 241, 0.06);
}

/* ── Responsive Footer ──────────────────────── */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand p {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  .site-footer {
    padding: 40px 0 0;
    margin-top: 48px;
  }

  .footer-tagline {
    padding-bottom: 32px;
    margin-bottom: 32px;
  }

  .footer-tagline p {
    font-size: 0.875rem;
  }

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

  .footer-brand {
    grid-column: auto;
    text-align: center;
  }

  .footer-brand p {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-col {
    text-align: center;
  }

  .footer-col ul {
    align-items: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding-bottom: 30px;
  }

  .footer-back-top {
    position: static;
    order: -1;
  }
}

/* ── Inner pages (About, Privacy, etc.) ───────── */
.page-hero {
  padding: 60px 0 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.prose {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 80px;
}

.prose h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin: 36px 0 12px;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 24px 0 8px;
}

.prose p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

.prose ul {
  margin-bottom: 16px;
  padding-left: 20px;
  list-style: disc;
}

.prose ul li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  line-height: 1.7;
}

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

/* ── Contact Form ─────────────────────────────── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: 0 8px 32px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 700;
  transition: all var(--transition);
}

.btn-submit:hover {
  background: var(--primary-dark);
}

.form-success {
  display: none;
  text-align: center;
  padding: 20px;
  color: var(--success);
  font-weight: 600;
}

.form-success.visible {
  display: block;
}

/* ── Stats Row ────────────────────────────────── */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 40px;
  margin-bottom: 48px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .converter-card {
    padding: 20px 16px;
    border-radius: var(--radius-lg);
  }

  .upload-zone {
    padding: 28px 16px;
  }

  .upload-methods {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-btn {
    justify-content: center;
    width: 100%;
  }

  .format-tabs {
    gap: 6px;
  }

  .format-tab {
    padding: 8px 12px;
    font-size: 0.8rem;
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .convert-actions {
    flex-direction: column;
  }

  .btn-convert,
  .btn-reset {
    width: 100%;
    min-width: unset;
  }

  .format-pills {
    gap: 6px;
  }

  .format-pill {
    font-size: 0.75rem;
    padding: 5px 10px;
  }

  .hero h1 {
    font-size: clamp(1.6rem, 6vw, 2.4rem);
  }

  .hero-desc {
    font-size: 0.95rem;
    padding: 0 8px;
  }

  .section {
    padding: 56px 0;
  }

  .cta-section {
    margin: 0 0;
    border-radius: 0;
  }

  .contact-form {
    padding: 24px;
  }

  .settings-grid {
    grid-template-columns: 1fr 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .converter-links {
    gap: 6px;
  }

  .converter-link {
    font-size: 0.78rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 32px;
  }

  .section {
    padding: 48px 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    gap: 6px 24px;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .converter-card {
    padding: 16px 12px;
  }

  .upload-zone {
    padding: 24px 12px;
  }

  .upload-icon {
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
  }

  .upload-zone h3 {
    font-size: 1rem;
  }

  .format-tabs {
    flex-wrap: wrap;
    gap: 6px;
  }

  .format-tab {
    flex: 1 1 calc(33% - 6px);
  }

  .section-header {
    margin-bottom: 32px;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px 16px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .nav-logo {
    font-size: 1.05rem;
  }

  .nav-logo .logo-img {
    width: 28px;
    height: 28px;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .result-area {
    padding: 18px 14px;
  }

  .btn-download {
    width: 100%;
    justify-content: center;
  }
}

/* ── Loading Spinner ──────────────────────────── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

/* ── Scrollbar ────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ── SEO Content Section ──────────────────────────────── */
.seo-content-section {
  background: var(--bg);
  padding: 60px 0;
}

.seo-content-section h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.5rem;
  line-height: 1.35;
}

.seo-content-section h2:first-of-type {
  margin-top: 0;
}

.seo-content-section h3 {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
  line-height: 1.4;
}

.seo-content-section p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 0.25rem;
  max-width: 800px;
}

@media (max-width: 768px) {
  .seo-content-section {
    padding: 40px 0;
  }

  .seo-content-section h2 {
    font-size: 1.05rem;
  }

  .seo-content-section h3 {
    font-size: 0.95rem;
  }

  .seo-content-section p {
    font-size: 0.875rem;
  }
}

/* ═══════════════════════════════════════════════════
   BLOG STYLES
   ═══════════════════════════════════════════════════ */

/* ── Blog Layout ─────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 48px 0 80px;
}

/* ── Breadcrumb ──────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 16px 0 8px;
  flex-wrap: wrap;
}

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

.breadcrumb span {
  opacity: 0.5;
}

/* ── Blog Card Grid ──────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.blog-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  background: var(--border);
}

.blog-card-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.blog-cat-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 999px;
}

.blog-card-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.blog-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 16px;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  transition: gap 0.2s;
}

.blog-read-more:hover {
  gap: 10px;
}

/* ── Sidebar ─────────────────────────────────────── */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sidebar-widget h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.popular-post {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.popular-post:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.popular-post-img {
  width: 60px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--border);
}

.popular-post-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.popular-post-date {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 3px;
}

.cat-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.cat-item:last-child {
  border-bottom: none;
}

.cat-item a {
  color: inherit;
}

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

.cat-count {
  font-size: 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}

/* ── Blog Pagination ─────────────────────────────── */
.blog-pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--surface);
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.page-btn:hover,
.page-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ── Blog Post Page ──────────────────────────────── */
.post-hero {
  padding: 40px 0 0;
}

.post-hero .blog-cat-badge {
  margin-bottom: 16px;
  display: inline-block;
}

.post-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.post-featured-img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 40px;
}

.post-content {
  max-width: 720px;
}

.post-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 0.6rem;
  color: var(--text);
}

.post-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.post-content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.post-content ul,
.post-content ol {
  margin: 0.5rem 0 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.post-content li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.post-content a {
  color: var(--primary);
}

.post-content strong {
  color: var(--text);
}

.post-faq {
  margin-top: 2rem;
}

.post-faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
}

.post-faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 14px 18px;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-faq-a {
  padding: 0 18px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Related Posts */
.related-posts {
  margin-top: 56px;
}

.related-posts h2 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Responsive Blog ─────────────────────────────── */
@media (max-width: 960px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    display: none;
  }

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

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

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    padding: 24px 0 48px;
  }
}

/* ── Blog CTA Banner ─────────────────────────────── */
.blog-cta-banner {
  margin: 2.5rem 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.08) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 28px 24px;
}

.blog-cta-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.blog-cta-inner>i {
  font-size: 1.5rem;
  color: var(--primary);
  flex-shrink: 0;
}

.blog-cta-inner>div {
  flex: 1;
  min-width: 200px;
}

.blog-cta-inner>div strong {
  font-size: 1rem;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}

.blog-cta-inner>div p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

.blog-cta-inner .nav-cta {
  flex-shrink: 0;
  font-size: 0.85rem;
  padding: 10px 24px;
}

.blog-card-cta {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.06) 0%, rgba(139, 92, 246, 0.06) 100%);
  border: 1px dashed rgba(99, 102, 241, 0.3);
}

@media (max-width: 600px) {
  .blog-cta-inner {
    flex-direction: column;
    text-align: center;
  }

  .blog-cta-inner .nav-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* ── Fix: CTA button text always white, even inside post-content ── */
.post-content .nav-cta,
.blog-cta-inner .nav-cta,
.blog-card-cta .nav-cta {
  color: #fff !important;
  display: inline-flex;
  align-items: center;
}

.post-content .nav-cta:hover,
.blog-cta-inner .nav-cta:hover,
.blog-card-cta .nav-cta:hover {
  color: #fff !important;
  background: var(--primary-dark);
}

/* ── blog.html header: nav-actions same as homepage ── */
.header-inner .nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}