.page-resources {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --register-color: #C30808;
  --login-color: #C30808;
  --background-color: #FFFFFF;
  --register-login-font-color: #FFFF00;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
}

.page-resources__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  box-sizing: border-box;
}

.page-resources__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.page-resources__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  position: relative;
  z-index: 2;
}

.page-resources__hero-title {
  font-size: 3.2em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-resources__hero-description {
  font-size: 1.2em;
  color: var(--secondary-color);
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

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

.page-resources__btn-primary,
.page-resources__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  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: var(--register-color);
  color: var(--register-login-font-color);
  border: 2px solid var(--register-color);
}

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

.page-resources__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-resources__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

.page-resources__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: var(--primary-color);
}

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

.page-resources__text-white {
  color: var(--secondary-color);
}

.page-resources__dark-bg {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources__light-bg {
  background-color: var(--background-color);
  color: #333333;
}

/* Why Choose Section */
.page-resources__why-choose {
  padding: 60px 0;
}

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

.page-resources__feature-item {
  text-align: center;
}

.page-resources__feature-icon {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-resources__feature-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-resources__feature-description {
  color: #666666;
  font-size: 0.95em;
}

/* Video Section */
.page-resources__video-section {
  padding: 60px 0;
  text-align: center;
}

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

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

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

/* Guide Section */
.page-resources__guide-section {
  padding: 60px 0;
}

.page-resources__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__guide-image {
  flex: 1; /* Allow image to grow and shrink */
  min-width: 300px; /* Minimum width before wrapping */
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__guide-steps {
  flex: 2; /* Allow steps to take more space */
  min-width: 300px; /* Minimum width before wrapping */
}

.page-resources__guide-subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-resources__guide-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-resources__guide-list li {
  background-color: #f9f9f9;
  border-left: 5px solid var(--primary-color);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.05em;
}

.page-resources__guide-list li strong {
  color: var(--primary-color);
}

.page-resources__btn-small {
  padding: 10px 20px;
  font-size: 0.9em;
}

/* Betting Strategies Section */
.page-resources__betting-strategies {
  padding: 60px 0;
}

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

.page-resources__strategy-item {
  text-align: center;
}

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

.page-resources__strategy-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.page-resources__strategy-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95em;
}

.page-resources__cta-bottom {
  text-align: center;
  margin-top: 50px;
}

/* Rules Section */
.page-resources__rules-section {
  padding: 60px 0;
}

.page-resources__rules-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-resources__rules-image {
  flex: 1;
  min-width: 250px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources__rules-text {
  flex: 2;
  min-width: 300px;
}

.page-resources__rules-subtitle {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.page-resources__rules-list {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.page-resources__rules-list li {
  margin-bottom: 10px;
  color: #555555;
}

.page-resources__rules-paragraph {
  color: #666666;
  margin-bottom: 20px;
}

/* News & Updates Section */
.page-resources__news-updates {
  padding: 60px 0;
}

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

.page-resources__news-card {
  background-color: var(--secondary-color);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: block;
  height: 100%;
}

.page-resources__news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-resources__news-image {
  width: 100%;
  height: 200px; /* Fixed height for news images */
  object-fit: cover;
}

.page-resources__news-title {
  font-size: 1.3em;
  color: var(--primary-color);
  padding: 15px 15px 10px;
}

.page-resources__news-excerpt {
  font-size: 0.9em;
  color: #666666;
  padding: 0 15px 15px;
}

.page-resources__read-more {
  display: block;
  color: var(--primary-color);
  font-weight: bold;
  padding: 0 15px 15px;
}

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

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

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

.page-resources__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}

.page-resources__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-resources__faq-qtext {
  flex-grow: 1;
}

.page-resources__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-resources__faq-answer {
  padding: 20px;
  color: #555555;
  font-size: 1em;
  line-height: 1.8;
  border-top: 1px solid #eee;
}

.page-resources__faq-item[open] summary {
  background-color: var(--primary-color);
  color: var(--secondary-color);
}

.page-resources__faq-item[open] .page-resources__faq-toggle {
  color: var(--secondary-color);
}

/* CTA Section at bottom */
.page-resources__cta-section {
  padding: 80px 20px;
  text-align: center;
}

/* Card Styling */
.page-resources__card {
  background: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

  .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: 450px;
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .page-resources__hero-description {
    font-size: 1em;
    margin-bottom: 25px;
  }

  .page-resources__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources__btn-primary,
  .page-resources__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-resources__features-grid,
  .page-resources__strategy-grid,
  .page-resources__news-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-resources__guide-content,
  .page-resources__rules-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-resources__guide-image,
  .page-resources__rules-image {
    max-width: 100%;
    min-width: unset;
  }

  .page-resources__guide-steps,
  .page-resources__rules-text {
    min-width: unset;
  }

  .page-resources img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-resources video,
  .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__video-section,
  .page-resources__video-container,
  .page-resources__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-resources__video-wrapper {
    padding-bottom: 75% !important; /* Adjust for mobile aspect ratio if needed, e.g., 4:3 */
  }

  .page-resources__faq-item summary {
    font-size: 1em;
    padding: 15px;
  }

  .page-resources__faq-answer {
    padding: 15px;
  }

  .page-resources__news-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-resources__hero-title {
    font-size: 1.8em;
  }

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