:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-color-dark: #333333;
    --text-color-light: #ffffff;
    --background-light: #f4f4f4; /* From shared.css body background */
    --card-background: #ffffff;
    --border-color: #e0e0e0;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    margin-bottom: 20px;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--secondary-color);
}

.page-cockfighting__section-title--light {
    color: var(--text-color-light);
}

.page-cockfighting__sub-title {
    font-size: 24px;
    font-weight: bold;
    margin-top: 30px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.page-cockfighting__sub-title--light {
    color: var(--text-color-light);
}

.page-cockfighting__text-block {
    font-size: 18px;
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block--light {
    color: var(--text-color-light);
}

.page-cockfighting__highlight {
    color: var(--secondary-color);
    font-weight: bold;
}

.page-cockfighting__text-block--light .page-cockfighting__highlight {
    color: var(--primary-color);
}

.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-cockfighting__inline-link {
    color: var(--secondary-color);
    text-decoration: underline;
    font-weight: bold;
}

.page-cockfighting__inline-link:hover {
    color: var(--primary-color);
}

/* --- 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: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1a1a1a; /* Dark background for hero */
    overflow: hidden;
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above image */
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    filter: brightness(0.8); /* Slightly dim image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -150px; /* Overlap content with image */
    color: var(--text-color-light);
}

.page-cockfighting__hero-title {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.page-cockfighting__cta-buttons--centered {
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--primary-color);
    color: var(--text-color-light);
    border: 2px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(139, 0, 0, 0.5);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-color-light);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

/* --- Introduction Section --- */
.page-cockfighting__introduction {
    background-color: var(--background-light);
}

/* --- Features Section --- */
.page-cockfighting__features {
    background-color: var(--secondary-color); /* Dark background for features */
    color: var(--text-color-light);
}

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

.page-cockfighting__feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

.page-cockfighting__feature-card .page-cockfighting__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__feature-card .page-cockfighting__card-description {
    font-size: 16px;
    color: #f0f0f0;
}

/* --- Bet Types Section --- */
.page-cockfighting__bet-types {
    background-color: var(--background-light);
}

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

.page-cockfighting__bet-card {
    background: var(--card-background);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-cockfighting__bet-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__bet-card .page-cockfighting__card-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.page-cockfighting__bet-card .page-cockfighting__card-description {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* --- Rules & Tips Section --- */
.page-cockfighting__rules-tips {
    background-color: var(--secondary-color);
    color: var(--text-color-light);
}

.page-cockfighting__list {
    list-style: disc inside;
    margin-left: 20px;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-color-light);
}

.page-cockfighting__list li {
    margin-bottom: 10px;
}

.page-cockfighting__list--light {
    color: #f0f0f0;
}

.page-cockfighting__list--light .page-cockfighting__highlight {
    color: var(--primary-color);
}

/* --- Guide Section --- */
.page-cockfighting__guide {
    background-color: var(--background-light);
}

.page-cockfighting__numbered-list {
    list-style: none;
    counter-reset: guide-counter;
    padding: 0;
}

.page-cockfighting__numbered-list li {
    counter-increment: guide-counter;
    margin-bottom: 30px;
    position: relative;
    padding-left: 60px;
}

.page-cockfighting__numbered-list li::before {
    content: counter(guide-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--text-color-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.page-cockfighting__numbered-list .page-cockfighting__list-title {
    font-size: 22px;
    color: var(--secondary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-description {
    font-size: 16px;
    color: var(--text-color-dark);
}

/* --- Promotions Section --- */
.page-cockfighting__promotions {
    background-color: var(--background-light); /* Light background for promotions */
}

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

.page-cockfighting__promo-card {
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__promo-card img {
    width: 100%;
    height: 200px; /* Fixed height for promo images */
    object-fit: cover;
    margin: 0; /* Remove default margin */
    border-radius: 0; /* Remove default border-radius */
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 20px;
    color: var(--secondary-color);
    padding: 20px 20px 10px;
    margin-bottom: 0;
}

.page-cockfighting__promo-card .page-cockfighting__card-description {
    font-size: 16px;
    color: var(--text-color-dark);
    padding: 0 20px 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-cockfighting__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-color-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    margin: 0 20px 20px;
    transition: background-color 0.3s ease;
    align-self: flex-start; /* Align link to the start */
}

.page-cockfighting__btn-link:hover {
    background: var(--secondary-color);
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    background-color: var(--secondary-color); /* Dark background for FAQ */
    color: var(--text-color-light);
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
    background: var(--card-background); /* Light card background for FAQ items */
    color: var(--text-color-dark); /* Dark text for FAQ items */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 20px; /* Adjusted padding */
    opacity: 0;
    color: var(--text-color-dark);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px 20px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px; /* Increased font size for readability */
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--secondary-color); /* FAQ question title color */
}

.page-cockfighting__faq-toggle {
    font-size: 28px; /* Increased font size */
    font-weight: bold;
    line-height: 1;
    color: var(--primary-color); /* Toggle icon color */
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px; /* Increased size */
    height: 32px; /* Increased size */
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--secondary-color);
    transform: rotate(45deg); /* Rotate for 'x' effect */
}

/* --- Final CTA Section --- */
.page-cockfighting__cta-final {
    background-color: var(--background-light);
    text-align: center;
}

.page-cockfighting__cta-final-content {
    padding: 40px 20px;
    background: var(--card-background);
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 40px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__sub-title {
        font-size: 20px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__list,
    .page-cockfighting__numbered-list .page-cockfighting__list-description,
    .page-cockfighting__feature-card .page-cockfighting__card-description,
    .page-cockfighting__bet-card .page-cockfighting__card-description,
    .page-cockfighting__promo-card .page-cockfighting__card-description {
        font-size: 16px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px; /* Adjust overlap for mobile */
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain buttons for mobile */
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}