/* NEWS PAGE HERO */

.news-hero-section {
  padding: 40px 0 60px 0;
  text-align: center;
  background: linear-gradient(
    135deg,
    var(--red),
    #9e1c1c
  );
  color: white;
  position: relative;
  overflow: hidden;
}

/* Optional subtle overlay texture */
.news-hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.15), transparent 60%);
  pointer-events: none;
}

.news-page-title {
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.news-page-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 20px auto 0;
  background: white;
  border-radius: 2px;
}

.news-page-subtitle {
  font-size: 1.2rem;
  opacity: 0.8;
}

/* NEWS LIST SECTION */

.news-list-section {
  padding: 120px 0;
  background: linear-gradient(
    180deg,
    #f8f9fb,
    #eef1f5
  );
}

/* Container for all news */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  --news-photo-width: clamp(280px, 54vw, 680px);
  --news-photo-height: clamp(280px, 42vw, 520px);
}

/* Divider */
.news-article:not(:last-child) {
  margin-bottom: 140px;
  padding-bottom: 70px;
  border-bottom: 6px solid transparent;
  border-image: linear-gradient(
    to right,
    rgba(211,47,47,0),
    var(--red),
    rgba(211,47,47,0)
  ) 1;
}

/* SINGLE ARTICLE */

.news-article {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  max-width: 1200px;
  width: 100%;
  scroll-margin-top: 120px;
  margin: 0 auto;
  position: relative;
  flex-direction: column;
  

}

.news-article.reverse {
  flex-direction: column;
}

/* IMAGE STYLING */

.news-article-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--bg-light);
  display: block;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  transition: transform 0.3s ease;
}

.news-article-image {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: var(--news-photo-height);
}

.news-list .news-article-image {
  flex: none;
  width: var(--news-photo-width);
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
}

/* CONTENT AREA */

.news-article-content {
  flex: 1 1 0;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}

.news-article-content h2 {
  font-size: var(--fs-xl);
  font-weight: 700;
  margin: 24px 0;
  letter-spacing: -0.5px;
}

.news-article-content p {
  font-size: var(--fs-base);
  line-height: 1.9;
  color: #444;
  text-align: justify;
}

/* Date Badge */
/* Article date inside news page */

.article-date {
  display: inline-block;
  font-size: 14px;
  background: linear-gradient(135deg, var(--red), #9e1c1c);
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: 600;
  margin-bottom: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  align-self: left;
}


/* Full text section */
.news-full-text {
  margin-top: 16px;
  color: #555;
}

/* The three long source articles keep their introduction directly below the photo. */
.news-article--long {
  display: block;
}

.news-article--long .news-article-content {
  width: 100%;
}

.news-article--long .article-date {
  align-self: flex-start;
}

.news-article--long .news-article-image {
  margin: 0 auto 24px;
}

.news-language[hidden] {
  display: none;
}

.news-intro,
.news-continuation {
  width: 100%;
}

.news-full-text p + p,
.news-full-text ul + p,
.news-full-text p + ul {
  margin-top: 16px;
}

.news-full-text ul {
  padding-left: 1.5em;
  color: #444;
}

.news-full-text li + li {
  margin-top: 8px;
}

.news-continuation {
  margin-top: 20px;
}

.news-continuation > summary {
  width: fit-content;
  cursor: pointer;
  color: var(--red);
  font-size: var(--fs-base);
  font-weight: 600;
  padding: 8px 16px;
  border: 1px solid var(--red);
  border-radius: 24px;
}

.news-continuation > summary:focus-visible {
  outline: 3px solid var(--text-main);
  outline-offset: 4px;
}

@media (max-width: 1024px) {
  .news-list {
    --news-photo-width: min(100%, 680px);
    --news-photo-height: clamp(240px, 68vw, 520px);
  }

  .news-list .news-article-content {
    width: 100%;
    flex: none;
  }
}
