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

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

.page-cockfighting-rules__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Minimal top padding */
    padding-bottom: 40px;
    background-color: #0A0A0A; /* Background */
    position: relative;
    overflow: hidden;
}

.page-cockfighting-rules__hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-bottom: 20px;
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.2em, 5vw, 2.8em);
    font-weight: 700;
    color: #FFD36B; /* Glow */
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting-rules__hero-description {
    font-size: 1.1em;
    color: #FFF6D6; /* Text Main */
    margin-bottom: 30px;
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
}

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

.page-cockfighting-rules__section {
    padding: 60px 0;
    border-bottom: 1px solid #3A2A12; /* Border */
}

.page-cockfighting-rules__section:last-of-type {
    border-bottom: none;
}

.page-cockfighting-rules__dark-bg {
    background-color: #0A0A0A; /* Background */
    color: #FFF6D6; /* Text Main */
}

.page-cockfighting-rules__light-bg {
    background-color: #111111; /* Card BG */
    color: #FFF6D6; /* Text Main */
}

.page-cockfighting-rules__section-title {
    font-size: 2.2em;
    color: #FFD36B; /* Glow */
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
}

.page-cockfighting-rules__subsection-title {
    font-size: 1.6em;
    color: #F2C14E; /* Primary Color */
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
}

.page-cockfighting-rules__grid-3-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting-rules__card {
    background-color: #111111; /* Card BG */
    border: 1px solid #3A2A12; /* Border */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting-rules__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
    display: block;
}

.page-cockfighting-rules__card-title {
    font-size: 1.4em;
    color: #F2C14E; /* Primary Color */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting-rules__ordered-list,
.page-cockfighting-rules__unordered-list {
    list-style-position: outside;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main */
}

.page-cockfighting-rules__ordered-list li,
.page-cockfighting-rules__unordered-list li {
    margin-bottom: 10px;
}

.page-cockfighting-rules__link {
    color: #FFD36B; /* Glow */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting-rules__link:hover {
    color: #F2C14E; /* Primary Color */
    text-decoration: underline;
}

.page-cockfighting-rules__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111;
    border: 2px solid transparent;
}

.page-cockfighting-rules__btn-primary:hover {
    background: linear-gradient(180deg, #DDA11D 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 216, 106, 0.4);
}

.page-cockfighting-rules__btn-secondary {
    background: #111111; /* Card BG */
    color: #F2C14E; /* Primary Color */
    border: 2px solid #F2C14E;
    margin-left: 20px;
}

.page-cockfighting-rules__btn-secondary:hover {
    background: #F2C14E; /* Primary Color */
    color: #111111; /* Card BG */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-cockfighting-rules__cta-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    text-align: center;
    color: #FFF6D6; /* Text Main */
}

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

.page-cockfighting-rules__highlight {
    color: #FFD36B; /* Glow */
    font-weight: bold;
}

/* FAQ Styles */
details.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12; /* Border */
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6; /* Text Main */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E; /* Primary Color */
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question::-webkit-details-marker {
  display: none;
}
details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}
.page-cockfighting-rules__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B; /* Glow */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer {
  padding: 0 20px 20px;
  background: rgba(17, 17, 17, 0.8); /* Slightly darker for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF6D6; /* Text Main */
}

/* Responsive Styles */
@media (max-width: 1023px) {
    .page-cockfighting-rules__hero-section {
        padding-bottom: 30px;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(2em, 6vw, 2.5em);
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1em;
    }
    .page-cockfighting-rules__section {
        padding: 40px 0;
    }
    .page-cockfighting-rules__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__grid-3-columns {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    .page-cockfighting-rules__card-image {
        height: 180px;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.3em;
    }
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    .page-cockfighting-rules__btn-secondary {
        margin-left: 0;
    }
    details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question { padding: 15px; }
    .page-cockfighting-rules__faq-qtext { font-size: 15px; }
}

@media (max-width: 768px) {
    .page-cockfighting-rules {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting-rules__hero-section {
        padding-bottom: 20px;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
    }
    .page-cockfighting-rules__hero-description {
        font-size: 0.95em;
    }
    .page-cockfighting-rules__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting-rules__section {
        padding: 30px 0;
    }
    .page-cockfighting-rules__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    .page-cockfighting-rules__subsection-title {
        font-size: 1.4em;
    }
    .page-cockfighting-rules__grid-3-columns {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .page-cockfighting-rules__card {
        padding: 20px;
    }
    .page-cockfighting-rules__card-image {
        height: 160px;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting-rules__cta-button,
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary,
    .page-cockfighting-rules a[class*="button"],
    .page-cockfighting-rules 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;
    }
    .page-cockfighting-rules__cta-buttons,
    .page-cockfighting-rules__button-group,
    .page-cockfighting-rules__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
      flex-direction: column; /* Ensure vertical stacking on mobile */
    }
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question { padding: 15px; }
    .page-cockfighting-rules__faq-qtext { font-size: 15px; }
    .page-cockfighting-rules__faq-toggle { font-size: 20px; width: 24px; height: 24px; }
    details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer { padding: 0 15px 15px; }
}