/* style/resources.css */

/* Body background from shared.css is #1a1a2e (dark) */
/* Ensure all text within .page-resources has sufficient contrast */

.page-resources {
  color: #ffffff; /* Default text color for dark background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  min-height: 600px;
  overflow: hidden;
  background-color: #017439; /* Brand color for hero */
  color: #ffffff;
}

.page-resources__hero-content-wrapper {
  z-index: 2;
  max-width: 900px;
  margin-bottom: 40px;
}

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

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

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

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

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

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

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources__dark-section {
  background-color: #1a1a2e; /* Body background color */
  color: #ffffff;
}

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

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

.page-resources__btn-primary {
  background-color: #C30808; /* Register color */
  color: #FFFF00; /* Register font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

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

.page-resources__image-text-layout {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-resources__image-text-layout--reverse {
  flex-direction: row-reverse;
}

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

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

.page-resources__text-wrapper {
  flex: 1;
}

.page-resources__grid-layout {
  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); /* Light background for cards on dark sections */
  border-radius: 10px;
  padding: 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #ffffff;
  height: 100%; /* Ensure cards have equal height */
}

.page-resources__light-bg .page-resources__card {
  background-color: #f8f8f8; /* Light background for cards on light sections */
  color: #333333;
}

.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;
  color: #ffffff;
}

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

.page-resources__card-text {
  font-size: 1em;
  line-height: 1.6;
}

.page-resources__faq-section {
  background-color: #ffffff;
  color: #333333;
}

.page-resources__faq-section .page-resources__section-title {
  color: #017439;
}

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

.page-resources__faq-item {
  background-color: #f0f0f0;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #333333;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: #e0e0e0;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #017439;
  list-style: none; /* For details tag */
}

.page-resources__faq-question::-webkit-details-marker {
  display: none; /* For details tag */
}

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

.page-resources__faq-item[open] .page-resources__faq-toggle {
  transform: rotate(45deg);
}

.page-resources__faq-answer {
  padding: 15px 25px 20px;
  background-color: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
  color: #333333;
}

.page-resources__conclusion-section {
  text-align: center;
  padding-bottom: 80px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__image-text-layout {
    flex-direction: column;
    gap: 30px;
  }
  .page-resources__image-text-layout--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    min-height: 500px;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .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__content-area {
    padding: 40px 15px;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__text-block {
    font-size: 0.95em;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-image {
    height: 180px;
  }
  .page-resources__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-resources__faq-answer {
    padding: 10px 20px 15px;
  }
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__introduction-section,
  .page-resources__legality-section,
  .page-resources__selection-guide-section,
  .page-resources__game-strategies-section,
  .page-resources__vip-section,
  .page-resources__responsible-gambling-section,
  .page-resources__faq-section,
  .page-resources__conclusion-section,
  .page-resources__image-text-layout,
  .page-resources__image-wrapper,
  .page-resources__text-wrapper,
  .page-resources__grid-layout,
  .page-resources__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .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: 15px;
    padding-right: 15px;
  }
  .page-resources video, .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
}

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