:root {
  --primary-color: #0d6efd;
  --primary-hover: #0b5ed7;
  --primary-dark: #0a58ca;
  --accent-cyan: #0dcaf0;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --border-color: #e2e8f0;
  --highlight-gold: #f59e0b;
  --highlight-green: #10b981;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

/* Header */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(13, 110, 253, 0.2);
}

.brand-text .site-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  display: block;
  letter-spacing: -0.5px;
}

.brand-text .site-tagline {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
}

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

.search-box-header {
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
}

.search-box-header input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 160px;
  color: var(--text-main);
}

.search-box-header button {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 14px;
}

.header-nav {
  background: #ffffff;
  border-top: 1px solid #f1f5f9;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.nav-item {
  display: inline-block;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  border-bottom: 2px solid transparent;
  text-decoration: none !important;
}

.nav-item:hover, .nav-item.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* Layout */
.main-wrapper {
  max-width: 1200px;
  margin: 24px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
}

.content-area {
  min-width: 0;
}

.sidebar-area {
  min-width: 0;
}

/* Hero Section */
.hero-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 36px 32px;
  margin-bottom: 28px;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.3);
  position: relative;
  overflow: hidden;
}

.hero-box::after {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(13, 110, 253, 0.25) 0%, rgba(13, 110, 253, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(13, 202, 240, 0.15);
  color: var(--accent-cyan);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 14px;
  border: 1px solid rgba(13, 202, 240, 0.3);
}

.hero-box h1 {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 16px;
  color: #ffffff;
}

.hero-text {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 24px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.btn-primary-hero {
  background: var(--primary-color);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
  text-decoration: none !important;
  transition: transform 0.15s, background-color 0.15s;
}

.btn-primary-hero:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.btn-secondary-hero {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none !important;
  transition: background-color 0.15s;
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 4 Core Featured Providers Block */
.featured-providers-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.section-header-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 12px;
}

.section-header-title h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.section-badge {
  font-size: 12px;
  background: #fef3c7;
  color: #b45309;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.provider-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.provider-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  background: #ffffff;
  transition: box-shadow 0.2s, border-color 0.2s;
  position: relative;
}

.provider-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
  border-color: #cbd5e1;
}

.provider-card.primary-rank-1 {
  border: 2px solid #3b82f6;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 40%);
}

.provider-card.primary-rank-2 {
  border: 2px solid #10b981;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 40%);
}

.provider-card.primary-rank-3 {
  border: 2px solid #8b5cf6;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 40%);
}

.provider-card.primary-rank-4 {
  border: 2px solid #f59e0b;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 40%);
}

.card-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.provider-title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #1e293b;
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
}

.provider-card.primary-rank-1 .rank-badge { background: #2563eb; }
.provider-card.primary-rank-2 .rank-badge { background: #059669; }
.provider-card.primary-rank-3 .rank-badge { background: #7c3aed; }
.provider-card.primary-rank-4 .rank-badge { background: #d97706; }

.provider-name {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.provider-coupon-badge {
  font-size: 12px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px dashed #f87171;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
}

.provider-meta-row {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.meta-pill {
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
}

.meta-pill.price-pill {
  background: #fee2e2;
  color: #991b1b;
  font-weight: 700;
}

.provider-summary {
  font-size: 14px;
  color: #334155;
  margin-bottom: 16px;
  line-height: 1.6;
}

.provider-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 16px;
  background: #f8fafc;
  border-radius: 8px;
  overflow: hidden;
}

.provider-specs-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #e2e8f0;
}

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

.provider-specs-table td.spec-name {
  width: 25%;
  font-weight: 700;
  color: #475569;
}

.card-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.btn-official-reg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e11d48;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(225, 29, 72, 0.3);
  transition: transform 0.15s, background-color 0.15s;
}

.btn-official-reg:hover {
  background: #be123c;
  transform: translateY(-2px);
}

.btn-review-link {
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: underline;
}

/* Article Cards */
.article-list-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.article-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  transition: transform 0.15s, box-shadow 0.15s;
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.article-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}

.article-card-title a {
  color: #0f172a;
}

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

.article-card-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}

.article-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
}

/* FAQ Accordion - Expanded by default */
.faq-container {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
}

.faq-item {
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 0;
}

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

.faq-question {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-question::before {
  content: "Q:";
  color: var(--primary-color);
  font-weight: 800;
}

.faq-answer {
  font-size: 14px;
  color: #334155;
  line-height: 1.7;
  padding-left: 24px;
  background: #f8fafc;
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 6px;
}

/* Sidebar */
.sidebar-widget {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
}

.widget-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  border-left: 4px solid var(--primary-color);
  padding-left: 10px;
  margin-bottom: 14px;
}

.widget-list {
  list-style: none;
}

.widget-list li {
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.widget-list li:last-child {
  border-bottom: none;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 24px;
  margin-top: 48px;
  font-size: 14px;
}

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

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

.footer-brand h3 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 12px;
}

.footer-seo-paragraph {
  line-height: 1.8;
  margin-bottom: 12px;
  color: #cbd5e1;
}

.footer-disclosure {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
  font-size: 13px;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Article Detail Styles */
.article-header {
  margin-bottom: 24px;
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
}

.article-header h1 {
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 12px;
}

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

.article-body {
  background: #ffffff;
  padding: 32px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  font-size: 15px;
  line-height: 1.85;
  color: #1e293b;
}

.article-body h2 {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  margin: 28px 0 14px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 8px;
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1e293b;
  margin: 20px 0 10px;
}

.article-body p {
  margin-bottom: 16px;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .main-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar-area {
    order: 2;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .header-top {
    flex-direction: column;
    align-items: stretch;
  }
  .header-actions {
    justify-content: space-between;
  }
  .search-box-header input {
    width: 100%;
  }
}
