/* style/cockfighting.css */

/* Custom Colors */
:root {
    --page-cockfighting-primary-color: #11A84E;
    --page-cockfighting-secondary-color: #22C768;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-background: #08160F;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-border: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    background-color: var(--page-cockfighting-background); /* Page background */
    line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--page-cockfighting-card-bg); /* Darker background for hero */
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    color: var(--page-cockfighting-gold);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    font-size: clamp(2.2rem, 4vw, 3.5rem); 
}

.page-cockfighting__hero-description {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1.1rem;
    margin-bottom: 30px;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: 2px solid var(--page-cockfighting-primary-color);
}

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

.page-cockfighting__btn-secondary {
    background: var(--page-cockfighting-deep-green);
    color: var(--page-cockfighting-text-main);
    border: 2px solid var(--page-cockfighting-border);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-primary-color);
    transform: translateY(-2px);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 20px;
    background-color: var(--page-cockfighting-background);
    text-align: center;
}

.page-cockfighting__video-container {
    width: 100%; /* Important for desktop as per instructions */
    max-width: 1000px; /* Max width for video content */
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 0 20px var(--page-cockfighting-glow);
    background-color: var(--page-cockfighting-card-bg); /* Placeholder background */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it behaves as a block element */
    cursor: pointer; /* Indicate clickable */
}

.page-cockfighting__video-caption {
    color: var(--page-cockfighting-text-secondary);
    font-size: 0.95rem;
    margin-top: 15px;
}

/* Content Sections */
.page-cockfighting__content-section {
    padding: 80px 20px;
    background-color: var(--page-cockfighting-card-bg);
    border-top: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__content-section:nth-of-type(odd) {
    background-color: var(--page-cockfighting-background); /* Alternate background for sections */
}

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

.page-cockfighting__section-title {
    color: var(--page-cockfighting-gold);
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-cockfighting__sub-title {
    color: var(--page-cockfighting-text-main);
    font-size: 1.8rem;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--page-cockfighting-divider);
    padding-bottom: 10px;
}

.page-cockfighting__text-block {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 20px;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    object-fit: cover;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    color: var(--page-cockfighting-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

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

.page-cockfighting__ordered-list {
    list-style: decimal;
    padding-left: 25px;
    margin-bottom: 20px;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item {
    padding-left: 0;
    list-style-position: inside;
}

.page-cockfighting__ordered-list .page-cockfighting__list-item::before {
    content: none; /* Remove custom bullet */
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--page-cockfighting-card-bg);
    padding: 80px 20px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-deep-green);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-deep-green);
    list-style: none; /* Remove 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;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-cockfighting-primary-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for 'x' or '-' effect */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    color: var(--page-cockfighting-text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__faq-answer p {
    margin: 0;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__faq-answer a {
    color: var(--page-cockfighting-primary-color);
    text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 20px;
    background-color: var(--page-cockfighting-background);
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6rem;
    }
}

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

    .page-cockfighting__hero-section {
        padding: 10px 15px 40px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem); /* Smaller on mobile */
    }

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

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__video-section,
    .page-cockfighting__content-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 15px;
    }

    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.4rem;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure images take full width of container */
        height: auto !important;
        display: block !important;
        min-width: unset; /* Allow smaller display if container is small */
        min-height: unset;
    }

    /* Mobile 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: 0; handled by .page-cockfighting__container if nested */
        /* padding-right: 0; handled by .page-cockfighting__container if nested */
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* FAQ */
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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