/* ==========================================================================
   SintaxisPRO & AprobarTodo - CSS Didáctico de Dudas Sintácticas
   Diseño de alto rendimiento, optimizado para Posición Cero y Mobile-First
   ========================================================================== */

:root {
  --bg-main: #070a12;
  --bg-card: #0f172a;
  --bg-elevated: #1e293b;
  --border-subtle: #334155;
  --border-emerald: #10b981;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent-emerald: #10b981;
  --accent-emerald-light: #34d399;
  --accent-teal: #14b8a6;
  --accent-cyan: #06b6d4;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.68;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-emerald-light);
  text-decoration: none;
  transition: all 0.15s ease;
}

a:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

/* Header & Navbar */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(11, 17, 32, 0.95);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.75rem 1rem;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: #fff;
  text-decoration: none !important;
}

.brand-accent {
  color: #ccff00;
}

.brand-divider {
  color: var(--text-dim);
  font-weight: 300;
}

.app-sub-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #a7f3d0;
  text-decoration: none !important;
}

.pro-tag {
  color: #34d399;
  margin-left: 2px;
}

.cta-header-btn {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta-header-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Container */
.content-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 1.5rem 1rem 4rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
  margin-bottom: 1.5rem;
}

.breadcrumb-nav ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

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

.breadcrumb-nav a:hover {
  color: var(--accent-emerald-light);
}

.breadcrumb-nav .sep {
  color: var(--text-dim);
}

/* Guide Header */
.guide-header {
  margin-bottom: 2rem;
}

.meta-tags-top {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.tag-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.category-pill {
  background: rgba(16, 185, 129, 0.12);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.level-pill {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.guide-title {
  font-family: var(--font-display);
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.02em;
}

.guide-lead {
  font-size: 1.12rem;
  color: #cbd5e1;
  line-height: 1.6;
}

/* 1. Answer Box (Target: Google AI Overviews & Posición Cero) */
.answer-box {
  background: linear-gradient(180deg, #064e3b 0%, #022c22 100%);
  border: 2px solid var(--accent-emerald);
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 30px -10px rgba(16, 185, 129, 0.3);
  position: relative;
}

.answer-box-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.sparkle-icon {
  font-size: 1.35rem;
}

.answer-box-header h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: #a7f3d0;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.answer-box-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #f0fdf4;
}

/* 2. Rule Details */
.rule-details-section {
  margin-bottom: 2.5rem;
}

.rule-details-section h2, .table-section h2, .related-section h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.rule-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #e2e8f0;
  margin: 1.25rem 0 0.75rem;
}

.steps-list {
  padding-left: 1.25rem;
  margin-bottom: 1.25rem;
}

.steps-list li {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
}

.steps-list strong {
  color: #f1f5f9;
}

.rule-box {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.rule-box h4 {
  font-size: 1.05rem;
  color: #a7f3d0;
  margin-bottom: 0.5rem;
}

/* Schema table */
.syntax-schema-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
  background: var(--bg-card);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.syntax-schema-table th {
  background: var(--bg-elevated);
  color: #e2e8f0;
  text-align: left;
  padding: 0.75rem 0.9rem;
  font-weight: 700;
}

.syntax-schema-table td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--border-subtle);
  color: #cbd5e1;
}

/* 3. Trick Callout */
.trick-callout {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.12), rgba(6, 182, 212, 0.08));
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.trick-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.trick-content h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #67e8f9;
  margin-bottom: 0.35rem;
}

.trick-content p {
  color: #e0f2fe;
  font-size: 0.98rem;
}

/* 4. Table Section */
.table-wrapper {
  overflow-x: auto;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2.5rem;
}

.syntax-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--bg-card);
}

.syntax-table th {
  background: var(--bg-elevated);
  padding: 0.85rem 1rem;
  text-align: left;
  font-weight: 700;
  color: #f1f5f9;
}

.syntax-table td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-subtle);
  vertical-align: top;
}

.td-correct {
  color: #4ade80;
  font-weight: 600;
}

.td-wrong {
  color: #f87171;
  text-decoration: line-through;
}

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

/* 5. Penalty Alert */
.penalty-alert {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.penalty-icon {
  font-size: 1.5rem;
}

.penalty-text h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #fda4af;
  margin-bottom: 0.2rem;
}

.penalty-text p {
  font-size: 0.9rem;
  color: #fecdd3;
}

/* 6. Quiz Interactive Widget */
.quiz-interactive-widget {
  background: var(--bg-card);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 14px;
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4);
}

.quiz-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #6ee7b7;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.quiz-header h3 {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 0.85rem;
}

.quiz-sentence {
  font-size: 1.15rem;
  font-weight: 600;
  color: #a7f3d0;
  background: rgba(15, 23, 42, 0.8);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent-emerald);
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.quiz-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.quiz-opt-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  color: #f1f5f9;
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  font-size: 0.98rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}

.quiz-opt-btn:hover:not(:disabled) {
  background: #334155;
  border-color: var(--accent-emerald);
  transform: translateX(4px);
}

.quiz-opt-btn.selected-correct {
  background: #064e3b !important;
  border-color: #34d399 !important;
  color: #ecfdf5 !important;
  font-weight: 700;
}

.quiz-opt-btn.selected-wrong {
  background: #7f1d1d !important;
  border-color: #f87171 !important;
  color: #fef2f2 !important;
}

.quiz-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.feedback-correct {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid #10b981;
  color: #d1fae5;
}

.feedback-wrong {
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid #f43f5e;
  color: #ffe4e6;
}

/* 7. App Hook Card */
.app-hook-card {
  background: linear-gradient(135deg, #064e3b 0%, #0f172a 100%);
  border: 1px solid var(--accent-emerald);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 3rem;
}

.app-hook-icon {
  font-size: 3rem;
  line-height: 1;
}

.app-hook-content h3 {
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 0.5rem;
}

.app-hook-content p {
  color: #cbd5e1;
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.hook-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff !important;
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
  transition: transform 0.15s ease;
}

.hook-btn:hover {
  transform: translateY(-2px);
}

/* 8. Related Mesh */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.related-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

.related-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-2px);
  background: var(--bg-elevated);
}

.related-card-category {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  text-transform: uppercase;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.4;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #020617;
  padding: 2.5rem 1rem;
  text-align: center;
}

.footer-inner {
  max-width: 860px;
  margin: 0 auto;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
}

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

/* ==========================================================================
   HUB / INDEX ESPECÍFICO
   ========================================================================== */
.hub-hero {
  background: linear-gradient(180deg, rgba(6, 78, 59, 0.35) 0%, rgba(7, 10, 18, 0) 100%);
  padding: 3.5rem 1rem 2.5rem;
  text-align: center;
}

.hub-hero-inner {
  max-width: 760px;
  margin: 0 auto;
}

.badge-pill {
  display: inline-block;
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.hub-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.hub-word-aprende {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
}

.hub-a-icon {
  display: inline-block;
  width: 2.1em;
  height: 2.1em;
  vertical-align: -0.30em;
  margin-right: -0.04em;
  filter: drop-shadow(0 8px 24px rgba(255, 255, 255, 0.45));
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.hub-a-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hub-a-icon:hover {
  transform: translateY(-2px) scale(1.03);
}

.hub-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.search-box-wrapper input {
  width: 100%;
  max-width: 580px;
  background: var(--bg-card);
  border: 2px solid var(--border-subtle);
  color: #fff;
  padding: 0.9rem 1.25rem;
  font-size: 1rem;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.search-box-wrapper input:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
}

.category-block {
  margin-bottom: 3rem;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 800;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-count {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.syntax-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.syntax-hub-card:hover {
  border-color: var(--accent-emerald);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

.hub-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6ee7b7;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hub-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.hub-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.hub-card-footer {
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
}

.read-link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-emerald-light);
}

.no-results-box {
  background: var(--bg-card);
  border: 1px dashed var(--border-subtle);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .guide-title {
    font-size: 1.7rem;
  }
  .hub-title {
    font-size: 2rem;
  }
  .app-hook-card {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Practice Callout: Entender no es suficiente, hay que practicar --- */
.practice-callout-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-left: 4px solid #3b82f6;
  border-radius: 1rem;
  padding: 1.25rem 1.5rem;
  margin: 1.75rem 0;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.1);
}
.practice-callout-card .callout-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}
.practice-callout-card .callout-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.3);
}
.practice-callout-card .callout-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}
.practice-callout-card .callout-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #cbd5e1;
  margin: 0.4rem 0 0.9rem;
}
.practice-callout-card .callout-cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.practice-callout-card .callout-free-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
}
.practice-callout-card .callout-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.55rem 1.15rem;
  border-radius: 0.65rem;
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.practice-callout-card .callout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.5);
}

/* --- Header Brand Icon & Nav Actions --- */
.site-header .header-inner {
  max-width: 1200px;
}
.content-container.hub-main {
  max-width: 1200px;
  padding: 1.5rem 1.25rem 4rem;
}
.hub-hero-inner {
  max-width: 900px;
}

.brand-icon-wrapper svg {
  border-radius: 8px;
}
.header-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.institutional-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 0.95rem;
  border-radius: 0.65rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.institutional-nav-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff !important;
  transform: translateY(-1px);
}

/* --- Category Navigation Pills Bar --- */
.category-pills-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 1rem 0 0.5rem;
  margin-top: 1rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  justify-content: center;
  flex-wrap: wrap;
}
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(51, 65, 85, 0.8);
  color: #cbd5e1;
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.cat-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: #64748b;
  color: #ffffff;
}
.cat-pill.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.35));
  border-color: #10b981;
  color: #34d399;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}
.cat-pill .pill-badge {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0.1rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
}
.cat-pill.active .pill-badge {
  background: #10b981;
  color: #064e3b;
}

/* --- Categories Overview Panel (A un golpe de vista) --- */
.categories-overview-panel {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.75) 0%, rgba(15, 23, 42, 0.45) 100%);
  border: 1px solid rgba(51, 65, 85, 0.6);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin: 1.5rem 0 2.5rem;
  backdrop-filter: blur(10px);
}
.overview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.overview-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #34d399;
  margin-bottom: 0.25rem;
}
.overview-heading {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
}
.overview-total-tag {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.category-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.overview-category-card {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid rgba(51, 65, 85, 0.75);
  border-radius: 0.95rem;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}
.overview-category-card:hover {
  background: rgba(30, 41, 59, 0.95);
  border-color: #10b981;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.4), 0 0 12px rgba(16, 185, 129, 0.2);
}
.overview-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}
.overview-cat-icon {
  font-size: 1.6rem;
}
.overview-cat-badge {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
}
.overview-category-card:hover .overview-cat-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.overview-cat-title {
  font-family: var(--font-display, inherit);
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  margin-bottom: 0.35rem;
}
.overview-cat-desc {
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}
.overview-cat-bullets {
  list-style: none;
  margin-bottom: 0.85rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.overview-cat-bullets li {
  font-size: 0.78rem;
  color: #cbd5e1;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.overview-cat-bullets li::before {
  content: '•';
  color: #10b981;
  font-weight: bold;
}
.overview-card-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #34d399;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.2s ease;
}
.overview-category-card:hover .overview-card-cta {
  gap: 0.55rem;
  color: #6ee7b7;
}

/* Category Block Header with Back to Overview */
.category-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.view-all-pill-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.view-all-pill-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
