/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Default light text color for dark body background */
    background-color: transparent; /* Assuming body handles the dark background */
    overflow-x: hidden; /* Prevent horizontal scroll on mobile */
}

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

.page-cockfighting__section-title {
    font-size: 2.8em;
    color: #FFD700; /* Gold for main titles */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
    font-weight: bold;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    color: #ffffff; /* White for descriptions */
}

.page-cockfighting__text-block p {
    margin-bottom: 1em;
    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: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__btn-primary {
    background-color: #FFD700; /* Gold */
    color: #8B0000; /* Dark Red text for contrast */
    border: 2px solid #FFD700;
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200;
    color: #8B0000;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #FFD700; /* Gold text */
    border: 2px solid #FFD700;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    box-sizing: border-box;
}

.page-cockfighting__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
}

.page-cockfighting__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

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

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

.page-cockfighting__hero-title {
    font-size: 3.8em;
    color: #FFD700; /* Gold */
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* General Section Styles */
.page-cockfighting__dark-section {
    background-color: #1a1a1a; /* Dark background for some sections */
    color: #f0f0f0;
    padding: 80px 0;
}

.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #f0f0f0;
}

/* Content Grid (for image and text side-by-side) */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 50px;
}

.page-cockfighting__content-grid--reverse {
    grid-template-areas: "image text"; /* Reverse order for some sections */
}

.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
    grid-area: text;
}

.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    grid-area: image;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* Advantages Section */
.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 350px; /* Ensure cards have some height */
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 215, 0, 0.15); /* Lighter gold tint on hover */
}

.page-cockfighting__advantage-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px;
    margin-bottom: 20px;
    border-radius: 10px;
    object-fit: cover;
}

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

.page-cockfighting__advantage-text {
    color: #e0e0e0;
}

/* How to Play Section */
.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: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 450px; /* Ensure cards have some height */
}

.page-cockfighting__step-number {
    width: 60px;
    height: 60px;
    background-color: #FFD700;
    color: #8B0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 20px;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: #FFD700;
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    color: #e0e0e0;
    flex-grow: 1; /* Make text take up available space */
}

.page-cockfighting__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

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

/* Promotions Section */
.page-cockfighting__promotions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.page-cockfighting__promotion-card {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 500px; /* Ensure cards have some height */
}

.page-cockfighting__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

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

.page-cockfighting__promotion-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
    padding: 0 20px;
}

.page-cockfighting__promotion-text {
    color: #e0e0e0;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__promotion-card .page-cockfighting__btn-secondary {
    margin: 0 20px 20px;
    align-self: center;
    width: calc(100% - 40px);
}


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

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    color: #FFD700;
    font-weight: bold;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #FFD700;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 20px 20px; /* Adjust padding when open */
}

.page-cockfighting__faq-answer p {
    margin-bottom: 1em;
    color: #e0e0e0;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: #8B0000; /* Dark Red background for emphasis */
    color: #ffffff;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
    color: #FFD700;
}

.page-cockfighting__final-cta-section .page-cockfighting__section-description {
    color: #ffffff;
}

.page-cockfighting__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-grid--reverse {
        grid-template-areas: unset; /* Remove explicit grid area for mobile */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__text-block,
    .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
        grid-area: unset;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        height: auto;
        min-height: 600px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding */
        padding-bottom: 60px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }

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

    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__final-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 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: 1.8em;
        padding-top: 30px;
    }

    .page-cockfighting__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-cockfighting__dark-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__security-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__final-cta-section {
        padding: 60px 0;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-wrapper,
    .page-cockfighting__advantage-card,
    .page-cockfighting__step-card,
    .page-cockfighting__promotion-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content touching edges */
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        position: relative !important; /* Adjust for mobile layout */
        transform: none !important;
    }

    .page-cockfighting__hero-video-wrapper {
        position: relative !important;
        height: auto !important;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

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

    .page-cockfighting__faq-question {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
}