/* style/resources.css */

/* Base styles for the resources page */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark backgrounds */
  background-color: var(--black-color); /* Inherit from shared.css, typically 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: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Color contrast specific styles */
.page-resources__dark-bg {
  background-color: var(--black-color); /* Assuming --black-color is dark */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__light-bg .page-resources__section-title {
  color: #26A9E0;
}

.page-resources__light-bg .page-resources__section-description {
  color: #555555;
}

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

.page-resources__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

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

.page-resources__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  min-height: 600px;
  overflow: hidden;
}

.page-resources__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 20px;
}

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

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

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3; /* Overlay for text readability */
}

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

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 0 auto;
  background-color: #000;
  border-radius: 10px;
}

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

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

/* Guides Section */
.page-resources__guides-section {
  padding: 80px 0;
}

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

.page-resources__card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 20px;
  color: #333333;
}

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

.page-resources__card-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #26A9E0;
  padding: 0 15px;
}

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

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

.page-resources__card-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px;
}

/* Strategy Section */
.page-resources__strategy-section {
  padding: 80px 0;
}

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

.page-resources__strategy-item {
  text-align: center;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  color: #333333;
}

.page-resources__strategy-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

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

/* Promotions Section */
.page-resources__promotions-section {
  padding: 80px 0;
}

.page-resources__promotions-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__promotions-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-resources__promotions-text {
  flex: 1;
  color: #f0f0f0;
}

.page-resources__promotions-text p {
  margin-bottom: 15px;
}

.page-resources__promotions-subtitle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* Safety Section */
.page-resources__safety-section {
  padding: 80px 0;
}

.page-resources__safety-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.page-resources__safety-text {
  flex: 1;
  color: #333333;
}

.page-resources__safety-text p {
  margin-bottom: 15px;
}

.page-resources__safety-subtitle {
  font-size: 1.5em;
  color: #26A9E0;
  margin-top: 25px;
  margin-bottom: 10px;
}

.page-resources__safety-image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

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

.page-resources__faq-item {
  background-color: #333333; /* Darker background for contrast on dark section */
  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;
  background-color: #26A9E0; /* Brand color for question */
  color: #ffffff;
  font-weight: bold;
  cursor: pointer;
  font-size: 1.1em;
  list-style: none; /* Remove default marker for details summary */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-resources__faq-answer {
  padding: 20px;
  background-color: #444444; /* Slightly lighter dark for answer content */
  color: #f0f0f0;
  font-size: 1em;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  content: '−'; /* Change to minus when open */
}

.page-resources__faq-cta {
    text-align: center;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Global image styles */
.page-resources img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 3em;
  }
  .page-resources__hero-description {
    font-size: 1.1em;
  }
  .page-resources__promotions-content,
  .page-resources__safety-content {
    flex-direction: column;
    text-align: center;
  }
  .page-resources__promotions-image,
  .page-resources__safety-image {
    max-width: 80%;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__section-description {
    font-size: 1em;
  }

  /* Hero Section */
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure offset on mobile */
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Video Section */
  .page-resources__video-section {
    padding: 40px 0;
  }
  .page-resources__video-wrapper,
  .page-resources__video-link,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Guides Section */
  .page-resources__guides-section {
    padding: 40px 0;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }

  /* Strategy Section */
  .page-resources__strategy-section {
    padding: 40px 0;
  }
  .page-resources__strategy-item {
    padding: 20px;
  }
  .page-resources__strategy-image {
    height: 200px;
  }
  .page-resources__strategy-title {
    font-size: 1.5em;
  }

  /* Promotions & Safety Sections */
  .page-resources__promotions-section,
  .page-resources__safety-section {
    padding: 40px 0;
  }
  .page-resources__promotions-image,
  .page-resources__safety-image {
    max-width: 100%;
  }
  .page-resources__promotions-subtitle,
  .page-resources__safety-subtitle {
    font-size: 1.3em;
  }

  /* FAQ Section */
  .page-resources__faq-section {
    padding: 40px 0;
  }
  .page-resources__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 15px;
  }

  /* CTA Section */
  .page-resources__cta-section {
    padding: 40px 0;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

/* Ensure all content images in .page-resources are at least 200px wide/high */
.page-resources img:not(.shared-header__logo):not(.shared-footer__payment-icon):not(.shared-footer__social-icon):not(.shared-footer__game-provider-icon) {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover; /* Ensure aspect ratio is maintained while filling space */
}

/* Override for specific small images if any, but the prompt says to avoid them */
/* The min-width/height above should handle the general case */

/* Ensure no CSS filter changes image colors */
.page-resources img {
  filter: none !important;
}