/* News Page Specific Styles */
.news-hero {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  overflow: hidden;
  margin-bottom: 60px;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('../images/hero.webp') center/cover no-repeat;
  filter: blur(4px);
  transform: scale(1.1);
  z-index: -1;
}

.news-hero-content h1 {
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 900;
  margin-bottom: 8px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.3);
  color: #fff;
}

.news-hero-content p {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

/* Glassmorphism Cards */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
  margin-bottom: 80px;
}

.news-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.news-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.9);
}

.news-item-image {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
  overflow: hidden;
}

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

.news-item:hover .news-item-image img {
  transform: scale(1.1);
}

.news-category-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--brand);
  color: #fff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  z-index: 2;
}

.news-item-body {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.news-item-date {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
  font-weight: 600;
}

.news-item-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  line-height: 1.4;
  color: var(--ink);
}

.news-item-excerpt {
  font-size: 15px;
  color: #554d45;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.news-item-more {
  margin-top: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-item-more::after {
  content: "→";
  transition: transform 0.3s ease;
}

.news-item:hover .news-item-more::after {
  transform: translateX(5px);
}

/* Detail View Overlay (Glass Container) */
#news-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#news-detail-overlay.active {
  display: flex;
  opacity: 1;
}

.news-detail-container {
  background: #fff;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: 32px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#news-detail-overlay.active .news-detail-container {
  transform: translateY(0);
}

.news-detail-close {
  position: sticky;
  top: 20px;
  left: calc(100% - 60px);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.news-detail-content {
  padding: 40px;
}

.news-detail-header {
  margin-bottom: 30px;
}

.news-detail-header h2 {
  font-size: clamp(24px, 4vw, 32px);
  text-align: left;
}

.news-detail-image {
  width: 100%;
  border-radius: 20px;
  margin-bottom: 30px;
}

.news-detail-body {
  line-height: 2;
  font-size: 17px;
  color: var(--ink);
}

.news-detail-body h3 {
  margin-top: 40px;
  border-bottom: 2px solid var(--brand-light);
  padding-bottom: 10px;
}

/* Pagination / Loader */
.news-loading {
  text-align: center;
  padding: 40px;
  font-weight: 700;
  color: var(--muted);
}
