/* style/cockfighting.css */

:root {
  --page-cockfighting-primary-color: #017439;
  --page-cockfighting-secondary-color: #FFFFFF;
  --page-cockfighting-text-dark: #333333;
  --page-cockfighting-text-light: #ffffff;
  --page-cockfighting-btn-register-bg: #C30808;
  --page-cockfighting-btn-register-text: #FFFF00;
  --page-cockfighting-body-bg: #0a0a0a; /* From shared.css, used for contrast calculation */
}

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--page-cockfighting-text-light); /* Body background is dark, so use light text */
  background-color: var(--page-cockfighting-body-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.page-cockfighting__section {
  padding: 60px 0;
}

.page-cockfighting__dark-section {
  background-color: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-light);
}

.page-cockfighting__section-title,
.page-cockfighting__subsection-title,
.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__feature-title,
.page-cockfighting__tip-title,
.page-cockfighting__faq-qtext,
.page-cockfighting__cta-title {
  color: var(--page-cockfighting-text-light);
  text-align: center;
  margin-bottom: 30px;
  font-weight: bold;
}

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

.page-cockfighting__subsection-title {
  font-size: 1.8em;
  text-align: left;
  margin-top: 40px;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting__section-text {
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  padding: 0 20px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  height: 100vh; /* Full viewport height */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--page-cockfighting-text-light);
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.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); /* Dark overlay for text readability */
  z-index: 2;
}

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

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

.page-cockfighting__hero-description {
  font-size: 1.4em;
  margin-bottom: 40px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

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

/* Buttons */
.page-cockfighting__btn-register,
.page-cockfighting__btn-login,
.page-cockfighting__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: none;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-register,
.page-cockfighting__btn-login {
  background-color: var(--page-cockfighting-btn-register-bg);
  color: var(--page-cockfighting-btn-register-text);
}

.page-cockfighting__btn-register:hover,
.page-cockfighting__btn-login:hover {
  background-color: #a30606; /* Slightly darker red */
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-primary:hover {
  background-color: #005a2d; /* Slightly darker green */
  transform: translateY(-2px);
}

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

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__feature-card,
.page-cockfighting__tip-card {
  background-color: rgba(255, 255, 255, 0.1); /* Light transparent background for dark sections */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  height: 100%; /* Ensure cards in a row have equal height */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

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

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

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__feature-title,
.page-cockfighting__tip-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: var(--page-cockfighting-text-light);
  flex-shrink: 0;
}

.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__feature-text,
.page-cockfighting__tip-text {
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  flex-grow: 1;
}

.page-cockfighting__step-card .page-cockfighting__btn-primary {
  margin-top: 20px;
  align-self: center;
  width: auto; /* Allow button to size based on content */
  max-width: 100%;
}

.page-cockfighting__guide-image,
.page-cockfighting__advantages-image,
.page-cockfighting__tips-image {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__faq-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--page-cockfighting-text-light);
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-qtext {
  flex-grow: 1;
  text-align: left;
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 20px;
  width: 20px;
  text-align: center;
}

.page-cockfighting__faq-answer {
  padding: 20px 30px;
  font-size: 1em;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  text-align: justify;
}

.page-cockfighting__faq-item details > summary {
  list-style: none;
}

.page-cockfighting__faq-item details > summary::-webkit-details-marker {
  display: none;
}

/* CTA Section */
.page-cockfighting__cta-section {
  background-color: var(--page-cockfighting-primary-color);
  padding: 80px 0;
  text-align: center;
}

.page-cockfighting__cta-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: var(--page-cockfighting-text-light);
}

.page-cockfighting__cta-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-title {
    font-size: 3em;
  }

  .page-cockfighting__hero-description {
    font-size: 1.2em;
  }

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

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

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    height: 70vh;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }

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

  .page-cockfighting__hero-description {
    font-size: 1em;
  }

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

  .page-cockfighting__btn-register,
  .page-cockfighting__btn-login,
  .page-cockfighting__btn-primary {
    width: 100% !important;
    max-width: 300px !important; /* Limit width for better mobile presentation */
    margin: 0 auto;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

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

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

  .page-cockfighting__subsection-title {
    font-size: 1.5em;
    padding-left: 10px;
  }

  .page-cockfighting__section-text {
    font-size: 0.95em;
    padding: 0 10px;
  }

  .page-cockfighting__card-grid,
  .page-cockfighting__steps-grid,
  .page-cockfighting__feature-grid,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card,
  .page-cockfighting__step-card,
  .page-cockfighting__feature-card,
  .page-cockfighting__tip-card {
    padding: 20px;
  }

  .page-cockfighting__card-title,
  .page-cockfighting__step-title,
  .page-cockfighting__feature-title,
  .page-cockfighting__tip-title {
    font-size: 1.2em;
  }

  .page-cockfighting__card-image {
    height: 200px;
  }

  .page-cockfighting__guide-image,
  .page-cockfighting__advantages-image,
  .page-cockfighting__tips-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-cockfighting__container {
    padding: 0 15px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

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

  .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__cta-section {
    padding: 60px 0;
  }

  .page-cockfighting__cta-title {
    font-size: 1.8em;
  }

  .page-cockfighting__cta-description {
    font-size: 1em;
  }

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

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

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

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

  .page-cockfighting__hero-description {
    font-size: 0.9em;
  }

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

  .page-cockfighting__faq-question {
    font-size: 1em;
  }

  .page-cockfighting__cta-title {
    font-size: 1.6em;
  }
}