/* AIMS Release 7.1 — news surfaces (home, index, article). Sinhala/Tamil-ready typography. */

.aims-home-news {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 0 1rem;
}

@media (max-width: 900px) {
  .aims-home-news {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.aims-news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(32, 57, 115, 0.12);
  border: 1px solid rgba(32, 57, 115, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 100%;
}

.aims-news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(32, 57, 115, 0.18);
}

.aims-news-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #203973 0%, #4267cf 100%);
}

.aims-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.aims-news-card__body {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.aims-news-card__kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #203973;
}

.aims-news-card__title {
  font-family: Poppins, "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1b1b1b;
  margin: 0;
}

.aims-news-card__summary {
  font-size: 0.88rem;
  line-height: 1.45;
  color: #444;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aims-news-index {
  padding: 2.5rem 0 4rem;
  background: linear-gradient(180deg, #f8f6f0 0%, #fff 35%);
}

.aims-news-index__intro {
  max-width: 640px;
  margin-bottom: 2rem;
}

.aims-news-index__intro p {
  color: #555;
  line-height: 1.6;
}

.aims-news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.aims-article {
  padding-bottom: 3rem;
}

.aims-article__hero {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  background: #203973;
  color: #fff;
  margin-bottom: 0;
}

.aims-article__hero--text-only {
  min-height: 200px;
  background: linear-gradient(120deg, #203973, #2a4a8a);
}

.aims-article__hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

.aims-article__hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.5rem 0 2rem;
  width: 100%;
}

.aims-article__hero h1 {
  font-family: Poppins, "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: 48rem;
}

.aims-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.9rem;
  opacity: 0.92;
}

.aims-article__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 0;
  max-width: 720px;
}

.aims-article__lede {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #333;
  font-weight: 500;
  border-left: 4px solid #ed254e;
  padding-left: 1rem;
  margin: 0 0 1.5rem;
}

.aims-article__body {
  font-family: Poppins, "Noto Sans Sinhala", "Noto Sans Tamil", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: #222;
}

.aims-article__body h2,
.aims-article__body h3 {
  color: #203973;
  margin-top: 1.75rem;
}

.aims-article__body a {
  color: #203973;
}

.aims-article__back {
  display: inline-block;
  margin: 1rem 0 0;
  font-weight: 600;
  color: #203973;
  text-decoration: none;
}

.aims-article__back:hover {
  text-decoration: underline;
}