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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    background-color: var(--background-color, #08160F); /* Default background */
}

/* Ensure body text color contrasts with background-color from shared */
/* Assuming shared.css sets body background to --background-color (#08160F) */
body {
    color: var(--text-main, #F2FFF6); /* Default text color for the entire page */
}

/* Ensure all links have proper color */
.page-cockfighting a {
    color: var(--glow, #57E38D);
    text-decoration: none;
}

.page-cockfighting a:hover {
    text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Small top padding, more bottom */
    background-color: var(--deep-green, #0A4B2C); /* Dark section background */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above image if any slight overlap */
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive H1 */
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold, #F2C14E);
    line-height: 1.2;
    letter-spacing: -0.03em;
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width for responsive button wrapping */
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
    box-sizing: border-box;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding is included in width */
    max-width: 100%; /* Ensure button itself is responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border-color, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--border-color, #2E7A4E);
    color: #ffffff;
    box-shadow: 0 0 15px var(--glow, #57E38D);
}

/* General Section Styles */
.page-cockfighting__content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 4vw, 2.8em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold, #F2C14E);
    line-height: 1.3;
}

.page-cockfighting__intro-section,
.page-cockfighting__benefits-section,
.page-cockfighting__tips-section {
    background-color: var(--card-bg, #11271B); /* Light bg for these sections */
    color: var(--text-main, #F2FFF6);
    padding: 60px 0;
}

.page-cockfighting__game-types,
.page-cockfighting__how-to-play-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-bottom {
    background-color: var(--background-color, #08160F); /* Dark bg for these sections */
    color: var(--text-main, #F2FFF6);
    padding: 60px 0;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--divider, #1E3A2A);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__card-dark {
    background-color: var(--deep-green, #0A4B2C); /* Darker card background for game types */
}

.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;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__card p {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    flex-grow: 1; /* Allow paragraph to take available space */
    margin-bottom: 20px;
}

/* Benefit List */
.page-cockfighting__benefit-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__benefit-item {
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
}

.page-cockfighting__benefit-icon {
    width: 48px; /* Corrected to match HTML width/height */
    height: 48px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px var(--glow, #57E38D)); /* Add glow effect to icons */
}

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

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

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

.page-cockfighting__step-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    position: relative;
    padding-top: 60px; /* Space for step number */
    display: flex;
    flex-direction: column;
}

.page-cockfighting__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    box-shadow: 0 0 10px var(--glow, #57E38D);
}

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

.page-cockfighting__step-item p {
    font-size: 0.95em;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 25px;
}

.page-cockfighting__step-button {
    width: calc(100% - 0px); /* Adjust for padding, ensure full width */
    margin-top: auto; /* Push button to bottom */
}

/* Tips Section */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__tip-item {
    background-color: var(--deep-green, #0A4B2C);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
}

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

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

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid var(--divider, #1E3A2A);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C);
    border-bottom: 1px solid var(--divider, #1E3A2A);
    transition: background-color 0.3s ease;
    list-style: none; /* Hide default marker for details summary */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--background-color, #08160F);
    color: var(--gold, #F2C14E);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    color: var(--gold, #F2C14E);
}

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

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

.page-cockfighting__faq-answer a {
    color: var(--glow, #57E38D);
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}

/* CTA Bottom */
.page-cockfighting__cta-bottom {
    text-align: center;
    padding: 80px 0;
}

.page-cockfighting__cta-bottom .page-cockfighting__section-title {
    color: var(--gold, #F2C14E);
}

.page-cockfighting__cta-bottom p {
    font-size: 1.1em;
    margin-bottom: 40px;
    color: var(--text-secondary, #A7D9B8);
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 3.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 15px 40px 15px;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-content {
        max-width: 100%;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__content-container {
        padding: 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4em, 6vw, 2em);
        margin-bottom: 30px;
    }

    .page-cockfighting__feature-cards,
    .page-cockfighting__game-cards,
    .page-cockfighting__benefit-list,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__benefit-item,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__card-image {
        max-height: 180px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__benefit-heading,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-heading {
        font-size: 1.2em;
    }

    .page-cockfighting p,
    .page-cockfighting li p,
    .page-cockfighting__faq-answer p {
        font-size: 0.9em;
    }

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video responsiveness (if any) - no video in this page, but keeping for completeness if template needs it */
    .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: 10px !important;
    }
}