/* style/resources.css */
:root {
  --primary-color: #007BFF;
  --secondary-color: #28A745;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #000;
  --card-background-dark: rgba(255, 255, 255, 0.1);
  --border-color-dark: rgba(255, 255, 255, 0.2);
}

.page-resources {
  background-color: var(--background-dark);
  color: var(--text-color-light);
  padding-top: 120px; /* Adjusted for fixed header */
}

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

.page-resources__title,
.page-resources__heading {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-size: 36px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__heading {
  font-size: 30px;
  margin-top: 60px;
}

.page-resources__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 25px;
  color: var(--text-color-light);
  text-align: justify;
}

.page-resources__text-block a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__image-wrapper {
  text-align: center;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources__cta-button {
  display: block;
  width: fit-content;
  margin: 40px auto 60px auto;
  padding: 15px 35px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
}

.page-resources__cta-button:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 123, 255, 0.6);
}

/* Core Games Section */
.page-resources__core-games-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-resources__game-card {
  background-color: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-light);
}

.page-resources__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__game-card-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__game-card-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__game-card-description {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__game-card-button {
  display: inline-block;
  padding: 10px 25px;
  background: linear-gradient(135deg, var(--secondary-color), #218838);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.page-resources__game-card-button:hover {
  background: linear-gradient(135deg, #218838, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
}

/* Promotions Section */
.page-resources__promotions-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-resources__promo-card {
  background-color: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-light);
}

.page-resources__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__promo-card-image {
  max-width: 100%;
  height: 180px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__promo-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-resources__promo-card-description {
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__promo-card-button {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--primary-color), #0056b3);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 123, 255, 0.3);
}

.page-resources__promo-card-button:hover {
  background: linear-gradient(135deg, #0056b3, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.5);
}

/* Blog Section */
.page-resources__blog-section {
  padding: 60px 0;
  background-color: var(--background-dark);
}

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

.page-resources__blog-card {
  background-color: var(--card-background-dark);
  border: 1px solid var(--border-color-dark);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--text-color-light);
}

.page-resources__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.page-resources__blog-card-image {
  max-width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__blog-card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.4;
}

.page-resources__blog-card-title a {
  color: var(--primary-color);
  text-decoration: none;
}

.page-resources__blog-card-title a:hover {
  text-decoration: underline;
}

.page-resources__blog-card-excerpt {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__blog-card-link {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--secondary-color), #218838);
  color: #ffffff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.3);
}

.page-resources__blog-card-link:hover {
  background: linear-gradient(135deg, #218838, var(--secondary-color));
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(40, 167, 69, 0.5);
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0 80px 0;
  background-color: var(--background-dark);
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.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 20px;
  opacity: 0;
  background: var(--card-background-dark);
  color: var(--text-color-light);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid var(--border-color-dark);
}

.page-resources__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-resources__faq-answer a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
}

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

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff;
}

.page-resources__faq-question:hover {
  background: #0056b3;
  border-color: #0056b3;
}

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #ffffff;
}

.page-resources__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #ffffff;
  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: 32px;
  height: 32px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-resources__game-grid,
  .page-resources__promo-grid,
  .page-resources__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }

  .page-resources__title {
    font-size: 32px;
  }

  .page-resources__heading {
    font-size: 26px;
  }
}

@media (max-width: 768px) {
  .page-resources {
    padding-top: 100px !important; /* Mobile padding for fixed header */
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__container {
    padding: 15px;
  }

  .page-resources__title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources__heading {
    font-size: 24px;
    margin-top: 40px;
  }

  .page-resources__text-block {
    font-size: 15px;
    margin-bottom: 20px;
  }

  .page-resources__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    margin: 30px auto 40px auto;
  }

  .page-resources__game-grid,
  .page-resources__promo-grid,
  .page-resources__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__game-card,
  .page-resources__promo-card,
  .page-resources__blog-card {
    padding: 20px;
  }

  .page-resources__game-card-image,
  .page-resources__promo-card-image,
  .page-resources__blog-card-image {
    height: 150px; /* Adjust height for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources__game-card-title,
  .page-resources__promo-card-title,
  .page-resources__blog-card-title {
    font-size: 18px;
  }

  .page-resources__game-card-description,
  .page-resources__promo-card-description,
  .page-resources__blog-card-excerpt {
    font-size: 14px;
  }

  .page-resources__game-card-button,
  .page-resources__promo-card-button,
  .page-resources__blog-card-link {
    padding: 8px 15px;
    font-size: 14px;
  }

  .page-resources__faq-question {
    padding: 15px;
  }

  .page-resources__faq-question h3 {
    font-size: 16px;
  }

  .page-resources__faq-toggle {
    font-size: 24px;
    width: 28px;
    height: 28px;
  }

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

  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }

  .page-resources__faq-answer p {
    font-size: 14px;
  }

  .page-resources__main-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
  }

  .page-resources__introduction-section,
  .page-resources__core-games-section,
  .page-resources__promotions-section,
  .page-resources__blog-section,
  .page-resources__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}