/* hero section */
.news-hero-wrapper {
  margin-top: -90px;
  padding-top: 225px;
  position: relative;
  background: var(--ivory);
  overflow: hidden;
  @media (max-width: 1279px) {
    padding-top: 186px;
    margin-top: -72px;
  }
  @media (max-width: 449px) {
    padding-top: 176px;
  }
}

.news-hero-title {
  font: var(--heading-h2);
  color: var(--black);
  margin: 0;
  text-align: center;
  letter-spacing: -1.88px;
  @media (max-width: 991px) {
    letter-spacing: -1.2px;
    max-width: 620px;
  }
  @media (max-width: 449px) {
    letter-spacing: -1.02px;
  }
}

.news-hero {
  display: flex;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  padding-bottom: 120px;
  @media (max-width: 991px) {
    padding-bottom: 90px;
  }
  @media (max-width: 449px) {
    padding-bottom: 80px;
  }
}

.news-hero-top-section {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  @media (max-width: 991px) {
    max-width: 100%;
    gap: 24px;
  }
}

.news-bottom-gradient {
  background: linear-gradient(
    180deg,
    rgba(254, 253, 255, 0) 0.2%,
    #fefdff 87.81%
  );
  width: 100%;
  height: 187px;
  position: absolute;
  bottom: 0;
  z-index: 0;
  @media (max-width: 991px) {
    height: 90px;
  }
}

/* news post section */
.news-post-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 56px;
  @media (max-width: 1100px) {
    gap: 40px;
  }
  @media (max-width: 449px) {
    gap: 24px;
  }
}

/* news post header */
/* header */
.news-post-header {
  display: flex;
  flex-direction: column;
  gap: 32px;
  @media (max-width: 449px) {
    gap: 24px;
  }
}

.news-header-title {
  color: var(--black);
  font: var(--heading-h3);
  letter-spacing: -1.56px;
  @media (max-width: 991px) {
    letter-spacing: -1.08px;
  }
  @media (max-width: 449px) {
    letter-spacing: -0.9px;
  }
}

.news-header-tabs-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
  @media (max-width: 1100px) {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 16px;
  }
}
/* tabs */
.news-header-tabs-section {
  @media (max-width: 1100px) {
    position: relative;
    width: 100%;
  }
}

.news-header-tabs {
  display: flex;
  gap: 8px;
  @media (max-width: 1100px) {
    padding: 0px 72px;
    margin: 0px -72px;
    overflow-x: auto;
    scrollbar-width: none;
    &::-webkit-scrollbar {
      display: none;
    }
  }
  @media (max-width: 991px) {
    padding: 0 24px;
    margin: 0 -24px;
  }
  @media (max-width: 449px) {
    padding: 0 20px;
    margin: 0 -20px;
  }
}

.news-header-tab {
  background-color: var(--ivory);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
  border: none;
  font: var(--body-b3);
  color: var(--charcoal);
  transition: background-color 0.3s ease-in-out;
  white-space: nowrap;
  @media (max-width: 1100px) {
    padding: 6px 12px;
  }
}

.news-header-tab:hover {
  background-color: var(--soft-grey);
  border: none;
  box-shadow: none;
  color: var(--charcoal);
}

.news-header-tab.active,
.news-header-tab:focus {
  background-color: var(--baby-pink);
  border: none;
  box-shadow: none;
  color: var(--black);
}

.news-more-wrapper {
  position: relative;
  @media (max-width: 1100px) {
    display: none;
  }
}

.news-more-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  border-radius: 8px;
  box-shadow: 4px 4px 12px 0px #0000000f;
  border: 1px solid var(--soft-grey);
  background-color: var(--ivory);
  margin-top: 10px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease-in-out,
    visibility 0.2s ease-in-out;
}

.news-more-wrapper.open .news-more-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.news-dropdown-item {
  padding: 12px;
  font: var(--body-b3);
  color: var(--black);
  background-color: transparent;
  border-bottom: 1px solid var(--light-stroke);
  transition: background-color 0.3s ease-in-out;
  box-shadow: none;
  border-radius: 0;
  width: 190px;
  text-align: left;
}

.news-dropdown-item.active {
  background-color: var(--baby-pink);
  box-shadow: none;
  color: var(--black);
}

.news-dropdown-item.active:hover,
.news-dropdown-item.active:focus {
  background-color: var(--baby-pink);
  box-shadow: none;
  color: var(--black);
}

.news-dropdown-item:last-child {
  border-bottom: none;
}

.news-dropdown-item:last-child:hover,
.news-dropdown-item:last-child:focus {
  border-bottom: none;
}

.news-dropdown-item:hover,
.news-dropdown-item:focus {
  background-color: var(--light-ivory);
  box-shadow: none;
  border-bottom: 1px solid var(--light-stroke);
  color: var(--black);
}

.news-header-more-tab {
  background-color: var(--ivory);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
  border: none;
  font: var(--body-b3);
  color: var(--charcoal);
  display: flex;
  align-items: center;
  gap: 24px;
  svg {
    path {
      stroke: var(--charcoal);
    }
  }
}

.news-header-more-tab:hover,
.news-header-more-tab:focus,
.news-header-more-tab.active {
  background-color: var(--ivory);
  border: none;
  box-shadow: none;
  color: var(--charcoal);
}

.more-toggle svg {
  transition: transform 0.6s ease;
}

.news-more-wrapper.open .more-toggle svg {
  transform: rotate(180deg);
}

.extra-category {
  display: none;
  @media (max-width: 1100px) {
    display: block;
  }
}

/* news List section */
.news-posts-section-wrapper {
  display: flex;
  flex-direction: column;
  gap: 40px;
  @media (max-width: 991px) {
    gap: 24px;
  }
}
.news-posts-section {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
  @media (max-width: 991px) {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  @media (max-width: 550px) {
    grid-template-columns: auto;
  }
}

.news-button-flex {
  width: max-content;
  margin: auto;
  @media (max-width: 1279px) {
    display: flex;
  }
}

.news-post-card {
  background-color: var(--ivory);
  border-radius: 18px;
  padding: 12px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  cursor: pointer;
  transition:
    border-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  @media (max-width: 991px) {
    border-radius: 12px;
    padding: 8px;
    gap: 12px;
  }
}

.news-post-card:hover {
  border: 1px solid var(--soft-grey);
  box-shadow: 4px 4px 24px 0px #00000014;
  background-color: var(--ivory);
}

.news-post-img {
  width: 100%;
  height: auto;
  display: flex;
  border-radius: 12px;
  object-fit: cover;
  height: auto;
  aspect-ratio: 608 / 304;
  @media (max-width: 991px) {
    border-radius: 8px;
  }
}

.news-post-card-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 12px;
  align-items: flex-start;
  height: 100%;
  justify-content: space-between;
  @media (max-width: 991px) {
    padding: 8px;
  }
}

.news-post-card-top-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  @media (max-width: 991px) {
    gap: 10px;
  }
}

.news-post-card-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.news-post-card-title {
  font: var(--heading-h7);
  color: var(--black);
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  line-clamp: 2;
}

.news-post-card-description {
  font: var(--body-b2);
  color: var(--charcoal);
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  display: -webkit-box;
  line-clamp: 1;
}

.news-post-card-read-more {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--black);
  font: var(--link-semibold);
  transition: color 0.3s ease-in-out;
}

.news-post-card:hover .news-post-card-read-more {
  color: var(--orange);
}

.news-post-card:hover .nav-link-icon {
  transform: rotate(0deg);
}

.news-post-card .nav-link-icon path {
  transition: stroke 0.3s ease-in-out;
}

.news-post-card:hover .nav-link-icon path {
  stroke: var(--orange);
}

.news-all-post-section {
  padding: 0 0 120px;
  background-color: var(--white);
  @media (max-width: 991px) {
    padding: 0 0 90px;
  }
  @media (max-width: 449px) {
    padding: 0 0 80px;
  }
}

.news-link-wrapper {
  width: 100%;
}

.news-no-results,
.news-empty-state {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  width: max-content;
  margin: 0 auto;
  padding-top: 64px;
}

.news-button-flex {
  width: max-content;
  margin: auto;
  @media (max-width: 1279px) {
    display: flex;
  }
}

.news-all-resource-section {
  margin-top: 80px;
  margin-bottom: 120px;
  border-top: 1px solid var(--soft-grey);
  padding-top: 80px;
  @media (max-width: 991px) {
    margin-top: 40px;
    padding-top: 40px;
    margin-bottom: 90px;
  }
  @media (max-width: 449px) {
    margin-bottom: 80px;
  }
}

.news-all-resource-section .news-posts-section {
  .news-post-card:last-child {
    @media (max-width: 991px) {
      display: none;
    }
  }
}

/* author box design */
.blog-author-box {
  background-color: var(--ivory);
  border-left: 4px solid var(--orange) !important;
  border-radius: 12px;
  padding: 32px;
  margin: 48px auto 36px;
  font: var(--heading-h8);
  color: var(--black);
  max-width: 816px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  @media (max-width: 991px) {
    margin: 32px auto 20px;
    padding: 24px;
    gap: 24px;
  }
  @media (max-width: 449px) {
    padding: 20px;
    gap: 20px;
  }
}

.author-bio {
  font: var(--heading-h7);
  color: var(--black);
  margin: 0;
}

.author-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-name {
  font: var(--heading-h8);
  color: var(--black);
  margin: 0;
}

.author-inner img {
  border-radius: 50%;
  width: 66px;
  height: 66px;
}
