/* style/cockfighting.css */

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

/* Base styles for the page content, ensuring dark background with light text */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--q8bet-background-main);
    color: var(--q8bet-text-main);
    line-height: 1.6;
    padding-top: 0; /* body handles padding-top from header */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image then text */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    overflow: hidden;
    background-color: var(--q8bet-deep-green); /* Fallback background for hero */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height of hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    position: relative; /* Not absolute, to flow below image */
    z-index: 10;
    max-width: 900px;
    padding: 0 20px;
    color: var(--q8bet-text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: bold;
    color: var(--q8bet-gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 1.2rem;
    color: var(--q8bet-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    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);
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

.page-cockfighting__btn-primary {
    background: var(--q8bet-button-gradient);
    color: var(--q8bet-text-main);
    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(--q8bet-gold-color);
    border: 2px solid var(--q8bet-gold-color);
}

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

/* General Section Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__types-section,
.page-cockfighting__guide-section,
.page-cockfighting__benefits-section,
.page-cockfighting__strategies-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--q8bet-background-main); /* Ensure dark background */
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--q8bet-gold-color);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.page-cockfighting__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--q8bet-primary-color);
    margin: 20px auto 0;
    border-radius: 2px;
}

.page-cockfighting__content-wrapper {
    margin-bottom: 40px;
}

.page-cockfighting__text-block p {
    font-size: 1.1rem;
    color: var(--q8bet-text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

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

.page-cockfighting__image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Card Grid Styles */
.page-cockfighting__grid-wrapper,
.page-cockfighting__benefits-grid,
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card,
.page-cockfighting__step-card,
.page-cockfighting__benefit-item {
    background-color: var(--q8bet-card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid var(--q8bet-border-color);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__benefit-title {
    font-size: 1.6rem;
    color: var(--q8bet-gold-color);
    margin-bottom: 15px;
    line-height: 1.3;
}

.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__benefit-text {
    font-size: 1rem;
    color: var(--q8bet-text-secondary);
    margin-bottom: 20px;
    flex-grow: 1; /* Make text blocks fill available space */
}

.page-cockfighting__step-card .page-cockfighting__step-button {
    margin-top: auto; /* Push button to the bottom */
    width: 100%; /* Make button full width within card */
    max-width: 250px;
}

.page-cockfighting__benefit-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    /* No filter to change color, keep original icon colors */
}

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

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

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--q8bet-text-main);
    background-color: var(--q8bet-deep-green);
    border-bottom: 1px solid var(--q8bet-divider-color);
    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(--q8bet-gold-color);
}

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

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

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

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

    .page-cockfighting__description {
        font-size: 1.1rem;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }

    .page-cockfighting__grid-wrapper,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__steps-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 10px 0 40px 0;
    }

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

    .page-cockfighting__hero-content {
        padding: 0 15px;
    }

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

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px; /* Add padding to container */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Force full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__strategies-section,
    .page-cockfighting__faq-section {
        padding: 60px 0;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 40px;
    }

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__text-block p {
        font-size: 15px;
    }

    .page-cockfighting__card,
    .page-cockfighting__step-card,
    .page-cockfighting__benefit-item {
        padding: 25px;
    }

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

    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__benefit-title {
        font-size: 1.4rem;
    }

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

    .page-cockfighting__faq-qtext {
        font-size: 1.1rem;
    }

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

    /* Mobile image 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-image-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__grid-wrapper,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Ensure video elements are responsive (no video on this page, but keeping for compliance) */
    .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;
    }
}