/* style/cockfighting.css */

/* Root variables for colors */
:root {
    --page-cockfighting-main-color: #11A84E;
    --page-cockfighting-aux-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: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main); /* Light text for dark body background */
    background-color: var(--page-cockfighting-background); /* Deep green background */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Slightly different dark green for sections */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(2em, 4vw, 2.8em);
    color: var(--page-cockfighting-gold); /* Gold for main titles */
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5em, 2.5vw, 2em);
    color: var(--page-cockfighting-text-main);
    margin-top: 30px;
    margin-bottom: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    text-align: left;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-secondary); /* Secondary text color for paragraphs */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 0; /* No padding-top here, body handles it */
    text-align: center;
    background-color: var(--page-cockfighting-deep-green);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative; /* Changed to relative to be below image */
    padding: 40px 20px 60px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 10;
    transform: translateY(-50px); /* Overlap slightly with image */
    background-color: var(--page-cockfighting-background);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 clamp for responsiveness */
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__description {
    font-size: clamp(1.1em, 2vw, 1.4em);
    color: var(--page-cockfighting-text-main);
    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 wrapping on smaller screens */
    margin-top: 30px;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box; /* Include padding in width */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* White-ish text for dark button */
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4), 0 0 20px var(--page-cockfighting-glow);
}

.page-cockfighting__btn-secondary {
    background: none;
    color: var(--page-cockfighting-glow); /* Greenish text for secondary button */
    border: 2px solid var(--page-cockfighting-glow);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-glow);
    color: var(--page-cockfighting-background); /* Dark text on hover */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Images in content areas */
.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 800px; /* Max width for content images */
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Min size for content images */
    min-height: 200px; /* Min size for content images */
}

/* Video Section */
.page-cockfighting__how-to-play .page-cockfighting__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-cockfighting__video-container {
    position: relative;
    width: 100%;
    max-width: 800px; /* Match content image max-width */
    margin: 0 auto;
    background-color: #000; /* Black background for video */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    padding-top: 10px; /* Small top padding for video section */
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__video-overlay-button {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    z-index: 1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video-overlay-button:hover {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.5), 0 0 15px var(--page-cockfighting-glow);
}


/* Card Grid for Promotions */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    text-align: left;
}

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg); /* Card BG color */
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: var(--page-cockfighting-text-main);
    transition: transform 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-cockfighting__card .page-cockfighting__btn-primary {
    align-self: center; /* Center button in card */
    width: auto;
    min-width: 180px;
    padding: 12px 25px;
    font-size: 1em;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.15em;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-deep-green);
    border-bottom: 1px solid var(--page-cockfighting-border);
    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> */
}

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-main-color);
    color: #ffffff;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--page-cockfighting-main-color);
    color: #ffffff;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    width: 20px;
    text-align: center;
    line-height: 1;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    color: var(--page-cockfighting-text-secondary);
    text-align: left;
    background-color: var(--page-cockfighting-card-bg);
}

/* Conclusion Section */
.page-cockfighting__conclusion .page-cockfighting__text-block {
    margin-bottom: 20px;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        transform: translateY(-30px);
    }
}

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

    .page-cockfighting__hero-content {
        padding: 30px 15px 40px;
        transform: translateY(-20px);
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: 2em !important; /* Ensure H1 is not too big on mobile */
    }

    .page-cockfighting__description {
        font-size: 1em !important;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.4em !important;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .page-cockfighting__text-block {
        margin-bottom: 30px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px !important;
        font-size: 1em !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__image {
        margin: 30px auto !important;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    .page-cockfighting__video-container {
        max-width: 100% !important;
        width: 100% !important;
        padding-top: 10px !important; /* Small top padding, not --header-offset */
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-cockfighting__video-overlay-button {
        padding: 10px 20px !important;
        font-size: 0.9em !important;
    }

    .page-cockfighting__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-cockfighting__card-image {
        height: 180px; /* Adjust card image height for mobile */
        min-width: 200px !important;
        min-height: 180px !important;
    }

    .page-cockfighting__card-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-list {
        margin-top: 30px;
        padding: 0 15px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }
}