/* ==========================================================================
   HEALTHCARE'S HIDDEN RISKS - MARQUEE & CARD SYSTEM
   Deep Navy Gradient Container (#1B2A3A to #0D1620) · 28px Radius · Dual Loop
   ========================================================================== */

.hidden-risks-section {
  position: relative;
  padding-block: clamp(4.5rem, 8vw, 7rem);
  background: var(--bg-primary, #F7F5EF);
}

/* Large Rounded Card Container */
.hidden-risks-banner-card {
  position: relative;
  background: linear-gradient(135deg, #1B2A3A 0%, #152230 45%, #0D1620 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 4.5rem) 0;
  box-shadow: 0 24px 60px rgba(27, 42, 58, 0.35);
  overflow: hidden;
}

/* Header Text (Centered within section container) */
.hidden-risks-header {
  padding-inline: 0;
  max-width: 860px;
  text-align: center;
  margin: 0 auto 2.75rem auto;
}

.hidden-risks-title {
  font-family: var(--font-heading, 'Outfit', sans-serif);
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 0.85rem;
  margin-inline: auto;
}

.hidden-risks-title .text-gradient-accent {
  color: #6DB1E8;
}

.hidden-risks-subhead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  color: #A9B8C4;
  line-height: 1.6;
  font-weight: 400;
  max-width: 780px;
  margin-inline: auto;
}

/* Marquee Container with Horizontal Edge Fades */
.hidden-risks-marquee-container {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 7%, black 93%, transparent 100%);
}

.hidden-risks-marquee-container:hover .marquee-stream-track,
.hidden-risks-marquee-container:active .marquee-stream-track {
  animation-play-state: paused;
}

/* Infinite Scrolling Tracks */
.marquee-stream-track {
  display: flex;
  gap: 20px;
  width: max-content;
  will-change: transform;
}

.stream-track-top {
  animation: scrollRightToLeft 48s linear infinite;
}

.stream-track-bottom {
  animation: scrollLeftToRight 58s linear infinite;
}

@keyframes scrollRightToLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 10px));
  }
}

@keyframes scrollLeftToRight {
  0% {
    transform: translateX(calc(-50% - 10px));
  }
  100% {
    transform: translateX(0);
  }
}

/* ==================== CARD BASE (240px wide x 300px tall) ==================== */
.doc-item-card {
  width: 240px;
  height: 300px;
  border-radius: 14px;
  flex-shrink: 0;
  box-sizing: border-box;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
  user-select: none;
}

.doc-item-card:hover {
  transform: translateY(-6px) scale(1.02);
}

/* ==================== REAL REPORT PAPER CARDS ==================== */
.doc-item-real-report {
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #1B2A3A;
  font-family: var(--font-main);
}

.real-report-header {
  border-bottom: 1.5px solid #1B2A3A;
  padding-bottom: 4px;
  margin-bottom: 4px;
}

.real-clinic-title {
  display: flex;
  align-items: center;
  gap: 5px;
}

.real-clinic-logo-icon {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #C1272D;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.real-clinic-name {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 800;
  color: #1B2A3A;
  letter-spacing: -0.01em;
}

.real-clinic-sub {
  font-size: 0.44rem;
  color: #5B6B78;
  margin-top: 1px;
}

.real-patient-meta {
  background: #F7F5EF;
  border-radius: 4px;
  padding: 4px 6px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 6px;
  font-size: 0.5rem;
  margin-bottom: 4px;
}

.real-meta-item .meta-lbl {
  color: #7D8C99;
  font-weight: 600;
}

.real-meta-item .meta-val {
  color: #1B2A3A;
  font-weight: 700;
}

.real-test-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.48rem;
  line-height: 1.25;
}

.real-test-table thead tr {
  background: #1B2A3A;
  color: #FFFFFF;
}

.real-test-table th {
  padding: 3px 4px;
  text-align: left;
  font-weight: 700;
  font-size: 0.46rem;
}

.real-test-table td {
  padding: 2.5px 4px;
  border-bottom: 0.5px solid rgba(27, 42, 58, 0.1);
  color: #1B2A3A;
}

.real-test-table tr:nth-child(even) {
  background: rgba(247, 245, 239, 0.5);
}

.test-name-cell {
  font-weight: 600;
}

.test-res-cell {
  font-weight: 800;
  color: #3E7CB1;
}

.test-ref-cell {
  color: #7D8C99;
}

.real-report-footer {
  border-top: 1px solid rgba(27, 42, 58, 0.12);
  padding-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.real-path-sig {
  display: flex;
  flex-direction: column;
}

.sig-line {
  font-family: 'Brush Script MT', cursive, serif;
  font-size: 0.72rem;
  color: #1B2A3A;
  line-height: 0.9;
}

.sig-name {
  font-size: 0.45rem;
  font-weight: 800;
  color: #1B2A3A;
}

.sig-title {
  font-size: 0.4rem;
  color: #7D8C99;
}

.real-report-barcode-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}

.real-mini-barcode {
  width: 48px;
  height: 12px;
  background: repeating-linear-gradient(90deg, #1B2A3A 0px, #1B2A3A 1.5px, transparent 1.5px, transparent 3px, #1B2A3A 3px, #1B2A3A 4.5px, transparent 4.5px, transparent 5.5px);
}

.real-trust-tagline {
  font-size: 0.42rem;
  font-weight: 800;
  color: var(--accent-gold);
  letter-spacing: 0.02em;
}


/* ==================== REAL MEDICAL SCAN IMAGE CARDS ==================== */
.doc-item-scan {
  background: #000000;
  border: 1px solid rgba(62, 124, 177, 0.4);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.scan-img-texture {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) brightness(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-item-scan:hover .scan-img-texture {
  transform: scale(1.05);
}

.scan-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  padding: 8px 10px;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  color: #93c5fd;
  box-sizing: border-box;
  pointer-events: none;
}

.scan-view-badge {
  background: rgba(62, 124, 177, 0.3);
  border: 1px solid rgba(62, 124, 177, 0.6);
  color: #93c5fd;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  white-space: nowrap;
  margin-left: auto;
}

.scan-caliper-annotation {
  position: absolute;
  top: 48%;
  left: 32%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  pointer-events: none;
}

.caliper-crosshairs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.caliper-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9C8A3D;
  box-shadow: 0 0 6px #9C8A3D;
}

.caliper-line {
  width: 48px;
  height: 1.5px;
  background: #9C8A3D;
  border-top: 1px dashed rgba(156, 138, 61, 0.8);
}

.caliper-val {
  font-family: var(--font-mono, monospace);
  font-size: 0.52rem;
  font-weight: 700;
  color: #E8D385;
  background: rgba(0, 0, 0, 0.7);
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid rgba(156, 138, 61, 0.4);
}

.scan-footer-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(0deg, rgba(13, 22, 32, 0.95) 0%, rgba(13, 22, 32, 0.6) 70%, transparent 100%);
  padding: 8px 10px;
  z-index: 5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.5rem;
  color: #A9B8C4;
  box-sizing: border-box;
}
