:root {
  --primary-color: #4f46e5;
  --primary-hover: #4338ca;
  --secondary-color: #64748b;
  --background-color: #f8fafc;
  --card-bg: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-radius: 12px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-main);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
}

.main-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Header Section */
.header-section {
  text-align: center;
  margin-bottom: 40px;
}

.header-section h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-section p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Card Styling */
.calculator-card {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

/* Form Styling */
.form-group > label, legend {
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1rem;
}

.calculator-card .row {
  margin-bottom: 0;
}

.calculator-card .row:last-of-type {
  margin-bottom: 0;
}

.form-control, .custom-select {
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  padding: 0.625rem 1rem;
  height: auto;
  transition: all 0.2s ease;
}

.form-control:focus, .custom-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

/* Buttons */
.btn {
  border-radius: 8px;
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: #ef4444;
  border-color: #ef4444;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-outline-light:hover {  
  background-color: var(--primary-color);
  color: white;
}

/* Alerts */
.alert {
  border-radius: var(--border-radius);
  border: none;
  box-shadow: var(--shadow-sm);
}

.alert-success {
  background-color: #ecfdf5;
  color: #065f46;
}

.alert-danger {
  background-color: #fef2f2;
  color: #991b1b;
}

/* Custom Checkbox */
.custom-control-label::before {
  border-radius: 4px;
}

.custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Banner */
.banner-ad {
  border: 2px dashed #cbd5e1 !important;
  background-color: #f1f5f9;
  border-radius: var(--border-radius);
  transition: opacity 0.3s ease;
  position: relative;
}

.banner-ad a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.banner-ad a:hover {
  text-decoration: underline;
}

/* SEO Content Section */
.seo-content {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.seo-content .lead {
  color: var(--text-main);
  font-size: 1.1rem;
  font-weight: 500;
}

.seo-content a {
  color: var(--primary-color);
  text-decoration: none;
}

.seo-content a:hover {
  text-decoration: underline;
}

/* Footer spacer */
.spacer {
  height: 100px;
}

/* Article Styles */
.article-container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

.article-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
}

.article-header h1 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.3;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.article-content {
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0,0,0,0.05);
}

.article-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-color);
  color: var(--text-main);
}

.article-content h2:first-child {
  margin-top: 0;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1rem;
  color: var(--text-main);
  line-height: 1.8;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content strong {
  color: var(--text-main);
}

/* Step numbers */
.step-section {
  position: relative;
  padding-left: 60px;
  margin-bottom: 2rem;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.step-section h2 {
  margin-top: 0;
  padding-top: 0.25rem;
}

/* Table of Contents */
.toc-card {
  background: #f1f5f9;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.toc-card h3 {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.toc-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-card li {
  margin-bottom: 0.5rem;
}

.toc-card a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
}

.toc-card a:hover {
  text-decoration: underline;
}

/* CTA Card */
.cta-card {
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  border-radius: var(--border-radius);
  padding: 2rem;
  text-align: center;
  margin-top: 2.5rem;
  color: white;
}

.cta-card h3 {
  color: white;
  margin-bottom: 1rem;
}

.cta-card p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 1.5rem;
}

.cta-card .btn {
  background: white;
  color: var(--primary-color);
  font-weight: 600;
}

.cta-card .btn:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

/* Info boxes */
.info-box {
  background: #eff6ff;
  border-left: 4px solid var(--primary-color);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 8px 8px 0;
}

.info-box.warning {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.info-box.success {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.info-box p {
  margin: 0;
  font-size: 0.95rem;
}

/* Back link */
.back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link svg {
  margin-right: 0.5rem;
}

/* Footer Links Section */
.footer-links {
  background: #1e293b;
  padding: 3rem 0;
  margin-top: 3rem;
}

.footer-links h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  margin-top: 2rem;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.85rem;
}

/* Responsive for articles */
@media (max-width: 768px) {
  .article-content {
    padding: 1.5rem;
  }
  
  .article-header h1 {
    font-size: 1.75rem;
  }
  
  .step-section {
    padding-left: 50px;
  }
  
  .step-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
}

/* Importers Table Styles */
.importers-table-wrapper {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.importers-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: 0.9rem;
}

.importers-table thead {
  background: linear-gradient(135deg, var(--primary-color), #818cf8);
  color: white;
}

.importers-table th {
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.importers-table td {
  padding: 1rem;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
}

.importers-table tbody tr:hover {
  background-color: #f8fafc;
}

.importers-table tbody tr:last-child td {
  border-bottom: none;
}

.importers-table .logo-cell {
  width: 80px;
  min-width: 80px;
}

.importers-table .logo-cell img {
  width: 60px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  background: #f1f5f9;
}

.importers-table a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.importers-table a:hover {
  text-decoration: underline;
}

.importers-table small {
  color: var(--text-muted);
  display: block;
  font-size: 0.8rem;
}

.comparison-table td,
.comparison-table th {
  font-size: 0.85rem;
}

.comparison-table .price-highlight {
  color: #059669;
  font-weight: 600;
}

/* Company Cards */
.company-card {
  background: #f8fafc;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}

.company-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  color: var(--text-main);
}

.company-card p {
  margin-bottom: 1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.company-card .company-details {
  list-style: none;
  padding: 0;
  margin: 0;
}

.company-card .company-details li {
  padding: 0.25rem 0;
  font-size: 0.9rem;
}

.company-card .company-details a {
  color: var(--primary-color);
  text-decoration: none;
}

.company-card .company-details a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .calculator-card {
    padding: 1.5rem;
  }
  
  .header-section h1 {
    font-size: 2rem;
  }
  
  .importers-table {
    font-size: 0.8rem;
  }
  
  .importers-table th,
  .importers-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .importers-table .logo-cell {
    width: 50px;
    min-width: 50px;
  }
  
  .importers-table .logo-cell img {
    width: 40px;
    height: 30px;
  }
  
  .company-card {
    padding: 1rem;
  }
}

