/* style/cockfighting.css */

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main, #F2FFF6); /* Main text color */
    background-color: var(--background-dark, #08160F); /* Dark background for the page */
    line-height: 1.6;
    padding-bottom: 40px; /* Ensure some space before footer */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Prevent content overflow */
    box-sizing: border-box;
}

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

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

.page-cockfighting__hero-content {
    width: 100%;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure button doesn't exceed container */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    border: none;
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--glow, #57E38D);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--glow, #57E38D);
    color: var(--background-dark, #08160F);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--background-dark, #08160F);
}

.page-cockfighting__section:nth-child(even) {
    background-color: var(--card-bg, #11271B); /* Alternate background for sections */
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--text-main, #F2FFF6);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.3;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 600;
    color: var(--glow, #57E38D);
    margin-top: 30px;
    margin-bottom: 20px;
}

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

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px;
}

/* List styles */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

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

.page-cockfighting__list-item::before {
    content: '•';
    color: var(--glow, #57E38D);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting__numbered-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    counter-reset: step-counter;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
    counter-increment: step-counter;
    padding-left: 35px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
    content: counter(step-counter) ".";
    color: var(--gold, #F2C14E);
    font-weight: bold;
    font-size: 1.1em;
    left: 0;
}

/* Benefits Grid */
.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__benefit-card {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border, #2E7A4E);
    text-align: center;
}

.page-cockfighting__benefit-card .page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__benefit-card .page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #11271B);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border, #2E7A4E);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg, #11271B);
    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 Chrome/Safari */
}

.page-cockfighting__faq-question:hover {
    background-color: var(--deep-green, #0A4B2C);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.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(--text-secondary, #A7D9B8);
    border-top: 1px solid var(--divider, #1E3A2A);
}
.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-answer {
    border-top: none; /* No border if not open */
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 30px 0;
        padding-top: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__section {
        padding: 50px 0;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    }
    .page-cockfighting__sub-title {
        font-size: clamp(1.2rem, 3vw, 1.8rem);
    }
    .page-cockfighting__text-block,
    .page-cockfighting__list-item {
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__container {
        padding: 0 15px; /* Adjust container padding for mobile */
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding: 20px 0;
        padding-top: 10px !important; /* body handles --header-offset */
    }
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 0.95rem;
        margin-bottom: 25px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 10px;
        margin-top: 20px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General Section Styling */
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: clamp(1.1rem, 4vw, 1.6rem);
        margin-top: 25px;
        margin-bottom: 15px;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__list-item {
        font-size: 0.9rem;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper { /* Added hero image wrapper for safety */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }
    .page-cockfighting__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Benefits Grid */
    .page-cockfighting__benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__benefit-card {
        padding: 25px;
    }

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

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

/* Ensuring contrast for default elements if not explicitly styled */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting p {
    color: var(--text-secondary, #A7D9B8);
}