.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for light body background #f5f5f5 */
    background-color: #f5f5f5; /* Inherit or explicitly set for consistency */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 800px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button fits container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.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: #A00707;
    border-color: #A00707;
}

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

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

.page-cockfighting__hero-video-wrapper {
    width: 100%;
    max-width: 900px; /* Adjust as needed */
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer; /* Indicate clickability */
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #017439; /* Brand primary color for titles */
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    margin-bottom: 25px;
    line-height: 1.7;
    text-align: left;
    color: #333333;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 20px;
    color: #017439;
    text-align: left;
}

.page-cockfighting__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
}

.page-cockfighting__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text */
}

.page-cockfighting__dark-bg .page-cockfighting__section-title,
.page-cockfighting__dark-bg .page-cockfighting__sub-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__text-block {
    color: #F0F0F0;
}

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

.page-cockfighting__feature-card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #333333;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 450px; /* Ensure cards have similar height */
}

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

.page-cockfighting__feature-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Minimum size for content images */
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
    flex-grow: 1; /* Make description take available space */
}

/* Lists */
.page-cockfighting__numbered-list,
.page-cockfighting__bullet-list {
    text-align: left;
    margin-left: 20px;
    margin-bottom: 20px;
    color: #333333;
}

.page-cockfighting__numbered-list li,
.page-cockfighting__bullet-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

.page-cockfighting__dark-bg .page-cockfighting__numbered-list,
.page-cockfighting__dark-bg .page-cockfighting__bullet-list {
    color: #F0F0F0;
}

.page-cockfighting__nested-list {
    margin-top: 10px;
    margin-left: 20px;
    list-style-type: disc;
}

/* Images within content */
.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px; /* Minimum size for content images */
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-height: 200px; /* Minimum size for content images */
}

/* CTA Buttons in sections */
.page-cockfighting__cta-buttons {
    margin-top: 40px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

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

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    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: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555555;
    font-size: 1.0em;
    line-height: 1.6;
}

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

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

/* Conclusion Section */
.page-cockfighting__conclusion {
    padding-bottom: 60px;
}

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

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-cockfighting__hero-container {
        gap: 30px;
    }

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

    .page-cockfighting__hero-description {
        font-size: 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: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__container {
        padding: 0; /* Remove horizontal padding, let section handle it */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__feature-card,
    .page-cockfighting__faq-item,
    .page-cockfighting__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.4em;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__numbered-list li,
    .page-cockfighting__bullet-list li,
    .page-cockfighting__card-description,
    .page-cockfighting__faq-answer {
        font-size: 1em;
    }

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

    .page-cockfighting__feature-card {
        padding: 20px;
    }

    .page-cockfighting__image-full-width,
    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }
    
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__hero-video-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .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;
    }
}