/* style/cockfighting.css */

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

.page-cockfighting {
  background-color: var(--page-bg-color);
  color: var(--text-main-color);
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* body handles padding-top, this is for internal spacing */
  overflow: hidden;
  background-color: var(--card-bg-color); /* Fallback background for hero */
}

.page-cockfighting__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for aesthetic */
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting__hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  margin-top: 40px;
  padding: 0 20px;
  z-index: 10; /* Ensure content is above image wrapper if there's any overlap */
}

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

.page-cockfighting__description {
  font-size: 1.15rem;
  color: var(--text-secondary-color);
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

/* General Section Styling */
.page-cockfighting__section {
  padding: 80px 20px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.page-cockfighting__section-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  color: var(--gold-color);
  margin-bottom: 40px;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--btn-gradient);
  border-radius: 2px;
}

.page-cockfighting__section-description {
  font-size: 1.1rem;
  color: var(--text-secondary-color);
  max-width: 800px;
  margin: -20px auto 60px auto;
}

.page-cockfighting__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: var(--text-main-color);
  margin-top: 30px;
  margin-bottom: 15px;
  font-weight: 600;
  text-align: left;
}

.page-cockfighting__feature-title {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  color: var(--glow-color);
  margin-top: 25px;
  margin-bottom: 10px;
  font-weight: 500;
  text-align: left;
}

.page-cockfighting__content-wrapper {
  display: flex;
  gap: 40px;
  text-align: left;
  align-items: center;
}

.page-cockfighting__text-block {
  flex: 1;
}

.page-cockfighting__text-block p,
.page-cockfighting__text-block ul {
  color: var(--text-secondary-color);
  margin-bottom: 15px;
}

.page-cockfighting__text-block ul {
  list-style: disc;
  padding-left: 20px;
}

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

.page-cockfighting__image-block {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-cockfighting__content-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Cards */
.page-cockfighting__card {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.page-cockfighting__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__card-title {
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  color: var(--text-main-color);
  margin-bottom: 15px;
  font-weight: 600;
  line-height: 1.3;
}

.page-cockfighting__card p {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting__btn-primary {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
  background: var(--btn-hover-gradient);
  box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
  transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
  background-color: var(--glow-color);
  color: var(--page-bg-color);
  border-color: var(--glow-color);
  transform: translateY(-2px);
}

.page-cockfighting__btn-small {
  background: var(--btn-gradient);
  color: #ffffff;
  border: 1px solid transparent;
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 6px;
  margin-top: auto; /* Push button to bottom of card */
}

.page-cockfighting__btn-small:hover {
  background: var(--btn-hover-gradient);
  transform: translateY(-1px);
}

.page-cockfighting__btn-text {
  background: none;
  border: none;
  color: var(--glow-color);
  padding: 5px 10px;
  font-size: 0.95rem;
  text-decoration: underline;
}

.page-cockfighting__btn-text:hover {
  color: var(--gold-color);
}

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

.page-cockfighting__step-card .page-cockfighting__card-image {
  max-height: 200px;
  object-fit: contain;
}

.page-cockfighting__step-detail-title {
  font-size: 1.05rem;
  color: var(--text-main-color);
  margin-top: 15px;
  margin-bottom: 5px;
  font-weight: 500;
}

/* Advantages Section */
.page-cockfighting__advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-cockfighting__advantage-item {
  text-align: left;
  padding: 25px;
}

.page-cockfighting__advantage-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 5px var(--glow-color)); /* Glow effect, not changing color */
}

.page-cockfighting__advantage-title {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  color: var(--gold-color);
  margin-bottom: 10px;
}

.page-cockfighting__advantage-item p {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
}

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

.page-cockfighting__promo-card p {
  text-align: left;
}

/* Tips Section */
.page-cockfighting__tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-cockfighting__tip-item p {
  text-align: left;
}

/* FAQ Section */
.page-cockfighting__faq-list {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-cockfighting__faq-item {
  background-color: var(--card-bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  margin-bottom: 15px;
  padding: 20px 25px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-main-color);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.page-cockfighting__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--glow-color);
  transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
  color: var(--text-secondary-color);
  font-size: 0.95rem;
  padding-top: 15px;
  border-top: 1px solid var(--divider-color);
  margin-top: 15px;
}

.page-cockfighting__faq-answer p {
  margin-bottom: 10px;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
  padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-cockfighting__content-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-cockfighting__image-block {
    order: -1; /* Image appears above text on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-cockfighting__hero-section {
    padding-bottom: 40px;
  }

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

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

  .page-cockfighting__description {
    font-size: 1rem;
  }

  .page-cockfighting__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    padding: 0 15px;
  }

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
  }

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

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

  .page-cockfighting__section-description {
    margin-bottom: 40px;
  }

  .page-cockfighting__sub-title {
    font-size: 1.2rem;
  }

  .page-cockfighting__feature-title {
    font-size: 1.1rem;
  }

  .page-cockfighting__text-block p,
  .page-cockfighting__text-block li,
  .page-cockfighting__card p,
  .page-cockfighting__advantage-item p,
  .page-cockfighting__faq-answer p {
    font-size: 0.9rem;
  }

  .page-cockfighting__steps-grid,
  .page-cockfighting__advantages-grid,
  .page-cockfighting__promo-grid,
  .page-cockfighting__tips-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .page-cockfighting__card {
    padding: 25px;
  }

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

  .page-cockfighting__advantage-icon {
    width: 60px;
    height: 60px;
  }

  .page-cockfighting__advantage-title {
    font-size: 1.1rem;
  }

  .page-cockfighting__faq-item {
    padding: 15px 20px;
  }

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

  .page-cockfighting__faq-toggle {
    font-size: 1.2rem;
  }

  /* Mobile image and video responsive */
  .page-cockfighting img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .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-direction: column;
    gap: 10px;
  }

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

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

  .page-cockfighting__description {
    font-size: 0.9rem;
  }

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

  .page-cockfighting__btn-primary,
  .page-cockfighting__btn-secondary {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}