/* style/cockfighting.css */

/* Custom Colors */
:root {
    --page-cockfighting-bg: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-border: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content */
.page-cockfighting {
    background-color: var(--page-cockfighting-bg); /* Dark background */
    color: var(--page-cockfighting-text-main); /* Light text for contrast */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom before footer */
}

.page-cockfighting__section-title {
    font-size: clamp(2.2rem, 4vw, 3rem); /* H1/H2 font-size using clamp */
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__sub-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--page-cockfighting-text-main);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting p {
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting ul {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting li {
    margin-bottom: 8px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image first, then content */
    align-items: center;
    justify-content: center;
    padding-bottom: 60px; /* Space below content */
    padding-top: 10px; /* Small top padding, body handles header offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure no overflow from image */
}

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

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 4rem); /* H1 font-size */
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.08em;
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--page-cockfighting-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;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-cockfighting__cta-buttons--single {
    display: block; /* For single button, make it block level */
    text-align: center;
}

.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-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text break */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-bg); /* Dark text on gold hover */
    transform: translateY(-3px);
}

/* General Content Sections */
.page-cockfighting__about-section,
.page-cockfighting__betting-guide-section,
.page-cockfighting__promotions-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-card-bg); /* Darker background for contrast */
    padding: 60px 20px;
    margin: 60px 0;
    box-sizing: border-box;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

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

.page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
    order: 2; /* Image on right for desktop */
}
.page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
    order: 1; /* Text on left for desktop */
}


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

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

.page-cockfighting__text-block {
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__benefits-grid,
.page-cockfighting__tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.page-cockfighting__benefit-card,
.page-cockfighting__tip-card {
    background-color: var(--page-cockfighting-bg); /* Use main bg for cards in dark section */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--page-cockfighting-divider);
    transition: transform 0.3s ease;
}

.page-cockfighting__benefit-card:hover,
.page-cockfighting__tip-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: bold;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    max-width: 900px;
    margin: 60px auto;
    padding: 60px 20px;
    box-sizing: border-box;
    border-radius: 10px;
    background-color: var(--page-cockfighting-card-bg); /* Card background for FAQ section */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-bg); /* Main bg for individual FAQ items */
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--page-cockfighting-divider);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-deep-green); /* Slightly different bg for question */
    border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--page-cockfighting-divider);
}

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

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

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.6;
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    text-align: center;
    max-width: 900px;
    margin: 80px auto;
    padding: 0 20px;
}

.page-cockfighting__final-cta-description {
    font-size: 1.2rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr; /* Stack on tablets */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__image-wrapper {
        order: 1; /* Reset order for stacking */
    }
    .page-cockfighting__content-grid--reverse .page-cockfighting__text-block {
        order: 2; /* Reset order for stacking */
    }
}

@media (max-width: 768px) {
    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image containers */
    .page-cockfighting__image-wrapper,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Video (if any) */
    .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;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
    }

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px; /* Add internal padding for text */
        padding-right: 15px;
    }

    /* Sections */
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__betting-guide-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__final-cta-section {
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

    .page-cockfighting__main-title {
        font-size: 2.5rem;
    }

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

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

    .page-cockfighting__dark-section {
        padding: 40px 15px;
        margin: 40px 0;
    }

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

    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }
}