.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #0a0a0a; /* Body background color from shared.css */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 600px;
  padding: 120px 0 60px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  background: linear-gradient(135deg, #0A2342 0%, #051221 100%);
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.3;
}

.page-resources__hero-section .page-resources__container {
  position: relative;
  z-index: 1;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
}

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

.page-resources__content-section {
  padding: 80px 0;
  background-color: #f8f9fa; /* Light background for content */
  color: #333333; /* Dark text for light background */
}

.page-resources__content-section .page-resources__section-title,
.page-resources__content-section .page-resources__paragraph {
  color: #333333;
}

.page-resources__video-section {
  padding: 80px 0;
  background-color: #0A2342;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__video-section .page-resources__section-title,
.page-resources__video-section .page-resources__paragraph {
  color: #ffffff;
}

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

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  cursor: pointer;
}

.page-resources__guide-section {
  padding: 80px 0;
}

.page-resources__guide-section.page-resources__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-resources__guide-section.page-resources__dark-bg {
  background-color: #0A2342;
  color: #ffffff;
}

.page-resources__guide-section.page-resources__light-bg .page-resources__section-title,
.page-resources__guide-section.page-resources__light-bg .page-resources__card-title a,
.page-resources__guide-section.page-resources__light-bg .page-resources__card-text,
.page-resources__guide-section.page-resources__light-bg .page-resources__btn-link {
  color: #333333;
}

.page-resources__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  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;
  color: #333333;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-resources__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 20px 20px 10px;
}

.page-resources__card-title a {
  color: #0A2342; /* Ensure contrast */
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__btn-link {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 10px 15px;
  background-color: transparent;
  color: #0A2342; /* Ensure contrast */
  border: 2px solid #0A2342;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-resources__btn-link:hover {
  background-color: #0A2342;
  color: #ffffff;
}

.page-resources__card--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__card--dark .page-resources__card-title a {
  color: #E5A000;
}

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

.page-resources__card--dark .page-resources__card-text {
  color: #f0f0f0;
}

.page-resources__card--dark .page-resources__btn-link {
  color: #E5A000;
  border-color: #E5A000;
}

.page-resources__card--dark .page-resources__btn-link:hover {
  background-color: #E5A000;
  color: #0A2342;
}

.page-resources__responsible-gambling-section {
  padding: 80px 0;
  background-color: #0A2342;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-resources__responsible-gambling-section .page-resources__section-title,
.page-resources__responsible-gambling-section .page-resources__paragraph,
.page-resources__responsible-gambling-section .page-resources__info-title a,
.page-resources__responsible-gambling-section .page-resources__info-text {
  color: #ffffff;
}

.page-resources__bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.2;
}

.page-resources__responsible-gambling-section .page-resources__container {
  position: relative;
  z-index: 1;
}

.page-resources__info-blocks {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__info-block {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  max-width: 45%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__info-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-resources__info-title a {
  color: #E5A000; /* Ensure contrast */
  text-decoration: none;
}

.page-resources__info-title a:hover {
  color: #ffffff;
}

.page-resources__info-text {
  font-size: 1em;
  margin-bottom: 20px;
}

.page-resources__faq-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-resources__faq-section .page-resources__section-title {
  color: #333333;
}

.page-resources__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

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

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  width: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* '+' to '-' */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  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 20px;
}

.page-resources__faq-answer p {
  margin-bottom: 10px;
}

.page-resources__cta-bottom-section {
  padding: 80px 0;
  background-color: #0A2342;
  text-align: center;
}

.page-resources__cta-bottom-section .page-resources__section-title,
.page-resources__cta-bottom-section .page-resources__paragraph {
  color: #ffffff;
}

/* Common Button Styles */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

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

.page-resources__btn-primary {
  background-color: #E5A000;
  color: #0A2342;
  border: 2px solid #E5A000;
}

.page-resources__btn-primary:hover {
  background-color: #ffb833;
  border-color: #ffb833;
  color: #0A2342;
}

.page-resources__btn-secondary {
  background-color: transparent;
  color: #E5A000;
  border: 2px solid #E5A000;
}

.page-resources__btn-secondary:hover {
  background-color: #E5A000;
  color: #0A2342;
}

.page-resources__video-cta .page-resources__btn-primary {
  background-color: #E5A000;
  color: #0A2342;
  border: 2px solid #E5A000;
}

.page-resources__video-cta .page-resources__btn-primary:hover {
  background-color: #ffb833;
  border-color: #ffb833;
  color: #0A2342;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__info-blocks {
    flex-direction: column;
    align-items: center;
  }
  .page-resources__info-block {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    min-height: 450px;
    padding: 100px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }
  .page-resources__hero-title {
    font-size: 2em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__card-grid {
    grid-template-columns: 1fr;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__info-block {
    max-width: 100%;
    padding: 20px;
  }
  .page-resources__info-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px 15px;
  }

  /* Mobile image and video responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Ensure vertical stacking for buttons */
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important; /* Video section must respect header offset in mobile */
  }
}