.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__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #26A9E0; /* Primary brand color for hero background */
  color: #ffffff;
  overflow: hidden;
  box-sizing: border-box;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  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; /* Subtle overlay */
  display: block;
}

/* General Sections */
.page-resources__introduction,
.page-resources__strategy-tips,
.page-resources__security-support,
.page-resources__conclusion {
  padding: 60px 0;
  color: #333333; /* Dark text for light background */
  background-color: #ffffff; /* Light background */
}

.page-resources__game-guides,
.page-resources__promotions,
.page-resources__faq-section {
  padding: 60px 0;
  color: #ffffff; /* Light text for dark background */
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: inherit; /* Inherit color from parent section */
}

/* Buttons */
.page-resources__btn-primary {
  display: inline-block;
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-resources__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #26A9E0; /* Primary brand color for secondary action */
  padding: 15px 30px;
  border: 2px solid #26A9E0;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1em;
}

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

.page-resources__cta-buttons {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

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

.page-resources__card,
.page-resources__promo-card {
  background-color: #ffffff; /* White background for cards */
  color: #333333; /* Dark text for cards */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover,
.page-resources__promo-card:hover {
  transform: translateY(-10px);
}

.page-resources__card-image,
.page-resources__promo-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title,
.page-resources__promo-title {
  font-size: 1.5em;
  margin: 20px 20px 10px;
  color: #26A9E0; /* Primary brand color for card titles */
}

.page-resources__card-title a,
.page-resources__promo-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover,
.page-resources__promo-title a:hover {
  color: #1a7eb3; /* Slightly darker primary color on hover */
}

.page-resources__card-description,
.page-resources__promo-text {
  margin: 0 20px 20px;
  flex-grow: 1;
}

.page-resources__card .page-resources__btn-secondary,
.page-resources__promo-card .page-resources__btn-secondary {
  align-self: flex-start;
  margin: 0 20px 20px;
  padding: 10px 20px;
  font-size: 1em;
}

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

.page-resources__strategy-item {
  background-color: #f8f8f8; /* Light background for strategy items */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

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

.page-resources__strategy-text {
  color: #555555;
  margin-bottom: 20px;
}

.page-resources__strategy-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-top: 20px;
}

/* Security & Support */
.page-resources__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-resources__security-item {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-resources__security-icon {
  width: 200px; /* Enforce minimum size */
  height: 200px; /* Enforce minimum size */
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__security-subtitle {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-resources__security-subtitle a {
  color: inherit;
  text-decoration: none;
}
.page-resources__security-subtitle a:hover {
  text-decoration: underline;
}

.page-resources__security-text {
  color: #555555;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__faq-item {
  background-color: #1a1a1a; /* Darker background for FAQ items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff; /* Light text for FAQ items */
}

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

.page-resources__faq-question:hover {
  background-color: #1a7eb3; /* Slightly darker primary color on hover */
}

.page-resources__faq-heading {
  margin: 0;
  font-size: 1em; /* Relative to parent .page-resources__faq-question */
  color: inherit;
}

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

.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, padding 0.3s ease;
  color: #e0e0e0; /* Lighter text for answer content */
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure it expands enough */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__hero-section {
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px);
  }
}

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

  .page-resources__hero-title {
    font-size: 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 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 {
    display: flex;
    flex-direction: column;
  }

  .page-resources__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

  .page-resources__grid-cards,
  .page-resources__promo-grid,
  .page-resources__strategy-grid,
  .page-resources__security-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__video,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}