/* style/cockfighting.css */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --section-bg: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --default-text-color: #333333; /* For light backgrounds */
    --default-bg-color: #ffffff; /* For default body background */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--default-text-color); /* Default text color for light body background */
    background-color: var(--default-bg-color); /* Assuming shared.css sets body to white */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: 10px; /* Small top padding, assuming body handles header offset */
    padding-bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--section-bg);
}

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

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    color: var(--text-main);
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__hero-title {
    font-size: 2.8em;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--gold-color);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-secondary);
}

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

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--section-bg);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.2em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--default-text-color);
}

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

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: var(--text-secondary);
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: var(--default-bg-color);
    color: var(--default-text-color);
}

.page-cockfighting__intro-section .page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-align: left;
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-cockfighting__why-choose-section .page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 60px 0;
    background-color: var(--default-bg-color);
    color: var(--default-text-color);
}

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

.page-cockfighting__bet-type-card {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__bet-type-card .page-cockfighting__card-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__bet-type-card .page-cockfighting__card-description {
    color: var(--text-secondary);
}

.page-cockfighting__bet-types-section .page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-counter;
    margin-top: 40px;
}

.page-cockfighting__guide-item {
    background-color: var(--card-bg);
    color: var(--text-main);
    padding: 25px 30px 25px 80px;
    margin-bottom: 20px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__guide-item::before {
    counter-increment: guide-counter;
    content: counter(guide-counter);
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--button-gradient);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__guide-step-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__guide-step-description {
    color: var(--text-secondary);
}

.page-cockfighting__guide-section .page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: var(--default-bg-color);
    color: var(--default-text-color);
}

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

.page-cockfighting__feature-card {
    background-color: var(--card-bg);
    color: var(--text-main);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

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

.page-cockfighting__feature-card .page-cockfighting__card-title {
    font-size: 1.3em;
    color: var(--gold-color);
    padding: 15px 20px 10px;
    font-weight: bold;
}

.page-cockfighting__feature-card .page-cockfighting__card-description {
    color: var(--text-secondary);
    padding: 0 20px 20px;
}

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

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--deep-green);
    border-bottom: 1px solid var(--divider-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
    color: var(--text-main);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-bottom: 1px solid var(--primary-color);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    color: var(--gold-color);
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    background-color: var(--default-bg-color);
    color: var(--default-text-color);
    text-align: center;
}

.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    margin-top: 40px;
}

/* General Image styles to ensure responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

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

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

    .page-cockfighting__guide-item {
        padding-left: 70px;
    }

    .page-cockfighting__guide-item::before {
        left: 20px;
    }
}

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

    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile */
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }

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

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    /* 按钮与按钮容器 */
    .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__hero-cta-buttons,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }

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

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

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

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

    /* 产品展示图区域 (Feature Cards Grid) */
    .page-cockfighting__feature-cards-grid {
        grid-template-columns: 1fr; /* Single column for cards */
        gap: 20px;
    }
    
    .page-cockfighting__feature-card .page-cockfighting__card-image {
        height: 200px; /* Adjust height for mobile */
    }

    /* Other content modules - FAQ */
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-cockfighting__guide-item {
        padding-left: 60px;
    }

    .page-cockfighting__guide-item::before {
        left: 15px;
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }

    .page-cockfighting__guide-step-title {
        font-size: 1.2em;
    }
}