/* style/news.css */

/* General Styles */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
}

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

.page-news__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-news__section-intro {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-news__dark-bg {
  background-color: var(--dark-bg-1);
  color: #ffffff;
}

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

.page-news__light-bg .page-news__section-intro,
.page-news__light-bg p {
  color: #333333;
}

.page-news__light-bg h3 a {
  color: #26A9E0;
}

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

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

.page-news__card a {
  text-decoration: none;
}

.page-news__card h3 a {
  color: #26A9E0;
  transition: color 0.3s ease;
}

.page-news__card h3 a:hover {
  color: #1a7bb7;
}

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

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-news__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-news__btn-primary:hover {
  background-color: #1a7bb7;
  border-color: #1a7bb7;
}

.page-news__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-news__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-news__read-more {
  display: inline-block;
  margin-top: 15px;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-news__read-more:hover {
  color: #1a7bb7;
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0; /* Assuming shared.css handles body padding-top */
  min-height: 500px; /* Adjust as needed */
  position: relative;
  overflow: hidden;
}

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

.page-news__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 40px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
}

.page-news__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* Latest Updates Section */
.page-news__latest-updates {
  padding: 80px 0;
}

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

.page-news__article-card {
  background: #ffffff;
  color: #333333;
}

.page-news__article-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.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;
  flex-grow: 1;
}

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

.page-news__article-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

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

.page-news__promotions-section .page-news__section-title,
.page-news__promotions-section .page-news__section-intro {
  color: #ffffff;
}

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

.page-news__promo-card {
  text-align: center;
}

.page-news__promo-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 20px;
}

.page-news__promo-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-news__promo-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

.page-news__promo-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-news__promo-footer-text a {
  color: #26A9E0;
  text-decoration: underline;
}

/* Sports News Section */
.page-news__sports-news {
  padding: 80px 0;
}

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

.page-news__sport-card {
  display: flex;
  flex-direction: column;
}

.page-news__sport-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.page-news__sport-content {
  padding: 20px;
  flex-grow: 1;
}

.page-news__sport-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

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

.page-news__sport-excerpt {
  font-size: 1em;
  color: #555555;
  margin-bottom: 15px;
}

.page-news__cta-sports {
  text-align: center;
  margin-top: 40px;
}

/* Casino Highlights Section */
.page-news__casino-highlights {
  padding: 80px 0;
}

.page-news__casino-highlights .page-news__section-title,
.page-news__casino-highlights .page-news__section-intro {
  color: #ffffff;
}

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

.page-news__casino-card {
  text-align: center;
}

.page-news__casino-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  margin-bottom: 20px;
}

.page-news__casino-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-news__casino-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
  margin-bottom: 20px;
}

/* Responsible Gambling Section */
.page-news__responsible-gambling {
  padding: 80px 0;
}

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

.page-news__info-card {
  text-align: center;
  padding: 25px;
}

.page-news__info-title {
  font-size: 1.3em;
  margin-bottom: 15px;
}

.page-news__info-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

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

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

.page-news__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #ffffff;
  background-color: #26A9E0; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

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

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

.page-news__faq-item.active .page-news__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

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

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

.page-news__faq-answer p {
  margin: 0;
  color: #333333;
}

/* Call to Action Section */
.page-news__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-news__cta-content {
  background: #f8f8f8;
  padding: 50px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page-news__cta-section .page-news__section-title {
  color: #26A9E0;
}

.page-news__cta-section .page-news__section-intro {
  color: #555555;
}

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

/* Media Queries */

/* Tablet and Mobile */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }

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

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

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

  .page-news__article-grid,
  .page-news__promo-grid,
  .page-news__sport-articles,
  .page-news__casino-grid,
  .page-news__info-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile Specific */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    min-height: 400px;
    padding: 60px 0 !important; /* Adjust padding for mobile hero */
  }

  .page-news__hero-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
  }

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

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

  /* 产品展示图区域 (gameshow) */
  .page-news__casino-grid {
    grid-template-columns: 1fr !important; /* Ensure single column on mobile */
    overflow-x: hidden !important;
  }

  .page-news__casino-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .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,
  .page-news__article-card,
  .page-news__promo-card,
  .page-news__sport-card,
  .page-news__casino-card,
  .page-news__info-card,
  .page-news__faq-item {
    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;
    flex-direction: column !important; /* Stack buttons vertically */
  }

  /* 其他内容模块 */
  .page-news__section-title {
    font-size: 1.8em !important;
  }

  .page-news__section-intro {
    font-size: 0.95em !important;
  }

  .page-news__article-title,
  .page-news__promo-title,
  .page-news__sport-title,
  .page-news__casino-title,
  .page-news__info-title {
    font-size: 1.2em !important;
  }

  .page-news__faq-question {
    font-size: 1em !important;
    padding: 15px !important;
  }

  .page-news__faq-answer {
    padding: 15px !important;
  }
}