/* style/resources.css */

/* Base Styles & Typography */
.page-resources {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-resources__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold for main titles */
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources a {
  color: #FFD700;
  text-decoration: none;
}

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

/* Buttons */
.page-resources__btn-primary {
  display: inline-block;
  background-color: #FFD700; /* Gold background */
  color: #121212; /* Dark text for contrast */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: 2px solid #FFD700;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-resources__btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
  transform: translateY(-2px);
}

.page-resources__btn-link {
  color: #FFD700;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-link:hover {
  color: #e6c200;
}

/* Hero Section */
.page-resources__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

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

.page-resources__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.3;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6);
}

/* Intro Section */
.page-resources__intro-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Featured Guides Section */
.page-resources__featured-guides {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-resources__card {
  background-color: #2a2a2a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

.page-resources__card:hover {
  transform: translateY(-5px);
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__card-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-resources__card-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

/* Game Guides Section */
.page-resources__game-guides {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-resources__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-resources__game-card {
  background-color: #2a2a2a;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.page-resources__game-card:hover {
  transform: translateY(-3px);
}

.page-resources__game-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-resources__game-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-resources__game-description {
  font-size: 0.95em;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-resources__cta-section {
  margin-top: 60px;
  text-align: center;
}

.page-resources__cta-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Promotions & News Section */
.page-resources__promotions-news {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-resources__info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__info-card {
  background-color: #2a2a2a;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-resources__info-card:hover {
  transform: translateY(-5px);
}

.page-resources__info-title {
  font-size: 1.6em;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-resources__info-title a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-resources__info-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

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

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

.page-resources__faq-question:hover {
  background-color: #4a4a4a;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg); /* Explicitly set to 0 for '-' to be upright */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Use !important to ensure override */
  padding: 20px 25px;
}

.page-resources__faq-answer p {
  margin-bottom: 15px;
  font-size: 1em;
}

/* Video Section */
.page-resources__video-section {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

.page-resources__video-wrapper {
  max-width: 800px;
  margin: 40px auto 0 auto;
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-resources__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Contact CTA Section */
.page-resources__contact-cta {
  padding-top: 60px;
  padding-bottom: 60px;
  text-align: center;
}

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

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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    padding: 40px 15px;
  }

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

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

  .page-resources__content-area {
    padding: 30px 15px;
  }

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

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

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

  .page-resources__card-image {
    height: 200px;
  }

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

  .page-resources__info-title {
    font-size: 1.4em;
  }

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

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

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

  /* Mobile responsive for images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Mobile responsive for videos */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive for buttons */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .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;
  }

  .page-resources__contact-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure proper spacing on mobile */
  }

  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__btn-primary, .page-resources__btn-secondary {
    padding: 12px 20px;
  }
}