.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-main, #F2FFF6); /* Default text color for the page */
    background-color: var(--bg-color, #08160F); /* Page background from shared */
    line-height: 1.6;
}

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

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title {
    font-size: 2rem;
    color: var(--text-main, #F2FFF6);
    margin-top: 50px;
    margin-bottom: 30px;
    font-weight: 600;
    text-align: center;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color, #08160F);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text contrast */
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image but in normal flow */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -150px; /* Pull content up over the image, but not covering it completely */
    margin-bottom: 40px;
    background: linear-gradient(to bottom, rgba(8, 22, 15, 0.8), var(--bg-color, #08160F));
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary, #A7D9B8);
    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;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--border, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--deep-green, #0A4B2C);
    color: var(--text-main, #F2FFF6);
    border-color: var(--glow, #57E38D);
    transform: translateY(-2px);
}

.page-cockfighting__btn-full-width {
    width: 100%;
    max-width: 400px;
    margin-top: 30px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
    width: 100%;
    max-width: 450px;
    margin-top: 40px;
    margin-left: auto;
    margin-right: auto;
}

/* About Section */
.page-cockfighting__about-section,
.page-cockfighting__gameplay-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    background-color: var(--bg-color, #08160F);
}

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

.page-cockfighting__gallery-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-heading {
    font-size: 1.5rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__feature-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg, #11271B);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    text-align: center;
}

.page-cockfighting__step-heading {
    font-size: 1.6rem;
    color: var(--glow, #57E38D); /* Using glow for steps */
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__step-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
}

/* Promotions Section */
.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(--card-bg, #11271B);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--divider, #1E3A2A);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

.page-cockfighting__promo-card h3,
.page-cockfighting__promo-card p,
.page-cockfighting__promo-card a {
    padding: 0 25px; /* Adjust padding for text inside card */
}

.page-cockfighting__promo-title {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-top: 20px;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__promo-description {
    font-size: 0.95rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1; /* Make description take available space */
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin: 0 25px 25px; /* Align button at bottom */
}


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

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    color: var(--text-main, #F2FFF6);
    font-weight: 600;
    cursor: pointer;
    background-color: var(--deep-green, #0A4B2C); /* Darker background for question */
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--main-color, #11A84E); /* Highlight open question */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--main-color, #11A84E);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--glow, #57E38D);
    margin-left: 15px;
}

/* Hide default details marker */
.page-cockfighting__faq-item > summary {
    list-style: none;
}
.page-cockfighting__faq-item > summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
    background-color: var(--card-bg, #11271B);
}
.page-cockfighting__faq-answer p {
    text-align: left;
    margin-bottom: 15px;
}
.page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
    margin-top: 10px;
    margin-left: 0;
    padding: 10px 20px;
    font-size: 1rem;
    max-width: fit-content;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    text-align: center;
    padding-bottom: 100px;
}


/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -100px;
        padding: 30px 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        padding: 40px 20px;
        padding-top: 10px !important; /* body handles header offset, this is decorative */
    }
    .page-cockfighting__hero-image-wrapper {
        max-height: 50vh;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 25px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        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__btn-full-width,
    .page-cockfighting__btn-large {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .page-cockfighting__text-block {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* General image/video/container responsive */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__image-gallery,
    .page-cockfighting__promo-grid,
    .page-cockfighting__feature-list,
    .page-cockfighting__step-by-step,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-cockfighting__promo-card .page-cockfighting__btn-secondary {
        margin-left: 15px;
        margin-right: 15px;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__step-item,
    .page-cockfighting__promo-card {
        padding: 20px;
    }
    .page-cockfighting__promo-card h3,
    .page-cockfighting__promo-card p,
    .page-cockfighting__promo-card a {
        padding: 0 20px;
    }
    .page-cockfighting__promo-card .page-cockfighting__btn-secondary {
        margin: 0 20px 20px;
    }
    .page-cockfighting__faq-question {
        font-size: 0.9rem;
        padding: 12px 15px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.85rem;
        padding: 12px 15px;
    }
    .page-cockfighting__faq-answer .page-cockfighting__btn-secondary {
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

/* Fixed color contrast (body is dark) */
.page-cockfighting {
  color: var(--text-main, #F2FFF6); /* Deep Green background, use light text */
  background-color: var(--bg-color, #08160F);
}

.page-cockfighting__card,
.page-cockfighting__feature-item,
.page-cockfighting__step-item,
.page-cockfighting__promo-card,
.page-cockfighting__faq-item {
  background: var(--card-bg, #11271B); /* Darker card background */
  color: var(--text-main, #F2FFF6);
  border: 1px solid var(--border, #2E7A4E);
}

.page-cockfighting p,
.page-cockfighting li,
.page-cockfighting__hero-description,
.page-cockfighting__feature-description,
.page-cockfighting__step-description,
.page-cockfighting__promo-description,
.page-cockfighting__faq-answer {
  color: var(--text-secondary, #A7D9B8); /* Use secondary text color for paragraphs */
}

/* Buttons already handle color contrast with white text on gradient/dark backgrounds */
.page-cockfighting__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
}
.page-cockfighting__btn-secondary {
  background: transparent;
  color: var(--glow, #57E38D);
  border: 2px solid var(--border, #2E7A4E);
}
.page-cockfighting__btn-secondary:hover {
  background: var(--deep-green, #0A4B2C);
  color: var(--text-main, #F2FFF6);
  border-color: var(--glow, #57E38D);
}