.page-cockfighting {
  background-color: var(--background-color, #08160F); /* Fallback to custom color if shared doesn't define */
  color: var(--text-main, #F2FFF6); /* Default text color for the page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Add some padding at the bottom */
}

/* Ensure body padding-top is handled by shared.css, no duplicate here */

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

.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 0 60px; /* Small top padding, larger bottom padding */
  background-color: var(--background-color, #08160F);
}

.page-cockfighting__hero-image {
  width: 100%;
  max-width: 1200px; /* Constrain image width */
  height: auto;
  object-fit: cover;
  margin-bottom: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
  max-width: 800px;
  padding: 0 20px;
}

.page-cockfighting__hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-cockfighting__button {
  display: inline-block;
  padding: 15px 30px;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  margin: 0 10px;
}

.page-cockfighting__button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-cockfighting__section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

.page-cockfighting__section:nth-of-type(even) {
  background-color: var(--card-bg, #11271B); /* Alternate background for sections */
}

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

.page-cockfighting__section-header h2 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--text-main, #F2FFF6);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary, #A7D9B8);
  max-width: 800px;
  margin: 0 auto;
}

.page-cockfighting__image-content-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-cockfighting__image-content-layout--reverse {
  flex-direction: row-reverse;
}

.page-cockfighting__image-wrapper,
.page-cockfighting__text-content {
  flex: 1;
  min-width: 300px;
}

.page-cockfighting__image-wrapper img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__text-content h3 {
  font-size: 1.8rem;
  color: var(--text-main, #F2FFF6);
  margin-bottom: 20px;
  font-weight: 600;
}

.page-cockfighting__text-content p {
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
}

.page-cockfighting__list-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 10px;
  color: var(--text-secondary, #A7D9B8);
  font-size: 1rem;
}

.page-cockfighting__list-item::before {
  content: '✔';
  position: absolute;
  left: 0;
  color: var(--glow, #57E38D);
  font-weight: bold;
}

.page-cockfighting__grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  padding: 0 20px;
}

.page-cockfighting__card {
  background-color: var(--card-bg, #11271B);
  border: 1px solid var(--border, #2E7A4E);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  color: var(--text-main, #F2FFF6);
}

.page-cockfighting__card h3 {
  font-size: 1.5rem;
  color: var(--gold, #F2C14E);
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__card p {
  font-size: 0.95rem;
  color: var(--text-secondary, #A7D9B8);
  margin-bottom: 15px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  background-color: var(--card-bg, #11271B);
  text-align: center;
}

.page-cockfighting__video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  width: 100%; /* Ensure width is 100% for desktop too */
  background: #000;
  border-radius: 10px;
  margin: 0 auto 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer; /* Indicate it's clickable */
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 60px 0;
  background-color: var(--background-color, #08160F);
}

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

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

.page-cockfighting__faq-item summary { /* For <details> tag */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main, #F2FFF6);
  list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 15px;
  color: var(--glow, #57E38D);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  font-size: 1rem;
  color: var(--text-secondary, #A7D9B8);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 2000px; /* Large enough for content */
  padding-top: 10px;
}

/* Conclusion CTA Section */
.page-cockfighting__conclusion-cta-section {
  text-align: center;
  padding: 60px 20px;
  background-color: var(--card-bg, #11271B);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-cockfighting__hero-content h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }

  .page-cockfighting__image-content-layout {
    flex-direction: column;
  }

  .page-cockfighting__image-content-layout--reverse {
    flex-direction: column; /* Revert order for mobile */
  }

  .page-cockfighting__image-wrapper,
  .page-cockfighting__text-content {
    min-width: unset;
    width: 100%;
  }

  .page-cockfighting__grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding: 10px 0 40px;
  }

  .page-cockfighting__hero-content h1 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

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

  .page-cockfighting__button {
    padding: 12px 25px;
    font-size: 1rem;
    margin: 0 !important; /* Remove horizontal margins */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  
  .page-cockfighting__button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

  .page-cockfighting__section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .page-cockfighting__text-content h3 {
    font-size: 1.5rem;
  }

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

  .page-cockfighting__faq-answer {
    padding: 0 15px 15px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important; /* Ensure padding/border is included in width */
  }

  /* Mobile video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !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-container {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile if needed, e.g., 4:3 */
  }

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

  /* General content container padding for mobile */
  .page-cockfighting__container,
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__text-content,
  .page-cockfighting__image-wrapper {
    padding-left: 15px !important;
    padding-right: 15px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}