.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: var(--background-color, #FFFFFF);
}

.page-cockfighting__dark-bg {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-cockfighting__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-cockfighting__text-center {
  text-align: center;
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure spacing below fixed header */
  gap: 40px;
  flex-wrap: wrap;
}

.page-cockfighting__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-cockfighting__hero-title {
  font-size: 3em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #F0F0F0;
  text-align: left;
}

.page-cockfighting__hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-cockfighting__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__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;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background-color: #EA7C07; /* Login color */
  color: #FFFFFF;
  border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
  background-color: #d46b00;
  border-color: #d46b00;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #FFFFFF;
  color: #26A9E0;
}

.page-cockfighting__light-bg .page-cockfighting__btn-secondary {
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-cockfighting__light-bg .page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

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

/* Video Section */
.page-cockfighting__video-section {
  position: relative;
  padding: 60px 20px;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-link {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-cockfighting__video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay */
  transition: background 0.3s ease;
  pointer-events: none; /* Allow click to pass through to video-link */
}

.page-cockfighting__video-link:hover .page-cockfighting__video-overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* Features Section */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__feature-card {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__feature-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__feature-text {
  font-size: 1em;
  color: #555555;
}

/* Types Section */
.page-cockfighting__types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__type-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__type-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__type-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-cockfighting__type-text {
  font-size: 1em;
  color: #E0E0E0;
}

/* Guide Section */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-cockfighting__guide-item {
  text-align: center;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  background-color: #FFFFFF;
  transition: transform 0.3s ease;
}

.page-cockfighting__guide-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__guide-image {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 8px;
}

.page-cockfighting__guide-step-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__guide-text {
  font-size: 0.95em;
  color: #555555;
}

.page-cockfighting__guide-text a {
  color: #EA7C07;
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__guide-text a:hover {
  text-decoration: underline;
}

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

.page-cockfighting__promotion-card {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__promotion-card:hover {
  transform: translateY(-5px);
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__promotion-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-cockfighting__promotion-title {
  font-size: 1.5em;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-text {
  font-size: 1em;
  color: #E0E0E0;
  margin-bottom: 20px;
}

/* Security Section */
.page-cockfighting__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

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

.page-cockfighting__security-item:hover {
  transform: translateY(-5px);
}

.page-cockfighting__security-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
}

.page-cockfighting__security-item-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-cockfighting__security-item-text {
  font-size: 1em;
  color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Plus to X */
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  color: #E0E0E0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large value */
  padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  padding: 60px 20px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__hero-content,
  .page-cockfighting__hero-image-wrapper {
    max-width: 100%;
  }

  .page-cockfighting__hero-content {
    order: 2;
  }

  .page-cockfighting__hero-image-wrapper {
    order: 1;
    margin-bottom: 40px;
  }

  .page-cockfighting__hero-title,
  .page-cockfighting__hero-description {
    text-align: center;
  }

  .page-cockfighting__hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section-title {
    font-size: 2em;
  }

  .page-cockfighting__hero-title {
    font-size: 2.2em;
  }

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

  .page-cockfighting__content-area {
    padding: 20px 15px;
  }

  /* Images responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-section,
  .page-cockfighting__video-section,
  .page-cockfighting__features-section,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__security-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important; /* Handled by section padding */
    padding-right: 0 !important; /* Handled by section padding */
  }

  /* Buttons responsive */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-buttons,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }

  .page-cockfighting__faq-answer {
    padding: 10px 20px;
  }
}

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__types-grid,
  .page-cockfighting__guide-steps,
  .page-cockfighting__promotions-grid,
  .page-cockfighting__security-grid {
    grid-template-columns: 1fr;
  }
}