:root {
  --primary-color: #26A9E0; /* 淡蓝色 */
  --secondary-color: #FFFFFF; /* 白色 */
  --text-color-dark: #333333;
  --text-color-light: #FFFFFF;
  --bg-color-light: #f8f8f8; /* A very light grey for subtle sections */
  --bg-color-dark: #26A9E0; /* Primary color as dark background */
  --login-color: #EA7C07; /* 登录按钮颜色 */
  --black-color: #000000;
  --border-color: #e0e0e0;
}

/* Base styles for the page content */
.page-resources-cockfighting-betting-tips {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color-dark); /* Default text color for light backgrounds */
  background-color: var(--secondary-color); /* Default page background */
}

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

.page-resources-cockfighting-betting-tips__section-title {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-resources-cockfighting-betting-tips__section-title--white {
  color: var(--text-color-light);
}

.page-resources-cockfighting-betting-tips__sub-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-resources-cockfighting-betting-tips__text-block {
  font-size: 17px;
  margin-bottom: 20px;
  line-height: 1.7;
}

.page-resources-cockfighting-betting-tips__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
}

.page-resources-cockfighting-betting-tips__list li {
  margin-bottom: 10px;
  font-size: 16px;
}

/* Hero Section */
.page-resources-cockfighting-betting-tips__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); /* Fixed header offset */
  background-color: var(--bg-color-dark); /* Use primary color as background */
  color: var(--text-color-light);
  overflow: hidden; /* Ensure content doesn't spill out */
}

.page-resources-cockfighting-betting-tips__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-resources-cockfighting-betting-tips__hero-image {
  width: 100%;
  margin-bottom: 30px;
  position: relative;
  z-index: 1; /* Place image behind content for potential overlap */
}

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

.page-resources-cockfighting-betting-tips__hero-content {
  position: relative;
  z-index: 2; /* Content above image */
  text-align: center;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.page-resources-cockfighting-betting-tips__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  color: var(--text-color-light);
  line-height: 1.2;
}

.page-resources-cockfighting-betting-tips__lead-text {
  font-size: 20px;
  margin-bottom: 40px;
  line-height: 1.5;
  color: var(--text-color-light);
}

.page-resources-cockfighting-betting-tips__cta-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
}

.page-resources-cockfighting-betting-tips__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word; /* Break long words */
  max-width: 100%; /* Ensure button doesn't exceed container */
}

.page-resources-cockfighting-betting-tips__btn-primary {
  background: var(--login-color); /* Use login color for primary CTA */
  color: var(--text-color-light);
  border: 2px solid var(--login-color);
}

.page-resources-cockfighting-betting-tips__btn-primary:hover {
  background: #c76806; /* Darken on hover */
  border-color: #c76806;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-cockfighting-betting-tips__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-resources-cockfighting-betting-tips__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-color-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Content Sections */
.page-resources-cockfighting-betting-tips__content-section {
  padding: 60px 0;
  background-color: var(--bg-color-light); /* Light background for content */
}

.page-resources-cockfighting-betting-tips__image-full {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  object-fit: cover;
}

/* FAQ Section */
.page-resources-cockfighting-betting-tips__faq-section {
  padding: 60px 0;
  background-color: var(--bg-color-dark); /* Dark background for FAQ */
  color: var(--text-color-light);
}

.page-resources-cockfighting-betting-tips__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--secondary-color); /* White background for individual FAQ items */
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.page-resources-cockfighting-betting-tips__faq-question:hover {
  background: var(--bg-color-light);
  border-color: var(--primary-color);
}

.page-resources-cockfighting-betting-tips__faq-question:active {
  background: var(--bg-color-light);
}

.page-resources-cockfighting-betting-tips__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color); /* FAQ question color */
}

.page-resources-cockfighting-betting-tips__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-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-toggle {
  color: var(--login-color); /* Change color when active */
  transform: rotate(45deg); /* Rotate for 'x' effect */
}

.page-resources-cockfighting-betting-tips__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.3s ease;
  padding: 0 25px;
  opacity: 0;
  color: var(--text-color-dark);
}

.page-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-answer {
  max-height: 2000px !important; /* Ensure enough height for content */
  padding: 20px 25px !important;
  opacity: 1;
  background: var(--bg-color-light); /* Light background for answer */
  border-radius: 0 0 8px 8px;
}

.page-resources-cockfighting-betting-tips__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

/* Contact CTA Section */
.page-resources-cockfighting-betting-tips__contact-cta {
  padding: 60px 0;
  text-align: center;
  background-color: var(--bg-color-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-cockfighting-betting-tips__main-title {
    font-size: 40px;
  }
  .page-resources-cockfighting-betting-tips__section-title {
    font-size: 28px;
  }
  .page-resources-cockfighting-betting-tips__sub-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-resources-cockfighting-betting-tips {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-resources-cockfighting-betting-tips__container {
    padding: 0 15px;
  }

  /* Hero Section */
  .page-resources-cockfighting-betting-tips__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    padding-bottom: 40px;
  }
  .page-resources-cockfighting-betting-tips__hero-image img {
    border-radius: 4px;
    width: 100% !important; /* Ensure full width */
    height: auto !important; /* Maintain aspect ratio */
    max-width: 100% !important;
    min-width: unset !important; /* Remove min-width on mobile */
    min-height: unset !important; /* Remove min-height on mobile */
  }
  .page-resources-cockfighting-betting-tips__main-title {
    font-size: 32px;
  }
  .page-resources-cockfighting-betting-tips__lead-text {
    font-size: 18px;
  }
  .page-resources-cockfighting-betting-tips__cta-group {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 15px; /* Add padding to prevent overflow */
  }
  .page-resources-cockfighting-betting-tips__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Full width for buttons */
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  /* Content Sections */
  .page-resources-cockfighting-betting-tips__content-section,
  .page-resources-cockfighting-betting-tips__faq-section,
  .page-resources-cockfighting-betting-tips__contact-cta {
    padding: 40px 0;
  }
  .page-resources-cockfighting-betting-tips__section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }
  .page-resources-cockfighting-betting-tips__sub-title {
    font-size: 20px;
  }
  .page-resources-cockfighting-betting-tips__text-block {
    font-size: 16px;
  }
  .page-resources-cockfighting-betting-tips__image-full {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 20px auto;
    min-width: unset !important; /* Remove min-width on mobile */
    min-height: unset !important; /* Remove min-height on mobile */
  }

  /* FAQ */
  .page-resources-cockfighting-betting-tips__faq-question {
    padding: 15px 20px;
    flex-wrap: wrap;
  }
  .page-resources-cockfighting-betting-tips__faq-question h3 {
    font-size: 16px;
    width: calc(100% - 40px); /* Adjust width for toggle */
  }
  .page-resources-cockfighting-betting-tips__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-resources-cockfighting-betting-tips__faq-answer {
    padding: 0 20px;
  }
  .page-resources-cockfighting-betting-tips__faq-item.active .page-resources-cockfighting-betting-tips__faq-answer {
    padding: 15px 20px !important;
  }
}

/* Ensure images within content area are responsive and not too small */
.page-resources-cockfighting-betting-tips img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px; /* Minimum desktop size */
  min-height: 200px; /* Minimum desktop size */
}

/* Ensure images within content area are responsive and not too small */
.page-resources-cockfighting-betting-tips__image-full {
  min-width: 200px;
  min-height: 200px;
}

/* Global image reset for mobile */
@media (max-width: 768px) {
  .page-resources-cockfighting-betting-tips img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: unset !important; /* Remove min-width on mobile */
    min-height: unset !important; /* Remove min-height on mobile */
  }
  .page-resources-cockfighting-betting-tips__content-section,
  .page-resources-cockfighting-betting-tips__card,
  .page-resources-cockfighting-betting-tips__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* padding-left and padding-right already handled by .page-resources-cockfighting-betting-tips__container */
  }
}