/* News page */
.news-page {
  position: relative;
  background-color: #fff;
}

.news-banner {
  position: relative;
  width: 100%;
  height: 460px;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.news-banner__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.news-banner__img--mobile {
  display: none;
}

.news-body {
  padding: 48px 0 56px;
}

.news-section-title {
  margin: 0;
  font-size: 36px;
  font-weight: var(--font-weight-body);
  line-height: 1.2;
  color: var(--color-primary);
}

.news-layout {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto;
  column-gap: var(--layout-gap);
  row-gap: 32px;
  align-items: start;
}

.news-layout__title {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
}

.news-head {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.news-head__label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--color-black);
  margin-bottom: 12px;
}

.news-head__label {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-body);
  line-height: 1.5;
  color: var(--color-black);
}

.news-head__intro {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
  color: var(--color-text);
}

.news-head__back {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: var(--font-weight-body);
  line-height: 1.5;
  color: var(--color-black);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.3s;
}

.news-head__back:hover {
  color: var(--color-primary);
}

/* News grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 30px;
}

.news-main__content {
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
}

.news-card {
  height: 180px;
}

.news-card__link {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 180px;
  width: 100%;
  height: 180px;
  max-height: 180px;
  color: inherit;
  text-decoration: none;
  overflow: hidden;
}

.news-card__media {
  position: relative;
  height: 180px;
  max-height: 180px;
  min-height: 0;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.news-card__zoom {
  position: absolute;
  inset: 0;
  display: block;
  transform: translateZ(0) scale(1);
  transition: transform 0.45s ease;
  backface-visibility: hidden;
  transform-origin: center center;
}

.news-card:hover .news-card__zoom {
  transform: translateZ(0) scale(1.03);
}

.news-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.news-card__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  height: 180px;
  max-height: 180px;
  padding: 16px 20px;
  box-sizing: border-box;
  background-color: #ededed;
  overflow: hidden;
}

.news-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-body);
  line-height: 1.6;
  color: #666;
}

.news-card__date {
  margin: 0;
  font-size: 14px;
  font-weight: var(--font-weight-body);
  line-height: 1.5;
  color: var(--color-black);
}

/* Pager */
.news-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.news-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background-color: #737373;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s;
}

.news-pager__btn::after {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 0;
  background: url("../images/arrow-right.svg") no-repeat center;
  background-size: contain;
}

.news-pager__btn--prev::after {
  transform: scaleX(-1);
}

.news-pager__btn:hover {
  background-color: #000000;
}



/* Highlights */
.news-highlights {
  padding: 0 0 80px;
}

.news-highlights__title {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  padding-bottom: 6px;
}

.news-highlights__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 12px;
  background-color: rgba(215, 102, 71, 0.15);
}

.news-highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--layout-gap);
}

.news-highlight__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 523 / 361;
  background-color: var(--color-gray-light);
}

.news-highlight__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.3;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.news-highlight:hover .news-highlight__image::after {
  opacity: 0;
}

.news-highlight__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.news-highlight__name {
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: var(--font-weight-title);
  line-height: 1.5;
  color: var(--color-black);
}

.news-highlight__desc {
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
  color: var(--color-text);
}

.news-float {
  position: fixed;
  right: 24px;
  bottom: 32px;
  z-index: 100;
  display: block;
  width: 48px;
  height: 48px;
  transition: transform 0.3s;
}

.news-float img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
}

.news-float:hover {
  transform: scale(1.05);
}

.news-mobile {
  display: none;
}

.news-mobile--detail {
  display: none;
}

.news-desktop-only {
  display: block;
}

@media (max-width: 1023px) {
  .news-banner {
    height: 380px;
  }

  .news-body > .container,
  .news-highlights > .container {
    padding: 0 20px;
    box-sizing: border-box;
  }

  .news-body {
    padding: 40px 0 48px;
  }

  .news-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: 24px;
  }

  .news-layout__title,
  .news-head,
  .news-main__content {
    grid-column: 1;
    grid-row: auto;
  }

  .news-desktop-only {
    display: none !important;
  }

  .news-mobile {
    display: block;
    margin-bottom: 24px;
  }

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

  .news-mobile__back {
    font-size: 14px;
    color: var(--color-text);
    text-decoration: none;
  }

  .news-mobile__back:hover {
    color: var(--color-primary);
  }

  .news-mobile__label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: var(--font-weight-body);
    color: var(--color-black);
  }

  .news-mobile__intro {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
  }

  .news-card__body {
    padding: 20px 16px;
  }

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

@media (max-width: 767px) {
  .news-banner {
    height: 300px;
  }

  .news-banner__img--desktop {
    display: none;
  }

  .news-banner__img--mobile {
    display: block;
  }

  .news-body > .container,
  .news-highlights > .container {
    padding: 0 16px;
  }

  .news-section-title {
    font-size: 28px;
  }

  .news-body {
    padding: 32px 0 40px;
  }

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

  .news-card__link {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 180px;
  }

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

  .news-highlights {
    padding-bottom: 56px;
  }

  .news-float {
    right: 16px;
    bottom: 24px;
    width: 42px;
    height: 42px;
  }
}

/* News detail page */
.news-body--detail {
  padding: 48px 0 56px;
}

.news-detail__head {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: var(--layout-gap);
  align-items: start;
  margin-bottom: 32px;
}

.news-detail__page-title {
  grid-column: 1;
  margin: 0;
}

.news-detail__back {
  grid-column: 2;
  justify-self: end;
  align-self: start;
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: 1.5;
  color: var(--color-black);
  text-decoration: none;
  transition: color 0.3s;
}

.news-detail__back:hover {
  color: var(--color-primary);
}

.news-detail__article {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--layout-gap);
  align-items: start;
}

.news-detail__content,
.news-detail__gallery {
  min-width: 0;
  max-width: 100%;
}

.news-detail__gallery {
  width: 100%;
}

.news-detail__headline {
  margin: 0 0 24px;
  font-size: 20px;
  font-weight: var(--font-weight-title);
  line-height: 1.5;
  color: var(--color-black);
}

.news-detail__headline span {
  display: block;
}

.news-detail__text {
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
  color: var(--color-black);
}

.news-detail__text p {
  margin: 0;
}

.news-detail__text p + p {
  margin-top: 16px;
}

.news-detail__viewer {
  position: relative;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 720 / 480;
  overflow: hidden;
  background-color: var(--color-gray-light);
}

.news-detail-swiper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.news-detail-swiper .swiper-wrapper {
  height: 100%;
}

.news-detail-swiper .swiper-slide {
  height: 100%;
  overflow: hidden;
}

.news-detail-swiper .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
}

.news-detail__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-top: -22px;
  border: none;
  background-color: rgba(0, 0, 0, 0.55);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background-color 0.3s;
}

.news-detail__viewer:hover .news-detail__nav,
.news-detail__viewer:focus-within .news-detail__nav {
  opacity: 1;
  pointer-events: auto;
}

.news-detail__nav::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  margin: 0 auto;
  background: url("../images/arrow-right.svg") no-repeat center;
  background-size: contain;
}

.news-detail__nav--prev {
  left: 16px;
}

.news-detail__nav--prev::after {
  transform: scaleX(-1);
}

.news-detail__nav--next {
  right: 16px;
}

.news-detail__nav:hover {
  background-color: rgba(0, 0, 0, 0.75);
}

.news-recent {
  padding: 0 0 80px;
}

.news-recent__title {
  position: relative;
  display: inline-block;
  margin-bottom: 32px;
  padding-bottom: 6px;
}

.news-recent__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: -1;
  width: 100%;
  height: 12px;
  background-color: rgba(215, 102, 71, 0.15);
}

.news-recent__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--layout-gap);
}

.news-recent__image {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 523 / 361;
  background-color: var(--color-gray-light);
}

.news-recent__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #000;
  opacity: 0.3;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.news-recent__item:hover .news-recent__image::after {
  opacity: 0;
}

.news-recent__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.news-recent__name {
  margin-top: 16px;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: var(--font-weight-title);
  line-height: 1.5;
  color: var(--color-black);
}

.news-recent__desc {
  font-size: 16px;
  font-weight: var(--font-weight-body);
  line-height: 1.8;
  color: var(--color-text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.news-mobile--detail .news-mobile__head {
  margin-bottom: 24px;
}

@media (max-width: 1023px) {
  .news-body--detail > .container,
  .news-recent > .container {
    padding: 0 20px;
    box-sizing: border-box;
  }

  .news-body--detail {
    padding: 40px 0 48px;
  }

  .news-detail__head {
    display: none;
  }

  .news-mobile--detail {
    display: block;
    margin-bottom: 24px;
  }

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

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

  .news-detail__nav {
    width: 40px;
    height: 40px;
    margin-top: -20px;
    opacity: 1;
    pointer-events: auto;
  }

  .news-detail__nav--prev {
    left: 12px;
  }

  .news-detail__nav--next {
    right: 12px;
  }
}

@media (max-width: 767px) {
  .news-body--detail > .container,
  .news-recent > .container {
    padding: 0 16px;
  }

  .news-body--detail {
    padding: 32px 0 40px;
  }

  .news-detail__headline {
    font-size: 18px;
    margin-bottom: 16px;
  }

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

  .news-recent {
    padding-bottom: 56px;
  }

}
