/* ════════════════════════════════════════
   NEWS PAGE
   ════════════════════════════════════════ */

/* ── MAIN WRAPPER ── */
.news-main {
  padding: 72px 120px 80px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ── HEADER ── */
.news-header {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
}

.news-main__title {
  font-size: 34px;
  font-weight: 700;
  color: #0b1795;
  line-height: 1.2;
  margin-top: 4px;
}

.news-main__subtitle {
  font-size: 15px;
  color: #52525b;
  font-weight: 500;
  line-height: 1.65;
  max-width: 540px;
}

/* ════════════════════════════
   FEATURED ARTICLE (horizontal)
   ════════════════════════════ */
.news-featured {
  width: 100%;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
  margin-bottom: 32px;
}

.news-featured__img-wrap {
  position: relative;
  min-height: 300px;
}

.news-featured__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* "Featured" badge on image */
.news-featured__label {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #0b1795;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 6px;
}

/* Right side content */
.news-featured__content {
  background: #fff;
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  justify-content: center;
}

.news-featured__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.news-featured__category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0b1795;
  background: #eef2ff;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.4px;
}

.news-featured__date,
.news-featured__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: #71717a;
}

.news-featured__title {
  font-size: 26px;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.news-featured__desc {
  font-size: 14.5px;
  color: #52525b;
  font-weight: 500;
  line-height: 1.65;
  max-width: 400px;
}

.news-featured__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 2px solid #0b1795;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1795;
  background: #fff;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 8px;
  transition: filter 0.2s;
}
.news-featured__link:hover { filter: brightness(0.9); }

/* ════════════════════════════
   GRID WRAPPER
   ════════════════════════════ */
.news-grid-wrap {
  width: 100%;
  max-width: 1280px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 40px;
}

/* 3-col grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* 2-col grid */
.news-grid--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ════════════════════════════
   NEWS CARD (shared)
   ════════════════════════════ */
.news-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}
.news-card:hover { box-shadow: 0 8px 24px rgba(11,23,149,0.08); }

.news-card__img-wrap {
  position: relative;
}

.news-card__img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* Tag badge on image */
.news-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 6px;
  color: #fff;
  background: #0b1795;
}

/* Color-code tags by type */
.news-card__tag:is([class*="Product"]),
.news-card:has(.news-card__tag) .news-card__tag {
  background: #0b1795;
}

.news-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.news-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: #9ca3af;
}

.news-card__date,
.news-card__read {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Date/read icons via pseudo */
.news-card__date::before {
  content: "📅";
  font-size: 10px;
  opacity: 0.6;
}
.news-card__read::before {
  content: "🕐";
  font-size: 10px;
  opacity: 0.6;
}

.news-card__title {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.4;
}

.news-card__desc {
  font-size: 13px;
  color: #71717a;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
}

.news-card__link {
  font-size: 13px;
  font-weight: 700;
  color: #0b1795;
  text-decoration: none;
  border-top: 1px solid #f3f4f6;
  padding-top: 12px;
  margin-top: 8px;
  display: block;
  transition: opacity 0.2s;
}
.news-card__link:hover { opacity: 0.75; }

/* ════════════════════════════
   LOAD MORE BUTTON
   ════════════════════════════ */
.news-load-more {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: center;
}

.news-load-more__btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 32px;
  border: 2px solid #0b1795;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1795;
  background: #fff;
  cursor: pointer;
  font-family: inherit;
  transition: filter 0.2s;
}
.news-load-more__btn:hover { filter: brightness(0.9); }

/* ════════════════════════════
   RESPONSIVE
   ════════════════════════════ */
@media (max-width: 1100px) {
  .news-main { padding-inline: 48px; }
}
@media (max-width: 900px) {
  .news-featured { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .news-main { padding: 48px 24px; }
  .news-grid { grid-template-columns: 1fr; }
  .news-grid--two { grid-template-columns: 1fr; }
}
