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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    line-height: 1.6;
    font-size: 16px;
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 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 */
    padding-bottom: 60px;
    text-align: center;
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.25rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.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: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main); /* White text for primary button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1); /* Light gold background on hover */
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    max-width: 800px;
    margin: 0 auto 50px auto;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__step-card,
.page-cockfighting__type-card,
.page-cockfighting__promo-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-icon,
.page-cockfighting__type-image,
.page-cockfighting__promo-image {
    width: 100%; /* Ensure images fill card width */
    height: auto;
    max-height: 250px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 25px;
    display: block;
}

.page-cockfighting__feature-title,
.page-cockfighting__step-title,
.page-cockfighting__type-name,
.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__feature-text,
.page-cockfighting__step-text,
.page-cockfighting__type-desc,
.page-cockfighting__promo-text {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Ensure text takes available space */
}

/* How-to-play Steps */
.page-cockfighting__step-card {
    position: relative;
    padding-top: 60px; /* Space for number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    border: 3px solid var(--page-cockfighting-deep-green);
    box-shadow: 0 0 0 5px var(--page-cockfighting-card-bg);
}

/* Promotions Section */
.page-cockfighting__cta-center {
    margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 50px auto 0 auto;
    text-align: left;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green); /* Darker background for question */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    list-style: none; /* For <summary> tag */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-deep-green);
    border-bottom-color: var(--page-cockfighting-border);
}

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

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--page-cockfighting-glow);
    margin-left: 15px;
    line-height: 1;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    background-color: var(--page-cockfighting-card-bg);
    line-height: 1.6;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    background-color: var(--page-cockfighting-deep-green);
    padding: 80px 0;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__cta-final .page-cockfighting__section-description {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 40px;
}

/* Text alignment helpers */
.page-cockfighting__text-center {
    text-align: center;
}

/* Images in content area */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .page-cockfighting__section-title {
        font-size: 2rem;
    }
}

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

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

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

    .page-cockfighting__hero-description {
        font-size: 1.1rem;
        margin-bottom: 25px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        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__section {
        padding: 60px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .page-cockfighting__section-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__step-grid,
    .page-cockfighting__type-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 30px;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-card {
        padding: 25px;
    }

    .page-cockfighting__feature-icon,
    .page-cockfighting__type-image,
    .page-cockfighting__promo-image {
        max-height: 200px;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__type-name,
    .page-cockfighting__promo-title {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .page-cockfighting__feature-text,
    .page-cockfighting__step-text,
    .page-cockfighting__type-desc,
    .page-cockfighting__promo-text {
        font-size: 0.95rem;
    }

    .page-cockfighting__step-number {
        width: 50px;
        height: 50px;
        font-size: 1.7rem;
        top: -15px;
    }

    .page-cockfighting__step-card {
        padding-top: 50px;
    }

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

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

    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }

    .page-cockfighting__cta-final {
        padding: 60px 0;
    }

    /* Mobile image and container 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,
    .page-cockfighting__hero-section,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    .page-cockfighting__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}