/* style/resources-betting-market-types.css */
.page-resources-betting-market-types {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--secondary-color, #FFFFFF);
}

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

.page-resources-betting-market-types__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  text-align: center;
  background: linear-gradient(rgba(1, 116, 57, 0.8), rgba(1, 116, 57, 0.8)), url('[GALLERY:bg:1920x1080:bong88,hero_background,stadium_lights]') center/cover no-repeat;
  color: #ffffff;
}

.page-resources-betting-market-types__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-betting-market-types__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-resources-betting-market-types__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.page-resources-betting-market-types__btn-primary,
.page-resources-betting-market-types__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-resources-betting-market-types__btn-primary {
  background-color: #C30808; /* Custom color for register/login */
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-resources-betting-market-types__btn-primary:hover {
  background-color: #e02020;
  transform: translateY(-2px);
}

.page-resources-betting-market-types__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom font color */
  border: 2px solid #C30808;
}

.page-resources-betting-market-types__btn-secondary:hover {
  background-color: rgba(195, 8, 8, 0.2);
  transform: translateY(-2px);
}

.page-resources-betting-market-types__content-section {
  padding: 60px 20px;
}

.page-resources-betting-market-types__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

.page-resources-betting-market-types__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-resources-betting-market-types__section-title {
  font-size: 2.2em;
  margin-bottom: 30px;
  text-align: center;
  color: inherit; /* Inherit color from section (dark or light bg) */
}

.page-resources-betting-market-types__sub-title {
  font-size: 1.8em;
  margin-top: 40px;
  margin-bottom: 20px;
  color: inherit;
}

.page-resources-betting-market-types__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
}

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

.page-resources-betting-market-types__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: left;
  color: #333333;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Ensure image doesn't overflow */
}

.page-resources-betting-market-types__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-resources-betting-market-types__card-text {
  font-size: 1em;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-resources-betting-market-types__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 15px;
  padding-left: 0;
}

.page-resources-betting-market-types__list li {
  margin-bottom: 5px;
  font-size: 0.95em;
}

.page-resources-betting-market-types__text-block {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 30px;
}

.page-resources-betting-market-types__text-block p {
  flex: 1;
  font-size: 1.1em;
  margin: 0;
}

.page-resources-betting-market-types__image-inline {
  width: 40%;
  min-width: 200px; /* Minimum width for inline images */
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-resources-betting-market-types__image-right {
  order: 1;
}

.page-resources-betting-market-types__faq-section {
  padding: 60px 20px;
  background-color: #F8F8F8;
  color: #333333;
}

.page-resources-betting-market-types__faq-list {
  margin-top: 40px;
}

.page-resources-betting-market-types__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #333333;
}

.page-resources-betting-market-types__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f5f5f5;
  color: #017439;
  list-style: none; /* For details tag */
}

.page-resources-betting-market-types__faq-question::-webkit-details-marker {
  display: none;
}

.page-resources-betting-market-types__faq-qtext {
  flex-grow: 1;
}

.page-resources-betting-market-types__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  transition: transform 0.3s ease;
}

.page-resources-betting-market-types__faq-item[open] .page-resources-betting-market-types__faq-toggle {
  transform: rotate(45deg);
}

.page-resources-betting-market-types__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: #555555;
  background-color: #ffffff;
}

.page-resources-betting-market-types__conclusion-section {
  padding: 60px 20px;
  text-align: center;
  background-color: #017439;
  color: #ffffff;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-resources-betting-market-types__main-title {
    font-size: 2.4em;
  }

  .page-resources-betting-market-types__section-title {
    font-size: 2em;
  }

  .page-resources-betting-market-types__sub-title {
    font-size: 1.6em;
  }
}

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

  .page-resources-betting-market-types__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure spacing below fixed header for mobile */
  }

  .page-resources-betting-market-types__main-title {
    font-size: 2em;
  }

  .page-resources-betting-market-types__intro-text {
    font-size: 1em;
  }

  .page-resources-betting-market-types__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-resources-betting-market-types__btn-primary,
  .page-resources-betting-market-types__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-resources-betting-market-types__content-section,
  .page-resources-betting-market-types__faq-section,
  .page-resources-betting-market-types__conclusion-section {
    padding: 40px 15px;
  }

  .page-resources-betting-market-types__section-title {
    font-size: 1.8em;
  }

  .page-resources-betting-market-types__sub-title {
    font-size: 1.4em;
  }

  .page-resources-betting-market-types__card-grid {
    grid-template-columns: 1fr;
  }

  .page-resources-betting-market-types__card {
    padding: 20px;
  }

  .page-resources-betting-market-types__card-image,
  .page-resources-betting-market-types__image-inline {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset;
  }

  .page-resources-betting-market-types__text-block {
    flex-direction: column;
    gap: 20px;
  }

  .page-resources-betting-market-types__image-inline {
    width: 100%;
    order: unset;
  }

  .page-resources-betting-market-types__image-right {
    order: unset;
  }

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

  .page-resources-betting-market-types__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-resources-betting-market-types__faq-answer {
    padding: 10px 20px 15px;
  }
}