/* style/resources.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --dark-text-color: #333333;
  --light-text-color: #ffffff;
  --button-login-color: #EA7C07;
  --background-white: #FFFFFF;
  --color-black: #000000;
}

.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--light-text-color); /* Default to light text for dark sections */
  background-color: var(--dark-bg-1); /* Inherited from shared, assuming dark */
}

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

.page-resources__content-area {
  padding: 40px 0;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted for header offset */
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  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;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-resources__btn-primary {
  background-color: var(--button-login-color); /* Login color */
  color: var(--light-text-color);
  border: 2px solid var(--button-login-color);
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--light-text-color);
  border: 2px solid var(--light-text-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--light-text-color);
  color: var(--primary-color);
}

/* Section Titles */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__sub-title,
.page-resources__dark-bg .page-resources__paragraph,
.page-resources__dark-bg .page-resources__list-item,
.page-resources__dark-bg .page-resources__card-title,
.page-resources__dark-bg .page-resources__card-text,
.page-resources__dark-bg .page-resources__game-title,
.page-resources__dark-bg .page-resources__game-description,
.page-resources__dark-bg .page-resources__faq-heading,
.page-resources__dark-bg .page-resources__faq-answer p,
.page-resources__dark-bg .page-resources__faq-toggle {
  color: var(--light-text-color);
}

.page-resources__light-bg .page-resources__section-title,
.page-resources__light-bg .page-resources__sub-title,
.page-resources__light-bg .page-resources__paragraph,
.page-resources__light-bg .page-resources__list-item,
.page-resources__light-bg .page-resources__card-title,
.page-resources__light-bg .page-resources__card-text,
.page-resources__light-bg .page-resources__game-title,
.page-resources__light-bg .page-resources__game-description,
.page-resources__light-bg .page-resources__faq-heading,
.page-resources__light-bg .page-resources__faq-answer p,
.page-resources__light-bg .page-resources__faq-toggle {
  color: var(--dark-text-color);
}

.page-resources__light-bg {
  background-color: var(--background-white);
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
}

/* Grid Layout */
.page-resources__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

/* Cards */
.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__light-bg .page-resources__card {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 1px solid #e0e0e0;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__card-text {
  font-size: 1em;
  color: inherit;
}

/* Image Text Layout */
.page-resources__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources__image-text-layout--reverse {
  flex-direction: row-reverse;
}

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

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px; /* Ensure image wrapper has a minimum width */
}

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

.page-resources__sub-title {
  font-size: 1.8em;
  margin-top: 25px;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__paragraph {
  margin-bottom: 20px;
}

/* Games Section Specific */
.page-resources__games-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-resources__game-card {
  display: flex;
  flex-direction: column;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: var(--light-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources__light-bg .page-resources__game-card {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 1px solid #e0e0e0;
}

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

.page-resources__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-resources__game-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  font-weight: bold;
}

.page-resources__game-description {
  font-size: 0.95em;
  padding: 0 15px 20px;
  color: inherit;
}

/* Strategy List */
.page-resources__strategy-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.page-resources__light-bg .page-resources__list-item {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 1px solid #e0e0e0;
}

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

.page-resources__list-item h3 {
  margin-top: 0;
  font-size: 1.4em;
  margin-bottom: 10px;
}

/* FAQ Section */
.page-resources__faq-list {
  margin-top: 30px;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__light-bg .page-resources__faq-item {
  background-color: var(--secondary-color);
  color: var(--dark-text-color);
  border: 1px solid #e0e0e0;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-resources__light-bg .page-resources__faq-question:hover {
  background-color: #f5f5f5;
}

.page-resources__faq-heading {
  margin: 0;
  color: inherit;
}

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

.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;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 15px 20px;
}

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

/* Other Resources List */
.page-resources__other-resources-list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.page-resources__other-resources-list li {
  margin-bottom: 10px;
}

.page-resources__other-resources-list a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__light-bg .page-resources__other-resources-list a {
  color: var(--primary-color);
}

.page-resources__other-resources-list a:hover {
  color: #1a8cc2;
}

/* Conclusion Section */
.page-resources__conclusion-section {
  text-align: center;
  padding-bottom: 60px;
}

/* General text color for sections with var(--dark-bg-1) background */
.page-resources__why-important-section,
.page-resources__games-section,
.page-resources__promotions-section,
.page-resources__contact-section {
  background-color: var(--background-white);
  color: var(--dark-text-color);
}

/* Ensure links in light sections also have good contrast */
.page-resources__light-bg a {
  color: var(--primary-color);
}

.page-resources__light-bg a:hover {
  color: #1a8cc2;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }

  .page-resources__section-title {
    font-size: 2em;
  }

  .page-resources__image-text-layout {
    flex-direction: column;
  }

  .page-resources__image-text-layout--reverse {
    flex-direction: column;
  }

  .page-resources__text-content,
  .page-resources__image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 15px 40px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
  }

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

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

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

  .page-resources__sub-title {
    font-size: 1.5em;
  }

  .page-resources__card,
  .page-resources__list-item,
  .page-resources__faq-item,
  .page-resources__game-card {
    padding: 20px;
  }

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__image-wrapper,
  .page-resources__games-grid,
  .page-resources__faq-list,
  .page-resources__cta-buttons,
  .page-resources__grid-layout,
  .page-resources__image-text-layout {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-resources__content-area {
    padding: 20px 0;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

  .page-resources__section-title {
    font-size: 1.5em;
  }

  .page-resources__sub-title {
    font-size: 1.3em;
  }

  .page-resources__card-title {
    font-size: 1.2em;
  }

  .page-resources__game-title {
    font-size: 1.1em;
  }
}