/* HStack for news card */
.news-card-hstack {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
}
.news-thumb-wrap {
  width: 32%;
  min-width: 120px;
  max-width: 220px;
  aspect-ratio: 3/2;
  background: #f6f7fb;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
}
.news-thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 3/2;
  object-fit: cover;
  border-radius: 8px;
}
.news-card-vstack {
  width: 70%;
  display: flex;
  flex-direction: column;
  padding: 0 0 0 24px;
  justify-content: center;
  margin-right: 10px;
}
.news-meta-hstack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  margin-top: 10px;
  margin-right: 10px;
  font-size: 0.92rem;
  color: #444;
}
.news-title {
    /* font-family removed, global font applies */
  font-weight: 700;
  font-size: 1.18rem;
  margin: 8px 0 6px 0;
  font-family: 'Montserrat', var(--hr-font, 'Playfair Display', serif);
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.92rem;
  color: var(--hr-primary,#2563eb);
}
.news-excerpt {
  color: #222;
  font-weight: 400;
  font-size: 1rem;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}
.news-link {
  color: #111 !important;
  background: none !important;
  font-weight: 600;
  text-decoration: none;
  padding: 0;
  font-size: 1rem;
  border-radius: 0;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
}
.news-link:hover {
  text-decoration: underline;
  color: #111 !important;
}
/* --- Latest News Section Styles --- */
.latest-news-section {
  background: var(--hr-bg, #fff);
  padding: 24px 0;
  margin: 0 auto;
  max-width: 1200px;
}

.latest-news-title {
  font-size: 2.1rem;
  color:  var(--hr-primary, #3B82F6);
  /* font-family removed, global font applies */
  font-weight: 700;
  margin-bottom: 32px;
  text-align: center;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 36px;
  margin: 0 auto;
  max-width: 1100px;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--hr-bg, #fff);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  width: 100%;
  height: auto;           /* Allow dynamic height */
  min-height: 280px;      /* Optional minimum height */
}


.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(34,64,142,0.12);
}

.news-thumb-wrap {
  position: relative;
  background: #f6f7fb;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.news-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.news-card-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
  flex: 1;
}

.news-title {
  font-size: 1.25rem;
  color: var(--hr-primary, #091235);
    /* font-family removed, global font applies */
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
}

.news-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 16px;
}

.news-excerpt {
  font-size: 1rem;
  color: #444;
  margin-bottom: 24px;
  line-height: 1.6;
  flex-grow: 1;
}

.news-card-footer {
  margin-top: auto;
}

.news-link {
  display: inline-block;
  background: var(--hr-primary, #091235);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.news-link:hover {
  background: #2d53b4;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .latest-news-section {
    padding: 24px 0;
  }
  
  .latest-news-title {
    font-size: 1.8rem;
    margin-bottom: 24px;
    text-align: center;
    padding: 0 20px;
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .news-card {
    min-height: 380px;
  }
}

.news-card-vstack {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1;
  padding: 0 0 0 24px;
}

.news-excerpt {
  color: #222;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* make it 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 8px 0 16px 0;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .news-card-hstack {
    flex-direction: column;
  }

  .news-thumb-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 16px;
  }

  .news-card-vstack {
    width: 100%;
    padding: 0 16px; /* or 0 if you want zero padding */
  }
}
