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

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

.page-news__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1F2D3D;
  text-align: center;
  margin-bottom: 15px;
  padding-top: 40px;
}

.page-news__section-subtitle {
  font-size: 18px;
  color: #555;
  text-align: center;
  margin-bottom: 40px;
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
  margin-bottom: 50px;
}

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

.page-news__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-news__hero-content {
  position: relative;
  z-index: 1;
  color: #ffffff;
  padding: 80px 20px;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-news__hero-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
}

.page-news__hero-cta-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}

/* Buttons */
.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;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box;
  max-width: 100%;
}

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

.page-news__btn-primary:hover {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  transform: translateY(-2px);
}

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

.page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #1F2D3D;
  border-color: #1F2D3D;
  transform: translateY(-2px);
}

/* News List Section */
.page-news__news-list-section {
  padding: 50px 0;
  background-color: #F4F7FB;
}

.page-news__news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__news-card {
  background: #ffffff;
  border-radius: 10px;
  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;
}

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

.page-news__news-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

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

.page-news__news-card-date {
  font-size: 0.9em;
  color: #6FA3FF;
  margin-bottom: 10px;
}

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

.page-news__news-card-description {
  font-size: 1em;
  color: #555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-news__read-more {
  color: #2F6BFF;
  font-weight: bold;
  font-size: 0.95em;
  align-self: flex-start;
}

.page-news__read-more:hover {
  text-decoration: underline;
}

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

/* Why fve88 Section */
.page-news__why-fve88-section {
  padding: 80px 0;
  background: #2F6BFF; /* Brand color as background */
  color: #ffffff; /* White text for contrast */
}

.page-news__why-fve88-section .page-news__section-title,
.page-news__why-fve88-section .page-news__section-subtitle {
  color: #ffffff;
}

.page-news__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-news__text-content {
  flex: 1;
  font-size: 1.1em;
}

.page-news__text-content p {
  margin-bottom: 20px;
}

.page-news__text-content .page-news__btn-secondary {
  margin-top: 20px;
}

.page-news__image-content {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-news__image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Promotions Section */
.page-news__promotions-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

.page-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.page-news__promo-card {
  background: #ffffff;
  border-radius: 10px;
  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;
}

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

.page-news__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

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

.page-news__promo-title {
  font-size: 1.25em;
  font-weight: bold;
  color: #1F2D3D;
  margin-bottom: 10px;
}

.page-news__promo-description {
  font-size: 1em;
  color: #555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__promo-content .page-news__btn-primary {
  align-self: flex-start;
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Insights Section */
.page-news__insights-section {
  padding: 80px 0;
  background: #1F2D3D;
  color: #ffffff;
}

.page-news__insights-section .page-news__section-title,
.page-news__insights-section .page-news__section-subtitle {
  color: #ffffff;
}

.page-news__insights-section .page-news__text-content .page-news__btn-secondary {
  margin-top: 20px;
}

/* FAQ Section */
.page-news__faq-section {
  padding: 80px 0;
  background-color: #F4F7FB;
}

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

details.page-news__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #D6E2FF;
  overflow: hidden;
  background: #ffffff;
}
details.page-news__faq-item summary.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-news__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D;
}
.page-news__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #6FA3FF;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-news__faq-item .page-news__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333;
}

/* CTA Bottom Section */
.page-news__cta-bottom-section {
  padding: 60px 0;
  text-align: center;
  background-color: #F4F7FB;
}

.page-news__cta-bottom-section .page-news__cta-buttons {
  margin-top: 40px;
}


/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__news-grid,
  .page-news__promotions-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .page-news__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-news__image-content {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-news__text-content .page-news__btn-secondary {
    align-self: center;
  }

  .page-news__hero-title {
    font-size: 3em;
  }

  .page-news__hero-description {
    font-size: 1.1em;
  }
}

@media (max-width: 768px) {
  .page-news__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-news__section-title {
    font-size: 28px;
    padding-top: 20px;
  }

  .page-news__section-subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  /* Hero Section */
  .page-news__hero-section {
    padding-top: 10px; /* Small top padding for mobile */
    margin-bottom: 30px;
  }

  .page-news__hero-content {
    padding: 60px 15px;
  }

  .page-news__hero-title {
    font-size: 2.2em; /* Adjusted for mobile */
  }

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

  .page-news__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
  }

  .page-news__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* News List Section */
  .page-news__news-list-section {
    padding: 30px 0;
  }

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

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

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

  .page-news__news-card-description {
    font-size: 0.95em;
  }

  /* Why fve88 Section */
  .page-news__why-fve88-section {
    padding: 50px 0;
  }

  .page-news__content-wrapper {
    gap: 20px;
  }

  .page-news__text-content {
    font-size: 1em;
  }

  .page-news__image-content .page-news__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Promotions Section */
  .page-news__promotions-section {
    padding: 50px 0;
  }

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

  .page-news__promo-image {
    height: 160px;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-news__promo-title {
    font-size: 1.1em;
  }

  .page-news__promo-description {
    font-size: 0.95em;
  }

  /* Insights Section */
  .page-news__insights-section {
    padding: 50px 0;
  }

  .page-news__insights-section .page-news__image-content {
    order: -1;
    margin-bottom: 30px;
  }

  .page-news__insights-section .page-news__image-content .page-news__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Section */
  .page-news__faq-section {
    padding: 50px 0;
  }

  details.page-news__faq-item summary.page-news__faq-question { padding: 15px; }
  .page-news__faq-qtext { font-size: 15px; }
  details.page-news__faq-item .page-news__faq-answer {
    padding: 0 15px 15px;
  }

  /* CTA Bottom Section */
  .page-news__cta-bottom-section {
    padding: 40px 0;
  }

  .page-news__cta-bottom-section .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-news p,
  .page-news li {
    font-size: 16px;
    line-height: 1.6;
  }
}

/* General image and button responsiveness for content areas */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-news__section,
.page-news__card,
.page-news__container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  .page-news__cta-button,
  .page-news__btn-primary,
  .page-news__btn-secondary,
  .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,
  .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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-news__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}

/* Dark section specific */
.page-news__dark-section {
  background: #2F6BFF;
  color: #ffffff;
}
.page-news__dark-section .page-news__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #2F6BFF;
}
.page-news__dark-section .page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #1F2D3D;
  border-color: #1F2D3D;
}

/* Insights section specific - to ensure contrast */
.page-news__insights-section {
  background: #1F2D3D; /* Darker background */
  color: #ffffff;
}
.page-news__insights-section .page-news__section-title,
.page-news__insights-section .page-news__section-subtitle {
  color: #ffffff;
}
.page-news__insights-section .page-news__text-content p {
  color: #f0f0f0;
}
.page-news__insights-section .page-news__btn-secondary {
  background: #ffffff;
  color: #1F2D3D;
  border: 2px solid #ffffff;
}
.page-news__insights-section .page-news__btn-secondary:hover {
  background: #f0f0f0;
  color: #1F2D3D;
  border-color: #f0f0f0;
}