/* ==========================================================================
   ARTICLE PAGES - ULTRA MODERN WOW
   ========================================================================== */

/* ─── Article Minimal Header ─── */
.article-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(248, 249, 251, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 109, 212, 0.04);
  height: 56px;
  display: flex;
  align-items: center;
}

.article-header > .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.article-logo:hover {
  opacity: 1;
}

.article-logo img {
  display: block;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(26, 39, 68, 0.03);
}

.article-back:hover {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 12px var(--accent-glow);
  transform: translateX(-2px);
}

.article-back i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.article-back:hover i {
  transform: translateX(-3px);
}

@media (max-width: 768px) {
  .article-header {
    height: 48px;
  }

  .article-header > .container {
    padding: 0 16px;
  }

  .article-back span {
    display: none;
  }

  .article-back {
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

/* ─── Reading Progress Bar ─── */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-gold-dark), var(--accent-gold), var(--accent-gold-dark));
  background-size: 200% 100%;
  animation: progress-glow 2s ease-in-out infinite;
  z-index: 9999;
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(255, 107, 0, 0.4);
}

@keyframes progress-glow {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ─── Floating Share ─── */
.article-share-float {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 100;
  opacity: 0;
  animation: share-fade-in 0.8s 0.5s forwards;
}

@keyframes share-fade-in {
  to { opacity: 1; }
}

.article-share-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 109, 212, 0.08);
  color: var(--text-secondary);
  font-size: 1.2rem;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.04);
}

.article-share-float a:hover {
  transform: scale(1.15);
  box-shadow: 0 6px 20px rgba(26, 39, 68, 0.08);
}

.article-share-float .share-wa:hover { background: #25D366; color: #fff; }
.article-share-float .share-fb:hover { background: #1877F2; color: #fff; }
.article-share-float .share-twitter:hover { background: #1DA1F2; color: #fff; }
.article-share-float .share-copy:hover { background: var(--accent-gradient); color: #fff; }

.article-share-float .share-label {
  writing-mode: vertical-rl;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 4px;
  opacity: 0.6;
}

/* ─── Breadcrumb ─── */
.article-breadcrumb {
  max-width: 780px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.article-breadcrumb a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.article-breadcrumb a:hover {
  color: var(--accent);
}

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

.article-breadcrumb i {
  font-size: 0.7rem;
  opacity: 0.4;
}

/* ─── Reading Mode Toggle ─── */
.read-mode-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 109, 212, 0.08);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 12px rgba(26, 39, 68, 0.04);
  margin-top: 4px;
}

.read-mode-toggle:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 20px var(--accent-glow);
  transform: scale(1.1);
}

/* ─── Reading Mode Overlay ─── */
.read-mode-overlay {
  position: fixed;
  inset: 0;
  z-index: 99998;
  background: #f8f9fb;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.read-mode-overlay.active {
  opacity: 1;
  visibility: visible;
}

.read-mode-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26, 109, 212, 0.06);
}

.read-mode-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

.read-mode-label i {
  color: var(--accent);
  font-size: 1.2rem;
}

.read-mode-exit {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(26, 39, 68, 0.06);
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.read-mode-exit:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: rotate(90deg);
}

.read-mode-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-size: 1.35rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.read-mode-content h1 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.2;
}

.read-mode-content .read-mode-meta {
  display: flex;
  gap: 20px;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(26, 109, 212, 0.06);
}

.read-mode-content .read-mode-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-mode-content .read-mode-meta i {
  color: var(--accent);
}

.read-mode-content h2 { font-size: 2rem; font-weight: 800; color: var(--text-primary); margin: 40px 0 16px; line-height: 1.3; font-family: var(--font-title); }
.read-mode-content h3 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin: 32px 0 12px; line-height: 1.3; font-family: var(--font-title); }
.read-mode-content p { margin-bottom: 20px; }
.read-mode-content ul, .read-mode-content ol { margin: 16px 0 20px 24px; }
.read-mode-content li { margin-bottom: 8px; }
.read-mode-content li::marker { color: var(--accent); }
.read-mode-content strong { color: var(--text-primary); }
.read-mode-content a { color: var(--accent-blue); text-decoration: none; font-weight: 600; border-bottom: 1px solid transparent; transition: all 0.3s ease; }
.read-mode-content a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.read-mode-content blockquote {
  position: relative;
  padding: 24px 28px;
  margin: 28px 0;
  background: linear-gradient(135deg, rgba(255, 154, 46, 0.05), rgba(26, 109, 212, 0.05));
  border-radius: 16px;
  font-style: italic;
  color: var(--text-primary);
  border-left: 4px solid var(--accent);
}
.read-mode-content blockquote::before {
  content: '\201C';
  font-size: 4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.1;
  position: absolute;
  top: 4px;
  left: 12px;
  font-family: serif;
  pointer-events: none;
}
.read-mode-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 28px 0;
  box-shadow: 0 8px 30px rgba(26, 39, 68, 0.06);
}
.read-mode-content pre {
  background: #1a2744;
  border-radius: 16px;
  padding: 20px 24px;
  overflow-x: auto;
  margin: 24px 0;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}
.read-mode-content pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e2e8f0;
  font-size: 0.85em;
  line-height: 1.7;
}
.read-mode-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.04);
}
.read-mode-content table th {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
}
.read-mode-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(26, 109, 212, 0.06);
}

@media (max-width: 768px) {
  .read-mode-toggle {
    width: 38px;
    height: 38px;
    font-size: 0.95rem;
  }

  .read-mode-header {
    padding: 12px 16px;
  }

  .read-mode-content {
    padding: 32px 16px 60px;
    font-size: 1.2rem;
  }

  .read-mode-content h1 {
    font-size: 2rem;
  }
}

/* ─── Image Lightbox ─── */
.article-body img {
  cursor: zoom-in;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.article-body img:active {
  transform: scale(1.02);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: zoom-out;
}

.image-lightbox.active {
  opacity: 1;
}

.image-lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-lightbox.active img {
  transform: scale(1);
}

/* ─── Article Hero ─── */
.article-hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
  margin-top: 56px;
  text-align: center;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 154, 46, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 109, 212, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255, 106, 0, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.article-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(26, 109, 212, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 109, 212, 0.015) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
}

.article-hero > .container {
  position: relative;
  z-index: 1;
}

.article-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gradient);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.article-hero h1 {
  font-family: var(--font-title);
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.2;
  background: linear-gradient(135deg, #1a2744 30%, var(--accent-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 28px;
  font-size: 1.35rem;
  color: var(--text-secondary);
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.article-meta span i {
  color: var(--accent);
  font-size: 1.2rem;
}

/* ─── Featured Image ─── */
.article-featured {
  padding: 0 0 50px;
  position: relative;
}

.article-featured > .container {
  position: relative;
}

.article-featured .featured-frame {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(26, 39, 68, 0.08),
    0 8px 20px rgba(26, 39, 68, 0.04);
}

.article-featured .featured-frame::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 21px;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 154, 46, 0.2) 90deg,
    rgba(26, 109, 212, 0.15) 180deg,
    rgba(255, 106, 0, 0.12) 270deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  animation: featured-conic 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes featured-conic {
  to { transform: rotate(360deg); }
}

.article-featured .featured-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 80%;
  height: 60%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  filter: blur(40px);
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

.article-featured img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ─── Article Content ─── */
.article-content {
  padding: 50px 0 60px;
  position: relative;
}

.article-body {
  max-width: 780px;
  margin: 0 auto;
  font-size: 1.7rem;
  line-height: 1.9;
  color: var(--text-secondary);
}

.article-body h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 50px 0 20px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 36px 0 16px;
  line-height: 1.3;
}

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

.article-body ul,
.article-body ol {
  margin: 20px 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body strong {
  color: var(--text-primary);
  font-weight: 700;
}

.article-body a {
  color: var(--accent-blue);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.article-body a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.article-body blockquote {
  position: relative;
  border: none;
  padding: 32px 36px;
  margin: 40px 0;
  background: linear-gradient(135deg, rgba(255, 154, 46, 0.05), rgba(26, 109, 212, 0.05));
  border-radius: 18px;
  font-style: italic;
  color: var(--text-primary);
  font-size: 1.65rem;
  overflow: hidden;
}

.article-body blockquote::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  background: conic-gradient(
    from 0deg at 50% 50%,
    transparent 0deg,
    rgba(255, 154, 46, 0.35) 90deg,
    rgba(26, 109, 212, 0.3) 180deg,
    rgba(255, 106, 0, 0.25) 270deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  pointer-events: none;
  animation: blockquote-border 4s linear infinite;
}

@keyframes blockquote-border {
  to { transform: rotate(360deg); }
}

.article-body blockquote::after {
  content: '\201C';
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.12;
  position: absolute;
  top: 8px;
  left: 16px;
  font-family: serif;
  pointer-events: none;
}

.article-body code {
  background: rgba(26, 109, 212, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  color: var(--accent);
  border: 1px solid rgba(26, 109, 212, 0.08);
}

.article-body pre {
  background: #1a2744;
  border-radius: 16px;
  padding: 24px 28px;
  overflow-x: auto;
  margin: 28px 0;
  box-shadow: 0 8px 24px rgba(26, 39, 68, 0.08);
}

.article-body pre code {
  background: none;
  padding: 0;
  border: none;
  color: #e2e8f0;
  font-size: 0.85em;
  line-height: 1.7;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 36px 0;
  box-shadow: 0 8px 30px rgba(26, 39, 68, 0.06);
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.04);
}

.article-body table th {
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 700;
  padding: 14px 18px;
  text-align: left;
  font-size: 1.4rem;
}

.article-body table td {
  padding: 12px 18px;
  border-bottom: 1px solid rgba(26, 109, 212, 0.06);
  font-size: 1.4rem;
}

.article-body table tr:last-child td {
  border-bottom: none;
}

.article-body table tr:nth-child(even) td {
  background: rgba(244, 247, 251, 0.5);
}

/* ─── Tags ─── */
.article-tags {
  max-width: 780px;
  margin: 50px auto;
  padding: 24px 0;
  border-top: 1px solid rgba(26, 109, 212, 0.06);
  border-bottom: 1px solid rgba(26, 109, 212, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(26, 109, 212, 0.06);
  color: var(--accent-blue);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid rgba(26, 109, 212, 0.08);
}

.article-tags span:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.article-tags span i {
  font-size: 1rem;
}

/* ─── Author Bio ─── */
.article-author {
  max-width: 780px;
  margin: 60px auto;
  padding: 32px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(26, 109, 212, 0.06);
  border-radius: 20px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  box-shadow:
    0 4px 20px rgba(26, 39, 68, 0.04),
    0 1px 4px rgba(26, 39, 68, 0.02);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.article-author::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-gradient);
  border-radius: 0 2px 2px 0;
}

.article-author:hover {
  border-color: rgba(255, 125, 0, 0.12);
  box-shadow:
    0 8px 30px rgba(26, 39, 68, 0.06),
    0 2px 8px rgba(26, 39, 68, 0.03);
  transform: translateY(-2px);
}

.article-author img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  margin: 0;
  border: 3px solid rgba(255, 125, 0, 0.12);
  box-shadow: 0 4px 12px rgba(255, 125, 0, 0.06);
}

.article-author h4 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.article-author p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
  line-height: 1.6;
}

.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 1.3rem;
  font-weight: 600;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.2);
}

.whatsapp-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.3);
}

.whatsapp-link i {
  font-size: 1.3rem;
}

/* ─── Related Articles — Horizontal Cinematic Scroll ─── */
.related-articles {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.related-articles::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(255, 154, 46, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(26, 109, 212, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.related-articles > .container {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding: 0;
}

.related-articles .related-header {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-articles h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.related-articles h2::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-gradient);
  border-radius: 2px;
  transform: scaleX(0.3);
  transform-origin: left;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.related-articles:hover h2::after {
  transform: scaleX(1);
}

.rel-nav-btn {
  position: absolute;
  z-index: 15;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--text-primary);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  right: 12px;
}

.rel-nav-prev { bottom: calc(50% + 6px); }
.rel-nav-next { top: calc(50% + 6px); }

.rel-nav-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: scale(1.1);
}

.rel-nav-btn:active {
  transform: scale(0.92);
}

.rel-track-wrap {
  overflow: hidden;
  padding: 10px 70px 20px 24px;
  position: relative;
}

.rel-track-wrap::before,
.rel-track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 20px;
  width: 80px;
  z-index: 10;
  pointer-events: none;
}

.rel-track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #f4f7fb 0%, transparent 100%);
}

.rel-track-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #f4f7fb 0%, transparent 100%);
}

.rel-track {
  display: flex;
  gap: 28px;
  padding: 0 48px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.rel-track::-webkit-scrollbar {
  height: 4px;
}

.rel-track::-webkit-scrollbar-track {
  background: rgba(26, 39, 68, 0.04);
  border-radius: 2px;
}

.rel-track::-webkit-scrollbar-thumb {
  background: var(--accent-gradient);
  border-radius: 2px;
}

.rel-card {
  flex: 0 0 calc(33.333% - 19px);
  min-width: 320px;
  scroll-snap-align: start;
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform-style: preserve-3d;
  perspective: 1000px;
  aspect-ratio: 3 / 4;
}

@media (max-width: 900px) {
  .rel-card {
    flex: 0 0 calc(50% - 14px);
    min-width: 280px;
  }
}

@media (max-width: 600px) {
  .rel-card {
    flex: 0 0 85%;
    min-width: 0;
    aspect-ratio: 4 / 5;
  }

  .rel-track-wrap::before,
  .rel-track-wrap::after {
    display: none;
  }

  .rel-track-wrap {
    padding: 10px 0 20px;
  }

  .rel-track {
    padding: 0 16px;
    gap: 16px;
  }

  .rel-nav-btn {
    display: none;
  }
}

.rel-card-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1;
}

.rel-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 0;
}

.rel-card:hover .rel-card-bg {
  transform: scale(1.1);
}

.rel-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 20%,
    rgba(26, 39, 68, 0.4) 50%,
    rgba(26, 39, 68, 0.85) 85%,
    #1a2744 100%
  );
  z-index: 1;
  transition: opacity 0.5s ease;
}

.rel-card:hover .rel-card-overlay {
  opacity: 0.85;
}

.rel-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 28px 28px 32px;
  z-index: 2;
  transform: translateY(0);
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.rel-card:hover .rel-card-body {
  transform: translateY(-8px);
}

.rel-card-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.4s ease;
}

.rel-card:hover .rel-card-badge {
  background: var(--accent-gradient);
  border-color: transparent;
  box-shadow: 0 4px 14px var(--accent-glow);
}

.rel-card-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-card-excerpt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 16px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rel-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  letter-spacing: 0.3px;
}

.rel-card:hover .rel-card-cta {
  opacity: 1;
  transform: translateY(0);
}

.rel-card-cta i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.rel-card:hover .rel-card-cta i {
  transform: translateX(4px);
}

/* 3D hover effect on desktop */
@media (hover: hover) {
  .rel-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
  }

  .rel-card.active-tilt {
    box-shadow:
      0 30px 60px rgba(26, 39, 68, 0.15),
      0 0 40px rgba(255, 125, 0, 0.08);
  }
}

/* ─── CTA Section ─── */
.article-cta {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  text-align: center;
}

.article-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 154, 46, 0.04) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(26, 109, 212, 0.04) 0%, transparent 50%);
  pointer-events: none;
}

.article-cta > .container {
  position: relative;
  z-index: 1;
}

.article-cta h2 {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.article-cta p {
  font-size: 1.7rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.5rem;
  font-family: var(--font-title);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.cta-buttons .btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.cta-buttons .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px var(--accent-glow);
}

.cta-buttons .btn-success {
  background: linear-gradient(135deg, #25D366, #1da851);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.25);
}

.cta-buttons .btn-success:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.35);
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .article-hero {
    padding: 100px 0 50px;
  }

  .article-hero h1 {
    font-size: 2.2rem;
  }

  .article-meta {
    font-size: 1.2rem;
    gap: 12px 18px;
  }

  .article-body {
    font-size: 1.5rem;
    padding: 0 4px;
  }

  .article-body h2 {
    font-size: 2rem;
  }

  .article-body h3 {
    font-size: 1.7rem;
  }

  .article-body blockquote {
    padding: 20px 24px;
    font-size: 1.45rem;
  }

  .article-author {
    flex-direction: column;
    text-align: center;
    padding: 24px;
  }

  .article-author::before {
    width: 100%;
    height: 4px;
    border-radius: 0 0 2px 2px;
  }

  .article-author img {
    margin: 0 auto;
  }

  .article-cta h2 {
    font-size: 2.2rem;
  }

  .article-cta p {
    font-size: 1.5rem;
  }

  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .article-featured .featured-frame {
    border-radius: 14px;
  }

  .article-share-float {
    left: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(-50%);
    flex-direction: row;
    gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    padding: 8px 16px;
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
  }

  .article-share-float a {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .article-share-float .share-label {
    writing-mode: horizontal-tb;
    font-size: 0.75rem;
    margin-bottom: 0;
    margin-right: 4px;
  }
}
