.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color, #333333); /* Default text color, ensuring contrast with light background */
    background-color: var(--background-color, #F5F7FA); /* Default page background */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, not var(--header-offset) */
    background-color: #f5f7fa; /* Light background for the section */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 20px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: 3.2em;
    font-weight: 700;
    color: var(--main-color, #E53935);
    margin-bottom: 20px;
    line-height: 1.2;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    color: var(--text-main-color, #333333);
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
    margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%; /* Ensure button adapts to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    color: #ffffff;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: #ffffff;
    color: var(--main-color, #E53935);
    border: 2px solid var(--main-color, #E53935);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--main-color, #E53935);
    color: #ffffff;
}

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--main-color, #E53935);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--main-color, #E53935);
    margin-bottom: 20px;
}

.page-cockfighting__text-block {
    font-size: 1em;
    color: var(--text-main-color, #333333);
    margin-bottom: 20px;
    text-align: justify;
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

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

.page-cockfighting__content-image {
    flex-shrink: 0;
    width: 50%;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-cockfighting__image-text-content {
    flex-grow: 1;
}

.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1em;
    color: var(--text-main-color, #333333);
}

.page-cockfighting__feature-icon {
    font-size: 1.2em;
    color: var(--accent-color, #FF5A4F);
    margin-right: 10px;
    flex-shrink: 0;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 60px 0;
    background-color: var(--main-color, #E53935); /* Dark background */
    color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title,
.page-cockfighting__how-to-play-section .page-cockfighting__card-title,
.page-cockfighting__how-to-play-section .page-cockfighting__card-description {
    color: #ffffff;
}

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

.page-cockfighting__step-card {
    background-color: var(--card-bg-color, #FFFFFF); /* Light card background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: var(--text-main-color, #333333); /* Dark text for light card */
}

.page-cockfighting__step-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__step-image {
    width: 100%;
    height: auto;
    max-height: 200px; /* Limit height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--main-color, #E53935); /* Brand color for card title */
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--text-main-color, #333333);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--background-color, #F5F7FA);
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color, #E0E0E0);
    overflow: hidden;
    background: var(--card-bg-color, #FFFFFF);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: var(--text-main-color, #333333);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
}
.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
    color: var(--text-main-color, #333333);
}
.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #666;
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: var(--text-main-color, #333333);
}
.page-cockfighting__faq-answer p {
    margin: 0;
    padding: 0;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 60px 0;
    background-color: var(--main-color, #E53935); /* Dark background */
    color: #ffffff; /* Light text for dark background */
    text-align: center;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title,
.page-cockfighting__final-cta-section .page-cockfighting__text-block {
    color: #ffffff;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6em;
    }
    .page-cockfighting__steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .page-cockfighting__image-with-text {
        flex-direction: column;
        align-items: center;
    }
    .page-cockfighting__content-image {
        width: 80%;
        max-width: 500px;
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    /* General */
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed small padding */
    }
    .page-cockfighting__hero-image-container,
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styling */
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 1.4em;
        margin-bottom: 15px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    /* Intro Section */
    .page-cockfighting__intro-section {
        padding: 40px 0;
    }
    .page-cockfighting__image-with-text {
        flex-direction: column;
        gap: 20px;
    }
    .page-cockfighting__content-image {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        margin-bottom: 20px;
    }
    .page-cockfighting__feature-item {
        font-size: 0.95em;
        margin-bottom: 10px;
    }

    /* How to Play Section */
    .page-cockfighting__how-to-play-section {
        padding: 40px 0;
    }
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    .page-cockfighting__step-card {
        padding: 20px;
    }
    .page-cockfighting__step-image {
        max-height: 150px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }
    .page-cockfighting__faq-list {
        margin-top: 30px;
    }
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { 
        padding: 15px; 
    }
    .page-cockfighting__faq-qtext { 
        font-size: 15px; 
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
    }
    
    /* Final CTA Section */
    .page-cockfighting__final-cta-section {
        padding: 40px 0;
    }
}