/* style/news.css */
/* 
 * Trang Tin Tức (News Page) Styles
 * Keyword: đăng nhập bj88
 * Màu sắc chính: #017439
 * Màu sắc phụ: #FFFFFF
 * Nền body: #FFFFFF (sáng) -> Văn bản chính: #333333
 */

.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Ensure consistency with body */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

/* Hero Section */
.page-news__hero-section {
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:hero_main:1920x1080:bj88,news,login,promotions,online_betting]') center/cover no-repeat;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
  position: relative;
  z-index: 1; /* Ensure content is above potential background issues */
}

.page-news__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Consistent padding */
  box-sizing: border-box;
}

.page-news__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Use specific font color for important titles/buttons if defined, otherwise white */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-news__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-news__btn-primary {
  display: inline-block;
  background-color: #C30808; /* Login/Register button color */
  color: #FFFF00; /* Login/Register font color */
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-news__btn-primary:hover {
  background-color: #a00606;
}

/* Section Titles */
.page-news__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: #017439; /* Main brand color for titles */
}

/* Latest Articles Section */
.page-news__latest-articles {
  padding: 60px 0;
  background-color: #f9f9f9; /* Light background for contrast */
}

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

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

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

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

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

.page-news__article-title {
  font-size: 1.5em;
  margin-bottom: 10px;
}

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

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

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

.page-news__article-excerpt {
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-news__read-more-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
}

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

/* Industry Insights Section */
.page-news__industry-insights {
  padding: 60px 0;
  background-color: #017439; /* Dark background */
  color: #ffffff; /* White text for dark background */
}

.page-news__industry-insights .page-news__section-title {
  color: #ffffff; /* White title for dark background */
}

.page-news__article-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-news__list-item {
  display: flex;
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-news__list-image {
  width: 300px; /* Fixed width for list image */
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

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

.page-news__list-title {
  font-size: 1.3em;
  margin-bottom: 10px;
}

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

.page-news__list-title a:hover {
  color: #FFFF00; /* Yellow for hover on dark background */
}

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

.page-news__list-excerpt {
  margin-bottom: 20px;
  flex-grow: 1;
}

/* BJ88 Spotlight Section */
.page-news__bj88-spotlight {
  padding: 60px 0;
  background-color: #f9f9f9;
}

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

.page-news__feature-card {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  padding: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-news__feature-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-news__feature-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  flex-grow: 1;
}

.page-news__feature-title a {
  color: #017439;
  text-decoration: none;
}

.page-news__feature-title a:hover {
  text-decoration: underline;
}

.page-news__feature-description {
  font-size: 0.95em;
  color: #555555;
}

/* Call to Action Section */
.page-news__cta-section {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.page-news__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-news__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.page-news__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
}

.page-news__btn-secondary:hover {
  background-color: #e0e0e0;
  color: #00562e;
}

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

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

.page-news__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background-color: #f5f5f5;
  cursor: pointer;
  font-weight: bold;
  color: #333333;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
}

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

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

.page-news__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px; /* Initial padding 0 */
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #ffffff;
  color: #555555;
}

.page-news__faq-item.active .page-news__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 15px 20px; /* Expanded padding */
}

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px; /* Add some space at the bottom */
}

/* --- Responsive Design --- */

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

  /* Fixed header offset for mobile */
  .page-news__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }

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

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

  .page-news__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  /* Images */
  .page-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-news__article-image {
    height: 200px; /* Adjust height for mobile */
  }

  .page-news__list-item {
    flex-direction: column;
  }

  .page-news__list-image {
    width: 100%;
    height: 200px;
  }

  /* Buttons */
  .page-news__cta-buttons {
    flex-direction: column;
    gap: 15px;
    align-items: center;
  }

  .page-news__btn-primary,
  .page-news__btn-secondary,
  .page-news a[class*="button"],
  .page-news a[class*="btn"] {
    max-width: 100% !important;
    width: 90% !important; /* Slightly less than 100% to allow for padding */
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    text-align: center;
  }

  /* Containers for overflow prevention */
  .page-news__container,
  .page-news__hero-section,
  .page-news__latest-articles,
  .page-news__industry-insights,
  .page-news__bj88-spotlight,
  .page-news__cta-section,
  .page-news__faq-section,
  .page-news__article-card,
  .page-news__list-item,
  .page-news__feature-card,
  .page-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Ensure no horizontal overflow */
  }

  .page-news__cta-section {
    padding: 60px 15px;
  }

  .page-news__faq-question,
  .page-news__faq-answer {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}

/* Larger Mobile devices / Small Tablets */
@media (max-width: 480px) {
  .page-news__hero-title {
    font-size: 2em;
  }

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

  .page-news__article-grid {
    grid-template-columns: 1fr; /* Single column for very small screens */
  }

  .page-news__list-image {
    height: 180px;
  }
}