/* style/cockfighting-rules.css */

/* Base styles for the page */
.page-cockfighting-rules {
  font-family: 'Arial', sans-serif;
  color: #F2FFF6; /* Text Main */
  background-color: #08160F; /* Background */
  line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small decorative padding, body handles --header-offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  height: 600px; /* Adjust as needed */
  overflow: hidden;
  position: relative;
  margin-bottom: 30px;
}

.page-cockfighting-rules__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.7);
}

.page-cockfighting-rules__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin-top: -300px; /* Pull content up over the image, but not *on* it */
  padding: 20px;
  background: rgba(17, 39, 27, 0.85); /* Card BG with transparency */
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.5);
  backdrop-filter: blur(5px);
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: #F2FFF6; /* Text Main */
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: bold;
}

.page-cockfighting-rules__subtitle {
  font-size: 1.15rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.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: 1.1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-cockfighting-rules__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #F2FFF6; /* Text Main */
  border: 2px solid transparent;
  box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting-rules__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

.page-cockfighting-rules__btn-secondary {
  background: transparent;
  color: #2AD16F; /* A lighter shade of green */
  border: 2px solid #2AD16F; /* Border */
}

.page-cockfighting-rules__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6; /* Text Main */
}

/* Section Titles */
.page-cockfighting-rules__section-title {
  font-size: 2.5rem;
  color: #F2C14E; /* Gold */
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  padding-bottom: 15px;
}

.page-cockfighting-rules__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #2AD16F; /* Button gradient start */
  border-radius: 2px;
}

.page-cockfighting-rules__text-block {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 25px;
  text-align: justify;
}

.page-cockfighting-rules__content-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 30px auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Introduction Section */
.page-cockfighting-rules__introduction-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

/* Rules Section */
.page-cockfighting-rules__rules-section {
  padding: 60px 0;
}

.page-cockfighting-rules__rule-category {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-cockfighting-rules__category-title {
  font-size: 1.8rem;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  font-weight: bold;
}

.page-cockfighting-rules__list {
  list-style: disc inside;
  padding-left: 20px;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules__list li {
  margin-bottom: 10px;
  font-size: 1.05rem;
}

.page-cockfighting-rules__list li strong {
  color: #F2FFF6; /* Text Main */
}

/* Betting Rules Section */
.page-cockfighting-rules__betting-rules-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
  text-align: center;
}

/* Tips Section */
.page-cockfighting-rules__tips-section {
  padding: 60px 0;
}

.page-cockfighting-rules__tip-card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 25px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-cockfighting-rules__tip-title {
  font-size: 1.6rem;
  color: #F2C14E; /* Gold */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-cockfighting-rules__tip-text {
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
  text-align: justify;
}

/* FAQ Section */
.page-cockfighting-rules__faq-section {
  padding: 60px 0;
  background-color: #0A4B2C; /* Deep Green */
}

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

.page-cockfighting-rules__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #F2FFF6; /* Text Main */
  background-color: #11271B; /* Card BG */
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-item summary:hover {
  background-color: #1E3A2A; /* Divider */
}

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

.page-cockfighting-rules__faq-qtext {
  flex-grow: 1;
}

.page-cockfighting-rules__faq-toggle {
  font-size: 1.8rem;
  line-height: 1;
  margin-left: 20px;
  color: #2AD16F;
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  content: '−';
}

.page-cockfighting-rules__faq-answer {
  padding: 0 25px 20px;
  font-size: 1.05rem;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules__faq-answer p {
  margin-bottom: 0;
}

/* Conclusion Section */
.page-cockfighting-rules__conclusion-section {
  padding: 60px 0;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-cockfighting-rules__hero-content {
    margin-top: -200px;
  }
  .page-cockfighting-rules__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-cockfighting-rules__subtitle {
    font-size: 1rem;
  }
  .page-cockfighting-rules__section-title {
    font-size: 2rem;
  }
  .page-cockfighting-rules__category-title {
    font-size: 1.5rem;
  }
}

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

  .page-cockfighting-rules__hero-image-wrapper {
    height: 400px;
  }

  .page-cockfighting-rules__hero-content {
    margin-top: -150px; /* Adjust for smaller screens */
    padding: 15px;
  }

  .page-cockfighting-rules__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-cockfighting-rules__subtitle {
    font-size: 0.95rem;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules__btn-primary,
  .page-cockfighting-rules__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1rem;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }

  .page-cockfighting-rules__section-title {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__list li,
  .page-cockfighting-rules__tip-text,
  .page-cockfighting-rules__faq-answer {
    font-size: 1rem;
  }

  .page-cockfighting-rules__rule-category,
  .page-cockfighting-rules__tip-card,
  .page-cockfighting-rules__faq-item {
    padding: 20px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__category-title {
    font-size: 1.3rem;
  }

  .page-cockfighting-rules__tip-title {
    font-size: 1.4rem;
  }

  .page-cockfighting-rules__faq-item summary {
    font-size: 1.1rem;
    padding: 15px 20px;
  }

  .page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem;
  }

  /* Mobile image and video responsiveness */
  .page-cockfighting-rules img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules__section,
  .page-cockfighting-rules__card,
  .page-cockfighting-rules__container,
  .page-cockfighting-rules__hero-section,
  .page-cockfighting-rules__introduction-section,
  .page-cockfighting-rules__rules-section,
  .page-cockfighting-rules__betting-rules-section,
  .page-cockfighting-rules__tips-section,
  .page-cockfighting-rules__faq-section,
  .page-cockfighting-rules__conclusion-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-cockfighting-rules__hero-section {
    padding-top: 10px !important; /* body already has padding-top */
  }
}

/* Ensure images do not have filters */
.page-cockfighting-rules img {
  filter: none; /* No CSS filters allowed */
}

/* Dark background sections for contrast */
.page-cockfighting-rules__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules__dark-section .page-cockfighting-rules__text-block {
  color: #A7D9B8; /* Text Secondary */
}