:root {
  --m88bet-primary: #11A84E;
  --m88bet-secondary: #22C768;
  --m88bet-card-bg: #11271B;
  --m88bet-background: #08160F;
  --m88bet-text-main: #F2FFF6;
  --m88bet-text-secondary: #A7D9B8;
  --m88bet-border: #2E7A4E;
  --m88bet-glow: #57E38D;
  --m88bet-gold: #F2C14E;
  --m88bet-divider: #1E3A2A;
  --m88bet-deep-green: #0A4B2C;
  --m88bet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--m88bet-text-main);
  background-color: var(--m88bet-background);
  line-height: 1.6;
}

.page-cockfighting__section-header {
  text-align: center;
  margin-bottom: 40px;
  padding: 0 15px;
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--m88bet-gold);
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__section-description {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--m88bet-text-secondary);
  max-width: 900px;
  margin: 0 auto;
}

.page-cockfighting__text-block {
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: var(--m88bet-text-main);
}

/* Buttons */
.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  flex-wrap: wrap;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 180px;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--m88bet-button-gradient);
  color: #ffffff;
  border: 2px solid var(--m88bet-primary);
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
  transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--m88bet-primary);
  border: 2px solid var(--m88bet-primary);
  box-shadow: 0 4px 10px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--m88bet-primary);
  color: #ffffff;
  box-shadow: 0 6px 15px rgba(17, 168, 78, 0.4);
  transform: translateY(-2px);
}

/* Images */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 20px 60px;
  overflow: hidden;
  text-align: center;
  background-color: var(--m88bet-deep-green);
}

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

.page-cockfighting__hero-image {
  width: 100%;
  object-fit: cover;
  border-radius: 0;
}

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

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 64px);
  color: var(--m88bet-gold);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__hero-description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--m88bet-text-main);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Video Section */
.page-cockfighting__video-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* body already handles --header-offset */
  background-color: var(--m88bet-background);
}

.page-cockfighting__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  overflow: hidden;
}

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

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-cockfighting__video-caption {
  font-size: 16px;
  color: var(--m88bet-text-secondary);
  text-align: center;
  margin-top: 20px;
}

/* Content Area */
.page-cockfighting__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  background-color: var(--m88bet-background);
}

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

.page-cockfighting__feature-card {
  background-color: var(--m88bet-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--m88bet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--m88bet-glow);
}

.page-cockfighting__feature-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 50%;
  background-color: var(--m88bet-deep-green);
  padding: 10px;
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

.page-cockfighting__feature-title {
  font-size: 24px;
  color: var(--m88bet-text-main);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__feature-description {
  font-size: 16px;
  color: var(--m88bet-text-secondary);
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 60px 20px;
  background-color: var(--m88bet-deep-green);
}

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

.page-cockfighting__type-card {
  background-color: var(--m88bet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--m88bet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--m88bet-glow);
}

.page-cockfighting__type-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-bottom: 1px solid var(--m88bet-divider);
}

.page-cockfighting__type-title {
  font-size: 22px;
  color: var(--m88bet-gold);
  padding: 20px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__type-description {
  font-size: 16px;
  color: var(--m88bet-text-secondary);
  padding: 0 20px 20px;
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding: 60px 20px;
  background-color: var(--m88bet-background);
}

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

.page-cockfighting__guide-card {
  background-color: var(--m88bet-card-bg);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--m88bet-border);
}

.page-cockfighting__guide-icon {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  object-fit: contain;
  border-radius: 50%;
  background-color: var(--m88bet-deep-green);
  padding: 10px;
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.5);
}

.page-cockfighting__guide-title {
  font-size: 22px;
  color: var(--m88bet-text-main);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__guide-text {
  font-size: 16px;
  color: var(--m88bet-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 60px 20px;
  background-color: var(--m88bet-deep-green);
}

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

.page-cockfighting__promo-card {
  background-color: var(--m88bet-card-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--m88bet-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5), 0 0 15px var(--m88bet-glow);
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid var(--m88bet-divider);
}

.page-cockfighting__promo-title {
  font-size: 22px;
  color: var(--m88bet-gold);
  padding: 20px 20px 10px;
  font-weight: 700;
}

.page-cockfighting__promo-text {
  font-size: 16px;
  color: var(--m88bet-text-secondary);
  padding: 0 20px 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 20px;
  background-color: var(--m88bet-background);
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 40px auto 0;
}

.page-cockfighting__faq-item {
  background-color: var(--m88bet-card-bg);
  border: 1px solid var(--m88bet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-item[open] {
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.4), 0 0 15px var(--m88bet-glow);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 18px;
  font-weight: 600;
  color: var(--m88bet-text-main);
  cursor: pointer;
  background-color: var(--m88bet-deep-green);
  border-bottom: 1px solid var(--m88bet-divider);
}

.page-cockfighting__faq-question::-webkit-details-marker, /* Hide default arrow for Chrome/Safari */
.page-cockfighting__faq-question::marker { /* Hide default arrow for Firefox */
  display: none;
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  padding-right: 15px;
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  width: 24px;
  text-align: center;
  color: var(--m88bet-gold);
}

.page-cockfighting__faq-answer {
  padding: 20px;
  font-size: 16px;
  color: var(--m88bet-text-secondary);
  background-color: var(--m88bet-card-bg);
  border-top: 1px solid var(--m88bet-divider);
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-section {
  padding: 60px 20px;
  background-color: var(--m88bet-deep-green);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-cockfighting__responsible-image-wrapper {
  margin-top: 40px;
  max-width: 800px;
  width: 100%;
}

.page-cockfighting__responsible-image {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
  padding: 60px 20px;
  background-color: var(--m88bet-background);
  text-align: center;
}

/* --- Responsive Design --- */

/* All images and videos base responsive styles */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting video,
.page-cockfighting__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* Video container base responsive styles */
.page-cockfighting__video-section,
.page-cockfighting__video-container,
.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Button base responsive styles */
.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%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

/* Button container base responsive styles */
.page-cockfighting__cta-buttons,
.page-cockfighting__button-group,
.page-cockfighting__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-cockfighting__section-title {
    font-size: 32px;
  }

  .page-cockfighting__section-description {
    font-size: 16px;
  }

  .page-cockfighting__main-title {
    font-size: 40px;
  }

  .page-cockfighting__hero-description {
    font-size: 18px;
  }

  .page-cockfighting__cta-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: 16px;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__hero-section,
  .page-cockfighting__video-section,
  .page-cockfighting__content-area,
  .page-cockfighting__types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__responsible-gambling-section,
  .page-cockfighting__final-cta-section {
    padding: 30px 15px;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__feature-icon,
  .page-cockfighting__guide-icon {
    width: 80px;
    height: 80px;
  }

  .page-cockfighting__feature-title,
  .page-cockfighting__guide-title {
    font-size: 20px;
  }

  .page-cockfighting__type-title,
  .page-cockfighting__promo-title {
    font-size: 20px;
  }

  .page-cockfighting__faq-question {
    font-size: 16px;
    padding: 15px;
  }

  .page-cockfighting__faq-answer {
    font-size: 14px;
    padding: 15px;
  }
}