.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background */
    background: #FFFFFF; /* Ensure consistency with body background */
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    margin-bottom: 40px;
    text-align: center;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-cockfighting-rules__hero-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9; /* Maintain aspect ratio */
    border-radius: 8px;
}

.page-cockfighting-rules__hero-content {
    padding: 0 15px;
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-rules__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting-rules__hero-description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting-rules__btn-primary,
.page-cockfighting-rules__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* For responsive buttons */
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting-rules__btn-primary {
    background-color: #26A9E0;
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

.page-cockfighting-rules__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
}

.page-cockfighting-rules__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

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

/* General Sections */
.page-cockfighting-rules__section {
    margin-bottom: 40px;
    padding: 20px 0;
}

.page-cockfighting-rules__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 10px;
    position: relative;
}

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

.page-cockfighting-rules__content-area {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333333;
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting-rules__content-area p {
    margin-bottom: 15px;
}

.page-cockfighting-rules__content-area strong {
    color: #26A9E0;
}

.page-cockfighting-rules__content-area a {
    color: #26A9E0;
    text-decoration: underline;
}

.page-cockfighting-rules__list {
    list-style: disc;
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.page-cockfighting-rules__list li {
    margin-bottom: 8px;
    color: #333333;
}

.page-cockfighting-rules__ordered-list {
    list-style: decimal;
    margin-left: 25px;
    margin-bottom: 15px;
    padding-left: 0;
}

.page-cockfighting-rules__ordered-list li {
    margin-bottom: 8px;
    color: #333333;
}

.page-cockfighting-rules__article-figure {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Types Section Specific */
.page-cockfighting-rules__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.page-cockfighting-rules__card {
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: #333333;
}

.page-cockfighting-rules__card:hover {
    transform: translateY(-5px);
}

.page-cockfighting-rules__card img {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting-rules__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #26A9E0;
    padding: 15px 20px 10px;
    margin: 0;
}

.page-cockfighting-rules__card p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 0.95rem;
    flex-grow: 1;
}

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

details.page-cockfighting-rules__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
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;
}
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: #f5f5f5;
}
.page-cockfighting-rules__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333; /* Ensure contrast */
}
.page-cockfighting-rules__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  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: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #333333; /* Ensure contrast */
}

/* Conclusion Section */
.page-cockfighting-rules__conclusion-section .page-cockfighting-rules__content-area {
    text-align: center;
}

/* General image responsive style */
.page-cockfighting-rules img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting-rules__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.5rem);
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting-rules__content-area {
        font-size: 1rem;
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.4rem;
    }
    .page-cockfighting-rules__card p {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-cockfighting-rules__hero-section {
        padding-top: 10px; /* Per requirement, small top padding */
        margin-bottom: 30px;
    }
    .page-cockfighting-rules__hero-image img {
        object-fit: contain !important; /* Mobile: prevent cropping */
        aspect-ratio: unset !important; /* Allow natural aspect ratio */
        height: auto !important;
    }
    .page-cockfighting-rules__main-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem); /* Smaller for mobile */
        padding: 0 10px;
    }
    .page-cockfighting-rules__hero-description {
        font-size: 1rem;
        padding: 0 15px;
    }
    .page-cockfighting-rules__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        width: 100% !important; /* Ensure container fills width */
        max-width: 100% !important; /* Ensure container fills width */
        box-sizing: border-box !important;
        overflow: hidden;
    }
    .page-cockfighting-rules__btn-primary,
    .page-cockfighting-rules__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* General Sections */
    .page-cockfighting-rules__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules__section {
        margin-bottom: 30px;
        padding: 15px 0;
    }
    .page-cockfighting-rules__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 20px;
        padding: 0 15px 10px;
    }
    .page-cockfighting-rules__content-area {
        font-size: 0.95rem;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules__list,
    .page-cockfighting-rules__ordered-list {
        margin-left: 20px;
        padding-left: 0;
        padding-right: 15px;
    }
    .page-cockfighting-rules__list li,
    .page-cockfighting-rules__ordered-list li {
        margin-bottom: 5px;
    }

    /* Types Section Specific - Grid */
    .page-cockfighting-rules__grid-2-cols {
        grid-template-columns: 1fr; /* Single column for mobile */
        gap: 20px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    .page-cockfighting-rules__card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules__card img {
        height: 200px; /* Adjust card image height for mobile */
    }
    .page-cockfighting-rules__card-title {
        font-size: 1.2rem;
        padding: 10px 15px 5px;
    }
    .page-cockfighting-rules__card p {
        padding: 0 15px 15px;
        font-size: 0.85rem;
    }

    /* General image responsive style for content area */
    .page-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting-rules__article-figure {
        margin: 20px auto;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* FAQ Section */
    details.page-cockfighting-rules__faq-item summary.page-cockfighting-rules__faq-question { padding: 15px; }
    .page-cockfighting-rules__faq-qtext { font-size: 15px; }
    details.page-cockfighting-rules__faq-item .page-cockfighting-rules__faq-answer {
        padding: 0 15px 15px;
    }
}