/* style/cockfighting.css */
:root {
  --primary-color: #FFD700;
  --secondary-color: #000080;
  --text-light: #ffffff;
  --text-dark: #333333;
  --bg-dark: #0a0a0a;
  --bg-light: #f9f9f9;
  --border-color: #e0e0e0;
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Default text color for dark body background */
  background-color: var(--bg-dark); /* Inherited from shared.css, ensures consistency */
}

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

/* Fixed Navbar Spacing */
.page-cockfighting__hero-section {
  padding-top: 120px; /* Adjust based on shared header height */
  padding-bottom: 60px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  text-align: center;
  background: linear-gradient(135deg, var(--secondary-color) 0%, #000050 100%);
  color: var(--text-light);
  padding: 80px 0;
  overflow: hidden;
}

.page-cockfighting__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-cockfighting__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

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

.page-cockfighting__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-cockfighting__btn-primary {
  background: var(--primary-color);
  color: var(--text-dark);
}

.page-cockfighting__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--primary-color);
  color: var(--text-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-cockfighting__section-title {
  font-size: 2.5em;
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 40px;
  line-height: 1.3;
}

.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

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

/* Light Background Sections */
.page-cockfighting__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: var(--text-dark);
}

/* Dark Background Sections */
.page-cockfighting__dark-bg {
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
  color: var(--primary-color);
}

.page-cockfighting__dark-bg .page-cockfighting__text-block {
  color: #f0f0f0;
}

/* Intro Section */
.page-cockfighting__intro-section {
  padding-top: 60px;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
  padding-top: 60px;
}

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

.page-cockfighting__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark bg */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background: #ffffff;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

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

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

.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: var(--secondary-color);
}

.page-cockfighting__card-image {
  max-width: 150px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
}

.page-cockfighting__card-description {
  font-size: 1em;
  color: #f0f0f0;
}

.page-cockfighting__light-bg .page-cockfighting__card-description {
  color: var(--text-dark);
}

/* Guide Section */
.page-cockfighting__guide-section {
  padding-top: 60px;
}

.page-cockfighting__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-cockfighting__step-item {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
}

.page-cockfighting__step-title {
  font-size: 1.5em;
  color: var(--secondary-color);
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__step-item p {
  font-size: 1.05em;
  color: var(--text-dark);
}

.page-cockfighting__step-item a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.page-cockfighting__step-item a:hover {
  text-decoration: underline;
}

.page-cockfighting__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* Tips Section */
.page-cockfighting__tips-section {
  padding-top: 60px;
}

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

.page-cockfighting__tips-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: #f0f0f0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__tips-title {
  font-size: 1.4em;
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__tips-item p {
  font-size: 1em;
  color: #f0f0f0;
}

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

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

.page-cockfighting__feature-card {
  background: #ffffff;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
}

.page-cockfighting__feature-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__feature-icon {
  max-width: 80px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
}

.page-cockfighting__feature-title {
  font-size: 1.6em;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-cockfighting__feature-description {
  font-size: 1em;
  color: var(--text-dark);
}

/* FAQ Section */
.page-cockfighting__faq-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: var(--text-dark);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none;
  color: var(--secondary-color);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 3em;
  }
  .page-cockfighting__section-title {
    font-size: 2em;
  }
  .page-cockfighting__hero-description,
  .page-cockfighting__text-block {
    font-size: 1em;
  }
  .page-cockfighting__card-title {
    font-size: 1.6em;
  }
  .page-cockfighting__feature-title {
    font-size: 1.4em;
  }
  .page-cockfighting__hero-section,
  .page-cockfighting__intro-section,
  .page-cockfighting__bet-types-section,
  .page-cockfighting__guide-section,
  .page-cockfighting__tips-section,
  .page-cockfighting__why-choose-section,
  .page-cockfighting__faq-section {
    padding: 40px 0;
  }
  .page-cockfighting__hero-section {
    padding-top: 100px; /* Adjust for tablet fixed header */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-top: 100px !important; /* Adjust for mobile fixed header */
    padding-bottom: 40px;
  }
  .page-cockfighting__main-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-description {
    font-size: 0.95em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-cockfighting__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
    padding-top: 30px;
  }
  .page-cockfighting__text-block {
    font-size: 0.9em;
    text-align: left;
  }
  .page-cockfighting__grid,
  .page-cockfighting__features-grid,
  .page-cockfighting__tips-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting__card,
  .page-cockfighting__feature-card,
  .page-cockfighting__tips-item,
  .page-cockfighting__step-item {
    padding: 20px;
  }
  .page-cockfighting__card-title {
    font-size: 1.4em;
  }
  .page-cockfighting__feature-title {
    font-size: 1.3em;
  }
  .page-cockfighting__tips-title {
    font-size: 1.2em;
  }
  .page-cockfighting__step-title {
    font-size: 1.3em;
  }
  .page-cockfighting__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin: 30px auto !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting__faq-question {
    padding: 15px;
  }
  .page-cockfighting__faq-question h3 {
    font-size: 15px;
  }
  .page-cockfighting__faq-toggle {
    font-size: 20px;
    width: 24px;
    height: 24px;
  }
  .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    padding: 15px !important;
  }
  .page-cockfighting__cta-center .page-cockfighting__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 25px !important;
    font-size: 1em !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-cockfighting__features-grid .page-cockfighting__feature-icon {
    max-width: 60px;
  }
}

/* Ensure all image containers are responsive */
.page-cockfighting__section, .page-cockfighting__card, .page-cockfighting__container {
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Color Contrast Fixes (if needed, though intelligent selection is applied) */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}