/* 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; /* Main background for sections */
    --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;
}

/* General Page Styles - Assuming body background from shared.css is dark, text will be light */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Light text for dark background */
    background-color: var(--page-cockfighting-background); /* Override for main content sections */
}

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

.page-cockfighting__container--center {
    text-align: center;
}

.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--page-cockfighting-background); /* Ensure dark background for sections */
}

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 42px);
    color: var(--page-cockfighting-text-main);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__sub-title {
    font-size: clamp(20px, 2.5vw, 28px);
    color: var(--page-cockfighting-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting p {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-secondary); /* Secondary text for paragraphs */
}

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

.page-cockfighting__list li {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 10px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__list li strong {
    color: var(--page-cockfighting-text-main);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom */
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it takes full width */
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    padding: 0 20px;
    box-sizing: border-box;
    position: relative; /* Ensure content is in normal flow */
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(36px, 5vw, 60px); /* Use clamp for H1 */
    color: var(--page-cockfighting-text-main);
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.1;
}

.page-cockfighting__intro-text {
    font-size: clamp(18px, 2.2vw, 22px);
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-guide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    box-sizing: border-box;
    min-width: 180px;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff; /* White text for gradient button */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

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

/* Grid Layout for Content Sections */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

.page-cockfighting__grid--reverse .page-cockfighting__text-block {
    order: 2; /* Text block on right */
}

.page-cockfighting__grid--reverse .page-cockfighting__image-wrapper {
    order: 1; /* Image on left */
}

.page-cockfighting__image-wrapper {
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Minimum image size */
    min-height: 200px;
}

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

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg); /* Dark card background */
    border: 1px solid var(--page-cockfighting-border);
    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;
    font-size: 20px;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green); /* Slightly different dark background for question */
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for summary */
}

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

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

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    color: var(--page-cockfighting-glow); /* Glow color for toggle */
    transition: transform 0.3s ease;
}

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

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

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

/* Conclusion Section */
.page-cockfighting__conclusion {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-cockfighting__conclusion .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: var(--page-cockfighting-text-secondary);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__grid--reverse .page-cockfighting__text-block {
        order: initial;
    }
    .page-cockfighting__grid--reverse .page-cockfighting__image-wrapper {
        order: initial;
    }
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-cockfighting__main-title {
        font-size: 36px;
    }
    .page-cockfighting__intro-text {
        font-size: 18px;
    }
    .page-cockfighting p,
    .page-cockfighting__list li {
        font-size: 16px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-guide {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body handles header offset */
    }
    .page-cockfighting__hero-image-wrapper {
        padding: 0 15px;
    }
    .page-cockfighting__image-wrapper {
        padding: 0 15px;
    }
    .page-cockfighting__image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }
    /* Ensure all content containers are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__faq-question {
        font-size: 18px;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-list {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 32px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__faq-question {
        font-size: 16px;
    }
}

/* Ensure image filter is not used */
.page-cockfighting img {
    filter: none !important;
}