/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared, fallback to white */
    overflow-x: hidden; /* Prevent horizontal scroll on desktop */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 100px 20px 60px;
    background-color: #017439; /* Brand primary color for dark section */
    color: #ffffff; /* White text for dark background */
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Special color for hero title */
}

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

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

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color for titles on light background */
    text-align: center;
    margin-bottom: 40px;
    padding-top: 20px;
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__text-block,
.page-cockfighting__dark-section .page-cockfighting__list-item,
.page-cockfighting__dark-section .page-cockfighting__guide-item p {
    color: #ffffff; /* White text for titles on dark background */
}

.page-cockfighting__light-bg {
    background-color: #ffffff; /* White background */
    color: #333333; /* Dark text */
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff; /* White text */
    padding: 60px 0;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Wrapper */
.page-cockfighting__image-wrapper {
    text-align: center;
    margin: 30px auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

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

/* Feature Grid */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
}

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #555555;
    text-align: justify;
}

/* List Styles */
.page-cockfighting__list {
    max-width: 900px;
    margin: 20px auto 40px;
    padding-left: 20px;
}

.page-cockfighting__list-item {
    font-size: 1.1em;
    margin-bottom: 10px;
    list-style-type: disc;
    text-align: justify;
}

.page-cockfighting__dark-section .page-cockfighting__list-item {
    color: #f0f0f0;
}

/* Guide List */
.page-cockfighting__guide-list {
    max-width: 900px;
    margin: 20px auto 40px;
    padding: 0;
    list-style: none;
}

.page-cockfighting__guide-item {
    background-color: #ffffff;
    padding: 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
}

.page-cockfighting__guide-step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 15px;
}

/* Promotion Grid */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__promo-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #333333;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* Call to Action Banner */
.page-cockfighting__cta-banner {
    padding: 80px 20px;
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
    text-align: center;
}

.page-cockfighting__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFF00; /* Special color for CTA title */
}

.page-cockfighting__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* 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;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for register/login */
    color: #FFFF00; /* Custom color for register/login text */
    border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005a2e;
    border-color: #005a2e;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
    text-align: center;
}

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

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

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439;
    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-color: #ffffff;
    color: #555555;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 20px !important;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .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__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: 80px 15px 40px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is below fixed header on mobile */
    }

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__light-bg,
    .page-cockfighting__dark-section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    /* Image responsive adaptions */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0px !important;
        padding-right: 0px !important;
    }

    .page-cockfighting__feature-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__cta-banner {
        padding: 60px 15px;
    }

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

    .page-cockfighting__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

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

    .page-cockfighting__list,
    .page-cockfighting__guide-list {
        padding-left: 0;
    }
    .page-cockfighting__list-item,
    .page-cockfighting__text-block {
        padding: 0 15px;
    }
    .page-cockfighting__guide-item {
        padding: 20px 15px;
    }
}