/* Category surface variants (shared behavior scoped to category pages) */
.category-page {
  --surface-white-bg:
    radial-gradient(circle at 10% 0%, rgba(20,184,166,.10), transparent 36%),
    radial-gradient(circle at 92% 12%, rgba(14,165,233,.08), transparent 34%),
    linear-gradient(180deg, #f8fafc, #ffffff 52%);
  --surface-soft-bg: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --surface-brand-bg: linear-gradient(135deg, #0f172a 0%, #0f2a2a 100%);
  --surface-border: rgba(20,184,166,.16);
  --surface-shadow: 0 20px 46px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
}

.category-page .section--surface-white {
  position: relative;
  background: var(--surface-white-bg);
}

.category-page .section--surface-soft {
  position: relative;
  background: var(--surface-soft-bg);
}

.category-page .section--surface-brand {
  position: relative;
  background: var(--surface-brand-bg);
}

.category-page .section--surface-white .section-inner,
.category-page .section--surface-soft .section-inner {
  position: relative;
  z-index: 1;
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  border: 1px solid var(--surface-border);
  box-shadow: var(--surface-shadow);
  pointer-events: none;
}

.category-page .section--surface-white .section-inner::after,
.category-page .section--surface-soft .section-inner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--surface-accent);
  pointer-events: none;
}

.ophthalmology-page { --surface-accent: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.orthopedics-page  { --surface-accent: linear-gradient(90deg, #16a34a, #4ade80); }
.proctology-page   { --surface-accent: linear-gradient(90deg, #9333ea, #c084fc); }
.vascular-page     { --surface-accent: linear-gradient(90deg, #dc2626, #f87171); }

/* Premium motion effects: subtle, page-safe */
.category-page .section--surface-white,
.category-page .section--surface-soft,
.category-page .section--surface-brand {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeRise 0.6s ease forwards;
}

@keyframes fadeRise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.category-page .section:nth-child(1) { animation-delay: 0.05s; }
.category-page .section:nth-child(2) { animation-delay: 0.1s; }
.category-page .section:nth-child(3) { animation-delay: 0.15s; }
.category-page .section:nth-child(4) { animation-delay: 0.2s; }

.category-page .section--surface-white .feature-card,
.category-page .section--surface-soft .feature-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-page .section--surface-white .feature-card:hover,
.category-page .section--surface-soft .feature-card:hover {
  transform: translateY(-4px);
}

.category-page .section--surface-brand {
  position: relative;
  overflow: hidden;
}

.category-page .section--surface-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-page .section--surface-brand:hover::after {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .category-page .section,
  .category-page .feature-card {
    animation: none;
    transition: none;
  }
}

/* Surface spacing refinement: improve inner/outer separation without layout changes */
.category-page .section--surface-white > .section-inner {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.2vw, 28px);
}

.category-page .section--surface-white > .section-inner::before {
  inset: 10px;
  border-radius: 18px;
}

.category-page .section--surface-white > .section-inner::after {
  top: 10px;
  left: 20px;
  right: 20px;
}

.category-page .section--surface-white {
  overflow: visible;
}

.category-page .section--surface-soft > .section-inner {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.2vw, 28px);
}

.category-page .section--surface-soft > .section-inner::before {
  inset: 10px;
  border-radius: 18px;
}

.category-page .section--surface-soft > .section-inner::after {
  top: 10px;
  left: 20px;
  right: 20px;
}

.category-page .section--surface-soft {
  overflow: visible;
}

/* ===============================
   ULTRA GLASS BASE
================================= */
.category-page .section--surface-white,
.category-page .section--surface-soft {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.75), rgba(255,255,255,0.95)),
    var(--surface-white-bg);
  backdrop-filter: blur(6px);
}

/* ===============================
   INNER GLASS FRAME
================================= */
.category-page .section--surface-white .section-inner,
.category-page .section--surface-soft .section-inner {
  position: relative;
  z-index: 1;
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.6);
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.6),
    rgba(255,255,255,0.2)
  );
  box-shadow:
    0 30px 70px rgba(15,23,42,0.12),
    inset 0 1px 0 rgba(255,255,255,0.6);
  pointer-events: none;
}

/* ===============================
   TOP LIGHT GLOW
================================= */
.category-page .section--surface-white .section-inner::after,
.category-page .section--surface-soft .section-inner::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-accent);
  opacity: 0.9;
  filter: blur(0.4px);
}

/* ===============================
   EDGE LIGHT (SUBTLE PREMIUM)
================================= */
.category-page .section--surface-white::before,
.category-page .section--surface-soft::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 0% 0%, rgba(255,255,255,0.4), transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(255,255,255,0.3), transparent 40%);
  pointer-events: none;
  opacity: 0.5;
}

/* ===============================
   HOVER MICRO INTERACTION
================================= */
.category-page .section--surface-white,
.category-page .section--surface-soft {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-page .section--surface-white:hover,
.category-page .section--surface-soft:hover {
  transform: translateY(-2px);
}

/* ===============================
   CTA BRAND BOOST
================================= */
.category-page .section--surface-brand {
  position: relative;
  overflow: hidden;
}

.category-page .section--surface-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(255,255,255,0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.category-page .section--surface-brand:hover::after {
  opacity: 1;
}

/* ===============================
   REDUCED MOTION SAFETY
================================= */
@media (prefers-reduced-motion: reduce) {
  .category-page .section--surface-white,
  .category-page .section--surface-soft {
    transition: none;
    transform: none;
  }
}

/* Surface color restore: remove washout, keep structure intact */
.category-page .section--surface-white,
.category-page .section--surface-soft {
  position: relative;
  background: var(--surface-white-bg);
  backdrop-filter: none;
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.08)
  );
}

.category-page .section--surface-white .section-inner::after,
.category-page .section--surface-soft .section-inner::after {
  opacity: 1;
  height: 4px;
}

/* De-fade tuning: restore stronger color/contrast without layout changes */
.category-page .section--surface-white,
.category-page .section--surface-soft {
  background: var(--surface-white-bg);
  filter: saturate(1.06) contrast(1.03);
}

.category-page .section--surface-white::before,
.category-page .section--surface-soft::before {
  opacity: 0.18;
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.02)
  );
  border-color: rgba(255,255,255,0.42);
  box-shadow:
    0 24px 56px rgba(15,23,42,0.10),
    inset 0 1px 0 rgba(255,255,255,0.42);
}

/* =========================================
   SAFE Surface + Card Color System
   ========================================= */

.category-page {
  --surface-bg:
    linear-gradient(160deg, #edf9f6 0%, #e9f7ff 45%, #f8fafc 100%);
  --surface-soft-bg:
    linear-gradient(180deg, #f2f8fb 0%, #eef4f8 100%);

  --card-bg:
    linear-gradient(145deg, rgba(20,184,166,.10), rgba(2,132,199,.08)),
    linear-gradient(145deg, #ecfeff, #e6f7ff);

  --card-border: rgba(20,184,166,.20);
  --card-border-hover: rgba(20,184,166,.30);

  --card-shadow:
    0 14px 34px rgba(15,23,42,.10),
    0 2px 8px rgba(15,23,42,.05);

  --card-shadow-hover:
    0 24px 52px rgba(15,23,42,.16),
    0 6px 16px rgba(15,23,42,.08);

  --accent-line: linear-gradient(90deg, #0a6f67, #0e8b7f, #63d6ca);
}

/* Section surfaces */
.category-page .section--surface-white {
  background: var(--surface-bg);
}

.category-page .section--surface-soft {
  background: var(--surface-soft-bg);
}

/* Inner frame */
.category-page .section--surface-white .section-inner,
.category-page .section--surface-soft .section-inner {
  position: relative;
  z-index: 1;
  padding: clamp(18px, 2.2vw, 28px);
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.5);
  background: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.05));
  box-shadow: 0 24px 56px rgba(15,23,42,.10), inset 0 1px 0 rgba(255,255,255,.45);
  pointer-events: none;
}

.category-page .section--surface-white .section-inner::after,
.category-page .section--surface-soft .section-inner::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 20px;
  right: 20px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent-line);
  pointer-events: none;
}

/* Scoped card styling (safe) */
.category-page .section--surface-white .feature-card,
.category-page .section--surface-soft .feature-card,
.category-page .section--surface-white .faq-item,
.category-page .section--surface-soft .faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-page .section--surface-white .feature-card:hover,
.category-page .section--surface-soft .feature-card:hover,
.category-page .section--surface-white .faq-item:hover,
.category-page .section--surface-soft .faq-item:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* Page accent overrides */
.ophthalmology-page { --accent-line: linear-gradient(90deg, #0ea5e9, #22d3ee); }
.orthopedics-page  { --accent-line: linear-gradient(90deg, #16a34a, #4ade80); }
.vascular-page     { --accent-line: linear-gradient(90deg, #dc2626, #f87171); }
.proctology-page   { --accent-line: linear-gradient(90deg, #9333ea, #c084fc); }

/* White-tint removal + reusable-style match (scoped safe tune) */
.category-page {
  --surface-bg: linear-gradient(180deg, #f3f7fb 0%, #eef3f8 100%);
  --surface-soft-bg: linear-gradient(180deg, #eef3f8 0%, #e8eef5 100%);

  --card-bg: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  --card-border: rgba(148,163,184,.30);
  --card-border-hover: rgba(14,139,127,.30);
}

.category-page .section--surface-white,
.category-page .section--surface-soft {
  background: var(--surface-bg);
  filter: none;
}

.category-page .section--surface-soft {
  background: var(--surface-soft-bg);
}

.category-page .section--surface-white::before,
.category-page .section--surface-soft::before {
  opacity: 0;
}

.category-page .section--surface-white .section-inner::before,
.category-page .section--surface-soft .section-inner::before {
  background: transparent;
  border-color: rgba(148,163,184,.24);
  box-shadow: 0 16px 38px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.35);
}

.category-page .section--surface-white .feature-card,
.category-page .section--surface-soft .feature-card,
.category-page .section--surface-white .faq-item,
.category-page .section--surface-soft .faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}

/* Stronger color effect + remove white tone from surfaces/cards (scoped) */
.category-page {
  --surface-bg:
    linear-gradient(155deg, #dff3ee 0%, #dcedfb 48%, #e7eff8 100%);
  --surface-soft-bg:
    linear-gradient(180deg, #dbe8f4 0%, #d6e3f0 100%);

  --card-bg:
    linear-gradient(145deg, rgba(20,184,166,.18), rgba(2,132,199,.16)),
    linear-gradient(145deg, #dff7f3, #d9edf9);

  --card-border: rgba(14,139,127,.30);
  --card-border-hover: rgba(14,139,127,.42);

  --card-shadow:
    0 14px 34px rgba(15,23,42,.11),
    0 2px 8px rgba(15,23,42,.06);

  --card-shadow-hover:
    0 26px 54px rgba(15,23,42,.17),
    0 6px 16px rgba(15,23,42,.09);
}

.category-page .section--surface-white,
.category-page .section--surface-soft {
  background: var(--surface-bg);
}

.category-page .section--surface-soft {
  background: var(--surface-soft-bg);
}

.category-page .section--surface-white .feature-card,
.category-page .section--surface-soft .feature-card,
.category-page .section--surface-white .faq-item,
.category-page .section--surface-soft .faq-item {
  background: var(--card-bg);
  border-color: var(--card-border);
  box-shadow: var(--card-shadow);
}

.category-page .section--surface-white .feature-card:hover,
.category-page .section--surface-soft .feature-card:hover,
.category-page .section--surface-white .faq-item:hover,
.category-page .section--surface-soft .faq-item:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* Scoped treatment/service card color tune (category pages only) */
.category-page .section--surface-white .service-card,
.category-page .section--surface-soft .service-card {
  background:
    linear-gradient(145deg, rgba(20,184,166,.14), rgba(2,132,199,.10)),
    linear-gradient(155deg, #e9f7f4, #e5f0fb);
  border: 1px solid rgba(14,139,127,.28);
  box-shadow: 0 14px 34px rgba(15,23,42,.10), 0 2px 8px rgba(15,23,42,.05);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.category-page .section--surface-white .service-card:hover,
.category-page .section--surface-soft .service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(14,139,127,.42);
  box-shadow: 0 24px 52px rgba(15,23,42,.16), 0 6px 16px rgba(15,23,42,.08);
}

.category-page .section--surface-white .service-card-icon,
.category-page .section--surface-soft .service-card-icon {
  background: rgba(255,255,255,.42);
  border: 1px solid rgba(14,139,127,.20);
}

/* =========================================
   CONDITION PILLS — premium match (category pages)
   ========================================= */
.category-page .conditions-section .conditions-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-4);
}

.category-page .conditions-section .condition-pill {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  box-shadow: 0 8px 24px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.03);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  font-weight: 600;
  font-size: var(--text-sm);
  gap: var(--space-3);
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.category-page .conditions-section .condition-pill i {
  width: 28px;
  height: 28px;
  min-width: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,184,166,.12);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-teal);
  flex-shrink: 0;
}

.category-page .conditions-section .condition-pill:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-hover);
  box-shadow: var(--card-shadow-hover);
}

/* =========================================
   CONDITIONS vs CITIES — visual separation
   ========================================= */
.category-page .conditions-section {
  padding-bottom: var(--space-10);
}

.category-page .city-links-section {
  border-top: 1px solid rgba(148,163,184,.18);
  padding-top: var(--space-10);
  background: var(--surface-soft-bg);
}

/* =========================================
   CITY TAGS — premium match (category pages)
   ========================================= */
.category-page .city-links-section .category-cities {
  gap: var(--space-4);
}

.category-page .city-links-section .city-tag {
  background: #fff;
  border: 1px solid rgba(148,163,184,.22);
  border-radius: 999px;
  padding: var(--space-2) var(--space-4);
  box-shadow: 0 2px 8px rgba(15,23,42,.04);
  font-weight: 500;
  font-size: var(--text-sm);
  color: var(--color-navy);
  transition: all .25s ease;
}

.category-page .city-links-section .city-tag i {
  color: var(--color-teal);
  font-size: 0.6rem;
}

.category-page .city-links-section .city-tag:hover {
  background: var(--color-teal);
  color: #fff;
  border-color: var(--color-teal);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20,184,166,.18);
}

.category-page .city-links-section .city-tag:hover i {
  color: #fff;
}

/* =========================================
   SECTION LABELS — premium badge (category pages)
   ========================================= */
.category-page .section--surface-white .section-label,
.category-page .section--surface-soft .section-label {
  background: rgba(20,184,166,.10);
  border: 1px solid rgba(20,184,166,.24);
  color: var(--color-teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 6px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(20,184,166,.08);
}

/* =========================================
   SECTION HEADINGS — refined (category pages)
   ========================================= */
.category-page .section--surface-white .section-heading,
.category-page .section--surface-soft .section-heading {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-6);
}

/* =========================================
   WHY-GRID FEATURE CARDS — refined (category pages)
   ========================================= */
.category-page .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
}

.category-page .why-grid .feature-card {
  padding: var(--space-6);
  border-radius: var(--radius-lg);
}

.category-page .why-grid .feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,184,166,.12);
  border: 1px solid rgba(20,184,166,.20);
  border-radius: var(--radius-md);
  color: var(--color-teal);
  font-size: 1.1rem;
  margin-bottom: var(--space-4);
}

.category-page .why-grid .feature-card h3 {
  font-family: "DM Sans", sans-serif;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-2);
}

.category-page .why-grid .feature-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* =========================================
   FAQ SECTION — refined (category pages)
   ========================================= */
.category-page .faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.category-page .faq-item {
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
}

.category-page .faq-question h4 {
  font-family: "DM Sans", sans-serif;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-navy);
}

.category-page .faq-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20,184,166,.10);
  border-radius: var(--radius-sm);
  color: var(--color-teal);
  font-size: 0.8rem;
  flex-shrink: 0;
  transition: transform .25s ease, background .25s ease;
}

.category-page .faq-item.active .faq-icon {
  background: var(--color-teal);
  color: #fff;
  transform: rotate(45deg);
}

.category-page .faq-answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  padding-top: var(--space-3);
}

/* =========================================
   CTA SECTION — premium (category pages)
   ========================================= */
.category-page .cta-section .cta-content {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
  padding: var(--space-12) 0;
}

.category-page .cta-section .cta-content h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  margin-bottom: var(--space-4);
}

.category-page .cta-section .cta-content p {
  font-size: var(--text-sm);
  color: rgba(255,255,255,.72);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.category-page .cta-actions {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

/* =========================================
   MOBILE REFINEMENTS (category pages)
   ========================================= */
@media (max-width: 640px) {
  .category-page .conditions-section .conditions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .category-page .conditions-section .condition-pill {
    padding: var(--space-2) var(--space-3);
    font-size: 0.78rem;
  }

  .category-page .conditions-section .condition-pill i {
    width: 24px;
    height: 24px;
    min-width: 24px;
    font-size: 0.65rem;
  }

  .category-page .city-links-section .city-tag {
    padding: var(--space-2) var(--space-4);
    font-size: 0.82rem;
  }

  .category-page .why-grid {
    grid-template-columns: 1fr;
  }

  .category-page .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

/* =========================================
   AUTO-LINK SECTIONS — premium (category pages)
   Overrides inline styles from auto-linking.js
   ========================================= */
.category-page .auto-links-wrap {
  width: min(var(--container-max), calc(100% - 2rem));
  margin: var(--space-12) auto var(--space-8);
  padding: 0 var(--space-4);
}

.category-page .auto-link-section {
  background: var(--surface-bg);
  border: 1px solid rgba(148,163,184,.20);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 38px rgba(15,23,42,.06), 0 2px 8px rgba(15,23,42,.03);
  padding: var(--space-8) var(--space-6);
  margin-bottom: var(--space-5);
  position: relative;
  overflow: hidden;
}

.category-page .auto-link-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--accent-line);
  pointer-events: none;
}

.category-page .auto-link-title {
  font-family: "Playfair Display", serif !important;
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--color-navy) !important;
  margin-bottom: var(--space-5) !important;
  padding-bottom: var(--space-3) !important;
  border-bottom: 1px solid rgba(148,163,184,.16) !important;
}

.category-page .auto-link-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: var(--space-3) !important;
}

.category-page .auto-link-card {
  background: #fff !important;
  border: 1px solid rgba(148,163,184,.22) !important;
  border-radius: var(--radius-lg) !important;
  padding: var(--space-3) var(--space-4) !important;
  box-shadow: 0 4px 14px rgba(15,23,42,.05) !important;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  color: var(--color-navy) !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 48px !important;
  text-decoration: none !important;
}

.category-page .auto-link-card span {
  flex: 1 !important;
  min-width: 0 !important;
  line-height: 1.35 !important;
  word-break: break-word !important;
}

.category-page .auto-link-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--card-border-hover) !important;
  box-shadow: var(--card-shadow-hover) !important;
  color: var(--color-teal-dark) !important;
}

.category-page .auto-link-card i:first-child {
  width: 32px !important;
  height: 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(20,184,166,.12) !important;
  border-radius: var(--radius-sm) !important;
  color: var(--color-teal) !important;
  font-size: .8rem !important;
  flex-shrink: 0 !important;
}

.category-page .auto-link-arrow {
  color: var(--color-teal) !important;
  opacity: .4 !important;
  font-size: .6rem !important;
  flex-shrink: 0 !important;
  margin-left: auto !important;
  transition: opacity .25s ease, transform .25s ease !important;
}

.category-page .auto-link-card:hover .auto-link-arrow {
  opacity: 1 !important;
  transform: translateX(3px) !important;
}

@media (max-width: 640px) {
  .category-page .auto-links-wrap {
    padding: 0 var(--space-2);
  }

  .category-page .auto-link-section {
    padding: var(--space-5) var(--space-4);
  }

  .category-page .auto-link-card {
    padding: var(--space-3) var(--space-4) !important;
    font-size: 0.82rem !important;
  }

  .category-page .auto-link-card i:first-child {
    width: 28px !important;
    height: 28px !important;
  }
}
