/* style/cockfighting.css */

/* Base styles for the page */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--reg-bg-color, #ffffff); /* Default to white if var not set */
}

/* Sections */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
    overflow: hidden; /* Prevent content overflow */
}

.page-cockfighting__dark-bg {
    background-color: #017439; /* Main brand color */
    color: #ffffff; /* White text for dark background */
}

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

/* Headings */
.page-cockfighting__heading {
    font-size: 2.5em;
    margin-bottom: 30px;
    color: inherit; /* Inherit color from parent section */
}

.page-cockfighting__sub-heading {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: inherit;
}

/* Paragraphs */
.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: inherit;
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__list-ordered {
    list-style-position: inside;
    padding-left: 0;
    margin-bottom: 30px;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    color: inherit;
}

.page-cockfighting__list-item strong {
    color: inherit; /* Ensure strong tags inherit color */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

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

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
    /* No filter for color change, only brightness for contrast */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    padding: 30px;
    border-radius: 10px;
}

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

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

/* Buttons */
.page-cockfighting__hero-buttons,
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    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;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

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

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

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

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

.page-cockfighting__dark-bg .page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

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

.page-cockfighting__dark-bg .page-cockfighting__faq-question {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

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

.page-cockfighting__dark-bg .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;
    transition: transform 0.3s ease;
}

/* For <details> tag, hide default marker */
.page-cockfighting__faq-item summary {
    list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes an X */
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    font-size: 1.05em;
    line-height: 1.6;
    color: #555555;
    text-align: left;
}

.page-cockfighting__dark-bg .page-cockfighting__faq-answer {
    color: #e0e0e0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__heading {
        font-size: 2em;
    }
    .page-cockfighting__sub-heading {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0; /* Adjust padding for mobile */
    }
    .page-cockfighting__container {
        padding: 0 15px !important; /* Force padding for mobile containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images */
    .page-cockfighting__image {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Videos */
    .page-cockfighting__hero-video-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Buttons */
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Add padding to button groups */
    }

    .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: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset is applied */
        min-height: 500px;
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__heading {
        font-size: 1.8em;
    }
    .page-cockfighting__sub-heading {
        font-size: 1.3em;
    }
    .page-cockfighting__paragraph,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-question,
    .page-cockfighting__faq-answer {
        font-size: 1em;
    }
    .page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__heading {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-content {
        padding: 20px;
    }
}