.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__section--introduction {
  background-color: #f9f9f9;
}

.page-cockfighting__section--betting-types {
  background-color: #ffffff;
}

.page-cockfighting__section--guide {
  background-color: #f9f9f9;
}

.page-cockfighting__section--promotions {
  background-color: var(--auxiliary-color); /* White background */
}

.page-cockfighting__section--support {
  background-color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: 36px;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-cockfighting__section-subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  color: #555555;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(135deg, #26A9E0, #FFFFFF);
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
}

.page-cockfighting__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__main-title {
  font-size: 48px;
  color: #000000; /* Darker color for contrast on light background */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 20px;
  color: #333333;
  margin-bottom: 30px;
  max-width: 800px;
}

.page-cockfighting__hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.page-cockfighting__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;
  word-wrap: break-word;
}

.page-cockfighting__cta-button--primary {
  background: var(--primary-color);
  color: #ffffff;
  border: 2px solid var(--primary-color);
}

.page-cockfighting__cta-button--primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--secondary {
  background: #EA7C07; /* Login color */
  color: #ffffff;
  border: 2px solid #EA7C07;
}

.page-cockfighting__cta-button--secondary:hover {
  background: #d46e00;
  border-color: #d46e00;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__center-button {
  text-align: center;
  margin-top: 40px;
}

/* Content Grid */
.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 40px;
}

.page-cockfighting__content-grid--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__content-text {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__content-text p {
  margin-bottom: 15px;
  color: #333333;
}

.page-cockfighting__content-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-cockfighting__content-image img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__text-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__text-link:hover {
  text-decoration: underline;
}

/* Lists */
.page-cockfighting__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-cockfighting__guide-list {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #333333;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  color: #333333;
}

/* Advantages Grid */
.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
  color: #ffffff;
}

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

.page-cockfighting__advantage-item {
  text-align: center;
  padding: 25px;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__advantage-item img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__advantage-title {
  font-size: 24px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-cockfighting__advantage-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* Promotions Grid */
.page-cockfighting__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__promotion-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promotion-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin: 20px 20px 10px 20px;
  font-weight: bold;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: #555555;
  margin: 0 20px 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__card-link {
  display: inline-block;
  padding: 12px 20px;
  background-color: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 0 0 10px 10px;
  font-weight: bold;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
}

.page-cockfighting__card-link:hover {
  background-color: #1e87c0;
}

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

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: #333333;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #333;
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 40px;
  }
  .page-cockfighting__section-title {
    font-size: 30px;
  }
  .page-cockfighting__description {
    font-size: 18px;
  }
  .page-cockfighting__content-grid {
    flex-direction: column;
  }
  .page-cockfighting__content-grid--reverse {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-cockfighting__container {
    padding: 0 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__hero-container {
    padding: 40px 15px;
  }
  .page-cockfighting__main-title {
    font-size: 32px;
  }
  .page-cockfighting__description {
    font-size: 16px;
  }
  .page-cockfighting__hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-cockfighting__content-grid {
    gap: 30px;
  }
  .page-cockfighting__content-image img,
  .page-cockfighting__advantage-item img,
  .page-cockfighting__promotion-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }
  .page-cockfighting__advantage-item {
    padding: 20px;
  }
  .page-cockfighting__advantage-title {
    font-size: 20px;
  }
  .page-cockfighting__promotion-card img {
    height: auto;
  }
  .page-cockfighting__card-title {
    font-size: 20px;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  .page-cockfighting__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 0 15px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  /* Ensure all content containers are constrained */
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__hero-container,
  .page-cockfighting__hero-actions,
  .page-cockfighting__content-grid,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-cockfighting__hero-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__hero-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}