:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page, assuming a dark body background from shared.css */
.page-cockfighting {
    background-color: var(--color-background); /* Override if shared.css doesn't provide a suitable dark background or to explicitly set */
    color: var(--color-text-main); /* Light text on dark background for main content */
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll for mobile */
}

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

.page-cockfighting__section-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* H1 font size rule */
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    margin-bottom: 20px;
    color: var(--color-text-secondary);
}

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

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main); /* Light text on dark gradient */
    border: none;
}

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

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

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

.page-cockfighting__btn-center {
    display: block;
    margin: 30px auto;
}

.page-cockfighting__btn-small {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px; /* Add some bottom padding */
    background-color: var(--color-background);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 70vh; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    z-index: 1;
}

.page-cockfighting__main-title {
    font-size: clamp(3rem, 6vw, 4.5rem); /* H1 font size rule */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
}

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--color-text-main);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Mobile button container responsiveness */
    max-width: 100%; /* Mobile button container responsiveness */
    box-sizing: border-box; /* Mobile button container responsiveness */
    overflow: hidden; /* Mobile button container responsiveness */
}

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--color-background); /* Default background */
}

.page-cockfighting__types-section,
.page-cockfighting__tips-section,
.page-cockfighting__safety-section {
    padding: 60px 0;
    background-color: var(--color-deep-green); /* Alternate background */
}

/* Dark Background Sections (explicitly for contrast) */
.page-cockfighting__dark-bg {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

/* Grid Layout for Types Section */
.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease;
    color: var(--color-text-main); /* Ensure light text on dark card */
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 250px; /* Fixed height for card images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure image behaves as block for max-width */
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* Guide Section Steps */
.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__guide-step {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

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

.page-cockfighting__guide-title {
    font-size: 1.4rem;
    color: var(--color-gold);
    margin-bottom: 10px;
}

.page-cockfighting__guide-text {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

/* Content with Image Wrapper (Tips & Safety) */
.page-cockfighting__content-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__content-wrapper--reversed {
    flex-direction: row-reverse; /* For safety section */
}

.page-cockfighting__text-content,
.page-cockfighting__image-container {
    flex: 1;
    min-width: 300px;
}

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

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

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-gold);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--color-divider);
}

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.page-cockfighting__faq-answer a {
    color: var(--color-gold); /* Link color for FAQ answers */
    text-decoration: underline;
}

.page-cockfighting__faq-answer a:hover {
    color: var(--color-glow);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        max-height: 60vh;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2.5rem, 5vw, 4rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
    .page-cockfighting__card-image {
        height: 200px;
    }
    .page-cockfighting__content-wrapper {
        flex-direction: column;
    }
    .page-cockfighting__content-wrapper--reversed {
        flex-direction: column; /* Ensure reversal is handled */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 30px;
        max-height: 50vh;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 7vw, 3rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }
    .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__section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__guide-icon {
        width: 80px;
        height: 80px;
    }
    .page-cockfighting__content-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific overrides for sections that might not have padding by default */
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
        padding-top: 10px !important; /* Ensure small padding, not header offset */
    }
}