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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-cockfighting-text-main); /* Default text color for dark background */
  background-color: var(--page-cockfighting-bg);
}

/* General Section Styling */
.page-cockfighting__section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-cockfighting__dark-bg {
  background-color: var(--page-cockfighting-bg);
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
  background-color: #f8f8f8; /* A light background for contrast */
  color: #333333; /* Dark text for light background */
}

.page-cockfighting__section-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  margin-bottom: 30px;
  text-align: center;
  line-height: 1.2;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__text-dark {
  color: #333333;
}

.page-cockfighting__light-bg .page-cockfighting__paragraph,
.page-cockfighting__light-bg .page-cockfighting__link-inline {
  color: #555555;
}

.page-cockfighting__paragraph {
  margin-bottom: 20px;
  font-size: 17px;
  line-height: 1.7;
  color: var(--page-cockfighting-text-main);
}

.page-cockfighting__highlight {
  color: var(--page-cockfighting-gold);
  font-weight: bold;
}

.page-cockfighting__link-inline {
  color: var(--page-cockfighting-secondary);
  text-decoration: underline;
}

.page-cockfighting__link-inline:hover {
  color: var(--page-cockfighting-primary);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  overflow: hidden;
  min-height: 500px; /* Ensure hero section has a minimum height */
}

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

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast, not color change */
}

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

.page-cockfighting__main-title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 800;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-button-gradient);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: var(--page-cockfighting-secondary);
  border-color: var(--page-cockfighting-secondary);
}

.page-cockfighting__btn-secondary:hover {
  background-color: var(--page-cockfighting-secondary);
  color: #ffffff;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 16px;
}

.page-cockfighting__btn-large {
  padding: 18px 35px;
  font-size: 20px;
}

/* Image Content */
.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 40px auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Default max-width for content images */
  min-width: 200px; /* Ensure images are not too small */
}

/* Step by Step */
.page-cockfighting__step-by-step {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.page-cockfighting__step-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--page-cockfighting-primary);
  margin-bottom: 15px;
}

/* Betting Types */
.page-cockfighting__betting-types {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.page-cockfighting__betting-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 25px;
  border-radius: 10px;
  border: 1px solid var(--page-cockfighting-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__betting-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--page-cockfighting-gold);
  margin-bottom: 10px;
}

/* Tips List */
.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__tips-item {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

.page-cockfighting__tips-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--page-cockfighting-primary);
  margin-bottom: 10px;
}

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

.page-cockfighting__feature-card {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid var(--page-cockfighting-border);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.page-cockfighting__feature-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 15px;
}

/* Promo List & Responsible Gaming List */
.page-cockfighting__promo-list,
.page-cockfighting__responsible-gaming-list {
  list-style: disc;
  padding-left: 25px;
  margin-top: 30px;
}

.page-cockfighting__promo-item,
.page-cockfighting__responsible-gaming-item {
  margin-bottom: 10px;
  font-size: 17px;
  color: inherit;
}

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

.page-cockfighting__faq-item {
  background-color: #ffffff;
  margin-bottom: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  color: #333333;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  list-style: none; /* For details/summary */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
  background-color: var(--page-cockfighting-primary);
  color: #ffffff;
  border-bottom-color: var(--page-cockfighting-primary);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  color: #ffffff;
}

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

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #333333;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 16px;
  color: #555555;
}

/* CTA Section */
.page-cockfighting__cta-section {
  text-align: center;
  padding: 80px 20px;
  background-color: var(--page-cockfighting-deep-green);
  border-top: 5px solid var(--page-cockfighting-primary);
}

.page-cockfighting__cta-title {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  margin-bottom: 20px;
}

.page-cockfighting__cta-description {
  font-size: 18px;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

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

  .page-cockfighting__main-title {
    font-size: clamp(28px, 4.5vw, 50px);
  }

  .page-cockfighting__description {
    font-size: clamp(16px, 2vw, 20px);
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
  }

  .page-cockfighting__step-by-step,
  .page-cockfighting__betting-types,
  .page-cockfighting__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
}

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

  .page-cockfighting__hero-section {
    padding: 30px 15px;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(24px, 7vw, 40px);
  }

  .page-cockfighting__description {
    font-size: clamp(15px, 2.5vw, 18px);
  }

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

  .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;
    overflow: hidden !important;
  }

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

  .page-cockfighting__hero-image-wrapper,
  .page-cockfighting__image-content,
  .page-cockfighting__step-item,
  .page-cockfighting__betting-item,
  .page-cockfighting__feature-card,
  .page-cockfighting__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__section,
  .page-cockfighting__content-area,
  .page-cockfighting__cta-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important; 
  }

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

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

  .page-cockfighting__section-title,
  .page-cockfighting__cta-title {
    font-size: 28px;
  }
}