/* style/news.css */

/* Variables and General Styling for page-news */
:root {
  --primary-color: #FFD700; /* Gold */
  --secondary-color: #1A202C; /* Dark Blue */
  --text-color-dark-bg: #ffffff;
  --text-color-light-bg: #333333;
  --bg-dark: #000; /* Body background is #000 as per prompt */
  --bg-light: #f5f5f5;
  --card-bg-dark-mode: rgba(255, 255, 255, 0.1);
  --card-border-dark-mode: rgba(255, 255, 255, 0.2);
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark-bg); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Should be inherited from body, but good to define */
}

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

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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.page-news__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color-dark-bg);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Hero Section (Module 1: H1 Title + CTA Buttons) --- */
.page-news__hero-section {
  position: relative;
  padding: 120px 0 80px; /* Desktop padding-top to clear fixed header */
  text-align: center;
  background: var(--secondary-color);
  color: var(--text-color-dark-bg);
  background-image: url('[GALLERY:bg:niw88,news_hero,abstract_pattern]'); /* Background image for visual appeal */
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  border-bottom: 5px solid var(--primary-color);
}

.page-news__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--primary-color);
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 20px;
  max-width: 900px;
  margin: 0 auto 40px;
  color: var(--text-color-dark-bg);
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
  box-sizing: border-box;
}

.page-news__btn-primary {
  background: var(--primary-color);
  color: var(--secondary-color);
}

.page-news__btn-primary:hover {
  background: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-news__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* --- Latest News Section (Module 4: Blog List) --- */
.page-news__latest-news {
  padding: 80px 0;
  background-color: var(--bg-dark);
}

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

.page-news__news-item {
  background: var(--card-bg-dark-mode);
  border: 1px solid var(--card-border-dark-mode);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-news__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-news__news-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.page-news__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

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