/* style/cockfighting.css */

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

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--page-bg); /* Use the specified background color */
    color: var(--text-main); /* Default text color for dark background */
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Ensure content is centered and has max width */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Sections padding */
.page-cockfighting__hero-section,
.page-cockfighting__intro-section,
.page-cockfighting__features-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__security-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
    position: relative;
}

/* Fixed header spacing - first section only small top padding */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 0; /* Adjust as content demands */
}

/* Hero Section */
.page-cockfighting__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
    z-index: 1; /* Ensure image is below text if text is positioned */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 300px; /* Minimum height for hero image */
}

.page-cockfighting__hero-content {
    position: relative; /* Relative to flow */
    z-index: 2;
    padding: 40px 20px;
    background: var(--card-bg); /* Dark background for hero text */
    color: var(--text-main);
    text-align: center;
    max-width: 900px;
    margin: -80px auto 0 auto; /* Pull up over the image, but not overlapping text */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

.page-cockfighting__description {
    font-size: 1.1em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    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 */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.05em;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box; /* Include padding in width calculation */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-main); /* White text for primary button */
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--gold-color);
    border: 2px solid var(--gold-color);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-cockfighting__text-block {
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Backgrounds and Text Colors for Sections */
.page-cockfighting__light-bg {
    background-color: var(--page-bg); /* Using the dark page background as 'light' in contrast to card-bg */
    color: var(--text-main);
}

.page-cockfighting__dark-bg {
    background-color: var(--card-bg);
    color: var(--text-main);
}

/* Specific Section Adjustments */
.page-cockfighting__intro-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__features-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__how-to-play-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__security-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--gold-color);
}

/* Image styling */
.page-cockfighting__image-wrapper {
    text-align: center;
    margin: 40px auto;
}

.page-cockfighting__content-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-color);
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__feature-item {
    background: var(--deep-green); /* Darker green for feature cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-title {
    font-size: 1.4em;
    color: var(--glow-color); /* Bright green for titles */
    margin-bottom: 15px;
    font-weight: 600;
}

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

/* How-to-Play Steps */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

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

.page-cockfighting__step-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* Video Section */
.page-cockfighting__video-wrapper {
    width: 100%;
    max-width: 900px; /* Limit video width */
    margin: 40px auto;
    background: #000;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
}

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

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

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

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

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
    background: var(--card-bg);
}

/* FAQ for div based, if JS fails to load or no details tag */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px; /* Sufficiently large */
    transition: max-height 0.5s ease-in-out;
}

.page-cockfighting__faq-item:not(.active) .page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

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

    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-content {
        margin: -40px auto 0 auto;
        padding: 30px 15px;
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 8vw, 2.5em);
        margin-bottom: 10px;
    }

    .page-cockfighting__description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

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

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

    /* Mobile Image Adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .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;
    }

    /* Mobile Video Adaptation */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .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__video-section {
        padding-top: 10px !important;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 56.25% !important;
        height: 0 !important;
    }

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

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