/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Light text for dark body background */
    background-color: #000000; /* Assuming body is dark from shared.css */
    padding-top: 0; /* Handled by shared.css for body, or by specific sections on mobile */
}

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

/* Sections */
.page-cockfighting__hero-section,
.page-cockfighting__why-choose-us,
.page-cockfighting__live-video-section,
.page-cockfighting__promotions-section,
.page-cockfighting__cta-bottom-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__about-section,
.page-cockfighting__betting-types,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    text-align: center;
}

/* Background colors based on body background being dark */
.page-cockfighting__dark-bg {
    background-color: #0d0d0d; /* Slightly lighter than body for contrast */
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #1a1a1a; /* Dark gray for "light" sections to maintain dark theme */
    color: #f0f0f0;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 40px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-title,
.page-cockfighting__list-item-title {
    font-size: 1.5em;
    color: #FFD700;
    margin-bottom: 10px;
}

/* Paragraphs and descriptions */
.page-cockfighting__hero-description,
.page-cockfighting__text-block,
.page-cockfighting__card-description,
.page-cockfighting__list-item-description {
    font-size: 1.1em;
    margin-bottom: 20px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
    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%;
    white-space: normal;
    word-wrap: break-word;
}

.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: #6a0000;
    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);
}

.page-cockfighting__btn-text {
    color: #FFD700;
    text-decoration: underline;
    padding: 5px 0;
    font-size: 1em;
    display: block; /* Ensure it takes full width for wrapping */
    margin-top: 10px;
}

.page-cockfighting__btn-text:hover {
    color: #e6c200;
}


/* Hero Section Specific */
.page-cockfighting__hero-section {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    background-image: url('[GALLERY:hero_bg:1920x1080:cockfighting,stadium,crowd,dynamic]');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay */
    z-index: 1;
}

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

.page-cockfighting__hero-image-wrapper {
    display: none; /* Hide hero image on desktop, use background instead */
}

/* About Section Specific */
.page-cockfighting__image-content {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__feature-card p,
.page-cockfighting__promo-card p {
    color: #cccccc;
}

/* Betting Types & Tips List */
.page-cockfighting__betting-list,
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__list-item {
    background-color: #0d0d0d;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border-left: 5px solid #FFD700;
}

.page-cockfighting__list-item p {
    color: #f0f0f0;
}

/* Live Video Section */
.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin: 40px auto;
    max-width: 900px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    display: block; /* Ensure it behaves as a block element */
    max-width: 100%; /* Ensure responsiveness */
    height: auto; /* Maintain aspect ratio */
    cursor: pointer;
}

/* Promotions Section */
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    margin-top: auto; /* Push button to bottom */
    align-self: center;
}

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

.page-cockfighting__faq-item {
    background-color: #0d0d0d;
    border: 1px solid rgba(255, 215, 0, 0.2);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

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

.page-cockfighting__faq-question:hover {
    background-color: #2a2a2a;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: inherit;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #FFD700;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change to 'X' or '-' */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #0d0d0d;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: #f0f0f0;
}

/* CTA Bottom Section */
.page-cockfighting__cta-content {
    max-width: 800px;
}

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

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

    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__why-choose-us,
    .page-cockfighting__betting-types,
    .page-cockfighting__live-video-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        padding: 60px 0;
    }

    /* Fixed header spacing for first content section if needed.
       Assuming shared.css handles body padding-top, so this section does not need it.
       However, the video section explicitly needs it in mobile media query.
    */
    .page-cockfighting__hero-section {
        padding-top: 0; /* Handled by shared for body, or other sections can add if needed */
        min-height: auto;
    }

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

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

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

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

    .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;
        padding-right: 15px;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__why-choose-us,
    .page-cockfighting__betting-types,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-bottom-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Video responsiveness */
    .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;
    }

    /* Video section needs header offset on mobile if it's the first visible content */
    .page-cockfighting__live-video-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__hero-image-wrapper {
        display: block; /* Show hero image on mobile if background is not ideal */
        margin-top: 30px;
    }
    .page-cockfighting__hero-section {
        background-image: none; /* Remove background image on mobile */
    }
    .page-cockfighting__hero-section::before {
        background: none; /* Remove overlay on mobile */
    }

    .page-cockfighting__hero-content {
        padding: 0;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 2em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__list-item-title {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px 20px;
    }
}