/* ── News / Real Results Section ── */
.news {
  background: var(--surface);
}

.news__title {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--tertiary), var(--primary-container));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.news__label {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--outline);
  margin-top: 0.5rem;
}

/* ── Nav: arrows + dots ── */
.news__nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.news__arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--outline-variant);
  color: var(--on-surface);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s;
  line-height: 1;
  padding: 0;
}

.news__arrow:hover { border-color: var(--primary); }

.news__dots {
  display: flex;
  gap: 0.5rem;
}

.news__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--outline-variant);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.2s;
}

.news__dot--active {
  background: var(--primary-container);
  transform: scale(1.3);
}

.news__hint {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  color: var(--outline);
  margin-top: 0.5rem;
  letter-spacing: 0.05em;
}

/* ── Carousel container ── */
.news__carousel {
  width: 100%;
  max-width: 1100px;
  margin-top: 1.5rem;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-low);
  position: relative;
}

/* ── Slide ── */
.news__slide {
  display: none;
}

.news__slide--active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "img header" "img content";
  min-height: 380px;
  animation: newsIn 0.5s ease;
}

.news__slide--flipped.news__slide--active {
  grid-template-areas: "header img" "content img";
}

@keyframes newsIn { from { opacity: 0; } to { opacity: 1; } }

/* Header */
.news__slide-header {
  grid-area: header;
  padding: 2rem 2rem 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.news__slide-header h3 {
  font-family: 'Rubik', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--on-surface);
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(60, 215, 255, 0.3);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Image */
.news__slide-img {
  grid-area: img;
  position: relative;
  overflow: hidden;
}

.news__slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news__slide-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 60%, var(--surface-low) 100%);
  pointer-events: none;
}

.news__slide--flipped .news__slide-img-overlay {
  background: linear-gradient(270deg, transparent 60%, var(--surface-low) 100%);
}

/* Content */
.news__slide-content {
  grid-area: content;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0.75rem 2rem 2rem;
  text-align: left;
}

.news__text {
  font-size: 0.95rem;
  color: var(--on-surface-variant);
  line-height: 1.8;
  margin: 0 0 1.25rem;
}

.news__text .kw,
.news__subtext .kw,
.news__stat-label .kw {
  color: var(--tertiary);
  font-weight: 600;
}

/* ── Stats grid ── */
.news__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin: 0 0 1rem;
  width: 100%;
}

.news__stats--3col { grid-template-columns: repeat(3, 1fr); }
.news__stats--4col { grid-template-columns: repeat(4, 1fr); }

.news__stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.3rem;
  padding: 0.6rem 0.5rem;
  border-radius: 4px;
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
}

.news__stat-value {
  font-family: 'Rubik', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.news__stat-bar {
  width: 100%;
  height: 4px;
  background: rgba(66, 71, 84, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.news__stat-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-container), var(--tertiary));
  border-radius: 2px;
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.news__stat-label {
  font-size: 0.7rem;
  color: var(--outline);
  line-height: 1.4;
}

/* Subtext & source */
.news__subtext {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--outline);
  margin-top: 1rem;
  letter-spacing: 0.02em;
}

.news__source {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: rgba(140, 144, 159, 0.6);
  margin-top: 1rem;
}

.news__source a {
  color: var(--outline);
  text-decoration: underline;
  text-decoration-color: rgba(140, 144, 159, 0.3);
}

.news__source a:hover { color: var(--on-surface-variant); }

/* ── Responsive: Laptop ≤ 1366px ── */
@media (max-width: 1366px) {
  .news__carousel { max-width: 900px; }
  .news__slide-header h3 { font-size: 1.2rem; }
}

/* ── Responsive: Tablet ≤ 768px ── */
@media (max-width: 768px) {
  .news__slide--active {
    grid-template-columns: 1fr;
    grid-template-areas: "header" "img" "content";
    min-height: auto;
  }

  .news__slide--flipped.news__slide--active {
    grid-template-areas: "header" "img" "content";
  }

  .news__slide-img { max-height: 180px; }

  .news__slide-img-overlay,
  .news__slide--flipped .news__slide-img-overlay {
    background: linear-gradient(0deg, var(--surface-low) 0%, transparent 60%);
  }

  .news__stats { grid-template-columns: 1fr; }
  .news__stats--3col,
  .news__stats--4col { grid-template-columns: 1fr; }
}

/* ── Responsive: Mobile ≤ 480px ── */
@media (max-width: 480px) {
  .news__slide-header { padding: 1.5rem 1.5rem 0.5rem; }
  .news__slide-header h3 { font-size: 1.1rem; }
  .news__slide-content { padding: 1rem 1.5rem 1.5rem; }
  .news__text { font-size: 0.8rem; line-height: 1.6; margin-bottom: 0.75rem; }
  .news__stat-value { font-size: 1.1rem; }
  .news__stat-label { font-size: 0.65rem; }
  .news__subtext { font-size: 0.65rem; }
  .news__slide-img { max-height: 120px; }
}
