/* style/how-to-choose-betting-platform.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --login-color: #EA7C07;
}

.page-how-to-choose-betting-platform {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Body background is white, so text is dark */
  background-color: var(--secondary-color); /* Matches body background from shared.css */
}

.page-how-to-choose-betting-platform__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(38, 169, 224, 0.7) 100%);
  color: var(--text-color-light);
  overflow: hidden; /* Prevent content overflow */
}

.page-how-to-choose-betting-platform__hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  gap: 30px;
}

.page-how-to-choose-betting-platform__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-how-to-choose-betting-platform__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-color-light);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-how-to-choose-betting-platform__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-color-light);
}

.page-how-to-choose-betting-platform__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-how-to-choose-betting-platform__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-how-to-choose-betting-platform__cta-button--primary {
  background: var(--login-color); /* Use login color for primary CTA */
  color: var(--text-color-light);
  border: 2px solid var(--login-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-how-to-choose-betting-platform__cta-button--primary:hover {
  background: #d46f06; /* Manually darkened */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-how-to-choose-betting-platform__cta-button--secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-how-to-choose-betting-platform__cta-button--secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-how-to-choose-betting-platform__hero-image {
  width: 100%;
  max-width: 800px; /* Adjust max-width as needed */
  margin-top: 30px;
}

.page-how-to-choose-betting-platform__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-how-to-choose-betting-platform__content-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.page-how-to-choose-betting-platform__section-title {
  font-size: 2.2em;
  color: var(--primary-color);
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
}

.page-how-to-choose-betting-platform__content-area p {
  margin-bottom: 1em;
  font-size: 1.1em;
}

.page-how-to-choose-betting-platform__content-area a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-how-to-choose-betting-platform__content-area a:hover {
  color: #1f8ec4; /* Manually darkened */
}

.page-how-to-choose-betting-platform__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-how-to-choose-betting-platform__grid--3-cols {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-how-to-choose-betting-platform__card {
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 350px; /* Ensure cards have minimum height */
}

.page-how-to-choose-betting-platform__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-how-to-choose-betting-platform__card img {
  width: 100%;
  max-width: 400px; /* Max width for card images */
  height: auto;
  min-height: 200px; /* Minimum size for all images */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-how-to-choose-betting-platform__card-title {
  font-size: 1.5em;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-how-to-choose-betting-platform__card p {
  font-size: 1em;
  color: #555555;
  flex-grow: 1; /* Allow paragraph to take available space */
}

.page-how-to-choose-betting-platform__btn-primary {
  display: inline-block;
  padding: 12px 25px;
  background: var(--primary-color);
  color: var(--text-color-light);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  margin-top: 20px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  min-width: 150px;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-how-to-choose-betting-platform__btn-primary:hover {
  background: #1f8ec4; /* Manually darkened */
  transform: translateY(-2px);
}

.page-how-to-choose-betting-platform__list {
  list-style: none;
  padding: 0;
  margin-top: 20px;
  margin-bottom: 20px;
}

.page-how-to-choose-betting-platform__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #444444;
}

.page-how-to-choose-betting-platform__list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-size: 1.2em;
  line-height: 1;
}

.page-how-to-choose-betting-platform__image-left-text-right,
.page-how-to-choose-betting-platform__image-right-text-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
  margin-bottom: 50px;
}

.page-how-to-choose-betting-platform__image-left-text-right img,
.page-how-to-choose-betting-platform__image-right-text-left img {
  width: 100%;
  max-width: 500px;
  height: auto;
  min-height: 300px; /* Ensure images are large enough */
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-how-to-choose-betting-platform__image-left-text-right .page-how-to-choose-betting-platform__text-content,
.page-how-to-choose-betting-platform__image-right-text-left .page-how-to-choose-betting-platform__text-content {
  flex: 1;
  min-width: 300px;
}

.page-how-to-choose-betting-platform__image-left-text-right img {
  order: 1;
}
.page-how-to-choose-betting-platform__image-left-text-right .page-how-to-choose-betting-platform__text-content {
  order: 2;
}

.page-how-to-choose-betting-platform__image-right-text-left img {
  order: 2;
}
.page-how-to-choose-betting-platform__image-right-text-left .page-how-to-choose-betting-platform__text-content {
  order: 1;
}

.page-how-to-choose-betting-platform__bottom-cta {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* FAQ styles */
.page-how-to-choose-betting-platform__faq-container {
  margin-top: 40px;
  margin-bottom: 60px;
}

.page-how-to-choose-betting-platform__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-how-to-choose-betting-platform__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Initial padding */
  opacity: 0;
  background: #f9f9f9;
  color: #444444;
}

.page-how-to-choose-betting-platform__faq-item.active .page-how-to-choose-betting-platform__faq-answer {
  max-height: 2000px !important; /* Sufficiently large to contain content */
  padding: 20px !important; /* Expanded padding */
  opacity: 1;
  border-top: 1px solid #e0e0e0;
}

.page-how-to-choose-betting-platform__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  position: relative;
  color: var(--text-color-dark);
}

.page-how-to-choose-betting-platform__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
  color: var(--primary-color);
}

.page-how-to-choose-betting-platform__faq-question:active {
  background: #eeeeee;
}

.page-how-to-choose-betting-platform__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 1.15em;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-how-to-choose-betting-platform__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
}

.page-how-to-choose-betting-platform__faq-item.active .page-how-to-choose-betting-platform__faq-toggle {
  transform: rotate(45deg); /* Optional: change to a cross */
  color: var(--login-color); /* Change color when active */
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-how-to-choose-betting-platform__main-title {
    font-size: 2.8em;
  }
  .page-how-to-choose-betting-platform__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-how-to-choose-betting-platform__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific padding-top */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-how-to-choose-betting-platform__main-title {
    font-size: 2.2em;
  }

  .page-how-to-choose-betting-platform__intro-text {
    font-size: 1em;
  }

  .page-how-to-choose-betting-platform__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-how-to-choose-betting-platform__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-how-to-choose-betting-platform__content-section {
    padding: 40px 15px;
  }

  .page-how-to-choose-betting-platform__section-title {
    font-size: 1.8em;
  }

  .page-how-to-choose-betting-platform__grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-how-to-choose-betting-platform__card {
    padding: 25px;
    min-height: auto;
  }

  .page-how-to-choose-betting-platform__card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px;
  }

  .page-how-to-choose-betting-platform__image-left-text-right,
  .page-how-to-choose-betting-platform__image-right-text-left {
    flex-direction: column;
    gap: 30px;
  }

  .page-how-to-choose-betting-platform__image-left-text-right img,
  .page-how-to-choose-betting-platform__image-right-text-left img {
    order: unset !important; /* Reset order for mobile */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 250px;
  }
  
  .page-how-to-choose-betting-platform__text-content {
    width: 100%;
  }

  .page-how-to-choose-betting-platform__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-how-to-choose-betting-platform__faq-question h3 {
    font-size: 1em;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-how-to-choose-betting-platform__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-how-to-choose-betting-platform__faq-answer {
    padding: 0 15px;
  }
  
  .page-how-to-choose-betting-platform__faq-item.active .page-how-to-choose-betting-platform__faq-answer {
    padding: 15px !important;
  }

  /* General image and container responsive rules */
  .page-how-to-choose-betting-platform img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-how-to-choose-betting-platform__section,
  .page-how-to-choose-betting-platform__card,
  .page-how-to-choose-betting-platform__container,
  .page-how-to-choose-betting-platform__bottom-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-how-to-choose-betting-platform__bottom-cta {
    flex-direction: column;
  }
}