:root {
    --primary-color: #E53935;
    --secondary-color: #FF5A4F;
    --button-gradient: linear-gradient(180deg, #FF5A4F 0%, #E53935 100%);
    --card-bg-color: #FFFFFF;
    --background-color: #F5F7FA;
    --text-main-color: #333333;
    --border-color: #E0E0E0;
}

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

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9em;
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
}

.page-cockfighting__btn-small:hover {
    opacity: 0.9;
}

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

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

/* Image styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default object-fit */
    min-width: 200px;
    min-height: 200px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image-above-text structure */
    align-items: center;
    padding-top: 10px; /* Small top padding */
    background-color: var(--background-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 40px 20px;
    max-width: 900px;
    width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive H1 font size */
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-cockfighting__description {
    font-size: 1.2em;
    color: var(--text-main-color);
    margin-bottom: 30px;
}

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

/* Why Choose Section */
.page-cockfighting__dark-section {
    background: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

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

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

.page-cockfighting__feature-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
}

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

.page-cockfighting__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.9);
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

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

.page-cockfighting__game-tile {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-cockfighting__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__game-image {
    width: 100%;
    height: 250px; /* Fixed height for square appearance */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__game-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__game-description {
    font-size: 0.95em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    counter-reset: step-counter;
}

.page-cockfighting__step-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: var(--primary-color);
    margin-bottom: 10px;
    position: relative;
    padding-left: 45px;
}

.page-cockfighting__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    font-weight: bold;
}

.page-cockfighting__step-description {
    font-size: 1.05em;
    color: var(--text-main-color);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background: var(--primary-color);
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title {
    color: #ffffff;
}

.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: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    padding-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px; /* Consistent image height */
    object-fit: cover;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__promo-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__promo-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
    padding: 0 15px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
    padding: 60px 0;
}

.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__tip-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__tip-description {
    font-size: 1em;
    color: var(--text-main-color);
}

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

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #ffffff;
}

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: #ffffff;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

.page-cockfighting__faq-question:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

.page-cockfighting__faq-question::marker { /* Standard property */
    display: none;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1.05em;
    color: rgba(255, 255, 255, 0.9);
}

/* Contact CTA Section */
.page-cockfighting__contact-cta-section {
    background-color: var(--background-color);
    color: var(--text-main-color);
    padding: 60px 0;
    text-align: center;
}

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

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

/* Tablet (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 40px 25px;
    }

    .page-cockfighting__section-title {
        font-size: 2.2em;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2.2em, 4.5vw, 3em);
    }

    .page-cockfighting__features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .page-cockfighting__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .page-cockfighting__promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .page-cockfighting__tip-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    /* Ensure button containers are responsive on tablet */
    .page-cockfighting__cta-buttons {
        flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
        justify-content: center;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        max-width: 48%; /* Adjust for two buttons per row */
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding: 30px 15px;
    }

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

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
    }

    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Ensure image is not cropped on mobile */
        width: 100% !important;
        height: auto !important;
        aspect-ratio: unset !important; /* Reset aspect ratio for contain */
        max-height: none !important;
    }

    .page-cockfighting__hero-content {
        padding: 30px 15px;
    }

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

    .page-cockfighting__description {
        font-size: 1em;
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Image & Container rules for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__features-grid,
    .page-cockfighting__game-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__tip-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }

    /* Why Choose Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }
}