/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light background */
    background-color: #FFFFFF; /* Default body background */
}

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

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

.page-cockfighting__text-block {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

.page-cockfighting__text-link {
    color: #017439;
    text-decoration: underline;
}

.page-cockfighting__text-link:hover {
    color: #005a2e;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    color: #FFFFFF;
    background-color: #017439; /* Primary brand color for hero background */
}

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

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

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

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

/* 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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom red for register/login */
    color: #FFFFFF; /* Adjusted for WCAG AA contrast on #C30808 */
    border: 2px solid #C30808;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #FFFFFF;
    color: #017439;
    border-color: #FFFFFF;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__text-block {
    color: #FFFFFF;
}

.page-cockfighting__numbered-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__numbered-list li {
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px;
}

.page-cockfighting__numbered-list li::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background-color: #C30808;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2em;
    font-weight: bold;
}

.page-cockfighting__list-heading {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-cockfighting__list-text {
    font-size: 1.05em;
    color: #f0f0f0;
}

.page-cockfighting__how-to-play-image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

.page-cockfighting__how-to-play-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Bet Types Section */
.page-cockfighting__bet-types-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-cockfighting__bet-card {
    background-color: #f8f8f8;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__bet-card-title {
    font-size: 1.8em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__bet-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__bet-card-description {
    font-size: 1em;
    color: #555555;
}

/* Strategy Section */
.page-cockfighting__strategy-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-cockfighting__strategy-section .page-cockfighting__section-title,
.page-cockfighting__strategy-section .page-cockfighting__text-block {
    color: #FFFFFF;
}

.page-cockfighting__bullet-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__bullet-list li {
    margin-bottom: 25px;
    padding-left: 30px;
    position: relative;
}

.page-cockfighting__bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: #C30808;
    font-size: 1.5em;
    line-height: 1;
}

.page-cockfighting__strategy-image-wrapper {
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
}

.page-cockfighting__strategy-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Live Stream Section */
.page-cockfighting__live-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    pointer-events: none; /* Allow click through to video */
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__text-block {
    color: #FFFFFF;
}

.page-cockfighting__promotion-cards {
    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: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__promotion-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.page-cockfighting__promotion-card-title {
    font-size: 1.8em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-cockfighting__promotion-card-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__promotions-cta {
    text-align: center;
    margin-top: 50px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-cockfighting__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f8f8f8;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    transition: background-color 0.3s ease;
}

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

.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: #555555;
    background-color: #FFFFFF;
}

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

.page-cockfighting__faq-heading {
    font-size: 1em;
    margin: 0;
    color: #333333;
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 60px 0;
    background-color: #017439;
    color: #FFFFFF;
    text-align: center;
}

.page-cockfighting__cta-section .page-cockfighting__section-title,
.page-cockfighting__cta-section .page-cockfighting__text-block {
    color: #FFFFFF;
}

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

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

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__content-area {
        padding: 20px 15px;
    }
    .page-cockfighting__hero-section {
        padding: 60px 15px;
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__hero-buttons,
    .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;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__numbered-list li {
        padding-left: 50px;
    }
    .page-cockfighting__numbered-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1em;
    }
    .page-cockfighting__list-heading {
        font-size: 1.3em;
    }
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promotion-cards {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__bet-card-title,
    .page-cockfighting__promotion-card-title {
        font-size: 1.5em;
    }
    .page-cockfighting__video-wrapper {
        margin: 20px 0;
    }

    /* 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__hero-image-wrapper,
    .page-cockfighting__how-to-play-image-wrapper,
    .page-cockfighting__strategy-image-wrapper,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__promotion-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right might be handled by .page-cockfighting__content-area */
        overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
    }
    /* Ensure content sections have padding */
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__live-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        width: 100% !important;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}

/* Color Contrast Fixes (if needed - applied based on body background) */
.page-cockfighting__dark-bg {
    color: #ffffff;
    background: #017439;
}

.page-cockfighting__light-bg {
    color: #333333;
    background: #ffffff;
}

.page-cockfighting__faq-answer p {
    color: #555555; /* Ensure FAQ answer text is readable */
}