/* style/cockfighting.css */

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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    background-color: var(--k8-bg); /* Use custom background color */
    color: var(--k8-text-main); /* Main text color for dark background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--k8-bg);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Adjust as needed */
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.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;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    margin-top: -150px; /* Pull content up over the image slightly */
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent background for text */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--k8-gold);
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.6);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: var(--k8-text-main);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: var(--k8-btn-gradient);
    color: var(--k8-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--k8-gold);
    border: 2px solid var(--k8-gold);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--k8-gold);
    color: var(--k8-bg);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-text {
    background: none;
    border: none;
    color: var(--k8-gold);
    padding: 8px 0;
    text-decoration: underline;
    font-weight: 500;
}

.page-cockfighting__btn-text:hover {
    color: var(--k8-color-secondary);
}

/* Sections */
.page-cockfighting__section {
    padding: 60px 0;
}

.page-cockfighting__dark-bg {
    background-color: var(--k8-bg);
    color: var(--k8-text-main);
}

.page-cockfighting__light-bg {
    background-color: #11271B; /* Card BG color for light sections */
    color: var(--k8-text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--k8-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--k8-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

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

.page-cockfighting__text-block a {
    color: var(--k8-gold);
    text-decoration: none;
    font-weight: 600;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

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

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

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--k8-divider);
}

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

.page-cockfighting__card p {
    font-size: 0.95rem;
    color: var(--k8-text-secondary);
    line-height: 1.6;
    flex-grow: 1;
}

/* Lists */
.page-cockfighting__list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--k8-text-secondary);
}

.page-cockfighting__list li::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--k8-glow);
    font-size: 1.2em;
    top: 0;
}

.page-cockfighting__list--tips li::before {
    content: '💡';
}

/* How-to Steps */
.page-cockfighting__step-card .page-cockfighting__card-title {
    font-size: 1.3rem;
    color: var(--k8-gold);
}

.page-cockfighting__step-card p {
    margin-bottom: 15px;
}

/* Promotions */
.page-cockfighting__promo-card .page-cockfighting__card-image {
    height: 180px;
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 40px;
}

/* FAQ */
.page-cockfighting__faq-list {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-cockfighting__faq-item {
    background-color: var(--k8-card-bg);
    border: 1px solid var(--k8-border);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    color: var(--k8-text-main);
    overflow: hidden;
    padding: 0;
}

.page-cockfighting__faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--k8-gold);
    background-color: var(--k8-deep-green);
    border-bottom: 1px solid var(--k8-divider);
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 20px;
    color: var(--k8-glow);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 20px 30px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--k8-text-secondary);
    border-top: 1px solid var(--k8-divider);
}

.page-cockfighting__faq-item:not([open]) .page-cockfighting__faq-answer {
    display: none;
}

/* Final CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding: 80px 20px;
    background-color: var(--k8-deep-green);
    border-top: 3px solid var(--k8-gold);
}

.page-cockfighting__cta-content {
    max-width: 800px;
}

.page-cockfighting__cta-content .page-cockfighting__section-title {
    color: var(--k8-text-main);
    margin-bottom: 25px;
}

.page-cockfighting__cta-content .page-cockfighting__text-block {
    color: var(--k8-text-secondary);
    margin-bottom: 40px;
}

.page-cockfighting__btn-large {
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 10px;
}

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

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

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

    .page-cockfighting__main-title {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-text {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 25px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }

    .page-cockfighting__list li {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }

    .page-cockfighting__faq-item summary {
        padding: 15px 20px;
        font-size: 1rem;
    }

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.9rem;
    }

    .page-cockfighting__cta-section {
        padding: 60px 15px;
    }

    .page-cockfighting__cta-content .page-cockfighting__section-title {
        font-size: 1.8rem;
    }

    .page-cockfighting__btn-large {
        font-size: 1.1rem;
        padding: 12px 30px;
    }

    /* Mobile image and video responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting video,
    .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; /* Ensure no overflow */
    }

    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    .page-cockfighting__cta-buttons {
        flex-wrap: wrap !important;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }
    .page-cockfighting__main-title {
        font-size: 1.6rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.6rem;
    }
    .page-cockfighting__faq-item summary {
        font-size: 0.95rem;
    }
    .page-cockfighting__btn-large {
        font-size: 1rem;
        padding: 10px 25px;
    }
}