/* style/cockfighting.css */

:root {
    --z88-primary-color: #017439;
    --z88-secondary-color: #FFFFFF;
    --z88-register-login-btn: #C30808;
    --z88-register-login-font: #FFFF00;
    --z88-body-bg: #0a0a0a; /* From shared.css, dark background */
    --z88-text-light: #ffffff;
    --z88-text-dark: #333333;
}

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

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    min-height: 600px; /* Minimum height for hero section */
}

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

.page-cockfighting__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

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

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: var(--z88-text-light);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

/* General Section Styles */
.page-cockfighting__section {
    padding: 80px 0;
}

.page-cockfighting__dark-bg {
    background-color: var(--z88-primary-color);
    color: var(--z88-text-light);
}

.page-cockfighting__light-bg {
    background-color: var(--z88-secondary-color);
    color: var(--z88-text-dark);
}

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

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

.page-cockfighting__btn-primary {
    background-color: var(--z88-register-login-btn);
    color: var(--z88-register-login-font);
    border: 2px solid var(--z88-register-login-btn);
}

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

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

.page-cockfighting__secondary-btn-dark-bg {
    color: var(--z88-primary-color);
    border: 2px solid var(--z88-primary-color);
    background-color: var(--z88-secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--z88-text-light);
    color: var(--z88-primary-color);
}

.page-cockfighting__btn-center {
    display: block;
    margin: 40px auto 0;
    text-align: center;
}

/* Images */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

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

.page-cockfighting__image-item {
    flex: 1 1 calc(50% - 10px);
    min-width: 300px;
}

.page-cockfighting__image-small {
    max-width: 100%;
    margin-top: 20px;
    border-radius: 8px;
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--z88-text-light);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--z88-text-light);
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Type List */
.page-cockfighting__type-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__type-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__type-heading {
    font-size: 1.8em;
    color: var(--z88-text-light);
    margin-bottom: 15px;
}

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

.page-cockfighting__step-item {
    background-color: var(--z88-secondary-color);
    color: var(--z88-text-dark);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    padding-left: 70px;
}

.page-cockfighting__step-item::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 25px;
    top: 25px;
    background-color: var(--z88-primary-color);
    color: var(--z88-text-light);
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__step-heading {
    font-size: 1.4em;
    color: var(--z88-primary-color);
    margin-bottom: 10px;
}

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

.page-cockfighting__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--z88-text-light);
    text-align: center;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
    padding: 20px 15px 10px;
    font-size: 1.6em;
}

.page-cockfighting__promotion-card .page-cockfighting__card-text {
    padding: 0 15px 20px;
    font-size: 1em;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--z88-text-light);
    background-color: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

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

.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, padding 0.3s ease;
    color: var(--z88-text-light);
}

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

.page-cockfighting__faq-answer .page-cockfighting__text-block {
    margin-bottom: 0;
    padding-bottom: 10px;
}

.page-cockfighting__faq-heading {
    font-size: 1em; /* Adjust to fit within question area */
    margin: 0;
    color: inherit;
}

/* CTA Banner */
.page-cockfighting__cta-banner {
    text-align: center;
    padding: 60px 0;
    background-color: var(--z88-primary-color);
    color: var(--z88-text-light);
}

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

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

    .page-cockfighting__hero-section {
        min-height: 400px;
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .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: 12px 20px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

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

    .page-cockfighting__text-block {
        font-size: 1em;
    }

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

    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__image-row {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__image-item {
        min-width: unset;
    }

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

    .page-cockfighting__feature-card,
    .page-cockfighting__promotion-card {
        padding: 20px;
    }

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

    .page-cockfighting__step-item::before {
        left: 20px;
        top: 20px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }

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

    .page-cockfighting__faq-answer {
        padding: 15px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }

    .page-cockfighting__cta-banner {
        padding: 40px 0;
    }

    .page-cockfighting__btn-center {
        margin: 30px auto 0;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__feature-card .page-cockfighting__card-title,
    .page-cockfighting__promotion-card .page-cockfighting__card-title {
        font-size: 1.4em;
    }
    .page-cockfighting__type-heading {
        font-size: 1.5em;
    }
}