/* style/cockfighting.css */

/* Variables for colors */
:root {
    --primary-color: #FFD700; /* Gold */
    --secondary-color: #8B0000; /* Dark Red */
    --text-light: #ffffff;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
}

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-light); /* Default text color for dark body background */
    background-color: var(--bg-dark); /* Ensure consistency if section backgrounds are not full width */
}

/* Section common styles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__section-title--white {
    color: var(--text-light);
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 30px auto;
    color: var(--text-light);
}

.page-cockfighting__text-block--white {
    color: var(--text-light);
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure spacing from fixed header */
}

.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: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.8));
    z-index: 2;
}

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

.page-cockfighting__hero-title {
    font-size: 3.8em;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.5;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
}

.page-cockfighting__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    border-color: #e6c200;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark); /* Dark text on gold hover */
    transform: translateY(-2px);
}

/* Light Background Section */
.page-cockfighting__light-bg {
    background-color: var(--text-light); /* White background */
    color: var(--text-dark); /* Dark text */
    padding: 80px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__text-block {
    color: var(--text-dark);
}

.page-cockfighting__light-bg .page-cockfighting__card-title {
    color: var(--secondary-color);
}

.page-cockfighting__light-bg .page-cockfighting__list-item {
    color: var(--text-dark);
}

/* Dark Background Section */
.page-cockfighting__dark-bg {
    background-color: var(--bg-dark); /* Dark background */
    color: var(--text-light); /* Light text */
    padding: 80px 0;
}

/* Image with text block */
.page-cockfighting__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.page-cockfighting__image-text-block .page-cockfighting__image-item {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

.page-cockfighting__image-text-block .page-cockfighting__text-content {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__sub-title {
    font-size: 2em;
    color: var(--secondary-color);
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__list-item {
    font-size: 1.1em;
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
}

.page-cockfighting__list-item::before {
    content: '✔';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 40px auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background-color: #000;
}

.page-cockfighting__video-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__video-cta {
    margin-top: 30px;
}

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

.page-cockfighting__guide-item {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-top: 5px solid var(--primary-color);
}

.page-cockfighting__guide-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__guide-text {
    font-size: 1em;
    color: var(--text-dark);
}

.page-cockfighting__image-item--full-width {
    width: 100%;
    margin-top: 50px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    object-fit: cover;
}

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

.page-cockfighting__strategy-card {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for dark background */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-cockfighting__strategy-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__strategy-card .page-cockfighting__card-text {
    font-size: 1em;
    color: var(--text-light);
}

/* 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: #f9f9f9;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__promotion-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--secondary-color);
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-cockfighting__promotion-card .page-cockfighting__card-text {
    font-size: 1em;
    color: var(--text-dark);
    padding: 0 15px 20px 15px;
    flex-grow: 1; /* Pushes button to bottom */
}

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

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

.page-cockfighting__cta-buttons--center .page-cockfighting__btn-primary,
.page-cockfighting__cta-buttons--center .page-cockfighting__btn-secondary {
    margin: 10px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-title {
    font-size: 1.3em;
    color: var(--primary-color);
    margin: 0;
    font-weight: bold;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8em;
    color: var(--primary-color);
    font-weight: bold;
    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 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-cockfighting__faq-text {
    font-size: 1em;
    color: var(--text-light);
    margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--primary-color); /* Gold background for strong CTA */
    color: var(--text-dark); /* Dark text on gold */
}

.page-cockfighting__final-cta-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__final-cta-section .page-cockfighting__text-block {
    color: var(--text-dark);
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-primary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--text-light);
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-primary:hover {
    background-color: #a30000; /* Darker red */
    border-color: #a30000;
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-secondary {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.page-cockfighting__final-cta-section .page-cockfighting__btn-secondary:hover {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.8em;
    }
    .page-cockfighting__image-text-block {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image {
        height: 100%; /* Ensure hero image covers height */
    }

    /* Content area image size enforcement */
    /* All images within .page-cockfighting must be at least 200px wide for display */
    .page-cockfighting__image-item,
    .page-cockfighting__promotion-image,
    .page-cockfighting__video {
        min-width: 200px !important; /* Ensure minimum display size */
        min-height: 200px !important; /* Ensure minimum display size */
    }
    
    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure spacing from fixed header */
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    .page-cockfighting__image-text-block {
        gap: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__list-item {
        font-size: 1em;
    }

    /* Video responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__guide-steps,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__guide-item,
    .page-cockfighting__strategy-card,
    .page-cockfighting__promotion-card {
        padding: 20px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-title {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.5em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }

    /* Ensure containers prevent overflow */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__video-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__final-cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding added to container, not directly to section for full-width backgrounds */
    }
    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}