/* style/cockfighting.css */

/* Custom Colors from palette */
:root {
    --page-cockfighting-primary: #11A84E; /* Main color */
    --page-cockfighting-secondary: #22C768; /* Auxiliary color */
    --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-deep-green: #0A4B2C;
}

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

/* General container for 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 no overflow for flex/grid items */
}

/* 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-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: var(--page-cockfighting-deep-green); /* Slightly lighter dark green for hero background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height to maintain aspect ratio for 16:9 images */
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-top: 40px; /* Space between image and content */
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.2rem); /* Responsive H1 font size */
    color: var(--page-cockfighting-gold); /* Gold color for main title */
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5); /* Subtle glow */
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: nowrap; /* Prevent text wrapping by default, let media query handle */
}

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

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-primary); /* Brand green text */
    border: 2px solid var(--page-cockfighting-primary);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-primary);
    color: var(--page-cockfighting-text-main);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.2);
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.2rem;
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.3;
}

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

.page-cockfighting__text-block strong {
    color: var(--page-cockfighting-text-main);
}

/* Flex content for image/text side-by-side */
.page-cockfighting__flex-content {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap; /* Allow content to wrap on smaller screens */
}

.page-cockfighting__flex-content.page-cockfighting__flex-reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__flex-content > div {
    flex: 1;
    min-width: 300px; /* Ensure content blocks don't get too small */
}

.page-cockfighting__image-wrapper {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__feature-image,
.page-cockfighting__download-image,
.page-cockfighting__strategy-image,
.page-cockfighting__promotion-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 1px solid var(--page-cockfighting-border);
}

/* List styles */
.page-cockfighting__feature-list,
.page-cockfighting__install-steps,
.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__feature-list li,
.page-cockfighting__install-steps li,
.page-cockfighting__strategy-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__feature-list li::before,
.page-cockfighting__strategy-list li::before {
    content: '✓'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--page-cockfighting-primary);
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__install-steps {
    counter-reset: step-counter;
}

.page-cockfighting__install-steps li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    background-color: var(--page-cockfighting-primary);
    color: var(--page-cockfighting-text-main);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9em;
    position: absolute;
    left: 0;
    top: 2px;
}

/* Video Section */
.page-cockfighting__video-section {
    background-color: var(--page-cockfighting-card-bg); /* Darker background for video */
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 960px; /* Max width for video */
    width: 100%; /* Ensure desktop takes full width up to max-width */
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--page-cockfighting-border);
    box-sizing: border-box;
}

.page-cockfighting__video-wrapper .page-cockfighting__video-link {
    display: block; /* Make the whole wrapper clickable */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Ensure link is above video controls if any */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer; /* Indicate it's clickable */
}

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

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

.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;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    outline: none;
    list-style: none; /* Remove default marker */
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−'; /* Change to minus when open */
}

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

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Call to Action at the bottom */
.page-cockfighting__call-to-action {
    background: var(--page-cockfighting-deep-green);
    text-align: center;
    padding: 80px 0;
}

.page-cockfighting__cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__cta-content .page-cockfighting__section-title {
    color: var(--page-cockfighting-gold);
}

.page-cockfighting__cta-content .page-cockfighting__text-block {
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

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

    .page-cockfighting__flex-content {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__flex-content.page-cockfighting__flex-reverse {
        flex-direction: column; /* Revert to column for smaller screens */
    }

    .page-cockfighting__hero-content {
        margin-top: 20px;
    }
}

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

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

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

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

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    /* Images Mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-wrapper,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
        overflow: hidden !important;
    }

    /* Videos Mobile */
    .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;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding for video section */
    }

    /* Buttons Mobile */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Ensure buttons don't touch edges */
    }
    .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: 12px 20px !important; /* Adjust padding for mobile */
        font-size: 1rem !important;
    }

    .page-cockfighting__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    .page-cockfighting__section-title {
        font-size: 1.4rem;
    }
}

/* Ensure content areas are responsive and do not overflow */
.page-cockfighting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box; /* Crucial for preventing overflow */
    width: 100%; /* Ensure it takes full width up to max-width */
}
.page-cockfighting__about-cockfighting .page-cockfighting__container,
.page-cockfighting__why-choose .page-cockfighting__container,
.page-cockfighting__download-guide .page-cockfighting__container,
.page-cockfighting__strategies .page-cockfighting__container,
.page-cockfighting__security-promo .page-cockfighting__container,
.page-cockfighting__faq-section .page-cockfighting__container,
.page-cockfighting__call-to-action .page-cockfighting__container {
    width: 100%;
    max-width: 1200px;
    box-sizing: border-box;
    padding: 0 20px; /* Default desktop padding */
}

@media (max-width: 768px) {
    .page-cockfighting__about-cockfighting .page-cockfighting__container,
    .page-cockfighting__why-choose .page-cockfighting__container,
    .page-cockfighting__download-guide .page-cockfighting__container,
    .page-cockfighting__strategies .page-cockfighting__container,
    .page-cockfighting__security-promo .page-cockfighting__container,
    .page-cockfighting__faq-section .page-cockfighting__container,
    .page-cockfighting__call-to-action .page-cockfighting__container {
        padding: 0 15px !important; /* Mobile padding */
    }
}