/* style/cockfighting-rules.css */
.page-cockfighting-rules {
  color: #FFF3E6; /* Text Main */
  background-color: #0D0E12; /* Background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 10px 0 60px 0;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height for hero image */
  overflow: hidden;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 1;
  padding: 40px 20px;
  max-width: 900px;
  background: rgba(13, 14, 18, 0.7); /* Semi-transparent background for readability */
  border-radius: 10px;
  margin-top: -80px; /* Pull content up over image slightly for visual flow */
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #FF8C1A;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules__intro-text {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #FFF3E6;
}

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin: 10px;
  box-sizing: border-box;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #FFF3E6;
  border: none;
}

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

.page-cockfighting-rules__btn-secondary {
  background: #17191F;
  color: #FF8C1A;
  border: 2px solid #A84F0C;
}

.page-cockfighting-rules__btn-secondary:hover {
  background: #FF8C1A;
  color: #FFF3E6;
  border-color: #FF8C1A;
  transform: translateY(-2px);
}

.page-cockfighting-rules__section {
  padding: 60px 0;
  text-align: center;
}

.page-cockfighting-rules__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #FF8C1A;
  margin-bottom: 30px;
  font-weight: 700;
}

.page-cockfighting-rules__text-block {
  font-size: 1rem;
  color: #FFF3E6;
  max-width: 900px;
  margin: 0 auto 40px auto;
  line-height: 1.8;
}

.page-cockfighting-rules__rules-grid,
.page-cockfighting-rules__betting-grid,
.page-cockfighting-rules__strategy-grid,
.page-cockfighting-rules__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-cockfighting-rules__rule-card,
.page-cockfighting-rules__betting-card,
.page-cockfighting-rules__strategy-card,
.page-cockfighting-rules__feature-item {
  background-color: #17191F; /* Card BG */
  border: 1px solid #A84F0C; /* Border */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #FFF3E6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-cockfighting-rules__rule-card:hover,
.page-cockfighting-rules__betting-card:hover,
.page-cockfighting-rules__strategy-card:hover,
.page-cockfighting-rules__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(255, 140, 26, 0.2);
}

.page-cockfighting-rules__rule-image,
.page-cockfighting-rules__betting-image,
.page-cockfighting-rules__strategy-image,
.page-cockfighting-rules__feature-icon {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-cockfighting-rules__rule-title,
.page-cockfighting-rules__betting-title,
.page-cockfighting-rules__strategy-title,
.page-cockfighting-rules__feature-title {
  font-size: 1.5rem;
  color: #FF8C1A;
  margin-bottom: 15px;
  font-weight: 600;
}

.page-cockfighting-rules__rule-description,
.page-cockfighting-rules__betting-description,
.page-cockfighting-rules__strategy-description,
.page-cockfighting-rules__feature-description {
  font-size: 1rem;
  color: #FFF3E6;
  line-height: 1.7;
  flex-grow: 1; /* Ensure descriptions take available space */
}

.page-cockfighting-rules__dark-section {
  background-color: #17191F;
}

.page-cockfighting-rules__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-cockfighting-rules__faq-item {
  background-color: #17191F;
  border: 1px solid #A84F0C;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #FF8C1A;
  cursor: pointer;
  background-color: #17191F;
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #2a2c34;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #FFA53A;
}

.page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #FFF3E6;
  line-height: 1.7;
  display: none; /* Controlled by JS for non-details elements */
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-answer {
  display: block;
}

.page-cockfighting-rules__faq-item.active .page-cockfighting-rules__faq-answer {
  display: block;
}

.page-cockfighting-rules__cta-bottom {
  padding: 80px 0;
  background: linear-gradient(180deg, #0D0E12 0%, #17191F 100%);
}

.page-cockfighting-rules__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-cockfighting-rules__cta-content .page-cockfighting-rules__section-title {
  color: #FFF3E6;
}

.page-cockfighting-rules__button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -60px;
    padding: 30px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .page-cockfighting-rules__container {
    padding: 0 15px;
  }
  .page-cockfighting-rules__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-cockfighting-rules__hero-content {
    margin-top: -40px;
    padding: 20px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .page-cockfighting-rules__intro-text {
    font-size: 1rem;
  }
  .page-cockfighting-rules__section {
    padding: 40px 0;
  }
  .page-cockfighting-rules__section-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
  }
  .page-cockfighting-rules__text-block {
    font-size: 0.95rem;
    margin-bottom: 30px;
  }
  .page-cockfighting-rules__rules-grid,
  .page-cockfighting-rules__betting-grid,
  .page-cockfighting-rules__strategy-grid,
  .page-cockfighting-rules__features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__button-group {
    flex-direction: column;
    gap: 10px;
  }
  .page-cockfighting-rules__rule-image,
  .page-cockfighting-rules__betting-image,
  .page-cockfighting-rules__strategy-image,
  .page-cockfighting-rules__feature-icon,
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 200px !important; /* Enforce min height for content images */
    box-sizing: border-box !important;
  }
  .page-cockfighting-rules__hero-image {
    min-height: 250px !important;
  }
  .page-cockfighting-rules__faq-question {
    font-size: 1.1rem;
    padding: 15px;
  }
  .page-cockfighting-rules__faq-answer {
    font-size: 0.9rem;
    padding: 0 15px 15px 15px;
  }
  .page-cockfighting-rules__cta-bottom {
    padding: 60px 0;
  }
}