:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-button-color: #C30808;
    --register-login-font-color: #FFFF00;
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --border-color: #e0e0e0;
    --background-light-grey: #f9f9f9;
}

.page-resources-understanding-cockfighting-rules {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color-dark); /* Body background is white, so dark text */
    background-color: var(--secondary-color); /* Explicitly set for clarity, though shared.css likely handles body */
}

/* Fixed header spacing */
.page-resources-understanding-cockfighting-rules__hero-section {
    padding-top: var(--header-offset, 120px); /* Use shared offset */
    padding-bottom: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #004d26 100%); /* Darker green gradient */
    color: var(--text-color-light);
    text-align: center;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-resources-understanding-cockfighting-rules__hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-resources-understanding-cockfighting-rules__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-cockfighting-rules__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    filter: none; /* Ensure no CSS filters for images */
}

.page-resources-understanding-cockfighting-rules__hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-resources-understanding-cockfighting-rules__main-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: var(--text-color-light); /* Light text on dark green background */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-resources-understanding-cockfighting-rules__intro-text {
    font-size: 1.2em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-color-light);
}

.page-resources-understanding-cockfighting-rules__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Ensure button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-resources-understanding-cockfighting-rules__btn-register {
    background: var(--register-login-button-color); /* Red */
    color: var(--register-login-font-color); /* Yellow */
    border: 2px solid var(--register-login-font-color);
}

.page-resources-understanding-cockfighting-rules__btn-register:hover {
    background: #a80707; /* Darker red */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-resources-understanding-cockfighting-rules__btn-promotions {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--text-color-light);
    margin-left: 20px;
}

.page-resources-understanding-cockfighting-rules__btn-promotions:hover {
    background: #004d26;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Content Area */
.page-resources-understanding-cockfighting-rules__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--secondary-color); /* White background */
    color: var(--text-color-dark); /* Dark text */
}

.page-resources-understanding-cockfighting-rules__section-container {
    max-width: 960px;
    margin: 0 auto;
}

.page-resources-understanding-cockfighting-rules__section-title {
    font-size: 2em;
    color: var(--primary-color);
    margin-top: 40px;
    margin-bottom: 25px;
    text-align: left;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 10px;
}

.page-resources-understanding-cockfighting-rules__section-title:first-of-type {
    margin-top: 0;
}

.page-resources-understanding-cockfighting-rules p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-resources-understanding-cockfighting-rules__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
}

.page-resources-understanding-cockfighting-rules__list li {
    margin-bottom: 8px;
    font-size: 1.05em;
}

.page-resources-understanding-cockfighting-rules__list li strong {
    color: var(--primary-color);
}

.page-resources-understanding-cockfighting-rules__image-text-block {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-resources-understanding-cockfighting-rules__image-text-block--reversed {
    flex-direction: row-reverse;
}

.page-resources-understanding-cockfighting-rules__content-image {
    flex: 0 0 400px; /* Base width for image */
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    filter: none; /* Ensure no CSS filters for images */
}

.page-resources-understanding-cockfighting-rules__text-block {
    flex: 1;
    min-width: 300px; /* Allow text block to shrink but not too much */
}

/* Inline links */
.page-resources-understanding-cockfighting-rules__inline-link {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-resources-understanding-cockfighting-rules__inline-link:hover {
    color: #004d26; /* Darker green on hover */
}

/* CTA buttons group */
.page-resources-understanding-cockfighting-rules__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on mobile */
}

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

.page-resources-understanding-cockfighting-rules__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-resources-understanding-cockfighting-rules__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
    background: var(--background-light-grey);
    color: var(--text-color-dark); /* Ensure dark text on light background */
}

.page-resources-understanding-cockfighting-rules__faq-item.active .page-resources-understanding-cockfighting-rules__faq-answer {
    max-height: 2000px !important; /* Ensure content fits, use !important */
    padding: 20px 15px !important;
    opacity: 1;
    border-radius: 0 0 5px 5px;
}

.page-resources-understanding-cockfighting-rules__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-resources-understanding-cockfighting-rules__faq-question:hover {
    background: var(--background-light-grey);
    border-color: #d0d0d0;
}

.page-resources-understanding-cockfighting-rules__faq-question:active {
    background: #eeeeee;
}

.page-resources-understanding-cockfighting-rules__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-color-dark);
    pointer-events: none;
}

.page-resources-understanding-cockfighting-rules__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-resources-understanding-cockfighting-rules__faq-item.active .page-resources-understanding-cockfighting-rules__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Change to X for active state */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-resources-understanding-cockfighting-rules__main-title {
        font-size: 2.2em;
    }
    .page-resources-understanding-cockfighting-rules__section-title {
        font-size: 1.8em;
    }
    .page-resources-understanding-cockfighting-rules__hero-image {
        max-width: 800px;
    }
}

@media (max-width: 768px) {
    .page-resources-understanding-cockfighting-rules__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile padding-top */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-resources-understanding-cockfighting-rules__main-title {
        font-size: 1.8em;
        line-height: 1.3;
    }

    .page-resources-understanding-cockfighting-rules__intro-text {
        font-size: 1em;
    }

    .page-resources-understanding-cockfighting-rules__cta-button {
        padding: 12px 25px;
        font-size: 1em;
        max-width: 100% !important; /* Ensure button responsiveness */
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin-left: 0; /* Remove margin for single column */
    }

    .page-resources-understanding-cockfighting-rules__btn-promotions {
        margin-top: 15px; /* Add space between buttons if stacked */
    }

    .page-resources-understanding-cockfighting-rules__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-resources-understanding-cockfighting-rules__content-area {
        padding: 40px 15px;
    }

    .page-resources-understanding-cockfighting-rules__section-title {
        font-size: 1.5em;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-resources-understanding-cockfighting-rules p,
    .page-resources-understanding-cockfighting-rules__list li {
        font-size: 1em;
    }

    .page-resources-understanding-cockfighting-rules__image-text-block {
        flex-direction: column;
        gap: 20px;
    }

    .page-resources-understanding-cockfighting-rules__image-text-block--reversed {
        flex-direction: column; /* Stack normally on mobile */
    }

    .page-resources-understanding-cockfighting-rules__content-image {
        flex: 0 0 100%; /* Take full width */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px;
        min-height: 200px;
    }
    
    .page-resources-understanding-cockfighting-rules__text-block {
        min-width: unset; /* Remove min-width for mobile */
    }

    /* FAQ Mobile */
    .page-resources-understanding-cockfighting-rules__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-resources-understanding-cockfighting-rules__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-resources-understanding-cockfighting-rules__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-resources-understanding-cockfighting-rules__faq-answer {
        padding: 0 15px;
    }
    
    .page-resources-understanding-cockfighting-rules__faq-item.active .page-resources-understanding-cockfighting-rules__faq-answer {
        padding: 15px !important;
    }
}

/* Global image styles to prevent small icons and enforce min-size */
.page-resources-understanding-cockfighting-rules img {
    min-width: 200px;
    min-height: 200px;
    max-width: 100%; /* Ensures responsiveness */
    height: auto;
    object-fit: cover;
    filter: none; /* Ensure no CSS filters for images */
}
/* Specific content area image rules */
.page-resources-understanding-cockfighting-rules__content-area img {
    min-width: 200px; /* Enforce min size in content area */
    min-height: 200px;
    max-width: 100%;
    height: auto;
    filter: none; /* Ensure no CSS filters for images */
}
@media (max-width: 768px) {
    .page-resources-understanding-cockfighting-rules img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-resources-understanding-cockfighting-rules__section,
    .page-resources-understanding-cockfighting-rules__card,
    .page-resources-understanding-cockfighting-rules__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no CSS filters for images */
.page-resources-understanding-cockfighting-rules img {
    filter: none;
}