/* style/resources.css */

/* Base styles for the page content */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #FFFFFF; /* Default body background is white */
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 500px;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources__hero-section.page-resources__dark-bg {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.2; /* Slightly transparent to allow background color to show */
}

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

.page-resources__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #ffffff; /* White text on dark background */
}

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  color: #ffffff; /* White text on dark background */
}

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

/* General Section Styles */
.page-resources__content-section {
  padding: 60px 0;
}

.page-resources__content-section.page-resources__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources__content-section.page-resources__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  color: #26A9E0; /* Brand primary color for titles on light background */
}

.page-resources__section-title--white {
  color: #ffffff; /* White text for titles on dark background */
}

.page-resources__section-intro {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.7;
}

.page-resources__section-intro--white {
  color: #f0f0f0; /* Slightly off-white for better contrast on brand color */
}

/* Grid Layouts */
.page-resources__article-grid,
.page-resources__feature-grid,
.page-resources__game-strategy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

/* Card Styles */
.page-resources__article-card,
.page-resources__feature-card,
.page-resources__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Ensure dark text on white card */
}

.page-resources__article-card:hover,
.page-resources__feature-card:hover,
.page-resources__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-resources__feature-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-resources__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin: 20px 20px 10px 20px;
  line-height: 1.4;
  color: #26A9E0; /* Brand color for card titles */
}

.page-resources__card-title a {
  color: #26A9E0; /* Ensure link color for titles */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #1a7bbd; /* Darker shade on hover */
}

.page-resources__card-title--white {
  color: #ffffff; /* White text for titles on dark cards */
}

.page-resources__card-title--white a {
  color: #ffffff;
}
.page-resources__card-title--white a:hover {
  color: #f0f0f0;
}

.page-resources__card-text {
  font-size: 1em;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-resources__card-text--white {
  color: #f0f0f0;
}

.page-resources__btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 0 20px 20px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.page-resources__btn-link:hover {
  background-color: #1a7bbd;
}

.page-resources__btn-link--white {
  background-color: #ffffff;
  color: #26A9E0;
}

.page-resources__btn-link--white:hover {
  background-color: #f0f0f0;
  color: #1a7bbd;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't push width */
  text-align: center;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color for primary CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

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

.page-resources__btn-primary--large {
  padding: 15px 30px;
  font-size: 1.1em;
}

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

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

/* FAQ Section */
.page-resources__faq-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 60px 0;
}

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for items */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
}

.page-resources__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
}