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

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

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-height: 500px;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
  background-color: #26A9E0; /* Brand primary color */
  color: #FFFFFF; /* White text for dark background */
  overflow: hidden;
}

.page-resources__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 0;
}

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

.page-resources__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-resources__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #FFFFFF;
}

/* Buttons */
.page-resources__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  max-width: 100%;
  box-sizing: border-box;
}

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

.page-resources__btn-primary:hover {
  background-color: #d16b00;
  transform: translateY(-2px);
}

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

.page-resources__btn-secondary:hover {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

/* Section Titles and Descriptions */
.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand primary color */
}

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

/* Featured Guides Section */
.page-resources__featured-guides {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-resources__card {
  background-color: #FFFFFF;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #333333;
}

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

.page-resources__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block; /* Ensure no extra space below image */
}

.page-resources__card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card-title {
  font-size: 1.5em;
  margin-bottom: 15px;
}

.page-resources__card-title a {
  color: #26A9E0; /* Brand primary color for links */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources__card-title a:hover {
  color: #1a7aab;
}

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

.page-resources__read-more {
  color: #EA7C07; /* Login color */
  text-decoration: none;
  font-weight: bold;
  align-self: flex-start;
  transition: color 0.3s ease;
}

.page-resources__read-more:hover {
  color: #d16b00;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__video-section .page-resources__section-title,
.page-resources__video-section .page-resources__section-description {
  color: #FFFFFF;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 900px;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
  display: block; /* Ensure no extra space below video */
}

.page-resources__video-caption {
  text-align: center;
  margin-top: 20px;
  font-size: 1.1em;
  color: #FFFFFF;
}

/* Betting Tips & Responsible Gaming Sections */
.page-resources__betting-tips,
.page-resources__responsible-gaming {
  padding: 60px 0;
}

.page-resources__betting-tips .page-resources__section-title,
.page-resources__betting-tips .page-resources__section-description {
  color: #26A9E0;
}

.page-resources__responsible-gaming {
  background-color: #000000; /* Dark background */
  color: #FFFFFF;
}

.page-resources__responsible-gaming .page-resources__section-title,
.page-resources__responsible-gaming .page-resources__section-description {
  color: #FFFFFF;
}

.page-resources__tips-list {
  list-style: disc inside;
  max-width: 800px;
  margin: 30px auto 40px auto;
  padding-left: 20px;
  font-size: 1.1em;
  color: inherit; /* Inherit color from parent section */
}

.page-resources__tips-list li {
  margin-bottom: 10px;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 60px 0;
  background-color: #f8f8f8;
}

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

.page-resources__faq-item {
  background-color: #FFFFFF;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.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;
  background-color: #FFFFFF;
  color: #26A9E0;
  transition: background-color 0.3s ease;
}

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

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

.page-resources__faq-item.active .page-resources__faq-question {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px 20px 25px;
}

.page-resources__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-resources__cta-section {
  padding: 60px 0;
  text-align: center;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-resources__cta-section .page-resources__section-title,
.page-resources__cta-section .page-resources__section-description {
  color: #FFFFFF;
}

/* Image color filter restriction */
.page-resources img {
  filter: none; /* Ensure no CSS filter changes image color */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__main-title {
    font-size: 2.5em;
  }

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

@media (max-width: 768px) {
  .page-resources {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-resources__hero-section {
    min-height: 400px;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
  }

  .page-resources__main-title {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-resources__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

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

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

  .page-resources__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources__card {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }

  .page-resources__card-image {
    height: 200px;
  }

  .page-resources__card-content {
    padding: 20px;
  }

  .page-resources__card-title {
    font-size: 1.3em;
  }

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

  /* Mobile responsive images */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Mobile responsive video */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Mobile responsive buttons */
  .page-resources__cta-button,
  .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;
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure buttons stack vertically */
  }

  .page-resources__cta-buttons,
  .page-resources__button-group,
  .page-resources__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important; /* Allow multiple buttons to wrap */
    gap: 10px;
  }
  
  .page-resources__container {
    padding: 0 15px;
  }

  .page-resources__section,
  .page-resources__card,
  .page-resources__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}