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

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F; /* Main background color */
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-cockfighting {
    background-color: var(--background-color);
    color: var(--text-main); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg); /* Darker background for contrast */
    color: var(--text-main);
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2.8em;
    color: var(--gold-color);
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__content-area {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-color);
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Ensure hero section has a minimum height */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 4vw, 3.5em); /* H1 font-size clamp */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Responsive button */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    min-width: 180px; /* Minimum width for buttons */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--glow-color); /* Light green for secondary button text */
    border: 2px solid var(--glow-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--card-bg); /* Dark text on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* General image styling */
.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
    object-fit: cover;
}

/* Feature List */
.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-cockfighting__feature-item {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Step List */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    position: relative;
    text-align: left;
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    top: -15px;
    left: 20px;
    background-color: var(--primary-color);
    color: var(--text-main);
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9em;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-top: 15px;
    margin-bottom: 10px;
}

.page-cockfighting__step-item p {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* FAQ Section */
.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: var(--text-main);
    cursor: pointer;
    list-style: none; /* Hide default marker */
    outline: none;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-cockfighting__faq-qtext {
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: var(--gold-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
    border-top: 1px solid var(--divider-color);
    margin-top: -1px; /* Overlap border */
}

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

/* Responsible Gambling Section */
.page-cockfighting__responsible-gambling-section .page-cockfighting__content-area {
    text-align: center;
}
.page-cockfighting__responsible-gambling-section p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section .page-cockfighting__section-title {
    color: var(--gold-color);
}
.page-cockfighting__final-cta-section .page-cockfighting__final-cta-description {
    font-size: 1.3em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General paragraph and link colors */
.page-cockfighting p {
    color: var(--text-secondary);
}

.page-cockfighting a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-cockfighting a:hover {
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__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;
    }

    /* Mobile image adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce minimum size */
        min-height: 200px !important; /* Enforce minimum size */
    }
    
    /* Mobile container adaptation for images/videos */
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video section top padding */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles --header-offset, this is decorative */
        padding-left: 15px;
        padding-right: 15px;
    }

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

@media (max-width: 480px) {
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 7vw, 2em);
    }
    .page-cockfighting__feature-list,
    .page-cockfighting__step-list {
        grid-template-columns: 1fr;
    }
}

/* Ensure no CSS filter on images */
.page-cockfighting img {
    filter: none !important;
}

/* Content area images minimum size enforcement for CSS */
.page-cockfighting__content-area img,
.page-cockfighting__feature-item img,
.page-cockfighting__step-item img {
    min-width: 200px;
    min-height: 200px;
}