@charset "UTF-8";

/* Home — loads after page-common.css */

/* ---------- Top slideshow (modern vanilla slider) ---------- */
.home-slider {
  --home-header-h: 80px;
  position: relative;
  background: #0B1E3F;
  overflow: hidden;
  width: 100%;
  max-width: 100vw;
  outline: none;
}

.home-slider__viewport {
  position: relative;
  width: 100%;
  /* ~3:2 banners; cap height on short viewports without letterboxing */
  height: min(calc(100vw * 2 / 3), 85vh);
  overflow: hidden;
  background: #0B1E3F;
}

.home-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  position: relative;
}

.home-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.55s ease, visibility 0.55s ease;
  z-index: 0;
}

.home-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.home-slider__slide picture,
.home-slider__slide img {
  display: block;
  width: 100%;
  height: 100%;
}

.home-slider__slide img {
  object-fit: cover;
  object-position: center center;
}

.home-slider__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(11, 30, 63, 0.35);
  color: #fff;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.home-slider__btn::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin: 0 auto;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

.home-slider__btn--prev {
  left: 0;
}

.home-slider__btn--prev::before {
  transform: rotate(-135deg);
}

.home-slider__btn--next {
  right: 0;
}

.home-slider__btn--next::before {
  transform: rotate(45deg);
}

.home-slider__btn:hover,
.home-slider__btn:focus-visible {
  background: rgba(255, 102, 0, 0.9);
  outline: none;
}

.home-slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}

.home-slider__dot {
  pointer-events: auto;
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.home-slider__dot.is-active,
.home-slider__dot:hover,
.home-slider__dot:focus-visible {
  background: #ffc722;
  border-color: #ffc722;
  transform: scale(1.08);
  outline: none;
}

@media (max-width: 1024px) {
  .home-slider {
    --home-header-h: 65px;
  }
}

@media (max-width: 820px) {
  .home-slider {
    --home-header-h: 65px;
  }

  .home-slider__viewport {
    width: 100%;
    margin-inline: 0;
    aspect-ratio: auto;
    height: calc(100svh - var(--home-header-h));
    height: calc(100dvh - var(--home-header-h));
    min-height: 560px;
  }

  .home-slider__btn {
    width: 36px;
    height: 56px;
    background: rgba(11, 30, 63, 0.45);
  }

  .home-slider__dots {
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .home-slider {
    --home-header-h: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slider__slide {
    transition: none;
  }
}

/* ---------- News ---------- */
.home-news {
  margin-top: 48px;
  margin-bottom: 8px;
}

.home-news__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.home-news__item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 16px 0;
  border-bottom: 1px solid #e5e9f0;
}

.home-news__item:first-child {
  padding-top: 0;
}

.home-news__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-news__date {
  font-size: 13px;
  font-weight: 700;
  color: #4a5568;
  letter-spacing: 0.02em;
}

.home-news__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--page-text, #1e293b);
  line-height: 1.6;
}

.home-news__title a {
  color: inherit !important;
  text-decoration: none;
}

.home-news__title a:hover {
  color: var(--page-orange, #FF6600) !important;
}

.home-news__empty {
  margin: 0;
  color: var(--page-muted, #64748b);
  text-align: center;
  padding: 12px 0;
}

.home-news__more {
  margin-top: 20px;
  text-align: center;
}

/* ---------- Home intro (H1) + FAQ ---------- */
.page-shell--home .page-main {
  padding-top: 28px;
}

.home-intro {
  padding: 0 0 8px;
}

.home-intro .page-card {
  margin-bottom: 0;
}

.home-intro__title {
  margin: 0 0 14px !important;
  font-size: clamp(22px, 3.2vw, 30px) !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
  line-height: 1.45 !important;
  color: var(--page-navy, #0B1E3F) !important;
}

.home-intro__title-sub {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: #334155;
}

.home-intro__lead p {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.9 !important;
  color: #334155 !important;
}

.home-intro__lead p + p {
  margin-top: 12px !important;
}

.home-faq {
  margin-top: 24px;
}

.home-faq__list {
  margin: 0;
}

.home-faq__item {
  padding: 16px 0;
  border-bottom: 1px solid #e5e9f0;
}

.home-faq__item:first-child {
  padding-top: 4px;
}

.home-faq__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.home-faq dt {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  color: var(--page-navy, #0B1E3F);
}

.home-faq dd {
  margin: 8px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.85;
  color: #334155;
}

/* ---------- CTA banners: restore pre-redesign look, kill divider ---------- */
.page-shell--home .home-cta-banners {
  border-top: none !important;
  background: #ffffff;
  padding: 40px 20px 32px;
  margin-bottom: 0;
}

.page-shell--home .home-cta-banners::before {
  display: none !important;
}

.page-shell--home .home-cta-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0;
}

/* page-common forces navy on h3/p — restore white CTA typography */
.page-shell--home .cta-card__title {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.page-shell--home .cta-card__en {
  color: rgba(255, 255, 255, 0.88) !important;
}

.page-shell--home .cta-card__desc {
  color: rgba(255, 255, 255, 0.92) !important;
}

.page-shell--home .cta-card__btn {
  background: #ffffff !important;
  color: #0B1E3F !important;
  border: 2px solid #ffffff !important;
  border-radius: 9999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-shell--home .cta-card__btn:hover {
  background: #f4f7fc !important;
  color: #0B1E3F !important;
}

@media (max-width: 720px) {
  .home-news {
    margin-top: 36px;
  }

  .home-news__item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .home-news__date {
    font-size: 13px;
    color: #3d4a5c;
  }

  .home-news__title {
    font-size: 15px;
    line-height: 1.7;
  }

  .home-news .page-card--pad {
    padding: 20px 16px;
  }

  .home-news .page-card__title {
    font-size: 20px !important;
  }

  .home-intro {
    padding: 0 0 4px;
  }

  .home-faq dt {
    font-size: 14px;
  }
}
