/* style/cockfighting.css */

/* Base styles and variables */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #ffffff;
  --background-dark: #1a1a1a; /* From shared.css body background */
  --register-button-bg: #C30808;
  --login-button-bg: #C30808;
  --register-login-font: #FFFF00;
}

.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(--background-dark);
}

.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: bold;
  text-align: center;
  margin-bottom: 40px;
  color: var(--primary-color);
}

.page-cockfighting__section-title--white {
  color: var(--text-light);
}

.page-cockfighting__subsection-title {
  font-size: 1.8em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-cockfighting__subsection-title--white {
  color: var(--text-light);
}

.page-cockfighting__text--white {
  color: var(--text-light);
}

.page-cockfighting__list {
  list-style: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-cockfighting__list li {
  margin-bottom: 10px;
}

.page-cockfighting__list--white li {
  color: var(--text-light);
}

.page-cockfighting__list-ordered {
  list-style: decimal;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.page-cockfighting__list-ordered li {
  margin-bottom: 10px;
}

.page-cockfighting__list-ordered--white li {
  color: var(--text-light);
}

.page-cockfighting__dark-section {
  background-color: var(--primary-color);
  color: var(--text-light);
  padding: 60px 0;
}

.page-cockfighting__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 60px 0;
}

.page-cockfighting__light-bg p, .page-cockfighting__light-bg li {
  color: var(--text-dark);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
  cursor: pointer;
  max-width: 100%; /* Ensure responsiveness */
  box-sizing: border-box; /* Include padding in width */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
  background-color: var(--register-button-bg); /* Specific for Register */
  color: var(--register-login-font); /* Specific font for Register */
  border: 2px solid var(--register-button-bg);
  margin-right: 15px;
}

.page-cockfighting__btn-primary:hover {
  background-color: darken(var(--register-button-bg), 10%);
  border-color: darken(var(--register-button-bg), 10%);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-color);
}

.page-cockfighting__btn-primary--small {
  padding: 8px 15px;
  font-size: 0.9em;
  margin-top: 15px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-cockfighting__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-cockfighting__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 900px;
  padding: 20px;
}

.page-cockfighting__main-title {
  font-size: 3.5em;
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__description {
  font-size: 1.3em;
  color: var(--text-light);
  margin-bottom: 40px;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section p {
  margin-bottom: 15px;
}

/* Video Section */
.page-cockfighting__video-section {
  text-align: center;
  padding-top: 60px; /* Additional padding, header offset handled by hero */
  padding-bottom: 60px;
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 30px auto;
  background-color: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video-link-wrapper {
  display: block;
  position: relative;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.page-cockfighting__video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none; /* Allow click to pass through */
}

.page-cockfighting__video-play-overlay::after {
  content: '▶';
  font-size: 4em;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.page-cockfighting__card {
  background-color: var(--secondary-color);
  color: var(--text-dark);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__card-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-cockfighting__card-text--white {
  color: var(--text-light);
}

.page-cockfighting__card-title--white {
  color: var(--text-light);
}

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

.page-cockfighting__card--dark {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--text-light);
}

.page-cockfighting__card--dark .page-cockfighting__card-title {
  color: var(--text-light);
}

.page-cockfighting__card--dark p {
  color: var(--text-light);
}

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

.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-primary,
.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-secondary {
  margin-top: 20px;
  margin-right: 0;
}

.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-light);
}

.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-secondary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.page-cockfighting__promo-grid .page-cockfighting__card .page-cockfighting__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}


/* Guide Section */
.page-cockfighting__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting__guide-item {
  text-align: center;
  padding: 25px;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-cockfighting__guide-icon {
  width: 60px;
  height: 60px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-cockfighting__guide-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-cockfighting__guide-title--white {
  color: var(--text-light);
}

.page-cockfighting__guide-text--white {
  color: var(--text-light);
}

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

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-question:hover {
  background-color: darken(var(--primary-color), 5%);
}

.page-cockfighting__faq-title {
  margin: 0;
  font-size: 1.1em;
  color: var(--text-light);
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: var(--text-light);
}

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

.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 1000px !important; /* Sufficiently large */
  padding: 15px 20px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 0;
  color: var(--text-dark);
}

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

.page-cockfighting__cta-content {
  max-width: 800px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__main-title {
    font-size: 3em;
  }
  .page-cockfighting__description {
    font-size: 1.1em;
  }
}

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

  .page-cockfighting__hero-section {
    height: auto;
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-cockfighting__hero-content {
    padding: 15px;
  }

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

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

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

  .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
    width: 100% !important;
    margin-right: 0 !important;
  }

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

  .page-cockfighting__subsection-title {
    font-size: 1.5em;
  }

  .page-cockfighting__container {
    padding: 0 15px;
  }

  /* Image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Video responsiveness */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !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-section {
    padding-top: var(--header-offset, 120px) !important; /* Re-apply for video section */
  }

  /* Card image specific override to ensure it doesn't shrink too much if its container has specific width */
  .page-cockfighting__card-image {
    height: 200px; /* Adjust height for mobile cards */
  }

  .page-cockfighting__advantage-grid,
  .page-cockfighting__hall-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__guide-steps {
    grid-template-columns: 1fr;
  }

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

  .page-cockfighting__faq-question {
    padding: 12px 15px;
  }

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

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

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__subsection-title {
    font-size: 1.3em;
  }
}