/* style/cockfighting.css */

/* General styles for the cockfighting page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main); /* Default text color for dark body background */
  background-color: var(--deep-navy); /* Matches body background for consistency */
  line-height: 1.6;
}

/* Color variables from the palette */
:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B;
}

/* Section base styles */
.page-cockfighting__section {
  padding: 60px 20px;
  text-align: center;
}

.page-cockfighting__section.page-cockfighting__dark-section {
  background-color: var(--deep-navy); /* Ensure dark background for light text */
  color: var(--text-main);
}

.page-cockfighting__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px; /* Added for consistency on wider screens */
}

.page-cockfighting__section-title {
  font-size: 38px;
  color: var(--gold-color); /* Gold color for main titles */
  margin-bottom: 30px;
  font-weight: bold;
  line-height: 1.2;
}

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

.page-cockfighting__text-block {
  text-align: left;
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 900px;
  margin: 0 auto 30px auto;
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.page-cockfighting__text-block ul,
.page-cockfighting__text-block ol {
  margin-bottom: 20px;
  padding-left: 25px;
  color: var(--text-secondary);
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__text-block li {
  margin-bottom: 10px;
  color: var(--text-secondary);
}

.page-cockfighting__text-block strong {
  color: var(--text-main);
}

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

/* 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, header offset handled by body */
  background-color: var(--deep-navy); /* Match body background */
}

.page-cockfighting__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%; /* Ensure full width within max-width */
}

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

.page-cockfighting__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-cockfighting__main-title {
  font-size: clamp(32px, 4.5vw, 56px); /* Use clamp for H1 font size */
  color: var(--gold-color);
  margin-bottom: 20px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

/* CTA Buttons */
.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--button-gradient);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-cockfighting__cta-wrapper {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping for multiple buttons */
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 15px;
}

/* Feature Cards */
.page-cockfighting__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__feature-card {
  background-color: var(--card-bg); /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

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

/* Promotions */
.page-cockfighting__promo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__promo-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__promo-card p {
  color: var(--text-secondary);
  font-size: 16px;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
  align-self: flex-start;
  margin-top: auto; /* Push button to bottom */
}

/* How to Join Steps */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__step-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
  font-size: 22px;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting__step-card p {
  color: var(--text-secondary);
  font-size: 16px;
}

/* Commitment List */
.page-cockfighting__commitment-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 900px;
  margin: 30px auto;
}

.page-cockfighting__commitment-list li {
  background-color: var(--card-bg);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
}

.page-cockfighting__commitment-list li::before {
  content: '✓';
  color: var(--gold-color);
  font-weight: bold;
  font-size: 20px;
  flex-shrink: 0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
  background-color: var(--deep-navy); /* Ensure dark background for light text */
  color: var(--text-main);
}

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

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg); /* FAQ item background */
  color: var(--text-secondary);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-main); /* Question text color */
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
  background: rgba(255, 255, 255, 0.05); /* Lighter hover for dark background */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--text-main); /* Ensure question text is light */
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--gold-color); /* Gold color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: rgba(0, 0, 0, 0.2); /* Slightly darker background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-secondary);
  text-align: left;
}

/* Final CTA */
.page-cockfighting__cta-final {
  padding: 80px 20px;
  background-color: var(--primary-color); /* Use primary color for final CTA background */
  color: #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
  color: #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__description {
  color: #ffffff;
  margin-bottom: 50px;
}

/* Responsive design */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 32px;
  }
  .page-cockfighting__description {
    font-size: 16px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(28px, 4vw, 48px);
  }
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 30px;
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* Small top padding, header offset handled by body */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__hero-image img {
    border-radius: 4px;
  }
  
  .page-cockfighting__main-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .page-cockfighting__section {
    padding: 40px 15px;
  }
  
  .page-cockfighting__section-title {
    font-size: 28px;
    margin-bottom: 25px;
  }
  
  .page-cockfighting__description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .page-cockfighting__text-block {
    font-size: 15px;
  }

  /* Image responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Button responsive */
  .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; /* Ensure internal padding for text */
    padding-right: 15px; /* Ensure internal padding for text */
  }
  
  .page-cockfighting__cta-wrapper,
  .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-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
  }

  .page-cockfighting__features-grid,
  .page-cockfighting__promo-cards,
  .page-cockfighting__steps-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
  .page-cockfighting__faq-qtext { font-size: 15px; }
  details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }
}