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

.page-news {
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: var(--color-gold);
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  z-index: 0;
}

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly dim the background image */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
  border-radius: 8px;
  box-sizing: border-box;
}

.page-news__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 */
  color: var(--color-gold);
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.2;
}

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

/* CTA Buttons */
.page-news__cta-button {
  display: inline-block;
  background: var(--button-gradient);
  color: var(--color-text-main);
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For responsive buttons */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-news__cta-button--primary {
  background: var(--button-gradient);
  color: var(--color-text-main);
}

.page-news__cta-button--secondary {
  background: var(--color-bg-card);
  color: var(--color-gold);
  border: 1px solid var(--color-gold);
  margin-left: 15px;
}

.page-news__cta-button--secondary:hover {
  background: var(--color-deep-green);
  border-color: var(--color-glow);
}

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

/* Article Grids & Lists */
.page-news__featured-articles,
.page-news__latest-updates,
.page-news__promotions-events,
.page-news__industry-insights {
  padding: 60px 0;
}

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

.page-news__update-list,
.page-news__insight-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 40px;
}

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

.page-news__article-card:hover,
.page-news__event-card:hover,
.page-news__update-item:hover,
.page-news__insight-item:hover {
  transform: translateY(-8px);
}

.page-news__article-image,
.page-news__event-image,
.page-news__update-image,
.page-news__insight-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-height: 200px; /* Ensure minimum size */
}

.page-news__update-item .page-news__update-image {
    height: 180px; /* Slightly smaller for list items */
}

.page-news__article-content,
.page-news__event-content,
.page-news__update-content,
.page-news__insight-content {
  padding: 25px;
}

.page-news__article-title,
.page-news__event-title,
.page-news__update-title,
.page-news__insight-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a,
.page-news__event-title a,
.page-news__update-title a,
.page-news__insight-title a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__event-title a:hover,
.page-news__update-title a:hover,
.page-news__insight-title a:hover {
  color: var(--color-glow);
}

.page-news__article-meta,
.page-news__event-meta,
.page-news__update-meta,
.page-news__insight-meta {
  font-size: 0.9em;
  color: var(--color-text-secondary);
  margin-bottom: 15px;
}

.page-news__article-excerpt,
.page-news__event-excerpt,
.page-news__update-excerpt,
.page-news__insight-excerpt {
  font-size: 1em;
  color: var(--color-text-main);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-news__read-more {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: var(--color-glow);
}

.page-news__cta-section {
  background: var(--color-deep-green);
  padding: 80px 0;
  text-align: center;
  border-top: 5px solid var(--color-glow);
}

.page-news__cta-content {
  max-width: 900px;
  margin: 0 auto;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 5vw, 2.8em);
  }
  .page-news__description {
    font-size: 1.1em;
  }
  .page-news__article-image,
  .page-news__event-image,
  .page-news__update-image,
  .page-news__insight-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-news__description {
    font-size: 1em;
  }

  .page-news__article-grid,
  .page-news__event-grid {
    grid-template-columns: 1fr;
  }

  .page-news__update-list,
  .page-news__insight-list {
    grid-template-columns: 1fr;
  }

  .page-news__hero-content {
    padding: 20px;
  }

  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-button--secondary {
    margin-left: 0; /* Remove margin for stacked buttons */
  }

  /* Image responsive rules */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-news__hero-image {
      height: 300px !important;
      object-fit: cover !important;
  }
  .page-news__article-image,
  .page-news__event-image,
  .page-news__update-image,
  .page-news__insight-image {
    height: auto !important; /* Allow auto height for content images */
    min-height: 200px !important;
  }
  /* Containers for images/buttons to prevent overflow */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-section,
  .page-news__featured-articles,
  .page-news__latest-updates,
  .page-news__promotions-events,
  .page-news__industry-insights,
  .page-news__cta-section,
  .page-news__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  /* Button responsive rules */
  .page-news__cta-button,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-news__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .page-news__hero-section {
    padding-top: 10px !important;
  }
}