/* style/resources.css */
.page-resources {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0; /* Adjusted for header offset */
  text-align: center;
  background-color: #26A9E0;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-resources__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__hero-cta {
  margin-top: 30px;
}

/* General Section Styles */
.page-resources__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  color: #555555;
}

.page-resources__intro-section,
.page-resources__games-section,
.page-resources__promotions-section,
.page-resources__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
}

.page-resources__guide-section,
.page-resources__security-section,
.page-resources__download-section,
.page-resources__contact-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__dark-section .page-resources__section-title,
.page-resources__dark-section .page-resources__section-description {
  color: #FFFFFF;
}

.page-resources__dark-section .page-resources__text-link {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-resources__dark-section .page-resources__text-link:hover {
  color: #f0f0f0;
}

/* Content Grid */
.page-resources__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

.page-resources__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-resources__text-block {
  flex: 1;
}

.page-resources__text-block p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.page-resources__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-resources__guide-card {
  background-color: #FFFFFF;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
  color: #333333;
}

.page-resources__guide-card .page-resources__card-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-resources__guide-card p {
  margin-bottom: 20px;
}

/* Game & Promotion Cards */
.page-resources__games-grid,
.page-resources__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources__game-card,
.page-resources__promo-card {
  background-color: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  color: #333333;
  text-align: center;
}

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

.page-resources__game-card .page-resources__card-title,
.page-resources__promo-card .page-resources__card-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin: 20px 15px 10px 15px;
}

.page-resources__game-card .page-resources__card-title a,
.page-resources__promo-card .page-resources__card-title a {
  color: #26A9E0;
  text-decoration: none;
}

.page-resources__game-card .page-resources__card-title a:hover,
.page-resources__promo-card .page-resources__card-title a:hover {
  text-decoration: underline;
}

.page-resources__game-card p,
.page-resources__promo-card p {
  padding: 0 15px 20px 15px;
  font-size: 0.95em;
}

.page-resources__game-card .page-resources__btn-tertiary,
.page-resources__promo-card .page-resources__btn-tertiary {
  display: inline-block;
  margin-bottom: 20px;
}

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-tertiary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

.page-resources__btn-tertiary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-resources__btn-tertiary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__text-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin-top: 10px;
}

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

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

/* FAQ Section */
.page-resources__faq-list {
  max-width: 900px;
  margin: 50px auto 0 auto;
}

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

.page-resources__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  list-style: none;
  color: #26A9E0;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  padding: 0 25px 20px 25px;
  font-size: 1em;
  color: #555555;
}

.page-resources__faq-answer p {
  margin: 0;
}

.page-resources__faq-cta {
  text-align: center;
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-grid {
    flex-direction: column;
  }
  .page-resources__content-grid--reverse {
    flex-direction: column-reverse;
  }
  .page-resources__image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-resources__container {
    padding: 0 15px;
  }

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

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

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

  .page-resources__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__games-section,
  .page-resources__security-section,
  .page-resources__promotions-section,
  .page-resources__download-section,
  .page-resources__faq-section,
  .page-resources__contact-section {
    padding: 50px 0;
  }

  .page-resources__text-block p {
    font-size: 1em;
  }

  /* Images responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__image-wrapper,
  .page-resources__game-card,
  .page-resources__promo-card,
  .page-resources__guide-card,
  .page-resources__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    margin-left: auto;
    margin-right: auto;
  }

  /* Buttons responsive */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-tertiary,
  .page-resources a[class*="button"],
  .page-resources a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 10px; /* Add some space between stacked buttons */
  }

  .page-resources__contact-buttons,
  .page-resources__hero-cta {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px 20px;
  }

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