/* style/resources.css */

:root {
  --primary-color: #1A2B3C; /* Deep Blue/Black */
  --secondary-color: #FFD700; /* Gold/Bright Yellow */
  --text-color-light: #F0F0F0; /* Light gray for dark backgrounds */
  --text-color-dark: #333333; /* Dark gray for light backgrounds */
  --background-light: #FFFFFF; /* White background */
  --background-dark: #2A3B4C; /* Slightly lighter than primary for sections */
  --border-color: #E0E0E0;
  --hover-color: #E6B800;
}

.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

.page-resources__section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border-color);
}

.page-resources__section:last-of-type {
  border-bottom: none;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-transform: uppercase;
}

.page-resources__text {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: justify;
  color: var(--text-color-dark);
}

.page-resources__highlight {
  color: var(--primary-color);
  font-weight: bold;
}

.page-resources__inline-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Banner Section */
.page-resources__banner {
  position: relative;
  width: 100%;
  padding: 80px 0;
  background-color: var(--background-dark);
  overflow: hidden;
}

.page-resources__banner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.page-resources__banner-image {
  width: 100%;
  max-width: 900px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-bottom: 40px;
  object-fit: cover;
}

.page-resources__banner-content {
  color: var(--text-color-light);
  padding: 0 20px;
}

.page-resources__banner-title {
  font-size: 3.5em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-weight: 900;
  line-height: 1.2;
}

.page-resources__banner-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  max-width: 800px;
  line-height: 1.5;
}

.page-resources__cta-button {
  display: inline-block;
  padding: 18px 45px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button:hover {
  background: var(--hover-color);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__cta-button--large {
  padding: 20px 50px;
  font-size: 1.4em;
  margin-top: 30px;
}

/* Guides Section */
.page-resources__guide-item {
  display: flex;
  align-items: center;
  margin-bottom: 60px;
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.page-resources__guide-item:last-of-type {
  margin-bottom: 0;
}

.page-resources__guide-item--reverse {
  flex-direction: row-reverse;
}

.page-resources__guide-image {
  width: 45%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.page-resources__guide-content {
  width: 55%;
  padding: 30px;
}

.page-resources__guide-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__list-item {
  font-size: 1em;
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  color: var(--text-color-dark);
}

.page-resources__list-item::before {
  content: '✓';
  color: var(--secondary-color);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-resources__button {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-resources__button:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.page-resources__button--small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Game Cards Section */
.page-resources__games-info {
  background-color: #f8f8f8;
}

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

.page-resources__card {
  background: var(--background-light);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources__card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-resources__card-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 0.95em;
  color: var(--text-color-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq {
  background-color: var(--background-light);
}

.page-resources__faq-list {
  margin-top: 30px;
}

/* FAQ default state - answer hidden */
.faq-item {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background: #f5f5f5;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  font-weight: bold;
}

.faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  padding: 0 25px;
  background: #fdfdfd;
  color: var(--text-color-dark);
}

.faq-answer p {
  margin: 0;
  padding-bottom: 15px;
  line-height: 1.5;
}

/* FAQ expanded state */
.faq-item.active .faq-answer {
  max-height: 500px; /* Sufficient height to contain content */
  padding: 15px 25px;
  padding-top: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
  color: var(--primary-color);
}

/* Support Section */
.page-resources__support {
  background-color: #f8f8f8;
}

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

/* Conclusion Section */
.page-resources__conclusion {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  text-align: center;
  padding: 80px 0;
}

.page-resources__conclusion .page-resources__section-title {
  color: var(--secondary-color);
}

.page-resources__conclusion .page-resources__text {
  color: var(--text-color-light);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__conclusion .page-resources__highlight {
  color: var(--secondary-color);
}

.page-resources__conclusion .page-resources__inline-link {
  color: var(--secondary-color);
}

.page-resources__conclusion .page-resources__inline-link:hover {
  color: var(--hover-color);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__banner-title {
    font-size: 3em;
  }
  .page-resources__banner-description {
    font-size: 1.1em;
  }
  .page-resources__guide-image {
    height: 300px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__text {
    font-size: 1em;
  }
}

@media (max-width: 768px) {
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__banner {
    padding: 60px 0;
  }
  .page-resources__banner-image {
    margin-bottom: 30px;
  }
  .page-resources__banner-title {
    font-size: 2.5em;
  }
  .page-resources__banner-description {
    font-size: 1em;
  }
  .page-resources__cta-button {
    padding: 15px 30px;
    font-size: 1em;
  }
  .page-resources__cta-button--large {
    padding: 18px 35px;
    font-size: 1.1em;
  }
  .page-resources__guide-item {
    flex-direction: column;
    margin-bottom: 40px;
  }
  .page-resources__guide-item--reverse {
    flex-direction: column;
  }
  .page-resources__guide-image,
  .page-resources__guide-content {
    width: 100%;
  }
  .page-resources__guide-image {
    height: 250px;
    border-radius: 10px 10px 0 0;
  }
  .page-resources__guide-content {
    padding: 20px;
  }
  .page-resources__guide-title {
    font-size: 1.5em;
    margin-bottom: 15px;
  }
  .page-resources__list-item {
    font-size: 0.95em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__card-text {
    font-size: 0.9em;
  }
  .faq-question {
    padding: 15px 20px;
  }
  .faq-question h3 {
    font-size: 1.1em;
  }
  .faq-toggle {
    font-size: 20px;
  }
  .faq-answer {
    padding: 0 20px;
  }
  .faq-item.active .faq-answer {
    padding: 15px 20px;
    padding-top: 0;
  }
  .page-resources__conclusion {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-resources__banner-title {
    font-size: 2em;
  }
  .page-resources__banner-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text {
    font-size: 0.9em;
  }
  .page-resources__guide-image {
    height: 200px;
  }
  .page-resources__guide-content {
    padding: 15px;
  }
  .page-resources__guide-title {
    font-size: 1.3em;
  }
  .page-resources__button {
    padding: 10px 20px;
    font-size: 0.9em;
  }
  .page-resources__card-title {
    font-size: 1.1em;
  }
  .page-resources__card-text {
    font-size: 0.85em;
  }
  .faq-question h3 {
    font-size: 1em;
  }
  .faq-toggle {
    font-size: 18px;
  }
}