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

    /* Body background is var(--background) from shared.css. Assuming it's dark based on the custom palette. */
    --body-text-color: var(--text-main); /* text-main for dark background */
    --light-bg-text-color: #333333; /* default for light backgrounds */
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--body-text-color); /* Default text color for the page */
    background-color: var(--background-color); /* Main background color */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--text-main);
    padding-bottom: 60px; /* Space for content below image */
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content does not overflow */
}

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

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above the image if needed, but not overlaying it */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to bring content closer to the image, without overlapping */
    background: rgba(0, 0, 0, 0.4); /* Subtle background for readability */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color);
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
    max-width: 100%; /* Ensure button does not exceed container */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 0 20px var(--glow-color);
}

.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: #ffffff;
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
}

.page-cockfighting__btn-large {
    padding: 18px 35px;
    font-size: 1.2rem;
}

.page-cockfighting__btn-center {
    margin-left: auto;
    margin-right: auto;
    display: block; /* Make it a block element to center with margin auto */
    width: fit-content; /* Adjust width to content */
}


/* Sections */
.page-cockfighting__intro-section,
.page-cockfighting__why-choose-section,
.page-cockfighting__game-types-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategy-section,
.page-cockfighting__platform-advantages-section,
.page-cockfighting__responsible-gambling-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #f8f8f8; /* A very light background */
    color: var(--light-bg-text-color); /* Dark text for light background */
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__card-title,
.page-cockfighting__light-bg .page-cockfighting__feature-title,
.page-cockfighting__light-bg .page-cockfighting__strategy-card-title,
.page-cockfighting__light-bg .page-cockfighting__advantage-title,
.page-cockfighting__light-bg .page-cockfighting__step-title,
.page-cockfighting__light-bg .page-cockfighting__faq-qtext {
    color: var(--deep-green); /* Darker green for titles on light background */
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg); /* Dark background from palette */
    color: var(--text-main); /* Light text for dark background */
}

.page-cockfighting__section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

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

.page-cockfighting__image-wrapper {
    margin: 40px auto;
    text-align: center;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block for max-width/height auto */
    margin: 0 auto; /* Center the image */
}

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

.page-cockfighting__feature-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

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

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

/* Card Grid (Game Types Section) */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--text-main); /* Card text color */
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin: 20px 20px 10px;
    color: var(--primary-color);
}

.page-cockfighting__card-description {
    font-size: 0.95rem;
    padding: 0 20px;
    margin-bottom: 15px;
    flex-grow: 1; /* Allow description to take available space */
    color: var(--text-secondary);
}

.page-cockfighting__card-link {
    display: block;
    text-align: center;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    transition: background-color 0.3s ease;
}

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

/* Guide Section */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 1.6rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

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

.page-cockfighting__strategy-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main);
}

.page-cockfighting__strategy-card-title {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__strategy-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
}

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

.page-cockfighting__advantage-item {
    background-color: var(--deep-green);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__advantage-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 15px;
}

/* Responsible Gambling Section */
.page-cockfighting__responsible-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--light-bg-text-color);
}

.page-cockfighting__responsible-item {
    margin-bottom: 10px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--deep-green);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--primary-color);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    margin-left: 15px;
    color: var(--gold-color);
}

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

.page-cockfighting__faq-answer p {
    margin: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final-section {
    text-align: center;
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-cockfighting__cta-final-content {
    background-color: var(--deep-green);
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-width: 900px;
    margin: 0 auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__hero-content {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles --header-offset */
    }
    .page-cockfighting__hero-content {
        padding: 30px 15px;
        margin-top: -60px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__btn-center {
        width: 100% !important;
        display: block !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 1rem;
    }
    .page-cockfighting__feature-list,
    .page-cockfighting__card-grid,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__advantage-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__card,
    .page-cockfighting__strategy-card,
    .page-cockfighting__advantage-item,
    .page-cockfighting__step-item {
        padding: 20px;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-card-title,
    .page-cockfighting__advantage-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    .page-cockfighting__cta-final-content {
        padding: 30px;
        border-radius: 10px;
    }
    .page-cockfighting__content-area,
    .page-cockfighting__intro-section .page-cockfighting__container,
    .page-cockfighting__why-choose-section .page-cockfighting__container,
    .page-cockfighting__game-types-section .page-cockfighting__container,
    .page-cockfighting__guide-section .page-cockfighting__container,
    .page-cockfighting__strategy-section .page-cockfighting__container,
    .page-cockfighting__platform-advantages-section .page-cockfighting__container,
    .page-cockfighting__responsible-gambling-section .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__cta-final-section .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsive rules */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    
    /* Mobile video responsive rules (if any video is added) */
    .page-cockfighting video,
    .page-cockfighting__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -40px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-cockfighting__hero-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 10px 15px;
        font-size: 0.95rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-card-title,
    .page-cockfighting__advantage-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__faq-item summary {
        font-size: 0.95rem;
    }
}

/* Color contrast fixes */
.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li {
    color: var(--light-bg-text-color);
}
.page-cockfighting__dark-section .page-cockfighting__text-block,
.page-cockfighting__dark-section p,
.page-cockfighting__dark-section li {
    color: var(--text-secondary);
}
.page-cockfighting__dark-section .page-cockfighting__card-link {
    background-color: var(--primary-color);
    color: #ffffff;
}
.page-cockfighting__dark-section .page-cockfighting__card-link:hover {
    background-color: var(--secondary-color);
}
.page-cockfighting__light-bg .page-cockfighting__card {
    background-color: #ffffff;
    color: var(--light-bg-text-color);
    border: 1px solid #e0e0e0;
}
.page-cockfighting__light-bg .page-cockfighting__card-title {
    color: var(--primary-color);
}
.page-cockfighting__light-bg .page-cockfighting__card-description {
    color: #555555;
}
.page-cockfighting__light-bg .page-cockfighting__card-link {
    background-color: var(--primary-color);
    color: #ffffff;
}
.page-cockfighting__light-bg .page-cockfighting__card-link:hover {
    background-color: var(--secondary-color);
}

/* Ensure desktop video container width */
.page-cockfighting__video-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}