.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #f8f9fa; /* Light background for the page */
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #0A1931; /* Main brand color */
  color: #ffffff;
  min-height: 500px;
  overflow: hidden;
  gap: 40px;
}

.page-resources__hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 1;
}

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFC947; /* Auxiliary brand color for emphasis */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  opacity: 0.9;
}

.page-resources__hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

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

.page-resources__btn-primary {
  background-color: #FFC947; /* Auxiliary brand color */
  color: #0A1931; /* Main brand color for text */
  border: 2px solid #FFC947;
}

.page-resources__btn-primary:hover {
  background-color: #e0b03e;
  border-color: #e0b03e;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFC947; /* Auxiliary brand color */
  border: 2px solid #FFC947;
}

.page-resources__btn-secondary:hover {
  background-color: #FFC947;
  color: #0A1931;
}

.page-resources__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 0;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* General Section Styling */
.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #0A1931;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFC947;
  border-radius: 2px;
}

.page-resources__section-title--light {
  color: #ffffff;
}

.page-resources__section-title--light::after {
  background-color: #ffffff;
}

.page-resources__paragraph {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
}

.page-resources__paragraph--light {
  color: #f0f0f0;
}

.page-resources__highlight {
  color: #FFC947;
  font-weight: bold;
}

.page-resources__introduction-section,
.page-resources__types-section,
.page-resources__responsible-gaming-section,
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

.page-resources__dark-bg {
  background-color: #0A1931; /* Dark background */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #f8f9fa; /* Light background */
  color: #333333;
}

/* Video Section */
.page-resources__video-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-resources__video-link {
  display: block; /* Make the whole video wrapper clickable */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__video-caption {
  margin-top: 20px;
  font-style: italic;
  color: #f0f0f0;
}

/* Grid for Types of Resources */
.page-resources__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 450px; /* Ensure cards have consistent height */
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

.page-resources__card-title {
  font-size: 1.5em;
  color: #0A1931;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__card-title a {
  color: #0A1931;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #FFC947;
}

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Allows text to take available space */
}

.page-resources__btn-link {
  display: inline-block;
  color: #FFC947;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}

.page-resources__btn-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #FFC947;
  transition: width 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #e0b03e;
}

.page-resources__btn-link:hover::after {
  width: 0;
}

/* Benefits Section */
.page-resources__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.page-resources__benefits-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__benefits-heading {
  font-size: 1.8em;
  color: #FFC947;
  margin-bottom: 15px;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section {
  padding: 80px 0;
}

.page-resources__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__text-content {
  flex: 1;
}

.page-resources__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
}

.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #0A1931;
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: #e6e6e6;
}

.page-resources__faq-heading {
  margin: 0;
  font-size: 1.2em; /* Ensure heading size is consistent */
  color: #0A1931;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFC947;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus sign becomes cross */
  content: '−'; /* Change to minus sign */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

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

.page-resources__faq-answer .page-resources__paragraph {
  margin-bottom: 0; /* Remove bottom margin for paragraphs inside answer */
}

/* Call to Action Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

.page-resources__center-btn {
  margin-top: 30px;
  display: block;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__center-text {
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    flex-direction: column;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }

  .page-resources__hero-content {
    max-width: 100%;
    margin-bottom: 40px;
  }

  .page-resources__hero-image-wrapper {
    justify-content: center;
  }

  .page-resources__hero-title {
    font-size: 2.5em;
  }

  .page-resources__hero-description {
    font-size: 1.1em;
  }

  .page-resources__content-grid {
    flex-direction: column;
  }

  .page-resources__text-content {
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources__hero-cta {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin: 0 auto; /* Center buttons if they are block elements */
  }

  /* Ensure button containers are responsive */
  .page-resources__hero-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__introduction-section,
  .page-resources__types-section,
  .page-resources__responsible-gaming-section,
  .page-resources__faq-section,
  .page-resources__video-section,
  .page-resources__cta-section {
    padding: 60px 0;
  }

  .page-resources__container {
    padding: 0 15px;
  }

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

  /* Mobile video responsiveness */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video container mobile adaptation */
  .page-resources__video-section .page-resources__container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Card layout for mobile */
  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    padding: 20px;
    min-height: auto; /* Allow height to adjust on mobile */
  }

  .page-resources__card-image {
    height: auto; /* Allow height to adjust on mobile */
  }

  .page-resources__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__benefits-heading {
    font-size: 1.5em;
  }

  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }
}

/* Smallest mobile adjustments */
@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
}

/* Ensure content area containers also respect max-width 100% on mobile */
@media (max-width: 768px) {
  .page-resources__introduction-section .page-resources__container,
  .page-resources__types-section .page-resources__container,
  .page-resources__responsible-gaming-section .page-resources__container,
  .page-resources__faq-section .page-resources__container,
  .page-resources__cta-section .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}