/* style/cockfighting.css */

:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --register-login-bg: #C30808;
    --register-login-text: #FFFF00;
    --body-bg: #0a0a0a; /* From prompt: body background color */
    --text-color-dark-bg: #ffffff;
    --text-color-light-bg: #333333;
}

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

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-intro {
    font-size: 1.1em;
    color: var(--text-color-dark-bg);
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 80px 0; /* Adjusted for header offset */
    background-color: var(--primary-color);
    overflow: hidden;
    text-align: center;
}

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

.page-cockfighting__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.2;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__hero-description {
    font-size: 1.4em;
    margin-bottom: 40px;
    font-weight: 300;
    color: var(--text-color-dark-bg);
}

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

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

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

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

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

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--register-login-bg), 10%);
    border-color: darken(var(--register-login-bg), 10%);
}

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

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

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

.page-cockfighting__cta-buttons--center {
    text-align: center;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: var(--body-bg);
    color: var(--text-color-dark-bg);
}

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

.page-cockfighting__feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-10px);
}

.page-cockfighting__feature-icon {
    width: 200px; /* Minimum size requirement */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__feature-title {
    font-size: 1.8em;
    color: var(--text-color-dark-bg);
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.8);
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__section-intro {
    color: var(--secondary-color);
}

.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    display: flex;
    align-items: flex-start;
    background: rgba(0, 0, 0, 0.2);
    padding: 25px;
    border-radius: 10px;
    gap: 15px;
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--register-login-text);
    flex-shrink: 0;
    line-height: 1;
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 80px 0;
    background-color: var(--body-bg);
    color: var(--text-color-dark-bg);
    text-align: center;
}

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

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

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-intro {
    color: var(--text-color-light-bg);
}

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

.page-cockfighting__promotion-card {
    background: #f8f8f8;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

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

.page-cockfighting__promotion-card h3 {
    font-size: 1.6em;
    color: var(--primary-color);
    margin: 20px 20px 10px;
}

.page-cockfighting__promotion-card p {
    font-size: 0.95em;
    color: #555;
    padding: 0 20px 20px;
    flex-grow: 1;
}

.page-cockfighting__promotion-card .page-cockfighting__btn-primary {
    margin: 0 20px 20px;
    text-align: center;
    width: calc(100% - 40px);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-color: var(--primary-color);
}

.page-cockfighting__promotion-card .page-cockfighting__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 60px auto 0;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    overflow: hidden;
}

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

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

.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;
    background: rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.9);
}

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

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-bottom: 5px;
}

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

.page-cockfighting__cta-bottom-section .page-cockfighting__section-title,
.page-cockfighting__cta-bottom-section .page-cockfighting__section-intro {
    color: var(--text-color-dark-bg);
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }

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

    .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: 600px;
        padding: 60px 0;
    }

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 15px 20px;
    }

    .page-cockfighting__cta-buttons,
    .page-cockfighting__hero-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column;
        gap: 15px;
    }

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

    .page-cockfighting__section-intro {
        font-size: 1em;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__step-list,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-icon {
        width: 200px; /* Ensure minimum size */
        height: auto;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-item,
    .page-cockfighting__promotion-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Video responsiveness */
    .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: var(--header-offset, 120px) !important;
    }

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

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }

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

    .page-cockfighting__step-number {
        font-size: 2em;
    }
}