/*
Theme Name: BOB Catalog
Theme URI: https://www.bobcatalog.com/
Author: Trae AI
Author URI: https://trae.ai
Description: A replica theme for Bob catalog (Heavy Dark Theme)
Version: 1.8.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: bobcatalog
*/

:root {
  /* Light Theme - Matching reference site */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --muted: #666666;
  --text: #1a1a1a;
  --primary: #2f6fed;
  --primary-hover: #1f57c9;
  --border: #e0e0e0;
  --radius: 4px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.5;
}

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

a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--primary); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}
.btn-primary:hover { background: var(--primary-hover); }

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

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: -0.5px; text-transform: uppercase; color: #2f6fed; }

/* Navigation */
.nav { display: none; }
@media(min-width: 768px) {
  .nav { display: flex; align-items: center; gap: 20px; }
  .nav ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 20px; }
  .nav a { 
    font-weight: 600; 
    font-size: 14px; 
    text-transform: uppercase; 
    color: #666666;
    padding: 10px 20px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    letter-spacing: 0.5px;
  }
  
  /* Menu item normal state - deep/light alternating pattern */
  .nav li:nth-child(odd) a { 
    background-color: #1f57c9; 
    color: #ffffff;
    border-color: #1a4bb8;
    box-shadow: 0 2px 8px rgba(31, 87, 201, 0.15);
  }
  
  .nav li:nth-child(even) a { 
    background-color: #f8fbff; 
    color: #1f57c9;
    border-color: #d0e3ff;
    box-shadow: 0 2px 8px rgba(31, 87, 201, 0.08);
  }
  
  /* Menu item hover state - enhanced visual feedback */
  .nav li:nth-child(odd) a:hover { 
    background-color: #1a4bb8; 
    border-color: #1440a0;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 87, 201, 0.25);
  }
  
  .nav li:nth-child(even) a:hover { 
    background-color: #e8f0fe; 
    border-color: #1f57c9;
    color: #1a4bb8;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(31, 87, 201, 0.2);
  }
  
  /* Menu item active/selected state - unified professional look */
  .nav a.current-menu-item,
  .nav a.current-menu-ancestor,
  .nav a.current_page_parent {
    background-color: #1f57c9 !important;
    color: #ffffff !important;
    border-color: #1440a0 !important;
    box-shadow: 0 4px 16px rgba(31, 87, 201, 0.3) !important;
    position: relative;
  }
  
  /* Active state hover - enhanced feedback */
  .nav a.current-menu-item:hover,
  .nav a.current-menu-ancestor:hover,
  .nav a.current_page_parent:hover {
    background-color: #1440a0 !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(31, 87, 201, 0.4) !important;
  }
}

/* Responsive adjustments for smaller screens */
@media(min-width: 768px) and (max-width: 1024px) {
  .nav ul { gap: 14px; }
  .nav a { 
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 6px;
  }
}

@media(min-width: 1025px) and (max-width: 1280px) {
  .nav ul { gap: 18px; }
  .nav a { 
    padding: 9px 18px;
    font-size: 14px;
    border-radius: 7px;
  }
}

/* Hero */
.hero {
  padding: 60px 0;
  text-align: center;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}
.hero h1 { 
  font-size: 36px; 
  margin: 0 0 10px; 
  font-weight: 700; 
  color: #2f6fed;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}
.subtitle { 
  color: #666666; 
  font-size: 18px; 
  margin-bottom: 0;
  font-weight: 500;
}

/* Search */
.search-field {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-field input {
  flex: 1;
  background: transparent;
  border: none;
  color: #1a1a1a;
  padding: 10px 15px;
  font-size: 16px;
  outline: none;
}

/* Brands Grid (New) */
.brands-section {
  padding: 60px 0;
  background: #ffffff;
}
.brands-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.brand-card {
  background: #ffffff;
  border: 1px solid var(--border);
  padding: 30px;
  text-align: center;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.2s ease;
}
.brand-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 4px 12px rgba(47,111,237,0.15); }
.brand-name { font-weight: 700; font-size: 16px; text-transform: uppercase; margin-bottom: 5px; color: #1a1a1a; }
.brand-count { color: var(--primary); font-size: 14px; font-family: monospace; }

/* Sections */
section { padding: 60px 0; border-bottom: 1px solid var(--border); }
section h2 { font-size: 28px; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; color: #1a1a1a; }

/* Why choose us section background lighter */
.why-us {
  background: #f5f5f5;
}

/* Footer */
.site-footer { padding: 40px 0; text-align: center; color: var(--muted); font-size: 14px; background: #ffffff; border-top: 1px solid var(--border); }

/* Catalog Section */
.catalog-section {
  padding: 40px 0;
  background: #f5f5f5;
}

/* Catalog List */
.catalog-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.catalog-card {
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.catalog-card:hover {
  border-color: #2f6fed;
  box-shadow: 0 4px 12px rgba(47,111,237,0.15);
  transform: translateY(-2px);
}

.catalog-part-number {
  font-family: monospace;
  color: #666666;
  font-size: 13px;
  margin-bottom: 10px;
  font-weight: 500;
}

.catalog-part-name {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
  line-height: 1.4;
  flex: 1;
  text-transform: uppercase;
}

.catalog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.catalog-price {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 16px;
}

.catalog-view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 20px;
  background: #2f6fed;
  color: #ffffff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}

.catalog-view-btn:hover {
  background: #1f57c9;
  color: #ffffff;
}

/* Product Single Layout */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}
@media(min-width: 768px) {
  .product-grid {
    grid-template-columns: 350px 1fr;
    gap: 40px;
  }
}

.product-gallery {
  border: 1px solid var(--border);
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.2;
  color: #1a1a1a;
}

.product-subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
  text-transform: uppercase;
  font-weight: 500;
}

.price-block-large {
  background: #f5f5f5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.oem-price {
  font-size: 14px;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 5px;
}

.selling-price {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.actions-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  margin-bottom: 20px;
}

.quantity-wrapper {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
}

.qty-input {
  width: 100%;
  background: transparent;
  border: none;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.unit {
  color: var(--muted);
  font-size: 12px;
}

.btn-block {
  width: 100%;
  height: 48px;
  font-size: 16px;
}

.product-specs {
  margin-top: 30px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.spec-label {
  color: var(--muted);
  font-weight: 500;
}

.spec-value {
  color: #1a1a1a;
  text-align: right;
}

.product-disclaimer {
  margin-top: 40px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  font-style: italic;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

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

.catalog-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 4px;
  background: #ffffff;
  color: #1a1a1a;
  text-decoration: none;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.catalog-pagination .page-numbers:hover {
  border-color: #2f6fed;
  color: #2f6fed;
}

.catalog-pagination .page-numbers.current {
  background: #2f6fed;
  color: #ffffff;
  border-color: #2f6fed;
}

/* Form Styles */
.form-table th { color: var(--muted); }
.regular-text { 
  background: #ffffff; 
  border: 1px solid var(--border); 
  color: #1a1a1a; 
  padding: 8px;
}

/* Breadcrumbs */
.breadcrumbs {
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}
.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumbs a:hover {
  color: var(--primary);
}

/* Contact Section */
.contact {
  padding: 60px 0;
  background: #ffffff;
}

.contact h2 {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 40px 0;
  color: #1a1a1a;
}

/* Contact Form 7 Styles */
.contact-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.wpcf7 {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.wpcf7-form p {
  margin: 0 !important;
}

.wpcf7-form-control {
  width: 100% !important;
  padding: 12px 15px !important;
  background: #ffffff !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: #1a1a1a !important;
  font-size: 15px !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box !important;
}

.wpcf7-form-control:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.1) !important;
}

.wpcf7-textarea {
  min-height: 120px !important;
  resize: vertical;
}

.wpcf7-submit {
  background: var(--primary) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: var(--radius) !important;
  padding: 12px 24px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  cursor: pointer !important;
  transition: background 0.2s ease, transform 0.1s ease;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto !important;
}

.wpcf7-submit:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-1px);
}

.wpcf7-submit:active {
  transform: translateY(0);
}

.wpcf7-not-valid-tip {
  color: #ef4444 !important;
  font-size: 13px !important;
  margin-top: 5px !important;
}

.wpcf7-response-output {
  margin: 15px 0 0 0 !important;
  padding: 12px 15px !important;
  border-radius: var(--radius) !important;
  font-size: 14px !important;
}

.wpcf7-mail-sent-ok {
  background: #dcfce7 !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
}

.wpcf7-validation-errors,
.wpcf7-mail-sent-ng {
  background: #fee2e2 !important;
  color: #991b1b !important;
  border: 1px solid #fecaca !important;
}

.wpcf7-spinner {
  display: none !important;
}

.wpcf7 label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
  color: #1a1a1a;
  font-size: 14px;
}

/* Product Description */
.product-description {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  color: #1a1a1a;
}

.product-description h2,
.product-description h3,
.product-description h4 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.product-description p {
  margin-bottom: 20px;
}

.product-description ul,
.product-description ol {
  margin-bottom: 20px;
  padding-left: 30px;
}

.product-description li {
  margin-bottom: 10px;
}

.product-description img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 20px 0;
}

/* Standard Article Styles */
.article-single {
  max-width: 800px;
  margin: 0 auto;
}

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

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.article-categories {
  display: flex;
  gap: 10px;
}

.article-category {
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.article-category:hover {
  background: var(--primary);
  color: #ffffff;
}

.article-date,
.article-author {
  color: var(--muted);
}

.article-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #1a1a1a;
}

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

.article-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
}

.article-content h2 {
  font-size: 32px;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.article-content h3 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

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

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 30px 0;
}

.article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--muted);
}

.article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.article-tags {
  margin-bottom: 20px;
}

.tag-label {
  font-weight: 600;
  color: #1a1a1a;
  margin-right: 10px;
}

.article-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.share-label {
  font-weight: 600;
  color: #1a1a1a;
}

.share-link {
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.share-facebook {
  background: #1877f2;
  color: #ffffff;
}

.share-facebook:hover {
  background: #0d65d9;
}

.share-twitter {
  background: #1da1f2;
  color: #ffffff;
}

.share-twitter:hover {
  background: #0c85d0;
}

.share-linkedin {
  background: #0077b5;
  color: #ffffff;
}

.share-linkedin:hover {
  background: #005885;
}

/* Article Related Grid */
.article-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.article-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(47,111,237,0.15);
  transform: translateY(-2px);
}

.article-card-image {
  position: relative;
  overflow: hidden;
}

.article-card-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-card-thumbnail {
  transform: scale(1.05);
}

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

.article-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.article-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.article-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.article-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.article-card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

/* Blog Article Styles */
.blog-single {
  max-width: 800px;
  margin: 0 auto;
}

.blog-header {
  margin-bottom: 40px;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.blog-categories {
  display: flex;
  gap: 10px;
}

.blog-category {
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.blog-category:hover {
  background: var(--primary);
  color: #ffffff;
}

.blog-date,
.blog-author {
  color: var(--muted);
}

.blog-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #1a1a1a;
}

.blog-featured-image {
  margin-bottom: 30px;
  border-radius: var(--radius);
  overflow: hidden;
}

.blog-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.blog-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
}

.blog-content h2 {
  font-size: 32px;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.blog-content h3 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.blog-content p {
  margin-bottom: 25px;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 30px 0;
}

.blog-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--muted);
}

.blog-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.blog-tags {
  margin-bottom: 20px;
}

.blog-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

/* Blog Related Grid */
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.blog-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(47,111,237,0.15);
  transform: translateY(-2px);
}

.blog-card-image {
  position: relative;
  overflow: hidden;
}

.blog-card-thumbnail {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumbnail {
  transform: scale(1.05);
}

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

.blog-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.blog-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.blog-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.blog-card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: var(--primary-hover);
}

/* Repair Article Styles */
.repair-article {
  max-width: 900px;
  margin: 0 auto;
}

.repair-article-header {
  margin-bottom: 40px;
}

.repair-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}

.repair-article-categories {
  display: flex;
  gap: 10px;
}

.repair-article-category {
  background: var(--surface-2);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  transition: background 0.2s ease;
}

.repair-article-category:hover {
  background: var(--primary);
  color: #ffffff;
}

.repair-article-title {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 20px 0;
  color: #1a1a1a;
}

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

.repair-article-thumbnail {
  width: 100%;
  height: auto;
  display: block;
}

.repair-article-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  background: var(--surface-2);
  padding: 20px;
  border-radius: var(--radius);
  margin-bottom: 30px;
}

.repair-info-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 150px;
}

.repair-info-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--muted);
}

.repair-info-value {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.repair-difficulty-easy {
  color: #16a34a;
}

.repair-difficulty-medium {
  color: #f59e0b;
}

.repair-difficulty-hard {
  color: #dc2626;
}

.repair-safety-notice {
  display: flex;
  gap: 15px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
}

.safety-icon {
  font-size: 32px;
  flex-shrink: 0;
}

.safety-content {
  flex: 1;
}

.safety-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #92400e;
}

.safety-text {
  margin: 0;
  color: #78350f;
  line-height: 1.6;
}

.repair-article-content {
  font-size: 18px;
  line-height: 1.8;
  color: #1a1a1a;
}

.repair-article-content h2 {
  font-size: 32px;
  margin-top: 50px;
  margin-bottom: 25px;
  color: #1a1a1a;
}

.repair-article-content h3 {
  font-size: 26px;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #1a1a1a;
}

.repair-article-content h4 {
  font-size: 22px;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #1a1a1a;
}

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

.repair-article-content ul,
.repair-article-content ol {
  margin-bottom: 25px;
  padding-left: 30px;
}

.repair-article-content li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.repair-article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 30px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.repair-article-content blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  margin: 30px 0;
  font-style: italic;
  color: var(--muted);
  background: var(--surface-2);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.repair-article-content code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace;
  font-size: 0.9em;
}

.repair-article-content pre {
  background: #1a1a1a;
  color: #ffffff;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 30px 0;
}

.repair-article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

.repair-article-toc {
  background: var(--surface-2);
  padding: 25px;
  border-radius: var(--radius);
  margin: 40px 0;
}

.toc-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: #1a1a1a;
}

.repair-article-footer {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.repair-article-tags {
  margin-bottom: 20px;
}

.repair-article-share {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.repair-article-helpful {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.helpful-label {
  font-weight: 600;
  color: #1a1a1a;
}

.helpful-btn {
  padding: 10px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
  color: #1a1a1a;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

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

.helpful-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Repair Related Grid */
.repair-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.repair-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.repair-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(47,111,237,0.15);
  transform: translateY(-2px);
}

.repair-card-image {
  position: relative;
  overflow: hidden;
}

.repair-card-thumbnail {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.repair-card:hover .repair-card-thumbnail {
  transform: scale(1.05);
}

.repair-card-difficulty {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.repair-card-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.repair-card-meta {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
}

.repair-card-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.repair-card-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.repair-card-excerpt {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
  flex: 1;
}

.repair-card-link {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.repair-card-link:hover {
  color: var(--primary-hover);
}

/* Blog Archive Page Styles */
.blog-hero {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
}

.blog-hero-inner {
  max-width: 800px;
}

.blog-hero-title {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 15px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.blog-hero-description {
  font-size: 18px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

.blog-archive-section {
  background: #ffffff;
}

.blog-categories-filter {
  background: #f9f9f9;
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 40px;
  border: 1px solid var(--border);
}

.blog-filter-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  color: #1a1a1a;
  text-transform: uppercase;
}

.blog-categories-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-category-filter-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 25px;
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s ease;
}

.blog-category-filter-item:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.15);
}

.blog-category-filter-item.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.blog-category-filter-item.active .blog-category-count {
  background: rgba(255, 255, 255, 0.2);
}

.blog-archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.blog-archive-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.blog-archive-card:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(47, 111, 237, 0.15);
  transform: translateY(-4px);
}

.blog-archive-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-archive-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-archive-card:hover .blog-archive-thumbnail {
  transform: scale(1.08);
}

.blog-archive-content {
  padding: 25px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-archive-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
  font-size: 13px;
}

.blog-archive-category {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.blog-archive-date {
  color: var(--muted);
  font-weight: 500;
}

.blog-archive-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.3;
}

.blog-archive-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-archive-title a:hover {
  color: var(--primary);
}

.blog-archive-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 20px;
  flex: 1;
}

.blog-archive-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.blog-archive-link:hover {
  color: var(--primary-hover);
}

.blog-archive-link::after {
  content: '→';
  margin-left: 8px;
  transition: transform 0.2s ease;
}

.blog-archive-link:hover::after {
  transform: translateX(4px);
}

.blog-archive-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 18px;
}

.blog-archive-pagination {
  margin-top: 40px;
  text-align: center;
}

.blog-archive-pagination .page-numbers {
  display: inline-flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-archive-pagination .page-numbers li {
  display: inline-block;
}

.blog-archive-pagination .page-numbers a,
.blog-archive-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: #1a1a1a;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.2s ease;
}

.blog-archive-pagination .page-numbers a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(47, 111, 237, 0.15);
}

.blog-archive-pagination .page-numbers .current {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.blog-archive-pagination .page-numbers .dots {
  background: transparent;
  border: none;
  color: var(--muted);
}

/* Related Articles List */
.related-articles-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.related-article-item {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.related-article-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(47, 111, 237, 0.15);
  transform: translateY(-2px);
}

.related-article-content {
  flex: 1;
}

.related-article-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}

.related-article-category {
  background: var(--surface-2);
  color: #1a1a1a;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.related-article-date {
  font-size: 13px;
  color: var(--muted);
}

.related-article-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.related-article-title a {
  color: #1a1a1a;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.related-article-excerpt {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 15px;
  font-size: 15px;
}

.related-article-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.related-article-link:hover {
  color: #2f6fed;
  transform: translateX(3px);
}

/* Responsive Styles */
@media (max-width: 768px) {
  .article-title,
  .repair-article-title {
    font-size: 32px;
  }

  .article-content,
  .repair-article-content {
    font-size: 16px;
  }

  .article-related-grid,
  .repair-related-grid {
    grid-template-columns: 1fr;
  }

  .repair-article-info-bar {
    flex-direction: column;
  }

  .repair-info-item {
    min-width: 100%;
  }

  .article-share,
  .repair-article-share {
    flex-direction: column;
    align-items: flex-start;
  }

  .share-link {
    width: 100%;
    text-align: center;
  }

  .related-article-item {
    padding: 20px;
  }

  .related-article-title {
    font-size: 18px;
  }

  .related-article-excerpt {
    font-size: 14px;
  }
}
