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

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

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    color: #ffffff;
}

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

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-cockfighting__btn-register,
.page-cockfighting__btn-login,
.page-cockfighting__btn-primary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    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;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

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

.page-cockfighting__btn-register:hover,
.page-cockfighting__btn-login:hover {
    background-color: #a30606;
    color: #ffffe0;
    border-color: #a30606;
}

/* Primary button (for download, etc.) */
.page-cockfighting__btn-primary {
    background-color: #017439; /* Brand primary green */
    color: #ffffff;
    border: 2px solid #017439;
}

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

/* Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #ffffff;
}

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

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

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #017439; /* Brand green title on light background */
}

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

.page-cockfighting__link {
    color: inherit; /* Inherit color from parent */
    text-decoration: underline;
}

.page-cockfighting__link:hover {
    color: #005f2e; /* Darker green on hover */
}

.page-cockfighting__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__content-grid:nth-of-type(even) {
    flex-direction: row-reverse; /* Alternate image/text order */
}

.page-cockfighting__content-grid .page-cockfighting__text-block {
    flex: 1;
}

.page-cockfighting__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Ensure content area images are not too small */
.page-cockfighting__content-area img,
.page-cockfighting__image {
    min-width: 200px;
    min-height: 200px;
}

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

.page-cockfighting__faq-item {
    background-color: #f5f5f5; /* Light grey background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-item.active {
    background-color: #e0e0e0;
}

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

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: #017439; /* Brand green for FAQ questions */
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px; /* Initial padding for collapsed state */
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #555555; /* Darker grey for answer text */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to reveal content */
    padding: 15px 20px;
}

/* Call to Action Section */
.page-cockfighting__call-to-action {
    background-color: #017439;
    padding: 80px 0;
    color: #ffffff;
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__button-group {
    margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        flex-direction: column;
    }
    .page-cockfighting__content-grid:nth-of-type(even) {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
    }
    .page-cockfighting__main-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-register,
    .page-cockfighting__btn-login,
    .page-cockfighting__btn-primary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__button-group {
        flex-wrap: wrap !important;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Images and Videos Responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .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;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__faq-answer {
        padding-left: 15px;
        padding-right: 15px;
    }
}