/* style/gambling-industry-news.css */

/* Base styles for the page content */
.page-gambling-industry-news {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #ffffff; /* Explicitly set for clarity, though body is already white */
  padding-bottom: 60px; /* Add some padding at the bottom */
}

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

/* Section titles */
.page-gambling-industry-news__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand primary color for titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

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

/* Buttons */
.page-gambling-industry-news__btn-primary,
.page-gambling-industry-news__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  text-align: center;
}

.page-gambling-industry-news__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
  margin-right: 15px;
}

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

.page-gambling-industry-news__btn-secondary {
  background-color: #017439; /* Brand primary color */
  color: #FFFFFF; /* White text */
  border: 2px solid #017439;
}

.page-gambling-industry-news__btn-secondary:hover {
  background-color: #005a2e;
  border-color: #005a2e;
}

/* Hero Section */
.page-gambling-industry-news__hero-section {
  position: relative;
  width: 100%;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: #017439; /* Dark brand color for hero background */
  color: #FFFFFF; /* White text for dark background */
  min-height: 500px;
}

.page-gambling-industry-news__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); /* Overlay for readability */
  z-index: 1;
}

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

.page-gambling-industry-news__hero-section .page-gambling-industry-news__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

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

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

.page-gambling-industry-news__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap; /* Allow wrapping for mobile */
}

/* Latest News Section */
.page-gambling-industry-news__latest-news {
  padding: 60px 0;
  background-color: #ffffff; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-gambling-industry-news__news-card {
  background-color: #ffffff;
  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-gambling-industry-news__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-gambling-industry-news__news-image {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

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

.page-gambling-industry-news__news-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #017439; /* Brand primary color */
}

.page-gambling-industry-news__news-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

.page-gambling-industry-news__news-title a:hover {
  color: #005a2e;
}

.page-gambling-industry-news__news-excerpt {
  font-size: 0.95em;
  color: #666666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-gambling-industry-news__read-more {
  display: inline-block;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-gambling-industry-news__read-more:hover {
  color: #005a2e;
  text-decoration: underline;
}

/* Video Section */
.page-gambling-industry-news__video-section {
  padding: 80px 0;
  background-color: #017439; /* Dark brand color for background */
  color: #FFFFFF; /* White text for dark background */
  text-align: center;
}

.page-gambling-industry-news__video-section .page-gambling-industry-news__section-title,
.page-gambling-industry-news__video-section .page-gambling-industry-news__section-description {
  color: #FFFFFF;
}

.page-gambling-industry-news__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto 0 auto;
  background-color: #000; /* Black background for video area */
  border-radius: 8px;
}

.page-gambling-industry-news__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Ensure video fits within wrapper */
  cursor: pointer; /* Indicate clickable */
}

/* Industry Trends Section */
.page-gambling-industry-news__industry-trends {
  padding: 60px 0;
  background-color: #f8f8f8; /* Light gray background */
  color: #333333; /* Dark text */
}

.page-gambling-industry-news__trend-item {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-gambling-industry-news__trend-item:last-child {
  margin-bottom: 0;
}

.page-gambling-industry-news__trend-item--reverse {
  flex-direction: row-reverse;
}

.page-gambling-industry-news__trend-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  min-width: 200px; /* Minimum size requirement */
  height: auto;
  display: block;
}

.page-gambling-industry-news__trend-content {
  flex: 1;
  max-width: 50%;
}

.page-gambling-industry-news__trend-title {
  font-size: 2em;
  color: #017439;
  margin-bottom: 15px;
}

.page-gambling-industry-news__trend-text {
  font-size: 1.05em;
  color: #444444;
}

/* Expert Analysis Section */
.page-gambling-industry-news__expert-analysis {
  padding: 80px 0;
  background-color: #017439; /* Dark brand color */
  color: #FFFFFF; /* White text */
  text-align: center;
}

.page-gambling-industry-news__expert-analysis .page-gambling-industry-news__section-title,
.page-gambling-industry-news__expert-analysis .page-gambling-industry-news__section-description {
  color: #FFFFFF;
}

.page-gambling-industry-news__analysis-content {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-gambling-industry-news__analysis-content p {
  margin-bottom: 20px;
}

.page-gambling-industry-news__analysis-content strong {
  color: #FFFF00; /* Highlight important keywords */
}

.page-gambling-industry-news__analysis-image {
  max-width: 800px;
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  margin-top: 40px;
  display: block; /* Ensure it behaves as a block element for margin auto */
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.page-gambling-industry-news__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: #017439;
  cursor: pointer;
  background-color: #eaf7ed;
  transition: background-color 0.3s ease;
}

.page-gambling-industry-news__faq-question:hover {
  background-color: #dcf2e0;
}

.page-gambling-industry-news__faq-question::-webkit-details-marker {
  display: none;
}

.page-gambling-industry-news__faq-item summary {
  list-style: none; /* Hide default marker */
}

.page-gambling-industry-news__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-gambling-industry-news__faq-answer {
  padding: 15px 25px 20px 25px;
  font-size: 1em;
  color: #555555;
  border-top: 1px solid #e0e0e0;
}

.page-gambling-industry-news__faq-answer p {
  margin-bottom: 0;
}

/* CTA Bottom Section */
.page-gambling-industry-news__cta-bottom {
  padding: 60px 0;
  background-color: #017439; /* Dark brand color */
  color: #FFFFFF; /* White text */
  text-align: center;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-gambling-industry-news__hero-title {
    font-size: 3em;
  }
  .page-gambling-industry-news__section-title {
    font-size: 2em;
  }
  .page-gambling-industry-news__trend-item {
    flex-direction: column;
    text-align: center;
  }
  .page-gambling-industry-news__trend-item--reverse {
    flex-direction: column; /* Consistent for mobile */
  }
  .page-gambling-industry-news__trend-image,
  .page-gambling-industry-news__trend-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-gambling-industry-news {
    font-size: 16px;
    line-height: 1.6;
  }

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

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

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

  .page-gambling-industry-news__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-gambling-industry-news__btn-primary,
  .page-gambling-industry-news__btn-secondary {
    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;
    margin-right: 0;
  }

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

  .page-gambling-industry-news__news-grid {
    grid-template-columns: 1fr;
  }

  /* Images responsive for mobile */
  .page-gambling-industry-news img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gambling-industry-news__section,
  .page-gambling-industry-news__card,
  .page-gambling-industry-news__container,
  .page-gambling-industry-news__news-card,
  .page-gambling-industry-news__trend-item,
  .page-gambling-industry-news__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Videos responsive for mobile */
  .page-gambling-industry-news video,
  .page-gambling-industry-news__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-gambling-industry-news__video-section,
  .page-gambling-industry-news__video-container,
  .page-gambling-industry-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-gambling-industry-news__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-gambling-industry-news__trend-title {
    font-size: 1.5em;
  }

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

  .page-gambling-industry-news__cta-bottom .page-gambling-industry-news__cta-title {
    font-size: 2em;
  }
  .page-gambling-industry-news__cta-bottom .page-gambling-industry-news__cta-description {
    font-size: 1em;
  }
}