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

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with body background if not explicitly set by shared */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 100px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for better text contrast, without changing color */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    color: #ffffff;
}

.page-cockfighting__main-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__intro-text {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles */
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-cockfighting__dark-bg {
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff; /* Light text for dark background */
    padding: 60px 0;
}

.page-cockfighting__link {
    color: #017439; /* Brand color for links */
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__link:hover {
    text-decoration: underline;
    color: #017439;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure responsiveness */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom font color for register/login */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
    color: #ffffff;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #C30808; /* Custom color for register/login */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #C30808;
    color: #FFFF00; /* Custom font color for register/login */
}

.page-cockfighting__btn-large {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    padding: 60px 0;
    text-align: center;
}
.page-cockfighting__video-section .page-cockfighting__section-title {
    color: #ffffff;
}
.page-cockfighting__video-description {
    color: #f0f0f0;
    margin-bottom: 30px;
}

.page-cockfighting__video-wrapper {
    position: relative;
    max-width: 800px;
    margin: 0 auto 30px auto;
    background-color: #000; /* Black background for video */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
}

.page-cockfighting__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgba(0,0,0,0); /* Transparent overlay for click */
}

.page-cockfighting__video-cta {
    margin-top: 20px;
}

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

.page-cockfighting__benefit-card {
    background-color: #f8f8f8; /* Light background for cards */
    color: #333333; /* Dark text for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__benefit-icon {
    width: 100%; /* Occupy card width */
    height: auto;
    max-height: 200px; /* Limit height */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting__benefit-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__benefit-description {
    font-size: 1em;
    color: #555555;
}

/* Bet Types Section */
.page-cockfighting__bet-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__bet-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
}

.page-cockfighting__bet-item-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__bet-item-description {
    font-size: 1em;
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__guide-item {
    background-color: #f8f8f8;
    color: #333333;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__guide-item-title {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
    position: relative;
    padding-left: 30px;
}

.page-cockfighting__guide-item-title::before {
    content: counter(guide-counter);
    counter-increment: guide-counter;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #017439;
    color: #ffffff;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    font-weight: bold;
}

.page-cockfighting__guide-list {
    counter-reset: guide-counter;
}

.page-cockfighting__guide-item-description {
    font-size: 1em;
    color: #555555;
}

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

.page-cockfighting__strategy-card {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-cockfighting__strategy-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__strategy-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-cockfighting__strategy-description {
    font-size: 1em;
    color: #f0f0f0;
}

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

.page-cockfighting__promotion-card {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promotion-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-cockfighting__promotion-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__promotion-description {
    font-size: 1em;
    color: #555555;
    flex-grow: 1; /* Make description take available space */
    margin-bottom: 20px;
}

.page-cockfighting__promotion-card .page-cockfighting__btn-primary {
    margin-top: auto; /* Push button to the bottom */
}


/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-title {
    font-size: 1.2em;
    color: #ffffff;
    margin: 0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px;
    padding-top: 0;
}

.page-cockfighting__faq-answer .page-cockfighting__paragraph {
    color: #f0f0f0;
    margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    text-align: center;
    padding: 80px 0;
}

.page-cockfighting__cta-final-section .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__cta-final-section .page-cockfighting__paragraph {
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #333333;
}

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

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 60px;
    }
    .page-cockfighting__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__intro-text {
        font-size: 1.1em;
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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-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__cta-buttons {
        flex-direction: column;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__paragraph {
        font-size: 1em;
    }
    .page-cockfighting__benefits-grid,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__benefit-card,
    .page-cockfighting__strategy-card,
    .page-cockfighting__promotion-card {
        padding: 20px;
    }
    .page-cockfighting__benefit-icon,
    .page-cockfighting__strategy-image,
    .page-cockfighting__promotion-image {
        max-height: 180px;
    }

    /* Mobile specific for images and videos */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting video,
    .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__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset for video section */
    }
}