/* ==========================================================================
   KaportaBoyama - Premium Automotive Blog Styles
   Fonts: Inter (body), Playfair Display (headings)
   ========================================================================== */

/* --- CSS Variables --- */
:root {
  --primary: #e74c3c;
  --primary-dark: #c0392b;
  --primary-darker: #a93226;
  --primary-light: #fdedec;
  --primary-lighter: #fdf2f2;
  --accent: #3498db;
  --accent-light: #ebf5fb;
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-light: #cbd5e1;
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --bg-light: #f1f5f9;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -1px rgba(0,0,0,0.04);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -2px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.08), 0 10px 10px -5px rgba(0,0,0,0.03);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-body);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

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

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

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

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
  white-space: nowrap;
}

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

.logo-text {
  letter-spacing: -0.03em;
}

/* Navigation */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links > a,
.nav-links .dropdown-toggle-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-links .dropdown-toggle-link:hover {
  color: var(--text-primary);
  background: var(--bg-light);
}

.nav-cta-link {
  color: var(--primary) !important;
  font-weight: 600 !important;
}

.nav-cta-link:hover {
  background: var(--primary-light) !important;
  color: var(--primary-dark) !important;
}

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

.dropdown-toggle-link {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dropdown-toggle-link svg {
  transition: var(--transition-fast);
}

.nav-dropdown.show .dropdown-toggle-link svg {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  z-index: 100;
  max-height: 400px;
  overflow-y: auto;
}

.nav-dropdown.show .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
}

.dropdown-menu a:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dropdown-empty {
  padding: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border-radius: var(--radius-full);
  padding: 0 4px 0 16px;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.search-box.focused {
  border-color: var(--primary);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-box input {
  background: none;
  border: none;
  outline: none;
  padding: 8px 0;
  font-size: 13px;
  width: 180px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box button {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.search-box button:hover {
  color: var(--primary);
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.header-cta-btn:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.search-toggle,
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-secondary);
}

.nav-toggle {
  flex-direction: column;
  gap: 5px;
  width: 36px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Search */
.mobile-search {
  display: none;
  background: var(--bg-white);
  border-top: 1px solid var(--border);
  padding: 12px 20px;
}

.mobile-search.open { display: block; }

.mobile-search-form {
  display: flex;
  gap: 8px;
}

.mobile-search-form input {
  flex: 1;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
}

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

.mobile-search-form button {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 14px;
}

.mobile-search-close {
  background: none !important;
  color: var(--text-muted) !important;
  font-size: 24px;
  padding: 10px !important;
}

/* =====================================================
   HERO CTA SECTION
   ===================================================== */
.hero-cta-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #c0392b 50%, #e74c3c 100%);
  padding: 80px 0;
  text-align: center;
  color: #fff;
}

.hero-cta-content h1 {
  font-size: 42px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.hero-cta-content .text-accent {
  color: #ffd700;
}

.hero-cta-content p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =====================================================
   CATEGORY STRIP
   ===================================================== */
.category-strip {
  background: var(--bg-white);
  padding: 16px 0;
  border-bottom: 1px solid var(--border-light);
}

.category-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 4px 0;
}

.category-scroll::-webkit-scrollbar { display: none; }

.category-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: var(--transition-fast);
}

.category-chip:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

/* =====================================================
   POSTS SECTION / GRID
   ===================================================== */
.posts-section,
.search-page,
.category-page {
  padding: 48px 0 64px;
}

.section-title,
.page-title {
  font-size: 28px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.page-subtitle,
.search-info {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
}

/* Post Card */
.post-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

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

.post-card-link {
  display: block;
  color: inherit;
}

.post-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.post-card-image {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: var(--bg-light);
}

.post-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
  transform: scale(1.05);
}

.post-card-content {
  padding: 20px;
}

.post-card-category {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.post-card-title {
  font-size: 17px;
  font-family: var(--font-heading);
  margin-bottom: 8px;
  line-height: 1.35;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-date {
  font-size: 12px;
  color: var(--text-muted);
}

/* No posts */
.no-posts {
  text-align: center;
  padding: 64px 20px;
  color: var(--text-muted);
  font-size: 16px;
}

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-white);
  border: 1px solid var(--border);
  transition: var(--transition-fast);
}

.page-link:hover {
  background: var(--primary-light);
  color: var(--primary);
  border-color: var(--primary);
}

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

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb-nav {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  flex-wrap: wrap;
}

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

.breadcrumb-item a {
  color: var(--text-secondary);
}

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

.breadcrumb-item + .breadcrumb-item::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-light);
}

.breadcrumb-item.active {
  color: var(--text-primary);
  font-weight: 500;
}

/* =====================================================
   ARTICLE PAGE
   ===================================================== */
.article-page {
  padding: 40px 0 64px;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

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

.article-category {
  display: inline-block;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.article-category:hover {
  color: #fff;
  opacity: 0.9;
}

.article-title {
  font-size: 34px;
  line-height: 1.25;
  margin-bottom: 16px;
}

.article-meta {
  font-size: 14px;
  color: var(--text-muted);
}

.article-featured-image {
  margin-bottom: 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-featured-image img {
  width: 100%;
  display: block;
}

/* Article Content */
.article-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 24px;
  margin: 40px 0 16px;
}

.article-content h3 {
  font-size: 20px;
  margin: 32px 0 12px;
}

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

.article-content ul, .article-content ol {
  margin-bottom: 20px;
  padding-left: 24px;
}

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

.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 24px;
  margin: 24px 0;
  background: var(--primary-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Article CTA Banner */
.article-cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  padding: 32px;
  border-radius: var(--radius-lg);
  text-align: center;
  margin: 40px 0;
}

.article-cta-banner h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}

.article-cta-banner p {
  opacity: 0.9;
  margin-bottom: 20px;
}

.article-cta-banner .btn-primary {
  background: #fff;
  color: var(--primary);
  font-weight: 600;
}

.article-cta-banner .btn-primary:hover {
  background: #f0f0f0;
}

/* Article Tags */
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: var(--bg-light);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  font-size: 13px;
  transition: var(--transition-fast);
}

.tag:hover {
  background: var(--primary-light);
  color: var(--primary);
}

/* Article Share */
.article-share {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 32px 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.article-share span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  transition: var(--transition-fast);
}

.share-btn:hover {
  color: #fff;
  transform: translateY(-1px);
}

.share-twitter { background: #1da1f2; }
.share-twitter:hover { background: #0c85d0; }
.share-facebook { background: #4267B2; }
.share-facebook:hover { background: #365899; }
.share-whatsapp { background: #25d366; }
.share-whatsapp:hover { background: #1da851; }

/* Sidebar */
.article-sidebar {
  position: sticky;
  top: 88px;
}

.sidebar-widget {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
}

.sidebar-title {
  font-size: 16px;
  margin-bottom: 16px;
  font-family: var(--font-body);
  font-weight: 600;
}

.related-card {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
  color: inherit;
}

.related-card:last-child {
  border-bottom: none;
}

.related-card:hover {
  color: inherit;
}

.related-card img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.related-card h4 {
  font-size: 13px;
  font-family: var(--font-body);
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-card span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  border-color: transparent;
}

.sidebar-cta h3 {
  color: #fff;
  font-size: 18px;
  margin-bottom: 8px;
}

.sidebar-cta p {
  opacity: 0.9;
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  display: inline-block;
}

.sidebar-cta .btn-primary:hover {
  background: #f0f0f0;
}

/* =====================================================
   SEARCH PAGE
   ===================================================== */
.search-form-large {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.search-form-large input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: 16px;
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition-fast);
}

.search-form-large input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-form-large button {
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.search-form-large button:hover {
  background: var(--primary-dark);
}

/* =====================================================
   LEAD FORM
   ===================================================== */
.lead-form-section {
  padding: 48px 0 64px;
}

.lead-form-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.lead-form-header {
  text-align: center;
  margin-bottom: 40px;
}

.lead-form-header h1 {
  font-size: 34px;
  margin-bottom: 12px;
}

.lead-form-header p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.lead-form .form-section {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border-light);
}

.lead-form .form-section h3 {
  font-size: 18px;
  font-family: var(--font-body);
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

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

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.required {
  color: var(--primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-white);
  outline: none;
  transition: var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Parts Grid */
.parts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.part-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 14px;
}

.part-checkbox:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.part-checkbox input {
  accent-color: var(--primary);
  width: 18px;
  height: 18px;
}

.part-checkbox input:checked + span {
  color: var(--primary);
  font-weight: 500;
}

/* Form Messages */
.form-success {
  text-align: center;
  padding: 48px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
}

.form-success h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.form-error {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 16px;
  border: 1px solid #fecaca;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  background: #fff;
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-primary-lg:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.6);
  padding: 60px 0 0;
}

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

.footer-brand {
  margin-bottom: 16px;
}

.footer-brand .logo-text {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-heading);
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.9);
  margin-bottom: 20px;
  font-family: var(--font-body);
}

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

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.5);
  font-size: 14px;
  transition: var(--transition-fast);
}

.footer-col ul a:hover {
  color: #fff;
  padding-left: 4px;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
}

.footer-cta-btn:hover {
  background: var(--primary-dark);
  color: #fff !important;
  transform: translateY(-1px);
}

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#return-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  text-decoration: none;
}

#return-to-top.show {
  opacity: 1;
  visibility: visible;
}

#return-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  color: #fff;
  box-shadow: var(--shadow-xl);
}

/* =====================================================
   ANIMATIONS
   ===================================================== */
.post-card,
.search-result-card,
.related-card {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeInUp 0.5s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.1s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.2s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.3s; }

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

/* =====================================================
   ACCESSIBILITY
   ===================================================== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .header-inner { height: 56px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: 16px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .search-box,
  .header-cta-btn { display: none; }

  .search-toggle,
  .nav-toggle {
    display: flex;
  }

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

  .hero-cta-section { padding: 48px 0; }
  .hero-cta-content h1 { font-size: 28px; }
  .hero-cta-content p { font-size: 15px; }

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

  .article-title { font-size: 26px; }

  .form-row { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: 1fr; }

  .search-form-large {
    flex-direction: column;
  }

  .article-share { flex-wrap: wrap; }

  .section-title, .page-title { font-size: 24px; }

  .nav-dropdown .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg-light);
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin-top: 4px;
  }

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

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

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

  .hero-cta-content h1 { font-size: 24px; }

  .lead-form .form-section { padding: 20px; }

  .btn-primary-lg {
    padding: 14px 32px;
    font-size: 15px;
  }
}

/* =====================================================
   PRINT
   ===================================================== */
@media print {
  .site-header, .site-footer, #return-to-top, .pagination,
  .article-share, .article-tags, .article-cta-banner,
  .category-strip, .hero-cta-section, .mobile-search,
  .sidebar-cta { display: none; }
  .article-content { font-size: 12pt; }
  body { background: #fff; }
}
