/* style/resources-igaming-trends.css */

:root {
  --page-primary-color: #017439;
  --page-secondary-color: #FFFFFF;
  --page-text-dark: #333333;
  --page-text-light: #ffffff;
  --page-background-dark: #121212;
  --page-background-light: #f5f5f5;
  --page-register-btn-bg: #C30808;
  --page-login-btn-bg: #C30808;
  --page-btn-text-color: #FFFF00;
}

.page-resources-igaming-trends {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--page-text-light); /* Default text color for dark body background */
  background-color: var(--page-background-dark); /* Inherited from shared.css body */
}

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

.page-resources-igaming-trends__hero-section {
  position: relative;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(0, 0, 0, 0.7)), url('[GALLERY:hero_bg:1920x1080:igaming,trends,abstract,technology,99ok_vip_hero]') no-repeat center center/cover;
  color: var(--page-text-light);
  text-align: center;
  padding: 100px 20px;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

.page-resources-igaming-trends__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-text-light);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-igaming-trends__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-igaming-trends__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-igaming-trends__cta-buttons--center {
  margin-top: 40px;
}

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

.page-resources-igaming-trends__btn-primary {
  background-color: var(--page-register-btn-bg); /* Use custom color for register/login */
  color: var(--page-btn-text-color);
  border: 2px solid var(--page-register-btn-bg);
}

.page-resources-igaming-trends__btn-primary:hover {
  background-color: darken(var(--page-register-btn-bg), 10%);
  border-color: darken(var(--page-register-btn-bg), 10%);
}

.page-resources-igaming-trends__btn-secondary {
  background-color: transparent;
  color: var(--page-primary-color);
  border: 2px solid var(--page-primary-color);
}

.page-resources-igaming-trends__btn-secondary:hover {
  background-color: var(--page-primary-color);
  color: var(--page-secondary-color);
}

.page-resources-igaming-trends__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: var(--page-primary-color);
  font-weight: bold;
}

.page-resources-igaming-trends__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--page-primary-color);
  font-weight: bold;
}

.page-resources-igaming-trends__video-section {
  background-color: var(--page-background-dark);
  padding: 60px 0;
  color: var(--page-text-light);
  text-align: center;
}

.page-resources-igaming-trends__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin: 0 auto 30px auto;
  border-radius: 10px;
}

.page-resources-igaming-trends__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  display: block;
  cursor: pointer;
}

.page-resources-igaming-trends__video-description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto;
}

.page-resources-igaming-trends__content-area {
  background-color: var(--page-background-light); /* White background for main content */
  color: var(--page-text-dark); /* Dark text on light background */
  padding: 80px 0;
}

.page-resources-igaming-trends__content-area p {
  margin-bottom: 15px;
}

.page-resources-igaming-trends__image-text-block {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
}

.page-resources-igaming-trends__image-text-block--reverse {
  flex-direction: row-reverse;
}

.page-resources-igaming-trends__content-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
}

.page-resources-igaming-trends__image-text-block p {
  flex: 1;
  max-width: 50%;
}

.page-resources-igaming-trends__faq-section {
  background-color: var(--page-background-dark);
  color: var(--page-text-light);
  padding: 80px 0;
}

.page-resources-igaming-trends__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-resources-igaming-trends__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 15px;
}

.page-resources-igaming-trends__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.page-resources-igaming-trends__faq-question:hover {
  color: var(--page-primary-color);
}

.page-resources-igaming-trends__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources-igaming-trends__faq-item.active .page-resources-igaming-trends__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-igaming-trends__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-resources-igaming-trends__faq-item.active .page-resources-igaming-trends__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-igaming-trends__hero-title {
    font-size: 2.8em;
  }

  .page-resources-igaming-trends__section-title {
    font-size: 2em;
  }

  .page-resources-igaming-trends__subsection-title {
    font-size: 1.5em;
  }
}

@media (max-width: 768px) {
  .page-resources-igaming-trends__hero-section {
    padding: 80px 20px;
  }

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

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

  .page-resources-igaming-trends__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-igaming-trends__btn-primary,
  .page-resources-igaming-trends__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
  }

  .page-resources-igaming-trends__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-igaming-trends__subsection-title {
    font-size: 1.3em;
    margin-top: 30px;
  }

  .page-resources-igaming-trends__image-text-block,
  .page-resources-igaming-trends__image-text-block--reverse {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources-igaming-trends__content-image,
  .page-resources-igaming-trends__image-text-block p {
    max-width: 100%;
    width: 100%;
  }

  /* Image responsiveness for all images */
  .page-resources-igaming-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness for all videos */
  .page-resources-igaming-trends video,
  .page-resources-igaming-trends__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure video wrapper and containers are responsive */
  .page-resources-igaming-trends__video-wrapper,
  .page-resources-igaming-trends__video-section .page-resources-igaming-trends__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Ensure all containers containing images, videos, buttons are responsive */
  .page-resources-igaming-trends__section,
  .page-resources-igaming-trends__card,
  .page-resources-igaming-trends__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Specific padding for video section on mobile */
  .page-resources-igaming-trends__video-section {
    padding-top: var(--header-offset, 120px) !important; 
  }

  .page-resources-igaming-trends__content-area,
  .page-resources-igaming-trends__faq-section {
    padding: 40px 0;
  }

  .page-resources-igaming-trends__faq-question {
    font-size: 1.1em;
  }
}

@media (max-width: 480px) {
  .page-resources-igaming-trends__hero-title {
    font-size: 1.8em;
  }

  .page-resources-igaming-trends__hero-description {
    font-size: 0.95em;
  }

  .page-resources-igaming-trends__section-title {
    font-size: 1.5em;
  }

  .page-resources-igaming-trends__subsection-title {
    font-size: 1.2em;
  }
}