/* General styles for .page-news */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text-main, #FFF6D6); /* Default text color for dark background */
  background-color: var(--color-background, #0A0A0A); /* Body background */
  padding-bottom: 50px;
}

/* Section styles */
.page-news__section {
  padding: 60px 0;
}

.page-news__dark-section {
  background-color: var(--color-card-bg, #111111);
}

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--color-text-main, #FFF6D6);
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-news__section-title--light {
  color: var(--color-text-main, #FFF6D6);
}

.page-news__section-description {
  font-size: 18px;
  color: #AAA;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-news__section-description--light {
  color: #AAA;
}

/* Buttons */
.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  color: #111111; /* Dark text for light button */
  border: none;
}

.page-news__btn-primary:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.page-news__btn-secondary {
  background: transparent;
  color: var(--color-text-main, #FFF6D6);
  border: 2px solid var(--color-border, #3A2A12);
}

.page-news__btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Hero Section */
.page-news__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column; /* Image first, then content */
  align-items: center;
  justify-content: center;
  min-height: 500px;
  background-color: var(--color-background, #0A0A0A);
}

.page-news__hero-image {
  width: 100%;
  max-height: 500px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Cover for desktop */
  display: block;
}

.page-news__hero-content {
  position: relative; /* Ensure content is above image if z-index is used, but not overlapping */
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  z-index: 2; /* Ensure text is above background image */
}

.page-news__main-title {
  font-size: clamp(32px, 5vw, 48px); /* Use clamp for H1 */
  color: var(--color-text-main, #FFF6D6);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__intro-text {
  font-size: 20px;
  color: #AAA;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-news__article-card {
  background-color: var(--color-card-bg, #111111);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--color-border, #3A2A12);
}

.page-news__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-news__article-image {
  width: 100%;
  height: 225px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}