/* ========================================
   News Page Styles
   ======================================== */

/* --- Page Hero --- */
.news-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.news-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0f 0%, #1a1520 50%, #0d0d15 100%);
  z-index: 0;
}

.news-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(200, 164, 92, 0.08) 0%, transparent 60%);
}

.news-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.news-hero-tag {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(200, 164, 92, 0.15);
  border: 1px solid rgba(200, 164, 92, 0.3);
  border-radius: 30px;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  margin-bottom: 20px;
}

.news-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.news-hero-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Breadcrumb --- */
.breadcrumb-bar {
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

.breadcrumb-bar a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb-bar a:hover {
  color: var(--primary);
}

.breadcrumb-sep {
  margin: 0 8px;
}

/* --- Filter Tabs --- */
.news-filter-section {
  padding: 32px 0 0;
}

.news-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.news-filter-tab {
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
}

.news-filter-tab:hover {
  background: rgba(200, 164, 92, 0.1);
  border-color: rgba(200, 164, 92, 0.2);
  color: var(--primary);
}

.news-filter-tab.active {
  background: rgba(200, 164, 92, 0.15);
  border-color: rgba(200, 164, 92, 0.4);
  color: var(--primary);
  font-weight: 500;
}

/* --- News Layout --- */
.news-list-section {
  padding: 48px 0 80px;
}

.news-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  align-items: start;
}

/* --- Featured Article --- */
.news-featured {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 40px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.news-featured:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.news-featured-img {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.news-featured-body {
  padding: 28px 32px 32px;
}

.news-featured-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 16px 0;
}

.news-featured-excerpt {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 20px;
}

.news-read-more {
  display: inline-block;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-read-more:hover {
  opacity: 0.8;
}

.news-read-more::after {
  content: ' \2192';
}

/* --- Meta Row --- */
.news-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.news-date-badge {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
}

.news-cat-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.cat-industry {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.cat-opening {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.cat-regulation {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
}

.cat-experience {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.cat-tips {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.news-region-badge {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Article Grid --- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.news-article-card {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
}

.news-article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  border-color: rgba(200, 164, 92, 0.2);
}

.news-article-card.hidden {
  display: none;
}

.news-featured.hidden {
  display: none;
}

.news-article-img {
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
}

.news-article-body {
  padding: 18px 20px 22px;
}

.news-article-body h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.55;
  margin: 12px 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-article-body p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Sidebar --- */
.news-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sidebar-widget {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
}

.sidebar-widget-title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Category List */
.sidebar-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-category-list li {
  margin-bottom: 2px;
}

.sidebar-category-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.sidebar-category-list a:hover {
  background: rgba(200, 164, 92, 0.08);
  color: var(--primary);
}

.cat-count {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.4);
  font-family: 'Inter', sans-serif;
}

/* City Tags */
.sidebar-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.city-tag {
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.82rem;
  text-decoration: none;
  transition: all 0.2s;
}

.city-tag:hover {
  background: rgba(200, 164, 92, 0.1);
  border-color: rgba(200, 164, 92, 0.3);
  color: var(--primary);
}

/* Sidebar CTA */
.sidebar-cta {
  background: linear-gradient(135deg, rgba(200, 164, 92, 0.1) 0%, rgba(200, 164, 92, 0.05) 100%);
  border-color: rgba(200, 164, 92, 0.2);
  text-align: center;
}

.sidebar-cta-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 20px;
}

.sidebar-cta-btn {
  display: inline-block;
  padding: 12px 32px;
  background: linear-gradient(135deg, #c8a45c 0%, #dbb96e 100%);
  color: #0a0a0f;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 8px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 164, 92, 0.3);
}

/* --- News Detail Modal --- */
.news-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  padding: 20px;
}

.news-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.news-modal {
  position: relative;
  background: #14141c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.5);
}

.news-modal::-webkit-scrollbar {
  width: 6px;
}

.news-modal::-webkit-scrollbar-track {
  background: transparent;
}

.news-modal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.news-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.news-modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
}

.news-modal-close svg {
  width: 20px;
  height: 20px;
}

.news-modal-img {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 16px 16px 0 0;
}

.news-modal-body {
  padding: 32px 36px 40px;
}

.news-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  margin: 16px 0 28px;
}

.news-modal-content p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 16px;
}

.news-modal-content .news-modal-heading {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(200, 164, 92, 0.15);
}

.news-modal-content .news-modal-list-item {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.8;
  margin-bottom: 6px;
  padding-left: 8px;
}

/* --- Responsive --- */
@media (max-width: 960px) {
  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .sidebar-widget {
    flex: 1;
    min-width: 280px;
  }
}

@media (max-width: 768px) {
  .news-hero {
    padding: 130px 0 60px;
  }

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

  .news-featured-img {
    height: 200px;
  }

  .news-featured-body {
    padding: 20px 24px 24px;
  }

  .news-featured-title {
    font-size: 1.2rem;
  }

  .sidebar-widget {
    min-width: 100%;
  }

  .news-modal-img {
    height: 200px;
  }

  .news-modal-body {
    padding: 24px 20px 32px;
  }

  .news-modal-title {
    font-size: 1.2rem;
  }

  .news-modal-overlay {
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .news-filter-tabs {
    gap: 6px;
  }

  .news-filter-tab {
    padding: 6px 14px;
    font-size: 0.82rem;
  }

  .news-article-img {
    height: 140px;
  }
}
