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

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  min-height: 70vh;
  overflow: hidden;
  color: #FFFFFF; /* White text for dark background */
  background-color: #26A9E0; /* Primary brand color */
}

.page-cockfighting__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.page-cockfighting__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken video to ensure text contrast */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #FFFFFF;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

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

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

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

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

.page-cockfighting__section {
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  margin-bottom: 40px;
  color: inherit;
}

.page-cockfighting__section-intro {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 50px auto;
  color: inherit;
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-cockfighting__content-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: inherit;
}

.page-cockfighting__image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__image-wrapper--center {
  flex: none;
  margin-top: 40px;
}

.page-cockfighting__image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  display: block; /* Ensure no extra space below image */
}

.page-cockfighting__features-grid,
.page-cockfighting__bet-types-grid,
.page-cockfighting__tips-grid,
.page-cockfighting__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__feature-card,
.page-cockfighting__bet-card,
.page-cockfighting__tip-card,
.page-cockfighting__promo-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__light-bg .page-cockfighting__feature-card,
.page-cockfighting__light-bg .page-cockfighting__bet-card,
.page-cockfighting__light-bg .page-cockfighting__tip-card,
.page-cockfighting__light-bg .page-cockfighting__promo-card {
  background-color: #f8f8f8;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__feature-icon,
.page-cockfighting__bet-image,
.page-cockfighting__promo-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
}

.page-cockfighting__feature-title,
.page-cockfighting__bet-title,
.page-cockfighting__tip-title,
.page-cockfighting__promo-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: inherit;
}

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

.page-cockfighting__step-card {
  background-color: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: left;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.page-cockfighting__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #EA7C07;
  margin-bottom: 15px;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-cockfighting__btn-small {
  display: inline-block;
  padding: 8px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 1px solid #EA7C07;
  margin-top: auto; /* Push to bottom */
  transition: background-color 0.3s ease, border-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-small:hover {
  background-color: #d46f06;
  border-color: #d46f06;
}

.page-cockfighting__bet-tip,
.page-cockfighting__promo-note {
  font-style: italic;
  margin-top: 40px;
  color: inherit;
}

.page-cockfighting__promo-note a {
  color: #EA7C07;
  text-decoration: none;
}

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

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  background-color: #fcfcfc;
  color: #333333;
}

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

.page-cockfighting__faq-question:hover {
  background-color: #e5e5e5;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  font-size: 1.1em;
  color: inherit;
}

.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);
}

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

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

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
  color: inherit;
}

.page-cockfighting__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-cockfighting__conclusion-section {
  padding: 100px 20px;
}

.page-cockfighting__conclusion-text {
  font-size: 1.2em;
  max-width: 900px;
  margin: 0 auto 30px auto;
  color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__hero-title {
    font-size: 2.8em;
  }

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

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

  .page-cockfighting__content-grid {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile specific offset */
  }

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

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

  .page-cockfighting__hero-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95em;
  }

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

  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }

  .page-cockfighting__section-intro {
    font-size: 0.95em;
    margin-bottom: 40px;
  }

  .page-cockfighting__container {
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__hero-video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-video-wrapper,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-cockfighting__content-grid,
  .page-cockfighting__features-grid,
  .page-cockfighting__bet-types-grid,
  .page-cockfighting__tips-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__feature-card,
  .page-cockfighting__bet-card,
  .page-cockfighting__tip-card,
  .page-cockfighting__promo-card,
  .page-cockfighting__step-card {
    padding: 20px;
  }

  .page-cockfighting__faq-question,
  .page-cockfighting__faq-answer {
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px 15px;
  }

  .page-cockfighting__conclusion-text {
    font-size: 1em;
  }
}