/* style/cockfighting.css */

/* General page styling */
.page-cockfighting {
    background-color: var(--bg-color, #08160F); /* Fallback to custom background color if --bg-color is not set */
    color: var(--text-main, #F2FFF6); /* Main text color */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-color, #08160F);
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px; /* Space between image and content */
    overflow: hidden;
    box-sizing: border-box;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size */
    color: var(--gold, #F2C14E); /* Gold for main title */
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow */
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    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;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    margin: 10px;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main, #F2FFF6);
    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: transparent;
    color: var(--glow, #57E38D);
    border: 2px solid var(--border, #2E7A4E);
}

.page-cockfighting__btn-secondary:hover {
    background: rgba(46, 122, 78, 0.2);
    color: var(--text-main, #F2FFF6);
    border-color: var(--glow, #57E38D);
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

.page-cockfighting__btn-full-width {
    width: 100%;
    max-width: 400px; /* Limit max width for full-width buttons */
    margin-left: auto;
    margin-right: auto;
    display: block; /* Ensure it takes full width */
}

/* Section General */
.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--bg-color, #08160F);
    color: var(--text-main, #F2FFF6);
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--gold, #F2C14E);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__image-content {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

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

.page-cockfighting__card,
.page-cockfighting__promo-card {
    background-color: var(--card-bg, #11271B); /* Card background color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid var(--border, #2E7A4E);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__card-text,
.page-cockfighting__promo-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__promo-image {
    width: 100%;
    max-width: 400px; /* Specific max width for promo images */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Step List */
.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid var(--border, #2E7A4E);
    text-align: center;
}

.page-cockfighting__step-item:last-child {
    margin-bottom: 0;
}

.page-cockfighting__step-title {
    font-size: 1.6rem;
    color: var(--gold, #F2C14E);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__step-description {
    font-size: 1.1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-bg, #11271B);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border, #2E7A4E);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-title {
    font-size: 1.5rem;
    color: var(--text-main, #F2FFF6);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__feature-description {
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--deep-green, #0A4B2C); /* Different background for contrast */
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #11271B);
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--border, #2E7A4E);
    overflow: hidden;
}

.page-cockfighting__faq-item[open] {
    border-color: var(--glow, #57E38D);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-main, #F2FFF6);
    cursor: pointer;
    background-color: var(--card-bg, #11271B);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker */
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(46, 122, 78, 0.3);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow, #57E38D);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary, #A7D9B8);
    text-align: left;
}

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

.page-cockfighting__cta-final .page-cockfighting__btn-primary,
.page-cockfighting__cta-final .page-cockfighting__btn-secondary {
    margin: 15px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset, small padding here */
    }
    .page-cockfighting__hero-content {
        padding: 0;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        margin: 10px 0 !important; /* Adjust margin for stacked buttons */
    }

    .page-cockfighting__cta-final .page-cockfighting__btn-primary,
    .page-cockfighting__cta-final .page-cockfighting__btn-secondary {
        max-width: 100% !important; /* Ensure buttons take full width */
        width: 100% !important;
        margin: 10px 0 !important;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    .page-cockfighting__card-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__step-item,
    .page-cockfighting__feature-item {
        padding: 25px;
    }

    .page-cockfighting__step-title,
    .page-cockfighting__feature-title {
        font-size: 1.4rem;
    }

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

    /* Mobile image and video responsive fix */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent content overflow */
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
    }
}