.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333;
    background-color: #FFFFFF;
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C30808;
    border-radius: 2px;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    box-sizing: border-box;
    max-width: 100%;
}

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

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

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

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

.page-cockfighting__link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__link:hover {
    color: #C30808;
    text-decoration: underline;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    color: #FFFFFF;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    background-color: #017439; /* Fallback for image loading */
}

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

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 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-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-cockfighting__image-text-grid .page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-text-grid .page-cockfighting__text-content {
    flex: 2;
}

/* How To Play Section */
.page-cockfighting__dark-section {
    background-color: #017439;
    color: #FFFFFF;
    padding: 80px 0;
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-section .page-cockfighting__text-block {
    color: #f0f0f0;
}

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

.page-cockfighting__step-card {
    background-color: #FFFFFF;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__step-card .page-cockfighting__step-button {
    margin-top: 20px;
    width: fit-content;
    align-self: center;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-cockfighting__feature-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
    color: #017439;
    margin-bottom: 15px;
}

/* Live Matches Section */
.page-cockfighting__live-matches-section {
    padding: 80px 0;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 40px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-cta {
    text-align: center;
    font-style: italic;
    margin-top: 20px;
    color: #f0f0f0;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

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

.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: #f0f0f0;
    transition: background-color 0.3s ease;
}

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

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

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

.page-cockfighting__cta-content {
    max-width: 800px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap;
    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;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }
    .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;
        padding: 12px 20px;
    }
    .page-cockfighting__image-text-grid {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-text-grid .page-cockfighting__text-content {
        order: 1;
    }
    .page-cockfighting__image-text-grid .page-cockfighting__image-wrapper {
        order: 2;
    }
    .page-cockfighting__steps-grid,
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__live-matches-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }

    /* Mobile image, video, button adaptations */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__button-group,
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .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;
    }
    
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__text-block {
        font-size: 1em;
    }
    .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: 10px 20px;
    }
}

/* Ensure content area images are not tiny */
.page-cockfighting__content-image,
.page-cockfighting__feature-icon {
    min-width: 200px;
    min-height: 200px;
}

/* No filter on images */
.page-cockfighting img {
    filter: none;
}

.page-cockfighting__hero-image {
    filter: brightness(0.6); /* This is allowed as it's for text readability on background */
}