/* style/cockfighting.css */

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

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

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting__sub-title {
    font-size: clamp(22px, 3vw, 30px);
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 16px;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1920px;
    position: relative;
    margin-bottom: 30px;
}

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
    margin-top: 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(32px, 5vw, 56px);
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
}

.page-cockfighting__btn-primary:hover {
    box-shadow: 0 0 15px var(--glow-color);
    transform: translateY(-3px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-main);
    transform: translateY(-3px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 16px;
}

/* Introduction Section */
.page-cockfighting__introduction-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--background-dark);
}

.page-cockfighting__betting-types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__tips-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--card-background);
}

.page-cockfighting__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__image-left {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: block;
    max-width: 100%;
    height: auto;
}

.page-cockfighting__text-content {
    flex: 2;
}

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

.page-cockfighting__card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

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

.page-cockfighting__card p {
    font-size: 15px;
    color: var(--text-secondary);
}

/* How-To-Bet Section */
.page-cockfighting__step-list {
    list-style: none;
    counter-reset: step-counter;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    padding-left: 80px; /* Space for step number */
    color: var(--text-main);
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 20px;
    top: 30px;
    background-color: var(--primary-color);
    color: var(--text-main);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.page-cockfighting__step-title {
    font-size: 20px;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

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

.page-cockfighting__step-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
}

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

.page-cockfighting__feature-card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--glow-color));
    display: block;
    max-width: 100%;
    min-width: 200px; /* Enforce min size for images */
    min-height: 200px;
}

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

.page-cockfighting__promo-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    max-width: 100%;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    color: var(--gold-color);
    font-size: 20px;
    text-align: left;
}

.page-cockfighting__promo-card p {
    color: var(--text-secondary);
    font-size: 15px;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    align-self: flex-start;
    margin-top: auto;
}

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

.page-cockfighting__tip-card {
    background-color: var(--background-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: var(--text-main);
}

.page-cockfighting__tip-card .page-cockfighting__card-title {
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 15px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: var(--gold-color);
    background-color: var(--deep-green-color);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--text-main);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 16px;
    color: var(--text-secondary);
    border-top: 1px solid var(--divider-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−'; /* Changed by JS */
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--card-background);
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__image-text-block {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-left {
        margin-bottom: 20px;
    }
}

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

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

    .page-cockfighting__section-title {
        font-size: clamp(24px, 6vw, 36px);
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__how-to-bet-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 50px 0;
    }

    /* Mobile Image/Video/Button Responsive Adapters */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !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__hero-section,
    .page-cockfighting__image-text-block,
    .page-cockfighting__promotion-cards,
    .page-cockfighting__tips-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-buttons,
    .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;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    .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;
        padding-right: 15px;
        margin-bottom: 10px; /* Add spacing between stacked buttons */
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 0; /* Remove gap if stacked */
    }

    .page-cockfighting__step-item {
        padding-left: 20px; /* Adjust padding for smaller screens */
    }
    .page-cockfighting__step-item::before {
        position: static;
        display: inline-flex;
        margin-bottom: 10px;
    }

    .page-cockfighting__feature-icon {
        min-width: 150px; /* Adjusted min size for mobile */
        min-height: 150px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(28px, 8vw, 40px);
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-primary, .page-cockfighting__btn-secondary {
        width: 100%;
    }
    .page-cockfighting__card,
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__tip-card {
        padding: 20px;
    }
    .page-cockfighting__faq-question {
        font-size: 16px;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        font-size: 14px;
        padding: 10px 20px 15px;
    }
}