:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --background: #08160F; /* Custom palette: Background */
    --card-bg: #11271B; /* Custom palette: Card BG */
    --text-main: #F2FFF6; /* Custom palette: Text Main */
    --text-secondary: #A7D9B8; /* Custom palette: Text Secondary */
    --border: #2E7A4E; /* Custom palette: Border */
    --glow: #57E38D; /* Custom palette: Glow */
    --gold: #F2C14E; /* Custom palette: Gold */
    --divider: #1E3A2A; /* Custom palette: Divider */
    --deep-green: #0A4B2C; /* Custom palette: Deep Green */
}

/* General styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Assuming dark body background, use light text */
    background-color: var(--background); /* From custom palette #08160F */
    line-height: 1.6;
}

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

/* Helper for sections with dark background from palette */
.page-cockfighting__dark-bg {
    background-color: var(--background); /* Custom palette: #08160F */
    color: var(--text-main); /* #F2FFF6 */
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--text-main); /* #F2FFF6 */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
    line-height: 1.2;
}

/* Text blocks */
.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary); /* #A7D9B8 */
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.05em;
    border: none; /* Remove default border */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* #F2FFF6 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2); /* #2E7A4E with transparency */
    border-color: var(--glow); /* #57E38D */
    color: var(--glow); /* #57E38D */
    transform: translateY(-2px);
}

.page-cockfighting__btn-text-link {
    background: none;
    color: var(--glow); /* #57E38D */
    padding: 0;
    font-size: 1em;
    text-decoration: underline;
    margin-top: 10px;
    display: block;
    text-align: center;
}

.page-cockfighting__btn-text-link:hover {
    color: var(--gold); /* #F2C14E */
    text-decoration: none;
}

.page-cockfighting__btn-large {
    padding: 15px 35px;
    font-size: 1.2em;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-bottom: 50px;
}

.page-cockfighting__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 800;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

.page-cockfighting__bet-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__bet-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__bet-item-title {
    font-size: 1.8em;
    color: var(--glow); /* #57E38D */
    margin-bottom: 15px;
}

.page-cockfighting__bet-item-description {
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 1em;
}

/* Benefits Section */
.page-cockfighting__benefits-section {
    padding: 80px 0;
}

.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__benefit-card {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__benefit-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
    border-radius: 50%; /* Make icons round */
    border: 3px solid var(--border); /* #2E7A4E */
    padding: 10px;
    background-color: rgba(46, 122, 78, 0.1); /* Light background for icon */
}

.page-cockfighting__benefit-title {
    font-size: 1.6em;
    color: var(--glow); /* #57E38D */
    margin-bottom: 10px;
}

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

/* How to Join Section */
.page-cockfighting__how-to-join-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-card {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    background-color: rgba(242, 193, 78, 0.1); /* Light gold background */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--gold);
}

.page-cockfighting__step-title {
    font-size: 1.8em;
    color: var(--text-main); /* #F2FFF6 */
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 1em;
    flex-grow: 1; /* Push link to bottom */
}

/* Tips Section */
.page-cockfighting__tips-section {
    padding: 80px 0;
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr; /* Single column layout for tips */
    gap: 20px;
}

.page-cockfighting__tip-item {
    background-color: var(--card-bg); /* #11271B */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page-cockfighting__tip-item-title {
    font-size: 1.8em;
    color: var(--glow); /* #57E38D */
    margin-bottom: 10px;
}

.page-cockfighting__tip-item-description {
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 1em;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--card-bg); /* #11271B */
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--glow); /* #57E38D */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--border); /* #2E7A4E */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    color: var(--text-secondary); /* #A7D9B8 */
    font-size: 1em;
    background-color: rgba(17, 39, 27, 0.8); /* Slightly lighter dark green */
}

.page-cockfighting__faq-answer p {
    margin: 0;
}

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

/* --- Responsive Styles --- */

/* Tablet and Mobile */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
        padding-top: 30px;
    }

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

    .page-cockfighting__hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

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

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

    .page-cockfighting__btn-secondary {
        margin-left: 0;
    }

    .page-cockfighting__bet-list,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__bet-item-title,
    .page-cockfighting__benefit-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-item-title {
        font-size: 1.5em;
    }
}

/* Mobile specific styles */
@media (max-width: 768px) {
    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        min-height: auto;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 50vh;
        margin-bottom: 20px;
    }

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

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    /* Buttons and Button Containers */
    .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__hero-cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container,
    .page-cockfighting__cta-bottom-section .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important; /* Ensure buttons wrap if they are in a flex row */
        gap: 10px;
    }

    .page-cockfighting__cta-bottom-section .page-cockfighting__btn-large {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto;
    }

    /* General Images and Containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block; /* Ensure block display for proper sizing */
    }

    .page-cockfighting__container,
    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__how-to-join-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 25px;
        padding-top: 25px;
    }

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

    /* Other content modules */
    .page-cockfighting__bet-list,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .page-cockfighting__bet-item,
    .page-cockfighting__benefit-card,
    .page-cockfighting__step-card,
    .page-cockfighting__tip-item {
        padding: 25px;
    }

    .page-cockfighting__bet-item-title,
    .page-cockfighting__benefit-title,
    .page-cockfighting__step-title,
    .page-cockfighting__tip-item-title {
        font-size: 1.4em;
    }

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

    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
        font-size: 0.95em;
    }
}