/* style/cockfighting.css */

/* Base styles for the page, ensuring text is light on dark background */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.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;
}

.page-cockfighting__dark-bg {
  background-color: #08160F;
  color: #F2FFF6;
}

.page-cockfighting__light-bg {
  background-color: #F2FFF6;
  color: #333333; /* Dark text on light background */
}

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #F2FFF6;
  line-height: 1.2;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
  color: #11A84E; /* Primary color for titles on light background */
}

.page-cockfighting__sub-title {
  font-size: 2em;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-cockfighting__light-bg .page-cockfighting__sub-title {
  color: #11A84E;
}

.page-cockfighting__description,
.page-cockfighting__text-block {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting__light-bg .page-cockfighting__description,
.page-cockfighting__light-bg .page-cockfighting__text-block {
  color: #333333;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 600px;
  padding: 10px 0 60px 0; /* Small top padding, main content padding below */
}

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

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

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

.page-cockfighting__main-title {
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
  font-weight: 900;
  margin-bottom: 20px;
  color: #F2FFF6;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content .page-cockfighting__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #A7D9B8;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%; /* Prevent overflow */
  box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-tertiary {
  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.3s ease;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Break long words */
  box-sizing: border-box;
  max-width: 100%;
}

.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
  color: #F2FFF6; /* Text Main */
  border: none;
}

.page-cockfighting__btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Lighter primary color for contrast */
  border: 2px solid #2AD16F;
}

.page-cockfighting__btn-secondary:hover {
  background: rgba(42, 209, 111, 0.1);
  transform: translateY(-3px);
}

.page-cockfighting__btn-tertiary {
  background-color: #11A84E; /* Primary color */
  color: #F2FFF6;
  border: none;
  padding: 10px 20px;
  font-size: 1em;
}

.page-cockfighting__btn-tertiary:hover {
  background-color: #22C768; /* Auxiliary color */
  transform: translateY(-2px);
}

/* Image & Text Grid */
.page-cockfighting__image-text-grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__image-text-grid .page-cockfighting__image {
  flex: 1;
  border-radius: 12px;
  object-fit: cover;
  max-width: 100%;
  height: auto;
  display: block;
}

.page-cockfighting__image-text-grid .page-cockfighting__text-content {
  flex: 1;
}

.page-cockfighting__list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  text-align: left;
}

.page-cockfighting__list-item {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #A7D9B8;
}

.page-cockfighting__light-bg .page-cockfighting__list-item {
  color: #333333;
}

.page-cockfighting__list-item::before {
  content: '✔';
  color: #2AD16F;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How-to-play Steps */
.page-cockfighting__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-cockfighting__card {
  background-color: #11271B; /* Card BG */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  color: #F2FFF6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__light-bg .page-cockfighting__card {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F2FFF6;
}

.page-cockfighting__light-bg .page-cockfighting__card-title {
  color: #11A84E;
}

.page-cockfighting__card-text {
  font-size: 1em;
  line-height: 1.5;
  color: #A7D9B8;
  margin-bottom: 20px;
}

.page-cockfighting__light-bg .page-cockfighting__card-text {
  color: #333333;
}

.page-cockfighting__centered-image {
  margin-top: 40px;
  border-radius: 12px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tips Section */
.page-cockfighting__grid-2-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
  align-items: center;
}

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

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

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 12px;
  width: 100%; /* Desktop width */
  max-width: 1000px; /* Max width for video */
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__video-link {
  display: block;
  cursor: pointer;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  object-fit: cover;
}

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

.page-cockfighting__faq-item {
  background-color: #11271B; /* Card BG */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #F2FFF6;
}

.page-cockfighting__light-bg .page-cockfighting__faq-item {
  background-color: #ffffff;
  color: #333333;
  border: 1px solid #e0e0e0;
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
  list-style: none; /* Hide default details marker */
}

.page-cockfighting__light-bg .page-cockfighting__faq-question {
  color: #333333;
}

.page-cockfighting__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #2AD16F;
  transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  line-height: 1.6;
  color: #A7D9B8;
}

.page-cockfighting__light-bg .page-cockfighting__faq-answer {
  color: #333333;
}

/* CTA Bottom Section */
.page-cockfighting__cta-bottom {
  padding: 80px 0;
  background-color: #11271B; /* Card BG, but as a section background */
}

.page-cockfighting__cta-bottom .page-cockfighting__section-title {
  color: #F2FFF6;
}

.page-cockfighting__cta-bottom .page-cockfighting__description {
  color: #A7D9B8;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }

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

  .page-cockfighting__hero-section {
    min-height: 500px;
  }

  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 1.1em;
  }

  .page-cockfighting__image-text-grid,
  .page-cockfighting__grid-2-cols {
    flex-direction: column;
    text-align: center;
  }

  .page-cockfighting__image-text-grid .page-cockfighting__text-content,
  .page-cockfighting__grid-2-cols .page-cockfighting__text-content {
    order: 2;
  }

  .page-cockfighting__image-text-grid .page-cockfighting__image,
  .page-cockfighting__grid-2-cols .page-cockfighting__image {
    order: 1;
    margin-bottom: 30px;
  }

  .page-cockfighting__list {
    text-align: center;
    padding: 0 20px;
  }

  .page-cockfighting__list-item {
    padding-left: 0;
  }

  .page-cockfighting__list-item::before {
    position: static;
    margin-right: 5px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting {
    font-size: 16px;
    line-height: 1.6;
    padding-top: 10px !important; /* body handles --header-offset, this is for section */
  }

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

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

  .page-cockfighting__section-title {
    font-size: 1.8em !important;
  }

  .page-cockfighting__sub-title {
    font-size: 1.5em !important;
  }

  .page-cockfighting__hero-section {
    min-height: 400px !important;
    padding: 10px 0 40px 0 !important;
  }

  .page-cockfighting__main-title {
    font-size: clamp(2em, 8vw, 2.5em) !important;
  }

  .page-cockfighting__hero-content .page-cockfighting__description {
    font-size: 1em !important;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .page-cockfighting__btn-tertiary,
  .page-cockfighting a[class*="button"],
  .page-cockfighting a[class*="btn"] {
    max-width: 100% !important;
    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__image-text-grid,
  .page-cockfighting__grid-2-cols {
    gap: 30px !important;
  }

  .page-cockfighting__image-text-grid .page-cockfighting__image,
  .page-cockfighting__grid-2-cols .page-cockfighting__image,
  .page-cockfighting__centered-image,
  .page-cockfighting__promo-card .page-cockfighting__card-image,
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting__video-wrapper,
  .page-cockfighting__video,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 0;
    padding-right: 0;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* Small top padding, not --header-offset */
  }

  .page-cockfighting__promo-grid {
    grid-template-columns: 1fr !important;
  }

  .page-cockfighting__card {
    padding: 20px !important;
  }

  .page-cockfighting__faq-question {
    font-size: 1em !important;
    padding: 15px !important;
  }

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

  .page-cockfighting__cta-bottom {
    padding: 60px 0 !important;
  }
}