/* latest-news */
body:has(.news-archive-page:first-child) .main-header .container {
  border: 1px solid #002f371a;
  background-color: #f4f3e8;
}
.news-archive-page:first-child {
  padding-top: 225px;
}
.news-archive-page:only-child {
  padding-bottom: 200px;
}
.latest-news {
  padding: 110px 0;
  float: left;
  width: 100%;
}
.latest-news .heading-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 80px;
  border-bottom: 1px solid #002f371a;
  margin-bottom: 80px;
}
.latest-news .news-grid-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.news-item > a {
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.latest-news .news-grid-wrapper .news-item .f-img {
  display: flex;
  position: relative;
  margin-bottom: 20px;
  overflow: hidden;
  padding-top: 80%;
  border-radius: 12px;
}
.latest-news .news-grid-wrapper .f-img img {
  max-width: 100%;
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  margin: auto;
}
.latest-news .news-grid-wrapper .news-item .f-img .category-wrap {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 13px;
  line-height: 13px;
  color: #fffef2;
  background: rgba(0, 47, 55, 0.5);
  backdrop-filter: blur(2px);
  border-radius: 6px;
  position: absolute;
  padding: 10px 12px;
  bottom: 20px;
  left: 20px;
  top: auto;
}
.latest-news .news-grid-wrapper .date p {
  opacity: 70%;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
}
.latest-news .news-grid-wrapper .title h5 {
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px;
}
.latest-news .news-grid-wrapper .news-item .title p {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #1d1d1f;
}
.latest-news .news-grid-wrapper .news-item .title {
  margin-bottom: 16px;
}
.latest-news .news-grid-wrapper .read-btn {
  margin-top: auto;
  font-size: 18px;
  font-weight: 500;
  line-height: 24px;
  display: flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
}
.latest-news .news-grid-wrapper .read-btn .btn {
  width: 20px;
  height: 20px;
  background-color: rgba(0, 47, 55, 0.1);
  border-radius: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.latest-news .news-grid-wrapper .read-btn .btn svg {
  transition: transform 0.2s ease-out;
}

.latest-news .news-grid-wrapper .read-btn:hover .btn svg {
  animation: arrow-reenter 0.4s ease forwards;
}
.latest-news .heading-block .heading-left > *:first-child {
  margin-bottom: 20px;
}
@keyframes arrow-reenter {
  0% {
    transform: translateY(0); /* Normal position */
    opacity: 1;
  }
  30% {
    transform: translateY(-10px); /* Move up & disappear */
    opacity: 0;
  }
  60% {
    transform: translateY(10px); /* Jump to bottom */
    opacity: 0;
  }
  100% {
    transform: translateY(0); /* Come up to original */
    opacity: 1;
  }
}
/* .latest-news .news-grid-wrapper .read-btn svg {
  width: 20px;
} */
.latest-news .heading-block .heading-right {
  width: 432px;
  display: flex;
  align-items: center;
  justify-content: end;
}
.latest-news .heading-block .heading-left {
  width: calc(100% - 450px);
}
.media-contact-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 32px;
  background: #f4f3e8;
  border: 1px solid rgba(0, 47, 55, 0.1);
  border-radius: 12px;
  gap: 8px;
  max-width: 432px;
  width: 100%;
  font-size: 24px;
  line-height: 32px;
}
.media-contact-box a {
  font-weight: 500;
}
.latest-news .heading-block h2 + p {
  opacity: 60%;
  margin-top: 24px;
}
@media (min-width: 768px) {
  .latest-news .news-grid-wrapper > * {
    width: calc(33.33% - 16px);
  }
}
@media (max-width: 1500px) {
  .latest-news .news-grid-wrapper .read-btn {
    font-size: 16px;
  }
  .media-contact-box {
    font-size: 22px;
    line-height: 30px;
  }
}
@media (max-width: 1400px) {
  .latest-news .news-grid-wrapper {
    padding-top: 48px;
  }
  .media-contact-box {
    font-size: 20px;
    line-height: 28px;
  }
  .category-tabs {
    width: calc(100% - 250px) !important;
  }
}
@media (max-width: 1199px) {
  .news-archive-page:first-child {
    padding-top: 185px;
  }
  .news-archive-page:only-child {
    padding-bottom: 150px;
  }
  .latest-news {
    padding: 100px 0;
  }
  .media-contact-box {
    font-size: 18px;
    line-height: 26px;
    padding: 25px 20px;
  }
}
@media (max-width: 991px) {
  .news-archive-page:first-child {
    padding-top: 150px;
  }
  .latest-news {
    padding: 90px 0;
  }
  .latest-news .heading-block .heading-right {
    width: 335px;
  }
  .latest-news .heading-block .heading-left {
    width: calc(100% - 345px);
  }
}
@media (max-width: 767px) {
  .news-archive-page:first-child {
    padding-top: 135px;
  }
  .news-archive-page:only-child {
    padding-bottom: 100px;
  }
  .latest-news .heading-block a {
    display: none;
  }
  .latest-news .heading-block .media-contact-box a {
    display: block;
  }
  .latest-news .news-grid-wrapper {
    padding-top: 32px;
  }
  .latest-news {
    padding: 50px 0;
  }
  .latest-news .slick-slide {
    margin: 0 8px;
  }
  .latest-news .slick-list {
    margin: 0 -8px;
  }
  .latest-news .news-grid-wrapper .date p,
  .latest-news .news-grid-wrapper .read-btn {
    font-size: 14px;
  }
  .latest-news .heading-block {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    padding-bottom: 40px;
    margin-bottom: 35px;
  }
  .latest-news .heading-block .heading-right,
  .latest-news .heading-block .heading-left {
    width: 100%;
  }
  .latest-news .heading-block .heading-right {
    justify-content: start;
    margin-top: 30px;
  }
}
@media (max-width: 575px) {
  .media-contact-box {
    font-size: 16px;
    line-height: 24px;
    padding: 20px 15px;
  }
}

/* ================================
   NEWS ARCHIVE STYLING
================================ */
.news-archive-page {
  padding: 60px 0;
}

/* ---------- CATEGORY TABS ---------- */
.category-tabs {
  list-style: none;
  display: flex;
  column-gap: 24px;
  row-gap: 10px;
  padding: 0;
  margin: 0 0 0px 0;
  width: calc(100% - 175px);
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 7px;
}
.category-tabs::-webkit-scrollbar {
  height: 4px;
}
.category-tabs::-webkit-scrollbar-thumb {
  background-color: rgba(0, 47, 55, 0.3);
}

.category-tabs li {
  flex-shrink: 0;
}

.category-tabs li a {
  text-decoration: none;
  padding: 5px 0px;
  display: inline-block;
  position: relative;
  font-weight: 600;
  font-size: 18px;
  line-height: 24px;
}

.category-tabs li.active a,
.category-tabs li a:hover {
  color: var(--color-dark);
}

.category-tabs li.active a::after,
.category-tabs li a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0px;
  width: 100%;
  height: 2px;
  background: var(--color-dark);
}

/* ---------- YEAR DROPDOWN ---------- */
.year-filter {
  padding: 15px 15px;
  border: 1px solid #002f371a;
  border-radius: 6px;
  font-size: 18px;
  margin-left: auto;
  background: var(--color-serum);
  cursor: pointer;
  background-position: right 15px center;
  background-image: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(%23clip0_397_453)"><path d="M4.76209 8.18182L10.0002 13.6364L15.2383 8.18182" stroke="%23232323" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></g><defs><clipPath id="clip0_397_453"><rect width="20" height="20" fill="white" transform="matrix(-1 0 0 1 20 0)"/></clipPath></defs></svg>');
  background-repeat: no-repeat;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  padding-right: 40px;
  max-width: 160px;
  width: 100%;
}

/* Wrap tabs + dropdown */
.archive-filters {
  display: flex;
  align-items: center;
  margin-bottom: 45px;
}

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

/* ---------- PAGINATION ---------- */
.pagination-wrapper {
  margin-top: 50px;
  text-align: center;
}

.pagination-wrapper .page-numbers {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 5px;
  background: #f0f0ef;
  border-radius: 6px;
  color: var(--color-dark);
  text-decoration: none;
  min-width: 44px;
  font-size: 18px;
  line-height: 28px;
}

.pagination-wrapper .current {
  background: var(--color-dark);
  color: #fff;
}

.pagination-wrapper .page-numbers:hover {
  background: var(--color-dark);
  color: #fff;
}

/* ---------- RESPONSIVE GRID ---------- */
@media (max-width: 1024px) {
  .latest-news .news-grid-wrapper > * {
    width: calc(50% - 16px);
  }
}

@media (max-width: 767px) {
  .archive-filters {
    flex-direction: column;
    align-items: start;
    justify-content: start;
    margin-bottom: 0px;
  }
  select.year-filter {
    margin-left: 0;
    margin-right: auto;
  }
  .category-tabs {
    width: 100% !important;
    margin-bottom: 10px;
  }
  .pagination-wrapper .page-numbers {
    padding: 5px 10px;
    margin: 0 0px;
    min-width: 34px;
    font-size: 14px;
    line-height: 24px;
  }
}

@media (max-width: 600px) {
  .latest-news .news-grid-wrapper > * {
    width: 100%;
  }

  .archive-filters {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
}
@media (max-width: 359px) {
  .pagination-wrapper a.next.page-numbers {
    margin-top: 10px;
  }
}
