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

.page-cockfighting {
    font-family: Arial, sans-serif;
    background-color: var(--color-bg-dark); /* Ensure main content background is dark */
    color: var(--color-text-main); /* Default text color for the main page */
    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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    max-height: 700px; /* Limit height for large screens */
    object-fit: cover;
    display: block;
    margin-bottom: 30px; /* Space between image and text */
}

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

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

.page-cockfighting__hero-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient);
    color: var(--color-text-main);
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--color-glow);
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(var(--color-primary), 0.1);
    border-color: var(--color-glow);
    box-shadow: 0 0 10px var(--color-glow);
    transform: translateY(-2px);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 40px 0;
    background-color: var(--color-deep-green);
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__video-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 100%; /* Ensure wrapper takes full width */
    max-width: 100%; /* Ensure wrapper takes full width */
    margin-bottom: 20px;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-caption {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    margin-top: 10px;
}

/* General Section Styles */
.page-cockfighting__features-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 20px;
}

.page-cockfighting__section-description {
    font-size: 1rem;
    color: var(--color-text-secondary);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Dark Background Section */
.page-cockfighting__dark-section {
    background-color: var(--color-card-bg); /* Use card bg for dark sections */
    color: var(--color-text-main);
}

/* Feature Grid */
.page-cockfighting__feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__feature-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
}

.page-cockfighting__feature-icon {
    width: 100%; /* Make feature images responsive */
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 150px;
}

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

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

/* Type Grid */
.page-cockfighting__type-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__type-card {
    background-color: var(--color-bg-dark); /* Darker background for type cards */
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
}

.page-cockfighting__type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--color-glow);
}

.page-cockfighting__type-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 150px;
}

.page-cockfighting__type-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

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

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

.page-cockfighting__step-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-number {
    width: 60px;
    height: 60px;
    background: var(--color-button-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-main);
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(var(--color-glow), 0.5);
}

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

.page-cockfighting__step-text {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

.page-cockfighting__btn-step {
    background: var(--color-primary);
    color: var(--color-text-main);
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.3s ease;
    border: none;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

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

/* Tips Section */
.page-cockfighting__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

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

.page-cockfighting__tip-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 15px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px;
    min-height: 150px;
}

.page-cockfighting__tip-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--color-deep-green);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--color-glow);
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--color-deep-green);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: 10px;
    }

    .page-cockfighting__hero-image {
        max-height: 500px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 2.8rem);
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .page-cockfighting__features-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding: 30px 0;
        padding-top: 10px;
    }

    .page-cockfighting__hero-image {
        max-height: 400px;
        margin-bottom: 20px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        padding: 0 15px; /* Add padding to container for buttons */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-step {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__video-section {
        padding: 30px 0;
        padding-top: 10px !important; /* Small top padding for video section */
    }

    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__features-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 30px 0;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-card,
    .page-cockfighting__type-card,
    .page-cockfighting__step-card,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none;
}