/* =============================================================================
   premium.css — TopColchon Premium Design Layer
   Loaded AFTER style.css. Overrides and enhances without modifying the base.
   To revert: simply remove this file's <link> tag from the HTML.
   ============================================================================= */


/* =============================================================================
   1. GOOGLE FONTS IMPORT
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');


/* =============================================================================
   2. CSS CUSTOM PROPERTIES — PALETTE & TYPOGRAPHY OVERRIDES
   ============================================================================= */

:root {
  /* Color palette */
  --color-primary:        #1E3A5F;
  --color-primary-light:  #3B82F6;
  --color-primary-dark:   #0F1D2F;
  --color-accent:         #CA8A04;
  --color-accent-light:   #FDE68A;
  --color-bg:             #FFFBF5;
  --color-bg-alt:         #F5F0EB;
  --color-success:        #15803D;

  /* Keep existing tokens aligned with new palette */
  --color-border:         #DDD8D0;
  --shadow-sm:            0 1px 3px rgba(15, 29, 47, 0.07);
  --shadow-md:            0 4px 14px rgba(30, 58, 95, 0.14);
  --shadow-lg:            0 10px 32px rgba(30, 58, 95, 0.20);

  /* Typography */
  --font-display:         'DM Serif Display', Georgia, serif;
  --font-main:            'DM Sans', system-ui, sans-serif;

  /* Radii — slightly larger for premium feel */
  --radius-sm:            0.625rem;
  --radius-md:            0.875rem;
  --radius-lg:            1rem;
}


/* =============================================================================
   3. BASE BODY & TYPOGRAPHY
   ============================================================================= */

body {
  font-family: var(--font-main);
  background: var(--color-bg);
  color: #1F2937;
  font-size: 17px;
  line-height: 1.75;
}

h1, h2, h3, .logo {
  font-family: var(--font-display);
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
}

a {
  color: var(--color-primary-light);
  transition: color 0.2s ease;
}

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

/* Focus outlines updated to new primary */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus-visible {
  outline: 3px solid var(--color-primary-light);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  background: var(--color-primary);
  color: #fff;
}


/* =============================================================================
   4. READING PROGRESS BAR
   ============================================================================= */

#reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  z-index: 9999;
  transition: width 0.1s linear;
}


/* =============================================================================
   5. SCROLL-TO-TOP BUTTON
   ============================================================================= */

.scroll-top {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.2s ease;
  z-index: 900;
  min-height: 44px;
  min-width: 44px;
  box-shadow: var(--shadow-md);
}

.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--color-primary-light);
}

.scroll-top:active {
  transform: scale(0.95);
}


/* =============================================================================
   6. HEADER — GLASSMORPHISM ON SCROLL + DROPDOWN NAVIGATION
   ============================================================================= */

.site-header {
  background: var(--color-primary-dark);
  border-bottom: 2px solid rgba(202, 138, 4, 0.35);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.site-header.scrolled {
  background: rgba(15, 29, 47, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

/* Override style.css: header,nav { background:#fff } */
.site-header nav,
.site-header .header-inner,
.site-header .container {
  background: transparent !important;
}

.header-inner,
.site-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  min-height: 62px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Logo */
.logo {
  font-family: var(--font-display);
  color: #fff;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

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

.logo .fa-bed {
  color: var(--color-accent);
}

/* Nav links */
.nav-menu a {
  color: rgba(255,255,255,0.82);
  font-size: 1.0rem;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background 0.2s ease;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
}

.nav-menu a::after {
  display: none; /* Remove underline — use bg highlight instead */
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #fff;
  background: rgba(255,255,255,0.10);
}

/* Dropdown parent */
.nav-menu li {
  position: relative;
}

.nav-menu li.has-dropdown > a::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid rgba(255,255,255,0.6);
  margin-left: 6px;
  vertical-align: middle;
  transition: transform 0.2s ease;
}

.nav-menu li.has-dropdown:hover > a::before {
  transform: rotate(180deg);
}

/* Dropdown menu */
.nav-dropdown {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 100%;          /* flush — no gap to cross */
  left: 0;
  min-width: 220px;
  background: var(--color-primary-dark);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0,0,0,0.30);
  z-index: 500;
  padding: 0.75rem 0 0.5rem; /* top padding acts as hover bridge */
  margin-top: 0;
  list-style: none;
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
  transform: translateY(-4px);
}

/* Invisible hover bridge: extends clickable area upward */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.nav-menu li.has-dropdown:hover .nav-dropdown,
.nav-menu li.has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* dropdown-in replaced by CSS transition on .nav-dropdown */

.nav-dropdown li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  color: rgba(255,255,255,0.80);
  font-size: 0.875rem;
  font-weight: 400;
  border-radius: 0;
  min-height: 36px;
  white-space: nowrap;
}

.nav-dropdown li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.nav-dropdown li a i {
  width: 16px;
  text-align: center;
  color: var(--color-accent);
  font-size: 0.8rem;
}

/* Mobile menu on dark bg */
@media (max-width: 768px) {
  .nav-menu {
    background: var(--color-primary-dark);
    border-top: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }

  .nav-menu a {
    color: rgba(255,255,255,0.85);
    border-radius: 0;
    padding: 0.75rem 1.25rem;
  }

  .nav-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
  }

  .nav-dropdown {
    position: static;
    background: rgba(0,0,0,0.15);
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .nav-menu li.has-dropdown:hover .nav-dropdown {
    display: block;
  }

  .nav-dropdown li a {
    padding-left: 2.25rem;
    font-size: 0.85rem;
  }
}

/* Menu toggle button on dark header */
.menu-toggle {
  color: rgba(255,255,255,0.85);
}


/* =============================================================================
   7. HERO SECTION
   ============================================================================= */

.hero {
  background: radial-gradient(ellipse at 60% 40%, rgba(59, 130, 246, 0.18) 0%, transparent 60%),
              linear-gradient(150deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 6rem 1rem;
  color: #fff;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  color: #F5C842 !important; /* Golden yellow — visible on dark hero */
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  margin-bottom: 1.1rem;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* Subtle floating animation on hero badges */
.hero .badge {
  animation: badge-float 4s ease-in-out infinite;
}

.hero .badge:nth-child(2) { animation-delay: 0.8s; }
.hero .badge:nth-child(3) { animation-delay: 1.6s; }

@keyframes badge-float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

@media (max-width: 640px) {
  .hero {
    padding: 3.5rem 1rem;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem);
  }
}


/* =============================================================================
   8. BUTTONS
   ============================================================================= */

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.15s ease;
  will-change: transform;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25), var(--shadow-md);
  transform: translateY(-2px);
  color: #fff;
}

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

.btn-outline {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transition: all 0.25s ease;
}

.btn-outline:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

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

/* Small button variant */
.btn-sm {
  padding: 0.35rem 0.85rem !important;
  font-size: 0.78rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600;
  line-height: 1.4;
}


/* =============================================================================
   9. CARDS — PRODUCT, CATEGORY, BLOG
   ============================================================================= */

/* Shared card base */
.product-card,
.category-card,
.blog-card {
  background: #FFFBF5;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease;
}

/* Hover: elevation + gradient border hint */
.product-card:hover,
.category-card:hover,
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary-light);
}

.product-card:hover {
  will-change: transform;
}

/* Product card specifics */
.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.product-card-footer .price {
  color: var(--color-primary);
}

.product-card-body .features li::before {
  color: var(--color-success);
}

/* Category card */
.category-card {
  border-radius: var(--radius-lg);
}

.category-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.14);
}

.category-card i {
  color: var(--color-accent);
}

/* Blog card */
.blog-card:hover {
  box-shadow: 0 8px 28px rgba(30, 58, 95, 0.15);
}


/* =============================================================================
   10. SECTION HEADINGS — coherent palette
   ============================================================================= */

.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary); /* #1E3A5F — coherent with header */
}

.section-subtitle {
  font-size: 1.05rem;
  color: #4B5563;
}

/* Page titles (h1 outside hero) */
h1 {
  color: var(--color-primary);
}

/* All h2 on the page use the same dark navy */
h2 {
  color: var(--color-primary);
}

h3 {
  color: #1F2937;
}


/* =============================================================================
   11. COMPARISON TABLE
   ============================================================================= */

.comparison-table thead {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
}

.comparison-table th {
  font-family: var(--font-main);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.comparison-table tbody tr:nth-child(even) {
  background: rgba(245, 240, 235, 0.55);
}

.comparison-table tbody tr:hover {
  background: rgba(30, 58, 95, 0.06);
  transition: background 0.2s ease;
}

.comparison-table .price {
  color: var(--color-primary);
}

.comparison-table td {
  border-bottom-color: #E8E2DA;
}


/* =============================================================================
   12. TRUST ITEMS
   ============================================================================= */

.trust-item {
  padding: 1.5rem 1rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s ease;
}

.trust-item:hover {
  border-bottom-color: var(--color-accent-light);
}

.trust-item i {
  color: var(--color-accent);
  font-size: 2.2rem;
}

.trust-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
}


/* =============================================================================
   13. FAQ
   ============================================================================= */

.faq-item {
  border-color: var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  background: var(--color-bg);
  font-family: var(--font-main);
  font-size: 1rem;
  transition: background 0.2s ease, border-left-color 0.2s ease;
  border-left: 3px solid transparent;
}

.faq-question:hover {
  background: var(--color-bg-alt);
  border-left-color: var(--color-accent);
}

.faq-item.open .faq-question {
  background: var(--color-bg-alt);
  border-left-color: var(--color-primary);
}

.faq-question i {
  color: var(--color-accent);
}

.faq-answer {
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: var(--color-bg);
}

.faq-answer p {
  color: #374151;
  line-height: 1.75;
}


/* =============================================================================
   14. CONTENT BODY
   ============================================================================= */

.content-body {
  font-size: 17px;
  line-height: 1.75;
}

.content-body h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--color-primary-dark);
  border-bottom: 3px solid var(--color-accent-light);
}

.content-body h3 {
  font-family: var(--font-display);
  color: var(--color-primary);
}

.content-body blockquote {
  border-left-color: var(--color-accent);
  background: var(--color-bg-alt);
}

.content-body .info-box {
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.25);
}

.content-body .info-box h4 {
  color: var(--color-primary);
}


/* =============================================================================
   15. FOOTER
   ============================================================================= */

.site-footer {
  background: var(--color-primary-dark);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent)) 1;
  color: #C9D1DA;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
}

.footer-col a {
  color: #B0BCC8;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-accent-light);
}

.footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.10);
  color: #8898AA;
}

.footer-bottom a:hover {
  color: var(--color-accent-light);
}


/* =============================================================================
   16. AFFILIATE DISCLAIMER — compact, centered, discrete
   ============================================================================= */

.affiliate-disclaimer {
  display: block;
  max-width: 560px;
  margin: 1.5rem auto;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid rgba(30, 58, 95, 0.12);
  border-radius: 999px;
  color: #6B7280;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.5;
}

.affiliate-disclaimer i {
  margin-right: 0.3rem;
  color: #9CA3AF;
  font-size: 0.7rem;
}


/* =============================================================================
   17. SCROLL REVEAL ANIMATIONS
   ============================================================================= */

/* Reveal animation — only for cards, never for full sections */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Sections must ALWAYS be visible — JS may add .reveal but sections cannot be hidden */
.section,
main > section,
.hero,
.faq-section,
.blog-section {
  opacity: 1 !important;
  transform: none !important;
}

/* Stagger delay helpers */
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
.delay-6 { transition-delay: 0.60s; }


/* =============================================================================
   18. MICROINTERACTIONS
   ============================================================================= */

/* Links */
a {
  transition: color 0.2s ease;
}

/* Button press feedback */
.btn-primary:active,
.btn-outline:active,
.amazon-cta:active {
  transform: scale(0.98);
}

/* Card border transition */
.product-card,
.category-card,
.blog-card {
  transition: transform 0.25s ease,
              box-shadow 0.25s ease,
              border-color 0.25s ease,
              background-color 0.25s ease;
}


/* =============================================================================
   19. PERFORMANCE — CONTENT VISIBILITY & WILL-CHANGE
   ============================================================================= */

/* content-visibility removed — conflicts with IntersectionObserver reveal animations */

/* will-change only applied transiently on hover; not set globally */
.product-card:hover,
.category-card:hover,
.blog-card:hover {
  will-change: transform;
}


/* =============================================================================
   20. RESPONSIVE ADJUSTMENTS
   ============================================================================= */

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .product-card,
  .category-card,
  .blog-card {
    width: 100%;
  }

  .product-grid,
  .category-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .table-responsive {
    margin: 1rem -1rem;
    padding: 0 0.75rem;
    border-radius: 0;
  }

  .scroll-top {
    bottom: 1.25rem;
    right: 1.25rem;
  }
}


/* =============================================================================
   21. DARK MODE
   ============================================================================= */

@media (prefers-color-scheme: dark),
       body.dark-mode {
  :root {
    --color-bg:       #0F1D2F;
    --color-bg-alt:   #1A2A3F;
    --color-border:   #2A3A4F;
    --shadow-sm:      0 1px 3px rgba(0, 0, 0, 0.35);
    --shadow-md:      0 4px 14px rgba(0, 0, 0, 0.40);
    --shadow-lg:      0 10px 32px rgba(0, 0, 0, 0.50);
  }

  body {
    background: var(--color-bg);
    color: #E5E7EB;
  }

  .site-header {
    background: rgba(15, 29, 47, 0.92);
  }

  .site-header.scrolled {
    background: rgba(15, 29, 47, 0.88);
  }

  .hero {
    background: radial-gradient(ellipse at 60% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 60%),
                linear-gradient(150deg, #0F1D2F 0%, #060E1A 100%);
  }

  .product-card,
  .category-card,
  .blog-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
  }

  .product-card:hover,
  .category-card:hover,
  .blog-card:hover {
    border-color: var(--color-primary-light);
  }

  .faq-question {
    background: var(--color-bg-alt);
    color: #E5E7EB;
  }

  .faq-question:hover,
  .faq-item.open .faq-question {
    background: #1E2E40;
  }

  .faq-answer {
    background: var(--color-bg-alt);
  }

  .faq-answer p {
    color: #CBD5E1;
  }

  .comparison-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.03);
  }

  .comparison-table tbody tr:hover {
    background: rgba(59, 130, 246, 0.08);
  }

  .comparison-table td {
    border-bottom-color: var(--color-border);
  }

  .section-title {
    color: #E5E7EB;
  }

  .content-body h2,
  .content-body h3 {
    color: #E5E7EB;
  }

  .content-body blockquote {
    background: var(--color-bg-alt);
  }

  .content-body .info-box {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.20);
  }

  .sidebar-toc {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
  }

  .affiliate-disclaimer {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-border);
    color: #94A3B8;
  }

  .trust-item h4,
  .trust-item p {
    color: #CBD5E1;
  }

  .nav-menu a {
    color: #CBD5E1;
  }

  .nav-menu a:hover {
    color: var(--color-primary-light);
  }

  /* Ensure minimum 4.5:1 contrast for body text on dark bg */
  .section-subtitle,
  .content-body p,
  .blog-card-body p {
    color: #CBD5E1;
  }
}


/* =============================================================================
   22. REDUCED MOTION — ACCESSIBILITY
   ============================================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero .badge {
    animation: none;
  }

  .scroll-top {
    transition: opacity 0.01ms;
  }
}


/* =============================================================================
   23. ARTÍCULOS RELACIONADOS — PREMIUM RELATED POSTS GRID
   ============================================================================= */

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.25rem 1.25rem 1.5rem;
  background: var(--color-bg, #FFFBF5);
  border: 1px solid var(--color-border, #E5D5C5);
  border-radius: var(--radius-lg, 12px);
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,.07));
  transition: transform 0.22s ease,
              box-shadow 0.22s ease,
              border-color 0.22s ease;
  position: relative;
  overflow: hidden;
}

.related-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-primary, #1E3A5F);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md, 0 4px 14px rgba(0,0,0,.10));
  border-color: var(--color-primary-light, #3B82F6);
}

.related-card:hover::before {
  opacity: 1;
}

.related-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  background: rgba(30, 58, 95, 0.10);
  color: var(--color-primary, #1E3A5F);
  align-self: flex-start;
}

.related-card h3 {
  font-family: var(--font-display, 'Inter', sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--color-text, #1a1a2e);
  margin: 0;
}

.related-card:hover h3 {
  color: var(--color-primary, #1E3A5F);
}

/* Arrow icon on hover */
.related-card::after {
  content: '→';
  position: absolute;
  bottom: 0.9rem;
  right: 1rem;
  font-size: 1rem;
  color: var(--color-primary-light, #3B82F6);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.related-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Dark mode related cards */
@media (prefers-color-scheme: dark), body.dark-mode {
  .related-card {
    background: var(--color-bg-alt, #1A2A3F);
    border-color: var(--color-border, #2A3A4F);
  }

  .related-type {
    background: rgba(59, 130, 246, 0.15);
    color: #93C5FD;
  }

  .related-card h3 {
    color: #E5E7EB;
  }
}
