/* ============ News page ============ */

.news-hero {
  padding: 34px 0 10px;
}

.news-hero__row {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.news-hero__title {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .2px;
}

.news-hero__sub {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

/* list */
.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
}

/* each post in mobile view like screenshot */
.post {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.post__readtop {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  padding: 2px 0;
}

.post__readtop span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

.post__media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--soft);
}

.post__media img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  filter: grayscale(100%);
}

.post__card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}

.post__author {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 1.2px;
  text-transform: capitalize;
  color: var(--muted);
  font-weight: 700;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.post__title {
  margin: 10px 0 8px;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: .2px;
  font-weight: 650;
}

.post__excerpt {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.post__readmore {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  width: 100%;
}

.post__readmore span {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
}

/* CTA button like screenshot (still B/W) */
.news-cta {
  display: flex;
  justify-content: center;
  margin-top: 26px;
}

.btn-cta {
  width: min(360px, 100%);
}

/* Desktop layout: image left, card right */
@media (min-width: 900px) {
  .news-list {
    gap: 24px;
  }

  .post {
    grid-template-columns: 1.05fr .95fr;
    align-items: start;
    gap: 18px;
  }

  .post__media img {
    height: 320px;
  }

  .post__card {
    padding: 18px 18px 16px;
  }

  .post__title {
    font-size: 30px;
  }
}

/* --- Fix burger menu on News page (stacking order) --- */
.topbar {
  z-index: 1200;
}

/* keep navbar always above page content */
.menu-backdrop {
  z-index: 2000;
}

/* backdrop above everything */
.mobile-menu {
  z-index: 2100;
}

/* menu above backdrop */

/* (optional but safe) ensure news sections never sit above the navbar/menu */
.news-hero,
.news,
.post,
.post__media,
.post__card {
  position: relative;
  z-index: 0;
}

/* ============ News Modal ============ */
.nmodal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 3000;

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease);
}

.nmodal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nmodal {
  position: fixed;
  inset: 0;
  z-index: 3100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;

  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow) var(--ease);
}

.nmodal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.nmodal__panel {
  width: min(820px, 96vw);
  max-height: min(86vh, 900px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-hover);
  overflow: hidden;

  transform: translateY(10px) scale(.985);
  transition: transform var(--t-slow) var(--ease);
}

.nmodal.is-open .nmodal__panel {
  transform: none;
}

.nmodal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
}

.nmodal__kicker {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .28px;
  color: var(--muted);
  text-transform: uppercase;
}

.nmodal__close {
  border: 1px solid var(--line);
  background: #fff;
}

.nmodal__title {
  margin: 0;
  padding: 12px 14px 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: .2px;
}

.nmodal__media {
  padding: 12px 14px 0;
}

.nmodal__media img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  max-height: 320px;
  object-fit: cover;
  filter: grayscale(100%);
}

.nmodal__body {
  padding: 12px 14px 16px;
  overflow: auto;
  max-height: calc(86vh - 240px);
}

.nmodal__body p,
.nmodal__body li {
  font-size: 14px;
  line-height: 1.8;
}

.nmodal__body ul {
  margin: 8px 0 0 18px;
}

.nmodal__foot {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {

  .nmodal,
  .nmodal-backdrop,
  .nmodal__panel {
    transition: none !important;
  }
}

/* ===== DB hero slider ===== */
.heroSlider {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.heroSlider__track {
  display: flex;
  width: 100%;
  will-change: transform;
  transition: transform .45s ease;
}

.heroSlide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
}

.heroSlider__media {
  width: 100%;
  height: clamp(260px, 52vw, 520px);
  object-fit: cover;
  display: block;
}

.heroSlider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(0, 0, 0, .25);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.heroSlider__btn--prev {
  left: 14px;
}

.heroSlider__btn--next {
  right: 14px;
}

.heroSlider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.heroDot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
}

.heroDot.is-active {
  background: rgba(255, 255, 255, .95);
}

.heroSlider__ph,
.pcard__ph,
.arrival-card__ph,
.promo-card__ph {
  background: radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0)),
    linear-gradient(135deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0));
  min-height: clamp(260px, 52vw, 520px);
}

.pcard__ph {
  min-height: 240px;
  border-radius: 14px;
}

.arrival-card__ph {
  min-height: 180px;
  border-radius: 14px;
}

.promo-card__ph {
  min-height: 260px;
}
