/* style/resources.css */

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

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

.page-resources__section {
  padding: 60px 0;
}

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

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

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

.page-resources__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__paragraph {
  font-size: 1.1em;
  margin-bottom: 15px;
  line-height: 1.7;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-resources__list-item {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-register,
.page-resources__btn-login,
.page-resources__btn-download {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: center;
  cursor: pointer;
  border: none;
}

.page-resources__btn-primary {
  background-color: #017439;
  color: #ffffff;
}

.page-resources__btn-primary:hover {
  background-color: #005a2e;
}

/* Custom colors for Register/Login buttons */
.page-resources__btn-register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-resources__btn-register:hover {
  background-color: #9c0606;
}

.page-resources__btn-login {
  background-color: #C30808;
  color: #FFFF00;
}

.page-resources__btn-login:hover {
  background-color: #9c0606;
}

.page-resources__btn-download {
  background-color: #017439;
  color: #FFFFFF;
}

.page-resources__btn-download:hover {
  background-color: #005a2e;
}

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  background-color: #0a0a0a; /* Fallback */
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

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

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

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

/* Introduction Section */
.page-resources__introduction-section .page-resources__paragraph,
.page-resources__introduction-section .page-resources__list-item {
  color: #333333;
}

/* Guide Section */
.page-resources__guide-section .page-resources__paragraph,
.page-resources__guide-section .page-resources__list-item {
  color: #ffffff;
}

.page-resources__guide-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
  align-items: center;
}

.page-resources__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.page-resources__content-wrapper--reverse {
  flex-direction: row-reverse;
}

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

.page-resources__image-wrapper {
  flex: 1;
  min-width: 200px; /* Minimum size for images */
}

.page-resources__image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

/* Games Section */
.page-resources__games-section .page-resources__paragraph {
  color: #333333;
}

.page-resources__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__game-card {
  background-color: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

.page-resources__game-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__game-title {
  font-size: 1.4em;
  margin: 20px 15px 10px;
  font-weight: bold;
}

.page-resources__game-title a {
  color: #017439;
  text-decoration: none;
}

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

.page-resources__game-description {
  font-size: 1em;
  color: #555555;
  padding: 0 15px;
}

/* Promotions Section */
.page-resources__promotions-section .page-resources__paragraph {
  color: #ffffff;
}

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

.page-resources__promotion-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  padding-bottom: 20px;
  color: #ffffff;
}

.page-resources__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__promotion-title {
  font-size: 1.5em;
  margin: 20px 15px 10px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__promotion-description {
  font-size: 1em;
  color: #f0f0f0;
  padding: 0 15px 20px;
}

/* Video Section */
.page-resources__video-section .page-resources__paragraph {
  color: #333333;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 30px;
  background-color: #000;
}

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

.page-resources__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  background: transparent;
}

/* FAQ Section */
.page-resources__faq-section .page-resources__paragraph {
  color: #ffffff;
}

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

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #017439; /* Brand color for question */
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  list-style: none; /* For details/summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources__faq-question .page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg); /* Rotate for 'x' or '-' */
}

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-resources__faq-answer a {
  color: #FFFF00;
  text-decoration: underline;
}

.page-resources__faq-answer a:hover {
  color: #fff;
}

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

.page-resources__cta-content {
  max-width: 800px;
}

.page-resources__cta-title {
  font-size: 2.8em;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__paragraph, .page-resources__list-item {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    min-height: 450px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__hero-buttons .page-resources__btn-register,
  .page-resources__hero-buttons .page-resources__btn-login {
    width: 100%;
  }

  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }

  .page-resources__content-wrapper,
  .page-resources__content-wrapper--reverse {
    flex-direction: column;
    gap: 20px;
  }

  /* 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;
  }
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Mobile button responsiveness */
  .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: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
  }

  .page-resources__container,
  .page-resources__section,
  .page-resources__game-card,
  .page-resources__promotion-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__cta-title {
    font-size: 2em;
  }
  .page-resources__cta-description {
    font-size: 1.1em;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__sub-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    font-size: 1em;
    padding: 10px 20px 15px;
  }
}