/* style/cockfighting.css */

/* Core page styling */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #F2FFF6; /* Text Main */
    background-color: var(--background-color, #08160F); /* Background color, fallback to Deep Green */
    padding-top: 0; /* Handled by body in shared.css */
}

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

/* Typography */
.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.8rem); /* Responsive font size */
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    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: 4px;
    background: linear-gradient(90deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    border-radius: 2px;
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 20px;
}

.page-cockfighting__hero-description,
.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: center;
}

.page-cockfighting__text-block {
    text-align: left;
}

.page-cockfighting__highlight {
    color: #F2C14E; /* Gold */
    font-weight: 700;
}

.page-cockfighting__link {
    color: #2AD16F; /* A shade of green from button gradient */
    text-decoration: underline;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    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: 12px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none; /* Remove default button border */
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background: #11271B; /* Card BG */
    color: #2AD16F; /* A shade of green from button gradient */
    border: 2px solid #2E7A4E; /* Border color */
}

.page-cockfighting__btn-secondary:hover {
    background: #2E7A4E; /* Border color */
    color: #F2FFF6; /* Text Main */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: 15px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    z-index: 1;
}

/* General Section Styling */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__rules-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 80px 0;
}

.page-cockfighting__why-xwinnr-section {
    padding: 80px 0;
    background-color: #0A4B2C; /* Deep Green */
}

.page-cockfighting__dark-bg {
    background-color: #08160F; /* Background */
}

.page-cockfighting__deep-green-bg {
    background-color: #0A4B2C; /* Deep Green */
}

.page-cockfighting__card-bg {
    background-color: #11271B; /* Card BG */
}

/* How to Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background-color: #11271B; /* Card BG */
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 200px; /* Enforce min size */
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 25px;
    flex-grow: 1;
}

/* Rules Section */
.page-cockfighting__grid-two-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

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

.page-cockfighting__list-item {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    color: #A7D9B8; /* Text Secondary */
}

.page-cockfighting__list-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2AD16F; /* A shade of green */
    font-size: 1.5em;
    line-height: 1;
    top: -2px;
}

/* Tips Section */
.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    margin: 40px auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    max-width: 800px; /* Constrain for content images */
    min-height: 200px; /* Enforce min size */
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: #0A4B2C; /* Deep Green */
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    background-color: #0A4B2C; /* Deep Green */
    border-bottom: 1px solid #1E3A2A; /* Divider */
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: #2AD16F; /* A shade of green */
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1.05rem;
    color: #A7D9B8; /* Text Secondary */
    line-height: 1.7;
}

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

/* Responsive Images, Videos, Buttons */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting video,
.page-cockfighting__video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
}

.page-cockfighting__video-section,
.page-cockfighting__video-container,
.page-cockfighting__video-wrapper {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Mobile specific styles */
@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description,
    .page-cockfighting__text-block {
        font-size: 1rem;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.3rem;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
    }

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

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__why-xwinnr-section {
        padding: 50px 0;
    }

    .page-cockfighting__steps-grid,
    .page-cockfighting__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

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

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

    /* Enforce image/video/container responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .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;
    }
    
    /* Ensure flex containers wrap */
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column; /* Or flex-wrap: wrap; */
        gap: 10px;
    }
}