:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F; /* Specific background for this page's main content */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color-page); /* Use the specific background color */
    color: var(--text-main); /* Default text color for the page */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Headings */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--text-main);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting h1 {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Using clamp for responsive H1 */
    text-align: center;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    text-align: center;
    margin-bottom: 30px;
    color: var(--secondary-color);
}

.page-cockfighting h3 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--primary-color);
    margin-top: 25px;
}

/* Text elements */
.page-cockfighting p {
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.page-cockfighting__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--background-color-page);
    text-align: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Ensure image wrapper doesn't exceed content width */
    margin-top: 30px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin-bottom: 30px;
}

.page-cockfighting__main-title {
    margin-bottom: 20px;
}

.page-cockfighting__description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: var(--text-main);
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit button group width */
    margin: 0 auto;
}

.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.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure button itself is responsive */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--text-main);
    box-shadow: 0 8px 20px rgba(17, 168, 78, 0.4);
}

/* Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__rules-section,
.page-cockfighting__advantages-section,
.page-cockfighting__download-section,
.page-cockfighting__faq-section,
.page-cockfighting__call-to-action {
    padding: 60px 0;
}

.page-cockfighting__dark-bg {
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-cockfighting__light-bg {
    background-color: #111e17; /* A slightly lighter dark background for contrast */
    color: var(--text-secondary);
}

.page-cockfighting__light-bg h2,
.page-cockfighting__light-bg h3 {
    color: var(--primary-color);
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: var(--text-secondary);
}

.page-cockfighting__section-title {
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
    color: var(--text-secondary); /* Default card text */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 15px var(--glow-color);
}

.page-cockfighting__card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.page-cockfighting__card-text {
    color: var(--text-secondary);
}

/* Steps List */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid var(--primary-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    color: var(--gold-color);
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.page-cockfighting__step-description {
    color: var(--text-secondary);
}

/* Bet Types List */
.page-cockfighting__bet-types-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-cockfighting__bet-types-list .page-cockfighting__list-item {
    background-color: var(--card-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 5px;
    border: 1px solid var(--divider-color);
    color: var(--text-secondary);
}

.page-cockfighting__bet-types-list .page-cockfighting__list-item strong {
    color: var(--primary-color);
}

/* Content Images */
.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__download-options .page-cockfighting__card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 40px 30px;
}

.page-cockfighting__download-options .page-cockfighting__card-title {
    margin-bottom: 20px;
}

.page-cockfighting__download-options .page-cockfighting__btn-secondary {
    margin-top: 25px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    color: var(--text-secondary);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    font-size: 1.1rem;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--gold-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--text-main);
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--text-secondary);
    font-size: 1rem;
    /* max-height: 0; */ /* Not needed for <details> native behavior */
    /* overflow: hidden; */ /* Not needed for <details> native behavior */
    /* transition: max-height 0.3s ease-out; */ /* Not needed for <details> native behavior */
}

/* .page-cockfighting__faq-item[open] .page-cockfighting__faq-answer { */
    /* max-height: 500px; */ /* Not needed for <details> native behavior */
/* } */

/* Call to Action Section */
.page-cockfighting__call-to-action {
    text-align: center;
    background-color: var(--card-bg); /* Use card-bg for this section as it's a prominent CTA */
    padding: 80px 20px;
    border-top: 5px solid var(--primary-color);
    border-bottom: 5px solid var(--primary-color);
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__call-to-action .page-cockfighting__text-block {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--text-main);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting h2 {
        font-size: clamp(1.6rem, 4.5vw, 2.5rem);
    }
    .page-cockfighting__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: 30px 15px;
        padding-top: 10px;
    }

    .page-cockfighting__hero-content {
        margin-bottom: 20px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__introduction-section,
    .page-cockfighting__gameplay-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__download-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__call-to-action {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 25px;
    }

    .page-cockfighting__card {
        padding: 25px;
    }

    .page-cockfighting__feature-cards,
    .page-cockfighting__download-options {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__step-item {
        padding: 20px 25px;
    }

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

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

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

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__content-image,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't overflow */
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    /* Video responsiveness (if any, though not explicitly added to HTML yet for this page) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

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