:root {
  --primary-color: #1A202C;
  --secondary-color: #FFD700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-news {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text is light */
  background-color: var(--background-dark); /* Ensure main content area respects body background */
}

.page-news__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-news__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

/* Ensure fixed header spacing */
.page-news__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 20px 60px; /* Desktop: Adjust padding-top for fixed header */
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-light);
  overflow: hidden;
}

.page-news__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-light);
}

.page-news__hero-cta {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__hero-cta:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__news-grid-section {
  padding: 60px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-news__news-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__news-grid-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 50px;
  color: var(--primary-color);
}

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

.page-news__news-item {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-news__news-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-news__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-news__news-item-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
  line-height: 1.3;
}

.page-news__news-excerpt {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__news-meta {
  font-size: 0.85em;
  color: #888888;
  text-align: right;
  margin-top: auto;
}

.page-news__categories-section {
  padding: 60px 20px;
  background-color: var(--primary-color);
  color: var(--text-light);
  text-align: center;
}

.page-news__categories-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-news__categories-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: var(--secondary-color);
}

.page-news__categories-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.page-news__category-item {
  display: inline-block;
}

.page-news__category-item-link {
  display: block;
  padding: 12px 25px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 30px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-news__category-item-link:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  border-color: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-section {
  padding: 80px 20px;
  background-color: var(--background-light);
  color: var(--text-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-news__cta-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.page-news__cta-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  color: #555555;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 18px 50px;
  background: var(--primary-color);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-news__cta-button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-news__cta-image {
  position: absolute;
  bottom: -20px;
  right: -50px;
  opacity: 0.1;
  width: 300px;
  height: auto;
  pointer-events: none;
  user-select: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__news-grid-title,
  .page-news__categories-title,
  .page-news__cta-title {
    font-size: 2.2em;
  }
  .page-news__news-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust padding-top for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__hero-cta {
    padding: 12px 30px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__news-grid-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__news-grid-title,
  .page-news__categories-title,
  .page-news__cta-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-news__news-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__news-image {
    max-width: 100% !important;
    width: 100% !important;
    height: 180px !important;
    object-fit: cover;
  }
  .page-news__news-item-title {
    font-size: 1.2em;
  }
  .page-news__news-excerpt {
    font-size: 0.9em;
  }
  .page-news__categories-section {
    padding: 40px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__categories-list {
    flex-direction: column;
    gap: 10px;
  }
  .page-news__category-item-link {
    padding: 10px 20px;
    font-size: 0.9em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-section {
    padding: 60px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .page-news__cta-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__cta-button {
    padding: 15px 35px;
    font-size: 1.1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-news__cta-image {
    width: 200px;
    bottom: 0;
    right: -30px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }
  .page-news__news-grid-title,
  .page-news__categories-title,
  .page-news__cta-title {
    font-size: 1.6em;
  }
  .page-news__news-image {
    height: 150px;
  }
  .page-news__news-item-title {
    font-size: 1.1em;
  }
  .page-news__news-excerpt {
    font-size: 0.85em;
  }
  .page-news__cta-image {
    display: none;
  }
}