.page-news {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background #121212 */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-news__dark-bg {
  background-color: #0A192F;
  color: #ffffff;
}

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

.page-news__hero-section {
  padding: 120px 0 80px; /* Adjusted padding-top, assuming shared.css handles body padding */
  text-align: center;
  background-image: url('[GALLERY:hero:1920x1080:thabet_one,news_hero,online_betting,dynamic,vietnam]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

.page-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-news__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-3px);
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #0A192F;
  color: #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #1a3350;
  transform: translateY(-3px);
}

.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
  color: inherit; /* Inherit color from parent section */
}

.page-news__featured-article {
  padding: 80px 0;
  text-align: center;
}

.page-news__featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-news__article-excerpt,
.page-news__article-content {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__article-content {
  margin-top: 30px;
}

.page-news__categories {
  padding: 80px 0;
}

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

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

.page-news__category-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-news__category-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-news__category-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFD700;
}

.page-news__latest-articles {
  padding: 80px 0;
}

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

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

.page-news__article-card:hover {
  transform: translateY(-10px);
}

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

.page-news__article-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 20px 10px;
  line-height: 1.4;
  color: #0A192F;
}

.page-news__article-title a {
  text-decoration: none;
  color: #0A192F;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover {
  color: #FFD700;
}

.page-news__article-summary {
  font-size: 1em;
  line-height: 1.6;
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-news__read-more-btn {
  display: inline-block;
  background-color: #FFD700;
  color: #0A192F;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  margin: 0 20px 20px;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.page-news__read-more-btn:hover {
  background-color: #e6c200;
}

.page-news__video-promo {
  padding: 80px 0;
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto 30px;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-news__video-link-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 10;
  cursor: pointer;
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.page-news__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

.page-news__faq-section {
  padding: 80px 0;
}

.page-news__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-news__faq-item {
  background-color: #f8f8f8;
  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;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #0A192F;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-news__faq-question:hover {
  background-color: #1a3350;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #333333;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 20px 25px;
}

.page-news__faq-answer p {
  margin: 0;
  line-height: 1.7;
}

.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 3em;
  }

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

  .page-news__section-title {
    font-size: 2em;
  }

  .page-news__article-image {
    height: 220px;
  }
}

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

  .page-news__hero-section {
    padding: calc(var(--header-offset, 120px) + 40px) 0 40px;
  }

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

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

  .page-news__btn-primary,
  .page-news__btn-secondary {
    padding: 12px 25px;
    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__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-news__featured-article,
  .page-news__categories,
  .page-news__latest-articles,
  .page-news__video-promo,
  .page-news__faq-section,
  .page-news__cta-section {
    padding: 40px 0;
  }

  .page-news__container {
    padding: 0 15px;
  }

  .page-news__category-grid {
    grid-template-columns: 1fr;
  }

  .page-news__articles-grid {
    grid-template-columns: 1fr;
  }

  .page-news__article-image {
    height: 200px;
  }

  /* Mobile responsive for all images */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for all video elements */
  .page-news video,
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive for all containers holding images/videos/buttons */
  .page-news__section,
  .page-news__card,
  .page-news__container,
  .page-news__video-section,
  .page-news__video-container,
  .page-news__video-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__video-wrapper {
    padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
  }

  .page-news__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-news__faq-answer {
    padding: 0 20px;
  }

  .page-news__faq-item.active .page-news__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 1.8em;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }

  .page-news__section-title {
    font-size: 1.5em;
  }
}