.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #f8f8f8; /* A light background for the page content */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    padding-bottom: 60px;
    background-color: #017439; /* Dark background for hero content area */
    color: #ffffff;
    text-align: center;
    overflow: hidden; /* Ensure image and content stay within */
}

.page-cockfighting__hero-image-container {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability if text were overlayed, but text is below */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative; /* Ensure content is above any potential background layers */
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-cockfighting__intro-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for Register/Login */
    color: #FFFF00; /* Custom font color for Register/Login */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e02a2a;
    border-color: #e02a2a;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* General Section Styles */
.page-cockfighting__section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #017439;
}

.page-cockfighting__section-title--white {
    color: #ffffff;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 20px;
    color: #017439;
}

.page-cockfighting__dark-section {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__sub-title {
    color: #ffffff;
}

.page-cockfighting__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-block {
    flex: 1;
}

.page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 200px; /* Ensure minimum size */
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-cockfighting__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

.page-cockfighting__list--strategy {
    list-style: none;
    margin-left: 0;
}

.page-cockfighting__list--strategy li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__list--strategy li::before {
    content: '✓';
    color: #017439;
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__centered-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Why Choose Us Section */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #ffffff;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
    color: #ffffff;
    margin-top: 20px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.page-cockfighting__feature-icon {
    width: 100%; /* Make sure icon is large, not small */
    height: auto;
    max-width: 250px; /* Ensure it's not too wide */
    min-width: 200px; /* Minimum size requirement */
    border-radius: 8px;
    object-fit: cover;
}

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

.page-cockfighting__step-card {
    background-color: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    text-align: center;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    color: #017439;
    margin-top: 15px;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.page-cockfighting__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background-color: #017439;
    color: #ffffff;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 700;
}

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

.page-cockfighting__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    list-style: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #017439;
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    color: #555555;
    font-size: 1rem;
}

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

/* Conclusion Section */
.page-cockfighting__conclusion {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__conclusion-text {
    font-size: 1.2rem;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: #ffffff;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 80%;
    }

    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
        margin-bottom: 30px;
    }

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

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

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

    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 18px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
        padding: 0 18px 18px 18px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 30px !important;
    }

    .page-cockfighting__hero-image-container {
        max-height: 400px;
    }

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

    .page-cockfighting__intro-text {
        font-size: 1rem !important;
        margin-bottom: 20px !important;
        padding: 0 15px;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px !important; /* Add horizontal padding for buttons container */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .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-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 通用图片与容器 */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__text-block,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    .page-cockfighting__section {
        padding: 40px 0 !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem) !important;
        margin-bottom: 25px !important;
    }

    .page-cockfighting__sub-title {
        font-size: clamp(1.2rem, 4vw, 1.5rem) !important;
        margin-bottom: 15px !important;
    }

    /* 产品展示图区域 (Not gameshow, but general feature/product grid) */
    .page-cockfighting__feature-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
    }

    .page-cockfighting__feature-icon {
        max-width: 200px !important; /* Ensure it's not too wide, but still >200px */
        min-width: 200px !important; /* Enforce min size */
        height: auto !important;
    }

    .page-cockfighting__faq-question {
        font-size: 0.95rem !important;
        padding: 15px !important;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.9rem !important;
        padding: 0 15px 15px 15px !important;
    }

    .page-cockfighting__conclusion-text {
        font-size: 1rem !important;
        margin-bottom: 25px !important;
        padding: 0 15px;
    }
    
    .page-cockfighting__btn-large {
        padding: 15px 30px !important;
        font-size: 1.1rem !important;
    }
}