.page-resources {
  color: #ffffff; /* Body background is dark, so text should be light */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: var(--header-offset, 120px);
}

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

.page-resources__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.3;
}

.page-resources__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #E53E3E;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  text-align: center;
}

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

.page-resources__btn-primary:hover {
  background: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-resources__btn-secondary {
  background: #1A202C;
  color: #ffffff;
  border: 2px solid #E53E3E;
}

.page-resources__btn-secondary:hover {
  background: #0f1218;
  border-color: #c53030;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

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

.page-resources__section-title {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 40px;
  color: #E53E3E;
}

.page-resources__introduction p,
.page-resources__promotions p,
.page-resources__support p {
  font-size: 18px;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

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

.page-resources__grid--2-col {
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
}

.page-resources__card {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background for cards on dark body */
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #ffffff;
  height: 100%; /* Ensure cards in a row have equal height */
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #E53E3E;
}

.page-resources__card-title a {
  color: #E53E3E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #c53030;
}

.page-resources__card p {
  font-size: 16px;
  line-height: 1.5;
  color: #f0f0f0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-resources__btn-link {
  display: inline-block;
  margin-top: auto; /* Push button to bottom */
  padding: 10px 20px;
  background: #E53E3E;
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.3s ease;
}

.page-resources__btn-link:hover {
  background: #c53030;
}

/* Darker card variations for sections with dark background */
.page-resources__card--dark {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.page-resources__card--dark:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__card--dark .page-resources__card-title a {
  color: #E53E3E;
}

.page-resources__card--dark .page-resources__card-title a:hover {
  color: #ff6347;
}

.page-resources__card--dark .page-resources__btn-link {
  background: #E53E3E;
  color: #ffffff;
}

.page-resources__card--dark .page-resources__btn-link:hover {
  background: #c53030;
}

.page-resources__game-types .page-resources__section-title {
  color: #ffffff;
}

.page-resources__text-center {
  text-align: center;
}

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

/* FAQ Section */
.page-resources__faq {
  background-color: #1A202C;
  padding: 60px 0;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: #0f1218;
  border: 1px solid #2d3748;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #1A202C;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: #2d3748;
  border-color: #4a5568;
}

.page-resources__faq-question:active {
  background: #4a5568;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #E53E3E;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: #ffffff;
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #0f1218;
  border-radius: 0 0 5px 5px;
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* News/Blog Section */
.page-resources__news {
  background-color: #0a0a0a;
  padding: 60px 0;
}

.page-resources__news-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.page-resources__news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.page-resources__news-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-resources__news-item h3 {
  font-size: 22px;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  color: #E53E3E;
  flex-grow: 1;
}

.page-resources__news-item h3 a {
  color: #E53E3E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__news-item h3 a:hover {
  color: #c53030;
}

.page-resources__news-excerpt {
  font-size: 15px;
  color: #f0f0f0;
  margin: 0 20px 20px 20px;
  line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 40px;
  }
  .page-resources__description {
    font-size: 18px;
  }
  .page-resources__section-title {
    font-size: 32px;
  }
  .page-resources__grid--2-col {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-resources__hero-section {
    padding: 60px 0;
  }
  .page-resources__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-resources__description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-resources__cta-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px 25px;
    font-size: 16px;
    white-space: normal;
    word-wrap: break-word;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }
  .page-resources__introduction p,
  .page-resources__promotions p,
  .page-resources__support p {
    font-size: 16px;
    margin-bottom: 20px;
    padding: 0 15px;
    max-width: 100%;
    box-sizing: border-box;
  }
  .page-resources__grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-resources__grid--2-col {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image {
    height: 200px;
  }
  .page-resources__card-title {
    font-size: 20px;
  }
  .page-resources__card p {
    font-size: 15px;
  }
  .page-resources__btn-link {
    padding: 8px 15px;
    font-size: 14px;
  }
  .page-resources__faq-list {
    padding: 0 15px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
  }
  .page-resources__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  .page-resources__faq-answer p {
    font-size: 15px;
  }
  .page-resources__news-item h3 {
    font-size: 18px;
    margin: 15px 15px 8px 15px;
  }
  .page-resources__news-excerpt {
    font-size: 14px;
    margin: 0 15px 15px 15px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__faq-list,
  .page-resources__news-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__news-item {
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__news-image {
    border-radius: 12px 12px 0 0;
  }
  .page-resources__cta-group {
    padding-left: 0;
    padding-right: 0;
  }
}