/* style/cockfighting.css */

/* Custom Colors */
:root {
  --page-cockfighting-primary-color: #11A84E;
  --page-cockfighting-secondary-color: #22C768;
  --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --page-cockfighting-card-bg: #11271B;
  --page-cockfighting-background: #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;
}

/* Global Page Styles (scoped to .page-cockfighting) */
.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-background);
}

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

.page-cockfighting__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  color: var(--page-cockfighting-text-secondary);
  text-align: justify;
}

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

.page-cockfighting__cta-single {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  text-align: center;
  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; /* Always white for primary button */
  border: none;
  box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-primary-color);
  color: #ffffff;
  transform: translateY(-2px);
}

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

.page-cockfighting__light-bg {
  background-color: #0d1e15; /* A slightly lighter dark green for contrast */
  color: var(--page-cockfighting-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 80px;
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  max-height: 70vh;
  margin-bottom: 40px;
}

.page-cockfighting__hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 20px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: 800;
  color: var(--page-cockfighting-gold);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.2em;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* About Section */
.page-cockfighting__about-section {
  padding: 80px 0;
}

.page-cockfighting__features-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-cockfighting__feature-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 20px;
  border-radius: 8px;
  color: var(--page-cockfighting-text-secondary);
  border: 1px solid var(--page-cockfighting-border);
  font-size: 1.05em;
}

.page-cockfighting__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 8px;
  object-fit: cover;
}

/* Types Section */
.page-cockfighting__types-section {
  padding: 80px 0;
}

.page-cockfighting__type-card {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid var(--page-cockfighting-border);
}

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

.page-cockfighting__type-description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.05em;
}

/* Betting Guide Section */
.page-cockfighting__betting-guide-section {
  padding: 80px 0;
}

.page-cockfighting__step-card {
  background-color: var(--page-cockfighting-card-bg);
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 25px;
  border: 1px solid var(--page-cockfighting-border);
}

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

.page-cockfighting__step-description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.05em;
}

.page-cockfighting__step-description a {
  color: var(--page-cockfighting-gold);
  text-decoration: underline;
}

.page-cockfighting__step-description a:hover {
  color: var(--page-cockfighting-glow);
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding: 80px 0;
}

.page-cockfighting__tips-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-cockfighting__tip-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: var(--page-cockfighting-text-secondary);
  border: 1px solid var(--page-cockfighting-border);
  font-size: 1.05em;
}

.page-cockfighting__tip-item strong {
  color: var(--page-cockfighting-primary-color);
}

/* Schedule Section */
.page-cockfighting__schedule-section {
  padding: 80px 0;
}

.page-cockfighting__schedule-table {
  margin-top: 40px;
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__table-header,
.page-cockfighting__table-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr 2fr 1fr;
  padding: 15px 20px;
  border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__table-header {
  background-color: var(--page-cockfighting-deep-green);
  font-weight: 700;
  color: var(--page-cockfighting-text-main);
  font-size: 1.1em;
}

.page-cockfighting__table-row {
  color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__table-row:last-child {
  border-bottom: none;
}

.page-cockfighting__status-live {
  color: var(--page-cockfighting-glow);
  font-weight: 600;
}

.page-cockfighting__status-upcoming {
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__schedule-note {
  text-align: center;
  margin-top: 30px;
  font-style: italic;
  color: var(--page-cockfighting-text-secondary);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
  padding: 80px 0;
}

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

.page-cockfighting__promo-card {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 20px;
}

.page-cockfighting__promo-title {
  font-size: 1.6em;
  color: var(--page-cockfighting-primary-color);
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-cockfighting__promo-description {
  color: var(--page-cockfighting-text-secondary);
  font-size: 1em;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 20px;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
  padding: 80px 0;
}

.page-cockfighting__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.page-cockfighting__benefit-item {
  background-color: var(--page-cockfighting-card-bg);
  padding: 20px;
  border-radius: 8px;
  color: var(--page-cockfighting-text-secondary);
  border: 1px solid var(--page-cockfighting-border);
  font-size: 1.05em;
}

.page-cockfighting__benefit-item strong {
  color: var(--page-cockfighting-gold);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding: 80px 0;
}

.page-cockfighting__faq-item {
  background-color: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

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

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

.page-cockfighting__faq-question:hover {
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  color: var(--page-cockfighting-text-secondary);
  font-size: 1.05em;
}

.page-cockfighting__faq-answer p {
  margin: 0;
}

.page-cockfighting__faq-answer a {
  color: var(--page-cockfighting-gold);
  text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
  color: var(--page-cockfighting-glow);
}

/* CTA Section */
.page-cockfighting__cta-section {
  padding: 80px 0;
  text-align: center;
}

/* Image responsiveness */
.page-cockfighting img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-cockfighting__container,
  .page-cockfighting__hero-content,
  .page-cockfighting__cta-buttons,
  .page-cockfighting__cta-single {
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

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

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

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

  .page-cockfighting__description {
    font-size: 1em;
  }

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

  .page-cockfighting__text-block {
    font-size: 0.95em;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin-bottom: 10px; /* Add space between stacked buttons */
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 0; /* Managed by margin-bottom on buttons */
  }

  .page-cockfighting__features-list,
  .page-cockfighting__promotion-cards,
  .page-cockfighting__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__table-header,
  .page-cockfighting__table-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.9em;
    padding: 10px 15px;
  }

  .page-cockfighting__table-header span:nth-child(3),
  .page-cockfighting__table-header span:nth-child(4),
  .page-cockfighting__table-row span:nth-child(3),
  .page-cockfighting__table-row span:nth-child(4) {
    display: none;
  }

  .page-cockfighting__table-header span:nth-child(1),
  .page-cockfighting__table-row span:nth-child(1) {
    grid-column: span 2;
  }

  .page-cockfighting__table-header span:nth-child(2),
  .page-cockfighting__table-row span:nth-child(2) {
    text-align: right;
  }

  /* Ensure all images are responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Ensure all sections/containers containing images are also responsive */
  .page-cockfighting__hero-section,
  .page-cockfighting__about-section,
  .page-cockfighting__types-section,
  .page-cockfighting__betting-guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__schedule-section,
  .page-cockfighting__promotions-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section,
  .page-cockfighting__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0 !important; /* Remove section padding, container handles it */
    padding-right: 0 !important;
  }

  .page-cockfighting__type-card, .page-cockfighting__step-card, .page-cockfighting__tip-item, .page-cockfighting__faq-item {
    padding: 15px;
  }

  .page-cockfighting__promo-card {
    padding-bottom: 15px;
  }

  .page-cockfighting__promo-title {
    font-size: 1.4em;
  }

  .page-cockfighting__promo-description {
    font-size: 0.95em;
  }

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

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

  .page-cockfighting__section-title {
    padding-left: 15px;
    padding-right: 15px;
  }
}