/* style/news.css */

/* General styles for .page-news */
.page-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #F5F7FA; /* General background for the main content area */
}

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

.page-news__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #E53935;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-news__section-description {
  font-size: 1.1em;
  color: #333333;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-news__cta-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

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

.page-news__cta-button--secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

/* Hero Section */
.page-news__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 40px;
  background-color: #F5F7FA;
  position: relative;
  overflow: hidden;
}

.page-news__hero-image-wrapper {
  width: 100%;
  max-height: 600px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

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

.page-news__hero-content {
  max-width: 900px;
  padding: 0 20px;
  z-index: 1;
}

.page-news__hero-title {
  font-size: 3.2em;
  font-weight: 800;
  color: #E53935;
  margin-bottom: 15px;
  line-height: 1.1;
}

.page-news__hero-description {
  font-size: 1.3em;
  color: #333333;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Latest News Section */
.page-news__latest-news-section {
  padding: 60px 0;
  background-color: #ffffff;
}

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

.page-news__news-card {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  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 6px 20px rgba(0, 0, 0, 0.1);
}

.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: #777777;
  margin-bottom: 10px;
}

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

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

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

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

.page-news__read-more-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: #E53935;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: 600;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-news__read-more-button:hover {
  background-color: #FF5A4F;
}

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

/* Promotions Section */
.page-news__promotions-section {
  padding: 60px 0;
  background-color: #E53935; /* Dark background */
  color: #ffffff;
}

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

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

.page-news__promotion-card {
  background-color: #ffffff; /* Light background for card */
  color: #333333;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

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

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

.page-news__promotion-card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
  color: #E53935;
}

.page-news__promotion-card-summary {
  font-size: 1em;
  color: #555555;
  margin-bottom: 25px;
  flex-grow: 1;
}

.page-news__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

/* Industry Insights Section */
.page-news__insights-section {
  padding: 60px 0;
  background-color: #F5F7FA;
}

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

.page-news__insight-item {
  background-color: #ffffff;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

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

.page-news__insight-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 15px;
  line-height: 1.3;
}

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

.page-news__insight-title a:hover {
  color: #E53935;
}

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

/* Responsible Gaming Section */
.page-news__responsible-gaming-section {
  padding: 60px 0;
  background-color: #ffffff;
  text-align: center;
}

.page-news__responsible-gaming-image {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto 30px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff;
  color: #E53935;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #E53935;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

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

.page-news__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-news__cta-section .page-news__section-title,
.page-news__cta-section .page-news__section-description {
  color: #ffffff;
}

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

/* Ensure all images are responsive by default */
.page-news img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Media Queries for Responsiveness */

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

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

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

  .page-news__news-grid,
  .page-news__promotions-grid,
  .page-news__insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .page-news__news-card-image,
  .page-news__promotion-card-image,
  .page-news__insight-image {
    height: 200px;
  }

  .page-news__news-card-title,
  .page-news__promotion-card-title,
  .page-news__insight-title {
    font-size: 1.3em;
  }

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

/* Mobile styles (max-width: 768px) */
@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-news__hero-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
    padding-bottom: 30px;
  }

  .page-news__hero-title {
    font-size: clamp(2em, 8vw, 2.5em); /* Using clamp for responsive font size */
    margin-bottom: 10px;
  }

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

  .page-news__hero-image-wrapper {
    margin-bottom: 15px;
  }

  /* 其他内容模块 */
  .page-news__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    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;
  }

  .page-news__news-card-image,
  .page-news__promotion-card-image,
  .page-news__insight-image {
    height: 180px;
  }

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

  .page-news__news-card,
  .page-news__promotion-card,
  .page-news__insight-item {
    width: 100%;
  }

  /* 按钮与按钮容器 */
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-news__read-more-button {
    align-self: stretch;
  }

  .page-news__responsible-gaming-image {
    margin-bottom: 20px;
  }

  .page-news__latest-news-section,
  .page-news__promotions-section,
  .page-news__insights-section,
  .page-news__responsible-gaming-section,
  .page-news__cta-section {
    padding: 40px 0;
  }
}