/* style/cockfighting-rules.css */

/* Base styles for the page content */
.page-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Main content area background */
}

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

/* Hero Section */
.page-cockfighting-rules__hero-section {
    display: flex;
    flex-direction: column; /* Enforce top-image, bottom-text */
    align-items: center;
    text-align: center;
    background-color: #f0f8ff; /* Light background for hero section */
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting-rules__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Or appropriate max-width for hero */
    overflow: hidden;
}

.page-cockfighting-rules__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-cockfighting-rules__hero-content {
    padding: 20px;
    max-width: 900px;
    margin-top: 20px; /* Space between image and content */
}

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

.page-cockfighting-rules__description {
    font-size: 1.15rem;
    color: #555555;
    margin-bottom: 30px;
}

/* Section Titles */
.page-cockfighting-rules__section-title {
    font-size: 2.2rem;
    color: #26A9E0;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-cockfighting-rules__sub-title {
    font-size: 1.6rem;
    color: #000000;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Paragraphs and Lists */
.page-cockfighting-rules p {
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #333333;
}

.page-cockfighting-rules ul,
.page-cockfighting-rules ol {
    margin-bottom: 15px;
    padding-left: 25px;
    color: #333333;
}

.page-cockfighting-rules ul li,
.page-cockfighting-rules ol li {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.page-cockfighting-rules ul li strong,
.page-cockfighting-rules ol li strong {
    color: #26A9E0;
}

/* Inline Images */
.page-cockfighting-rules__image-inline {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

/* Call to Action Buttons */
.page-cockfighting-rules__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1rem;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting-rules__cta-button--primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
    margin-right: 15px;
}

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

.page-cockfighting-rules__cta-button--secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting-rules__cta-button--secondary:hover {
    background-color: #e0f2f7;
    transform: translateY(-2px);
}

.page-cockfighting-rules__cta-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px; /* Space between buttons */
}

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

.page-cockfighting-rules__faq-item {
    background-color: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #ffffff;
    cursor: pointer;
    font-weight: bold;
    color: #26A9E0;
    font-size: 1.1rem;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-cockfighting-rules__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-cockfighting-rules__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #26A9E0;
}

.page-cockfighting-rules__faq-answer {
    padding: 15px 25px 20px;
    background-color: #f9f9f9;
    color: #555555;
    font-size: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* Ensure details open state correctly shows answer */
.page-cockfighting-rules__faq-item[open] .page-cockfighting-rules__faq-question {
    background-color: #e0f2f7; /* Lighter background when open */
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    .page-cockfighting-rules__sub-title {
        font-size: 1.4rem;
        margin-top: 30px;
        margin-bottom: 15px;
    }

    .page-cockfighting-rules p,
    .page-cockfighting-rules ul li,
    .page-cockfighting-rules ol 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;
    }

    /* Mobile button responsiveness */
    .page-cockfighting-rules__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add some padding for text inside button */
        padding-right: 15px;
        margin-right: 0 !important; /* Remove margin for vertical stacking */
    }

    .page-cockfighting-rules__cta-bottom {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }

    /* Ensure all containers with images/buttons/videos are responsive */
    .page-cockfighting-rules__section,
    .page-cockfighting-rules__card,
    .page-cockfighting-rules__container,
    .page-cockfighting-rules__hero-section,
    .page-cockfighting-rules__hero-image-wrapper,
    .page-cockfighting-rules__cta-bottom {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      overflow: hidden !important; /* Prevent content overflow */
    }

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

/* Specific styles for strong emphasis on keywords */
.page-cockfighting-rules strong {
    color: #26A9E0; /* Highlight keywords with primary color */
}

/* Color contrast enforcement - fallback/specific scenarios */
.page-cockfighting-rules__dark-section {
  background: #26A9E0;
  color: #ffffff; /* Forced white text on brand primary background */
  padding: 40px 20px;
}

.page-cockfighting-rules__dark-section h2,
.page-cockfighting-rules__dark-section p {
  color: #ffffff;
}

/* Ensure minimum image sizes for content images */
.page-cockfighting-rules__content-section img {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filter on images */
.page-cockfighting-rules img {
    filter: none !important;
}