/* style/cockfighting.css */

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

.page-cockfighting {
  font-family: Arial, sans-serif;
  color: var(--page-cockfighting-text-main); /* Default text color for dark background */
  background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: var(--page-cockfighting-background);
  overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-cockfighting__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-content {
  text-align: center;
  padding: 40px 20px;
  max-width: 900px;
  margin-top: 20px;
  background: var(--page-cockfighting-card-bg);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--page-cockfighting-border-color);
}

.page-cockfighting__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: var(--page-cockfighting-gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
  font-size: 1.1rem;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 30px;
  line-height: 1.6;
}

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

.page-cockfighting__btn-primary {
  background: var(--page-cockfighting-btn-gradient);
  color: var(--page-cockfighting-text-main);
  border: 2px solid var(--page-cockfighting-primary-color);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--page-cockfighting-primary-color);
  border: 2px solid var(--page-cockfighting-primary-color);
  box-shadow: 0 0 10px rgba(17, 168, 78, 0.3);
}

.page-cockfighting__btn-secondary:hover {
  background: var(--page-cockfighting-primary-color);
  color: var(--page-cockfighting-text-main);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(17, 168, 78, 0.5);
}

.page-cockfighting__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  margin-top: 30px;
}

.page-cockfighting__section {
  padding: 80px 20px;
  background-color: var(--page-cockfighting-background);
  border-bottom: 1px solid var(--page-cockfighting-divider-color);
}

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

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  color: var(--page-cockfighting-gold-color);
  text-align: center;
  margin-bottom: 50px;
  text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
  font-weight: 700;
}

.page-cockfighting__subsection-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--page-cockfighting-primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting__text-block {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--page-cockfighting-text-secondary);
  margin-bottom: 20px;
}

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

.page-cockfighting__image-with-text {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.page-cockfighting__image-with-text .page-cockfighting__content-image {
  flex: 1;
  max-width: 50%;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image-with-text .page-cockfighting__text-content {
  flex: 1;
  max-width: 50%;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

.page-cockfighting__guide-list,
.page-cockfighting__strategy-list,
.page-cockfighting__feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-cockfighting__guide-list .page-cockfighting__list-item,
.page-cockfighting__strategy-list .page-cockfighting__list-item,
.page-cockfighting__feature-list .page-cockfighting__list-item {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__guide-list .page-cockfighting__list-title,
.page-cockfighting__strategy-list .page-cockfighting__list-title,
.page-cockfighting__feature-list .page-cockfighting__list-title {
  color: var(--page-cockfighting-gold-color);
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 15px;
  font-weight: 600;
}

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

.page-cockfighting__card {
  background: var(--page-cockfighting-card-bg);
  border: 1px solid var(--page-cockfighting-border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  color: var(--page-cockfighting-text-main);
  height: 100%;
}

.page-cockfighting__card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistent card appearance */
  object-fit: cover;
  display: block;
}

.page-cockfighting__card-title {
  font-size: 1.4rem;
  color: var(--page-cockfighting-gold-color);
  padding: 20px 20px 10px;
  margin: 0;
  font-weight: 600;
}

.page-cockfighting__card-description {
  font-size: 0.95rem;
  color: var(--page-cockfighting-text-secondary);
  padding: 0 20px 20px;
  flex-grow: 1;
  line-height: 1.6;
}

.page-cockfighting__card .page-cockfighting__btn-primary {
  margin: 0 20px 20px;
  width: calc(100% - 40px);
}

.page-cockfighting__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--page-cockfighting-border-color);
  background-color: var(--page-cockfighting-deep-green);
  box-sizing: border-box;
}

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

.page-cockfighting__faq-list {
  margin-top: 40px;
}

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

.page-cockfighting__faq-item summary {
  display: block;
  cursor: pointer;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--page-cockfighting-primary-color);
  list-style: none;
  position: relative;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
  background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-qtext {
  color: var(--page-cockfighting-text-main);
  margin-right: 30px;
}

.page-cockfighting__faq-toggle {
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--page-cockfighting-gold-color);
  transition: transform 0.3s ease;
}

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

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

.page-cockfighting__conclusion .page-cockfighting__text-block {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-cockfighting__conclusion .page-cockfighting__btn-primary {
  display: block;
  margin: 40px auto 0;
  max-width: 400px;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .page-cockfighting__hero-section {
    padding: 40px 15px;
    padding-top: 10px;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }

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

  .page-cockfighting__section {
    padding: 60px 15px;
  }

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

  .page-cockfighting__subsection-title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
  }

  .page-cockfighting__image-with-text {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__image-with-text .page-cockfighting__content-image,
  .page-cockfighting__image-with-text .page-cockfighting__text-content {
    max-width: 100%;
  }

  .page-cockfighting__promotion-cards {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

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

  .page-cockfighting__hero-section {
    padding: 30px 15px !important;
    padding-top: 10px !important;
  }

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

  .page-cockfighting__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
  }

  .page-cockfighting__hero-description {
    font-size: 0.95rem !important;
  }

  .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;
    margin-bottom: 15px; /* Add margin between stacked buttons */
  }

  .page-cockfighting__btn-large {
    font-size: 1.1rem !important;
    padding: 15px 25px !important;
  }

  .page-cockfighting__section,
  .page-cockfighting__container,
  .page-cockfighting__promotion-cards,
  .page-cockfighting__card,
  .page-cockfighting__image-with-text,
  .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__section {
    padding: 40px 0 !important; /* Adjust padding for mobile sections */
  }

  .page-cockfighting__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
    margin-bottom: 30px !important;
  }

  .page-cockfighting__subsection-title {
    font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
  }

  .page-cockfighting img,
  .page-cockfighting__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

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

  .page-cockfighting__card-title {
    font-size: 1.2rem !important;
  }

  .page-cockfighting__card-description {
    font-size: 0.9rem !important;
  }

  .page-cockfighting__faq-item summary {
    font-size: 1.1rem !important;
    padding: 18px 20px !important;
  }

  .page-cockfighting__faq-qtext {
    margin-right: 25px !important;
  }

  .page-cockfighting__faq-toggle {
    right: 20px !important;
  }

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

  /* Buttons group for mobile */
  .page-cockfighting__cta-buttons,
  .page-cockfighting__button-group,
  .page-cockfighting__btn-container {
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 10px !important;
  }
}