/* style/cockfighting.css */

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

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main-color, #F2FFF6); /* Default text color for the page */
    background-color: var(--background-color-custom, #08160F); /* Custom background color */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 20px;
    padding-top: 10px; /* As per fixed header spacing rule */
    box-sizing: border-box;
    background-color: var(--background-color-custom, #08160F);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Max width for the hero image */
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 10px;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    color: var(--text-main-color, #F2FFF6);
    padding: 0 15px;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* H1 font size with clamp */
    font-weight: bold;
    color: var(--gold-color, #F2C14E); /* Using Gold color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

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

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    color: var(--gold-color, #F2C14E);
}

.page-cockfighting__sub-title {
    font-size: 1.4em;
    font-weight: bold;
    color: var(--text-main-color, #F2FFF6);
    margin-top: 30px;
    margin-bottom: 15px;
}

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

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

/* Backgrounds */
.page-cockfighting__dark-bg {
    background-color: var(--background-color-custom, #08160F); /* Main dark background */
    color: var(--text-main-color, #F2FFF6);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding-bottom: 60px;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: 30px;
    object-fit: cover;
}

.page-cockfighting__image-content--left {
    float: left;
    max-width: 50%;
    margin-right: 30px;
    margin-bottom: 20px;
}

.page-cockfighting__image-content--right {
    float: right;
    max-width: 50%;
    margin-left: 30px;
    margin-bottom: 20px;
}

.page-cockfighting__text-block-group::after {
    content: "";
    display: table;
    clear: both;
}

/* Types Section */
.page-cockfighting__types-section {
    background-color: var(--card-bg-color, #11271B); /* Card background for this section */
    padding: 60px 0;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg-color, #11271B);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__card-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--gold-color, #F2C14E);
}

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

/* Rules Section */
.page-cockfighting__rules-section {
    padding: 60px 0;
    overflow: hidden; /* Clear floats */
}

.page-cockfighting__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 20px;
    color: var(--text-secondary-color, #A7D9B8);
}

.page-cockfighting__list--ordered {
    list-style: decimal;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
}

.page-cockfighting__list-item strong {
    color: var(--text-main-color, #F2FFF6);
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    background-color: var(--background-color-custom, #08160F);
    padding: 60px 0;
}

.page-cockfighting__grid--advantages {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__card--advantage {
    text-align: left;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--card-bg-color, #11271B);
    padding: 60px 0;
    overflow: hidden; /* Clear floats */
}

.page-cockfighting__faq-list {
    margin-top: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--deep-green-color, #0A4B2C);
    border: 1px solid var(--border-color, #2E7A4E);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-main-color, #F2FFF6);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--text-main-color, #F2FFF6);
    background-color: var(--deep-green-color, #0A4B2C);
}

.page-cockfighting__faq-question:hover {
    background-color: var(--divider-color, #1E3A2A);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: var(--gold-color, #F2C14E);
}

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

.page-cockfighting__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.95em;
    color: var(--text-secondary-color, #A7D9B8);
}

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

/* Final CTA Section */
.page-cockfighting__cta-final {
    padding: 60px 0;
    text-align: center;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Custom button gradient */
    color: #ffffff; /* White text for primary button */
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--gold-color, #F2C14E); /* Gold text for secondary button */
    border: 2px solid var(--gold-color, #F2C14E);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--gold-color, #F2C14E);
    color: #08160F; /* Dark text on hover for secondary button */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

/* Divider */
.page-cockfighting__divider {
    width: 80%;
    max-width: 600px;
    height: 2px;
    background-color: var(--divider-color, #1E3A2A);
    margin: 40px auto;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 15px;
        padding-top: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-cockfighting__image-content--left,
    .page-cockfighting__image-content--right {
        max-width: 100%;
        float: none;
        margin-left: 0;
        margin-right: 0;
    }
    .page-cockfighting__text-block-group {
        clear: both;
    }
}

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

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Containers for images */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    /* Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

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

    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4em, 5vw, 2em);
    }
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__container {
        padding: 30px 15px;
    }
    .page-cockfighting__faq-question {
        padding: 12px 15px;
        font-size: 1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px 12px;
    }
    .page-cockfighting__image-content--left,
    .page-cockfighting__image-content--right {
        margin-bottom: 15px;
    }
}

/* Ensure content area images are not too small */
.page-cockfighting__content-area img,
.page-cockfighting__introduction-section img,
.page-cockfighting__rules-section img,
.page-cockfighting__promotions-section img,
.page-cockfighting__faq-section img {
    min-width: 200px;
    min-height: 200px;
}