/* style/cockfighting.css */

/* Custom properties for colors */
:root {
    --page-cockfighting-primary: #11A84E;
    --page-cockfighting-secondary: #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;
}

/* Base styles for the page content, assuming body has dark background from shared.css */
.page-cockfighting {
    background-color: var(--page-cockfighting-background); /* Override if shared.css doesn't set body bg */
    color: var(--page-cockfighting-text-main);
    font-family: 'Arial', sans-serif; /* Example font */
    line-height: 1.6;
    box-sizing: border-box;
}

/* Container for centralizing content */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Section styling */
.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
    overflow: hidden; /* Ensure content doesn't overflow */
}

/* Dark section for contrast */
.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Example: using deep green for dark sections */
    color: var(--page-cockfighting-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0; /* No padding here, content wrapper handles it */
    background-color: var(--page-cockfighting-background); /* Fallback */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit hero image height */
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__hero-content-wrapper {
    width: 100%;
    padding: 40px 20px 60px; /* Padding for content below the image */
    background-color: var(--page-cockfighting-background); /* Match page background */
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-gold);
    border: 2px solid var(--page-cockfighting-gold);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-background);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.4);
}

/* Section titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

/* Content grid for text and image */
.page-cockfighting__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

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

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Paragraphs and lists */
.page-cockfighting p {
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting p a {
    color: var(--page-cockfighting-gold);
    text-decoration: none;
    font-weight: 600;
}

.page-cockfighting p a:hover {
    text-decoration: underline;
}

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

.page-cockfighting__list li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--page-cockfighting-gold);
}

/* Feature cards */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--page-cockfighting-gold);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question:hover {
    background-color: var(--page-cockfighting-deep-green);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--page-cockfighting-gold);
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed */
    padding-top: 10px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 500px !important; /* For JS controlled div version */
    padding-top: 10px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-deep-green);
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    text-align: center;
    background-color: var(--page-cockfighting-background);
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-cockfighting__final-cta-description {
    font-size: 1.1em;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* === Responsive Styles === */
/* Mobile First Approach, then adjust for larger screens */

/* Ensure all images are responsive */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Ensure all video elements are responsive (no video in this page, but keeping for robustness) */
.page-cockfighting video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    box-sizing: border-box;
}

/* Mobile specific overrides */
@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__container {
        padding: 0 15px; /* Add horizontal padding for mobile */
    }

    .page-cockfighting__hero-content-wrapper {
        padding: 30px 15px 40px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(2em, 8vw, 2.5em); /* Adjust H1 size for mobile */
        margin-bottom: 15px;
    }

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

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

    .page-cockfighting__btn {
        width: 100% !important; /* Force full width for buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95em;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 7vw, 2em); /* Adjust section title size for mobile */
        margin-bottom: 30px;
    }

    .page-cockfighting__content-grid {
        flex-direction: column; /* Stack content blocks vertically */
        gap: 30px;
    }

    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Keep stacked order */
    }

    .page-cockfighting__text-block,
    .page-cockfighting__image-block {
        min-width: unset; /* Remove min-width constraint */
        width: 100%;
    }

    .page-cockfighting__features-grid {
        grid-template-columns: 1fr; /* Single column for features */
    }

    .page-cockfighting__feature-card {
        padding: 25px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2em;
    }

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px;
    }

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

    .page-cockfighting__final-cta-section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

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

    /* Mobile image and video specific overrides */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Container for images/videos in mobile */
    .page-cockfighting__image-block,
    .page-cockfighting__video-container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}

/* Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 0 30px;
    }

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

    .page-cockfighting__btn {
        min-width: 150px;
        padding: 12px 25px;
    }

    .page-cockfighting__content-grid {
        gap: 30px;
    }

    .page-cockfighting__features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}