/* =========================================
   LATEST NEWS SECTION - ONT
   Full CSS (portrait cards 3/4 + fixed text area)
========================================= */

.section-news {
  --news-brown: #391a00;
  --news-orange: #ef8e01;
  --news-teal: #009e96;

  --news-card: rgba(255, 255, 255, 0.82);
  --news-border: rgba(57, 26, 0, 0.08);
  --news-text: #19130f;
  --news-text-soft: rgba(25, 19, 15, 0.82);
  --news-muted: rgba(57, 26, 0, 0.62);
  --news-shadow: 0 18px 42px rgba(22, 15, 9, 0.07);

  /* portrait media + fixed body */
  --news-media-ratio: 3 / 4;
  --news-card-body-h: 138px;

  position: relative;
  padding-block: 3.2rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(239, 142, 1, 0.06), transparent 38%),
    radial-gradient(circle at 92% 85%, rgba(0, 158, 150, 0.06), transparent 38%),
    linear-gradient(180deg, #fbfaf7 0%, #f6f4ef 100%);
  overflow-x: hidden;
  overflow-y: clip;
}

.section-news::before {
  content: "";
  position: absolute;
  inset: auto -4rem -5rem auto;
  width: 14rem;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 158, 150, 0.12), transparent 70%);
  pointer-events: none;
}

.news-container {
  position: relative;
  z-index: 1;
}

/* ---------- overflow safety ---------- */
.news-shell,
.news-shell > *,
.news-head,
.news-head__left,
.news-head__right,
.news-toolbar,
.news-grid,
.news-grid > *,
.news-card,
.news-card__link,
.news-card__media,
.news-card__body,
.news-meta,
.news-card__footer,
.news-articles,
.news-articles__head,
.swiper-news-articles,
.swiper-news-articles .swiper-wrapper,
.swiper-news-articles .swiper-slide {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.news-title,
.news-lead,
.news-card__title,
.news-card__text,
.news-articles__title,
.na-card__title {
  overflow-wrap: anywhere;
}

.section-news img,
.section-news svg {
  max-width: 100%;
}

/* ---------- shell ---------- */
.news-shell {
  display: grid;
  gap: 0.9rem;
  width: 100%;
}

/* ---------- shared bits ---------- */
.news-head__top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.28rem;
}

.news-eyebrow {
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(57, 26, 0, 0.8);
}

.news-mark {
  flex: 0 0 auto;
  display: block;
  opacity: 0.9;
}

.news-mark--sm {
  width: 22px;
  height: 16px;
}

.news-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 150, 0.18);
  background: rgba(0, 158, 150, 0.06);
  color: var(--news-teal);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: "Manrope", "Avenir Next", sans-serif;
  white-space: nowrap;
}

.news-chip--soft {
  border-color: rgba(239, 142, 1, 0.2);
  background: rgba(239, 142, 1, 0.06);
  color: #9b5b00;
}

/* =========================================
   BLOCK 1 : Header / Intro
========================================= */
.news-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;

  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(57, 26, 0, 0.06);
  border-radius: 18px;
  padding: 0.95rem;

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 10px 30px rgba(22, 16, 10, 0.04);
}

.news-title {
  margin: 0;
  color: var(--news-text);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.06;
  font-size: clamp(1.18rem, 2vw, 2rem);
  max-width: 20ch;
  text-wrap: balance;
}

.news-lead {
  margin: 0.5rem 0 0;
  color: var(--news-text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 64ch;
}

.news-head__right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.news-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 26, 0, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.72));

  color: var(--news-brown);
  text-decoration: none;
  font-weight: 700;
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.82rem;

  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  max-width: 100%;
  white-space: normal;
  text-align: center;
}

.news-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 158, 150, 0.2);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.news-btn i {
  font-size: 1rem;
  flex: 0 0 auto;
}

/* =========================================
   BLOCK 2 : Filters
========================================= */
.news-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  justify-content: flex-start;

  padding: 0.55rem;
  border-radius: 14px;
  border: 1px solid rgba(57, 26, 0, 0.06);
  background: rgba(255, 255, 255, 0.62);

  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.news-filter {
  appearance: none;
  border: 1px solid rgba(57, 26, 0, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  color: rgba(57, 26, 0, 0.84);

  border-radius: 999px;
  min-height: 34px;
  padding: 0.35rem 0.7rem;

  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;

  white-space: normal;
  text-align: center;
  transition: all 0.2s ease;
  max-width: 100%;
}

.news-filter:hover {
  border-color: rgba(0, 158, 150, 0.2);
}

.news-filter.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(90deg, var(--news-orange), var(--news-teal));
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* =========================================
   BLOCK 3 : Latest 3 News cards
========================================= */
.news-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  background: transparent;
}

.news-card {
  position: relative;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(57, 26, 0, 0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(20, 16, 10, 0.06);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.news-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 158, 150, 0.16);
  box-shadow: 0 18px 38px rgba(20, 16, 10, 0.08);
}

/* shine effect */
.news-card::after {
  content: "";
  position: absolute;
  top: -10%;
  left: -65%;
  width: 40%;
  height: 120%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 42%,
    rgba(255, 255, 255, 0.42) 50%,
    rgba(255, 255, 255, 0.16) 58%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-18deg);
  pointer-events: none;
  opacity: 0;
  z-index: 2;
}

.news-card:hover::after {
  opacity: 1;
  animation: newsShine 0.95s ease forwards;
}

@keyframes newsShine {
  from { left: -65%; }
  to { left: 130%; }
}

.news-card__link {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto var(--news-card-body-h); /* FIXED text area */
  color: inherit;
  text-decoration: none;
  height: 100%;
}

/* Portrait media (3/4) */
.news-card__media {
  margin: 0;
  aspect-ratio: var(--news-media-ratio);
  background: #0b0b0b; /* black space around contain image */
  display: grid;
  place-items: center;
  overflow: hidden;
  position: relative;
}

.news-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.news-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* full image visible */
  object-position: center;
  display: block;
  background: #0b0b0b;
  transition: none; /* no zoom for portrait style */
}

/* Fixed body area */
.news-card__body {
  height: var(--news-card-body-h);
  padding: 0.78rem 0.8rem 0.8rem;

  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 0.42rem;
  align-content: start;
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(255,255,255,0.74));
}

.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  flex-wrap: wrap;
  min-height: 24px;
}

.news-meta time {
  font-size: 0.68rem;
  color: var(--news-muted);
  font-weight: 600;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  border: 1px solid rgba(57, 26, 0, 0.08);
  background: rgba(57, 26, 0, 0.04);
  color: rgba(57, 26, 0, 0.88);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 700;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  max-width: 100%;
}

.news-badge--orange {
  border-color: rgba(239, 142, 1, 0.18);
  background: rgba(239, 142, 1, 0.08);
  color: #9b5a00;
}

.news-badge--teal {
  border-color: rgba(0, 158, 150, 0.18);
  background: rgba(0, 158, 150, 0.08);
  color: #007a73;
}

.news-badge--brown {
  border-color: rgba(57, 26, 0, 0.14);
  background: rgba(57, 26, 0, 0.06);
  color: var(--news-brown);
}

.news-card__title {
  margin: 0;
  color: var(--news-text);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.015em;
  font-size: 0.95rem;
  text-wrap: balance;

  /* cut long titles */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card__text {
  margin: 0;
  color: var(--news-text-soft);
  font-size: 0.78rem;
  line-height: 1.5;
  min-height: 0;
  overflow: hidden;

  /* cut long descriptions */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
}

.news-card__footer {
  margin-top: 0.08rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  align-self: end;
}

.news-read {
  color: var(--news-teal);
  font-size: 0.72rem;
  font-weight: 700;
  font-family: "Manrope", "Avenir Next", sans-serif;
}

.news-card__arrow {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(57, 26, 0, 0.08);
  background: rgba(255, 255, 255, 0.55);
  color: var(--news-brown);
  font-size: 0.82rem;
  flex: 0 0 auto;
}

.news-card.is-hidden {
  display: none !important;
}

.news-empty {
  border: 1px dashed rgba(57, 26, 0, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  padding: 0.8rem;
  color: var(--news-muted);
  text-align: center;
  font-weight: 600;
  font-size: 0.82rem;
}


/* =========================================
   NEWS CARD HOVER — subtle image motion/life
   Add AFTER section-news CSS
========================================= */

/* Smooth image animation only for the 3 latest news cards */
.news-grid .news-card__media .news-img {
  transform: scale(1.01);
  filter: saturate(0.96) contrast(1.02) brightness(0.98);
  transition:
    transform 0.65s cubic-bezier(.22,.61,.36,1),
    filter 0.4s ease;
  will-change: transform, filter;
}

/* Slightly richer overlay control */
.news-grid .news-card__media::after {
  transition: opacity 0.35s ease, background 0.35s ease;
  opacity: 1;
}

/* Extra soft highlight sweep inside media (separate from card shine) */
.news-grid .news-card__media::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 12%, rgba(255,255,255,0.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.10));
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.65s cubic-bezier(.22,.61,.36,1);
  transform: translateY(0);
  z-index: 1;
}

/* Hover: bring image alive (subtle zoom + slight lift + richer color) */
.news-grid .news-card:hover .news-card__media .news-img {
  transform: scale(1.045) translateY(-2px);
  filter: saturate(1.06) contrast(1.04) brightness(1);
}

/* Hover: slightly reduce dark fade so image feels more present */
.news-grid .news-card:hover .news-card__media::after {
  opacity: 0.82;
  background: linear-gradient(180deg, transparent 46%, rgba(0, 0, 0, 0.06));
}

/* Hover: move highlight gently */
.news-grid .news-card:hover .news-card__media::before {
  opacity: 0.8;
  transform: translateY(-2px);
}

/* Keep text area stable (no movement) */
.news-grid .news-card__body {
  position: relative;
  z-index: 3;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .news-grid .news-card__media .news-img,
  .news-grid .news-card__media::before,
  .news-grid .news-card__media::after {
    transition: none !important;
    transform: none !important;
  }
}

/* =========================================
   BLOCK 4 : Latest Articles slider
========================================= */
.news-articles {
  margin-top: 0.1rem;
  padding: 0.75rem;
  border-radius: 16px;
  border: 1px solid rgba(57, 26, 0, 0.06);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 28px rgba(20, 16, 10, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow: hidden;
}

.news-articles__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
}

.news-articles__title {
  margin: 0;
  color: var(--news-text);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 800;
}

.swiper-news-articles {
  overflow: hidden;
  padding-bottom: 0.95rem;
}

.na-card {
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(57, 26, 0, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.68));
  box-shadow: 0 8px 20px rgba(22, 16, 10, 0.05);
  overflow: hidden;
}

.na-card__link {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  text-decoration: none;
  color: inherit;
}

.na-card__media {
  margin: 0;
  aspect-ratio: 1.5 / 1;
  overflow: hidden;
  background: #eee8de;
}

.na-card__media .news-img {
  object-fit: cover;
  background: transparent;
}

.na-card__body {
  padding: 0.55rem;
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.na-card__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 158, 150, 0.16);
  background: rgba(0, 158, 150, 0.06);
  color: var(--news-teal);
  font-size: 0.62rem;
  font-weight: 700;
  font-family: "Manrope", "Avenir Next", sans-serif;
  max-width: 100%;
}

.na-card__title {
  margin: 0;
  color: var(--news-text);
  font-family: "Manrope", "Avenir Next", sans-serif;
  font-size: 0.76rem;
  line-height: 1.28;
  font-weight: 700;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.na-card time {
  color: var(--news-muted);
  font-size: 0.64rem;
  font-weight: 600;
}

.na-pagination {
  position: static !important;
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
  gap: 0.25rem;
}

.na-pagination .swiper-pagination-bullet {
  width: 5px;
  height: 5px;
  margin: 0 !important;
  border-radius: 999px;
  background: rgba(57, 26, 0, 0.28);
  opacity: 1;
  transition: width 0.2s ease, background-color 0.2s ease;
}

.na-pagination .swiper-pagination-bullet-active {
  width: 14px;
  background: linear-gradient(90deg, var(--news-orange), var(--news-teal));
}

/* =========================================
   Reveal
========================================= */
.news-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.news-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================================
   MEDIA QUERIES (global structure)
========================================= */

@media (min-width: 576px) {
  .section-news {
    --news-card-body-h: 136px;
    padding-block: 3.5rem;
  }

  .news-head {
    padding: 1rem;
    border-radius: 20px;
  }

  .news-toolbar {
    padding: 0.6rem;
    border-radius: 16px;
  }

  .news-filter {
    min-height: 36px;
    padding: 0.38rem 0.8rem;
    font-size: 0.76rem;
  }

  .news-card,
  .news-articles {
    border-radius: 18px;
  }

  .news-card__body {
    padding: 0.85rem;
  }

  .news-card__title {
    font-size: 0.98rem;
  }

  .news-card__text {
    font-size: 0.8rem;
  }

  .news-articles {
    padding: 0.85rem;
  }

  .na-card__title {
    font-size: 0.79rem;
  }
}

@media (min-width: 768px) {
  .section-news {
    --news-card-body-h: 139px;
    padding-block: 3.8rem;
  }

  .news-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
    padding: 1.05rem;
  }

  .news-head__right {
    justify-content: flex-start;
  }

  /* 2 columns on tablet */
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.95rem;
  }

  /* IMPORTANT: no featured split layout */
  .news-grid > .news-card:not(.is-hidden):nth-child(1) {
    grid-column: auto;
  }

  .news-grid > .news-card:not(.is-hidden):nth-child(1) .news-card__link {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto var(--news-card-body-h);
  }

  .news-grid > .news-card:not(.is-hidden):nth-child(1) .news-card__media {
    aspect-ratio: var(--news-media-ratio);
    min-height: unset;
  }

  .news-articles__head {
    margin-bottom: 0.65rem;
  }

  .news-articles__title {
    font-size: 1rem;
  }
}

@media (min-width: 992px) {
  .section-news {
    --news-card-body-h: 139px;
    padding-block: 4.2rem;
  }

  .news-shell {
    gap: 1rem;
  }

  .news-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 1.15rem;
  }

  .news-head__right {
    justify-content: flex-end;
  }

  .news-title {
    font-size: clamp(1.35rem, 1.85vw, 2.1rem);
    max-width: 18ch;
  }

  .news-lead {
    font-size: 0.95rem;
  }

  /* 3 columns on desktop */
  .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

  .news-card__body {
    padding: 0.85rem;
  }

  .news-card__title {
    font-size: 0.98rem;
    line-height: 1.22;
  }

  .news-card__text {
    font-size: 0.8rem;
    line-height: 1.55;
  }

  .news-articles {
    padding: 0.9rem;
    border-radius: 20px;
  }

  .swiper-news-articles {
    padding-bottom: 1rem;
  }
}

@media (min-width: 1200px) {
  .section-news {
    --news-card-body-h: 140px;
    padding-block: 4.6rem;
  }

  .news-head {
    padding: 1.2rem 1.25rem;
    border-radius: 22px;
  }

  .news-toolbar {
    border-radius: 18px;
    padding: 0.65rem;
  }

  .news-card {
    border-radius: 20px;
  }

  .news-card__body {
    padding: 0.9rem;
  }

  .news-card__title {
    font-size: 1rem;
  }

  .news-card__text {
    font-size: 0.81rem;
  }

  .news-articles {
    padding: 1rem;
    border-radius: 22px;
  }

  .news-articles__title {
    font-size: 1.04rem;
  }

  .na-card {
    border-radius: 16px;
  }

  .na-card__body {
    padding: 0.6rem;
  }

  .na-card__title {
    font-size: 0.8rem;
  }
}

@media (min-width: 1400px) {
  .section-news {
    --news-card-body-h: 146px;
    padding-block: 4.9rem;
  }

  .news-head {
    padding: 1.3rem;
  }

  .news-title {
    font-size: clamp(1.5rem, 1.9vw, 2.25rem);
  }

  .news-lead {
    font-size: 0.98rem;
  }

  .news-grid {
    gap: 1.1rem;
  }

  .news-card__title {
    font-size: 1.02rem;
  }

  .news-card__text {
    font-size: 0.82rem;
  }

  .news-articles {
    padding: 1.05rem;
  }
}