/* style/cockfighting.css */
.page-cockfighting {
    color: #ffffff; /* Default text color for dark body background */
    background-color: var(--dark-bg-1); /* Inherited from shared.css */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

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

.page-cockfighting__dark-bg {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__section-title.page-cockfighting__section-title--light {
    color: #333333;
}

.page-cockfighting__section-text {
    font-size: 1.1em;
    text-align: justify;
    margin-bottom: 20px;
}

.page-cockfighting__highlight {
    font-weight: bold;
    color: #FFFF00; /* Highlight color for keywords */
}

.page-cockfighting__text-link {
    color: #FFFF00;
    text-decoration: underline;
}

.page-cockfighting__text-link:hover {
    color: #FFD700;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    overflow: hidden;
    min-height: 700px;
}

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

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken video for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    color: #ffffff;
}

.page-cockfighting__hero-title {
    font-size: 3.8em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    line-height: 1.5;
}

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

.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: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register/Login button color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
}

/* Image Styling */
.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__image-center {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: cover;
    min-width: 200px;
    min-height: 200px;
}

/* Advantages Section */
.page-cockfighting__advantages .page-cockfighting__section-title {
    color: #ffffff;
}

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

.page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFFF00;
    font-weight: bold;
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.6;
}

/* Bet Types Section */
.page-cockfighting__bet-types {
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__bet-types .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__bet-types .page-cockfighting__section-text {
    color: #333333;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
}

.page-cockfighting__list-item {
    background-color: #f5f5f5;
    padding: 20px 30px;
    border-left: 5px solid #017439;
    margin-bottom: 15px;
    border-radius: 5px;
    color: #333333;
}

.page-cockfighting__list-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-cockfighting__list-description {
    font-size: 1em;
    line-height: 1.6;
}

/* Guide Section */
.page-cockfighting__guide .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__guide .page-cockfighting__section-text {
    color: #ffffff;
}

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

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

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

.page-cockfighting__step-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Tips Section */
.page-cockfighting__tips {
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__tips .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__tips .page-cockfighting__section-text {
    color: #333333;
}

.page-cockfighting__list--icon .page-cockfighting__list-item {
    display: flex;
    align-items: flex-start;
    border-left: none;
    background-color: transparent;
    padding: 15px 0;
    color: #333333;
}

.page-cockfighting__list--icon .page-cockfighting__list-item::before {
    content: '✓';
    font-size: 1.5em;
    color: #017439;
    margin-right: 15px;
    font-weight: bold;
    line-height: 1;
}

.page-cockfighting__list--icon .page-cockfighting__list-title {
    color: #017439;
    margin-top: 0;
    margin-bottom: 5px;
}

.page-cockfighting__list--icon .page-cockfighting__list-description {
    color: #333333;
}

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

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #FFFF00;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    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;
    font-size: 1em;
    line-height: 1.6;
    color: #ffffff;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Ensure enough height for content */
    padding: 20px;
}

.page-cockfighting__answer-text {
    margin-top: 0;
    margin-bottom: 15px;
}

/* Conclusion Section */
.page-cockfighting__conclusion {
    background-color: #ffffff;
    color: #333333;
    text-align: center;
}

.page-cockfighting__conclusion .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__conclusion .page-cockfighting__section-text {
    color: #333333;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }

    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

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

    .page-cockfighting__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        min-height: 500px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

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

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

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

    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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

    .page-cockfighting__card,
    .page-cockfighting__step-card {
        padding: 20px;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__step-title {
        font-size: 1.3em;
    }

    .page-cockfighting__image-full-width,
    .page-cockfighting__image-center {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        margin: 20px auto;
        box-sizing: border-box !important;
    }

    /* Video specific responsive rules */
    .page-cockfighting__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px;
    }

    .page-cockfighting__list--icon .page-cockfighting__list-item {
        padding: 10px 0;
    }

    .page-cockfighting__list--icon .page-cockfighting__list-item::before {
        margin-right: 10px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }

    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }

    .page-cockfighting__section-title {
        font-size: 1.5em;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__step-title {
        font-size: 1.2em;
    }
}