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

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

.page-resources__hero-section {
  position: relative;
  padding: 100px 20px 60px; /* Adjusted padding-top for header offset */
  padding-top: var(--header-offset, 120px);
  text-align: center;
  background-color: #26A9E0; /* Primary brand color for hero */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 450px;
}

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

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

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

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

.page-resources__btn-primary {
  background-color: #EA7C07; /* Login color for primary action */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

.page-resources__intro-section,
.page-resources__security-section,
.page-resources__video-section,
.page-resources__cta-section {
  padding: 80px 0;
}

.page-resources__game-guides-section,
.page-resources__promotions-section,
.page-resources__faq-section,
.page-resources__responsible-gaming-section {
  padding: 80px 0;
}

.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-subtitle {
  color: #555555;
}

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

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

.page-resources__dark-bg {
  background-color: #1a1a1a; /* Consistent with body background */
  color: #ffffff;
}

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

.page-resources__dark-bg .page-resources__section-subtitle {
  color: #f0f0f0;
}

.page-resources__dark-bg .page-resources__card-title {
  color: #26A9E0;
}

.page-resources__dark-bg .page-resources__card-description {
  color: #f0f0f0;
}

.page-resources__grid {
  display: grid;
  gap: 30px;
  margin-top: 40px;
}

.page-resources__grid--2-col {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.page-resources__grid--3-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-resources__intro-content,
.page-resources__security-content,
.page-resources__promo-content {
  padding-right: 20px;
}

.page-resources__intro-image,
.page-resources__security-image,
.page-resources__promo-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-resources__intro-image img,
.page-resources__security-image img,
.page-resources__promo-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  min-width: 200px;
  min-height: 200px;
}

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for cards on dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-resources__light-bg .page-resources__card {
  background-color: #f5f5f5; /* Light gray for cards on light bg */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

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

.page-resources__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources__card-description {
  font-size: 0.95em;
  color: #f0f0f0;
}

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

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-resources__video-caption {
  text-align: center;
  margin-top: 20px;
  font-style: italic;
  color: #555555;
}

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

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

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

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

.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 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; /* Sufficient height for content */
  padding: 15px 25px 20px;
}

.page-resources__cta-section .page-resources__cta-buttons {
  margin-top: 40px;
}

.page-resources__responsible-gaming-section p {
  max-width: 900px;
  margin: 20px auto 30px;
  text-align: center;
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__grid--2-col {
    grid-template-columns: 1fr;
  }
  .page-resources__intro-content,
  .page-resources__security-content,
  .page-resources__promo-content {
    padding-right: 0;
    margin-bottom: 30px;
  }
  .page-resources__promo-content {
    order: -1; /* Image first on mobile for promotions */
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 350px;
  }
  .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: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__section-subtitle {
    font-size: 0.9em;
  }
  .page-resources__intro-section,
  .page-resources__security-section,
  .page-resources__video-section,
  .page-resources__cta-section,
  .page-resources__game-guides-section,
  .page-resources__promotions-section,
  .page-resources__faq-section,
  .page-resources__responsible-gaming-section {
    padding: 50px 0;
  }
  .page-resources__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-resources__grid {
    gap: 20px;
  }
  .page-resources__grid--3-col {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card img {
    min-width: 200px;
    min-height: 200px;
  }
  /* Images responsive */
  .page-resources img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Image containers responsive */
  .page-resources__intro-image,
  .page-resources__security-image,
  .page-resources__promo-image {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  /* Video responsive */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Video containers responsive */
  .page-resources__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }
  .page-resources__video-wrapper {
    padding-bottom: 56.25% !important;
  }
  .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: 10px 20px 15px;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }
  .page-resources__hero-description {
    font-size: 0.9em;
  }
  .page-resources__section-title {
    font-size: 1.5em;
  }
  .page-resources__card-title {
    font-size: 1.2em;
  }
  .page-resources__faq-question {
    font-size: 1em;
  }
}