.page-cockfighting {
    background-color: var(--site-bg, #08160F); /* Fallback to custom BG if shared not defined */
    color: var(--text-main, #F2FFF6); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Base container for content sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    padding-bottom: 40px; /* Ensure content is not too close to the bottom */
    padding-top: 10px; /* Small top padding for visual spacing, body takes header offset */
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
    color: var(--text-main, #F2FFF6);
    margin-top: 100px; /* Adjust as needed to place content visually below image */
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-secondary, #A7D9B8);
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: bold;
}

/* Text Blocks */
.page-cockfighting__text-block {
    font-size: 1em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

.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: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure text breaks */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff; /* White text for contrast */
    border: none;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--glow, #57E38D);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--glow, #57E38D);
    color: #000000; /* Dark text for contrast on glow color */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 25px;
    color: var(--text-main, #F2FFF6);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure it behaves as a block element for max-width */
}

.page-cockfighting__card-title {
    font-size: 1.3em;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

/* Sections */
.page-cockfighting__intro-section,
.page-cockfighting__types-section,
.page-cockfighting__rules-strategy-section,
.page-cockfighting__cta-final-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__features-section,
.page-cockfighting__download-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--deep-green, #0A4B2C); /* Use deep green for alternating sections */
}

.page-cockfighting__dark-bg {
    background-color: var(--background, #08160F);
}

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

/* Type List (Cockfighting Types) */
.page-cockfighting__type-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Download Steps */
.page-cockfighting__download-steps {
    display: grid;
    grid-template-columns: 1fr; /* Single column by default */
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--gold, #F2C14E);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    color: var(--text-secondary, #A7D9B8);
    font-size: 1em;
}

.page-cockfighting__download-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    margin: 20px auto;
    display: block;
    border-radius: 8px;
}

/* Rules and Strategy */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__list li {
    background-color: var(--deep-green, #0A4B2C);
    border-left: 3px solid var(--glow, #57E38D);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: var(--text-secondary, #A7D9B8);
}

.page-cockfighting__list li strong {
    color: var(--text-main, #F2FFF6);
}

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

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
    padding-top: 10px; /* Small top padding for visual spacing */
}

.page-cockfighting__video-link-wrapper {
    display: block;
    width: 100%;
    max-width: 1000px; /* Max width for video container */
    margin: 40px auto 0;
    position: relative;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    overflow: hidden;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--border, #2E7A4E);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--gold, #F2C14E);
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
}

.page-cockfighting__cta-final-content {
    max-width: 900px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-cockfighting__hero-content {
        margin-top: 0; /* Reset margin for larger screens if image is full height */
    }
    .page-cockfighting__hero-section {
        min-height: 700px;
        padding-bottom: 0;
    }
}


@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: 80px; /* Adjust for smaller desktops/tablets */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container,
    .page-cockfighting__hero-content,
    .page-cockfighting__cta-final-content {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__hero-section {
        min-height: 500px;
        padding-bottom: 20px;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
        margin-top: 50px; /* Further adjust for mobile */
    }

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

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

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

    .page-cockfighting__sub-title {
        font-size: 1.2em;
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__type-list,
    .page-cockfighting__promotion-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__download-steps {
        gap: 30px;
    }

    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-link-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}