/* style/cockfighting.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --accent-color: #EA7C07; /* For login/promotions if needed */
    --border-color: #e0e0e0;
}

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

/* Fixed Header Offset */
.page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px); /* Apply offset to the first visual section */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    filter: none; /* Ensure no CSS filter is applied */
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: var(--text-light);
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--text-light); /* Ensure high contrast */
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: var(--text-light); /* Ensure high contrast */
}

.page-cockfighting__hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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, color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* For mobile responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #1a8cc4; /* Darken on hover */
    border-color: #1a8cc4;
}

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

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

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

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

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__section-title::after {
    background-color: var(--text-light);
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: var(--text-light);
}

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

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    order: 2;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__text-content {
    order: 1;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: block; /* Ensure it behaves as a block element */
    filter: none; /* Ensure no CSS filter is applied */
}

.page-cockfighting__image--center {
    margin: 40px auto 0 auto;
}

/* Betting Types Section */
.page-cockfighting__betting-cards {
    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-dark);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-cockfighting__dark-section .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: var(--text-light);
}

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

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

.page-cockfighting__dark-section .page-cockfighting__card-title {
    color: var(--text-light);
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--text-dark);
}

.page-cockfighting__dark-section .page-cockfighting__card-description {
    color: var(--text-light);
}

/* Registration Section */
.page-cockfighting__step-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    margin-bottom: 15px;
}

/* Strategy Section */
.page-cockfighting__strategy-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    color: var(--text-light);
}

.page-cockfighting__strategy-title {
    font-size: 1.4em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-cockfighting__strategy-description {
    font-size: 1em;
    color: var(--text-light);
}

/* Safety Section */
.page-cockfighting__safety-item {
    background-color: var(--secondary-color);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

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

.page-cockfighting__safety-description {
    font-size: 1em;
    margin-bottom: 15px;
}

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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark section */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-light);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.1); /* Slightly darker for contrast */
    color: var(--text-light);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--text-light);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting__faq-answer a {
    color: var(--accent-color); /* Link color for FAQ */
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
        order: initial; /* Reset order for mobile */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__text-content {
        order: initial; /* Reset order for mobile */
    }
}

@media (max-width: 768px) {
    /* Fixed Header Offset for mobile, if not handled by shared.css body padding */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__hero-section {
        height: 450px;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta {
        flex-direction: column;
        gap: 10px;
    }
    .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__container,
    .page-cockfighting__intro-section,
    .page-cockfighting__how-it-works-section,
    .page-cockfighting__betting-types-section,
    .page-cockfighting__registration-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

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

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        filter: none !important; /* Ensure no CSS filter is applied */
    }

    /* 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 !important;
        padding-right: 15px !important;
        overflow: hidden !important;
    }

    /* Card responsiveness */
    .page-cockfighting__betting-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.3em;
    }

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