.page-cockfighting {
    background-color: var(--background-color, #08160F); /* Fallback if shared.css doesn't define */
    color: var(--text-main, #F2FFF6); /* Default text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--card-bg, #11271B); /* Use custom background color */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Match hero image max width */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    z-index: 1;
}

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

.page-cockfighting__description {
    font-size: 1.15rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button color */
    color: #ffffff;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--text-main, #F2FFF6);
    border: 2px solid var(--border-color, #2E7A4E); /* Custom border color */
}

.page-cockfighting__btn-secondary:hover {
    background: var(--border-color, #2E7A4E);
    color: #ffffff;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg, #11271B); /* Custom background color */
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #ffffff; /* Default light background for cards */
    color: #333333; /* Dark text for light background */
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

/* Card Grid Styles */
.page-cockfighting__card-grid,
.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--card-bg, #11271B); /* Custom card background */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 220px; /* Ensure cards have sufficient height */
}

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

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    line-height: 1.5;
}

/* Guide List Styles */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__guide-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__guide-step-title {
    font-size: 1.3rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
}

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

/* Promotion List Styles */
.page-cockfighting__promotion-list,
.page-cockfighting__security-features {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__promotion-item,
.page-cockfighting__feature-item {
    background-color: var(--card-bg, #11271B);
    border: 1px solid var(--divider, #1E3A2A);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__promotion-title,
.page-cockfighting__feature-title {
    font-size: 1.3rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
}

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

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.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-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: rgba(17, 168, 78, 0.1); /* Slight hover effect using main color RGB */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D); /* Custom glow color */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(0deg); /* No rotation for details */
}

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

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

/* Call to Action Section */
.page-cockfighting__call-to-action-section {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--background-color, #08160F);
}

/* Global image reset for content area */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box; /* Ensure padding/border is included in width */
    filter: none; /* Ensure no CSS filters are applied */
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__hero-section {
        padding: 10px 15px 40px; /* Adjusted padding for mobile */
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__hero-image {
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem); /* Adjust H1 for smaller screens */
    }

    .page-cockfighting__description {
        font-size: 1rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent overflow */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent overflow */
    }

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem); /* Adjust section titles */
        margin-bottom: 30px;
        padding-top: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__promotion-list,
    .page-cockfighting__security-features {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }

    .page-cockfighting__card,
    .page-cockfighting__guide-item,
    .page-cockfighting__promotion-item,
    .page-cockfighting__feature-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__image-content {
        margin: 30px auto;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All image containers must be responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}