/* ============================================
   News page — St. Vincent De Paul Hospitals
   ============================================ */

/* ============ FEATURED CAROUSEL ============ */
.news-featured {
  padding: 5rem 0 2.5rem;
  background: #fff;
}

.news-featured-carousel {
  position: relative;
  margin-top: 0.5rem;
}

.news-featured-track {
  position: relative;
  min-height: clamp(320px, 42vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-featured-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.news-featured-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.news-featured-slide-inner {
  position: relative;
  height: 100%;
  min-height: clamp(320px, 42vw, 420px);
  background-color: var(--color-navy);
  background-image: var(--slide-bg);
  background-size: cover;
  background-position: center;
}

.news-featured-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(14, 42, 85, 0.95) 0%,
    rgba(14, 42, 85, 0.65) 45%,
    rgba(14, 42, 85, 0.2) 100%
  );
}

.news-featured-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  max-width: 560px;
  padding: clamp(2rem, 5vw, 3.5rem);
  color: #fff;
}

.news-featured-date {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1rem;
}

.news-featured-date i {
  color: var(--color-gold);
}

.news-featured-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #fff;
}

.news-featured-body p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 1.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-body .btn {
  align-self: flex-start;
}

.news-featured-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.news-featured-nav {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.news-featured-nav:hover {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.news-featured-dots {
  display: flex;
  gap: 0.625rem;
}

.news-featured-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.news-featured-dot.is-active {
  background: var(--color-red);
  transform: scale(1.2);
}

/* ============ LISTING ============ */
.news-listing {
  position: relative;
  padding: 0 0 5rem;
  background: var(--color-light);
  scroll-margin-top: 96px;
}

.news-listing-accent {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-red) 0%,
    var(--color-red) 35%,
    var(--color-navy) 100%
  );
}

.news-listing .container {
  padding-top: 3.5rem;
}

.news-listing-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.news-listing-badge {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  border-radius: 999px;
  background: rgba(185, 28, 44, 0.1);
  color: var(--color-red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-listing-lead {
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.news-card-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--color-light);
}

.news-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-card-media img {
  transform: scale(1.05);
}

.news-card-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e5e7eb 0%, #d1d5db 100%);
  color: var(--color-muted);
  font-size: 2.5rem;
}

.news-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 42, 85, 0.35) 0%, transparent 50%);
  pointer-events: none;
}

.news-card-date {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.375rem 0.875rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem;
}

.news-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.news-card-body h3 a {
  color: var(--color-navy);
  transition: color 0.2s ease;
}

.news-card-body h3 a:hover {
  color: var(--color-red);
}

.news-card-body p {
  flex: 1;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-muted);
  margin-bottom: 1.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-red);
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-card-link:hover {
  color: var(--color-red-dk);
  gap: 0.75rem;
}

.news-card-link i {
  font-size: 0.7rem;
}

.news-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 1rem;
}

.news-empty i {
  font-size: 2.5rem;
  color: var(--color-border);
}

/* ============ VALUES ============ */
.news-values {
  padding: 5rem 0;
  background: #fff;
  border-top: 1px solid var(--color-border);
}

.news-values .section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.news-values .value-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  background: var(--color-light);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.news-values .value-card:hover {
  background: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* ============ CTA ============ */
.news-cta {
  background: var(--color-navy);
  color: #fff;
  padding: 5rem 0;
}

.news-cta-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.5fr;
  gap: 3rem;
  align-items: center;
}

.news-cta-text h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}

.news-cta-text > p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 520px;
}

.news-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.news-cta-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-cta-visual i {
  font-size: clamp(5rem, 12vw, 7rem);
  color: rgba(255, 255, 255, 0.1);
}

/* ============ ARTICLE VIEW HERO ============ */
.news-article-hero {
  padding: 0;
  background: var(--color-navy);
}

.news-article-hero-banner {
  position: relative;
  overflow: hidden;
  height: clamp(380px, 48vh, 520px); /* Taller for grander feel */
  background-color: var(--color-navy);
  background-image: var(--article-hero-bg);
  background-size: cover;
  background-position: center;
}

.news-article-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-article-hero-overlay {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(105deg, rgba(14, 42, 85, 0.95) 0%, rgba(14, 42, 85, 0.7) 40%, rgba(14, 42, 85, 0.2) 70%, transparent 100%),
    linear-gradient(to top, rgba(14, 42, 85, 0.4) 0%, transparent 30%);
}

.news-article-hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  animation: hero-reveal 1.2s cubic-bezier(0.2, 1, 0.3, 1) both;
}

.news-article-breadcrumb {
  margin-bottom: 1.5rem;
}

.news-article-breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.news-article-breadcrumb a:hover {
  color: #fff;
}

.news-article-hero-content h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  color: #fff;
  max-width: 850px;
}

.news-article-date {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}

.news-article-date i {
  color: var(--color-gold);
}

.news-article-main {
  padding: 3.5rem 0 4.5rem;
  background: #fff;
}

.news-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
  gap: 3.5rem;
  align-items: start;
}

.news-article-cover {
  margin-bottom: 2.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-article-cover img {
  width: 100%;
  max-height: min(30rem, 75vh);
  object-fit: cover;
}

.news-article-lead {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-navy);
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--color-border);
}

.news-article-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.news-article-body p {
  margin-bottom: 1.25em;
}

.news-article-body h2 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 2rem 0 1rem;
}

.news-article-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin: 1.75rem 0 0.875rem;
}

.news-article-body ul,
.news-article-body ol {
  margin: 0 0 1.5em;
  padding-left: 1.5em;
}

.news-article-body li {
  margin-bottom: 0.5em;
}

.news-article-body a {
  color: var(--color-red);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.news-article-body blockquote {
  margin: 2rem 0;
  padding: 1.5rem 1.75rem;
  border-left: 4px solid var(--color-red);
  background: var(--color-light);
  font-style: italic;
  color: var(--color-muted);
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.news-article-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.news-sidebar-card {
  padding: 1.75rem;
  background: var(--color-light);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.news-sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-red);
  display: inline-block;
}

.news-sidebar-card dl {
  margin-bottom: 1.5rem;
}

.news-sidebar-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.news-sidebar-card dd {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text);
}

.news-sidebar-btn {
  width: 100%;
}

.news-related-link {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.3s ease;
}

.news-related-link:hover {
  opacity: 0.75;
}

.news-related-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-border);
}

.news-related-text strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-related-text time {
  font-size: 0.75rem;
  color: var(--color-muted);
}

.news-article-gallery {
  padding: 4.5rem 0 5rem;
  background: var(--color-light);
  border-top: 1px solid var(--color-border);
}

.news-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.news-gallery-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.news-gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.news-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-gallery-item:hover img {
  transform: scale(1.05);
}

.news-gallery-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: all 0.3s ease;
}

.news-gallery-item:hover .news-gallery-zoom {
  opacity: 1;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .news-article-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .news-article-sidebar {
    position: static;
  }

  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-cta-inner {
    grid-template-columns: 1fr;
  }

  .news-cta-visual {
    display: none;
  }
}

@media (max-width: 768px) {
  .news-article-main {
    padding: 3rem 0 4rem;
  }

  .news-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .news-featured {
    padding: 3.5rem 0 2.5rem;
  }

  .news-listing .container {
    padding-top: 2.5rem;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }

  .news-cta-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

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