.page-resources-understanding-555-odds {
  --primary-color: #0A0A0A;
  --secondary-color: #FFD700;
  --text-color-light: #ffffff;
  --text-color-dark: #333333;
  --background-dark: #0A0A0A;
  --background-light: #ffffff;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-light); /* Default text color for dark body background */
  background-color: var(--primary-color); /* Assuming body background is primary-color from shared.css */
}

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

.page-resources-understanding-555-odds__hero-section {
  position: relative;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Account for fixed header */
  text-align: center;
  background: var(--background-dark);
  color: var(--text-color-light);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
}

.page-resources-understanding-555-odds__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-understanding-555-odds__hero-description {
  font-size: 1.2em;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: rgba(255, 255, 255, 0.9);
}

.page-resources-understanding-555-odds__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-resources-understanding-555-odds__btn-primary,
.page-resources-understanding-555-odds__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-understanding-555-odds__btn-primary {
  background-color: var(--secondary-color);
  color: var(--background-dark);
  border: 2px solid var(--secondary-color);
}

.page-resources-understanding-555-odds__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  transform: translateY(-2px);
}

.page-resources-understanding-555-odds__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

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

.page-resources-understanding-555-odds__content-area {
  background-color: var(--background-light);
  color: var(--text-color-dark);
  padding: 60px 0;
}

.page-resources-understanding-555-odds__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-understanding-555-odds__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

.page-resources-understanding-555-odds__subsection-title {
  font-size: 1.8em;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  border-left: 5px solid var(--secondary-color);
  padding-left: 15px;
}

.page-resources-understanding-555-odds__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--text-color-dark);
}

.page-resources-understanding-555-odds__image-full {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

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

.page-resources-understanding-555-odds__list-item {
  background-color: #f9f9f9;
  border-left: 4px solid var(--secondary-color);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 1.1em;
  color: var(--text-color-dark);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-understanding-555-odds__faq-list {
  margin-top: 50px;
}

.page-resources-understanding-555-odds__faq-item {
  background-color: #f9f9f9;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-resources-understanding-555-odds__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background-color: var(--primary-color);
  color: var(--text-color-light);
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.page-resources-understanding-555-odds__faq-question:hover {
  background-color: #1a1a1a;
}

.page-resources-understanding-555-odds__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--secondary-color);
}

.page-resources-understanding-555-odds__faq-item.active .page-resources-understanding-555-odds__faq-toggle {
  transform: rotate(45deg); /* Change to '−' visual */
}

.page-resources-understanding-555-odds__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-color-dark);
  background-color: var(--background-light);
}

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

.page-resources-understanding-555-odds__faq-answer p {
  margin: 0;
  padding: 0;
  color: var(--text-color-dark);
}

.page-resources-understanding-555-odds__cta-buttons--bottom {
  margin-top: 60px;
  margin-bottom: 20px;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-resources-understanding-555-odds__hero-title {
    font-size: 3em;
  }

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

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

@media (max-width: 768px) {
  .page-resources-understanding-555-odds__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    min-height: 400px;
  }

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

  .page-resources-understanding-555-odds__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

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

  .page-resources-understanding-555-odds__btn-primary,
  .page-resources-understanding-555-odds__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  .page-resources-understanding-555-odds__content-area {
    padding: 40px 0;
  }

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

  .page-resources-understanding-555-odds__subsection-title {
    font-size: 1.4em;
    margin-top: 30px;
  }

  .page-resources-understanding-555-odds__text-block,
  .page-resources-understanding-555-odds__list-item,
  .page-resources-understanding-555-odds__faq-question,
  .page-resources-understanding-555-odds__faq-answer p {
    font-size: 1em;
  }

  /* Image responsiveness */
  .page-resources-understanding-555-odds img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  /* Containers for images/videos/buttons */
  .page-resources-understanding-555-odds__section,
  .page-resources-understanding-555-odds__card,
  .page-resources-understanding-555-odds__container,
  .page-resources-understanding-555-odds__video-section,
  .page-resources-understanding-555-odds__video-container,
  .page-resources-understanding-555-odds__video-wrapper,
  .page-resources-understanding-555-odds__cta-buttons,
  .page-resources-understanding-555-odds__button-group,
  .page-resources-understanding-555-odds__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  
  /* Specific adjustment for FAQ item padding on mobile */
  .page-resources-understanding-555-odds__faq-question,
  .page-resources-understanding-555-odds__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-resources-understanding-555-odds__faq-item.active .page-resources-understanding-555-odds__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
}

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

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

  .page-resources-understanding-555-odds__subsection-title {
    font-size: 1.2em;
  }

  .page-resources-understanding-555-odds__faq-question {
    font-size: 1.1em;
  }
}