/* style/cockfighting.css */
/* 页面完整样式代码 - 注意：所有选择器必须使用BEM命名规则（双下划线__连接） */

/* 基础样式和颜色对比度 */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark (#000000), so use light text */
    background-color: transparent; /* Main content background is transparent, relying on body background */
}

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

.page-cockfighting__section-title {
    color: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    font-weight: bold;
}

.page-cockfighting__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-cockfighting__text-center {
    text-align: center;
}

/* 按钮样式 */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #1a7fb2;
    border-color: #1a7fb2;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-cockfighting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* Intro Section */
.page-cockfighting__intro-section,
.page-cockfighting__strategy-section,
.page-cockfighting__guide-section,
.page-cockfighting__cta-section {
    background-color: #1a1a1a; /* Lighter dark background for sections */
    padding: 80px 0;
    color: #f0f0f0;
}

.page-cockfighting__rules-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section {
    background-color: #0d0d0d; /* Darker background for contrast */
    padding: 80px 0;
    color: #f0f0f0;
}

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: #000000; /* Deep dark background */
    color: #ffffff;
    text-align: center;
}

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

.page-cockfighting__video-link {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block; /* Ensure it behaves like a block element */
    cursor: pointer;
}

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

.page-cockfighting__card {
    background-color: #262626; /* Card background on dark sections */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

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

.page-cockfighting__list {
    list-style: disc;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

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

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

.page-cockfighting__feature-item {
    background-color: #262626;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.page-cockfighting__feature-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 auto 20px auto;
    border-radius: 10px; /* Changed from 50% for square image */
    background-color: rgba(38, 169, 224, 0.1); /* Light background for icon */
    padding: 15px;
    display: block; /* Ensure block for margin auto */
}

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

.page-cockfighting__feature-description {
    color: #f0f0f0;
}

/* Guide Section specific */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: #262626;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
    text-align: left;
}

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

.page-cockfighting__faq-item {
    background-color: #262626;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: #26A9E0; /* Brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome */
}

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    background-color: #262626; /* Darker background for answer */
    color: #f0f0f0;
    font-size: 1.1em;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: #1a7fb2;
}

/* CTA Section */
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

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

    .page-cockfighting__hero-section {
        height: 60vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }

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

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

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

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

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure space for fixed header on mobile */
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin: 20px auto !important;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-item,
    .page-cockfighting__step-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__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    /* Content area images minimum size check */
    .page-cockfighting img:not(.page-cockfighting__feature-icon) {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}

/* Ensure text contrast for different backgrounds */
.page-cockfighting__dark-bg {
  color: #ffffff; /* Deep dark background, use light text */
}

.page-cockfighting__light-bg {
  color: #f0f0f0; /* Lighter dark background, use slightly off-white text */
}

/* Specific button colors for contrast */
.page-cockfighting__btn-primary {
  background: #26A9E0;
  color: #ffffff;
}

.page-cockfighting__btn-secondary {
  background: transparent;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-cockfighting__card {
  background: #262626; /* Card background on dark sections */
  color: #ffffff;
}

.page-cockfighting__faq-question {
  background-color: #26A9E0;
  color: #ffffff;
}
.page-cockfighting__faq-answer {
  background-color: #262626;
  color: #f0f0f0;
}