/* style/cockfighting.css */

/* --- Base Styles --- */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Body background is dark #0a0a0a, so text is light */
    background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

.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: #26A9E0; /* Brand color for titles */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__content-area p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #f0f0f0;
}

.page-cockfighting__list {
    list-style: disc inside;
    margin-bottom: 20px;
    padding-left: 20px;
    color: #f0f0f0;
}

.page-cockfighting__list li {
    margin-bottom: 10px;
    font-size: 1.1em;
}

/* --- Buttons --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-login {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

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

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

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

.page-cockfighting__btn-login {
    background-color: #EA7C07; /* Custom color for Login */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-login:hover {
    background-color: #c46406;
    border-color: #c46406;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__cta-single {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    padding: 60px 0;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    background-color: #0a0a0a; /* Match body background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size for H1 */
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Section Styling --- */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-join-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__tips-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Default dark background */
}

.page-cockfighting__dark-bg {
    background-color: #1a1a1a; /* Slightly lighter dark for contrast */
    color: #ffffff;
}

/* --- Images in Content Area --- */
.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* --- FAQ Section --- */
.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.05); /* Slightly visible dark background */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-sizing: border-box;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2em;
    color: #ffffff;
    user-select: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    color: #26A9E0; /* Brand color when open */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: #f0f0f0;
}

/* Hide default details marker */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-item summary {
    list-style: none;
}


/* --- Responsive Styles --- */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

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

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

    .page-cockfighting__content-area p,
    .page-cockfighting__list li,
    .page-cockfighting__faq-answer {
        font-size: 1em;
    }

    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Ensure it's not too big on mobile */
    }

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px; /* Add padding to container */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-login {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px; /* Adjust padding for full width buttons */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-join-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        min-width: unset;
        min-height: unset;
    }

    /* All containers with images/content */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-join-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    
    .page-cockfighting__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__cta-single {
        padding: 0 15px;
        box-sizing: border-box;
    }

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

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

/* Ensure content area images are at least 200px on desktop */
@media (min-width: 769px) {
    .page-cockfighting__image {
        min-width: 200px;
        min-height: 200px;
    }
}