/* style/cockfighting.css */
/* body 已 padding-top: var(--header-offset)；页面禁止再写该变量 */

/* Base styles for the page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: #f0f8ff; /* Light background for hero */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
    max-width: 800px;
    z-index: 1;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 30px;
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 600;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 30px;
    padding-top: 40px;
}

/* General section styling */
.page-cockfighting__introduction-section,
.page-cockfighting__history-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__advantages-section,
.page-cockfighting__strategies-section,
.page-cockfighting__faq-section,
.page-cockfighting__final-cta-section {
    padding: 60px 0;
}

/* Background colors for sections */
.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

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

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section p,
.page-cockfighting__dark-section li {
    color: #ffffff;
}

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

/* Lists */
.page-cockfighting__list,
.page-cockfighting__numbered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    padding: 0;
}

.page-cockfighting__numbered-list {
    list-style-type: decimal;
}

.page-cockfighting__list li,
.page-cockfighting__numbered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.page-cockfighting__cta-buttons--center {
    text-align: center;
}

.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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1a8cc7;
    border-color: #1a8cc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__advantage-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it respects width/height */
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-card p {
    color: #555555;
    font-size: 0.95em;
}

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

.page-cockfighting__faq-item {
    background-color: #f0f8ff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-weight: bold;
    font-size: 1.1em;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    background-color: #eaf6ff;
    border-bottom: 1px solid #d0e8f2;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-item[open] summary {
    background-color: #d0e8f2;
}

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

.page-cockfighting__faq-toggle {
    margin-left: 15px;
    font-size: 1.5em;
    line-height: 1;
}

.page-cockfighting__faq-answer {
    padding: 20px;
    color: #555555;
    font-size: 1em;
    border-top: 1px solid #e0e0e0;
    background-color: #f9f9f9;
}

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

/* Final CTA Section */
.page-cockfighting__final-cta-section .page-cockfighting__section-title {
    margin-bottom: 20px;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 4.5vw, 3em);
    }
    .page-cockfighting__description {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px; /* Add padding for mobile containers */
    }

    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is small visual top padding */
    }

    .page-cockfighting__hero-content {
        padding: 15px;
        box-shadow: none; /* Less prominent shadow on mobile */
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em); /* Adjust for smaller screens */
        margin-bottom: 10px;
    }

    .page-cockfighting__description {
        font-size: 0.95em;
        margin-bottom: 20px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 6vw, 2.2em);
        padding-top: 30px;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to button container */
        overflow: hidden;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    /* All containers that might hold images/videos/buttons must be responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__advantage-card,
    .page-cockfighting__faq-list,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Specific padding for sections on mobile to prevent content touching edges */
    .page-cockfighting__introduction-section .page-cockfighting__container,
    .page-cockfighting__history-section .page-cockfighting__container,
    .page-cockfighting__types-section .page-cockfighting__container,
    .page-cockfighting__guide-section .page-cockfighting__container,
    .page-cockfighting__advantages-section .page-cockfighting__container,
    .page-cockfighting__strategies-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__final-cta-section .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__advantage-card {
        padding: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px; /* Adjust height for mobile cards */
    }

    .page-cockfighting__faq-item summary {
        padding: 15px;
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 15px;
    }
}