/* Customer news listing + detail (+ shared card styles for featured grid) */

/* Keep hero text white (shared banner) even if a dark text wrapper is nearby */
body.layout-new .hero__title,
body.layout-new .hero__subtitle,
body.layout-new .hero__title *,
body.layout-new .hero__subtitle * {
  color: #fff;
}

.news-page {
  background: #fff;
  color: #1e1e1e;
  font-family: 'Montserrat', sans-serif;
}

.news-section-head {
  position: relative;
  text-align: center;
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding-top: 1.25rem;
}

.news-section-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #1e1e1e;
}

.news-section-head__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #1e1e1e;
}

/* Empty state */
.news-empty {
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
}

.news-empty__inner {
  max-width: 560px;
  margin-inline: auto;
}

.news-empty__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  color: #1e1e1e;
}

.news-empty__text {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.6;
  color: #555;
}

.news-empty__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 48px;
  padding: 0 1.5rem;
  background: #1e1e1e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
}

.news-empty__cta:hover {
  color: #fff;
  opacity: 0.9;
}

/* Latest spotlight (news listing) */
.news-latest {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(1.5rem, 3vw, 2rem);
}

.news-latest__card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.news-latest__media {
  display: block;
  overflow: hidden;
  background: #d9d9d9;
  min-height: 280px;
  text-decoration: none;
}

.news-latest__media img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  max-height: 500px;
  object-fit: cover;
  display: block;
}

.news-latest__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem 0;
}

.news-latest__date {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  text-transform: capitalize;
}

.news-latest__date::before {
  content: '•';
  margin-right: 0.45em;
}

html[dir="rtl"] .news-latest__date::before {
  margin-right: 0;
  margin-left: 0.45em;
}

.news-latest__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.25;
  color: #1e1e1e;
  text-transform: none;
  white-space: pre-line;
}

.news-latest__title a {
  color: inherit;
  text-decoration: none;
}

.news-latest__title a:hover {
  opacity: 0.85;
}

.news-latest__excerpt {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 26px;
  color: #1e1e1e;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
  white-space: pre-line;
}

.news-latest__excerpt br {
  content: '';
}

.news-page .home-news-card__excerpt {
  white-space: pre-line;
}

.news-latest__link {
  margin-top: 0.5rem;
}

/* Featured / related card grid */
.news-featured {
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(3.5rem, 6vw, 5rem);
}

.news-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  text-align: start;
}

.news-featured__status {
  margin: 1.25rem 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.news-featured__sentinel {
  height: 1px;
  width: 100%;
  margin-top: 0.5rem;
}

.news-page .home-news-card {
  background: transparent;
  overflow: visible;
  min-width: 0;
}

.news-page .home-news-card__media {
  position: relative;
  aspect-ratio: 440 / 320;
  overflow: hidden;
  background: #d9d9d9;
}

.news-page .home-news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-page .home-news-card__panel {
  position: relative;
  z-index: 1;
  margin: -40px 8px 0;
  min-height: 207px;
  padding: 16px 18px 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  background: rgba(248, 248, 248, 0.42);
  border: 1px solid #f8f8f8;
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}

.news-page .home-news-card__date {
  display: block;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.2;
}

.news-page .home-news-card__date::before {
  content: '•';
  margin-right: 0.45em;
}

.news-page .home-news-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 1.25;
  white-space: pre-line;
}

.news-page .home-news-card__title a {
  color: inherit;
  text-decoration: none;
}

.news-page .home-news-card__excerpt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  color: #1e1e1e;
  line-height: 22px;
  white-space: pre-line;
}

.news-page .home-news-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #21209c;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1;
}

.news-page .home-news-card__link:hover,
.news-page .home-news-card__link:focus {
  color: #21209c;
  opacity: 0.85;
  text-decoration: none;
}

.news-page .home-news-card__link-icon {
  display: block;
  flex-shrink: 0;
  color: #21209c;
}

.news-page .home-news-card__media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Detail — shared news CMS banner above; article + latest rail */
.news-detail-page {
  background: #fff;
}

.news-detail__shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.7fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
  padding-top: clamp(2.75rem, 6vw, 4.5rem);
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.news-detail__shell:not(:has(.news-detail__rail)) {
  grid-template-columns: 1fr;
}

.news-detail {
  min-width: 0;
  --news-detail-text-inset: clamp(1rem, 2.2vw, 1.5rem);
}

.news-detail__body {
  padding: 0;
}

.news-detail__rail {
  position: sticky;
  top: clamp(5.5rem, 10vw, 7rem);
  min-width: 0;
  max-height: calc(100vh - clamp(6.5rem, 12vw, 8.5rem));
  display: flex;
  flex-direction: column;
  border-inline-start: 1px solid rgba(30, 30, 30, 0.12);
  padding-inline-start: clamp(0.85rem, 2vw, 1.25rem);
}

.news-detail__rail-title {
  margin: 0 0 1rem;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1e1e1e;
}

.news-detail__rail-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding-inline-end: 0.35rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(33, 32, 156, 0.45) transparent;
}

.news-detail__rail-scroll::-webkit-scrollbar {
  width: 6px;
}

.news-detail__rail-scroll::-webkit-scrollbar-thumb {
  background: rgba(33, 32, 156, 0.4);
  border-radius: 999px;
}

.news-detail__rail-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.news-detail__rail-status {
  margin: 0.75rem 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

.news-detail__rail-sentinel {
  height: 1px;
  width: 100%;
}

.news-feed-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(30, 30, 30, 0.08);
}

.news-feed-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.news-feed-item__media {
  display: block;
  width: 96px;
  height: 72px;
  overflow: hidden;
  background: #d9d9d9;
  text-decoration: none;
  flex-shrink: 0;
}

.news-feed-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-feed-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.news-feed-item__date {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.news-feed-item__title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: #1e1e1e;
  white-space: pre-line;
}

.news-feed-item__title a {
  color: inherit;
  text-decoration: none;
}

.news-feed-item__title a:hover {
  color: #21209c;
}

.news-feed-item__excerpt {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: #444;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

html[dir="rtl"] .news-detail__rail {
  border-inline-start: 0;
  border-inline-end: 1px solid rgba(30, 30, 30, 0.12);
  padding-inline-start: 0;
  padding-inline-end: clamp(0.85rem, 2vw, 1.25rem);
}

/* Back link — arrow animates in on hover (same idea as home CTAs) */
.news-detail__back {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.5rem);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #21209c;
  text-decoration: none;
  line-height: 1;
}

.news-detail__back-label {
  display: inline-block;
}

.news-detail__back-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0;
  height: 24px;
  margin-right: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    width 0.45s ease,
    margin-right 0.45s ease,
    opacity 0.35s ease;
}

.news-detail__back-svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.news-detail__back-dash,
.news-detail__back-arrow {
  stroke: currentColor;
  fill: none;
  opacity: 0;
}

.news-detail__back-dash {
  transition: opacity 0.28s ease;
}

.news-detail__back-arrow {
  transition: opacity 0.28s ease;
  transition-delay: 0s;
}

.news-detail__back:hover,
.news-detail__back:focus {
  color: #21209c;
  opacity: 1;
  text-decoration: none;
}

.news-detail__back:hover .news-detail__back-icon,
.news-detail__back:focus .news-detail__back-icon {
  width: 24px;
  margin-right: 8px;
  opacity: 1;
}

.news-detail__back:hover .news-detail__back-dash,
.news-detail__back:focus .news-detail__back-dash {
  opacity: 1;
}

.news-detail__back:hover .news-detail__back-arrow,
.news-detail__back:focus .news-detail__back-arrow {
  opacity: 1;
  transition-delay: 0.22s;
}

html[dir="rtl"] .news-detail__back-icon {
  margin-right: 0;
}

html[dir="rtl"] .news-detail__back:hover .news-detail__back-icon,
html[dir="rtl"] .news-detail__back:focus .news-detail__back-icon {
  margin-right: 0;
  margin-left: 8px;
}

html[dir="rtl"] .news-detail__back-svg {
  transform: scaleX(-1);
}

.news-detail__date {
  display: block;
  margin: 0 0 0.85rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #666;
}

.news-detail__date::before {
  content: '•';
  margin-right: 0.45em;
}

html[dir="rtl"] .news-detail__date::before {
  margin-right: 0;
  margin-left: 0.45em;
}

.news-detail__title {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  font-size: clamp(1.5rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.15;
  color: #1e1e1e;
  white-space: pre-line;
}

.news-detail__figure {
  position: relative;
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
  width: 100%;
  overflow: hidden;
  background: #eee;
}

.news-detail__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Caption overlaid at image bottom — gradient fade + border */
.news-detail__figure .news-detail__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 1.75rem var(--news-detail-text-inset) 0.75rem;
  font-size: clamp(0.875rem, 1.5vw, 0.95rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.3;
  color: #fff;
  white-space: pre-line;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-top: 0;
  border-bottom: 0;
  box-sizing: border-box;
}

.news-detail__caption--solo {
  margin: 0 0 clamp(1.25rem, 2.5vw, 1.75rem);
  padding: 0.75rem var(--news-detail-text-inset);
  font-style: italic;
  line-height: 1.3;
  color: #fff;
  white-space: pre-line;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.45) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.news-detail__figure + .news-detail__content,
.news-detail__caption--solo + .news-detail__content {
  margin-top: clamp(1.25rem, 2.5vw, 1.75rem);
}

.news-detail__content {
  padding-inline: calc(var(--news-detail-text-inset) + 1px);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #333;
  box-sizing: border-box;
}

.news-detail__content > *:first-child {
  margin-top: 0;
}

.news-detail__content > *:last-child {
  margin-bottom: 0;
}

.news-detail__content p {
  margin: 0 0 0.65rem;
  line-height: 1.5;
}

/* Collapse empty Summernote spacer paragraphs */
.news-detail__content p:empty,
.news-detail__content p:has(> br:only-child) {
  margin: 0;
  min-height: 0;
  line-height: 0.4;
}

.news-detail__content br {
  line-height: 1.35;
}

.news-detail__content h2,
.news-detail__content h3 {
  margin: 1.25rem 0 0.5rem;
  color: #1e1e1e;
  font-weight: 700;
  line-height: 1.25;
}

.news-detail__content img {
  max-width: 100%;
  height: auto;
  margin: 1.25rem 0;
}

.news-detail__content ul,
.news-detail__content ol {
  margin: 0 0 1.15rem;
  padding-inline-start: 1.25rem;
}

@media (max-width: 991px) {
  .news-latest__card {
    grid-template-columns: 1fr;
  }

  .news-latest__media img {
    max-height: 360px;
  }

  .news-featured__grid {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin-inline: auto;
  }

  .news-detail__shell {
    grid-template-columns: 1fr;
    padding-top: 2rem;
    padding-bottom: 3rem;
  }

  .news-detail__rail {
    position: static;
    max-height: none;
    border-inline-start: 0;
    border-top: 1px solid rgba(30, 30, 30, 0.12);
    padding-inline-start: 0;
    padding-top: 1.5rem;
    margin-top: 0.5rem;
  }

  html[dir="rtl"] .news-detail__rail {
    border-inline-end: 0;
    padding-inline-end: 0;
  }

  .news-detail__rail-scroll {
    max-height: min(420px, 55vh);
  }

  .news-detail__figure img {
    aspect-ratio: 4 / 3;
  }

  .news-detail__back {
    margin-bottom: 1.5rem;
  }

  /* Always show back arrow on touch / small screens */
  .news-detail__back-icon {
    width: 24px;
    margin-right: 8px;
    opacity: 1;
  }

  .news-detail__back-dash,
  .news-detail__back-arrow {
    opacity: 1;
  }

  html[dir="rtl"] .news-detail__back-icon {
    margin-right: 0;
    margin-left: 8px;
  }
}

html[dir="rtl"] .news-page .home-news-card__link-icon,
html[dir="rtl"] .news-latest__link .home-news-card__link-icon {
  transform: scaleX(-1);
}

html[dir="rtl"] .news-page .home-news-card__date::before {
  margin-right: 0;
  margin-left: 0.45em;
}
