/* style/resource-latest-igaming-trends.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-resource-latest-igaming-trends {
  color: #ffffff; /* Light text for dark background */
  background-color: transparent; /* Let shared.css handle body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Hero Section */
.page-resource-latest-igaming-trends__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh; /* Ensure hero section is tall enough */
  padding: 80px 20px 40px; /* Default padding for desktop */
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  overflow: hidden;
}

.page-resource-latest-igaming-trends__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: rgba(0, 0, 0, 0.6); /* Overlay for readability */
}

.page-resource-latest-igaming-trends__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-resource-latest-igaming-trends__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.page-resource-latest-igaming-trends__hero-title {
  font-size: 3.5em;
  color: #ffffff;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-resource-latest-igaming-trends__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
  margin-bottom: 30px;
}

/* General Section Styling */
.page-resource-latest-igaming-trends__section {
  padding: 60px 20px;
}

.page-resource-latest-igaming-trends__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resource-latest-igaming-trends__dark-section {
  background-color: #1a1a1a; /* A dark shade for contrast against light sections */
  color: #ffffff;
}

.page-resource-latest-igaming-trends__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-resource-latest-igaming-trends__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  text-align: center;
  color: inherit; /* Inherit color from parent section */
}

.page-resource-latest-igaming-trends__sub-title {
  font-size: 1.8em;
  margin-top: 30px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resource-latest-igaming-trends__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  color: inherit;
}

/* Links within content */
.page-resource-latest-igaming-trends__paragraph a {
  color: #26A9E0; /* Brand color for links */
  text-decoration: underline;
}

.page-resource-latest-igaming-trends__paragraph a:hover {
  color: #1e87c0; /* Slightly darker on hover */
}

/* Grid Layout for Content Blocks */
.page-resource-latest-igaming-trends__grid-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}

.page-resource-latest-igaming-trends__grid-layout--reverse {
  flex-direction: row-reverse;
}

.page-resource-latest-igaming-trends__content-block {
  flex: 1;
  min-width: 300px;
}

.page-resource-latest-igaming-trends__image-block {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resource-latest-igaming-trends__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* CTA Buttons */
.page-resource-latest-igaming-trends__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 40px;
}

.page-resource-latest-igaming-trends__btn-primary,
.page-resource-latest-igaming-trends__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resource-latest-igaming-trends__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-resource-latest-igaming-trends__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

.page-resource-latest-igaming-trends__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resource-latest-igaming-trends__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
}

/* Conclusion Section specific styling */
.page-resource-latest-igaming-trends__conclusion {
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resource-latest-igaming-trends__hero-title {
    font-size: 3em;
  }
  .page-resource-latest-igaming-trends__section-title {
    font-size: 2em;
  }
  .page-resource-latest-igaming-trends__sub-title {
    font-size: 1.5em;
  }
  .page-resource-latest-igaming-trends__grid-layout {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  .page-resource-latest-igaming-trends {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Fixed header offset for mobile, applies to hero/first section */
  .page-resource-latest-igaming-trends__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 60vh;
  }

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

  .page-resource-latest-igaming-trends__hero-description {
    font-size: 1.1em;
  }

  .page-resource-latest-igaming-trends__section {
    padding: 40px 0; /* Adjust padding for mobile, container will add horizontal padding */
  }

  .page-resource-latest-igaming-trends__container {
    padding: 0 15px !important; /* Ensure horizontal padding for content */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-resource-latest-igaming-trends__sub-title {
    font-size: 1.3em;
  }

  .page-resource-latest-igaming-trends__grid-layout {
    flex-direction: column;
    gap: 30px;
    margin-bottom: 40px;
  }

  .page-resource-latest-igaming-trends__grid-layout--reverse {
    flex-direction: column; /* Stacks vertically on mobile regardless of reverse class */
  }

  /* Image responsiveness for content area */
  .page-resource-latest-igaming-trends img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }
  
  /* Buttons responsiveness */
  .page-resource-latest-igaming-trends__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0 15px; /* Add horizontal padding to button group */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-resource-latest-igaming-trends__btn-primary,
  .page-resource-latest-igaming-trends__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; /* Add padding to button itself for text */
    padding-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-resource-latest-igaming-trends__hero-title {
    font-size: 1.8em;
  }
  .page-resource-latest-igaming-trends__hero-description {
    font-size: 1em;
  }
  .page-resource-latest-igaming-trends__section-title {
    font-size: 1.5em;
  }
  .page-resource-latest-igaming-trends__sub-title {
    font-size: 1.2em;
  }
}