/* style/cockfighting.css */
.page-cockfighting {
    color: #ffffff; /* Default text color for dark body background */
    background-color: #0a0a0a; /* Ensure consistency with shared body background */
    font-family: 'Arial', sans-serif;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
    position: relative;
}

/* Color Contrast Adjustments */
.page-cockfighting__dark-bg {
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__section-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #26A9E0;
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
    color: #26A9E0;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    line-height: 1.7;
    margin-bottom: 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-cockfighting__hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-cockfighting__hero-video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.page-cockfighting__video-overlay-button {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-cockfighting__video-overlay-button:hover {
    background: rgba(0, 0, 0, 0.7);
}

.page-cockfighting__video-overlay-text {
    font-size: 2.5em;
    font-weight: bold;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    border: 3px solid #FFFFFF;
    padding: 20px 40px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.page-cockfighting__video-overlay-button:hover .page-cockfighting__video-overlay-text {
    background-color: #26A9E0;
    border-color: #26A9E0;
    transform: scale(1.05);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    padding: 20px;
    max-width: 900px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.6;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

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

.page-cockfighting__btn-primary {
    background-color: #26A9E0;
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1e87c2;
    border-color: #1e87c2;
    transform: translateY(-3px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Introduction Section */
.page-cockfighting__introduction .page-cockfighting__section-title {
    color: #26A9E0;
}

.page-cockfighting__introduction .page-cockfighting__paragraph {
    color: #333333;
}

.page-cockfighting__image-text-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-top: 40px;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__text-content {
    text-align: left;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    text-align: left;
    margin-top: 20px;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333333;
    position: relative;
    padding-left: 25px;
}

.page-cockfighting__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: #26A9E0;
}

/* How-To-Play Section */
.page-cockfighting__how-to-play .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__how-to-play .page-cockfighting__paragraph {
    color: #f0f0f0;
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.page-cockfighting__step-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Betting Types Section */
.page-cockfighting__betting-types .page-cockfighting__section-title {
    color: #26A9E0;
}

.page-cockfighting__betting-types .page-cockfighting__paragraph {
    color: #333333;
}

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

.page-cockfighting__betting-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-cockfighting__betting-title {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-cockfighting__betting-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* Promotions Section */
.page-cockfighting__promotions .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__promotions .page-cockfighting__paragraph {
    color: #f0f0f0;
}

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__promo-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-cockfighting__promo-description {
    font-size: 1em;
    line-height: 1.6;
    color: #f0f0f0;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Safety Section */
.page-cockfighting__safety .page-cockfighting__section-title {
    color: #26A9E0;
}

.page-cockfighting__safety .page-cockfighting__paragraph {
    color: #333333;
}

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

.page-cockfighting__feature-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-cockfighting__feature-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__feature-title {
    font-size: 1.6em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-cockfighting__feature-description {
    font-size: 1em;
    line-height: 1.6;
    color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__faq-section .page-cockfighting__paragraph {
    color: #f0f0f0;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFFFF;
    cursor: pointer;
    background-color: rgba(38, 169, 224, 0.8); /* #26A9E0 with transparency */
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #26A9E0;
}

.page-cockfighting__faq-title {
    margin: 0;
    color: inherit;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    background-color: rgba(0, 0, 0, 0.3); /* Darker background for answer */
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 20px !important;
}

.page-cockfighting__faq-answer .page-cockfighting__paragraph {
    margin-bottom: 0;
    color: #f0f0f0;
}

/* Final CTA Section */
.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__cta-final .page-cockfighting__paragraph {
    color: #f0f0f0;
}

.page-cockfighting__final-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.6em;
    }
    .page-cockfighting__image-text-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__text-content {
        text-align: center;
    }
    .page-cockfighting__list {
        text-align: left;
        padding-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 80vh;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.5em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__paragraph {
        font-size: 1em;
        padding: 0 15px;
    }
    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__final-cta-buttons {
        flex-direction: column;
        align-items: center;
        padding: 0 15px;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__image-wrapper,
    .page-cockfighting__step-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__feature-item,
    .page-cockfighting__betting-card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    /* Video responsive */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        position: relative;
        padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
        height: 0;
    }
    .page-cockfighting__hero-video {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        transform: none;
    }
    .page-cockfighting__video-overlay-button {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

    /* FAQ Responsive */
    .page-cockfighting__faq-list {
        padding: 0 15px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.2em;
    }
    .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__video-overlay-text {
        font-size: 1.5em;
        padding: 15px 25px;
    }
}