/* style/news.css */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #DC3545; /* Red */
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #121212; /* Body background from shared.css */
  --card-bg-dark: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  --border-color-dark: rgba(255, 255, 255, 0.15);
}

.page-news {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Light text for dark body background */
  background-color: var(--bg-dark);
  line-height: 1.6;
}

.page-news__section {
  padding: 60px 0;
  position: relative;
}

.page-news__dark-section {
  background-color: #0d0d0d; /* Slightly darker than body for contrast */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 38px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 15px;
  color: var(--primary-color);
  text-transform: uppercase;
}

.page-news__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(220, 53, 69, 0.1)), var(--bg-dark); /* Subtle gradient on dark background */
  overflow: hidden;
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.page-news__hero-image img:hover {
  transform: scale(1.02);
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-news__hero-title {
  font-size: 52px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
}

.page-news__hero-description {
  font-size: 20px;
  color: #f0f0f0;
  max-width: 900px;
  margin: 0 auto 30px auto;
  opacity: 0.9;
}

.page-news__cta-button {
  display: inline-block;
  padding: 16px 45px;
  background: var(--secondary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-news__cta-button:hover {
  background: var(--primary-color);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Articles Grid */
.page-news__articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-news__article-card {
  background-color: var(--card-bg-dark);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color-dark);
}

.page-news__article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.page-news__article-image {
  height: 220px; /* Fixed height for consistent card appearance */
  overflow: hidden;
}

.page-news__article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-news__article-content {
  padding: 25px;
}

.page-news__article-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-news__article-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--secondary-color);
}

.page-news__article-excerpt {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  line-height: 1.6;
}

.page-news__read-more {
  display: inline-block;
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--primary-color);
  transform: translateX(5px);
}

/* Latest News List */
.page-news__news-list {
  display: grid;
  gap: 20px;
}

.page-news__news-item {
  background-color: var(--card-bg-dark);
  border-radius: 10px;
  padding: 25px;
  border: 1px solid var(--border-color-dark);
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-news__news-item:hover {
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-5px);
}

.page-news__news-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 14px;
  color: #aaaaaa;
}

.page-news__news-date {
  font-weight: bold;
  color: var(--primary-color);
}

.page-news__news-category {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 4px 10px;
  border-radius: 5px;
  font-weight: 600;
}

.page-news__news-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-news__news-title a {
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: var(--primary-color);
}

.page-news__news-excerpt {
  font-size: 16px;
  color: #cccccc;
}

.page-news__load-more {
  text-align: center;
  margin-top: 40px;
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 14px 35px;
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  text-transform: uppercase;
}

.page-news__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--bg-dark); /* Dark text on gold background */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* CTA Section */
.page-news__cta-section {
  background: linear-gradient(90deg, var(--secondary-color), #a02a39);
  color: var(--text-light);
  text-align: center;
}

.page-news__cta-section .page-news__section-title {
  color: var(--text-light);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-news__cta-section .page-news__section-subtitle {
  color: #f0f0f0;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 16px 45px;
  background: var(--primary-color);
  color: var(--bg-dark); /* Dark text on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

.page-news__btn-primary:hover {
  background: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}