/* ========================================
   NEWS PAGES - Shared Styles
   (news-list.html & news-detail.html)
   ======================================== */

/* ========================================
   NEWS HERO BANNER
   ======================================== */
.news-hero {
  position: relative;
  width: 100%;
  height: 686px;
  display: flex;
  align-items: flex-end;
  padding: 0 var(--spacing-section-padding);
  padding-bottom: 120px;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.news-hero__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(3, 74, 173, 0.3) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(3, 74, 173, 0.2) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.news-hero__title {
  position: relative;
  z-index: 2;
  font-size: var(--font-size-h1);
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.06;
}

/* ---- Detail page hero layout ---- */
.news-hero--detail {
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0;
}

.news-hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 60px;
}

.article__header--hero {
  margin-top: 0;
}

.article__header--hero .article__title {
  color: var(--color-white);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 36px;
  line-height: 1.35;
}

.article__header--hero .article__date-row {
  justify-content: flex-end;
}

.article__header--hero .article__date {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-xs);
}

.article__header--hero .article__divider {
  background-color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0;
}

/* ========================================
   NEWS LIST - TAB FILTERS
   ======================================== */
.news-filters {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 686px;
  margin: 0 auto;
}

.news-filter {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.news-filter__text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-lg);
  font-weight: 500;
  text-transform: uppercase;
  color: var(--color-black);
  opacity: 0.4;
  transition: color 0.3s ease, opacity 0.3s ease;
  line-height: normal;
}

.news-filter.active .news-filter__text {
  color: var(--color-primary);
  opacity: 1;
}

.news-filter__line {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.news-filter.active .news-filter__line {
  opacity: 1;
}

.news-filter:hover .news-filter__text {
  opacity: 0.7;
}

.news-filter.active:hover .news-filter__text {
  opacity: 1;
}

/* ========================================
   NEWS LIST - CARDS SECTION
   ======================================== */
.news-list-section {
  padding: 86px var(--spacing-section-padding) 80px;
  background: var(--color-white);
  position: relative;
}



/* Card interactions: consistent with index.html News section */

/* Override the responsive.css nth-child(3) rule for news list */
.news-list-section .news-card:nth-child(3) {
  grid-column: auto;
  max-width: none;
}

/* ========================================
   NEWS LIST - PAGINATION
   ======================================== */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 86px;
}

.pagination__btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: var(--color-white);
  transition: all 0.3s ease;
}

.pagination__btn:hover {
  border-color: var(--color-primary);
  background: rgba(3, 74, 173, 0.05);
}

.pagination__btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--color-black);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pagination__btn:hover svg {
  stroke: var(--color-primary);
}

.pagination__numbers {
  display: flex;
  align-items: center;
  gap: 36px;
}

.pagination__num {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: none;
  border: none;
}

.pagination__num:hover {
  color: var(--color-primary);
  background: rgba(3, 74, 173, 0.05);
}

.pagination__num.active {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 8px;
}

.pagination__dots {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  color: rgba(0, 0, 0, 0.6);
}

/* ========================================
   NEWS DETAIL - ARTICLE
   ======================================== */
.article-section {
  padding: 68px 0 90px;
  background: var(--color-white);
  position: relative;
}

.article-container {
  max-width: 960px;
  margin: 0 auto;
}

.article__header {
  margin-bottom: 0;
}

.article__header .article__date-row {
  justify-content: flex-end;
  margin-bottom: 12px;
}

.article__title {
  font-family: var(--font-family-primary);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--color-black);
  line-height: 1.35;
  margin-bottom: 36px;
}

.article__date-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.article__date {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-black);
  letter-spacing: 0.5px;
  text-transform: capitalize;
}

.article__date--secondary {
  color: var(--color-text-gray);
}

.article__divider {
  width: 100%;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.8);
  margin-bottom: 56px;
}

.article__intro {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.6;
  line-height: 1.7;
  text-transform: capitalize;
  margin-bottom: 40px;
}

.article__subtitle {
  font-family: var(--font-family-primary);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.45;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.article__text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.6;
  line-height: 1.75;
  text-transform: capitalize;
  margin-bottom: 40px;
}

.article__image {
  width: 100%;
  height: 430px;
  object-fit: cover;
  margin-bottom: 40px;
}

/* ---- CMS 富文本输出的纯 HTML 标签样式（与上方 class 样式保持一致）---- */
.article__body > p:first-child {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-body-sm);
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.6;
  line-height: 1.7;
  text-transform: capitalize;
  margin-bottom: 40px;
}

.article__body h3 {
  font-family: var(--font-family-primary);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-black);
  line-height: 1.45;
  text-transform: capitalize;
  margin-bottom: 20px;
}

.article__body p {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.6;
  line-height: 1.75;
  text-transform: capitalize;
  margin-bottom: 16px;
}

.article__body .article__text,
.article__body div {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-small);
  font-weight: 400;
  color: var(--color-black);
  opacity: 0.6;
  line-height: 1.75;
  text-transform: capitalize;
  margin-bottom: 40px;
}

.article__body img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  margin-bottom: 40px;
}

/* ========================================
   NEWS DETAIL - NAVIGATION (Back / Before / After)
   ======================================== */
.article-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  margin-top: 90px;
}

.article-nav__back {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.article-nav__back:hover {
  opacity: 0.7;
}

.article-nav__back-icon {
  width: 34px;
  height: 34px;
  transform: rotate(180deg);
}

.article-nav__back-text {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: 400;
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.article-nav__links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 463px;
  text-align: right;
}

.article-nav__link {
  font-family: var(--font-family-primary);
  font-size: var(--font-size-xs);
  font-weight: 400;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s ease;
  cursor: pointer;
}

.article-nav__link--before {
  color: var(--color-primary);
  letter-spacing: 0.02em;
}

.article-nav__link--after {
  color: var(--color-black);
  letter-spacing: 0.02em;
}

.article-nav__link:hover {
  color: var(--color-primary);
  opacity: 0.8;
}

/* ========================================
   NEWS DETAIL - BOTTOM NEWS SECTION
   ======================================== */
.news-bottom {
  padding: 0 var(--spacing-section-padding) 100px;
  background: var(--color-white);
}

.news-bottom .news__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
}

.news-bottom .news__title {
  font-size: 2rem;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.1;
}

.news-bottom .news__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* Override responsive.css nth-child(3) for bottom news */
.news-bottom .news-card:nth-child(3) {
  grid-column: auto;
  max-width: none;
}

/* ========================================
   NEWS CARD IMAGE WRAPPER (overflow hidden for hover zoom)
   ======================================== */
.news-card__image-wrapper {
  width: 100%;
  height: 222px;
  overflow: hidden;
}

.news-card__image-wrapper .news-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.news-card:hover .news-card__image-wrapper .news-card__image {
  transform: scale(1.05);
}

/* ========================================
   GRADIENT DECORATION
   ======================================== */
.news-gradient-decoration {
  position: fixed;
  left: -445px;
  bottom: -200px;
  width: 802px;
  height: 802px;
  background: rgba(228, 239, 251, 0.48);
  filter: blur(105px);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   NEWS PAGES - RESPONSIVE
   ======================================== */

/* Tablet */
@media (max-width: 1199px) {
  .news-hero {
    height: auto;
    min-height: 450px;
    padding-bottom: 80px;
  }

  .news-hero--detail {
    min-height: 500px;
    padding-bottom: 0;
  }

  .news-hero__content {
    max-width: 100%;
    padding-bottom: 60px;
  }

  .article__header--hero .article__title {
    font-size: 2rem;
    margin-bottom: 28px;
  }

  .news-hero__title {
    font-size: 3rem;
  }

  .news-filters {
    width: 100%;
    max-width: 600px;
  }

  .news-filter__text {
    font-size: 1.125rem;
  }

  .news-list-section {
    padding: 60px var(--spacing-section-padding) 60px;
  }

  .news-list-section .news__grid {

    grid-template-columns: repeat(2, 1fr);
  }

  .article-container {
    max-width: 100%;
    padding: 0 var(--spacing-section-padding);
  }

  .article__title {
    font-size: 2rem;
  }

  .article__subtitle {
    font-size: 1.375rem;
  }

  .article-section {
    padding: 50px 0 60px;
  }

  .article-nav {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
  }

  .article-nav__links {
    max-width: 100%;
    text-align: left;
  }

  .news-bottom .news__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pagination {
    gap: 24px;
    margin-top: 60px;
  }

  .pagination__numbers {
    gap: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .news-hero {
    min-height: 350px;
    padding-bottom: 60px;
  }

  .news-hero--detail {
    min-height: auto;
    padding-bottom: 0;
  }

  .news-hero__content {
    padding-bottom: 40px;
  }

  .article__header--hero .article__title {
    font-size: 1.375rem;
    margin-bottom: 20px;
  }

  .news-filters {
    width: 100%;
    gap: 0;
  }

  .news-filter__text {
    font-size: 0.875rem;
  }

  .news-list-section {
    padding: 40px var(--spacing-section-padding) 40px;
  }

  .news-list-section .news__grid {

    grid-template-columns: 1fr;
  }

  .article__title {
    font-size: 1.375rem;
  }

  .article__subtitle {
    font-size: 1.25rem;
  }

  .article__intro {
    font-size: 0.9375rem;
    line-height: 1.65;
  }

  .article__text {
    font-size: 0.9375rem;
    line-height: 1.7;
  }

  .article__image,
  .article__body img {
    height: 250px;
  }

  .article-section {
    padding: 36px 0 40px;
  }

  .article-nav {
    margin-top: 60px;
  }

  .article-nav__links {
    width: 100%;
  }

  .article-nav__link {
    white-space: normal;
    font-size: 0.875rem;
  }

  .news-bottom {
    padding: 0 var(--spacing-section-padding) 60px;
  }

  .news-bottom .news__grid {
    grid-template-columns: 1fr;
  }

  .news-bottom .news__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .pagination {
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
  }

  .pagination__numbers {
    gap: 16px;
  }

  .pagination__num,
  .pagination__btn {
    width: 36px;
    height: 36px;
    font-size: 0.875rem;
  }
}

/* Small Mobile */
@media (max-width: 374px) {
  .article__title {
    font-size: 1.25rem;
  }

  .article__header--hero .article__title {
    font-size: 1.25rem;
    margin-bottom: 16px;
  }

  .article__subtitle {
    font-size: 1.125rem;
  }

  .news-filter__text {
    font-size: 0.75rem;
  }
}
