/* style/resources.css */

/* Base styles for page-resources */
.page-resources {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

.page-resources__section-title {
  font-size: 3em;
  color: #FFD700; /* Primary brand color for titles */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 60px;
  font-weight: bold;
  line-height: 1.2;
}

.page-resources__text-block {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #f0f0f0;
}

.page-resources__highlight {
  color: #FFD700;
  font-weight: bold;
}

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700;
  color: #121212; /* Dark text for golden button */
  border: 2px solid #FFD700;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212;
}

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  width: 100%;
  height: 700px; /* Adjust height as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 2;
}

.page-resources__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-resources__hero-title {
  font-size: 4.5em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-resources__hero-description {
  font-size: 1.5em;
  color: #f0f0f0;
  margin-bottom: 30px;
  line-height: 1.5;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Game Diversity Section */
.page-resources__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__game-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly transparent white */
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
  height: 100%; /* Ensure cards have equal height */
}

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

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

.page-resources__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin: 20px 20px 10px;
  line-height: 1.3;
}

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

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

.page-resources__card-description {
  font-size: 0.95em;
  line-height: 1.6;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1; /* Make description fill available space */
}

.page-resources__card-link {
  display: inline-block;
  background-color: #8B0000; /* Secondary brand color */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  margin: 0 20px 20px;
  align-self: flex-start; /* Align link to the bottom left */
  transition: background-color 0.3s ease;
}

.page-resources__card-link:hover {
  background-color: #a00000;
}

/* Promotions Section */
.page-resources__promotions-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__promotion-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__promotion-list .page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid #FFD700;
  border-radius: 6px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-resources__promotion-list .page-resources__list-item strong {
  color: #FFD700;
}

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

.page-resources__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: #f0f0f0;
}

.page-resources__guide-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
  line-height: 1.3;
}

.page-resources__guide-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Support Section */
.page-resources__support-image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-resources__contact-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__contact-list .page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-left: 4px solid #8B0000;
  border-radius: 6px;
  font-size: 1.05em;
  line-height: 1.6;
}

.page-resources__contact-list .page-resources__list-item strong {
  color: #8B0000;
}

/* App Download Section */
.page-resources__app-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  flex-wrap: wrap-reverse; /* Image on right, text on left for desktop */
}

.page-resources__app-info {
  flex: 1;
  min-width: 300px;
}

.page-resources__app-benefits {
  list-style: none;
  padding: 0;
  margin-top: 15px;
  margin-bottom: 30px;
}

.page-resources__app-benefits .page-resources__list-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 10px 15px;
  margin-bottom: 8px;
  border-left: 3px solid #FFD700;
  border-radius: 4px;
  font-size: 1em;
}

.page-resources__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-resources__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

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

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

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.12);
  color: #FFD700;
  font-size: 1.3em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  color: inherit;
  font-size: 1em;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg); /* Plus becomes an X */
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 25px; /* Initial padding, will expand */
  color: #f0f0f0;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

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

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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

  .page-resources__hero-section {
    height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.5em;
    margin-bottom: 15px;
  }
  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources__section-title {
    font-size: 2em;
    margin-bottom: 30px;
    padding-top: 40px;
  }

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

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

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources__container,
  .page-resources__game-grid,
  .page-resources__guide-steps,
  .page-resources__app-content,
  .page-resources__video-wrapper,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__app-content {
    flex-direction: column;
  }
  .page-resources__app-image-wrapper {
    order: -1; /* Image at top for mobile */
  }

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

  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 15px 20px;
  }
  .page-resources__faq-toggle {
    font-size: 1.5em;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__game-card {
    padding-bottom: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__card-description {
    font-size: 0.9em;
  }
  .page-resources__card-link {
    font-size: 0.9em;
    padding: 8px 15px;
  }
  .page-resources__guide-item {
    padding: 20px;
  }
  .page-resources__guide-title {
    font-size: 1.5em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
  .page-resources__faq-answer p {
    font-size: 0.95em;
  }
}