.page-resources {
  color: #f0f0f0; /* Light text for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
}

.page-resources .highlight {
  color: var(--secondary-color, #FFD700);
}

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

.page-resources__section-title {
  font-size: 36px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.3;
}

.page-resources__section-description {
  font-size: 18px;
  color: #cccccc;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-resources__hero-section {
  position: relative;
  padding: 120px 0 60px; /* Adjusted padding-top for fixed header */
  background: linear-gradient(135deg, var(--primary-color, #0A1931) 0%, #1a2a40 100%);
  text-align: center;
  overflow: hidden;
}

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

.page-resources__hero-description {
  font-size: 20px;
  color: #e0e0e0;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-resources__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-resources__cta-button--primary {
  background: var(--secondary-color, #FFD700);
  color: #0A1931;
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-resources__cta-button--primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-resources__cta-button--secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-resources__hero-image-wrapper {
  margin-top: 40px;
}

.page-resources__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Guide Section */
.page-resources__guide-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A1931);
  color: #f0f0f0;
}

.page-resources__dark-section {
  background-color: var(--primary-color, #0A1931);
  color: #f0f0f0;
}

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

.page-resources__card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-resources__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__guide-item-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__guide-item-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__guide-item-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__guide-item-title a:hover {
  color: var(--secondary-color, #FFD700);
}

.page-resources__guide-item-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__guide-read-more {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color, #FFD700);
  color: #0A1931;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__guide-read-more:hover {
  background: #e6c200;
}

/* Betting Types Section */
.page-resources__betting-types-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-resources__type-item-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__type-item-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__type-item-title a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__type-item-title a:hover {
  color: var(--secondary-color, #FFD700);
}

.page-resources__type-item-text {
  font-size: 16px;
  color: #cccccc;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-resources__type-read-more {
  display: inline-block;
  padding: 10px 25px;
  background: var(--secondary-color, #FFD700);
  color: #0A1931;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-resources__type-read-more:hover {
  background: #e6c200;
}

/* Tips Section */
.page-resources__tips-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A1931);
  color: #f0f0f0;
}

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

.page-resources__tip-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.page-resources__tip-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-resources__tip-item-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__tip-item-text {
  font-size: 16px;
  color: #cccccc;
  flex-grow: 1;
}

/* Safety Section */
.page-resources__safety-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-resources__safety-item-image {
  max-width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-resources__safety-item-title {
  font-size: 24px;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-resources__safety-item-text {
  font-size: 16px;
  color: #cccccc;
  flex-grow: 1;
}

/* FAQ Section */
.page-resources__faq-section {
  padding: 80px 0;
  background-color: var(--primary-color, #0A1931);
  color: #f0f0f0;
}

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

.page-resources__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-resources__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

.page-resources__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #ffffff;
  pointer-events: none;
}

.page-resources__faq-question h3 a {
  color: #ffffff;
  text-decoration: none;
}

.page-resources__faq-question h3 a:hover {
  color: var(--secondary-color, #FFD700);
}

.page-resources__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-resources__faq-item.active .page-resources__faq-toggle {
  transform: rotate(45deg);
  color: #ffffff;
}

.page-resources__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 20px;
  opacity: 0;
  color: #cccccc;
  background: rgba(255, 255, 255, 0.05);
}

.page-resources__faq-item.active .page-resources__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important;
  opacity: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* CTA Bottom Section */
.page-resources__cta-bottom-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources__hero-title {
    font-size: 40px;
  }
  .page-resources__section-title {
    font-size: 30px;
  }
  .page-resources__hero-description,
  .page-resources__section-description {
    font-size: 16px;
  }
  .page-resources__guide-item-title,
  .page-resources__type-item-title,
  .page-resources__tip-item-title,
  .page-resources__safety-item-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources__hero-section {
    padding: 100px 0 40px; /* Adjusted padding-top for mobile fixed header */
  }
  .page-resources__hero-title {
    font-size: 32px;
  }
  .page-resources__hero-description {
    font-size: 15px;
  }
  .page-resources__hero-cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-resources__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px !important;
    font-size: 16px !important;
  }
  .page-resources__section-title {
    font-size: 28px;
  }
  .page-resources__section-description {
    font-size: 14px;
  }
  .page-resources__guide-section,
  .page-resources__betting-types-section,
  .page-resources__tips-section,
  .page-resources__safety-section,
  .page-resources__faq-section,
  .page-resources__cta-bottom-section {
    padding: 50px 0;
  }
  .page-resources__guide-grid,
  .page-resources__types-grid,
  .page-resources__tips-grid,
  .page-resources__safety-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-resources__card {
    padding: 20px;
  }
  .page-resources__guide-item-image,
  .page-resources__type-item-image,
  .page-resources__safety-item-image {
    height: 180px;
  }
  .page-resources__guide-item-title,
  .page-resources__type-item-title,
  .page-resources__tip-item-title,
  .page-resources__safety-item-title {
    font-size: 20px;
  }
  .page-resources__guide-item-text,
  .page-resources__type-item-text,
  .page-resources__tip-item-text,
  .page-resources__safety-item-text {
    font-size: 15px;
  }
  .page-resources__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-resources__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-resources__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources__faq-answer {
    padding: 0 15px;
  }
  .page-resources__faq-item.active .page-resources__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all images are responsive */
  .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;
  }
  .page-resources__hero-section,
  .page-resources__guide-section,
  .page-resources__betting-types-section,
  .page-resources__tips-section,
  .page-resources__safety-section,
  .page-resources__faq-section,
  .page-resources__cta-bottom-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
}