/* General styles for the cockfighting page */
.page-cockfighting {
    background-color: #08160F;
    color: #F2FFF6;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding to the bottom */
}

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

.page-cockfighting__section {
    padding: 40px 0;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #F2C14E; /* Gold */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #A7D9B8;
    text-align: justify;
}

.page-cockfighting__highlight {
    color: #57E38D;
    font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px;
    padding-bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #08160F;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    padding: 30px 20px 60px;
    max-width: 900px;
    margin-top: -80px; /* Overlap slightly with image */
    background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 50%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em);
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    border: 2px solid transparent;
}

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

.page-cockfighting__btn-secondary {
    background-color: #11271B;
    color: #F2FFF6;
    border: 2px solid #2E7A4E;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #2E7A4E;
    color: #F2FFF6;
    box-shadow: 0 0 15px #2E7A4E;
}

.page-cockfighting__btn-large {
    min-width: 200px;
    padding: 18px 35px;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    background-color: #0A4B2C;
    border-bottom: 1px solid #1E3A2A;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding-top: 60px;
}

.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.page-cockfighting__feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #57E38D;
}

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

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

/* Types Section */
.page-cockfighting__types-section {
    padding-top: 60px;
}

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

.page-cockfighting__gameshow-card {
    background-color: #11271B;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #2E7A4E;
}

.page-cockfighting__gameshow-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px #57E38D;
}

.page-cockfighting__gameshow-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__gameshow-card .page-cockfighting__card-title {
    padding: 20px 20px 0;
    text-align: left;
}

.page-cockfighting__gameshow-card .page-cockfighting__card-description {
    padding: 0 20px 20px;
    text-align: left;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: #0A4B2C;
    border-top: 1px solid #1E3A2A;
    border-bottom: 1px solid #1E3A2A;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-cockfighting__step-by-step {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background-color: #11271B;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E;
    position: relative;
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    color: #F2FFF6;
    margin-bottom: 20px;
    box-shadow: 0 0 10px #57E38D;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    color: #A7D9B8;
    font-size: 0.95em;
}

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

/* Tips Section */
.page-cockfighting__tips-section {
    padding-top: 60px;
}

.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background-color: #11271B;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #2E7A4E;
}

.page-cockfighting__tip-title {
    font-size: 1.4em;
    color: #F2C14E;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__tip-description {
    color: #A7D9B8;
    font-size: 0.95em;
}

/* Safety Section */
.page-cockfighting__safety-section {
    background-color: #0A4B2C;
    border-top: 1px solid #1E3A2A;
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-cockfighting__safety-content {
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: wrap;
}

.page-cockfighting__safety-image {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    display: block;
}

.page-cockfighting__safety-text {
    flex: 2;
    min-width: 300px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] {
    background-color: #0A4B2C;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #F2FFF6;
    cursor: pointer;
    list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: #F2C14E;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #57E38D;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #A7D9B8;
    text-align: justify;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: #0A4B2C;
    border-top: 1px solid #1E3A2A;
}

.page-cockfighting__final-cta-section .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__final-cta-section .page-cockfighting__cta-buttons {
    margin-top: 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 20px 15px 40px;
    }

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

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

    .page-cockfighting__feature-grid,
    .page-cockfighting__gameshow-grid,
    .page-cockfighting__step-by-step,
    .page-cockfighting__tip-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__safety-content {
        flex-direction: column;
        align-items: center;
    }

    .page-cockfighting__safety-image {
        max-width: 100%;
    }

    .page-cockfighting__safety-text {
        min-width: unset;
        text-align: center;
    }
}

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

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

    .page-cockfighting__section {
        padding: 30px 0;
    }

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

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed small top padding */
    }

    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px;
    }

    .page-cockfighting__btn,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 */
    .page-cockfighting__gameshow-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__gameshow-image {
        max-width: 100% !important;
        width: 100% !important;
        height: 200px !important; /* Adjust height for mobile */
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-card,
    .page-cockfighting__gameshow-card,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 其他内容模块 */
    .page-cockfighting__feature-grid,
    .page-cockfighting__step-by-step,
    .page-cockfighting__tip-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__safety-image {
        min-width: unset;
    }

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

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

    .page-cockfighting__faq-toggle {
        font-size: 1.3em;
    }

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