:root {
    --page-cockfighting-primary-color: #C91F17;
    --page-cockfighting-secondary-color: #E53935;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --page-cockfighting-card-bg: #D32F2F;
    --page-cockfighting-background: #B71C1C;
    --page-cockfighting-text-main: #FFF5E1;
    --page-cockfighting-border: #F2B544;
    --page-cockfighting-glow: #FFCC66;
    --page-cockfighting-gold: #F4D34D;
    --page-cockfighting-deep-red: #7A0E0E;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    background-color: var(--page-cockfighting-background); /* Main background color */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Default to column for image-then-text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    padding-top: 10px; /* Small top padding, header offset handled by body */
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Cover for desktop */
}

.page-cockfighting__hero-content {
    padding: 30px 20px;
    width: 100%;
    max-width: 800px;
    background: var(--page-cockfighting-deep-red); /* Darker red for content block */
    color: var(--page-cockfighting-text-main);
    border-radius: 8px;
    margin-top: -80px; /* Overlap slightly for visual effect */
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--page-cockfighting-gold); /* Gold color for main title */
}

.page-cockfighting__lead-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-main);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small,
.page-cockfighting__btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: #333333; /* Dark text for light gold button */
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--page-cockfighting-gold); /* Gold text for secondary button */
    border: 2px solid var(--page-cockfighting-gold);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-deep-red); /* Darker text on hover */
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
    border-radius: 20px;
}

.page-cockfighting__btn-large {
    padding: 15px 35px;
    font-size: 1.2rem;
    border-radius: 35px;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* General Sections */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--page-cockfighting-gold); /* Gold color for section titles */
    line-height: 1.3;
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-red);
    color: var(--page-cockfighting-text-main);
    padding: 60px 0;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__image-text-item {
    text-align: center;
    padding: 20px;
    background-color: var(--page-cockfighting-card-bg); /* Card BG color */
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__item-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__item-description {
    font-size: 0.95rem;
    color: var(--page-cockfighting-text-main);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 60px 0;
}

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

.page-cockfighting__type-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    color: var(--page-cockfighting-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__card-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__card-description {
    font-size: 0.9rem;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--page-cockfighting-text-main);
}

/* Betting Guide Section */
.page-cockfighting__betting-guide-section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__step-item {
    text-align: center;
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 25px 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__step-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px auto;
    background-color: var(--page-cockfighting-deep-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__icon-image {
    width: 200px; /* Display size, at least 200px as per rule */
    height: 200px; /* Display size, at least 200px as per rule */
    display: block;
    object-fit: contain;
}

.page-cockfighting__step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__step-description {
    font-size: 0.9rem;
    color: var(--page-cockfighting-text-main);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

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

.page-cockfighting__promo-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    padding: 20px;
    text-align: center;
    color: var(--page-cockfighting-text-main);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-red); /* Darker background for question */
    color: var(--page-cockfighting-gold); /* Gold text for question */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    text-align: left;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-card-bg);
}

/* Contact CTA Section */
.page-cockfighting__contact-cta {
    padding: 80px 0;
}

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

/* --- Responsive Design --- */

/* General for all images and containers on mobile */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-content,
    .page-cockfighting__image-text-item,
    .page-cockfighting__type-card,
    .page-cockfighting__step-item,
    .page-cockfighting__promo-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Hero Section Mobile */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 20px;
    }

    .page-cockfighting__hero-image {
        object-fit: contain; /* Contain for mobile hero image */
        aspect-ratio: unset;
        max-height: none;
    }

    .page-cockfighting__hero-content {
        margin-top: -40px; /* Adjust overlap for mobile */
        padding: 20px 15px;
    }

    .page-cockfighting__main-title {
        font-size: 2.2rem; /* Adjusted for mobile readability */
        margin-bottom: 10px;
    }

    .page-cockfighting__lead-text {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Introduction Section Mobile */
@media (max-width: 768px) {
    .page-cockfighting__introduction-section,
    .page-cockfighting__game-types-section,
    .page-cockfighting__betting-guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-cta {
        padding: 30px 0; /* Adjust section padding */
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__image-text-grid,
    .page-cockfighting__type-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr; /* Single column layout for grids */
        gap: 20px;
    }

    .page-cockfighting__feature-image,
    .page-cockfighting__card-image {
        max-height: 200px; /* Adjust image max height */
    }

    .page-cockfighting__item-title,
    .page-cockfighting__card-title,
    .page-cockfighting__step-title {
        font-size: 1.2rem;
    }

    .page-cockfighting__item-description,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description {
        font-size: 0.85rem;
    }

    .page-cockfighting__step-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 15px;
    }

    .page-cockfighting__icon-image {
        width: 60px; /* Display size, but original image is 200x200 */
        height: 60px; /* Display size, but original image is 200x200 */
    }
}

/* FAQ Section Mobile */
@media (max-width: 768px) {
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px 20px;
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.2rem;
    }
}

/* Button general mobile override */
@media (max-width: 768px) {
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Ensure vertical stacking for cta groups */
    }
}