/* Gradient background for news section */
#bodyPanelNews {
  position: relative;
  /* background: rgb(11, 12, 16); */
  padding: 112px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  visibility: visible !important;
  overflow: hidden;
}

#bodyPanelNews::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.15) 0%, rgba(0, 123, 255, 0) 42%),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.01) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  pointer-events: none;
  z-index: 0;
}

#bodyPanelNews > * {
  position: relative;
  z-index: 1;
}

/* Hero section */
.news-hero {
  color: #fff;
  padding: 0px 0 32px 0;
  text-align: center;
}

.news-hero h1 {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 600;
  margin: 40px 0 18px 0;
  letter-spacing: -0.02em;
  color: #fff;
}

.news-hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 18px;
  color: rgba(255,255,255,0.38);
  margin: 0 auto;
  max-width: 600px;
  line-height: 1.55;
  font-weight: 400;
}

/* News panel carousel styles */
.news-panel-viewport {
  width: 100vw;
  overflow: hidden;
  padding: 48px 0 64px 0;
}

.news-panel-track {
  display: flex;
  align-items: stretch;
  gap: 36px;
  width: max-content;
  animation: news-carousel 60s linear infinite;
  will-change: transform;
  animation-play-state: running;
}

/* Pause animation when hovering any news-panel */
.news-panel:hover ~ .news-panel,
.news-panel:hover,
.news-panel-track:hover,
.news-panel:hover ~ .news-panel-track {
  /* No effect, but needed for specificity */
}

/* News panel card styling */
.news-panel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(13, 17, 23, 0.18);
  min-width: 380px;
  max-width: 420px;
  max-height: 420px;
  overflow: auto;
  padding: 38px 44px 32px 44px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: box-shadow 200ms, transform 200ms, border-color 200ms;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
  z-index: 1;
}

/* Gradient accent bar for each panel, using classes like the carousel */
.news-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 16px 16px 0 0;
  z-index: 2;
  background: linear-gradient(90deg, rgb(0, 123, 255), rgb(255, 200, 0));
}

/* Assign different gradients via classes */
.news-panel-blue-yellow::before {
  background: linear-gradient(90deg, rgb(0, 123, 255), rgb(255, 200, 0));
}
.news-panel-yellow-green::before {
  background: linear-gradient(90deg, rgb(255, 200, 0), rgb(140, 200, 140));
}
.news-panel-green-blue::before {
  background: linear-gradient(90deg, rgb(140, 200, 140), rgb(0, 123, 255));
}
.news-panel-blue-green::before {
  background: linear-gradient(90deg, rgb(0, 123, 255), rgb(140, 200, 140));
}

/* Hover effect */
.news-panel:hover {
  box-shadow: 0 18px 48px rgba(13, 17, 23, 0.28);
  transform: translateY(-4px) scale(1.012);
  border-color: rgba(0, 123, 255, 0.18);
}

.news-date {
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  color: rgb(0, 123, 255);
  letter-spacing: 0.13em;
  margin-bottom: 10px;
  text-transform: uppercase;
  opacity: 0.95;
}

.news-title {
  font-family: 'Sora', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 18px 0;
  color: #fff;
  letter-spacing: -0.01em;
}

.news-panel p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 10px 0;
}

.news-link {
  color: rgb(0, 123, 255);
  text-decoration: underline;
  font-weight: 600;
  font-size: 15px;
  margin-right: 12px;
}

.news-panel.is-duplicate {
  display: flex;
}

/* Carousel animation */
@keyframes news-carousel {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Responsive styles */
@media (max-width: 900px) {
  .news-panel {
    min-width: 340px;
    max-width: 98vw;
    padding: 22px 12px 22px 12px;
  }
  .news-panel-track {
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .news-hero {
    padding: 32px 0 18px 0;
  }
  .news-panel {
    min-width: 92vw;
    padding: 14px 6vw 18px 6vw;
    border-radius: 12px;
  }
}