/* style/cockfighting.css */

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #26A9E0; /* Fallback for image loading */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6); /* Darken image for text readability */
    transition: transform 0.3s ease-in-out;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px 20px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background for text */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

/* General Section Styles */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    color: #333333;
}

/* Section Backgrounds for Contrast */
.page-cockfighting__light-bg {
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__dark-bg {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__feature-description,
.page-cockfighting__dark-bg .page-cockfighting__bet-item-title,
.page-cockfighting__dark-bg .page-cockfighting__bet-item-description,
.page-cockfighting__dark-bg .page-cockfighting__step-title,
.page-cockfighting__dark-bg .page-cockfighting__step-description,
.page-cockfighting__dark-bg .page-cockfighting__promo-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-description,
.page-cockfighting__dark-bg .page-cockfighting__faq-question h3,
.page-cockfighting__dark-bg .page-cockfighting__faq-answer p {
    color: #FFFFFF;
}

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

.page-cockfighting__feature-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark blue */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #FFFFFF;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure images are not too small */
    height: auto;
    max-width: 250px; /* Max width for feature icons */
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Minimum size */
    min-height: 200px; /* Minimum size */
    object-fit: cover;
}

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

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

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

.page-cockfighting__bet-item {
    background: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #26A9E0;
}

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

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

/* How-to-Play Steps */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
    margin-top: 30px;
}

.page-cockfighting__step-item {
    background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    position: relative;
    padding-left: 70px;
    color: #FFFFFF;
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 20px;
    top: 25px;
    background: #FFFFFF;
    color: #26A9E0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

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

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

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

.page-cockfighting__promo-card {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 5px solid #26A9E0;
}

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

.page-cockfighting__promo-description {
    font-size: 1em;
    color: #555555;
    margin-bottom: 20px;
}

/* Call to Action Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

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

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

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

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

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

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.1); /* Light background on dark section */
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.15); /* Slightly lighter for question area */
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Plus sign rotates to a cross */
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show all content */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

/* General Link Styling for content */
.page-cockfighting a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: #1a7fb2;
    text-decoration: underline;
}

/* Image responsiveness and minimum size */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__bet-item-title,
    .page-cockfighting__step-title {
        font-size: 1.3em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-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; /* Add some internal padding to buttons */
        padding-right: 15px;
    }
    .page-cockfighting__container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__promo-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__bet-list,
    .page-cockfighting__steps-list,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__feature-icon {
        max-width: 100% !important;
        min-width: 200px !important; /* Ensure minimum size */
        min-height: 200px !important; /* Ensure minimum size */
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size for all images */
        min-height: 200px !important;
    }
    .page-cockfighting__step-item {
        padding-left: 20px; /* Reduce padding for smaller screens */
    }
    .page-cockfighting__step-item::before {
        position: static;
        margin-bottom: 10px;
        display: block;
        width: auto;
        height: auto;
        border-radius: 0;
        background: none;
        color: #FFFFFF;
        text-align: left;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
}

/* Content area img CSS dimensions lower bound (by scope, not class name) */
/* Any selector that can select any img under .page-cockfighting should not cause display dimensions less than 200px. */
.page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
}

/* Specific rule to ensure feature icons are not too small but still responsive */
.page-cockfighting__feature-card .page-cockfighting__feature-icon {
    width: 100%; /* Take full width of its container */
    max-width: 250px; /* But don't grow too large */
    height: auto;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
    object-fit: cover;
}

/* Override any potential smaller image sizes in mobile, if not already handled */
@media (max-width: 768px) {
    .page-cockfighting img {
        min-width: 200px !important;
        min-height: 200px !important;
    }
}