/* style/cockfighting.css */

/* Base Styles */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherit from shared.css */
}

.page-cockfighting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Sections */
.page-cockfighting__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
    padding: 60px 0;
}

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

.page-cockfighting__text-contrast-fix {
    color: #333333 !important; /* Ensure dark text on light backgrounds */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: inherit;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: #ffffff;
    max-width: 800px;
}

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

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

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

/* 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;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

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

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

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

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

/* Grid Container for Cards */
.page-cockfighting__grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards */
.page-cockfighting__card {
    background-color: #ffffff; /* White background for cards on light section */
    color: #333333; /* Dark text for light card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand primary color for card titles */
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.6;
}

.page-cockfighting__card--dark {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark section */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__card-title--light {
    color: #FFFF00; /* Yellow for card titles on dark background */
}

.page-cockfighting__card-text--light {
    color: #f0f0f0;
}

/* Lists */
.page-cockfighting__ordered-list,
.page-cockfighting__unordered-list {
    list-style-position: inside;
    margin: 20px 0;
    padding-left: 20px;
    font-size: 1.1em;
}

.page-cockfighting__ordered-list li,
.page-cockfighting__unordered-list li {
    margin-bottom: 10px;
    color: inherit;
}

.page-cockfighting__ordered-list strong {
    color: #FFFF00; /* Highlight important points in lists */
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    background-color: #017439;
    color: #ffffff;
}

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

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    cursor: pointer;
}

/* FAQ Section */
.page-cockfighting__faq-container {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: inherit;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFFF00;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 20px;
}

.page-cockfighting__faq-answer p {
    margin: 0;
}

/* Call to Action Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding: 60px 0;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 60vh;
    }

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

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

    .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: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__content-area {
        padding: 30px 15px;
    }

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

    .page-cockfighting__paragraph {
        font-size: 1em;
    }

    .page-cockfighting__grid-container {
        grid-template-columns: 1fr;
    }

    .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-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important; /* Ensure aspect ratio is maintained */
        height: 0 !important;
    }

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

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

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

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

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

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }

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

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

    .page-cockfighting__paragraph {
        font-size: 0.95em;
    }
}