/* style/cockfighting.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333;
    line-height: 1.6;
    background-color: var(--secondary-color, #FFFFFF);
}

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

.page-cockfighting__hero-section {
    position: relative;
    padding: 120px 20px 60px; /* Default desktop padding, will be adjusted by JS for header offset */
    background-color: #26A9E0;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.2;
}

.page-cockfighting__hero-container {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #F0F0F0;
}

.page-cockfighting__hero-cta-buttons,
.page-cockfighting__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Màu login */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

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

.page-cockfighting__btn-text {
    background-color: transparent;
    color: #26A9E0;
    border: none;
    padding: 0;
    text-decoration: underline;
    font-size: 1em;
}

.page-cockfighting__btn-text:hover {
    color: #1a719c;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__sunwin-logo-section,
.page-cockfighting__cta-final-section {
    padding: 80px 0;
}

.page-cockfighting__features-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: #FFFFFF;
}

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

.page-cockfighting__highlight {
    font-weight: bold;
    color: #26A9E0; /* For light background */
}

.page-cockfighting__dark-section .page-cockfighting__highlight {
    color: #FFFFFF; /* For dark background */
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.page-cockfighting__feature-card .page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.5;
    color: #F0F0F0;
}

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

.page-cockfighting__step-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-number {
    background-color: #26A9E0;
    color: #FFFFFF;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 20px;
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.5;
    color: #555555;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-cockfighting__guide-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__sunwin-logo-image {
    display: block;
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 40px auto 20px;
    border-radius: 12px;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: 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: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

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

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

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

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

    .page-cockfighting__hero-section {
        padding: 100px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-cockfighting__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__final-cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-text {
        width: 100%;
        max-width: 300px !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__sunwin-logo-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 50px 0;
    }

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

    .page-cockfighting__features-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__feature-card .page-cockfighting__card-image {
        height: 200px;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__hero-section {
        padding: 80px 10px 30px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 280px !important;
    }
}