/* style/cockfighting-rules.css */

/* Custom Colors */
:root {
  --fabet-bg-dark: #08160F;
  --fabet-card-bg: #11271B;
  --fabet-text-main: #F2FFF6;
  --fabet-text-secondary: #A7D9B8;
  --fabet-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --fabet-border: #2E7A4E;
  --fabet-glow: #57E38D;
  --fabet-gold: #F2C14E;
  --fabet-divider: #1E3A2A;
  --fabet-deep-green: #0A4B2C;
}

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

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

.page-cockfighting-rules__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for image wrapper */
  margin-bottom: 30px;
}

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

.page-cockfighting-rules__hero-content {
  max-width: 900px;
  margin: 0 auto;
  color: var(--fabet-text-main);
}

.page-cockfighting-rules__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--fabet-glow);
  margin-bottom: 20px;
  text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

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

.page-cockfighting-rules__cta-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  background: var(--fabet-button-gradient);
  color: var(--fabet-text-main);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-cockfighting-rules__cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  opacity: 0.9;
}

/* Content Area */
.page-cockfighting-rules__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  background-color: var(--fabet-bg-dark);
  color: var(--fabet-text-main);
}

.page-cockfighting-rules__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--fabet-glow);
  margin-top: 50px;
  margin-bottom: 30px;
  text-align: center;
  border-bottom: 2px solid var(--fabet-divider);
  padding-bottom: 15px;
}

.page-cockfighting-rules__sub-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--fabet-gold);
  margin-top: 40px;
  margin-bottom: 20px;
}

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

.page-cockfighting-rules__text-block ul,
.page-cockfighting-rules__text-block ol {
  list-style-position: inside;
  margin-bottom: 20px;
  padding-left: 20px;
}

.page-cockfighting-rules__text-block li {
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 10px;
  color: var(--fabet-text-secondary);
}

.page-cockfighting-rules__text-block a {
  color: var(--fabet-glow);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-cockfighting-rules__text-block a:hover {
  color: var(--fabet-gold);
  text-decoration: underline;
}

.page-cockfighting-rules__image-content {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  margin: 30px auto;
  max-width: 800px; /* Ensure content images are not too wide */
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* FAQ Section */
.page-cockfighting-rules__faq-list {
  margin-top: 40px;
}

.page-cockfighting-rules__faq-item {
  background-color: var(--fabet-card-bg);
  border: 1px solid var(--fabet-border);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: var(--fabet-text-main);
}

.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fabet-text-main);
  background-color: var(--fabet-deep-green);
  border-bottom: 1px solid var(--fabet-border);
  transition: background-color 0.3s ease;
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-question {
  background-color: var(--fabet-deep-green);
  color: var(--fabet-glow);
}

.page-cockfighting-rules__faq-question:hover {
  background-color: #0d5a36; /* Slightly lighter deep green on hover */
}

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

.page-cockfighting-rules__faq-toggle {
  font-size: 1.5rem;
  font-weight: bold;
  margin-left: 15px;
  color: var(--fabet-glow);
}

.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-toggle {
  color: var(--fabet-gold);
}

.page-cockfighting-rules__faq-answer {
  padding: 20px 25px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fabet-text-secondary);
  background-color: var(--fabet-card-bg);
}

/* Details tag specific styles to remove default marker */
.page-cockfighting-rules__faq-item summary {
  list-style: none;
}

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .page-cockfighting-rules__hero-section {
    padding: 30px 15px;
    padding-top: 10px !important;
  }

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

  .page-cockfighting-rules__description {
    font-size: 1rem;
    margin-bottom: 20px;
  }

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

  .page-cockfighting-rules__content-area {
    padding: 20px 15px;
  }

  .page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 7vw, 2.2rem);
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-cockfighting-rules__sub-title {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    margin-top: 25px;
    margin-bottom: 15px;
  }

  .page-cockfighting-rules__text-block p,
  .page-cockfighting-rules__text-block li {
    font-size: 0.95rem;
  }

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

  .page-cockfighting-rules__hero-image-wrapper,
  .page-cockfighting-rules__content-area,
  .page-cockfighting-rules__text-block,
  .page-cockfighting-rules__faq-list,
  .page-cockfighting-rules__faq-item,
  .page-cockfighting-rules__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-cockfighting-rules__faq-answer {
    padding: 15px 20px;
    font-size: 0.9rem;
  }
}