/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color-page); /* Use page specific background */
    color: var(--text-main); /* Default text color for the page */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 60px 0;
    background-color: var(--deep-green-color);
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    padding: 20px;
    z-index: 10;
    color: var(--text-main);
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-main);
    margin-bottom: 30px;
    line-height: 1.5;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    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: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-secondary {
    background: none;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(17, 168, 78, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(46, 122, 78, 0.2);
}

/* General Section Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__betting-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__features-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--background-color-page);
    color: var(--text-main);
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

.page-cockfighting__text-block a {
    color: var(--primary-color);
    text-decoration: none;
}

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

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Betting Types Section */
.page-cockfighting__betting-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__betting-item {
    background-color: var(--background-color-page);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__betting-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__betting-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Guide Section */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    position: relative;
    padding-left: 80px;
}

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

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

.page-cockfighting__step-description {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* Promotions Section */
.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-color: var(--background-color-page);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 20px 15px 10px;
}

.page-cockfighting__promo-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    padding: 0 15px 20px;
    flex-grow: 1;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin: 0 15px 20px;
    width: calc(100% - 30px);
}

.page-cockfighting__promo-note {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--text-secondary);
}

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

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

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

.page-cockfighting__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

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

.page-cockfighting__faq-item {
    background-color: var(--background-color-page);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    background-color: var(--card-bg);
    user-select: none;
    list-style: none;
    position: relative;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--gold-color);
    transition: transform 0.3s ease;
}

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__cta-buttons {
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-content {
        position: relative;
        transform: none;
        padding: 20px 15px;
        background: none; 
        margin-top: -80px; /* Adjust if needed to pull content up over image */
    }

    .page-cockfighting__hero-image {
        height: 250px;
    }

    .page-cockfighting__main-title {
        font-size: 2rem;
    }

    .page-cockfighting__hero-description {
        font-size: 0.95rem;
    }

    .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;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__betting-description,
    .page-cockfighting__step-description,
    .page-cockfighting__promo-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
    }

    .page-cockfighting__image-content {
        margin: 20px auto;
    }

    .page-cockfighting__promo-grid,
    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__step-item {
        padding-left: 60px;
    }

    .page-cockfighting__step-item::before {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
        left: 15px;
        top: 20px;
    }
    
    .page-cockfighting__betting-title,
    .page-cockfighting__step-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__feature-title {
        font-size: 1.3rem;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }

    /* Enforce image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__features-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0 !important;
    }
    
    .page-cockfighting__section, 
    .page-cockfighting__card, 
    .page-cockfighting__container, 
    .page-cockfighting__promo-card, 
    .page-cockfighting__feature-item, 
    .page-cockfighting__betting-item, 
    .page-cockfighting__step-item, 
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden;
    }

    /* Video responsiveness (if any) */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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__video-section {
        padding-top: 10px !important;
    }

    /* Button responsiveness */
    .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;
    }
    .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;
    }
}