/* ===== LATEST NEWS & UPDATES ===== */
.news-section {
  background: #e4f3ff; /* light blue */
  padding: 4rem 1.5rem;
}

.news-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* Header */
.news-header {
  text-align: center;
  margin-bottom: 2.4rem;
}

.news-kicker {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0a9446;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: clamp(2rem, 3vw, 2.4rem);
  color: #155b3c;
  margin-bottom: 0.4rem;
}

.news-subtitle {
  max-width: 640px;
  margin: 0.5rem auto 0;
  font-size: 0.98rem;
  color: #3b5e4c;
}

/* Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}

/* Card */
.news-card {
  background: #ffffff;
  /* border-radius: 1.1rem; */
  overflow: hidden;
  /* box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08); */
  transform: translateY(30px);
  opacity: 0;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease,
    opacity 0.35s ease;
}

/* Image */
.news-image-wrap {
  position: relative;
  width: 100%;
  padding-top: 62%; /* 16:10-ish ratio */
  overflow: hidden;
}

.news-image-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 0.4s ease;
}

/* Body */
.news-body {
  padding: 1.2rem 1.2rem 1.4rem;
}

.news-meta {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0e75c2;
  /* font-weight: 800; */
  margin-bottom: 0.4rem;
}

.news-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #455b52;
  margin-bottom: 0.45rem;
}

.news-excerpt {
  font-size: 0.9rem;
  color: #455b52;
  margin-bottom: 0.9rem;
}

/* Read more button */
.news-readmore {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #4bb4e6;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #4bb4e6;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.news-readmore::after {
  content: "↗";
  font-size: 0.85rem;
}

/* Hover States */
.news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.14);
}

.news-card:hover .news-image-wrap img {
  transform: scale(1.08);
}

.news-card:hover .news-readmore {
  background-color: #455b52;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}

/* In-view animation */
.news-section.in-view .news-card {
  opacity: 1;
  transform: translateY(0);
}

/* slight stagger for cards */
.news-section.in-view .news-card:nth-child(1) {
  transition-delay: 0.05s;
}
.news-section.in-view .news-card:nth-child(2) {
  transition-delay: 0.15s;
}
.news-section.in-view .news-card:nth-child(3) {
  transition-delay: 0.25s;
}

/* Responsive */
@media (max-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-section {
    padding: 3rem 1.1rem;
  }

  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-body {
    padding: 1rem 1.05rem 1.3rem;
  }
}

/* ===== MOBILE: SHOW NEWS CARDS IMMEDIATELY (NO DELAY) ===== */
@media (max-width: 640px) {
  .news-card {
    opacity: 1;
    transform: none;
    transition: none; /* no animation delay on small screens */
  }

  /* Also don't stagger on mobile */
  .news-section.in-view .news-card:nth-child(1),
  .news-section.in-view .news-card:nth-child(2),
  .news-section.in-view .news-card:nth-child(3) {
    transition-delay: 0s;
  }
}
