/* style/cockfighting.css */

/* --- Base Styles --- */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: var(--secondary-color, #FFFFFF); /* Body background from shared.css */
}

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

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

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

.page-cockfighting__text-block--center {
    text-align: center;
}

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

/* --- Color Contrast Classes --- */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color, #017439);
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color, #FFFFFF);
    color: #333333;
}

/* --- Buttons --- */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary {
    background-color: var(--primary-color, #017439);
    color: #ffffff;
    border-color: var(--primary-color, #017439);
}

.page-cockfighting__btn-primary:hover {
    background-color: #005f2e; /* Darker green */
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color, #017439);
    border-color: var(--primary-color, #017439);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color, #017439);
    color: #ffffff;
}

.page-cockfighting__btn-register {
    background-color: #C30808;
    color: #FFFF00;
    border-color: #C30808;
}
.page-cockfighting__btn-register:hover {
    background-color: #9d0606; /* Darker red */
}

.page-cockfighting__btn-download {
    background-color: transparent;
    color: #C30808;
    border-color: #C30808;
}
.page-cockfighting__btn-download:hover {
    background-color: #C30808;
    color: #FFFF00;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

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

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

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

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

/* --- Introduction Section --- */
.page-cockfighting__introduction-section {
    padding: 60px 0;
}

/* --- Rules Section --- */
.page-cockfighting__rules-section {
    padding: 60px 0;
}

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

.page-cockfighting__rule-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-cockfighting__rule-card .page-cockfighting__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__rule-card p {
    color: #f0f0f0;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Types Section --- */
.page-cockfighting__types-section {
    padding: 60px 0;
}

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

.page-cockfighting__type-card {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
}

.page-cockfighting__type-card .page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__type-card .page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--primary-color, #017439);
    margin: 20px 20px 10px 20px;
    font-weight: bold;
}

.page-cockfighting__type-card p {
    color: #555555;
    padding: 0 20px 20px 20px;
    line-height: 1.7;
    flex-grow: 1;
}

/* --- Live Section --- */
.page-cockfighting__live-section {
    padding: 60px 0;
    text-align: center;
}

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

.page-cockfighting__video-wrapper .page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-link {
    display: block; /* Ensure the whole video area is clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Ensure link is above video controls */
}

.page-cockfighting__cta-buttons--center {
    margin-top: 30px;
}

.page-cockfighting__cta-buttons--center .page-cockfighting__btn-primary,
.page-cockfighting__cta-buttons--center .page-cockfighting__btn-secondary {
    margin: 0 10px;
}


/* --- Tips Section --- */
.page-cockfighting__tips-section {
    padding: 60px 0;
}

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

.page-cockfighting__tip-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__tip-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: var(--primary-color, #017439);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__tip-card p {
    color: #555555;
    line-height: 1.6;
    flex-grow: 1;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    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-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

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

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px 25px;
    color: #f0f0f0;
    line-height: 1.7;
    font-size: 1em;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

/* --- Final CTA Section --- */
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

/* --- Responsive Design --- */
@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__rules-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__tips-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

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

    .page-cockfighting__hero-section {
        padding: 60px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-register,
    .page-cockfighting__btn-download {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .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__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Maintain aspect ratio */
        height: auto !important;
        width: 100% !important;
    }

    .page-cockfighting__video-wrapper .page-cockfighting__video {
        width: 100% !important;
        height: 100% !important;
    }

    .page-cockfighting__rules-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__rule-card,
    .page-cockfighting__type-card,
    .page-cockfighting__tip-card {
        margin-bottom: 20px;
    }

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

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.95em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
}