/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: 'Arial', sans-serif;
  color: var(--text-main-color); /* Default text color for the page */
  background-color: var(--page-bg-color); /* Body background handled by shared.css var(--bg-color) */
  line-height: 1.6;
}

/* Section Styling */
.page-cockfighting__section {
  padding: 60px 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: clamp(28px, 4vw, 42px);
  color: var(--text-main-color);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 700;
  line-height: 1.2;
}

.page-cockfighting__text-block {
  font-size: 17px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  text-align: justify;
}

.page-cockfighting__text-center {
  text-align: center;
}

.page-cockfighting__mt-40 {
  margin-top: 40px;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: var(--deep-green-color);
}

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

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

.page-cockfighting__hero-content-wrapper {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--text-main-color);
  padding: 20px;
  max-width: 900px;
}

.page-cockfighting__main-title {
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.1;
  color: var(--text-main-color);
}

.page-cockfighting__subtitle {
  font-size: clamp(18px, 2.5vw, 24px);
  margin-bottom: 30px;
  color: var(--text-secondary-color);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  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(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

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

.page-cockfighting__btn-secondary:hover {
  background: var(--btn-border-color);
  color: var(--text-main-color);
  transform: translateY(-3px);
}

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

.page-cockfighting__grid--two-cols {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Card Styling */
.page-cockfighting__card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main-color);
}

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

.page-cockfighting__card-title {
  font-size: 24px;
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 700;
}

.page-cockfighting__card-text {
  font-size: 16px;
  color: var(--text-secondary-color);
  text-align: justify;
}

/* Strategy Cards specific */
.page-cockfighting__card--strategy {
  padding: 25px;
  text-align: left;
  align-items: flex-start;
}

.page-cockfighting__card--strategy .page-cockfighting__card-title {
  font-size: 20px;
  margin-bottom: 10px;
}

.page-cockfighting__card--strategy .page-cockfighting__card-text {
  font-size: 15px;
}

/* Numbered List */
.page-cockfighting__numbered-list {
  list-style: none;
  padding: 0;
  counter-reset: section-counter;
}

.page-cockfighting__list-item {
  counter-increment: section-counter;
  background-color: var(--card-bg-color);
  border-radius: 10px;
  padding: 25px 30px 25px 60px;
  margin-bottom: 20px;
  position: relative;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  color: var(--text-main-color);
}

.page-cockfighting__list-item::before {
  content: counter(section-counter);
  position: absolute;
  left: 20px;
  top: 25px;
  background: var(--btn-gradient);
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.page-cockfighting__list-title {
  font-size: 22px;
  color: var(--text-main-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__list-item p {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 0;
}

/* Promotions Section */
.page-cockfighting__promotions {
  background-color: var(--deep-green-color);
  color: var(--text-main-color);
}

.page-cockfighting__promotions .page-cockfighting__section-title {
  color: var(--text-main-color);
}

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

.page-cockfighting__grid--promo {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.page-cockfighting__promo-card {
  background-color: var(--card-bg-color);
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-cockfighting__promo-title {
  font-size: 22px;
  color: var(--text-main-color);
  margin-bottom: 10px;
  font-weight: 700;
}

.page-cockfighting__promo-description {
  font-size: 16px;
  color: var(--text-secondary-color);
  margin-bottom: 20px;
  flex-grow: 1;
}

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

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color);
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main-color);
  cursor: pointer;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
  background-color: rgba(var(--text-main-color), 0.05);
}

.page-cockfighting__faq-toggle {
  font-size: 24px;
  line-height: 1;
  color: var(--glow-color);
}

.page-cockfighting__faq-answer {
  padding: 0 25px 20px;
  font-size: 16px;
  color: var(--text-secondary-color);
  line-height: 1.6;
}

/* Ensure details element's answer is initially hidden if not open */
.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
  max-height: 500px; /* Arbitrary large value for smooth transition */
  padding-top: 10px;
  transition: max-height 0.3s ease-in, padding 0.3s ease-in;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__hero-content-wrapper {
    max-width: 700px;
  }
}

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

  .page-cockfighting__section-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .page-cockfighting__text-block {
    font-size: 16px;
  }

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

  .page-cockfighting__main-title {
    font-size: 40px;
  }

  .page-cockfighting__subtitle {
    font-size: 18px;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-cockfighting__grid--two-cols {
    grid-template-columns: 1fr;
  }

  .page-cockfighting__card {
    padding: 20px;
  }

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

  .page-cockfighting__card-title {
    font-size: 20px;
  }

  .page-cockfighting__list-item {
    padding: 20px 25px 20px 55px;
  }

  .page-cockfighting__list-item::before {
    width: 28px;
    height: 28px;
    font-size: 15px;
    left: 15px;
    top: 20px;
  }

  .page-cockfighting__list-title {
    font-size: 19px;
  }

  .page-cockfighting__promo-image {
    height: 180px;
  }

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

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

  /* Mobile responsive images/videos/buttons - IMPORTANT */
  .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__section,
  .page-cockfighting__card,
  .page-cockfighting__container,
  .page-cockfighting__video-section,
  .page-cockfighting__video-container,
  .page-cockfighting__video-wrapper,
  .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;
    overflow: hidden !important;
  }

  .page-cockfighting__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-cockfighting__cta-buttons {
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-cockfighting__main-title {
    font-size: 32px;
  }

  .page-cockfighting__subtitle {
    font-size: 16px;
  }

  .page-cockfighting__section-title {
    font-size: 28px;
  }
}