/* style/cockfighting.css */

/* Custom color variables based on provided palette */
:root {
    --page-cockfighting-primary-color: #11A84E; /* Main color */
    --page-cockfighting-secondary-color: #22C768; /* Auxiliary color */
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --page-cockfighting-card-bg: #11271B; /* Card background */
    --page-cockfighting-background: #08160F; /* Overall background */
    --page-cockfighting-text-main: #F2FFF6; /* Main text color (light) */
    --page-cockfighting-text-secondary: #A7D9B8; /* Secondary text color */
    --page-cockfighting-border-color: #2E7A4E; /* Border color */
    --page-cockfighting-glow-color: #57E38D; /* Glow color */
    --page-cockfighting-gold-color: #F2C14E; /* Gold color */
    --page-cockfighting-divider-color: #1E3A2A; /* Divider color */
    --page-cockfighting-deep-green: #0A4B2C; /* Deep Green */
}

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

/* General text elements */
.page-cockfighting h1,
.page-cockfighting h2,
.page-cockfighting h3,
.page-cockfighting h4,
.page-cockfighting h5,
.page-cockfighting h6 {
    color: var(--page-cockfighting-text-main);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, not fixed large value */
    font-weight: 700;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    color: var(--page-cockfighting-gold-color); /* Use gold for section titles */
}

.page-cockfighting h3 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--page-cockfighting-secondary-color);
}

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

.page-cockfighting__highlight {
    color: var(--page-cockfighting-gold-color);
    font-weight: bold;
}

.page-cockfighting a {
    color: var(--page-cockfighting-secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--page-cockfighting-gold-color);
    text-decoration: underline;
}

/* Container for main content areas */
.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; /* Ensure image is above content */
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Adjust as needed */
    text-align: center;
    overflow: hidden;
    padding-bottom: 50px;
    padding-top: 10px; /* Small top padding, body handles header offset */
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 70vh; /* Limit hero image height */
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image filter */
    z-index: 10;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text readability */
    border-radius: 10px;
    margin-top: -100px; /* Pull content up over the image slightly */
}

.page-cockfighting__intro-text {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button doesn't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main);
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 0 15px var(--page-cockfighting-glow-color);
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-secondary-color);
    color: var(--page-cockfighting-background);
    box-shadow: 0 0 15px rgba(34, 199, 104, 0.5);
    transform: translateY(-2px);
}

/* General Section Styles */
.page-cockfighting__about-section,
.page-cockfighting__history-section,
.page-cockfighting__guide-section,
.page-cockfighting__betting-strategy-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__conclusion-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Slightly different dark background */
}

.page-cockfighting__center-text {
    text-align: center;
}

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

.page-cockfighting__grid-item {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__grid-item .page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block; /* Ensure image takes full width */
}

.page-cockfighting__item-title {
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__item-description {
    color: var(--page-cockfighting-text-secondary);
}

/* Steps and Strategy Lists */
.page-cockfighting__steps-list,
.page-cockfighting__strategy-list,
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    border-left: 5px solid var(--page-cockfighting-primary-color);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__list-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: var(--page-cockfighting-secondary-color);
}

/* Feature Grid for Advantages Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__feature-icon {
    max-width: 150px; /* Ensure icons are not too small or too large */
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 5px var(--page-cockfighting-glow-color)); /* Subtle glow */
}

.page-cockfighting__card-title {
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    color: var(--page-cockfighting-text-secondary);
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    color: var(--page-cockfighting-secondary-color);
    background-color: var(--page-cockfighting-deep-green); /* Darker background for summary */
    border-bottom: 1px solid var(--page-cockfighting-divider-color);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary:hover {
    background-color: var(--page-cockfighting-primary-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 10px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to form an 'x' or minus */
}

.page-cockfighting__faq-answer {
    padding: 20px;
    color: var(--page-cockfighting-text-secondary);
    border-top: 1px solid var(--page-cockfighting-divider-color);
}

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

/* Centered image helper */
.page-cockfighting__image--centered {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
    margin-bottom: 30px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -50px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .page-cockfighting h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }

    .page-cockfighting h3 {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }

    .page-cockfighting__hero-section {
        min-height: 400px;
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
        margin-top: -70px; /* Adjust for smaller screens */
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
    }

    /* Mobile button specific styles */
    .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;
        padding-right: 15px;
    }

    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__about-section,
    .page-cockfighting__history-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__betting-strategy-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

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

    .page-cockfighting__grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-cockfighting__features-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .page-cockfighting__list-item {
        padding: 15px;
    }

    .page-cockfighting__faq-item summary {
        padding: 15px;
    }

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

    /* Mobile image specific styles */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Ensure image containers also respect mobile width */
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__grid-item,
    .page-cockfighting__feature-card,
    .page-cockfighting__image--centered {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}