/* style/resources.css */
.page-resources {
  color: #ffffff; /* Default text color for dark body background */
  background-color: #000; /* Ensure consistency with body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background-color: #0A2463;
  overflow: hidden;
}

.page-resources__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-resources__hero-video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  filter: brightness(0.4); /* Darken video for text readability */
}

.page-resources__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  color: #ffffff;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

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

.page-resources__btn-primary:hover {
  background-color: #ffc107;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #E3B505;
  color: #0A2463;
  transform: translateY(-2px);
}

.page-resources__btn-tertiary {
  background-color: #0A2463;
  color: #E3B505;
  border: 1px solid #E3B505;
  padding: 8px 15px;
  font-size: 0.9em;
}

.page-resources__btn-tertiary:hover {
  background-color: #E3B505;
  color: #0A2463;
}

.page-resources__btn--center {
  display: block;
  margin: 30px auto 0 auto;
  text-align: center;
  max-width: 250px;
}

.page-resources__section {
  padding: 60px 20px;
  text-align: center;
}

.page-resources__intro-section {
  background-color: #000;
  color: #ffffff;
}

.page-resources__guides-section {
  background-color: #0A2463;
  color: #ffffff;
}

.page-resources__strategy-section {
  background-color: #000;
  color: #ffffff;
}

.page-resources__news-section {
  background-color: #0A2463;
  color: #ffffff;
}

.page-resources__responsible-gaming-section {
  background-color: #000;
  color: #ffffff;
}

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #E3B505;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: left;
}

.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__grid--2-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.page-resources__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #E3B505;
}

.page-resources__card-title a {
  color: #E3B505;
  text-decoration: none;
}

.page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__card-text {
  font-size: 1em;
  color: #e0e0e0;
  text-align: left;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__content-block {
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__content-block-title {
  font-size: 1.8em;
  color: #E3B505;
  margin-bottom: 20px;
}

.page-resources__card--news {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__faq-section {
  background-color: #000;
  color: #ffffff;
}

.page-resources__faq-list {
  margin-top: 40px;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
}

.page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.page-resources__faq-title {
  font-size: 1.2em;
  color: #E3B505;
  margin: 0;
}

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

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

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

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

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

.page-resources__image-full-width {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 30px auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

.page-resources__cta-banner {
  padding: 80px 20px;
  background-color: #E3B505; /* Auxiliary color for CTA */
  color: #0A2463;
  text-align: center;
}

.page-resources__cta-container {
  max-width: 900px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #0A2463;
}

.page-resources__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #333333;
}

.page-resources__cta-banner .page-resources__btn-primary {
  background-color: #0A2463;
  color: #E3B505;
  border-color: #0A2463;
}

.page-resources__cta-banner .page-resources__btn-primary:hover {
  background-color: #1a3a82;
  color: #E3B505;
}

.page-resources__cta-banner .page-resources__btn-secondary {
  color: #0A2463;
  border-color: #0A2463;
}

.page-resources__cta-banner .page-resources__btn-secondary:hover {
  background-color: #0A2463;
  color: #E3B505;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__cta-title {
    font-size: 2.4em;
  }
}

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

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-tertiary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 15px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section {
    padding: 40px 15px;
  }

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

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

  .page-resources__grid {
    grid-template-columns: 1fr;
  }

  .page-resources__card {
    padding: 20px;
  }

  .page-resources__card-image,
  .page-resources__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-resources__content-block {
    padding: 20px;
  }

  .page-resources__content-block-title {
    font-size: 1.5em;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-title {
    font-size: 1.1em;
  }

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px;
    padding-top: 0;
  }

  .page-resources__cta-banner {
    padding: 60px 15px;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }

  .page-resources__cta-description {
    font-size: 1em;
  }

  /* Ensure all containers with images/buttons/videos are responsive */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__content-block,
  .page-resources__hero-video-wrapper,
  .page-resources__cta-container,
  .page-resources__faq-list,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  .page-resources__hero-video {
    width: 100% !important;
    height: auto !important;
    min-width: unset !important;
    min-height: unset !important;
    position: relative !important; /* Allow it to scale naturally */
    transform: none !important;
  }

  /* Special handling for CTA buttons to ensure wrap */
  .page-resources__cta-buttons {
    flex-wrap: wrap !important;
    flex-direction: column !important;
    gap: 15px !important;
  }
}