/* Copyright (c) Janyasi's Legal Associates. All Rights Reserved. */

/* ==========================================================================
   What's New Section
   Reuses .section-heading / .eyebrow from the site's shared styles.
   ========================================================================== */

/* Raised white card peeking up over the dark hero above it — same
   overlap trick the feature strip used to use back when it sat directly
   below .hero (see features.css history); this section is the one
   directly below .hero now, so it inherits that treatment instead. */
.whats-new {
  background: var(--white);
  padding: 0;
  position: relative;
  z-index: 10;
}

.whats-new .container {
  background: var(--white);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-md);
  transform: translateY(-30px);
  padding: 24px 40px;
}

/* Scoped override, not a change to the shared .section-heading rule
   (base.css) — its default 48px margin-bottom is tuned for full-height
   sections elsewhere on the site and is too much whitespace inside this
   compact card. */
.whats-new .section-heading {
  margin-bottom: 16px;
}

.whats-new .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.whats-new .news-item {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.whats-new .news-photo {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.whats-new .news-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 18px;
  color: var(--gold-dark);
}

.whats-new .news-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 0.4rem;
}

.whats-new .news-item h3 {
  margin: 0 0 0.5rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
}

.whats-new .news-excerpt {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
}

/* Expand-in-place "Read More" body — same toggle pattern as Advocates'
   long_description (.advocate-full-desc/.advocate-readmore-btn in
   advocates.css): hidden by default, shown via a JS-toggled .visible
   class rather than navigating away. */
.whats-new .news-full-body {
  display: none;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.whats-new .news-full-body.visible {
  display: block;
}

.whats-new .news-readmore-btn,
.whats-new .news-readmore-link {
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: 0.5rem;
  display: inline-flex;
}

.whats-new .news-date {
  font-size: 0.8rem;
  opacity: 0.65;
  display: block;
}

.whats-new .news-empty {
  text-align: center;
  opacity: 0.7;
  padding: 1rem 0;
}

.whats-new .news-show-more {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 980px) {
  .whats-new .container {
    padding: 40px 24px;
  }
}

@media (max-width: 560px) {
  .whats-new .container {
    transform: translateY(0);
    padding: 30px 20px;
  }
}
