/* NEWS CARD.PHP */
.news_card_cotnainer {
  display: flex;
  gap: 30px;
}

.news_card_grid {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 25px;
}

.news_card {
  width: calc(100% / 3 - 10px);
  background: var(--dark);
  border-radius: 10px;
  overflow: hidden;
}

.news_card img {
  width: 100%;
  object-fit: cover;
}

.news_card_content {
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
}

.news_card_tag {
  font-family: "FIRAGO-MEDIUM";
  color: var(--brand);
  text-transform: uppercase;
}

.news_card_title {
  color: var(--text-primary);
  font-size: 19px;
  line-height: 21px;
}

.news_card_excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 21px;
  margin-top: 5px;
}

.news_card_bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--text-secondary);
}

.viewer i {
  font-size: 14px;
  margin-right: 5px;
}

/* ===================== NEWS PAGE ===================== */
.news_categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 15px 0;
}

.category_btn {
  font-size: 15px;
  color: var(--text-primary);
  padding: 7px 10px 5px 10px;
  border: 1px solid var(--brand);
  border-radius: 6px;
  text-transform: uppercase;
  transition: all 0.25s ease;
}

.category_btn:hover,
.category_btn.active {
  background-color: var(--brand);
  color: var(--text-primary);
}

/* =============== NEWS DETAILS PAGE =============== */
.news_hero_wrapper {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 25px;
}

.news_hero_image {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.news_hero_overlay {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 55%;
  background: linear-gradient(to top, var(--brand) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0.75;
}

.news_hero_category {
  position: absolute;
  bottom: 15px;
  left: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 13px;
  font-family: "FIRAGO-MEDIUM";
  padding: 5px 12px;
  border-radius: 5px;
  text-transform: uppercase;
  z-index: 2;
  letter-spacing: 0.5px;
}

/* Meta info */
.news_meta {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.news_meta i {
  margin-right: 3px;
  color: var(--brand);
}

.news_body {
  line-height: 22px;
}

.news_body.section_content h2 {
  margin: 12px 0px;
}

@media screen and (max-width: 820px) {
  .news_card {
    width: 100%;
  }

  .news_hero_image {
    height: 250px;
  }
}
