/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000000) */
}

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

/* Sections */
.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, #017439, #004d2b); /* Brand color gradient */
    color: #ffffff;
}

.page-cockfighting__hero-content {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFF00; /* Specific color for title as per requirement for "注册和登录字体" which implies important text */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-cockfighting__hero-image {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.page-cockfighting__hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: #000000; /* Explicitly dark background */
    color: #ffffff;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 900px;
    margin: 30px auto;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.page-cockfighting__video-caption {
    margin-top: 20px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-cockfighting__content-section,
.page-cockfighting__strategy-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__cta-section {
    padding: 60px 0;
    background-color: #0d0d0d; /* Dark background for these sections */
    color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    text-align: center;
    color: #017439; /* Brand color for titles on light background */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #FFFF00; /* Specific color for titles on dark background */
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #017439; /* Brand color for subtitles on light background */
}

.page-cockfighting__dark-bg .page-cockfighting__sub-title {
    color: #ffffff; /* White text for subtitles on dark background */
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    line-height: 1.8;
}

.page-cockfighting__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-cockfighting__image-with-text .page-cockfighting__image {
    flex: 1;
    min-width: 300px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__text-block {
    flex: 1;
    min-width: 300px;
}

/* Grid layout for types and advantages */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: #ffffff; /* White background for cards on dark sections */
    color: #333333; /* Dark text for cards */
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: #555555;
}

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark sections */
    color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__advantage-card .page-cockfighting__advantage-icon {
    width: 200px; /* Minimum size */
    height: 200px;
    object-fit: cover; /* Ensure image covers the area */
    border-radius: 50%; /* Make them circular */
    margin-bottom: 20px;
    border: 3px solid #017439;
}


.page-cockfighting__advantage-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00; /* Highlight important titles */
}

.page-cockfighting__advantage-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__strategy-item {
    background-color: #f8f8f8; /* Light background for strategy items */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box; /* Ensure padding doesn't cause overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #e01c1c;
    border-color: #e01c1c;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand color for secondary buttons on light background */
    border: 2px solid #017439;
}

.page-cockfighting__dark-bg .page-cockfighting__btn-secondary {
    color: #ffffff; /* White text for secondary buttons on dark background */
    border-color: #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

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

.page-cockfighting__button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
}

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

.page-cockfighting__faq-item {
    background-color: #f8f8f8;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e6f7ed;
    border-bottom: 1px solid #d9d9d9;
}

.page-cockfighting__faq-question:hover {
    background-color: #d9f0e1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px; /* Initial padding 0 */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555;
    background-color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, #017439, #004d2b); /* Brand color gradient */
    color: #ffffff;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: #FFFF00; /* Highlight title */
}

.page-cockfighting__cta-section .page-cockfighting__paragraph {
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 1.2em;
}

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

.page-cockfighting__cta-button {
    min-width: 250px; /* Ensure buttons are not too small */
}

.page-cockfighting__cta-image {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    margin-top: 30px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }

    .page-cockfighting__grid,
    .page-cockfighting__strategy-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-cockfighting__image-with-text {
        flex-direction: column;
        gap: 20px;
    }

    .page-cockfighting__image-with-text .page-cockfighting__image {
        max-width: 100%;
    }
}

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

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__video-section,
    .page-cockfighting__content-section,
    .page-cockfighting__types-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
    }

    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }

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

    .page-cockfighting__hero-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: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

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

    .page-cockfighting__sub-title {
        font-size: 1.3em;
    }

    .page-cockfighting__paragraph {
        font-size: 1em;
    }

    .page-cockfighting__image-with-text .page-cockfighting__image {
        min-width: unset;
        max-width: 100%;
    }

    .page-cockfighting__grid,
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__advantage-card,
    .page-cockfighting__strategy-item {
        padding: 20px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    .page-cockfighting__cta-section .page-cockfighting__paragraph {
        font-size: 1.1em;
    }

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

    /* Images and Videos responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Hero section padding-top is already handled by var(--header-offset) which is dynamic */
    /* No need for !important here as shared.css should define var for mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px);
    }
}