.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-news__section {
  padding: 40px 0;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.page-news__light-bg {
  background-color: #F5F7FA;
  color: #333333;
}

.page-news__dark-bg {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%); /* Brand gradient */
  color: #ffffff;
}

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

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
  color: #E53935; /* Brand primary color for titles */
}

.page-news__section-title--white {
  color: #ffffff;
}

.page-news__paragraph {
  font-size: 1.1em;
  margin-bottom: 1em;
  text-align: justify;
}

.page-news__paragraph--white {
  color: #ffffff;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, rely on body for header offset */
  padding-bottom: 40px;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 450px;
  overflow: hidden;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-news__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 15px;
  color: #E53935;
  line-height: 1.2;
}

.page-news__description {
  font-size: 1.3em;
  color: #555555;
  margin-bottom: 30px;
  line-height: 1.5;
}

/* CTA Buttons */
.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-news__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #FF5A4F;
}

.page-news__cta-button--large {
  padding: 18px 35px;
  font-size: 1.2em;
}

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

.page-news__category-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  box-sizing: border-box;
}

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

.page-news__category-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__category-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

.page-news__category-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

.page-news__btn-link {
  display: inline-block;
  color: #E53935;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid #E53935;
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.page-news__btn-link:hover {
  color: #FF5A4F;
  border-color: #FF5A4F;
}

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

.page-news__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
  box-sizing: border-box;
}

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

.page-news__news-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-news__news-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

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

.page-news__news-title a {
  color: #E53935;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__news-title a:hover {
  color: #FF5A4F;
}

.page-news__news-meta {
  font-size: 0.9em;
  color: #777777;
  margin-bottom: 15px;
}

.page-news__news-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__btn-readmore {
  display: inline-block;
  padding: 10px 20px;
  background: #E53935;
  color: #ffffff;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
  align-self: flex-start;
}

.page-news__btn-readmore:hover {
  background: #FF5A4F;
}

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

/* About awin 68 Section */
.page-news__about-awin68-section .page-news__paragraph {
  font-size: 1.15em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

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

.page-news__guide-item {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
  box-sizing: border-box;
}

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

.page-news__guide-icon {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-news__guide-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53935;
}

.page-news__guide-text {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
}

/* FAQ Section */
.page-news__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__faq-item {
  background-color: #ffffff;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #E53935;
  background-color: #ffffff;
  position: relative;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}

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

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

.page-news__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
  pointer-events: none; /* Prevent click on toggle icon itself */
}

.page-news__faq-item[open] .page-news__faq-toggle {
  transform: rotate(45deg);
}

.page-news__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05em;
  color: #555555;
  text-align: justify;
}

/* Conclusion Section */
.page-news__conclusion-section .page-news__paragraph {
  font-size: 1.15em;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.5em;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__main-title {
    font-size: 2.8em;
  }
  .page-news__description {
    font-size: 1.2em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__categories-grid,
  .page-news__news-grid,
  .page-news__guide-grid {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .page-news {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-news__container {
    padding: 0 15px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-news__section {
    padding: 30px 0;
  }
  .page-news__hero-section {
    flex-direction: column;
    padding-top: 10px !important; /* Rely on body for header offset */
  }
  .page-news__hero-image-wrapper {
    margin-bottom: 15px;
  }
  .page-news__hero-image {
    object-fit: contain !important; /* Ensure image is not cropped on mobile */
    max-height: none !important;
    aspect-ratio: unset !important;
  }
  .page-news__hero-content {
    padding: 0 15px;
  }
  .page-news__main-title {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-news__description {
    font-size: 1em;
    margin-bottom: 20px;
  }
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
  }
  .page-news__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px !important;
    font-size: 1em !important;
    box-sizing: border-box !important;
  }
  .page-news__cta-button--large {
    font-size: 1.1em !important;
    padding: 15px 25px !important;
  }
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }
  .page-news__categories-grid,
  .page-news__news-grid,
  .page-news__guide-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .page-news__category-card,
  .page-news__news-card,
  .page-news__guide-item {
    padding: 25px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .page-news__news-image {
    height: 200px;
  }
  .page-news__news-title {
    font-size: 1.2em;
  }
  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-news__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
  }
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}