/* style/cockfighting-rules-introduction.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #ffffff;
    --border-color: #e0e0e0;
}

.page-cockfighting-rules-introduction {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light body background */
    background-color: var(--bg-light);
}

.page-cockfighting-rules-introduction__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: var(--primary-color);
    color: var(--text-light);
    overflow: hidden;
}

.page-cockfighting-rules-introduction__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-cockfighting-rules-introduction__hero-content {
    max-width: 900px;
    margin: 20px auto 0;
    padding: 0 20px;
}

.page-cockfighting-rules-introduction__main-title {
    font-size: clamp(2em, 4vw, 2.8em);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-cockfighting-rules-introduction__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cockfighting-rules-introduction__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting-rules-introduction__btn-primary,
.page-cockfighting-rules-introduction__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting-rules-introduction__btn-primary {
    background-color: var(--login-color);
    color: var(--text-light);
    border: 2px solid var(--login-color);
}

.page-cockfighting-rules-introduction__btn-primary:hover {
    background-color: darken(var(--login-color), 10%);
    transform: translateY(-2px);
}

.page-cockfighting-rules-introduction__btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--secondary-color);
}

.page-cockfighting-rules-introduction__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.page-cockfighting-rules-introduction__section {
    padding: 60px 20px;
    margin: 0 auto;
    max-width: 1200px;
    box-sizing: border-box;
}

.page-cockfighting-rules-introduction__content-area {
    background-color: var(--bg-light);
    color: var(--text-dark);
}

.page-cockfighting-rules-introduction__dark-section {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting-rules-introduction__section-title {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: inherit; /* Inherit color from section */
}

.page-cockfighting-rules-introduction__sub-title {
    font-size: 1.6em;
    font-weight: 600;
    margin-top: 40px;
    margin-bottom: 15px;
    color: inherit;
}

.page-cockfighting-rules-introduction__paragraph {
    margin-bottom: 20px;
    font-size: 1.05em;
    line-height: 1.7;
    color: inherit;
}

.page-cockfighting-rules-introduction__image-wrapper {
    margin: 30px auto;
    text-align: center;
    max-width: 800px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting-rules-introduction__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting-rules-introduction__list,
.page-cockfighting-rules-introduction__ordered-list {
    list-style-type: disc;
    margin-left: 25px;
    margin-bottom: 20px;
    color: inherit;
}

.page-cockfighting-rules-introduction__ordered-list {
    list-style-type: decimal;
}

.page-cockfighting-rules-introduction__list-item {
    margin-bottom: 10px;
    font-size: 1.05em;
    line-height: 1.7;
    color: inherit;
}

.page-cockfighting-rules-introduction__faq-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: 60px 20px;
}

.page-cockfighting-rules-introduction__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-cockfighting-rules-introduction__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15em;
    font-weight: 600;
    cursor: pointer;
    color: var(--primary-color);
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting-rules-introduction__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting-rules-introduction__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting-rules-introduction__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--primary-color);
}

.page-cockfighting-rules-introduction__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.page-cockfighting-rules-introduction__faq-item[open] .page-cockfighting-rules-introduction__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
}

.page-cockfighting-rules-introduction__faq-answer p {
    margin-top: 10px;
    margin-bottom: 0;
}

.page-cockfighting-rules-introduction__conclusion-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting-rules-introduction__conclusion-section .page-cockfighting-rules-introduction__section-title {
    color: var(--text-light);
}

.page-cockfighting-rules-introduction__conclusion-section .page-cockfighting-rules-introduction__paragraph {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
}

.page-cockfighting-rules-introduction .highlight {
    color: var(--login-color);
    font-weight: bold;
}

.page-cockfighting-rules-introduction a {
    color: var(--primary-color);
    text-decoration: underline;
}

.page-cockfighting-rules-introduction__dark-section a {
    color: var(--secondary-color);
}

/* --- Responsive Styles --- */

@media (max-width: 1024px) {
    .page-cockfighting-rules-introduction__hero-content {
        max-width: 760px;
    }

    .page-cockfighting-rules-introduction__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }

    .page-cockfighting-rules-introduction__section-title {
        font-size: 2em;
    }

    .page-cockfighting-rules-introduction__sub-title {
        font-size: 1.4em;
    }

    .page-cockfighting-rules-introduction__paragraph,
    .page-cockfighting-rules-introduction__list-item {
        font-size: 1em;
    }

    .page-cockfighting-rules-introduction__faq-question {
        font-size: 1.1em;
        padding: 18px;
    }

    .page-cockfighting-rules-introduction__faq-answer {
        padding: 0 18px 18px;
    }
}

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

    /* HERO 主图区域 */
    .page-cockfighting-rules-introduction__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 30px !important;
    }

    .page-cockfighting-rules-introduction__hero-content {
        padding: 0 15px !important;
    }

    .page-cockfighting-rules-introduction__main-title {
        font-size: clamp(1.5em, 7vw, 2.2em) !important;
        margin-bottom: 10px !important;
    }

    .page-cockfighting-rules-introduction__intro-text {
        font-size: 1em !important;
        margin-bottom: 20px !important;
    }

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

    .page-cockfighting-rules-introduction__image-wrapper,
    .page-cockfighting-rules-introduction__hero-image-container,
    .page-cockfighting-rules-introduction__section,
    .page-cockfighting-rules-introduction__content-area,
    .page-cockfighting-rules-introduction__dark-section,
    .page-cockfighting-rules-introduction__faq-section,
    .page-cockfighting-rules-introduction__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting-rules-introduction__cta-buttons {
        flex-direction: column !important;
        gap: 10px !important;
        padding: 0 15px !important;
    }

    .page-cockfighting-rules-introduction__btn-primary,
    .page-cockfighting-rules-introduction__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    /* 其他内容模块 */
    .page-cockfighting-rules-introduction__section {
        padding: 40px 15px !important;
    }

    .page-cockfighting-rules-introduction__section-title {
        font-size: 1.8em !important;
        margin-bottom: 25px !important;
    }

    .page-cockfighting-rules-introduction__sub-title {
        font-size: 1.3em !important;
        margin-top: 30px !important;
    }

    .page-cockfighting-rules-introduction__paragraph,
    .page-cockfighting-rules-introduction__list-item {
        font-size: 0.95em !important;
    }

    .page-cockfighting-rules-introduction__list,
    .page-cockfighting-rules-introduction__ordered-list {
        margin-left: 20px !important;
    }

    .page-cockfighting-rules-introduction__faq-question {
        font-size: 1em !important;
        padding: 15px !important;
    }

    .page-cockfighting-rules-introduction__faq-answer {
        padding: 0 15px 15px !important;
    }

    .page-cockfighting-rules-introduction__conclusion-section {
        padding: 60px 15px !important;
    }

    .page-cockfighting-rules-introduction__conclusion-section .page-cockfighting-rules-introduction__paragraph {
        font-size: 1em !important;
    }
}