/* style/news.css */
.page-news {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might handle body */
}

/* Hero Section */
.page-news__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  background-color: #f8f8f8;
  overflow: hidden; /* For image */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-news__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0.7; /* Slightly transparent to let text stand out */
}

.page-news__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent background for text */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-news__hero-title {
  font-size: 3.2em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

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

.page-news__hero-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-news__hero-button:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

/* General Section Styling */
.page-news__section {
  padding: 60px 0;
  background-color: #FFFFFF;
}

.page-news__section:nth-of-type(even) {
  background-color: #f8f8f8;
}

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

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

.page-news__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background-color: #26A9E0;
  margin: 10px auto 0;
  border-radius: 2px;
}

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

/* Articles Grid */
.page-news__articles-grid,
.page-news__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-news__article-card,
.page-news__promotion-card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-news__article-content,
.page-news__promotion-content {
  padding: 25px;
}

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

.page-news__article-title a,
.page-news__promotion-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-news__article-title a:hover,
.page-news__promotion-title a:hover {
  color: #1a8cc7;
}

.page-news__article-excerpt,
.page-news__promotion-description {
  font-size: 1em;
  color: #555555;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limit to 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-news__read-more-button,
.page-news__promotion-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.95em;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-news__read-more-button:hover,
.page-news__promotion-button:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

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

.page-news__view-all-button {
  display: inline-block;
  background-color: #26A9E0;
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid #26A9E0;
}

.page-news__view-all-button:hover {
  background-color: #1a8cc7;
  border-color: #1a8cc7;
}

/* Video Section */
.page-news__video-section {
  background-color: #f0f7fa; /* Lighter background for video */
  text-align: center;
}

.page-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000000;
  border-radius: 10px;
  margin: 0 auto; /* Center the video wrapper */
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer; /* Indicate clickability for JS redirect */
}

/* Responsible Gambling Section */
.page-news__responsible-gambling {
  text-align: center;
  background-color: #FFFFFF;
}

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

.page-news__responsible-gambling-cta {
  margin-top: 30px;
}

.page-news__responsible-gambling-button {
  display: inline-block;
  background-color: #EA7C07; /* Use "Login" color for emphasis */
  color: #FFFFFF;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  border: 2px solid #EA7C07;
}

.page-news__responsible-gambling-button:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

/* FAQ Section */
.page-news__faq-section {
  background-color: #f0f7fa;
}

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

.page-news__faq-item {
  background-color: #FFFFFF;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  overflow: hidden;
}

.page-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: #26A9E0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

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

.page-news__faq-question h3 {
  margin: 0;
  color: #26A9E0;
}

.page-news__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-news__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

.page-news__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-news__faq-answer a:hover {
  text-decoration: underline;
}

/* CTA Section */
.page-news__cta-section {
  background-color: #26A9E0; /* Brand color as background */
  color: #FFFFFF;
  text-align: center;
  padding: 80px 20px;
}

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

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

.page-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-news__btn-primary,
.page-news__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box; /* Crucial for responsive buttons */
  max-width: 100%; /* Ensure buttons don't exceed container width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-news__hero-title {
    font-size: 2.8em;
  }
  .page-news__section-title {
    font-size: 2em;
  }
  .page-news__cta-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-news__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-news__hero-content {
    padding: 20px;
  }
  .page-news__hero-title {
    font-size: 2.2em;
  }
  .page-news__hero-description {
    font-size: 1em;
  }
  .page-news__hero-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__section {
    padding: 40px 0;
  }
  .page-news__container {
    padding: 0 15px;
  }
  .page-news__section-title {
    font-size: 1.8em;
  }
  .page-news__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-news__articles-grid,
  .page-news__promotions-grid {
    grid-template-columns: 1fr; /* Stack cards vertically */
    gap: 25px;
  }

  .page-news__article-title,
  .page-news__promotion-title {
    font-size: 1.3em;
  }

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

  .page-news__view-all-button {
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-news__video-wrapper {
    padding-bottom: 75%; /* Adjust for taller mobile video aspect ratio */
  }

  .page-news__responsible-gambling-image {
    margin: 30px auto 20px;
  }

  .page-news__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-news__faq-toggle {
    font-size: 1.3em;
  }
  .page-news__faq-answer {
    padding: 0 20px;
  }
  .page-news__faq-item.active .page-news__faq-answer {
    padding: 10px 20px;
  }

  .page-news__cta-section {
    padding: 60px 15px;
  }
  .page-news__cta-title {
    font-size: 1.8em;
  }
  .page-news__cta-description {
    font-size: 1em;
  }
  .page-news__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }
  .page-news__btn-primary,
  .page-news__btn-secondary {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    padding: 15px 10px !important; /* Adjust padding for full width */
  }

  /* Mobile image and video responsive fixes */
  .page-news img {
    max-width: 100% !important;
    height: auto !important;
    display: block !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__video-section,
  .page-news__video-container,
  .page-news__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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 {
    flex-direction: column !important;
  }
}