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

.page-cockfighting {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--page-text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--page-bg-dark); /* Page background for sections without specific bg */
    line-height: 1.6;
}

.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; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Max height for hero image */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
}

.page-cockfighting__hero-content {
    position: relative; /* Not absolute, to be below the image */
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Pull content up slightly over the darkened image area for better visual flow */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
    border-radius: 10px;
    z-index: 1;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    color: var(--page-gold-color);
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__intro-text {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--page-text-main);
}

.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 for wrapping */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap; /* Prevent text wrapping for single button */
    box-sizing: border-box; /* Include padding in width */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
    background: var(--page-button-gradient);
    color: var(--page-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 20px var(--page-glow-color);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-accent-color);
    border: 2px solid var(--page-accent-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(var(--page-accent-color), 0.1);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2), 0 0 15px var(--page-accent-color);
}

/* --- General Sections --- */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--page-gold-color);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-cockfighting__dark-section {
    background-color: var(--page-bg-dark);
    color: var(--page-text-main);
    padding: 80px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--page-card-bg); /* Use card background for light sections */
    color: var(--page-text-main);
    padding: 80px 0;
}

.page-cockfighting p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-text-secondary);
}

/* --- About Section --- */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__feature-title {
    font-size: 1.5rem;
    color: var(--page-gold-color);
    margin-bottom: 15px;
}

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

.page-cockfighting__step-item {
    background: var(--page-bg-dark); /* Darker background for steps */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-border-color);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: var(--page-button-gradient);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--page-text-main);
    margin-bottom: 20px;
    box-shadow: 0 0 15px var(--page-glow-color);
}

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

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 60px;
}

/* --- Game Types Section --- */
.page-cockfighting__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

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

.page-cockfighting__game-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__game-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-cockfighting__advantage-item {
    background: var(--page-bg-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-border-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__advantage-item:hover {
    transform: translateY(-5px);
}

.page-cockfighting__advantage-title {
    font-size: 1.4rem;
    color: var(--page-gold-color);
    margin-bottom: 15px;
    position: relative;
    padding-left: 40px;
    text-align: left;
}

.page-cockfighting__advantage-title::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
}

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

.page-cockfighting__faq-item {
    background: var(--page-card-bg);
    border: 1px solid var(--page-border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-gold-color);
    cursor: pointer;
    background-color: var(--page-deep-green); /* Darker background for question */
    border-bottom: 1px solid var(--page-border-color);
    list-style: none; /* Remove default marker for summary */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--page-text-main);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar for open state */
}

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--page-text-secondary);
    background-color: var(--page-card-bg);
    border-top: none;
}

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

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

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 30px 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__intro-text {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    /* Mobile specific padding for content sections */
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play,
    .page-cockfighting__game-types,
    .page-cockfighting__why-choose,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles header offset, this is extra visual space */
    }

    .page-cockfighting__hero-content {
        margin-top: -60px; /* Adjust overlap */
        padding: 20px 15px;
    }

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

    .page-cockfighting__intro-text {
        font-size: 0.95rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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: 1rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 30px;
        padding-top: 20px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__feature-item,
    .page-cockfighting__game-card,
    .page-cockfighting__step-item,
    .page-cockfighting__advantage-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure content doesn't overflow */
    }

    /* Videos responsiveness (if any) */
    .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;
    }
}