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

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

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    background-color: #017439; /* Brand color for hero */
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin-bottom: 30px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #ffffff;
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    filter: brightness(0.8); /* Darken image slightly for text readability */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 40px;
    color: #017439; /* Brand color for titles on light background */
}

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__responsibility-section {
    padding: 60px 0;
    background-color: #ffffff; /* Light background for these sections */
    color: #333333;
}

.page-cockfighting__features-section,
.page-cockfighting__types-section,
.page-cockfighting__tips-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 0;
    background-color: #0a0a0a; /* Dark background for these sections */
    color: #ffffff;
}

.page-cockfighting__features-section .page-cockfighting__section-title,
.page-cockfighting__types-section .page-cockfighting__section-title,
.page-cockfighting__tips-section .page-cockfighting__section-title,
.page-cockfighting__faq-section .page-cockfighting__section-title,
.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: #ffffff; /* White titles on dark background */
}

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

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

.page-cockfighting__dark-bg .page-cockfighting__text-link {
    color: #FFFF00;
}

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-cockfighting__feature-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; /* Yellow for highlights */
}

.page-cockfighting__card-text {
    font-size: 1em;
    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-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: #333333;
    border-left: 5px solid #017439;
}

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

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

.page-cockfighting__type-list,
.page-cockfighting__promotion-list,
.page-cockfighting__tip-list,
.page-cockfighting__responsibility-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__light-bg .page-cockfighting__list-item {
    background-color: #f0f0f0;
    color: #333333;
}

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

.page-cockfighting__light-bg .page-cockfighting__list-item:hover {
    background-color: #e0e0e0;
}

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

.page-cockfighting__light-bg .page-cockfighting__list-title {
    color: #017439;
}

.page-cockfighting__list-text {
    font-size: 1em;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    border-bottom: none;
}

.page-cockfighting__faq-title {
    margin: 0;
    color: #FFFF00;
    font-size: 1.2em;
}

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

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

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

.page-cockfighting__faq-text {
    margin: 0;
    font-size: 1em;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

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

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

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

.page-cockfighting__btn-small {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 15px;
}

.page-cockfighting__btn-small:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important;
    }
    .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,
    .page-cockfighting__btn-small {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__features-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__tips-section,
    .page-cockfighting__responsibility-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid {
        gap: 20px;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__step-item,
    .page-cockfighting__list-item,
    .page-cockfighting__faq-item {
        padding: 20px;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__step-title,
    .page-cockfighting__list-title,
    .page-cockfighting__faq-title {
        font-size: 1.2em;
    }
    .page-cockfighting__text-block,
    .page-cockfighting__card-text,
    .page-cockfighting__step-text,
    .page-cockfighting__list-text,
    .page-cockfighting__faq-text {
        font-size: 0.95em;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-content {
        margin: 20px auto;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
}

@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__faq-question {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-title {
        font-size: 1.1em;
    }
}