.page-cockfighting {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main-color, #F2FFF6); /* Default to light text on dark background */
  background-color: var(--background-color, #08160F); /* Dark background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding: 10px 0 60px; /* Small top padding, larger bottom for content */
  text-align: center;
  overflow: hidden;
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative; /* Ensure content is above any background effects */
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.page-cockfighting__hero-description {
  font-size: 1.15rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin-bottom: 30px;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff; /* White text for contrast */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
  transform: translateY(-2px);
  background: var(--deep-green-color, #0A4B2C);
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__match-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  padding: 80px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--background-color, #08160F);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__light-bg {
  background-color: var(--card-bg-color, #11271B);
  color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-color, #F2C14E);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 25px;
  color: var(--text-secondary-color, #A7D9B8);
  text-align: justify;
}

.page-cockfighting__text-block:last-of-type {
  margin-bottom: 0;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin: 40px auto;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Gameplay Section */
.page-cockfighting__features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin: 40px 0;
}

.page-cockfighting__feature-item {
  background-color: var(--card-bg-color, #11271B);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-title {
  font-size: 1.4rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-cockfighting__feature-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-cockfighting__card {
  background-color: var(--background-color, #08160F);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__card-title {
  font-size: 1.5rem;
  color: var(--text-main-color, #F2FFF6);
  padding: 20px 20px 10px;
}

.page-cockfighting__card-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  padding: 0 20px 20px;
}

/* Strategy Section */
.page-cockfighting__strategy-list {
  list-style: none;
  padding: 0;
  margin: 40px 0;
}

.page-cockfighting__strategy-item {
  background-color: var(--card-bg-color, #11271B);
  padding: 25px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__strategy-item-title {
  font-size: 1.3rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 10px;
}

.page-cockfighting__strategy-item-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-cockfighting__advantage-card {
  background-color: var(--background-color, #08160F);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color, #2E7A4E);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__advantage-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain; /* Ensure icon fits */
}

.page-cockfighting__advantage-title {
  font-size: 1.4rem;
  color: var(--text-main-color, #F2FFF6);
  margin-bottom: 15px;
}

.page-cockfighting__advantage-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
}

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

.page-cockfighting__promotion-card {
  background-color: var(--card-bg-color, #11271B);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color, #2E7A4E);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__promotion-title {
  font-size: 1.5rem;
  color: var(--text-main-color, #F2FFF6);
  padding: 20px 20px 10px;
}

.page-cockfighting__promotion-description {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-cockfighting__promotion-button {
  margin: 20px;
}

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

.page-cockfighting__faq-item {
  background-color: var(--background-color, #08160F);
  border: 1px solid var(--divider-color, #1E3A2A);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main-color, #F2FFF6);
  transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-cockfighting__faq-item summary:hover {
  background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--gold-color, #F2C14E);
}

.page-cockfighting__faq-answer {
  padding: 15px 20px 20px;
  background-color: var(--card-bg-color, #11271B);
  border-top: 1px solid var(--divider-color, #1E3A2A);
}

.page-cockfighting__faq-answer p {
  font-size: 1rem;
  color: var(--text-secondary-color, #A7D9B8);
  margin: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
  text-align: center;
  padding-top: 60px;
  padding-bottom: 80px;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
  margin-bottom: 20px;
}

.page-cockfighting__cta-final-section .page-cockfighting__text-block {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    min-height: 500px;
    padding-bottom: 40px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

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

  .page-cockfighting__introduction-section,
  .page-cockfighting__gameplay-section,
  .page-cockfighting__match-types-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 60px 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

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

  .page-cockfighting__container {
    padding: 0 15px;
  }

  .page-cockfighting__hero-section {
    min-height: 400px;
    padding-bottom: 30px;
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__hero-image-wrapper {
    margin-bottom: 20px;
  }

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
    margin-bottom: 15px;
  }

  .page-cockfighting__hero-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting__introduction-section,
  .page-cockfighting__gameplay-section,
  .page-cockfighting__match-types-section,
  .page-cockfighting__strategy-section,
  .page-cockfighting__advantages-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-final-section {
    padding: 40px 0;
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 1rem;
  }

  .page-cockfighting__image-content,
  .page-cockfighting__card-image,
  .page-cockfighting__promotion-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-cockfighting__card,
  .page-cockfighting__promotion-card,
  .page-cockfighting__feature-item,
  .page-cockfighting__advantage-card {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting__advantage-icon {
    width: 200px !important;
    height: 200px !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1rem;
    padding: 15px;
  }
}

/* Global image responsiveness for content areas */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-cockfighting__hero-section .page-cockfighting__hero-image {
  filter: brightness(0.7);
}

/* Ensure content sections and cards handle images without overflow */
.page-cockfighting__introduction-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__match-types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-cockfighting__card-grid,
.page-cockfighting__promotions-grid,
.page-cockfighting__advantages-grid,
.page-cockfighting__features-list {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

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

/* Apply custom colors to specific elements */
.page-cockfighting__dark-section {
  background-color: var(--background-color);
}

.page-cockfighting__light-bg {
  background-color: var(--card-bg-color);
}

.page-cockfighting__section-title {
  color: var(--gold-color);
}

.page-cockfighting__main-title,
.page-cockfighting__feature-title,
.page-cockfighting__card-title,
.page-cockfighting__strategy-item-title,
.page-cockfighting__advantage-title,
.page-cockfighting__promotion-title,
.page-cockfighting__faq-item summary {
  color: var(--text-main-color);
}

.page-cockfighting__hero-description,
.page-cockfighting__text-block,
.page-cockfighting__feature-description,
.page-cockfighting__card-description,
.page-cockfighting__strategy-item-description,
.page-cockfighting__advantage-description,
.page-cockfighting__promotion-description,
.page-cockfighting__faq-answer p {
  color: var(--text-secondary-color);
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
}

.page-cockfighting__btn-secondary {
  background: var(--card-bg-color);
  color: var(--text-main-color);
  border-color: var(--border-color);
}

.page-cockfighting__feature-item,
.page-cockfighting__card,
.page-cockfighting__advantage-card,
.page-cockfighting__promotion-card,
.page-cockfighting__strategy-item {
  border-color: var(--border-color);
}

.page-cockfighting__faq-item {
  border-color: var(--divider-color);
}

.page-cockfighting__faq-toggle {
  color: var(--gold-color);
}

.page-cockfighting__faq-answer {
  border-top-color: var(--divider-color);
}

/* Ensure all video and button responsiveness */
.page-cockfighting video,
.page-cockfighting__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__video-section,
.page-cockfighting__video-container,
.page-cockfighting__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important;
  }

  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .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__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;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-cockfighting__cta-buttons {
    display: flex;
    flex-direction: column;
  }
}