/* style/cockfighting.css */

/* Custom Colors from user prompt */
:root {
    --color-primary: #11A84E; /* Main */
    --color-secondary: #22C768; /* Auxiliary */
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-bg-main: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --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-main); /* Dark background */
    color: var(--color-text-main); /* Light text for main content */
    line-height: 1.6;
}

/* Global container styling */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em; /* Adjusted for readability, not too large */
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

/* Sub Titles */
.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: var(--color-text-main);
    margin-bottom: 20px;
    font-weight: bold;
}

/* Text Blocks */
.page-cockfighting__text-block {
    font-size: 1.1em;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main); /* Light text on dark button */
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-primary); /* Green text on transparent/dark background */
    border: 2px solid var(--color-border);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(var(--color-primary), 0.1);
    color: var(--color-text-main);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 0;
    padding-top: 10px; /* Small top padding for first section, body handles header offset */
    background-color: var(--color-bg-main);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

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

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

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive H1 font size */
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Use a darker green for contrast */
}

.page-cockfighting__image-text-block {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-cockfighting__image-left {
    flex: 1;
    max-width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    height: auto;
    display: block; /* Ensure it's not inline */
}

.page-cockfighting__text-content-right {
    flex: 1;
    max-width: 50%;
}

.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__feature-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

.page-cockfighting__list-icon {
    color: var(--color-gold);
    font-size: 1.3em;
    margin-right: 10px;
    line-height: 1; /* Align icon with text */
    font-weight: bold;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: var(--color-bg-main);
}

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

.page-cockfighting__step-card {
    background-color: var(--color-card-bg); /* Dark card background */
    padding: 30px;
    border-radius: 10px;
    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;
    justify-content: space-between;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.page-cockfighting__center-cta {
    text-align: center;
    margin-top: 50px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--color-deep-green); /* Darker green */
}

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

.page-cockfighting__promo-card {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__promo-card .page-cockfighting__card-title {
    margin-top: 20px;
    margin-bottom: 10px;
    padding: 0 20px;
    text-align: left;
    color: var(--color-gold);
}

.page-cockfighting__promo-card .page-cockfighting__card-description {
    padding: 0 20px 20px;
    text-align: left;
    flex-grow: 1; /* Push button to bottom */
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin: 0 20px 20px;
    align-self: flex-start; /* Align button to left */
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--color-bg-main);
}

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

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    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: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--color-border);
    list-style: none; /* For details/summary */
}
.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}
.page-cockfighting__faq-question::marker {
    display: none; /* For details/summary */
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    background-color: var(--color-card-bg);
}

.page-cockfighting__faq-answer p {
    margin: 0;
    color: var(--color-text-secondary);
}

/* CTA Banner Section */
.page-cockfighting__cta-banner {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(90deg, var(--color-deep-green) 0%, var(--color-primary) 100%); /* Use a gradient for banner */
    box-shadow: inset 0 5px 20px rgba(0,0,0,0.4), inset 0 -5px 20px rgba(0,0,0,0.4);
}

.page-cockfighting__cta-content {
    max-width: 900px;
}

.page-cockfighting__banner-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--color-gold);
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__banner-description {
    font-size: 1.1em;
    color: var(--color-text-main);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Design --- */

/* Mobile specific overrides */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px; /* Smaller padding on mobile */
    }

    .page-cockfighting__hero-section {
        padding: 40px 0;
        padding-top: 10px !important; /* body already handles offset */
    }

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

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .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-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__image-text-block {
        flex-direction: column; /* Stack image and text vertically */
        gap: 30px;
    }

    .page-cockfighting__image-left,
    .page-cockfighting__text-content-right {
        max-width: 100%;
        flex: none;
    }

    .page-cockfighting__promo-cards {
        grid-template-columns: 1fr; /* Single column for promo cards */
    }

    .page-cockfighting__promo-card .page-cockfighting__btn-secondary {
        align-self: stretch; /* Make button full width in card */
        margin-left: 20px;
        margin-right: 20px;
    }

    /* All images must be responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of their container */
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/buttons must be responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px;
    }

    /* Specific adjustment for elements that might have their own padding */
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-banner {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .page-cockfighting__hero-content,
    .page-cockfighting__cta-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}