/* style/resources.css */
.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 body */
}

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

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

.page-resources__text-block {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #f0f0f0;
  text-align: justify;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
}

.page-resources__btn-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}

.page-resources__btn-link:hover {
  text-decoration: underline;
}

.page-resources__center-btn {
  display: block;
  margin: 30px auto;
  width: fit-content;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #1A202C 0%, #0a0a0a 100%);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.page-resources__hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: #ffffff;
}

.page-resources__hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
  color: #FFD700;
  line-height: 1.2;
}

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

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

.page-resources__hero-image-wrapper {
  margin-top: 50px;
}

.page-resources__hero-image {
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* About Section */
.page-resources__about-section {
  background-color: #1a1a1a; /* Slightly lighter dark background */
  color: #ffffff;
  padding: 80px 0;
}

/* Guides Section */
.page-resources__guides-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-resources__guide-card {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

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

.page-resources__card-title {
  font-size: 1.5rem;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-resources__card-description {
  color: #f0f0f0;
  font-size: 1rem;
  line-height: 1.7;
  text-align: justify;
  flex-grow: 1;
}

/* Game Types Section */
.page-resources__game-types-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-resources__game-card {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

/* Promotions Section */
.page-resources__promotions-section {
  background-color: #0a0a0a;
  color: #ffffff;
  padding: 80px 0;
}

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

.page-resources__promotion-card {
  background-color: #1A202C;
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

/* FAQ Section */
.page-resources__faq-section {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 80px 0;
}

.page-resources__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  cursor: pointer;
  background-color: #1A202C;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.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: #f0f0f0;
  font-size: 1rem;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* CTA Section */
.page-resources__cta-section {
  background: linear-gradient(45deg, #1A202C, #0a0a0a);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

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

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

/* Dark/Light Background Helpers for Contrast */
.page-resources__dark-section {
  background-color: #1A202C;
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #1a1a1a; /* Adjusted for dark body */
  color: #ffffff;
}

/* Global image settings to prevent small icons */
.page-resources img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3rem;
  }
  .page-resources__hero-description {
    font-size: 1.1rem;
  }
  .page-resources__section-title {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources__hero-content {
    padding: 0 15px;
  }

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

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

  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 15px;
  }

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

  .page-resources__text-block {
    font-size: 0.95rem;
    padding: 0 15px;
  }

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

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure minimum size is still met */
    min-height: 200px !important;
  }
  
  .page-resources__hero-image-wrapper,
  .page-resources__guide-grid,
  .page-resources__guide-card,
  .page-resources__game-grid,
  .page-resources__game-card,
  .page-resources__promotion-cards,
  .page-resources__promotion-card,
  .page-resources__faq-list,
  .page-resources__faq-item,
  .page-resources__cta-content,
  .page-resources__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources__guide-grid,
  .page-resources__game-grid,
  .page-resources__promotion-cards {
    grid-template-columns: 1fr;
  }

  .page-resources__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }

  .page-resources__faq-answer {
    padding: 0 20px;
  }

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px;
  }

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