/* style/resources.css */

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-resources__text-content {
  flex: 1;
  min-width: 300px;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Color Schemes */
.page-resources__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__paragraph {
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a1a1a; /* Dark gray for contrast with body background */
  color: #ffffff;
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__paragraph {
  color: #ffffff;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFF00;
}

.page-resources__hero-cta-buttons {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources__mt-large {
  margin-top: 40px;
}

/* Hero Section */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  position: relative;
  overflow: hidden;
  background-color: #017439;
  color: #ffffff;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #f0f0f0;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Slightly transparent to let background color show */
}

/* Guides Section */
.page-resources__guides-section .page-resources__container {
  justify-content: space-between;
}

.page-resources__guides-section .page-resources__text-content {
  flex: 2;
}

.page-resources__guides-section .page-resources__image-wrapper {
  flex: 1;
}

.page-resources__guide-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
}

.page-resources__guide-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-resources__guide-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-resources__guide-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* News Section */
.page-resources__news-section .page-resources__container {
  justify-content: space-between;
}

.page-resources__news-section .page-resources__reverse-layout {
  flex-direction: row-reverse;
}

/* Strategy Section */
.page-resources__strategy-section .page-resources__container {
  justify-content: space-between;
}

.page-resources__strategy-list {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
}

.page-resources__strategy-title {
  font-size: 1.4em;
  margin-bottom: 10px;
}

.page-resources__strategy-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-resources__strategy-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Responsible Gaming Section */
.page-resources__responsible-gaming-section .page-resources__container {
  justify-content: space-between;
}

.page-resources__responsible-gaming-section .page-resources__cta-buttons {
  justify-content: flex-start;
}

.page-resources__responsible-gaming-section .page-resources__cta-buttons .page-resources__btn-secondary {
  border-color: #017439;
  color: #017439;
  background-color: #ffffff;
}

.page-resources__responsible-gaming-section .page-resources__cta-buttons .page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #017439;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__section-title {
  margin-bottom: 50px;
}

.page-resources__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  background-color: #017439; /* Primary brand color for question background */
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #1a1a1a; /* Dark gray for answer background */
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficient height for content */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 0;
  color: #f0f0f0;
}

/* Video Promo Section */
.page-resources__video-promo-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-resources__video-wrapper {
  position: relative;
  max-width: 1280px;
  margin: 40px auto 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.page-resources__promo-video {
  width: 100%;
  height: auto;
  display: block;
}

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.page-resources__video-overlay:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__container {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__container .page-resources__text-content,
  .page-resources__container .page-resources__image-wrapper {
    width: 100%;
    max-width: 600px; /* Limit width for better readability on tablets */
  }
  .page-resources__container .page-resources__image-wrapper {
    order: -1; /* Image above text for default column layout */
  }
  .page-resources__reverse-layout.page-resources__container .page-resources__image-wrapper {
    order: 0; /* Keep image below text for reverse layout on tablets */
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-cta-buttons .page-resources__btn-primary,
  .page-resources__hero-cta-buttons .page-resources__btn-secondary {
    width: 80%;
    margin: 0 auto;
  }
  .page-resources__responsible-gaming-section .page-resources__cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 60vh;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__section {
    padding: 60px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }
  .page-resources__guide-list,
  .page-resources__strategy-list {
    grid-template-columns: 1fr;
  }
  .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: 15px 20px;
  }

  /* Mobile Responsive - Images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__guides-section,
  .page-resources__news-section,
  .page-resources__strategy-section,
  .page-resources__responsible-gaming-section,
  .page-resources__faq-section,
  .page-resources__video-promo-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__video-promo-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure video section respects header offset */
  }

  /* Mobile Responsive - Videos */
  .page-resources video,
  .page-resources__promo-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0; /* Already handled by section padding */
    padding-right: 0; /* Already handled by section padding */
    overflow: hidden !important;
  }

  /* Mobile Responsive - Buttons */
  .page-resources__cta-button,
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .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: 0; /* Already handled by section padding */
    padding-right: 0; /* Already handled by section padding */
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column; /* Stack buttons vertically */
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
}