/* style/resources.css */
.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f8f8; /* Light background for the page */
}

.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 40px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #CC0000 0%, #333333 100%);
  color: #ffffff;
  overflow: hidden;
}

.page-resources__hero-content {
  max-width: 900px;
  z-index: 1;
  position: relative;
}

.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: 30px;
  color: #f0f0f0;
}

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

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

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

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

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

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

.page-resources__btn-text {
  color: #CC0000;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-resources__btn-text:hover {
  color: #e60000;
  text-decoration: underline;
}

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

.page-resources__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

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

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px;
  color: #333333;
}

.page-resources__guides-section,
.page-resources__promotions-section,
.page-resources__responsible-gambling-section,
.page-resources__faq-section,
.page-resources__video-section,
.page-resources__explore-section {
  padding: 80px 20px;
}

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

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

.page-resources__dark-bg .page-resources__section-title,
.page-resources__dark-bg .page-resources__section-description {
  color: #ffffff;
}

.page-resources__guides-grid,
.page-resources__explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__guide-card,
.page-resources__explore-card {
  background-color: #fefefe;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources__guide-card:hover,
.page-resources__explore-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-resources__guide-card-image,
.page-resources__explore-card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.page-resources__guide-card-title,
.page-resources__explore-card-title {
  font-size: 1.4em;
  margin: 20px 20px 10px;
  color: #CC0000;
}

.page-resources__guide-card-title a,
.page-resources__explore-card-title a {
  color: #CC0000;
  text-decoration: none;
}

.page-resources__guide-card-title a:hover,
.page-resources__explore-card-title a:hover {
  text-decoration: underline;
}

.page-resources__guide-card-text,
.page-resources__explore-card-text {
  font-size: 1em;
  color: #555555;
  padding: 0 20px;
  flex-grow: 1;
}

.page-resources__guide-card .page-resources__btn-text,
.page-resources__explore-card .page-resources__btn-text {
  display: inline-block;
  margin: 20px;
  align-self: flex-start;
}

.page-resources__promotions-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__promotion-image {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

.page-resources__promotion-text-block {
  flex: 1 1 400px;
  color: #ffffff;
}

.page-resources__promotion-subtitle {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-resources__promotion-subtitle a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__promotion-subtitle a:hover {
  text-decoration: underline;
}

.page-resources__promotion-description {
  font-size: 1.1em;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-resources__responsible-gambling-content {
  display: flex;
  flex-wrap: wrap-reverse;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-resources__responsible-gambling-text {
  flex: 1 1 400px;
}

.page-resources__responsible-gambling-subtitle {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #CC0000;
}

.page-resources__responsible-gambling-text ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__responsible-gambling-text li {
  margin-bottom: 15px;
  position: relative;
  padding-left: 30px;
}

.page-resources__responsible-gambling-text li::before {
  content: '✔';
  color: #CC0000;
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

.page-resources__responsible-gambling-image {
  flex: 1 1 500px;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

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

.page-resources__faq-item {
  background-color: #fefefe;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f0f0f0;
  transition: background-color 0.3s ease;
}

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

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #e5e5e5;
}

.page-resources__faq-item-title {
  margin: 0;
  color: #333333;
}

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

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(0deg);
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #555555;
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Ensure enough height for content */
  padding: 15px 25px;
}

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

.page-resources__more-faq {
  text-align: center;
  margin-top: 40px;
}

.page-resources__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-resources__video-overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
}

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

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

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 60px 15px 30px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .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,
  .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: 12px 20px;
  }

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

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

  .page-resources__guides-section,
  .page-resources__promotions-section,
  .page-resources__responsible-gambling-section,
  .page-resources__faq-section,
  .page-resources__video-section,
  .page-resources__explore-section {
    padding: 40px 15px;
  }

  .page-resources__guides-grid,
  .page-resources__explore-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__guide-card-image,
  .page-resources__explore-card-image {
    height: 200px;
  }

  .page-resources__promotions-content,
  .page-resources__responsible-gambling-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__promotion-image,
  .page-resources__responsible-gambling-image {
    flex: none;
    width: 100%;
  }

  .page-resources__promotion-subtitle,
  .page-resources__responsible-gambling-subtitle {
    font-size: 1.5em;
  }

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

  .page-resources img,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-resources__section,
  .page-resources__card,
  .page-resources__container,
  .page-resources__hero-section,
  .page-resources__guides-section,
  .page-resources__promotions-section,
  .page-resources__responsible-gambling-section,
  .page-resources__faq-section,
  .page-resources__video-section,
  .page-resources__explore-section,
  .page-resources__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-resources__hero-buttons,
  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    flex-direction: column;
    gap: 10px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}