/* ============================================
   ZIFFI — Pain Section & Reddit Horizontal Marquee
   Two rows scrolling opposite directions, full-width
   ============================================ */

/* ── Section ── */
.concur-pain {
  overflow: hidden;
}

/* ── Centered heading ── */
.pain-heading-block {
  text-align: center;
  margin-bottom: 48px;
}

.pain-headline {
  font-family: 'Inter', sans-serif;
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #111827;
  margin: 8px 0 18px 0;
}

.pain-subline {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: #9CA3AF;
  line-height: 1.6;
  margin: 0;
}

/* ══════════════════════════════════
   REDDIT CARDS
   ══════════════════════════════════ */
.r-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.06);
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              box-shadow 0.35s cubic-bezier(0.25, 1, 0.5, 1),
              border-color 0.35s;
  flex-shrink: 0;
  width: 340px;
  user-select: none;
}

.r-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
  border-color: rgba(255, 69, 0, 0.2);
}

.r-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.r-logo {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  border-radius: 50%;
}

.r-sub {
  font-size: 11px;
  font-weight: 700;
  color: #FF4500;
  letter-spacing: 0.02em;
}

.r-title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
  line-height: 1.3;
}

.r-body {
  font-size: 13px;
  color: #4B5563;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ══════════════════════════════════
   DUAL-ROW HORIZONTAL MARQUEE
   ══════════════════════════════════ */
.r-marquee-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  position: relative;
  /* Full-width bleed */
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* Edge fade */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.r-marquee-row {
  display: flex;
  overflow: hidden;
}

.r-marquee-track {
  display: flex;
  gap: 20px;
  will-change: transform;
  padding: 4px 0;
}

/* Row 1: scrolls LEFT */
@keyframes marqueeLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Row 2: scrolls RIGHT */
@keyframes marqueeRight {
  0%   { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.r-scroll-left {
  animation: marqueeLeft 35s linear infinite;
}

.r-scroll-right {
  animation: marqueeRight 40s linear infinite;
}

/* Pause on hover */
.r-marquee-wrap:hover .r-marquee-track {
  animation-play-state: paused;
}

/* ══════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════ */
@media (max-width: 768px) {
  .r-card {
    width: 280px;
    padding: 16px;
  }

  .pain-headline {
    font-size: clamp(28px, 6vw, 40px);
  }
}
