/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --accent-color-register: #C30808;
    --accent-color-login: #C30808;
    --text-color-light: #FFFFFF;
    --text-color-dark: #333333;
    --bg-color-light: #FFFFFF;
    --bg-color-dark: #1a1a1a; /* Inherited from shared.css body */
    --register-login-font-color: #FFFF00;
}

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: var(--text-color-light);
    background-color: var(--primary-color);
    padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.6);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: var(--text-color-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__hero-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: background-color 0.3s ease, transform 0.3s ease;
    font-size: 1.1em;
    cursor: pointer;
    border: 2px solid transparent;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: var(--accent-color-register);
    color: var(--register-login-font-color);
    border-color: var(--accent-color-register);
}

.page-cockfighting__btn-primary:hover {
    background-color: #a30606;
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

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

.page-cockfighting__intro-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__join-us-section,
.page-cockfighting__faq-section {
    background-color: var(--bg-color-light);
    color: var(--text-color-dark);
}

.page-cockfighting__strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__video-section,
.page-cockfighting__cta-final-section {
    background-color: var(--primary-color);
    color: var(--text-color-light);
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: inherit; /* Inherit color from parent section */
}

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

.page-cockfighting__content-image {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video-section {
    padding-bottom: 60px;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
    margin-bottom: 30px;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    max-width: 100%;
    cursor: pointer;
}

.page-cockfighting__video-cta {
    text-align: center;
    margin-top: 30px;
}

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

.page-cockfighting__card {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__card--dark {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: inherit;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: inherit;
    flex-grow: 1;
    margin-bottom: 15px;
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin-top: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__strategy-list,
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__strategy-list li,
.page-cockfighting__steps-list li {
    background-color: rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.1em;
    color: var(--text-color-light);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__steps-list li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
}

.page-cockfighting__steps-list li::before {
    content: "Bước " counter(step-counter);
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--accent-color-register);
    color: var(--register-login-font-color);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-color-dark);
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #ebebeb;
}

.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 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    font-size: 1em;
    color: var(--text-color-dark);
}

.page-cockfighting__cta-final-section {
    text-align: center;
    padding: 60px 20px;
}

.page-cockfighting__cta-final-content {
    max-width: 800px;
}

.page-cockfighting__cta-final-section .page-cockfighting__btn-primary {
    margin-top: 30px;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-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-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-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;
    }
    .page-cockfighting__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__content-image,
    .page-cockfighting__card-image {
        max-width: 100% !important;
        height: auto !important;
        width: 100% !important;
        display: block !important;
    }
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__strategy-list li,
    .page-cockfighting__steps-list li {
        padding: 15px;
        font-size: 1em;
    }
    .page-cockfighting__steps-list li::before {
        width: 30px;
        height: 30px;
        font-size: 0.8em;
        left: 10px;
    }
    .page-cockfighting__steps-list li {
        padding-left: 50px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__cta-buttons--center {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

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

/* Ensure content area images are not smaller than 200px (except logo/social icons handled by shared) */
.page-cockfighting img {
    min-width: 200px;
    min-height: 200px;
}

/* Override min-width/height for card images on mobile if they become too big, but still respect 200px */
@media (max-width: 768px) {
    .page-cockfighting__card-image {
        min-width: unset;
        min-height: unset;
        /* If a card image needs to be smaller than 200px on mobile, it should still be >= 200px by global rule. */
        /* If it naturally scales down while maintaining aspect ratio, that's fine as long as the containing element doesn't force it below 200px */
        /* The max-width: 100% and height: auto will scale it down, but the *effective* display size should still be reasonable for content images. */
        /* The global min-size rule means it won't be like a tiny icon. */
    }
}