/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Inherited from shared.css, ensure text contrast */
}

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

.page-cockfighting__section {
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-cockfighting__section-title {
  font-size: clamp(2.2rem, 4vw, 3rem); /* H1 rules applied to H2 for consistency as H1 is in hero */
  font-weight: 700;
  margin-bottom: 20px;
  color: #26A9E0;
  line-height: 1.2;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-cockfighting__text-block {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #f0f0f0;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
  overflow: hidden;
  color: #ffffff;
  text-align: center;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 700px; /* Limit height for hero image */
  overflow: hidden;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
  position: relative;
  z-index: 10;
  padding: 20px;
  max-width: 900px;
  margin-top: -150px; /* Pull content up over the image, but not covering text */
  background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text block */
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 font size with clamp */
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__hero-description {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #f0f0f0;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-view-match {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 1.1rem;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__btn-primary {
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-cockfighting__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-cockfighting__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
  background-color: #26A9E0;
  color: #FFFFFF;
  border: 1px solid #26A9E0;
  border-radius: 5px;
}

.page-cockfighting__btn-small:hover {
  background-color: #1a8cc2;
  border-color: #1a8cc2;
}

.page-cockfighting__btn-view-match {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 1px solid #EA7C07;
  padding: 10px 20px;
  font-size: 0.95rem;
  border-radius: 5px;
}

.page-cockfighting__btn-view-match:hover {
  background-color: #d16b06;
  border-color: #d16b06;
}

.page-cockfighting__btn-center {
  display: block;
  margin: 40px auto 0 auto;
  max-width: 300px;
}

/* Section specific styles */
.page-cockfighting__introduction-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-cockfighting__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.page-cockfighting__feature-item strong {
  color: #26A9E0;
}

.page-cockfighting__how-to-play-section {
  background-color: #1a1a1a; /* Lighter dark background for contrast */
  color: #f0f0f0;
}

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

.page-cockfighting__step-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #f0f0f0;
}

.page-cockfighting__step-card .page-cockfighting__step-title {
  color: #26A9E0;
  font-size: 1.4rem;
  margin-top: 0;
  margin-bottom: 15px;
}

.page-cockfighting__step-card .page-cockfighting__step-description {
  flex-grow: 1;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-cockfighting__image-wrapper {
  margin-top: 40px;
  margin-bottom: 40px;
}

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

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}

.page-cockfighting__content-image--small {
  max-width: 500px;
}

.page-cockfighting__matches-odds-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-cockfighting__video-section {
  margin-top: 40px;
  margin-bottom: 40px;
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
}

.page-cockfighting__video-link-wrapper {
  display: block;
  width: 100%;
  max-width: 960px; /* Max width for video container */
  margin: 20px auto;
  position: relative;
  cursor: pointer;
}

.page-cockfighting__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-cockfighting__video-caption {
  font-style: italic;
  color: #cccccc;
  margin-top: 10px;
}

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

.page-cockfighting__match-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: left;
  color: #f0f0f0;
}

.page-cockfighting__match-item p {
  margin-bottom: 10px;
  color: #cccccc;
}

.page-cockfighting__match-item strong {
  color: #26A9E0;
}

.page-cockfighting__promotions-section {
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-cockfighting__promotion-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-cockfighting__promotion-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-cockfighting__promotion-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-top: 0;
  margin-bottom: 10px;
}

.page-cockfighting__promotion-description {
  flex-grow: 1;
  margin-bottom: 20px;
  color: #cccccc;
}

.page-cockfighting__security-section {
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-cockfighting__feature-item-box {
  background: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  display: flex;
  flex-direction: column;
  color: #f0f0f0;
}

.page-cockfighting__feature-item-box .page-cockfighting__sub-title {
  color: #26A9E0;
  margin-top: 0;
}

.page-cockfighting__faq-section {
  background-color: #1a1a1a;
  color: #f0f0f0;
}

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

.page-cockfighting__faq-item {
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  color: #26A9E0;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #26A9E0;
  margin-left: 15px;
}

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #cccccc;
}

.page-cockfighting__call-to-action-final {
  background-color: #26A9E0;
  padding: 80px 0;
  color: #ffffff;
}

.page-cockfighting__call-to-action-final .page-cockfighting__section-title {
  color: #FFFFFF;
}

.page-cockfighting__call-to-action-final .page-cockfighting__text-block {
  color: #f0f0f0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content {
    margin-top: -100px;
    padding: 25px;
  }
}

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

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

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

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

  .page-cockfighting__hero-content {
    margin-top: -80px; /* Adjust for smaller screens */
    padding: 20px;
    max-width: 95%;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for mobile */
  }

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

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-small,
  .page-cockfighting__btn-view-match {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-cockfighting__cta-buttons,
  .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-wrap: wrap !important;
    gap: 10px;
    overflow: hidden !important;
  }

  .page-cockfighting__image-wrapper,
  .page-cockfighting__video-link-wrapper {
    padding: 0 10px;
  }

  .page-cockfighting__content-image,
  .page-cockfighting__promotion-image,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .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: 10px !important; /* body has padding-top, use small decorative padding here */
  }

  .page-cockfighting__promotion-image {
    height: 180px; /* Adjust height for mobile */
  }

  .page-cockfighting__faq-question {
    font-size: 1rem;
    padding: 15px;
  }

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

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 9vw, 2.2rem);
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting__sub-title {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }

  .page-cockfighting__hero-content {
    margin-top: -60px;
  }
}