/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-main-color); /* Fallback if not set */
  background-color: var(--bg-color); /* Fallback if not set */
}

/* Custom colors from requirements */
.page-cockfighting {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg-color: #11271B;
  --bg-main-color: #08160F;
  --text-main-color: #F2FFF6;
  --text-secondary-color: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Apply custom colors to sections/cards for contrast */
.page-cockfighting__dark-bg {
  background-color: var(--bg-main-color);
  color: var(--text-main-color);
}

.page-cockfighting__light-bg {
  background-color: var(--text-main-color);
  color: #333333; /* Ensure high contrast on light background */
}

.page-cockfighting__card-bg {
  background-color: var(--card-bg-color);
  color: var(--text-main-color);
}

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

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

.page-cockfighting__section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

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

.page-cockfighting__section-title {
  font-size: 2.8em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  overflow: hidden;
  position: relative;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
}

.page-cockfighting__hero-content {
  padding: 60px 20px;
  text-align: center;
  max-width: 900px;
  margin-top: -100px; /* Overlap slightly for visual flow, but no text on image */
  position: relative;
  z-index: 1;
  background-color: var(--bg-main-color);
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
}

.page-cockfighting__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary-color);
}

.page-cockfighting__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  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;
  font-size: 1.1em;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting__btn-primary {
  background: var(--button-gradient);
  color: #ffffff;
  border: none;
}

.page-cockfighting__btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background: var(--glow-color);
  color: var(--bg-main-color);
}

/* About Section */
.page-cockfighting__about-cockfighting {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__text-block {
  margin-bottom: 40px;
}

.page-cockfighting__text-block p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.7;
  color: #333333;
}

.page-cockfighting__image-full-width {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  margin-top: 40px;
}

/* Video Section */
.page-cockfighting__video-section {
  padding: 60px 0;
  background-color: var(--bg-main-color);
}

.page-cockfighting__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.page-cockfighting__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  cursor: pointer;
}

.page-cockfighting__btn-video-cta {
  margin-top: 20px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Bet Types Section */
.page-cockfighting__bet-types {
  background-color: var(--card-bg-color);
  padding: 60px 0;
}

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

.page-cockfighting__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main-color);
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

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

.page-cockfighting__card-text {
  font-size: 1em;
  color: var(--text-secondary-color);
}

/* How to Play Section */
.page-cockfighting__how-to-play {
  background-color: var(--bg-main-color);
  padding: 60px 0;
}

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

.page-cockfighting__steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.page-cockfighting__step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.page-cockfighting__step-number {
  background: var(--button-gradient);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2em;
  font-weight: bold;
  flex-shrink: 0;
}

.page-cockfighting__step-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 5px;
}

.page-cockfighting__step-description {
  font-size: 1em;
  color: var(--text-secondary-color);
}

.page-cockfighting__image-vertical {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
}

.page-cockfighting__btn-center {
  margin-top: 50px;
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

/* Strategies Section */
.page-cockfighting__strategies {
  background-color: var(--card-bg-color);
  padding: 60px 0;
}

.page-cockfighting__strategy-card {
  background-color: var(--deep-green-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 30px;
  transition: transform 0.3s ease;
}

.page-cockfighting__strategy-card:hover {
  transform: translateY(-5px);
}

.page-cockfighting__strategy-title {
  font-size: 1.4em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__strategy-text {
  font-size: 1em;
  color: var(--text-secondary-color);
}

/* Promotions Section */
.page-cockfighting__promotions {
  padding: 60px 0;
}

.page-cockfighting__promo-card {
  display: flex;
  align-items: center;
  text-align: left;
  padding: 20px;
  gap: 20px;
}

.page-cockfighting__promo-image {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.page-cockfighting__promo-title {
  font-size: 1.3em;
  font-weight: bold;
  margin-bottom: 10px;
}

.page-cockfighting__promo-text {
  font-size: 0.95em;
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

/* Safety Section */
.page-cockfighting__safety {
  padding-top: 60px;
  padding-bottom: 60px;
}

.page-cockfighting__safety p {
  color: #333333;
}

/* FAQ Section */
.page-cockfighting__faq {
  padding: 60px 0;
}

.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-cockfighting__faq-item {
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
  color: var(--text-main-color);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  background-color: var(--deep-green-color);
}

.page-cockfighting__faq-question::-webkit-details-marker, /* Hide default marker for Chrome/Safari */
.page-cockfighting__faq-question::marker { /* Hide default marker for Firefox */
  display: none;
}

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

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

.page-cockfighting__faq-answer {
  padding: 15px 20px;
  background-color: var(--card-bg-color);
  border-top: 1px solid var(--divider-color);
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-secondary-color);
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting__section-title {
    font-size: 2.2em;
  }
  .page-cockfighting__hero-content {
    margin-top: -80px;
    padding: 40px 20px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.8em, 5vw, 3em);
  }
  .page-cockfighting__grid-2-columns, .page-cockfighting__grid-3-columns {
    grid-template-columns: 1fr;
  }
  .page-cockfighting__image-content {
    order: -1; /* Image above text on smaller screens */
  }
  .page-cockfighting__promo-card {
    flex-direction: column;
    text-align: center;
  }
  .page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .page-cockfighting__section {
    padding: 40px 0;
  }
  .page-cockfighting__container {
    padding: 0 15px;
  }
  .page-cockfighting__section-title {
    font-size: 1.8em;
  }
  .page-cockfighting__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-cockfighting__hero-content {
    margin-top: -60px;
    padding: 30px 15px;
  }
  .page-cockfighting__main-title {
    font-size: clamp(1.5em, 6vw, 2.5em);
  }
  .page-cockfighting__hero-description {
    font-size: 1em;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile image responsiveness */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-cockfighting__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__hero-image-wrapper,
  .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 --header-offset, this is decorative */
    padding-left: 0 !important; /* Resetting container padding to allow wrapper to handle it */
    padding-right: 0 !important;
  }
  .page-cockfighting__video-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Mobile button responsiveness */
  .page-cockfighting__cta-button,
  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary,
  .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__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;
  }
  .page-cockfighting__cta-buttons {
    flex-direction: column;
  }

  .page-cockfighting__promo-card {
    padding: 15px;
  }
  .page-cockfighting__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-cockfighting__faq-answer {
    padding: 10px 15px;
  }
}