.page-resources {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Consistent with shared.css body background */
}

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

.page-resources__dark-bg {
  background-color: #017439; /* Primary brand color */
  color: #ffffff;
}

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

.page-resources__hero-section {
  padding: 100px 0;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

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

.page-resources__btn-primary,
.page-resources__btn-secondary,
.page-resources__btn-register,
.page-resources__btn-login {
  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;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources__btn-primary {
  background-color: #C30808; /* Register button color */
  color: #ffffff; /* Overriding #FFFF00 for contrast */
}

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

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

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

.page-resources__btn-register {
  background-color: #C30808; /* Custom Register color */
  color: #ffffff; /* Overriding #FFFF00 for contrast */
  margin-right: 15px;
}

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

.page-resources__btn-login {
  background-color: #C30808; /* Custom Login color */
  color: #ffffff; /* Overriding #FFFF00 for contrast */
}

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

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 40px;
  color: inherit; /* Inherit from section for contrast */
}

.page-resources__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

.page-resources__intro-section,
.page-resources__guide-section,
.page-resources__strategy-section,
.page-resources__leagues-section,
.page-resources__video-section,
.page-resources__faq-section,
.page-resources__cta-section {
  padding: 80px 0;
}

.page-resources__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-resources__content-grid:nth-child(even) {
  flex-direction: row-reverse;
}

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

.page-resources__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  color: inherit;
}

.page-resources__text-block strong {
  color: inherit;
}

.page-resources__image-wrapper {
  flex: 1;
  text-align: center;
}

.page-resources__image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  object-fit: cover;
}

.page-resources__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources__list li {
  margin-bottom: 10px;
  color: inherit;
}

.page-resources__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

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

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

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

.page-resources__faq-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark section */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #ffffff;
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.1em;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  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 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0; /* Slightly off-white for body text */
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 1000px !important; /* Use !important for override */
  padding: 15px 20px;
}

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

.page-resources__cta-section {
  text-align: center;
}

.page-resources__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .page-resources__hero-title {
    font-size: 2.8em;
  }
  .page-resources__section-title {
    font-size: 2em;
  }
  .page-resources__content-grid {
    flex-direction: column;
  }
  .page-resources__content-grid:nth-child(even) {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-resources__hero-title {
    font-size: 2.2em;
  }
  .page-resources__hero-description {
    font-size: 1em;
  }
  .page-resources__section-title {
    font-size: 1.8em;
  }
  .page-resources__intro-section,
  .page-resources__guide-section,
  .page-resources__strategy-section,
  .page-resources__leagues-section,
  .page-resources__video-section,
  .page-resources__faq-section,
  .page-resources__cta-section {
    padding: 60px 0;
  }

  /* Images responsive */
  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__image-wrapper,
  .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;
  }
  
  /* Video responsive */
  .page-resources video,
  .page-resources__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-resources__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }

  /* Buttons responsive */
  .page-resources__btn-primary,
  .page-resources__btn-secondary,
  .page-resources__btn-register,
  .page-resources__btn-login,
  .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-right: 0 !important;
  }
  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources__container {
    padding: 0 15px;
  }
  .page-resources__faq-item {
    padding: 0;
  }
  .page-resources__faq-question {
    padding: 15px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
}