:root {
  --primary-color: #F2C14E;
  --secondary-color: #FFD36B;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
  --card-bg: #111111;
  --body-bg: #0A0A0A;
  --text-main: #FFF6D6;
  --border-color: #3A2A12;
  --glow-color: #FFD36B;
}

.page-news {
  font-family: Arial, sans-serif;
  color: var(--text-main); /* Light text for dark body background */
  background-color: var(--body-bg); /* Explicitly set to match body */
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom */
}

/* HERO Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--body-bg); /* Ensure consistent background */
}

.page-news__hero-container {
  position: relative;
  max-width: 1200px;
  width: 100%; /* Ensure it takes full width up to max */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-news__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 0 15px;
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__hero-description {
  font-size: 1.2em;
  color: var(--text-main);
  max-width: 800px;
  margin: 0 auto 30px auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff; /* White text on button */
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* General Content Area */
.page-news__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

.page-news__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

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

.page-news__news-card {
  background-color: var(--card-bg); /* Dark card background */
  border: 1px solid var(--border-color); /* Border for card */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-news__news-card-image-wrapper {
  width: 100%;
  height: 220px; /* Fixed height for consistent card images */
  overflow: hidden;
}

.page-news__news-card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.page-news__news-card:hover .page-news__news-card-image-wrapper img {
  transform: scale(1.05);
}

.page-news__news-card-content {
  padding: 20px;
  flex-grow: 1; /* Allow content to grow */
  display: flex;
  flex-direction: column;
}

.page-news__news-card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  line-height: 1.3;
  flex-grow: 1;
}

.page-news__news-card-title a {
  color: var(--primary-color); /* Light color for titles on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-card-title a:hover {
  color: var(--secondary-color);
}

.page-news__news-card-meta {
  font-size: 0.9em;
  color: #ccc; /* Slightly lighter gray for meta info */
  margin-bottom: 15px;
}

.page-news__news-card-excerpt {
  font-size: 1em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.page-news__read-more-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  align-self: flex-start; /* Align button to start */
}

.page-news__read-more-button:hover {
  background: var(--secondary-color);
}

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

.page-news__view-all-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  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.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* For mobile responsiveness */
  box-sizing: border-box; /* For mobile responsiveness */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-news__view-all-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 30px;
}

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--card-bg); /* Dark background for FAQ item */
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--primary-color); /* Primary color for question text */
  font-weight: 600;
  font-size: 1.1em;
}

details.page-news__faq-item summary.page-news__faq-question::-webkit-details-marker {
  display: none;
}

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

.page-news__faq-qtext {
  flex: 1;
  line-height: 1.5;
  text-align: left;
}

.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-main); /* Light color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
  transition: transform 0.3s ease;
}

details.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
  color: var(--secondary-color);
}

details.page-news__faq-item .page-news__faq-answer {
  padding: 0 25px 25px;
  background: rgba(var(--card-bg), 0.8); /* Slightly lighter dark for answer */
  border-radius: 0 0 12px 12px;
  color: var(--text-main);
  font-size: 1em;
}

.page-news__faq-answer p {
  margin: 0;
  padding-top: 10px;
}

/* Call to Action Box */
.page-news__call-to-action {
    padding-top: 60px;
    padding-bottom: 60px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    text-align: center;
    margin-top: 60px;
}

.page-news__cta-box {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px;
    border-radius: 12px;
    background: rgba(var(--primary-color), 0.1); /* Subtle background using primary color */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--primary-color);
}

.page-news__cta-title {
    font-size: 2.2em;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

/* Image specific CSS to prevent small icons and ensure minimum size */
.page-news img:not(.page-news__hero-image img, .page-news__news-card-image-wrapper img) {
    min-width: 200px;
    min-height: 200px;
}

/* Ensure content area images are not smaller than 200px */
.page-news__news-list-section img,
.page-news__faq-section img,
.page-news__call-to-action img {
    min-width: 200px;
    min-height: 200px;
}

/* Prevent filter usage */
.page-news img {
  filter: none !important; /* Explicitly deny any filter */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-news__hero-section {
    padding-top: 10px !important; /* Ensure small top padding */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-news__hero-image {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-news__hero-image img {
    border-radius: 8px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__hero-content {
    padding: 0 10px;
  }

  .page-news__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-news__hero-description {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-news__cta-button {
    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__content-area {
    padding: 30px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-news__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-news__news-card {
    border-radius: 8px;
  }
  
  .page-news__news-card-image-wrapper {
    height: 180px;
  }

  .page-news__news-card-image-wrapper img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__news-card-title {
    font-size: 1.2em;
  }

  .page-news__read-more-button {
    padding: 8px 15px;
    font-size: 0.9em;
  }

  .page-news__view-all-button {
    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;
  }

  details.page-news__faq-item {
    border-radius: 8px;
  }

  details.page-news__faq-item summary.page-news__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-news__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }

  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 20px 20px;
  }
  
  .page-news__cta-box {
      padding: 30px 20px;
  }
  
  .page-news__cta-title {
      font-size: 1.8em;
  }
  
  .page-news__cta-description {
      font-size: 1em;
  }
}