/* style/cockfighting.css */

/* Base Styles */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #ffffff; /* Default background, will be overridden by shared.css var(--bg-color) */
}

/* Ensure content area has appropriate padding */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #017439;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Text Blocks */
.page-cockfighting__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 12px 25px;
    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;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

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

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 0; /* Handled by body padding-top in shared.css */
    background-color: #000; /* Fallback for image loading */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    line-height: 0; /* Remove extra space below image */
}

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

.page-cockfighting__hero-content {
    background-color: #ffffff; /* Light background for hero text */
    padding: 50px 20px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-cockfighting__main-title {
    font-size: 3em; /* Use em to allow for relative scaling, but not too large */
    color: #017439;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #555555;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__introduction-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__introduction-section .page-cockfighting__text-block {
    color: #f0f0f0;
}

/* Why Choose Us Section */
.page-cockfighting__why-choose-us-section {
    padding: 80px 0;
    background-color: #ffffff; /* Light background */
    color: #333333;
}

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

.page-cockfighting__feature-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

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

.page-cockfighting__feature-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 30px;
    border-radius: 10px;
    object-fit: cover;
}

/* Game Types and Strategies Section */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-cockfighting__game-types-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__game-types-section .page-cockfighting__sub-title {
    color: #FFFF00; /* Highlighted color */
}

.page-cockfighting__game-types-section .page-cockfighting__text-block,
.page-cockfighting__game-types-section .page-cockfighting__list li {
    color: #f0f0f0;
}

.page-cockfighting__content-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-cockfighting__text-column {
    flex: 1;
}

.page-cockfighting__image-column {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__gameplay-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    object-fit: cover;
}

/* Baccarat Connection Section */
.page-cockfighting__baccarat-connection-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__promotions-section .page-cockfighting__text-block {
    color: #f0f0f0;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    color: #ffffff;
}

.page-cockfighting__promo-title {
    font-size: 1.6em;
    color: #FFFF00; /* Highlighted color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__promo-card p {
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 50px;
    border-radius: 10px;
    object-fit: cover;
}

/* How to Get Started Section */
.page-cockfighting__how-to-start-section {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

.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: #f9f9f9;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #C30808; /* Action color */
    margin-bottom: 10px;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
    font-weight: bold;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #ffffff;
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00; /* Highlighted color */
    cursor: pointer;
    position: relative;
    list-style: none; /* For details/summary */
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.1em;
    color: #f0f0f0;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    background-color: #ffffff;
    color: #333333;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6em;
    }
    .page-cockfighting__content-flex {
        flex-direction: column;
        align-items: center;
    }
    .page-cockfighting__image-column {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    /* General content area padding for mobile */
    .page-cockfighting__container {
        padding: 0 15px !important;
    }

    /* LOGO Carousel Section - (Placeholder, as it's not in this page, but mandatory to include the rule) */
    .page-cockfighting__logo-carousel-section {
        padding: 10px 15px 20px !important;
    }
    /* LOGO轮播项必须单独设置，保持固定尺寸 */
    .page-cockfighting__logo-item {
        width: 80px !important; /* Cố định 80px, cấm sử dụng 100% */
        height: 80px !important; /* Cố định 80px */
        max-width: 80px !important; /* Đảm bảo không bị ghi đè */
        box-sizing: border-box !important;
    }

    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 0 !important; /* Ensure no double padding, body handles it */
    }
    .page-cockfighting__hero-content {
        padding: 30px 15px !important;
    }
    .page-cockfighting__main-title {
        font-size: 2em !important; /* Smaller H1 for mobile */
        max-width: 100% !important;
        padding: 0 5px !important;
    }
    .page-cockfighting__hero-description {
        font-size: 1em !important;
        padding: 0 5px !important;
    }

    /* Introduction Section */
    .page-cockfighting__introduction-section {
        padding: 40px 0 !important;
    }

    /* Why Choose Us Section */
    .page-cockfighting__why-choose-us-section {
        padding: 50px 0 !important;
    }
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr !important; /* Stack cards vertically */
        gap: 20px !important;
    }

    /* Game Types and Strategies Section */
    .page-cockfighting__game-types-section {
        padding: 50px 0 !important;
    }
    .page-cockfighting__content-flex {
        flex-direction: column !important; /* Stack columns vertically */
        gap: 20px !important;
    }
    .page-cockfighting__image-column {
        width: 100% !important; /* Ensure image column takes full width */
    }

    /* Baccarat Connection Section */
    .page-cockfighting__baccarat-connection-section {
        padding: 50px 0 !important;
    }

    /* Promotions Section */
    .page-cockfighting__promotions-section {
        padding: 50px 0 !important;
    }
    .page-cockfighting__promo-cards-grid {
        grid-template-columns: 1fr !important; /* Stack promo cards vertically */
        gap: 20px !important;
    }

    /* How to Get Started Section */
    .page-cockfighting__how-to-start-section {
        padding: 50px 0 !important;
    }
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr !important; /* Stack steps vertically */
        gap: 20px !important;
    }

    /* FAQ Section */
    .page-cockfighting__faq-section {
        padding: 50px 0 !important;
    }
    .page-cockfighting__faq-list {
        margin-top: 30px !important;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px !important;
        font-size: 1.1em !important;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px !important;
        font-size: 1em !important;
    }

    /* Conclusion Section */
    .page-cockfighting__conclusion-section {
        padding: 40px 0 !important;
    }

    /* Section Titles for Mobile */
    .page-cockfighting__section-title {
        font-size: 1.8em !important; /* Smaller section titles */
        margin-bottom: 30px !important;
    }

    /* All images must be responsive for mobile */
    .page-cockfighting img:not(.page-cockfighting__logo-item) {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image,
    .page-cockfighting__feature-image,
    .page-cockfighting__gameplay-image,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    /* All containing elements for images/content must be responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Buttons and Button Containers for Mobile */
    .page-cockfighting__cta-button,
    .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 !important;
        padding-right: 15px !important;
    }
    
    .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 !important;
        padding-right: 15px !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        flex-direction: column !important;
    }
    .page-cockfighting__cta-center .page-cockfighting__btn-large {
        width: auto !important;
        max-width: calc(100% - 30px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}