/* style/cockfighting.css */

/* Custom Colors */
:root {
  --cockfighting-bg: #08160F;
  --cockfighting-card-bg: #11271B;
  --cockfighting-text-main: #F2FFF6;
  --cockfighting-text-secondary: #A7D9B8;
  --cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --cockfighting-border: #2E7A4E;
  --cockfighting-glow: #57E38D;
  --cockfighting-gold: #F2C14E;
  --cockfighting-divider: #1E3A2A;
  --cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
  background-color: var(--cockfighting-bg); /* Body background handled by shared.css */
  color: var(--cockfighting-text-main);
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-bottom: 40px; /* Ensure space above footer */
}

.page-cockfighting__section {
  padding: 60px 20px;
  position: relative;
  z-index: 1;
}

.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--cockfighting-text-main);
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
}

.page-cockfighting__hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.page-cockfighting__hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.6); /* Darken video for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
  border-radius: 10px;
}

.page-cockfighting__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--cockfighting-gold);
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(1em, 1.5vw, 1.2em);
  margin-bottom: 30px;
  color: var(--cockfighting-text-main);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--cockfighting-btn-gradient);
  color: #ffffff; /* White text for primary button */
  border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 15px var(--cockfighting-glow);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--cockfighting-gold);
  color: var(--cockfighting-bg); /* Dark text on hover */
  box-shadow: 0 0 15px rgba(242, 193, 78, 0.5);
}

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

.page-cockfighting__container--centered {
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8em, 3vw, 2.8em);
  color: var(--cockfighting-gold);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.page-cockfighting__section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--cockfighting-glow);
  margin: 15px auto 0;
  border-radius: 2px;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  color: var(--cockfighting-text-secondary);
  text-align: center;
  max-width: 800px;
  margin: -20px auto 40px auto;
}

.page-cockfighting__content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.page-cockfighting__content-grid--reverse {
  grid-template-columns: 1fr 1fr;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
  order: 2;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
  order: 1;
}

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

.page-cockfighting__text-block p {
  margin-bottom: 15px;
  font-size: 1.05em;
  color: var(--cockfighting-text-secondary);
}

.page-cockfighting__text-block a {
  margin-top: 20px;
}

.page-cockfighting__sub-title {
  font-size: 1.5em;
  color: var(--cockfighting-gold);
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-cockfighting__image-wrapper {
  text-align: center;
}

.page-cockfighting__image-wrapper img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--cockfighting-border);
  display: block; /* Ensure it behaves as a block element */
  margin: 0 auto;
}

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

.page-cockfighting__card {
  background-color: var(--cockfighting-card-bg);
  border: 1px solid var(--cockfighting-border);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--cockfighting-glow);
}

.page-cockfighting__card-title {
  font-size: 1.6em;
  color: var(--cockfighting-gold);
  margin-bottom: 20px;
}

.page-cockfighting__card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid var(--cockfighting-deep-green);
}

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

.page-cockfighting__card .page-cockfighting__btn-primary {
  width: auto;
  padding: 10px 20px;
}

.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
  list-style-position: inside;
  margin-left: 20px;
  margin-bottom: 20px;
  color: var(--cockfighting-text-secondary);
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
  margin-bottom: 10px;
  font-size: 1.05em;
}

.page-cockfighting__ordered-list li strong {
  color: var(--cockfighting-gold);
}

.page-cockfighting__promotions .page-cockfighting__text-block p {
  color: var(--cockfighting-text-main);
}

.page-cockfighting__registration-cta {
  background-color: var(--cockfighting-deep-green);
  padding: 80px 20px;
  text-align: center;
  border-radius: 15px;
  margin: 60px auto;
  max-width: 1000px;
}

.page-cockfighting__registration-cta .page-cockfighting__section-title {
  color: var(--cockfighting-gold);
}

.page-cockfighting__registration-cta .page-cockfighting__section-description {
  color: var(--cockfighting-text-main);
  margin-bottom: 30px;
}

.page-cockfighting__registration-cta img {
  max-width: 800px;
  width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  border: 2px solid var(--cockfighting-glow);
}

.page-cockfighting__cta-buttons--centered {
  margin-top: 30px;
}

.page-cockfighting__faq-section {
  padding-bottom: 80px;
}

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

.page-cockfighting__faq-item {
  background-color: var(--cockfighting-card-bg);
  border: 1px solid var(--cockfighting-border);
  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: 18px 25px;
  cursor: pointer;
  font-weight: bold;
  color: var(--cockfighting-gold);
  font-size: 1.15em;
  background-color: var(--cockfighting-deep-green);
  border-bottom: 1px solid var(--cockfighting-border);
  user-select: none;
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question .page-cockfighting__faq-toggle {
  transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: var(--cockfighting-text-secondary);
  border-top: 1px solid var(--cockfighting-divider);
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

/* --- Responsive Styles --- */

@media (max-width: 992px) {
  .page-cockfighting__content-grid {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
    order: initial;
  }

  .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    order: initial;
  }

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

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

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

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

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 15px;
  }

  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

  .page-cockfighting__hero-content {
    max-width: 100%;
    padding: 15px;
  }

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

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    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;
  }

  .page-cockfighting__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-cockfighting__cards-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-cockfighting__card {
    padding: 25px;
  }

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

  .page-cockfighting__registration-cta {
    margin: 40px 15px;
    padding: 50px 15px;
  }

  .page-cockfighting__registration-cta img {
    max-width: 100%;
    width: 100%;
  }

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

  .page-cockfighting__image-wrapper,
  .page-cockfighting__card,
  .page-cockfighting__section,
  .page-cockfighting__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Prevent content overflow */
  }

  /* Video responsive force */
  .page-cockfighting video,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-cockfighting__hero-video-wrapper,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0px; /* Video is full width in hero */
    padding-right: 0px;
    overflow: hidden !important;
  }
  
  .page-cockfighting__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-title {
    font-size: 1.6em;
  }
  .page-cockfighting__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-cockfighting__faq-answer {
    padding: 15px 20px;
  }
}