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

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

.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%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--bg-body); /* #08160F */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    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 {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* H1 font-size clamp */
    color: var(--gold); /* #F2C14E */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__description {
    font-size: 1.15rem;
    color: var(--text-secondary); /* #A7D9B8 */
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--border); /* #2E7A4E */
    color: #ffffff;
    box-shadow: 0 0 15px rgba(46, 122, 78, 0.6);
}

/* Section General Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-final-section {
    background-color: #ffffff; /* Light background for contrast */
    color: #333333; /* Dark text for contrast */
    padding: 60px 0;
}

.page-cockfighting__bet-types-section,
.page-cockfighting__download-section,
.page-cockfighting__faq-section {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    color: #333333; /* Default for light sections */
}

.page-cockfighting__section-title--light {
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    margin-bottom: 20px;
    font-weight: 600;
    color: #333333; /* Default for light sections */
}

.page-cockfighting__sub-title--light {
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__paragraph {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #333333; /* Default for light sections */
}

.page-cockfighting__paragraph--light {
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-cockfighting__keyword {
    font-weight: 600;
    color: var(--deep-green); /* #0A4B2C */
}

.page-cockfighting__paragraph--light .page-cockfighting__keyword {
    color: var(--gold); /* #F2C14E */
}

/* Grid Layouts */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.page-cockfighting__grid--reverse {
    grid-template-areas: "image text";
}

.page-cockfighting__grid--reverse .page-cockfighting__text-block {
    grid-area: text;
}

.page-cockfighting__grid--reverse .page-cockfighting__image-block {
    grid-area: image;
}

.page-cockfighting__text-block {
    padding: 20px 0;
}

.page-cockfighting__image-block {
    text-align: center;
}

.page-cockfighting__image-block--center {
    margin-top: 40px;
}

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

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

.page-cockfighting__card {
    background-color: var(--deep-green); /* #0A4B2C */
    color: var(--text-main); /* #F2FFF6 */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border: 1px solid var(--border); /* #2E7A4E */
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--gold); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* Features Grid */
.page-cockfighting__grid--features {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

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

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin: 0 auto 15px auto;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__feature-title {
    font-size: 1.2rem;
    color: var(--deep-green); /* #0A4B2C */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__feature-text {
    font-size: 0.9rem;
    color: #555555;
}

/* Download Section */
.page-cockfighting__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__download-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 40px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--deep-green); /* #0A4B2C */
    border: 1px solid var(--border); /* #2E7A4E */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main); /* #F2FFF6 */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gold); /* #F2C14E */
    background-color: var(--deep-green); /* #0A4B2C */
    user-select: none;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    color: var(--gold); /* #F2C14E */
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95rem;
    color: var(--text-secondary); /* #A7D9B8 */
    line-height: 1.6;
    max-height: 0; /* For div based, handled by JS, but also for initial state */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* For details tag, max-height is not needed for hiding, but used for transition */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* A sufficiently large value for expansion */
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}
.page-cockfighting__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-cockfighting__faq-answer a {
    color: var(--gold); /* #F2C14E */
    text-decoration: underline;
}
.page-cockfighting__faq-answer a:hover {
    color: #ffffff;
}

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

/* Text and background color contrast based on custom palette */
/* Default for body is handled by shared.css and var(--bg-body), which is dark. */
/* So, text-main and text-secondary are light colors. */
/* Light sections should have dark text. */
.page-cockfighting__introduction-section,
.page-cockfighting__features-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-final-section {
    background-color: #ffffff; /* Explicitly white for contrast */
    color: #333333; /* Dark text on white background */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title,
.page-cockfighting__features-section .page-cockfighting__section-title,
.page-cockfighting__tips-section .page-cockfighting__section-title,
.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    color: #333333;
}

.page-cockfighting__introduction-section .page-cockfighting__sub-title,
.page-cockfighting__features-section .page-cockfighting__sub-title,
.page-cockfighting__tips-section .page-cockfighting__sub-title,
.page-cockfighting__cta-final-section .page-cockfighting__sub-title {
    color: var(--deep-green); /* #0A4B2C */
}

.page-cockfighting__introduction-section .page-cockfighting__paragraph,
.page-cockfighting__features-section .page-cockfighting__paragraph,
.page-cockfighting__tips-section .page-cockfighting__paragraph,
.page-cockfighting__cta-final-section .page-cockfighting__paragraph {
    color: #555555;
}

.page-cockfighting__introduction-section .page-cockfighting__keyword,
.page-cockfighting__features-section .page-cockfighting__keyword,
.page-cockfighting__tips-section .page-cockfighting__keyword,
.page-cockfighting__cta-final-section .page-cockfighting__keyword {
    color: var(--primary-color); /* #11A84E */
}

.page-cockfighting__features-section .page-cockfighting__feature-item {
    background-color: #f8f8f8;
    color: #333333;
}
.page-cockfighting__features-section .page-cockfighting__feature-title {
    color: var(--deep-green);
}
.page-cockfighting__features-section .page-cockfighting__feature-text {
    color: #555555;
}

.page-cockfighting a {
    color: var(--primary-color);
    text-decoration: none;
}
.page-cockfighting a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__grid--reverse {
        grid-template-areas: unset;
    }
    .page-cockfighting__grid--reverse .page-cockfighting__text-block,
    .page-cockfighting__grid--reverse .page-cockfighting__image-block {
        grid-area: unset;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__section-title {
        margin-bottom: 30px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
    }
    .page-cockfighting__container,
    .page-cockfighting__introduction-section .page-cockfighting__container,
    .page-cockfighting__bet-types-section .page-cockfighting__container,
    .page-cockfighting__features-section .page-cockfighting__container,
    .page-cockfighting__download-section .page-cockfighting__container,
    .page-cockfighting__tips-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__cta-final-section .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-image,
    .page-cockfighting__image,
    .page-cockfighting__feature-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-block,
    .page-cockfighting__feature-item,
    .page-cockfighting__card,
    .page-cockfighting__faq-item,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__download-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-cockfighting__cta-buttons,
    .page-cockfighting__download-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px !important;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        font-size: 1rem !important;
    }
    .page-cockfighting__feature-icon {
        width: 150px !important;
        height: 150px !important;
        margin: 0 auto 15px auto;
    }
}

@media (max-width: 576px) {
    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    .page-cockfighting__description {
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__sub-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
}