/* style/cockfighting.css */

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background: linear-gradient(135deg, #26A9E0, #FFFFFF); /* Brand colors gradient */
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

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

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    color: #FFFFFF; /* White text for contrast on brand color background */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: #f0f0f0; /* Slightly off-white for description */
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: #EA7C07; /* Login color for CTA */
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.page-cockfighting__cta-button:hover {
    background: #ff8c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 80px 20px;
    text-align: center;
    background-color: #FFFFFF;
}

.page-cockfighting__section:nth-of-type(even) {
    background-color: #f8f9fa; /* Alternate background for readability */
}

.page-cockfighting__dark-bg {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__dark-section .page-cockfighting__text-block,
.page-cockfighting__dark-bg .page-cockfighting__text-block {
    color: #f0f0f0;
}

.page-cockfighting__dark-section .page-cockfighting__list-item,
.page-cockfighting__dark-bg .page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for cards on dark bg */
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}
.page-cockfighting__dark-section .page-cockfighting__list-title,
.page-cockfighting__dark-bg .page-cockfighting__list-title {
    color: #ffffff;
}
.page-cockfighting__dark-section .page-cockfighting__list-description,
.page-cockfighting__dark-bg .page-cockfighting__list-description {
    color: #f0f0f0;
}


.page-cockfighting__container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Brand primary color for titles */
    margin-bottom: 40px;
    font-weight: 700;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.7;
    text-align: left;
}

.page-cockfighting__text-block a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
    text-align: left;
}

.page-cockfighting__list-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.page-cockfighting__list-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__list-description {
    font-size: 1em;
    color: #555555;
    line-height: 1.6;
}

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

/* App Download Section */
.page-cockfighting__app-download-steps {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-cockfighting__app-platform {
    flex: 1;
    min-width: 300px;
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
}

.page-cockfighting__app-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 25px;
}

.page-cockfighting__app-platform .page-cockfighting__list-item {
    background: none;
    border: none;
    box-shadow: none;
    padding: 10px 0;
    margin-bottom: 10px;
    border-bottom: 1px dashed #eee;
}

.page-cockfighting__app-platform .page-cockfighting__list-item:last-child {
    border-bottom: none;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: #f8f9fa;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0;
    text-align: left;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Ensure it expands sufficiently */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 1.1em;
    font-weight: 600;
    line-height: 1.5;
    color: #333333;
    pointer-events: none; /* Prevent h3 from blocking click event */
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none; /* Prevent icon from blocking click event */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #26A9E0;
    transform: rotate(180deg); /* Rotate for minus sign effect */
}


/* Call to Action Section */
.page-cockfighting__call-to-action {
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff;
    padding: 60px 20px;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
    color: #ffffff;
    margin-bottom: 20px;
}

.page-cockfighting__call-to-action .page-cockfighting__text-block {
    color: #f0f0f0;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure container takes full width for responsive */
    max-width: 600px; /* Limit max width for desktop */
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow on mobile */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    cursor: pointer;
    flex-grow: 1; /* Allow buttons to grow */
    max-width: 250px; /* Max width for individual buttons */
    box-sizing: border-box; /* Include padding and border in element's total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: #EA7C07; /* Login color */
    color: #ffffff;
    border-color: #EA7C07;
}

.page-cockfighting__btn-primary:hover {
    background: #ff8c00;
    border-color: #ff8c00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 15px;
        line-height: 1.5;
    }

    /* Hero Section Mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        width: 100% !important; /* Full width for mobile CTA */
        max-width: 300px; /* Max width for single button */
        margin-left: auto;
        margin-right: auto;
    }

    /* General Section Mobile */
    .page-cockfighting__section {
        padding: 40px 15px;
    }

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

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

    .page-cockfighting__image {
        margin: 20px auto;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    /* List Grid Mobile */
    .page-cockfighting__list--grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page-cockfighting__list-item {
        padding: 20px;
    }

    .page-cockfighting__list-title {
        font-size: 1.2em;
    }

    /* App Download Steps Mobile */
    .page-cockfighting__app-download-steps {
        flex-direction: column;
        gap: 20px;
    }

    .page-cockfighting__app-platform {
        padding: 25px;
    }

    .page-cockfighting__app-title {
        font-size: 1.5em;
        margin-bottom: 20px;
    }

    /* FAQ Mobile */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }

    .page-cockfighting__faq-question h3 {
        font-size: 1em;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }

    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }

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

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

    /* Call to Action Mobile */
    .page-cockfighting__call-to-action {
        padding: 40px 15px;
    }

    .page-cockfighting__call-to-action .page-cockfighting__text-block {
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0; /* Remove horizontal padding from container, buttons will handle it */
    }

    .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-left: 20px; /* Add internal padding for button text */
        padding-right: 20px;
    }

    /* General image and container responsive rules */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__app-platform,
    .page-cockfighting__faq-list,
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
}