:root {
  --main-color: #11A84E; /* Primary Green */
  --secondary-color: #22C768; /* Secondary Green */
  --card-bg: #11271B; /* Card Background */
  --bg-color: #08160F; /* Main Background */
  --text-main: #F2FFF6; /* Main Text Color */
  --text-secondary: #A7D9B8; /* Secondary Text Color */
  --border-color: #2E7A4E; /* Border Color */
  --glow-color: #57E38D; /* Glow */
  --gold-color: #F2C14E; /* Gold */
  --divider: #1E3A2A; /* Divider */
  --deep-green: #0A4B2C; /* Deep Green */

  --main-color-rgb: 17, 168, 78; /* RGB for main-color for rgba usage */
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Default text color, will be overridden by specific sections */
  background-color: var(--bg-color); /* From shared.css, expected to be #08160F */
  line-height: 1.6;
}

.page-news__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 40px; /* Space below content */
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-news__hero-content {
  position: relative; /* Ensure it's not absolute and overlapping image */
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  text-align: center;
  box-sizing: border-box;
  margin-top: 20px; /* Space between image and text */
}

.page-news__main-title {
  font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size for H1 */
  color: var(--text-main);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.1em;
  color: var(--text-secondary);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.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(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-news__section-title--light {
  color: var(--text-main); /* White text for dark backgrounds */
}

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

.page-news__section-intro--light {
  color: var(--text-secondary); /* Lighter text for dark backgrounds */
}

/* Latest Articles Section */
.page-news__latest-articles-section {
  padding: 60px 0;
  background-color: var(--bg-color);
  color: var(--text-main);
}

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

.page-news__article-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__article-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-news__article-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__article-title a {
  color: var(--text-main); /* #F2FFF6 */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: var(--main-color); /* #11A84E */
}

.page-news__article-meta {
  font-size: 0.9em;
  color: var(--text-secondary); /* #A7D9B8 */
  margin-bottom: 15px;
}

.page-news__article-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: opacity 0.3s ease;
  text-align: center;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__read-more-btn:hover {
  opacity: 0.9;
}

.page-news__read-more-btn--light {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
}

.page-news__view-all-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

.page-news__view-all-btn {
  display: inline-block;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
  padding: 15px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: opacity 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__view-all-btn:hover {
  opacity: 0.9;
}

/* Promotions Updates Section */
.page-news__promotions-updates-section {
  padding: 60px 0;
  background-color: var(--deep-green); /* Use Deep Green for dark background */
  color: var(--text-main);
}

.page-news__dark-bg {
  background-color: var(--deep-green); /* Deep Green: #0A4B2C */
  color: var(--text-main); /* #F2FFF6 */
}

.page-news__promotion-grid {
  display: grid;
  grid-template-columns: 1fr; /* Stack on mobile */
  gap: 30px;
}

.page-news__promotion-card {
  background-color: var(--card-bg); /* #11271B */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-news__promotion-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__promotion-image {
  width: 100%;
  height: 280px; /* Fixed height */
  object-fit: cover;
  display: block;
}

.page-news__promotion-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__promotion-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__promotion-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__promotion-title a:hover {
  color: var(--main-color);
}

.page-news__promotion-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__promotion-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Platform Guides Section */
.page-news__platform-guides-section {
  padding: 60px 0;
  background-color: var(--bg-color);
  color: var(--text-main);
}

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

.page-news__guide-card {
  background-color: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.page-news__guide-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__guide-image {
  width: 100%;
  height: 220px; /* Fixed height */
  object-fit: cover;
  display: block;
}

.page-news__guide-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-news__guide-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.3;
}

.page-news__guide-title a {
  color: var(--text-main);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__guide-title a:hover {
  color: var(--main-color);
}

.page-news__guide-meta {
  font-size: 0.9em;
  color: var(--text-secondary);
  margin-bottom: 15px;
}

.page-news__guide-excerpt {
  font-size: 1em;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  background-color: var(--main-color); /* Main color for CTA background */
  color: #ffffff;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__cta-section .page-news__container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-news__cta-content {
  flex: 1;
  text-align: left;
}

.page-news__cta-title {
  font-size: 2.8em;
  color: #ffffff;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-news__cta-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
  color: #ffffff;
}

.page-news__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-news__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-news__cta-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 50%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-news__cta-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color);
  color: var(--text-main);
}

.page-news__faq-list {
  margin-top: 40px;
}

.page-news__faq-item {
  background-color: var(--card-bg); /* #11271B */
  border: 1px solid var(--divider); /* #1E3A2A */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-item summary {
  list-style: none; /* Remove default marker */
  padding: 20px 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 1.15em;
  color: var(--text-main);
  transition: background-color 0.3s ease;
}

.page-news__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-news__faq-item summary:hover {
  background-color: rgba(var(--main-color-rgb), 0.1); /* Slight hover effect */
}

.page-news__faq-qtext {
  flex-grow: 1;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--main-color); /* #11A84E */
}

.page-news__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: var(--text-secondary);
}

.page-news__faq-answer p {
  margin-bottom: 0;
}

/* Ensure content area images are not too small */
.page-news__hero-image,
.page-news__article-image,
.page-news__promotion-image,
.page-news__guide-image,
.page-news__cta-image {
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-news__promotion-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-news__promotion-card {
    flex-direction: row;
  }
  .page-news__promotion-card:nth-child(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
  }
  .page-news__promotion-image-wrapper {
    flex: 1;
  }
  .page-news__promotion-content {
    flex: 1;
  }
}

@media (max-width: 768px) {
  .page-news__hero-content {
    margin-top: 10px;
    padding: 15px;
  }
  .page-news__main-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
  }
  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }
  .page-news__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-news__articles-grid,
  .page-news__guides-grid {
    grid-template-columns: 1fr;
  }
  .page-news__article-image,
  .page-news__promotion-image,
  .page-news__guide-image {
    height: 200px; /* Adjust height for mobile */
  }
  .page-news__article-title,
  .page-news__promotion-title,
  .page-news__guide-title {
    font-size: 1.2em;
  }
  .page-news__read-more-btn,
  .page-news__view-all-btn,
  .page-news__btn-primary,
  .page-news__btn-secondary {
    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__view-all-button-wrapper,
  .page-news__cta-buttons {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-news__cta-section .page-news__container {
    flex-direction: column-reverse; /* Image above content on mobile */
    gap: 30px;
  }
  .page-news__cta-content {
    text-align: center;
  }
  .page-news__cta-title {
    font-size: 2em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-image-wrapper {
    max-width: 100%;
  }
  .page-news__cta-image {
    height: 300px; /* Adjust height for mobile CTA image */
  }
  .page-news__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px 20px;
  }

  /* Mobile image and video responsiveness */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__hero-image-wrapper,
  .page-news__article-image-wrapper,
  .page-news__promotion-image-wrapper,
  .page-news__guide-image-wrapper,
  .page-news__cta-image-wrapper,
  .page-news__cta-buttons,
  .page-news__button-group,
  .page-news__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__hero-section {
    padding-top: 10px !important;
  }
}