/* style/cockfighting.css */

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

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-color); /* From custom colors */
    padding-bottom: 60px; /* Space above footer */
}

/* Section general styling */
.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
}

.page-cockfighting__section--dark-bg {
    background-color: var(--deep-green);
    color: var(--text-main);
}

.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 on top, content below */
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    background-color: var(--background-color);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Ensure it doesn't get too wide */
    margin-bottom: 30px; /* Space between image and text */
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 20px;
    color: var(--text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--gold-color); /* Using gold for main title */
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding is included in width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Ensure long words break */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* Light text on dark button */
    border: none;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--gold-color); /* Gold text on transparent button */
    border: 2px solid var(--gold-color);
}

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

/* General Content Styles */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--gold-color);
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__text-block {
    font-size: 1em;
    margin-bottom: 20px;
    color: var(--text-secondary);
    text-align: justify;
}

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

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
}

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

.page-cockfighting__card {
    background-color: var(--card-bg); /* Custom card background */
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    color: var(--text-main); /* Light text on dark card */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--glow-color);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--gold-color);
}

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

/* Benefit List */
.page-cockfighting__benefit-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.page-cockfighting__benefit-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.page-cockfighting__benefit-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-cockfighting__benefit-text {
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* Guide List */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__guide-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.page-cockfighting__guide-step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-cockfighting__guide-text {
    font-size: 0.95em;
    color: var(--text-secondary);
}

/* Tips List */
.page-cockfighting__tip-list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-cockfighting__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    color: var(--text-main);
}

.page-cockfighting__tip-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--gold-color);
}

.page-cockfighting__tip-text {
    font-size: 0.95em;
    color: var(--text-secondary);
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: var(--deep-green); /* Slightly different background for question */
    border-bottom: 1px solid var(--divider-color);
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--primary-color);
    color: var(--text-main);
    border-bottom: 1px solid var(--primary-color);
}

.page-cockfighting__faq-question:hover {
    background-color: var(--primary-color);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--text-main); /* Ensure text color */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--text-main);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 0.95em;
    color: var(--text-secondary);
    text-align: justify;
}

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

/* Conclusion CTA */
.page-cockfighting__cta-buttons--center {
    margin-top: 40px;
}

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }
    .page-cockfighting__card-grid,
    .page-cockfighting__benefit-list,
    .page-cockfighting__tip-list {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

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

    .page-cockfighting__section {
        padding: 40px 0;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

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

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 5vw, 2.2em);
        margin-bottom: 30px;
    }

    .page-cockfighting__container,
    .page-cockfighting__card-grid,
    .page-cockfighting__benefit-list,
    .page-cockfighting__tip-list,
    .page-cockfighting__faq-list,
    .page-cockfighting__guide-list,
    .page-cockfighting__cta-buttons {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size on mobile too */
        min-height: 200px !important; /* Ensure min size on mobile too */
    }

    .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__card,
    .page-cockfighting__benefit-item,
    .page-cockfighting__guide-item,
    .page-cockfighting__tip-item,
    .page-cockfighting__faq-item {
        padding: 20px;
        margin-bottom: 15px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__benefit-title,
    .page-cockfighting__guide-step-title,
    .page-cockfighting__tip-title {
        font-size: 1.2em;
    }

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

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