/* Google-like Material Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;700&display=swap');

:root {
  /* Brand Colors */
  --primary: #0044CC;
  /* Standard Blue for Links/Brand */
  --primary-hover: #003399;
  --secondary: #e8f0fe;
  --accent: #34a853;
  --text-main: #202124;
  --text-muted: #5f6368;
  --bg-body: #ffffff;
  --bg-surface: #f8f9fa;
  --bg-accent-subtle: #f0f4ff;
  /* New subtle background */
  --border: #dadce0;

  /* Shapes & Shadows */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  /* New extra large radius */
  --radius-pill: 50px;

  --shadow-1: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
  --shadow-2: 0 4px 8px 3px rgba(60, 64, 67, 0.15), 0 1px 3px 0 rgba(60, 64, 67, 0.3);
  --shadow-hover: 0 8px 12px 6px rgba(60, 64, 67, 0.15), 0 4px 4px 0 rgba(60, 64, 67, 0.3);

  --container: 1100px;
  --header-height: 72px;
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.logo {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  margin-bottom: 1rem;
}

h1 {
  font-size: 3.5rem;
  /* Larger Hero Text */
  line-height: 1.1;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  margin-top: 2.5rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* Link Styling (Global Enforcement) */
a {
  text-decoration: underline;
  color: var(--primary);
  transition: color 0.2s;
  cursor: pointer;
}

a:hover {
  color: var(--primary-hover);
  text-decoration-thickness: 2px;
}

/* Navigation Links Exception */
.nav-links a,
.nav-item {
  text-decoration: none;
  color: var(--text-muted);
}

.nav-links a:hover,
.nav-item:hover {
  color: var(--primary);
  text-decoration: none;
}

ul {
  list-style: none;
  /* Default reset, specific lists will restore bullets */
}

.article-content ul,
.article-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
  list-style: disc;
  /* Restore bullets for content */
}

.article-content ol {
  list-style: decimal;
}

img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem;
}

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

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

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 2rem;
  border-radius: var(--radius-pill);
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  text-decoration: none;
  /* No underline for buttons */
  font-weight: 600;
  letter-spacing: 0.3px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #002a80 100%);
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 68, 204, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #002060 100%);
  color: #fff;
  box-shadow: 0 6px 14px rgba(0, 68, 204, 0.4);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--primary);
}

.btn-secondary:hover {
  background-color: #d2e3fc;
  color: var(--primary-hover);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-main);
  text-decoration: none;
}

.btn-outline:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-muted);
  text-decoration: none;
}

/* Header (Glassmorphism) */
/* Header styles now defer to header.css for positioning */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 1rem;
    box-shadow: var(--shadow-2);
    align-items: center;
    gap: 1.5rem;
  }

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

  .mobile-toggle {
    display: block;
  }
}

/* Blog Article Layout */
.blog-post {
  max-width: 100%;
  /* Allow full width for the container */
  margin: 0 auto;
  padding: 2rem 0;
}

header.blog-header {
  border-bottom: 1px solid var(--border);
  margin: 0 0 2rem 0;
  padding-bottom: 1.5rem;
  max-width: 100%;
  /* Allow full width */
  text-align: left;
  /* Ensure text aligns left */
  display: flex;
  flex-direction: column;
  /* Force vertical stacking */
}

.blog-header h1 {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-main);
  max-width: var(--container);
  /* Ensure it aligns with global container */
}

/* Constrain the reading content, not the header */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  /* Center the content */
}

.meta-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 1rem;
}

.meta-item {
  display: inline-block;
}

/* Hide icons for cleaner look */
.meta-item .material-symbols-outlined {
  display: none;
}

/* Table of Contents */
.toc-container {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-1);
}

.toc-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  display: block;
}

.toc-list li {
  margin-bottom: 0.5rem;
}

.toc-list li a {
  text-decoration: none;
  color: var(--text-main);
  display: block;
  padding: 0.25rem 0;
}

.toc-list li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.toc-sublist {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

/* Content Typography */
.article-content p {
  font-size: 1.125rem;
  /* 18px for better readability */
  margin-bottom: 1.5rem;
  color: #333;
}

.callout-box {
  padding: 1.5rem;
  margin: 2rem 0;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
  background: var(--bg-surface);
}

.callout-warning {
  background-color: #fce8e6;
  border-left-color: #d93025;
}

/* FAQ Accordion */
details.faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1rem;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  list-style: none;
  /* Remove default triangle */
  position: relative;
  padding-right: 2rem;
}

details.faq-item summary::-webkit-details-marker {
  display: none;
}

details.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--primary);
}

details.faq-item[open] summary::after {
  content: '-';
}

details.faq-item p {
  margin-top: 1rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Footer & End Structure */
.article-end-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .blog-post {
    padding-top: 3rem;
    /* Increased from 1rem to ensure clear separation from fixed header */
  }

  .blog-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
  }

  .blog-header h1 {
    font-size: 2rem;
    /* Reduced from 2.2rem per rule 4 */
    line-height: 1.3;
    margin-top: 1rem;
    margin-bottom: 1rem;
  }

  .meta-info {
    gap: 0.8rem;
    /* Tighter gap for mobile row flow */
    font-size: 0.85rem;
  }

  .container {
    padding: 0 1rem;
  }

  .article-content p {
    font-size: 1rem;
  }

  .toc-container {
    padding: 1rem;
  }
}

/* --- PROFESSIONAL PRODUCT REDESIGN --- */

/* 1. Category Hero */
.category-hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary) 0%, #002a80 100%);
  color: white;
  padding: 4rem 1.5rem;
  text-align: center;
  border-radius: var(--radius-lg);
  margin-bottom: 3rem;
  overflow: hidden;
}

.category-hero h1 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.category-hero p {
  color: #e8f0fe;
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* 2. Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

/* 3. Rich Product Card (Vertical) */
.product-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card-header {
  position: relative;
  height: 200px;
  background: #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.card-header img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.best-for-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
}

.card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.rating {
  display: flex;
  align-items: center;
  color: #fbbc04;
  /* Google Star Yellow */
  font-weight: 600;
  gap: 0.25rem;
}

.variety-tag {
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.pros-cons-mini {
  margin-top: 1rem;
  font-size: 0.9rem;
  background: var(--bg-surface);
  padding: 1rem;
  border-radius: var(--radius-md);
}

.pros-cons-mini ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pros-cons-mini li {
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.pros-cons-mini li.pro {
  color: var(--text-main);
}

.pros-cons-mini li.pro::before {
  content: '✓';
  color: var(--accent);
  font-weight: bold;
}

.pros-cons-mini li.con {
  color: var(--text-muted);
}

.pros-cons-mini li.con::before {
  content: '✕';
  color: #d93025;
  font-weight: bold;
}

.card-footer {
  margin-top: auto;
  padding-top: 1.5rem;
}

.btn-block {
  display: block;
  width: 100%;
}

/* --- SCALABLE EXPERT CARD LAYOUT (Xiaomi-Style) --- */

/* 1. Sub-Category Partition */
.partition-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 4rem 0 2rem 0;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  position: relative;
}

.partition-header::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--primary);
}

.partition-badge {
  background: var(--text-main);
  color: white;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.partition-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

/* 2. Horizontal Expert Card */
.expert-card {
  background: white;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  /* Highlight Accent */
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.card-main-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
}

.card-image-col {
  background: white;
  /* Changed from #f8f9fa for cleaner look */
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
  position: relative;
}

.card-image-col img,
.card-image-col .material-symbols-outlined {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

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

.rank-circle {
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 48px;
  /* Larger */
  height: 48px;
  background: var(--primary);
  /* Filled Color */
  color: white;
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
}

.card-details-col {
  padding: 2rem;
}

/* Header within Card */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1.5rem;
}

.card-product-name {
  font-size: 1.6rem;
  font-weight: 800;
  /* Bolder */
  color: var(--text-main);
  margin: 0;
  line-height: 1.2;
}

.card-score-badge {
  background: #fef3c7;
  color: #b45309;
  /* Darker Amber */
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  /* Pop */
}

/* Specs Grid */
.specs-grid-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
  background: #f8f9fa;
  /* Subtle BG */
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.spec-item {
  display: flex;
  flex-direction: column;
  /* Stack Icon and Text */
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 500;
}

.spec-item .material-symbols-outlined {
  color: var(--primary);
  font-size: 1.5rem;
  /* Larger Icons */
  background: white;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Expert Take Toggle */
.expert-review-toggle {
  width: 100%;
  background: none;
  border: none;
  border-top: 1px solid var(--border);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.expert-review-toggle:hover {
  background: var(--bg-surface);
}

.expert-review-content {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

/* Pros and Cons Grid */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

.pc-col h4 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.pc-list li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  align-items: flex-start;
}

.pc-list.pros li::before {
  content: 'check_circle';
  font-family: 'Material Symbols Outlined';
  color: var(--accent);
  font-size: 1.1rem;
}

.pc-list.cons li::before {
  content: 'cancel';
  font-family: 'Material Symbols Outlined';
  color: #d93025;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .card-main-grid {
    grid-template-columns: 1fr;
    /* Stack on mobile */
  }

  .card-image-col {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
  }

  .card-top-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .pros-cons-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}



@media (max-width: 768px) {
  .category-hero {
    padding: 3rem 1rem;
    border-radius: 0;
    /* Full width on mobile */
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* --- AUTHORITY PAGE ELEMENTS --- */

/* 1. Trust Signals (Above Fold) */
.trust-bar {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  color: #e8f0fe;
}

/* 2. Decision Logic (Qualifiers) */
.decision-matrix {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 3rem 0;
  background: white;
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-1);
}

.decision-column h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.decision-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.decision-list li {
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
  color: var(--text-main);
}

.decision-list.positive li::before {
  content: 'check_circle';
  font-family: 'Material Symbols Outlined';
  color: var(--accent);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.decision-list.negative li::before {
  content: 'cancel';
  font-family: 'Material Symbols Outlined';
  color: #d93025;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* 3. Benefit Translator Table */
.specs-benefits-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 2rem 0;
}

.specs-benefits-table th {
  background: var(--bg-surface);
  text-align: left;
  padding: 1rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.specs-benefits-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

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

/* 4. Verdict Box */
.verdict-box {
  background: #f0f7ff;
  border: 1px solid #c2e0ff;
  padding: 2rem;
  border-radius: var(--radius-lg);
  margin: 3rem 0;
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.verdict-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary);
}

.verdict-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.verdict-item strong {
  display: block;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

/* 5. Trust Footer */
.trust-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.reviewer-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviewer-avatar {
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 768px) {
  .decision-matrix {
    grid-template-columns: 1fr;
  }
}

/* --- HOME PAGE ENHANCEMENTS --- */

/* Feature Cards (Why SmartFitGuide) */
.feature-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: var(--shadow-1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary);
}

.feature-icon {
  font-size: 3.5rem !important;
  color: var(--primary);
  margin-bottom: 1.5rem;
  background: var(--bg-accent-subtle);
  padding: 1rem;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: white;
  transform: rotateY(180deg);
}

/* Category Cards */
.category-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  border: 1px solid var(--border);
  overflow: hidden;
  border-radius: var(--radius-lg);
}

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

.category-icon {
  font-size: 4rem !important;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-card .btn-outline {
  margin-top: auto;
  transition: all 0.3s;
}

.category-card:hover .btn-outline {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* How It Works (Steps) */
.step-item {
  position: relative;
  text-align: center;
  padding: 1rem;
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 68, 204, 0.2);
}

.step-item h3 {
  font-size: 1.25rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -50%;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
  }

  .step-number {
    position: relative;
  }
}

/* Hero Section */
.hero {
  padding: 8rem 0 6rem;
  background: radial-gradient(circle at top right, #e8f0fe 0%, #ffffff 60%), white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background-image: radial-gradient(#0044CC 0.5px, transparent 0.5px);
  background-size: 20px 20px;
  opacity: 0.05;
  pointer-events: none;
}

.hero p {
  position: relative;
  z-index: 2;
}

.hero h1 {
  position: relative;
  z-index: 2;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 1.5rem auto 3rem;
  line-height: 1.6;
}

/* Utilities migrating from index.html */
.nav-disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: default;
}

.coming-soon-badge {
  font-size: 0.7rem;
  background: var(--text-muted);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 5px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* --- CATEGORY NAVIGATION PILLS --- */
.category-nav {
  display: flex;
  overflow-x: auto;
  white-space: nowrap;
  gap: 1rem;
  padding: 1rem 0;
  margin: -1rem 0 2rem 0;
  /* Align tightly below hero */
  -webkit-overflow-scrolling: touch;
  /* Smooth scroll on mobile */
  scrollbar-width: none;
  /* Hide scrollbar Firefox */
}

.category-nav::-webkit-scrollbar {
  display: none;
  /* Hide scrollbar Chrome/Safari */
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.6rem 1.25rem;
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.nav-pill:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.nav-pill:active {
  transform: translateY(0);
}