.page-resources-understanding-odds {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

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

.page-resources-understanding-odds__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  background: linear-gradient(135deg, #017439, #005a2e);
}

.page-resources-understanding-odds__main-title {
  font-size: 3.2em;
  color: #FFFF00; /* Register/Login font color for main title */
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-resources-understanding-odds__description {
  font-size: 1.3em;
  color: #ffffff;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-understanding-odds__cta-button {
  display: inline-block;
  background: #C30808; /* Register/Login button color */
  color: #FFFF00; /* Register/Login font color */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-resources-understanding-odds__cta-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-resources-understanding-odds__section-title {
  font-size: 2.5em;
  color: #FFFF00; /* Consistent with main title */
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.3;
}

.page-resources-understanding-odds__sub-title {
  font-size: 1.8em;
  color: #017439;
  margin-top: 30px;
  margin-bottom: 20px;
  border-left: 5px solid #FFFF00;
  padding-left: 15px;
}

.page-resources-understanding-odds__intro-section,
.page-resources-understanding-odds__how-bookies-set-odds-section,
.page-resources-understanding-odds__value-betting-section,
.page-resources-understanding-odds__advanced-strategies-section,
.page-resources-understanding-odds__call-to-action-section {
  background: #ffffff; /* Light background for content sections */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-resources-understanding-odds__types-section,
.page-resources-understanding-odds__factors-section,
.page-resources-understanding-odds__common-mistakes-section,
.page-resources-understanding-odds__faq-section {
  background: #1a1a2e; /* Dark background for specific sections */
  color: #ffffff; /* Light text for dark background */
  padding: 60px 0;
}

.page-resources-understanding-odds__types-section .page-resources-understanding-odds__section-title,
.page-resources-understanding-odds__factors-section .page-resources-understanding-odds__section-title,
.page-resources-understanding-odds__common-mistakes-section .page-resources-understanding-odds__section-title,
.page-resources-understanding-odds__faq-section .page-resources-understanding-odds__section-title {
  color: #FFFF00;
}

.page-resources-understanding-odds__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
}

.page-resources-understanding-odds__text-block--highlight {
  font-style: italic;
  font-weight: bold;
  color: #017439;
  background-color: #e6ffe6; /* Light green background for highlights */
  padding: 15px;
  border-radius: 8px;
  margin-top: 30px;
}

.page-resources-understanding-odds__dark-bg .page-resources-understanding-odds__text-block--highlight {
  background-color: rgba(255, 255, 255, 0.1);
  color: #FFFF00;
}

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

.page-resources-understanding-odds__card {
  background: #ffffff; /* Card background on dark section */
  color: #333333;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-understanding-odds__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-resources-understanding-odds__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
}

.page-resources-understanding-odds__card-text {
  font-size: 1em;
}

.page-resources-understanding-odds__list {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.page-resources-understanding-odds__list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-resources-understanding-odds__list li::before {
  content: '✔️';
  position: absolute;
  left: 0;
  color: #017439; /* Primary color for list icons */
}

.page-resources-understanding-odds__dark-bg .page-resources-understanding-odds__list li::before {
  color: #FFFF00;
}

.page-resources-understanding-odds__list--columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-resources-understanding-odds__list--icon li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.page-resources-understanding-odds__icon {
  font-size: 1.5em;
  margin-right: 10px;
  line-height: 1;
}

.page-resources-understanding-odds__ordered-list {
  list-style: decimal;
  padding-left: 25px;
  margin-bottom: 20px;
}

.page-resources-understanding-odds__ordered-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
}

.page-resources-understanding-odds__image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 30px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-resources-understanding-odds__image--full-width {
  display: block;
  margin: 40px auto;
}

.page-resources-understanding-odds__image--left {
  float: left;
  margin-right: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-resources-understanding-odds__image--right {
  float: right;
  margin-left: 30px;
  margin-bottom: 20px;
  max-width: 45%;
}

.page-resources-understanding-odds__how-bookies-set-odds-section::after,
.page-resources-understanding-odds__value-betting-section::after {
  content: '';
  display: table;
  clear: both;
}

.page-resources-understanding-odds__cta-group {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.page-resources-understanding-odds__btn-secondary {
  background: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

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

/* FAQ Section */
.page-resources-understanding-odds__faq-list {
  margin-top: 40px;
}

.page-resources-understanding-odds__faq-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

.page-resources-understanding-odds__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-resources-understanding-odds__faq-item.active .page-resources-understanding-odds__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-understanding-odds__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #f0f0f0;
}

.page-resources-understanding-odds__faq-item.active .page-resources-understanding-odds__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to accommodate content */
  padding: 15px 25px;
}

.page-resources-understanding-odds__faq-answer p {
  margin-bottom: 10px;
  font-size: 1em;
}

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

  .page-resources-understanding-odds__section-title {
    font-size: 2.2em;
  }

  .page-resources-understanding-odds__sub-title {
    font-size: 1.6em;
  }

  .page-resources-understanding-odds__image--left,
  .page-resources-understanding-odds__image--right {
    max-width: 100%;
    float: none;
    margin: 30px auto;
    display: block;
  }
}

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

  .page-resources-understanding-odds__hero-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-resources-understanding-odds__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-resources-understanding-odds__description {
    font-size: 1.1em;
    margin-bottom: 30px;
  }

  .page-resources-understanding-odds__cta-button {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-understanding-odds__cta-group {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-understanding-odds__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-resources-understanding-odds__sub-title {
    font-size: 1.4em;
  }

  .page-resources-understanding-odds__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-resources-understanding-odds__card {
    padding: 20px;
  }

  .page-resources-understanding-odds__list--columns {
    grid-template-columns: 1fr;
  }

  .page-resources-understanding-odds__image {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 20px auto !important;
    box-sizing: border-box !important;
  }

  .page-resources-understanding-odds__intro-section,
  .page-resources-understanding-odds__how-bookies-set-odds-section,
  .page-resources-understanding-odds__value-betting-section,
  .page-resources-understanding-odds__advanced-strategies-section,
  .page-resources-understanding-odds__call-to-action-section,
  .page-resources-understanding-odds__types-section,
  .page-resources-understanding-odds__factors-section,
  .page-resources-understanding-odds__common-mistakes-section,
  .page-resources-understanding-odds__faq-section {
    padding: 40px 0;
  }

  .page-resources-understanding-odds__container {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  .page-resources-understanding-odds__how-bookies-set-odds-section::after,
  .page-resources-understanding-odds__value-betting-section::after {
    content: none;
  }
}