/* style/resources-online-gambling-trends.css */
.page-resources-online-gambling-trends {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

/* Color Contrast Enforcement */
.page-resources-online-gambling-trends__dark-bg {
  background-color: #0a0a0a; /* Ensure consistency with body background */
  color: #ffffff;
}

.page-resources-online-gambling-trends__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

.page-resources-online-gambling-trends__dark-text {
  color: #333333; /* For elements on light backgrounds */
}

.page-resources-online-gambling-trends__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
  overflow: hidden; /* Prevent image overflow */
}

.page-resources-online-gambling-trends__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-resources-online-gambling-trends__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

.page-resources-online-gambling-trends__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-resources-online-gambling-trends__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-online-gambling-trends__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources-online-gambling-trends__btn-primary,
.page-resources-online-gambling-trends__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default transparent border */
  box-sizing: border-box; /* Ensure padding and border are included in width */
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-online-gambling-trends__btn-primary {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
  border-color: #017439;
  margin-right: 15px;
}

.page-resources-online-gambling-trends__btn-primary:hover {
  background-color: #005f2e;
  border-color: #005f2e;
}

.page-resources-online-gambling-trends__btn-secondary {
  background-color: #ffffff;
  color: #017439; /* Primary brand color for text */
  border-color: #017439;
}

.page-resources-online-gambling-trends__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
  border-color: #005f2e;
}

/* Specific buttons for login/register */
.page-resources-online-gambling-trends__btn-register,
.page-resources-online-gambling-trends__btn-login {
  background-color: #C30808; /* Custom red for register/login */
  color: #FFFF00; /* Custom yellow for register/login font */
  border-color: #C30808;
}

.page-resources-online-gambling-trends__btn-register:hover,
.page-resources-online-gambling-trends__btn-login:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-resources-online-gambling-trends__section {
  padding: 60px 20px;
  box-sizing: border-box;
}

.page-resources-online-gambling-trends__content-area {
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources-online-gambling-trends__section-title {
  font-size: 2.5em;
  color: inherit; /* Inherit from section for contrast */
  text-align: center;
  margin-bottom: 40px;
}

.page-resources-online-gambling-trends__sub-title {
  font-size: 1.8em;
  color: inherit; /* Inherit from section for contrast */
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-online-gambling-trends__text-block p {
  margin-bottom: 1em;
  font-size: 1.1em;
  color: inherit; /* Inherit from section for contrast */
}

.page-resources-online-gambling-trends__image-text-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.page-resources-online-gambling-trends__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-resources-online-gambling-trends__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  /* filter: none; -- Ensure no filter is used to change color */
}

.page-resources-online-gambling-trends__text-block {
  flex: 2;
}

.page-resources-online-gambling-trends__image-wrapper--right {
  order: 2; /* For sections where image is on the right */
}

.page-resources-online-gambling-trends__image-wrapper--left {
  order: 1; /* For sections where image is on the left */
}

.page-resources-online-gambling-trends__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* FAQ Section */
.page-resources-online-gambling-trends__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-online-gambling-trends__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly lighter background for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff; /* Text color for dark background */
}

.page-resources-online-gambling-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand color for question background */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-touch-callout: none; /* iOS Safari */
  -webkit-user-select: none;   /* Safari */
  -khtml-user-select: none;    /* Konqueror HTML */
  -moz-user-select: none;      /* Old versions of Firefox */
  -ms-user-select: none;       /* Internet Explorer/Edge */
  user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

.page-resources-online-gambling-trends__faq-question:hover {
  background-color: #005f2e;
}

.page-resources-online-gambling-trends__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-online-gambling-trends__faq-item[open] .page-resources-online-gambling-trends__faq-toggle {
  transform: rotate(45deg); /* Rotate plus to form a cross */
}

.page-resources-online-gambling-trends__faq-answer {
  padding: 0 20px 20px;
  font-size: 1.05em;
  color: #f0f0f0; /* Slightly off-white for body text on dark background */
}

.page-resources-online-gambling-trends__faq-item details > summary {
  list-style: none; /* Hide default triangle */
}
.page-resources-online-gambling-trends__faq-item details > summary::-webkit-details-marker {
  display: none; /* Hide default triangle for Webkit */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-online-gambling-trends__hero-title {
    font-size: 3em;
  }
  .page-resources-online-gambling-trends__section-title {
    font-size: 2em;
  }
  .page-resources-online-gambling-trends__image-text-grid {
    flex-direction: column;
  }
  .page-resources-online-gambling-trends__image-wrapper--right {
    order: unset; /* Reset order for mobile */
  }
  .page-resources-online-gambling-trends__image-wrapper--left {
    order: unset; /* Reset order for mobile */
  }
}

@media (max-width: 768px) {
  .page-resources-online-gambling-trends {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-resources-online-gambling-trends__hero-title {
    font-size: 2.2em;
  }

  .page-resources-online-gambling-trends__hero-description {
    font-size: 1em;
  }

  .page-resources-online-gambling-trends__section {
    padding: 40px 15px; /* Adjust padding for mobile */
  }

  .page-resources-online-gambling-trends__section-title {
    font-size: 1.8em;
  }

  .page-resources-online-gambling-trends__sub-title {
    font-size: 1.5em;
  }

  /* Mobile image responsiveness */
  .page-resources-online-gambling-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Image containers responsiveness */
  .page-resources-online-gambling-trends__image-wrapper,
  .page-resources-online-gambling-trends__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Content containers for mobile */
  .page-resources-online-gambling-trends__section,
  .page-resources-online-gambling-trends__content-area,
  .page-resources-online-gambling-trends__text-block,
  .page-resources-online-gambling-trends__image-text-grid,
  .page-resources-online-gambling-trends__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Mobile button responsiveness */
  .page-resources-online-gambling-trends__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-resources-online-gambling-trends__btn-primary,
  .page-resources-online-gambling-trends__btn-secondary,
  .page-resources-online-gambling-trends a[class*="button"],
  .page-resources-online-gambling-trends 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;
  }
}

@media (max-width: 480px) {
  .page-resources-online-gambling-trends__hero-title {
    font-size: 1.8em;
  }
  .page-resources-online-gambling-trends__section-title {
    font-size: 1.5em;
  }
  .page-resources-online-gambling-trends__sub-title {
    font-size: 1.3em;
  }
  .page-resources-online-gambling-trends__faq-question {
    font-size: 1em;
  }
}