/* ===== NEWS SECTION - Modern & Elegant ===== */
#news_section {
  width: 100%;
  padding: clamp(3rem, 5vw, 5rem) clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, #0f0f0f 0%, #181818 100%);
  text-align: center;
  position: relative;
}

/* Subtle background pattern overlay */
#news_section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* Grid (modern glassmorphism cards) */
.home-news .news-grid {
  --col: minmax(300px, 1fr);
  display: grid;
  grid-template-columns: repeat(auto-fit, var(--col));
  gap: clamp(1.5rem, 3vw, 2rem);
  align-items: stretch;
  max-width: 1200px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Single card still compact & centered */
.home-news .news-grid:only-child,
.home-news .news-grid:has(> :only-child) {
  max-width: 720px;
}

.home-news .news-card { margin: 0; }

.home-news .news-card__body {
  display: flex;
  gap: 1.2rem;
  padding: 1rem;

  /* Glassmorphism background - usa variables */
  background: var(--card-bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Modern border with gold accent */
  border: var(--card-border);
  border-radius: 14px;

  /* Enhanced shadows */
  box-shadow: var(--card-shadow);

  transition: all 0.35s var(--ease-smooth);
  cursor: pointer;
}

.home-news .news-card__body:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: var(--card-shadow-hover);
}

.home-news .news-card__media {
  flex: 0 0 42%;
  max-width: 42%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 12px;
  position: relative;

  /* Subtle border highlight */
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.1),
    0 4px 12px rgba(0, 0, 0, 0.3);

  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.home-news .news-card__body:hover .news-card__media {
  transform: scale(1.03);
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 6px 18px rgba(0, 0, 0, 0.4);
}

.home-news .news-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.home-news .news-card__body:hover .news-card__media img {
  transform: scale(1.05);
}

.home-news .news-card__content { flex: 1; min-width: 0; text-align: left; }

.home-news .news-card__title {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.3;
  margin: 0 0 0.5rem;
  font-weight: 600;
  color: var(--accent-color);

  /* Subtle glow */
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.1);

  transition: text-shadow 0.3s ease;
}

.home-news .news-card__body:hover .news-card__title {
  text-shadow: 0 2px 14px rgba(212, 175, 55, 0.2);
}

.home-news .news-card__meta {
  font-size: 0.88rem;
  color: rgba(212, 175, 55, 0.7);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.home-news .news-card__excerpt {
  font-size: clamp(0.92rem, 1.8vw, 1rem);
  line-height: 1.55;
  max-height: 4.2em; /* ~3 lines */
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  color: rgba(244, 238, 212, 0.85);
}

.home-news .news-card__tags { display: none; }
.home-news .news-card__cta { margin-top: 0.6rem; }

@media (max-width: 880px){
  .home-news .news-card__body { flex-direction: column; }
  .home-news .news-card__media { flex-basis: auto; max-width: 100%; width: 100%; }
}

/* ===== Modal News (overlay) – kept from legacy for future use ===== */
.news-modal.hidden { display: none; }
.news-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  grid-template-rows: 1fr;
}
.news-modal_backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}
.news-modal_dialog {
  position: relative;
  margin: 6vh auto;
  width: min(900px, 92vw);
  max-height: 88vh;
  overflow: auto;
  background: #1e1e1e;
  border-radius: 16px;
  padding: 1.2rem 1.2rem 1.4rem;
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}
#news_modal_close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 1.3rem;
  line-height: 1;
  border-radius: 10px;
}
.news-modal_body { color: #fff; }
.news_post_fragment .news_post_date { color: #ffefaa; margin: .25rem 0 .75rem; }
.news_post_fragment img { max-width: 100%; height: auto; display: block; margin: .4rem 0; }

/* Reset bullets/padding for teaser list */
.home-news .news-grid,
.home-news .news-grid > li {
  list-style: none;
  margin: 0;
  padding: 0;
}
