/* style/resources.css */

/* General Styles for page-resources */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: var(--dark-bg-1); /* Inherited from shared, likely dark */
}

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

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

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: #f0f0f0; /* Light grey for general text on dark background */
}

.page-resources__highlight {
  color: #FFD700; /* Highlight important keywords */
  font-weight: bold;
}

.page-resources__text-link {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__text-link:hover {
  color: #ffffff;
}

.page-resources__text-center {
  text-align: center;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 100px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #0056B3; /* Main brand color for hero background */
  overflow: hidden;
  color: #ffffff;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  text-align: center;
  margin-right: 40px;
}

.page-resources__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold for hero title */
  font-weight: bold;
  line-height: 1.2;
}

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

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

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

/* Buttons */
.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold button */
  color: #0056B3; /* Dark blue text */
  border: 2px solid #FFD700;
}

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

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

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

.page-resources__btn-text-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Section Backgrounds and Text Colors */
.page-resources__dark-bg {
  background-color: #0056B3; /* Main brand dark blue */
  color: #ffffff;
  padding: 60px 0;
}

.page-resources__light-bg {
  background-color: #f0f0f0; /* Light background for contrast */
  color: #333333;
  padding: 60px 0;
}

.page-resources__light-bg .page-resources__section-title {
  color: #0056B3; /* Dark blue title on light background */
}

.page-resources__light-bg .page-resources__text-block {
  color: #333333;
}

.page-resources__light-bg .page-resources__text-link {
  color: #0056B3;
}

.page-resources__light-bg .page-resources__text-link:hover {
  color: #555555;
}

/* Introduction Section */
.page-resources__introduction-section {
  padding: 60px 0;
}

/* Card Grid */
.page-resources__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-resources__light-bg .page-resources__card {
  background-color: #ffffff; /* White on light bg */
  color: #333333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

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

.page-resources__card-title .page-resources__card-link {
  color: #FFD700; /* Gold for card titles on dark background */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title .page-resources__card-link:hover {
  color: #ffffff;
}

.page-resources__light-bg .page-resources__card-title .page-resources__card-link {
  color: #0056B3; /* Dark blue for card titles on light background */
}

.page-resources__light-bg .page-resources__card-title .page-resources__card-link:hover {
  color: #555555;
}

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

.page-resources__light-bg .page-resources__card-text {
  color: #555555;
}

/* Security Section */
.page-resources__security-section {
  padding: 60px 0;
}

.page-resources__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__image-wrapper {
  flex: 1;
  min-width: 300px;
}

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

.page-resources__feature-list {
  flex: 2;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-resources__feature-item {
  background-color: #ffffff;
  padding: 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  color: #333333;
}

.page-resources__feature-title {
  font-size: 1.3em;
  color: #0056B3;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__feature-description {
  font-size: 1em;
  color: #555555;
}

/* App Download Section */
.page-resources__app-download-section {
  padding: 60px 0;
}

.page-resources__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

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

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

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

.page-resources__app-subtitle {
  font-size: 1.8em;
  color: #0056B3;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark bg */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #0056B3; /* Dark blue for question background */
  color: #ffffff;
  transition: background-color 0.3s ease;
}

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

.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(45deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05); /* Lighter semi-transparent for answer */
}

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

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

/* Contact CTA */
.page-resources__contact-cta {
  padding: 60px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-section {
    flex-direction: column;
    text-align: center;
    padding-top: var(--header-offset, 120px);
  }

  .page-resources__hero-content {
    margin-right: 0;
    margin-bottom: 40px;
  }

  .page-resources__hero-image-wrapper {
    position: relative;
    height: 300px;
    width: 100%;
    opacity: 0.5;
  }

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

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

  .page-resources__content-wrapper,
  .page-resources__app-content {
    flex-direction: column;
    text-align: center;
  }

  .page-resources__image-wrapper,
  .page-resources__app-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }

  .page-resources__feature-list {
    text-align: left;
  }

  .page-resources__feature-item {
    text-align: left;
  }
}

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

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

  .page-resources__hero-section {
    min-height: 500px;
    padding: 80px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
  }

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

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

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

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

  .page-resources__card-grid {
    grid-template-columns: 1fr;
  }

  /* Image responsive rules */
  .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__hero-section,
  .page-resources__introduction-section,
  .page-resources__game-guides-section,
  .page-resources__security-section,
  .page-resources__promotions-section,
  .page-resources__app-download-section,
  .page-resources__faq-section,
  .page-resources__contact-cta,
  .page-resources__hero-cta-buttons,
  .page-resources__cta-buttons,
  .page-resources__content-wrapper,
  .page-resources__app-content,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

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

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

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