/* style/cockfighting-rules-formats.css */

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

/* Hero Section */
.page-cockfighting-rules-formats__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
}

.page-cockfighting-rules-formats__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

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

.page-cockfighting-rules-formats__hero-content {
  max-width: 900px;
  margin: 40px auto 0;
  text-align: center;
  padding: 0 20px;
  z-index: 10;
}

.page-cockfighting-rules-formats__main-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-cockfighting-rules-formats__description {
  font-size: 1.1rem;
  color: #A7D9B8; /* Text Secondary */
  margin-bottom: 30px;
}

/* General Section Styles */
.page-cockfighting-rules-formats__section {
  padding: 60px 0;
  background-color: #08160F; /* Background */
}

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

.page-cockfighting-rules-formats__container--center {
  text-align: center;
}

.page-cockfighting-rules-formats__section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: #F2FFF6; /* Text Main */
  margin-bottom: 30px;
  text-align: center;
}

.page-cockfighting-rules-formats__sub-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  color: #22C768; /* Auxiliary Color */
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-cockfighting-rules-formats p {
  margin-bottom: 15px;
  color: #F2FFF6; /* Text Main */
  font-size: 1rem;
}

.page-cockfighting-rules-formats__list {
  list-style-type: disc;
  margin-left: 20px;
  margin-bottom: 20px;
  color: #F2FFF6; /* Text Main */
}

.page-cockfighting-rules-formats__list li {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules-formats__image-content {
  width: 100%;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  object-fit: cover;
  max-width: 800px;
}

/* Buttons */
.page-cockfighting-rules-formats__btn-primary,
.page-cockfighting-rules-formats__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-cockfighting-rules-formats__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button Gradient */
  color: #F2FFF6; /* Text Main */
  border: none;
  margin-right: 20px;
}

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

.page-cockfighting-rules-formats__btn-secondary {
  background: transparent;
  color: #2AD16F; /* Lighter shade of primary for contrast */
  border: 2px solid #2AD16F; /* Lighter shade for border */
}

.page-cockfighting-rules-formats__btn-secondary:hover {
  background: #2AD16F;
  color: #F2FFF6;
}

.page-cockfighting-rules-formats__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* FAQ Section */
.page-cockfighting-rules-formats__faq {
  background-color: #11271B; /* Card BG */
}

.page-cockfighting-rules-formats__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules-formats__faq-item {
  background-color: #0A4B2C; /* Deep Green */
  border: 1px solid #2E7A4E; /* Border */
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-cockfighting-rules-formats__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-weight: 600;
  color: #F2FFF6; /* Text Main */
  font-size: 1.1rem;
  user-select: none;
  list-style: none; /* For details/summary */
}

.page-cockfighting-rules-formats__faq-question::-webkit-details-marker {
  display: none;
}

.page-cockfighting-rules-formats__faq-toggle {
  font-size: 1.5rem;
  line-height: 1;
  color: #57E38D; /* Glow */
  transition: transform 0.3s ease;
}

.page-cockfighting-rules-formats__faq-item[open] .page-cockfighting-rules-formats__faq-toggle {
  transform: rotate(45deg);
}

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

.page-cockfighting-rules-formats__faq-answer p {
  margin-bottom: 10px;
  color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting-rules-formats__faq-answer a {
  color: #2AD16F; /* Lighter shade for links */
  text-decoration: underline;
}

.page-cockfighting-rules-formats__faq-answer a:hover {
  color: #57E38D;
}

/* Links in content */
.page-cockfighting-rules-formats a {
  color: #2AD16F;
  text-decoration: none;
}

.page-cockfighting-rules-formats a:hover {
  text-decoration: underline;
}

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

  .page-cockfighting-rules-formats__hero-content {
    margin-top: 20px;
  }

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

  .page-cockfighting-rules-formats__description {
    font-size: 1rem;
  }

  .page-cockfighting-rules-formats__section-title {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  .page-cockfighting-rules-formats__sub-title {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .page-cockfighting-rules-formats__btn-primary,
  .page-cockfighting-rules-formats__btn-secondary,
  .page-cockfighting-rules-formats a[class*="button"],
  .page-cockfighting-rules-formats a[class*="btn"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
    padding: 12px 20px !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-cockfighting-rules-formats__cta-buttons {
    flex-direction: column !important;
    gap: 10px !important;
    padding: 0 15px;
  }

  .page-cockfighting-rules-formats__image-content,
  .page-cockfighting-rules-formats__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-cockfighting-rules-formats__section,
  .page-cockfighting-rules-formats__container,
  .page-cockfighting-rules-formats__hero-section,
  .page-cockfighting-rules-formats__hero-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  
  .page-cockfighting-rules-formats__container {
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-cockfighting-rules-formats__hero-section {
    padding-bottom: 30px;
  }

  .page-cockfighting-rules-formats__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-cockfighting-rules-formats__faq-answer {
    padding: 0 20px 15px;
  }
}