/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--page-cockfighting-text-main); /* Default text color for dark background */
    background-color: var(--page-cockfighting-background); /* Overall page background */
    line-height: 1.6;
}

/* General typography */
.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    color: var(--page-cockfighting-text-main);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--page-cockfighting-text-main);
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.3;
}

.page-cockfighting__sub-title,
.page-cockfighting__card-title,
.page-cockfighting__step-title,
.page-cockfighting__feature-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--page-cockfighting-text-main);
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.4;
}

.page-cockfighting__paragraph,
.page-cockfighting__intro-text,
.page-cockfighting__list-item,
.page-cockfighting__card-text,
.page-cockfighting__step-text,
.page-cockfighting__promo-item,
.page-cockfighting__feature-description,
.page-cockfighting__faq-qtext,
.page-cockfighting__faq-answer p {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting__intro-text {
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Containers & Sections */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    overflow: hidden; /* Ensure content doesn't spill */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 675px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    text-align: center;
    z-index: 1;
}

.page-cockfighting__about-section,
.page-cockfighting__guide-section,
.page-cockfighting__safety-section,
.page-cockfighting__cta-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-background);
}

.page-cockfighting__types-section,
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-card-bg); /* Darker background */
}

.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--page-cockfighting-deep-green); /* Medium background */
    color: var(--page-cockfighting-text-main); /* Ensure light text on medium bg */
}

/* Buttons */
.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__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure button adapts to container */
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(34, 199, 104, 0.6);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-primary);
    color: var(--page-cockfighting-text-main);
    transform: translateY(-3px);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1rem;
    background: var(--page-cockfighting-deep-green);
    color: var(--page-cockfighting-text-main);
    border: 1px solid var(--page-cockfighting-border);
    margin-top: 20px;
}

.page-cockfighting__btn-small:hover {
    background: var(--page-cockfighting-primary);
    border-color: var(--page-cockfighting-primary);
}

/* Image & Text Block */
.page-cockfighting__image-text-block {
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 60px 0;
    flex-wrap: wrap;
}

.page-cockfighting__image-text-block:nth-child(even) {
    flex-direction: row-reverse;
}

.page-cockfighting__content-image {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-content {
    flex: 1;
    min-width: 300px;
}

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

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-cockfighting__card-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent card appearance */
    object-fit: cover;
    display: block;
}

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

.page-cockfighting__card-text {
    padding: 0 20px 20px;
    flex-grow: 1;
}

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

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.page-cockfighting__step-title {
    color: var(--page-cockfighting-gold);
}

/* Promotions List */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px auto;
    max-width: 800px;
    text-align: left;
}

.page-cockfighting__promo-item {
    background-color: var(--page-cockfighting-deep-green);
    border-left: 5px solid var(--page-cockfighting-primary);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-main);
}

/* Safety Features */
.page-cockfighting__safety-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__feature-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title {
    color: var(--page-cockfighting-gold);
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-deep-green);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-deep-green);
    border-bottom: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--page-cockfighting-primary);
    border-color: var(--page-cockfighting-primary);
}

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

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item summary {
    list-style: none;
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
}

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

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
    }
    .page-cockfighting__about-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 60px 0;
    }
    .page-cockfighting__image-text-block {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__image-text-block:nth-child(even) {
        flex-direction: column;
    }
    .page-cockfighting__content-image {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__sub-title,
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__feature-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__paragraph,
    .page-cockfighting__intro-text,
    .page-cockfighting__list-item,
    .page-cockfighting__card-text,
    .page-cockfighting__step-text,
    .page-cockfighting__promo-item,
    .page-cockfighting__feature-description,
    .page-cockfighting__faq-qtext,
    .page-cockfighting__faq-answer p {
        font-size: 1rem;
    }

    /* Mobile image responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Mobile button responsive */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .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-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
    }

    /* General container padding for mobile */
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* small top padding */
    }

    .page-cockfighting__card-image {
        height: 200px; /* Adjust card image height for mobile */
    }

    .page-cockfighting__feature-icon {
        width: 80px;
        height: 80px;
    }

    /* Ensure content area images are not too small (min 200px) */
    .page-cockfighting__content-image,
    .page-cockfighting__card-image,
    .page-cockfighting__feature-icon {
        min-width: 200px;
        min-height: 200px;
    }
}