.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text on light body background */
    background-color: #f0f2f5; /* Matches shared.css body background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust as needed for design */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff; /* White text on dark hero overlay/image */
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* General Button Styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #000000; /* Black text for contrast on red button, meets WCAG AA */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-cockfighting__btn-secondary {
    background-color: #017439; /* Primary brand color */
    color: #ffffff; /* White text on green button */
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #005a2d;
    border-color: #005a2d;
}

/* Section Styles */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__types-section,
.page-cockfighting__security-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #ffffff; /* White background for light sections */
    color: #333333;
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text on dark green background */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherits color from section */
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit;
}

/* Features Grid */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-cockfighting__feature-item h3 {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* How-to-Play Steps */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__step-item h3 {
    color: #ffffff;
    font-size: 1.3em;
    margin-bottom: 10px;
}

.page-cockfighting__step-item a {
    color: #FFFF00; /* Yellow for links on dark background */
    text-decoration: underline;
}

.page-cockfighting__step-item a:hover {
    color: #fff;
}

.page-cockfighting__image-full-width {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 40px auto 0 auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Minimum size for content images */
    min-height: 200px;
    filter: none; /* Ensure no CSS filters are applied */
}

/* Card Grid */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards are same height */
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size for card images */
    min-height: 200px;
    filter: none; /* Ensure no CSS filters are applied */
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: #017439;
    margin: 20px 20px 10px 20px;
}

.page-cockfighting__card-description {
    padding: 0 20px 20px 20px;
    flex-grow: 1; /* Allows description to take up remaining space */
}

/* Security Section */
.page-cockfighting__security-features {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    min-width: 300px; /* Ensure list doesn't get too small */
}

.page-cockfighting__security-list li {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark green */
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    font-size: 1.1em;
    display: flex;
    align-items: center;
}

.page-cockfighting__security-list li::before {
    content: '✅';
    margin-right: 10px;
    font-size: 1.2em;
}

.page-cockfighting__security-image {
    flex: 1;
    min-width: 400px; /* Ensure image doesn't get too small */
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Minimum size for security image */
    filter: none; /* Ensure no CSS filters are applied */
}

/* Promotions Section */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__promo-card h3 {
    color: #017439;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-cockfighting__promo-card p {
    font-size: 1em;
    margin-bottom: 25px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #ffffff;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #017439;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotates the '+' to 'x' or '-' */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding 0 */
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important; /* Active padding */
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* CTA Section */
.page-cockfighting__cta-section .page-cockfighting__cta-buttons {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 500px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting 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__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__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 stack on mobile */
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    .page-cockfighting__security-features {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__security-list,
    .page-cockfighting__security-image {
        min-width: unset;
        width: 100%;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure image containers adapt */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__security-features {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness - although no video is explicitly used in HTML, include for robustness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Apply header offset on mobile for video section */
    }
}

/* Ensure no CSS filters on images */
.page-cockfighting img {
    filter: none;
}

/* Ensure content area images are not too small (desktop only, mobile is handled by max-width: 100%) */
@media (min-width: 769px) {
    .page-cockfighting__image-full-width,
    .page-cockfighting__security-image {
        width: auto; /* Allow natural width */
        max-width: 100%;
        height: auto;
    }
    .page-cockfighting__card-image {
        width: 100%;
        height: 200px; /* Maintain fixed height on desktop for cards */
    }
}