/* style/news.css */
/* Body padding-top is handled by shared.css: body { padding-top: var(--header-offset); } */
/* Page-specific styles for news page */

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--bg); /* Dark background from custom palette */
}

/* Color variables from custom palette */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

/* General Section Styling */
.page-news__section {
  padding: 60px 20px;
  text-align: center;
}

.page-news__dark-section {
  background-color: var(--card-bg); /* Use card BG for dark sections */
  color: var(--text-main);
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Add some padding for content */
  box-sizing: border-box;
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
  background-color: var(--bg); /* Ensure background is dark */
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height for hero image */
  overflow: hidden;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure image covers the area */
}

.page-news__hero-content {
  max-width: 900px;
  margin-top: 40px; /* Space between image and content */
  padding: 0 20px;
  text-align: center;
  color: var(--text-main);
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* H1 font size clamp, no fixed large size */
  color: var(--gold-color); /* Use gold for main title for emphasis */
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.2em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* CTA Buttons */
.page-news__cta-buttons {
  display: flex;
  flex-wrap: wrap; /* Allow wrapping on small screens */
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%; /* Ensure container takes full width for wrapping */
  max-width: 600px; /* Limit width of button group */
  margin-left: auto;
  margin-right: auto;
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  min-width: 200px; /* Ensure buttons are not too small */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
  text-align: center;
}

.page-news__btn-primary {
  background: var(--button-gradient);
  color: var(--text-main); /* White text on green gradient */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-news__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-main);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Article Grid / Card Layout */
.page-news__article-grid,
.page-news__guide-list,
.page-news__promotion-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}