/* style/resources.css */
/* Base styles for the page-resources scope */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Dark text for light body background */
  background-color: #FFFFFF; /* Default background, ensuring contrast */
}

/* Fixed header offset */
.page-resources__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply offset to the first section */
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* Consistent padding for content areas */
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0; /* Brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  line-height: 1.2;
}

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

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

.page-resources__highlight {
  font-weight: bold;
  color: #26A9E0; /* Highlight important keywords */
}

.page-resources__link {
  color: #26A9E0;
  text-decoration: underline;
}
.page-resources__link:hover {
  color: #1a7bb0;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
  text-align: center;
  box-sizing: border-box; /* Crucial for responsive buttons */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-resources__btn-primary {
  background-color: #26A9E0; /* Brand color */
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-resources__btn-primary:hover {
  background-color: #1a7bb0;
  border-color: #1a7bb0;
}

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7bb0;
  border-color: #1a7bb0;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
  background-color: #26A9E0; /* Dark background for hero */
  color: #FFFFFF; /* Light text for dark background */
  overflow: hidden;
  padding-bottom: 60px;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2; /* Slightly transparent to let background color show */
  filter: brightness(0.7); /* Darken image for better text contrast */
}

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

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

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

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

/* Introduction Section */
.page-resources__introduction-section {
  padding: 80px 0;
  background-color: #FFFFFF; /* Light background */
  color: #333333; /* Dark text */
}

/* Getting Started Section */
.page-resources__getting-started-section {
  padding: 80px 0;
  background-color: #26A9E0; /* Dark background */
  color: #FFFFFF; /* Light text */
}

.page-resources__getting-started-section .page-resources__section-title {
  color: #FFFFFF;
}

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

.page-resources__card {
  background-color: #FFFFFF; /* Card background light */
  color: #333333; /* Card text dark */
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1; /* Make sure text takes available space */
}

.page-resources__card .page-resources__btn-secondary {
  margin-top: auto; /* Push button to bottom */
}

/* Video Section within Getting Started */
.page-resources__video-wrapper {
  margin-top: 60px;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 12px;
}

.page-resources__video-title {
  font-size: 2em;
  color: #FFFFFF;
  margin-bottom: 20px;
}

.page-resources__video-link-wrapper {
  display: block;
  position: relative;
  width: 100%;
  max-width: 800px; /* Max width for video */
  margin: 0 auto 20px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.page-resources__video-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto;
}

/* Game Guides Section */
.page-resources__game-guides-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

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

.page-resources__card--game .page-resources__card-title {
  font-size: 1.3em;
}

.page-resources__card--game .page-resources__card-title a {
  color: #26A9E0;
  text-decoration: none;
}
.page-resources__card--game .page-resources__card-title a:hover {
  text-decoration: underline;
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-resources__promotions-section .page-resources__section-title {
  color: #FFFFFF;
}

.page-resources__image-full-width {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 40px;
  object-fit: cover;
}

/* Security Section */
.page-resources__security-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources__grid--2-cols {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.page-resources__text-block {
  padding-right: 30px;
}

.page-resources__image-wrapper {
  text-align: center;
}

.page-resources__image-responsive {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

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

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

.page-resources__faq-item {
  background-color: #FFFFFF;
  color: #333333;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* Remove default marker for details summary */
}

.page-resources__faq-item[open] .page-resources__faq-question {
  border-bottom: none;
}

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

.page-resources__faq-qtext {
  flex-grow: 1;
  color: #26A9E0;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  margin-left: 15px;
}

.page-resources__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
  text-align: justify;
}

.page-resources__btn-faq-more {
  margin-top: 30px;
}

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

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

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.2em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__sub-title {
    font-size: 1.5em;
  }
  .page-resources__grid--2-cols {
    grid-template-columns: 1fr;
  }
  .page-resources__text-block {
    padding-right: 0;
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    padding-bottom: 40px;
  }
  .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__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 15px 20px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__sub-title {
    font-size: 1.3em;
  }
  .page-resources__paragraph {
    font-size: 1em;
  }

  .page-resources__container {
    padding: 0 15px; /* Smaller padding on mobile */
  }

  /* Images responsive on mobile */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__hero-image-wrapper,
  .page-resources__image-wrapper,
  .page-resources__card,
  .page-resources__video-link-wrapper,
  .page-resources__video-wrapper,
  .page-resources__image-full-width {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent content overflow */
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__video-wrapper {
    padding: 20px;
  }
  .page-resources__video-link-wrapper {
    margin-left: auto;
    margin-right: auto;
  }

  /* Video responsive on mobile */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-resources__faq-item {
    margin: 0 15px 15px 15px;
  }
  .page-resources__faq-list {
    margin-top: 20px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }

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

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
}