/* style/cockfighting.css */

/* Custom properties for colors */
:root {
    --color-primary: #11A84E; /* Main color */
    --color-secondary: #22C768; /* Auxiliary color */
    --color-card-bg: #11271B; /* Card Background */
    --color-background: #08160F; /* Section Background */
    --color-text-main: #F2FFF6; /* Main Text */
    --color-text-secondary: #A7D9B8; /* Secondary Text */
    --color-border: #2E7A4E; /* Border */
    --color-glow: #57E38D; /* Glow */
    --color-gold: #F2C14E; /* Gold */
    --color-divider: #1E3A2A; /* Divider */
    --color-deep-green: #0A4B2C; /* Deep Green */

    /* Button Gradient */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

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

/* Ensure text in dark sections is light, and in light sections is dark */
.page-cockfighting__dark-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

/* --- General Layout --- */
.page-cockfighting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem); /* Responsive H2 */
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
}

.page-cockfighting p {
    margin-bottom: 1em;
    color: var(--color-text-main);
}

.page-cockfighting h3 {
    font-size: clamp(1.4rem, 2vw, 1.8rem); /* Responsive H3 */
    color: var(--color-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 10px 0 0 0; /* Small top padding, body handles --header-offset */
    background-color: var(--color-background); /* Ensure consistent background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 70vh; /* Limit height on very large screens */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 40px 20px;
    z-index: 2;
    background-color: rgba(8, 22, 15, 0.85); /* Semi-transparent background for readability */
    border-radius: 8px;
    margin-top: -80px; /* Pull content up over the image */
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 */
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Soft glow */
}

.page-cockfighting__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 100%; /* Ensure button max-width */
    box-sizing: border-box; /* Include padding in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- Introduction Section --- */
.page-cockfighting__introduction-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

/* --- Types Section --- */
.page-cockfighting__types-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-card-bg);
}

.page-cockfighting__type-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background-color: var(--color-card-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    padding: 25px;
    text-align: left;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--color-text-main);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--color-gold);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__card p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* --- Rules Section --- */
.page-cockfighting__rules-section {
    padding: 60px 0;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-cockfighting__rule-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__rule-list li {
    background-color: var(--color-card-bg);
    border-left: 5px solid var(--color-primary);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: var(--color-text-main);
}

.page-cockfighting__rule-list li h3 {
    margin-top: 0;
    color: var(--color-gold);
    font-size: 1.3rem;
}

.page-cockfighting__rule-list li ul {
    list-style: disc;
    margin-left: 20px;
    margin-top: 10px;
    color: var(--color-text-secondary);
}

/* --- Strategy Section --- */
.page-cockfighting__strategy-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
}

.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__strategy-card {
    text-align: center;
}

.page-cockfighting__strategy-card .page-cockfighting__card-image {
    height: 250px; /* Adjust height for strategy images */
}

.page-cockfighting__strategy-card .page-cockfighting__card-title {
    color: var(--color-gold);
}

/* --- Benefits Section --- */
.page-cockfighting__benefits-section {
    padding: 60px 0;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

.page-cockfighting__benefit-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.page-cockfighting__benefit-list li {
    background-color: var(--color-card-bg);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid var(--color-border);
    color: var(--color-text-main);
}

.page-cockfighting__benefit-title {
    color: var(--color-gold);
    margin-top: 0;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.page-cockfighting__benefit-list li p {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

/* --- Promotions Section --- */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    text-align: center;
}

.page-cockfighting__promo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- Guide Section --- */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background-color: var(--color-background);
    color: var(--color-text-main);
    text-align: center;
}

.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    text-align: center;
    padding: 30px;
}

.page-cockfighting__step-title {
    color: var(--color-gold);
    font-size: 1.4rem;
    margin-top: 0;
}

/* --- FAQ Section --- */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    text-align: center;
}

.page-cockfighting__faq-image {
    max-width: 600px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 15px 25px;
    text-align: left;
    background-color: var(--color-card-bg);
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 500px; /* Max height for expansion */
    padding: 15px 25px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* For details tag */
    padding: 15px 25px;
}

/* For details tag, ensure content is visible when open */
.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: var(--color-primary);
}

/* --- Conclusion Section --- */
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--color-background);
    color: var(--color-text-main);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__content-area {
        padding: 30px 15px;
    }
    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__subtitle {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }

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

    .page-cockfighting__type-cards,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__benefit-list,
    .page-cockfighting__promo-cards,
    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__strategy-card .page-cockfighting__card-image {
        height: 200px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}