/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF1E8; /* Main text color for the page */
    background-color: #140C0C; /* Overall background color */
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #F3C54D; /* Gold color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__section-description,
.page-cockfighting__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: #FFF1E8; /* Main text color */
}

.page-cockfighting__highlight {
    color: #F3C54D; /* Highlight text with gold */
    font-weight: bold;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body has header offset */
    padding-bottom: 40px;
    background-color: #140C0C; /* Dark background for hero */
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height of the hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 0 20px;
    max-width: 900px;
    width: 100%; /* Ensure content takes full width within max-width */
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size */
    color: #F3C54D; /* Gold for main title */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: #FFF1E8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width for responsive buttons */
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.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: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #FFB04A 0%, #D86A14 100%);
    color: #140C0C; /* Dark text for gold button */
    border: none;
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: #C61F1F; /* Main brand red */
    color: #FFF1E8; /* Light text for red button */
    border: 2px solid #E53030; /* Auxiliary red border */
}

.page-cockfighting__btn-secondary:hover {
    background-color: #E53030;
    transform: translateY(-2px);
}

/* About Section */
.page-cockfighting__about-section {
    background-color: #2A1212; /* Card BG color as section background */
    padding: 60px 0;
    color: #FFF1E8; /* Light text for dark background */
}

/* Games Section */
.page-cockfighting__games-section {
    background-color: #140C0C; /* Dark background */
    padding: 60px 0;
    color: #FFF1E8; /* Light text */
}

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

.page-cockfighting__game-card {
    background-color: #2A1212; /* Card BG color */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
}

.page-cockfighting__game-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-cockfighting__game-title {
    font-size: 1.6em;
    color: #F3C54D;
    margin-bottom: 10px;
    padding: 0 15px;
}

.page-cockfighting__game-description {
    font-size: 1em;
    color: #FFF1E8;
    padding: 0 15px;
}

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    background-color: #2A1212;
    padding: 60px 0;
    color: #FFF1E8;
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-cockfighting__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #6A1E1E; /* Border color */
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    color: #F3C54D;
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: #FFF1E8;
}

.page-cockfighting__step-description a {
    color: #FFB04A; /* Gold for links */
    text-decoration: underline;
}

.page-cockfighting__step-description a:hover {
    color: #D86A14;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    background-color: #140C0C;
    padding: 60px 0;
    color: #FFF1E8;
}

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

.page-cockfighting__advantage-card {
    background-color: #2A1212;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px; /* Ensure minimum size */
}

.page-cockfighting__advantage-icon {
    width: 200px; /* Adjusted to meet minimum size */
    height: 200px; /* Adjusted to meet minimum size */
    object-fit: contain;
    margin-bottom: 20px;
}

.page-cockfighting__advantage-title {
    font-size: 1.4em;
    color: #F3C54D;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
    font-size: 1em;
    color: #FFF1E8;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: #2A1212;
    padding: 60px 0;
    color: #FFF1E8;
}

.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 800px;
}

.page-cockfighting__promo-item {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

.page-cockfighting__promo-title {
    font-size: 1.5em;
    color: #F3C54D;
    margin-bottom: 10px;
}

.page-cockfighting__promo-description {
    font-size: 1em;
    color: #FFF1E8;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #140C0C;
    padding: 60px 0;
    color: #FFF1E8;
}

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

.page-cockfighting__faq-item {
    background-color: #2A1212;
    border: 1px solid #6A1E1E;
    border-radius: 8px;
    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 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFF1E8;
    cursor: pointer;
    background-color: #C61F1F; /* Red background for question */
    border-bottom: 1px solid #E53030;
    list-style: none; /* Hide default marker for details summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #F3C54D;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid #E53030;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
    color: #F3C54D;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: #FFF1E8;
    background-color: #2A1212; /* Card BG for answer */
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    background-color: #2A1212;
    padding: 60px 0;
    text-align: center;
    color: #FFF1E8;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2em;
}

/* Global image styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Responsive styles for tablets and smaller desktops (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 500px;
    }

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

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

    .page-cockfighting__games-grid,
    .page-cockfighting__advantages-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-cockfighting__btn-large {
        padding: 15px 35px;
        font-size: 1.1em;
    }
}

/* Responsive styles for mobile devices (max-width: 768px) - MUST BE COMPLETE */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* HERO Section - Mobile */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed small top padding */
        padding-bottom: 30px !important;
    }

    .page-cockfighting__hero-image-wrapper {
        max-height: 300px !important;
    }

    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 7vw, 2.5em) !important;
        line-height: 1.3 !important;
    }

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

    /* Buttons and Button Containers - Mobile */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .page-cockfighting__btn-large {
        padding: 15px 25px !important;
        font-size: 1.1em !important;
    }

    /* Product Display Area (Games Grid) - Mobile */
    .page-cockfighting__games-grid {
        grid-template-columns: 1fr !important; /* Single column */
        gap: 20px !important;
        max-width: 100% !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    .page-cockfighting__game-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__game-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* General Images and Containers - Mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Other Content Modules - Mobile */
    .page-cockfighting__section-title {
        font-size: 1.8em !important;
    }

    .page-cockfighting__section-description,
    .page-cockfighting__text-block {
        font-size: 0.95em !important;
    }

    .page-cockfighting__steps-list,
    .page-cockfighting__promo-list,
    .page-cockfighting__faq-list {
        margin-top: 20px !important;
    }

    .page-cockfighting__step-item,
    .page-cockfighting__promo-item,
    .page-cockfighting__faq-item {
        padding: 15px 20px !important;
    }

    .page-cockfighting__step-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__advantage-title {
        font-size: 1.3em !important;
    }

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

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

    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .page-cockfighting__advantage-card {
        padding: 20px !important;
    }

    .page-cockfighting__advantage-icon {
        width: 200px !important;
        height: 200px !important;
        min-width: 200px !important;
        min-height: 200px !important;
        margin: 0 auto 20px auto !important;
    }
}