/* style/cockfighting.css */

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

    /* For contrast check: body background is dark */
    --page-cockfighting-dark-bg-text: var(--page-cockfighting-text-main);
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-dark-bg-text); /* Ensure light text on dark body background */
    background-color: var(--page-cockfighting-background); /* Explicitly set for main content */
    line-height: 1.6;
    font-size: 16px;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--page-cockfighting-gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-secondary);
    text-align: justify;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, body handles header offset */
    overflow: hidden;
    background-color: var(--page-cockfighting-background); /* Fallback */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and text content */
}

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

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

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

.page-cockfighting__description {
    font-size: 1.2em;
    color: var(--page-cockfighting-text-main);
    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; /* Allow buttons to wrap on smaller screens */
}

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

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-primary-color);
    border: 2px solid var(--page-cockfighting-primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* --- Introduction Section --- */
.page-cockfighting__introduction-section {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 900px;
}

/* --- Benefits Section --- */
.page-cockfighting__benefits-section {
    background-color: var(--page-cockfighting-deep-green-color); /* Use a darker green from palette */
    color: var(--page-cockfighting-text-main);
}

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

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

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    color: var(--page-cockfighting-text-secondary);
}

/* --- Guide Section --- */
.page-cockfighting__guide-section {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__guide-step {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid var(--page-cockfighting-border-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__guide-step-title {
    font-size: 1.8em;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--page-cockfighting-divider-color);
    padding-bottom: 10px;
}

/* --- Bet Types Section --- */
.page-cockfighting__bet-types-section {
    background-color: var(--page-cockfighting-deep-green-color);
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__bet-type-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--page-cockfighting-border-color);
}

/* --- Strategy Section --- */
.page-cockfighting__strategy-section {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    border-left: 5px solid var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list-item strong {
    color: var(--page-cockfighting-gold-color);
    font-size: 1.1em;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    background-color: var(--page-cockfighting-deep-green-color);
    color: var(--page-cockfighting-text-main);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--page-cockfighting-gold-color);
    cursor: pointer;
    list-style: none; /* For details summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 10px;
    color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px 20px;
    color: var(--page-cockfighting-text-secondary);
    border-top: 1px solid var(--page-cockfighting-divider-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    border-top: 1px solid var(--page-cockfighting-divider-color);
    padding-top: 15px;
}

/* --- Conclusion Section --- */
.page-cockfighting__conclusion-section {
    background-color: var(--page-cockfighting-background);
    color: var(--page-cockfighting-text-main);
    text-align: center;
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 7vw, 2.8em);
    }

    .page-cockfighting__description {
        font-size: 1.1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }
    
    .page-cockfighting__container {
        padding: 0 15px !important; /* Force padding for content containers */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile image responsive optimization */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure all image containers are responsive */
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__guide-step,
    .page-cockfighting__benefit-card,
    .page-cockfighting__bet-type-card,
    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent content overflow */
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-image {
        max-height: 400px; /* Adjust hero image height for mobile */
    }

    .page-cockfighting__benefits-grid,
    .page-cockfighting__bet-types-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px 15px 15px;
    }
}