/* Medical news — landing hero + horizontal rails (std theme) */

.news-hero-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-auto-rows: minmax(110px, auto);
  gap: 1rem;
}
.news-hero-grid .hero-featured {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-hero-grid .hero-featured .card-img-top {
  height: 260px;
  object-fit: cover;
}
.news-hero-grid .hero-side {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: stretch;
  overflow: hidden;
}
.news-hero-grid .hero-side-img {
  width: 110px;
  height: 100%;
  object-fit: cover;
}
.news-hero-grid .hero-side .card-body {
  padding: 0.75rem 1rem;
}

@media (max-width: 768px) {
  .news-hero-grid {
    grid-template-columns: 1fr;
  }
  .news-hero-grid .hero-featured {
    grid-row: auto;
  }
  .news-hero-grid .hero-side {
    grid-template-columns: 90px 1fr;
  }
}

.news-rail-wrap {
  position: relative;
}
.news-rail-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s, transform 0.1s;
}
.news-rail-nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.06);
}
.news-rail-prev { left: -12px; }
.news-rail-next { right: -12px; }
@media (max-width: 576px) {
  .news-rail-nav { display: none; }
}

.news-rail {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0.25rem 0.75rem;
  -webkit-overflow-scrolling: touch;
}
.news-rail::-webkit-scrollbar {
  height: 8px;
}
.news-rail::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 4px;
}
.news-rail-card {
  flex: 0 0 clamp(240px, 30vw, 300px);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.news-rail-card .card-img-top {
  height: 150px;
  object-fit: cover;
}
.news-rail-card .card-title {
  font-size: 0.95rem;
  line-height: 1.35;
}
