/* style/resources.css */

/* Base Styles & Global Resets 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: #121212; /* Matches shared.css body background for consistency */
}

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

.page-resources__section {
  padding: 60px 0;
  text-align: center;
}

.page-resources__section-title {
  font-size: 2.8em;
  color: #FFD700; /* Gold for main titles */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color Contrast Specifics */
.page-resources__dark-bg {
  background-color: #0056B3; /* Primary brand color */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted for header offset on desktop */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  overflow: hidden;
}

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

.page-resources__hero-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for hero title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources__hero-description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 900px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

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

.page-resources__btn-primary {
  background-color: #FFD700; /* Gold for primary button */
  color: #000000; /* Black text for gold background */
  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 for secondary button */
  border: 2px solid #FFD700;
}

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

/* Feature Grid */
.page-resources__feature-grid,
.page-resources__game-grid,
.page-resources__promo-grid,
.page-resources__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-resources__feature-card,
.page-resources__game-item,
.page-resources__promo-card,
.page-resources__security-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

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

.page-resources__feature-image,
.page-resources__game-image,
.page-resources__promo-image,
.page-resources__security-icon {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Enforce min size */
  min-height: 200px; /* Enforce min size */
  object-fit: cover;
}

.page-resources__feature-title,
.page-resources__game-title,
.page-resources__promo-title,
.page-resources__security-subtitle {
  font-size: 1.8em;
  color: #FFD700; /* Gold for card titles */
  margin-bottom: 15px;
  font-weight: bold;
}

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

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

.page-resources__feature-text,
.page-resources__game-text,
.page-resources__promo-text,
.page-resources__security-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__card-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  margin-top: auto; /* Push link to bottom */
}

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

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

.page-resources__step-item {
  background-color: #f8f8f8;
  border-radius: 8px;
  padding: 25px;
  text-align: left;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #333333;
}

.page-resources__step-title {
  font-size: 1.5em;
  color: #0056B3; /* Primary brand color for step titles */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-resources__step-text {
  font-size: 1em;
  color: #555555;
}

.page-resources__video-wrapper {
  margin: 40px auto;
  max-width: 800px;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__video-link {
  display: block;
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

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

.page-resources__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border-radius: 10px;
  opacity: 1;
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow click to pass through to video link */
}

.page-resources__video-link:hover .page-resources__video-overlay {
  opacity: 0.8;
}

.page-resources__download-note {
  font-size: 0.95em;
  color: #555555;
  margin-top: 20px;
}

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

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

/* Promotions & VIP Section */
.page-resources__promo-cta {
  margin-top: 40px;
}

/* Security & Responsible Gaming Section */
.page-resources__security-content {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-resources__security-item {
  background-color: #f8f8f8;
  color: #333333;
}

.page-resources__security-subtitle {
  color: #0056B3;
}

.page-resources__security-text {
  color: #555555;
}

.page-resources__security-cta {
  margin-top: 40px;
}

/* FAQ Section */
.page-resources__faq-section {
  text-align: left;
}

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

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

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

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

.page-resources__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
  color: #f0f0f0;
}

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

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

.page-resources__faq-cta {
  margin-top: 40px;
}

/* Final CTA Section */
.page-resources__final-cta {
  padding: 80px 0;
}

.page-resources__final-cta-group {
  margin-top: 40px;
}

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

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

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

  .page-resources__hero-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-resources__hero-cta-buttons,
  .page-resources__download-cta,
  .page-resources__promo-cta,
  .page-resources__security-cta,
  .page-resources__faq-cta,
  .page-resources__final-cta-group {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
  }

  .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__section {
    padding: 40px 0;
  }

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

  .page-resources__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-resources__feature-grid,
  .page-resources__game-grid,
  .page-resources__promo-grid,
  .page-resources__security-content,
  .page-resources__download-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__feature-card,
  .page-resources__game-item,
  .page-resources__promo-card,
  .page-resources__security-item,
  .page-resources__step-item,
  .page-resources__faq-item {
    padding: 20px;
  }

  .page-resources__feature-title,
  .page-resources__game-title,
  .page-resources__promo-title,
  .page-resources__security-subtitle,
  .page-resources__step-title {
    font-size: 1.4em;
  }

  .page-resources__feature-image,
  .page-resources__game-image,
  .page-resources__promo-image,
  .page-resources__security-icon,
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    min-width: 200px !important; /* Ensure min size on mobile */
    min-height: 200px !important; /* Ensure min size on mobile */
  }

  .page-resources__video-wrapper,
  .page-resources__video-container,
  .page-resources__video-link {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px;
    overflow: hidden !important;
  }
  
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources__video-overlay {
    font-size: 1.2em;
  }

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

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

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

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