/* ===== Resources / News Page ===== */

/* Hero Banner (legacy - now using shared page-hero) */
.news-hero {
  background: linear-gradient(135deg, #1a2744 0%, #2d4373 60%, #3a5a8a 100%);
  padding: 140px 5% 60px;
  position: relative;
  overflow: hidden;
}

.news-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(74, 119, 182, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.news-hero-content {
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.news-hero-title {
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.news-hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

/* News Page Body */
.news-page {
  background: #ffffff;
  padding-top: 0;
  padding-bottom: 80px;
}

.news-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Toolbar */
.news-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 0;
  border-bottom: 1px solid #e8ecf1;
  margin-bottom: 40px;
}

.news-search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f3f5f8;
  border-radius: 10px;
  padding: 12px 20px;
  color: rgba(32, 40, 59, 0.4);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  flex: 1;
  max-width: 500px;
}

.news-search-box:focus-within {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(74, 119, 182, 0.2);
}

.news-search-box input {
  border: none;
  background: none;
  outline: none;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  width: 100%;
}

.news-search-box input::placeholder {
  color: rgba(32, 40, 59, 0.35);
}

.news-filters {
  display: flex;
  gap: 8px;
}

.filter-btn {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: rgba(32, 40, 59, 0.5);
  cursor: pointer;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  color: var(--text-dark);
  background: #f3f5f8;
}

.filter-btn.active {
  color: var(--text-dark);
  font-weight: 600;
}

/* ===== Featured Article ===== */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 48px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.featured-article:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.featured-image {
  position: relative;
  overflow: hidden;
  min-height: 360px;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-article:hover .featured-image img {
  transform: scale(1.03);
}

.featured-content {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.featured-excerpt {
  font-size: 15px;
  color: rgba(32, 40, 59, 0.65);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Article Badges */
.article-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  z-index: 2;
}

.badge-market-update {
  background: rgba(74, 119, 182, 0.9);
  color: #fff;
}

.badge-article {
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

.badge-notice {
  background: rgba(245, 158, 11, 0.9);
  color: #fff;
}

/* Article Meta */
.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(32, 40, 59, 0.4);
  font-size: 13px;
  margin-bottom: 12px;
}

/* Read More Button */
.read-more-btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--text-dark);
  color: #fff;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
  align-self: flex-start;
}

.read-more-btn:hover {
  background: var(--primary-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(74, 119, 182, 0.3);
}

/* ===== News Grid ===== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.news-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8ecf1;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.news-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.07);
  transform: translateY(-4px);
}

.news-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.news-card-body {
  padding: 24px;
}

.news-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-excerpt {
  font-size: 14px;
  color: rgba(32, 40, 59, 0.55);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hidden state for filtering */
.news-card.hidden {
  display: none;
}

/* Nav active */
.nav-active {
  color: var(--primary-blue) !important;
  font-weight: 600 !important;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-article {
    grid-template-columns: 1fr;
  }

  .featured-image {
    min-height: 260px;
  }

  .featured-content {
    padding: 32px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    padding: 120px 5% 40px;
  }

  .news-hero-title {
    font-size: 32px;
  }

  .news-toolbar {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .news-search-box {
    max-width: 100%;
  }

  .news-filters {
    overflow-x: auto;
    padding-bottom: 4px;
  }

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

  .featured-content {
    padding: 24px;
  }

  .featured-title {
    font-size: 22px;
  }
}
