/* style/resources.css */

/* Base Styles for the Page Content */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text on light background */
  background-color: #ffffff; /* Default body background is white */
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  min-height: 500px;
  overflow: hidden;
  color: #ffffff; /* White text on dark brand color background */
  background-color: #26A9E0; /* Primary brand color */
}

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

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

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #ffffff;
}

/* CTA Buttons Group */
.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.page-resources__cta-buttons--center {
    margin: 40px auto 0;
    max-width: 600px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__link-text.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-resources__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0; /* Primary brand color */
  border: 2px solid #26A9E0;
}

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Section Common Styles */
.page-resources__content-area {
  padding: 60px 0;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  margin-top: 40px;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #333333;
}

.page-resources__sub-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources__text-block {
  margin-bottom: 20px;
  font-size: 1.05em;
  color: #333333;
}

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

.page-resources__image-full {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.page-resources__link-text {
  color: #26A9E0;
  text-decoration: underline;
  display: block;
  text-align: center;
  margin-top: 20px;
}

.page-resources__link-text:hover {
  color: #1a7bb0;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  background-color: #f8f8f8;
  text-align: center;
  color: #333333;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 1000px; /* Max width for the video player */
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.page-resources__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 1; /* Ensure link is clickable over video */
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
}

.page-resources__video-cta-group {
    margin-top: 30px;
}

/* Game Categories Layout */
.page-resources__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  padding: 20px 0;
}

.page-resources__game-categories h3 {
  grid-column: 1 / -1; /* Make sub-titles span full width */
  text-align: left;
  margin-top: 20px;
}

.page-resources__game-categories p {
  text-align: left;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 40px 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: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0; /* Primary brand color */
  cursor: pointer;
  background-color: #f0f8ff; /* Light blue background for question */
  border-bottom: 1px solid #e0e0e0;
}

.page-resources__faq-item[open] .page-resources__faq-question {
  border-bottom: 1px solid #d0d0d0;
}

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

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources__faq-answer {
  padding: 15px 25px;
  font-size: 1.05em;
  color: #555555;
  background-color: #ffffff;
}

/* Hide default details marker */
.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-resources__faq-item summary {
  list-style: none;
}


/* Dark Background Section */
.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

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

.page-resources__final-cta-title {
  padding-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.6em;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
  }

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

  .page-resources__hero-section {
    padding: 60px 15px;
    min-height: 400px;
  }

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

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

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__link-text.page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px; /* Adjust padding for smaller screens */
  }

  .page-resources__content-area {
    padding: 40px 0;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__sub-title {
    font-size: 1.4em;
  }

  .page-resources__text-block {
    font-size: 0.95em;
  }

  /* Image responsive rules */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content need to be constrained */
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__game-categories {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Video responsive rules */
  .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-wrapper {
    padding-bottom: 56.25% !important; /* Maintain aspect ratio */
  }

  .page-resources__game-categories {
    grid-template-columns: 1fr; /* Single column on mobile */
    gap: 20px;
  }

  .page-resources__game-categories h3 {
    text-align: center;
  }

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

/* Ensure no filter on images */
.page-resources img {
    filter: none !important;
}

/* Color contrast fixes if needed (though default should be fine) */
.page-resources__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-resources__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}