/* style/resources.css */

/* Common 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: transparent; /* Body background from shared.css */
}

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

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

.page-resources__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for contrast, but still dark */
  color: #ffffff;
}

.page-resources__light-bg {
  background-color: #26A9E0; /* Primary brand color as background */
  color: #ffffff;
}

.page-resources__section-title {
  font-size: 2.5em;
  margin-bottom: 30px;
  color: #ffffff;
  font-weight: bold;
}

.page-resources__subsection-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-resources__sub-card-title {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-resources__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 100px 0 60px; /* Adjust for header offset */
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff;
}

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

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

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

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

.page-resources__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

/* 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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-resources__btn-center {
  display: block;
  margin: 40px auto;
  width: fit-content;
}

/* Introduction Section */
.page-resources__introduction .page-resources__text-block {
  color: #f0f0f0;
}

/* Products Section */
.page-resources__products .page-resources__section-title,
.page-resources__products .page-resources__text-block {
  color: #ffffff;
}

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

.page-resources__card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  display: flex;
  flex-direction: column;
}

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

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ffffff;
}

.page-resources__card-description {
  font-size: 1em;
  line-height: 1.6;
  color: #f0f0f0;
  flex-grow: 1;
}

.page-resources__list {
  list-style: disc inside;
  margin: 15px 0;
  padding-left: 20px;
  color: #f0f0f0;
  text-align: left;
}

.page-resources__list li {
  margin-bottom: 8px;
}

/* Advantages Section */
.page-resources__advantages .page-resources__text-block {
  color: #f0f0f0;
}

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

.page-resources__card--advantage {
  background-color: rgba(0, 0, 0, 0.2); /* Darker background for contrast on light section */
  color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-resources__card-image--small {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  display: block;
}

/* Guide Section */
.page-resources__guide .page-resources__text-block {
  color: #f0f0f0;
}

.page-resources__ordered-list {
  list-style: decimal inside;
  margin: 20px 0;
  padding-left: 20px;
  color: #f0f0f0;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

/* Responsible Gambling Section */
.page-resources__responsible-gambling .page-resources__text-block {
  color: #f0f0f0;
}

/* FAQ Section */
.page-resources__faq-list {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: left;
}

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  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: #ffffff;
  background-color: transparent;
  transition: background-color 0.3s ease;
}

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

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

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

.page-resources__faq-answer p {
  margin-bottom: 15px;
  color: #f0f0f0;
}

/* CTA Section */
.page-resources__cta-content {
  padding: 40px 20px;
}

.page-resources__cta .page-resources__section-title {
  color: #ffffff;
}

.page-resources__cta .page-resources__text-block {
  color: #f0f0f0;
}

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

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

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0 40px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-resources__hero-title {
    font-size: 2.5em;
  }
  .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 {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }
  .page-resources__section {
    padding: 40px 0;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__subsection-title {
    font-size: 1.4em;
  }
  .page-resources__text-block,
  .page-resources__list,
  .page-resources__ordered-list li {
    font-size: 0.95em;
  }
  .page-resources__grid-layout {
    grid-template-columns: 1fr;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__card-title {
    font-size: 1.3em;
  }
  .page-resources__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-resources__faq-answer {
    padding: 0 20px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 10px 20px 20px;
  }

  /* Mobile image responsiveness */
  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-resources__advantage-grid,
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-buttons a {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 2em;
  }
  .page-resources__section-title {
    font-size: 1.6em;
  }
  .page-resources__subsection-title {
    font-size: 1.2em;
  }
}