/* style/resources.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #FFA500;
  --tertiary-color: #8B0000;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f9f9f9;
  --background-dark: var(--dark-bg-1); /* Inherited from shared.css */
  --border-color: #e0e0e0;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  color: var(--text-light); /* Default text color for the main page content, assuming a dark body background */
  background-color: var(--background-dark);
}

.page-resources__hero-banner {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 120px; /* Desktop: Adjust based on fixed header height */
  background: linear-gradient(135deg, var(--tertiary-color) 0%, #B87333 50%, var(--primary-color) 100%);
  color: var(--text-light);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-resources__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-resources__subtitle {
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #e0e0e0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 40px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-resources__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

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

.page-resources__btn-secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin-left: 20px;
}

.page-resources__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  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__introduction {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources__section-title {
  font-size: 2.5em;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text-dark);
}

.page-resources__introduction .page-resources__section-title {
  color: var(--text-dark);
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

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

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__text-block,
.page-resources__dark-bg .page-resources__card-title,
.page-resources__dark-bg .page-resources__card-text,
.page-resources__dark-bg .page-resources__faq-question h3,
.page-resources__dark-bg .page-resources__faq-answer p {
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__faq-question {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-resources__dark-bg .page-resources__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-resources__dark-bg .page-resources__faq-item.active .page-resources__faq-answer {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__dark-bg .page-resources__faq-toggle {
  color: var(--text-light);
}

.page-resources__dark-bg .page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
}

.page-resources__light-bg {
  background-color: var(--background-light);
  color: var(--text-dark);
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__text-block,
.page-resources__light-bg .page-resources__card-title,
.page-resources__light-bg .page-resources__card-text,
.page-resources__light-bg .page-resources__game-card-title,
.page-resources__light-bg .page-resources__game-card-text,
.page-resources__light-bg .page-resources__promo-title,
.page-resources__light-bg .page-resources__promo-text,
.page-resources__light-bg .page-resources__article-title,
.page-resources__light-bg .page-resources__article-excerpt {
  color: var(--text-dark);
}

.page-resources__light-bg .page-resources__card,
.page-resources__light-bg .page-resources__game-card,
.page-resources__light-bg .page-resources__promo-item,
.page-resources__light-bg .page-resources__article-card {
  background-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
}

.page-resources__light-bg .page-resources__read-more {
  color: var(--tertiary-color);
}

.page-resources__light-bg .page-resources__read-more:hover {
  color: var(--primary-color);
}

.page-resources__light-bg .page-resources__article-link {
  color: var(--text-dark);
}

.page-resources__light-bg .page-resources__article-link:hover {
  color: var(--primary-color);
}

.page-resources__criteria .page-resources__section-title {
  color: var(--text-light);
}

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

.page-resources__card {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

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

.page-resources__card-title {
  font-size: 1.5em;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-dark);
}

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__action-area {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

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

.page-resources__game-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__game-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__game-card-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-resources__game-card-text {
  font-size: 0.95em;
  line-height: 1.6;
  color: var(--text-dark);
}

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

.page-resources__strategy-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.page-resources__strategy-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__strategy-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-resources__strategy-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-light);
}

.page-resources__strategy-text {
  font-size: 1em;
  line-height: 1.7;
  color: #e0e0e0;
}

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

.page-resources__promo-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__promo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__promo-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
}

.page-resources__promo-title {
  font-size: 1.4em;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.page-resources__promo-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-dark);
}

.page-resources__promo-text a {
  color: var(--tertiary-color);
  font-weight: bold;
  text-decoration: none;
}

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

.page-resources__faq-section {
  background-color: var(--background-dark);
  color: var(--text-light);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.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 15px;
  opacity: 0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0 0 5px 5px;
}

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

.page-resources__faq-question:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.page-resources__faq-question:active {
  background: rgba(255, 255, 255, 0.2);
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.1em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--text-light);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--text-light);
  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: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg); /* Change + to X or - */
}

.page-resources__latest-articles {
  background-color: var(--background-light);
  color: var(--text-dark);
}

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

.page-resources__article-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.page-resources__article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.page-resources__article-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__article-title {
  font-size: 1.3em;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.page-resources__article-link {
  color: var(--text-dark);
  text-decoration: none;
}

.page-resources__article-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-resources__article-excerpt {
  font-size: 0.95em;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 15px;
}

.page-resources__read-more {
  display: inline-block;
  font-size: 0.9em;
  font-weight: bold;
  color: var(--tertiary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__read-more:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.highlight {
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__text-block {
    font-size: 1em;
  }
  .page-resources__card,
  .page-resources__game-card,
  .page-resources__promo-item,
  .page-resources__strategy-item,
  .page-resources__article-card {
    padding: 25px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-banner {
    padding-top: 100px !important; /* Mobile: Adjust based on fixed header height */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__main-title {
    font-size: 2.2em;
  }
  .page-resources__subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
  }
  .page-resources__cta-button {
    padding: 12px 30px;
    font-size: 1em;
  }
  .page-resources__btn-secondary {
    margin-left: 0;
    margin-top: 15px;
  }
  .page-resources__action-area {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 0.95em;
    text-align: left;
  }
  .page-resources__card-title,
  .page-resources__game-card-title,
  .page-resources__promo-title,
  .page-resources__strategy-title,
  .page-resources__article-title {
    font-size: 1.2em;
  }
  .page-resources__card-text,
  .page-resources__game-card-text,
  .page-resources__promo-text,
  .page-resources__strategy-text,
  .page-resources__article-excerpt {
    font-size: 0.9em;
  }

  /* FAQ specific mobile styles */
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  /* Ensure all images and containers are responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__container,
  .page-resources__card,
  .page-resources__game-card,
  .page-resources__promo-item,
  .page-resources__strategy-item,
  .page-resources__article-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__grid,
  .page-resources__game-grid,
  .page-resources__strategy-list,
  .page-resources__promo-list,
  .page-resources__article-grid {
    gap: 20px;
  }
}