/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    color: #ffffff; /* Light text for dark body background */
    background-color: #1a1a2e; /* Inherit from shared or specific for content */
    line-height: 1.6;
    font-family: 'Arial', sans-serif;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 0; /* Assuming shared.css sets body padding-top */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

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

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFFFFF;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0;
    text-align: justify;
}

.page-cockfighting__dark-section {
    background-color: #1a1a2e; /* Body background color */
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: #2a2a40; /* Slightly lighter dark background for contrast */
    padding: 60px 0;
    color: #ffffff;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e02020;
    border-color: #e02020;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #017439; /* Primary color for border */
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #FFFFFF;
}

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

.page-cockfighting__feature-item {
    background: rgba(255, 255, 255, 0.05); /* Slightly transparent background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-10px);
}

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

.page-cockfighting__feature-title {
    font-size: 1.5em;
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    color: #cccccc;
}

/* Gameshow Section */
.page-cockfighting__gameshow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__gameshow-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.page-cockfighting__gameshow-item:hover {
    transform: translateY(-10px);
}

.page-cockfighting__gameshow-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-cockfighting__gameshow-title {
    font-size: 1.3em;
    color: #FFFFFF;
    padding: 15px 20px 5px;
}

.page-cockfighting__gameshow-title a {
    color: #FFFFFF;
    text-decoration: none;
}

.page-cockfighting__gameshow-title a:hover {
    color: #017439;
}

.page-cockfighting__gameshow-description {
    font-size: 0.95em;
    color: #cccccc;
    padding: 0 20px 20px;
}

/* Download CTA Section */
.page-cockfighting__download-cta-content {
    text-align: center;
    padding: 60px 20px;
}

.page-cockfighting__download-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping */
}

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

.page-cockfighting__faq-item {
    background: rgba(255, 255, 255, 0.05);
    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;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFFFF;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #017439; /* Primary color for toggle */
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
    color: #FFFF00; /* Yellow for active toggle */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #cccccc;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure it overrides */
    padding: 15px 20px 20px;
}

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

/* Community CTA Section */
.page-cockfighting__community-content {
    text-align: center;
    padding: 60px 20px;
}

/* General Link Styling */
.page-cockfighting a {
    color: #017439; /* Primary color for links */
    text-decoration: underline;
}

.page-cockfighting a:hover {
    color: #FFFF00; /* Yellow for link hover */
    text-decoration: none;
}

/* Image specific rules */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filter is applied */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__gameshow-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-cockfighting__hero-section {
        height: 500px;
        padding-top: 0; /* Ensures no double padding if shared.css handles body */
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-cockfighting__hero-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;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-buttons,
    .page-cockfighting__download-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex properties apply */
        flex-direction: column; /* Stack buttons vertically */
    }

    /* General Section Styles */
    .page-cockfighting__section-title {
        font-size: 1.8em;
        padding-top: 40px;
        margin-bottom: 30px;
    }

    .page-cockfighting__paragraph {
        font-size: 0.95em;
        text-align: left;
    }

    .page-cockfighting__dark-section,
    .page-cockfighting__light-bg {
        padding: 40px 0;
    }
    
    .page-cockfighting__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Features Section */
    .page-cockfighting__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    /* Gameshow Section */
    .page-cockfighting__gameshow-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        max-width: 100%;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }
    
    .page-cockfighting__gameshow-image {
        height: 200px; /* Adjust image height for mobile */
    }

    /* Images general */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px;
    }
    
    /* Content containers for images and general text */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__feature-item,
    .page-cockfighting__gameshow-item,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* FAQ Section */
    .page-cockfighting__faq-question {
        padding: 15px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 15px 15px;
    }
}