:root {
    --primary-color: #C91F17; /* Main color */
    --secondary-color: #E53935; /* Auxiliary color */
    --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
    --card-bg: #D32F2F;
    --text-main: #FFF5E1;
    --border-color: #F2B544;
    --glow-color: #FFCC66;
    --gold-color: #F4D34D;
    --deep-red-color: #7A0E0E;
    --body-bg: #B71C1C; /* From shared.css body background */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Light text on dark body background */
    background-color: var(--body-bg); /* Inherited from body, but good to define for scope */
    line-height: 1.6;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

.page-cockfighting__section-title {
    font-size: 3em;
    color: var(--gold-color);
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__subtitle {
    font-size: 1.2em;
    color: var(--text-main);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__content-area {
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    font-size: 1.1em;
}

.page-cockfighting__content-area p {
    margin-bottom: 20px;
}

.page-cockfighting__content-area a {
    color: var(--gold-color);
    text-decoration: underline;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background: var(--deep-red-color); /* To make sure the section has a background */
    overflow: hidden; /* For image */
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%; /* For flex item */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    filter: brightness(0.8); /* Slightly darken image for text contrast */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 4.5em); /* Responsive font size */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: var(--deep-red-color); /* Dark text on gold button */
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--border-color);
}

.page-cockfighting__cta-button:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%); /* Invert gradient on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__cta-button--secondary {
    background: var(--primary-color);
    color: var(--text-main);
    border: 2px solid var(--border-color);
    margin-left: 20px;
}

.page-cockfighting__cta-button--secondary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Intro Section */
.page-cockfighting__intro-section {
    background-color: var(--primary-color);
}

/* Advantages Section (dark background for contrast) */
.page-cockfighting__advantages-section {
    background-color: var(--card-bg); /* Dark red background */
    color: var(--text-main);
}

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

.page-cockfighting__advantage-item {
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent black for depth */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cockfighting__advantage-item img {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.page-cockfighting__advantage-item h3 {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__advantage-item p {
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.5;
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    background-color: var(--primary-color);
}

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

.page-cockfighting__game-type-item {
    background: var(--card-bg); /* Dark red card background */
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cockfighting__game-type-item img {
    max-width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.page-cockfighting__game-type-item h3 {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__game-type-item p {
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.5;
}

/* Strategies Section (dark background) */
.page-cockfighting__strategies-section {
    background-color: var(--deep-red-color);
    color: var(--text-main);
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    text-align: left;
}

.page-cockfighting__strategy-list li {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border-left: 5px solid var(--gold-color);
    font-size: 1.1em;
    color: var(--text-main);
}

.page-cockfighting__strategy-list li strong {
    color: var(--gold-color);
}

.page-cockfighting__strategies-section img {
    max-width: 100%;
    height: auto;
    min-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 30px;
    border: 1px solid var(--border-color);
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: var(--primary-color);
}

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

.page-cockfighting__promotion-item {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cockfighting__promotion-item img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--gold-color);
}

.page-cockfighting__promotion-item h3 {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__promotion-item p {
    font-size: 1em;
    color: var(--text-main);
    line-height: 1.5;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 50px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--deep-red-color);
    padding-bottom: 80px;
}

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3); /* Darker background for FAQ items */
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
}
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: rgba(0, 0, 0, 0.5); /* Darken on hover */
}
.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-main);
    text-align: left;
}
.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--gold-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    background: rgba(0, 0, 0, 0.2); /* Slightly lighter than question for answer */
    border-radius: 0 0 10px 10px;
    color: var(--text-main);
    text-align: left;
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0; /* Remove default p margin in answer */
}

/* CTA Section */
.page-cockfighting__cta-section {
    background-color: var(--primary-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-image {
        max-height: 400px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 4.5vw, 4em);
    }
    .page-cockfighting__advantage-item img,
    .page-cockfighting__game-type-item img,
    .page-cockfighting__promotion-item img {
        
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-image img {
        border-radius: 4px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
        margin-bottom: 15px;
    }

    .page-cockfighting__subtitle {
        font-size: 1.1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        margin-top: 20px;
    }

    .page-cockfighting__cta-button--secondary {
        margin-left: 0;
        margin-top: 15px; /* Add margin for vertical stacking */
    }

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

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

    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 20px;
    }

    .page-cockfighting__content-area {
        font-size: 1em;
        padding: 0 15px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important; /* Enforce min height */
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__advantage-item,
    .page-cockfighting__game-type-item,
    .page-cockfighting__promotion-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__advantage-item img,
    .page-cockfighting__game-type-item img,
    .page-cockfighting__promotion-item img {
        height: auto;
        min-height: 200px;
    }

    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-qtext {
        font-size: 1em;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 8vw, 2.5em);
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__advantage-item h3,
    .page-cockfighting__game-type-item h3,
    .page-cockfighting__promotion-item h3 {
        font-size: 1.5em;
    }
}