/* style/cockfighting.css */

:root {
    --primary-color: #26A9E0;
    --auxiliary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --button-login: #EA7C07;
    --background-color: #FFFFFF;
    --black: #000000;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-color); /* Default light background */
}

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

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.page-cockfighting__text-block {
    margin-bottom: 20px;
    font-size: 17px;
    line-height: 1.7;
    text-align: left;
}

.page-cockfighting__text-center {
    text-align: center;
}

.page-cockfighting__text-light {
    color: var(--text-light);
}

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

.page-cockfighting__hero-container {
    position: relative;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 800px;
    padding: 40px;
    background-color: var(--primary-color); /* Brand color background */
    color: var(--text-light); /* White text for contrast */
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    margin-top: -80px; /* Overlap with image slightly for visual effect */
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-cockfighting__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 18px 45px;
    background: var(--button-login); /* Login color for CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-cockfighting__cta-button:hover {
    background: darken(var(--button-login), 10%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary:hover {
    background: darken(var(--primary-color), 10%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--auxiliary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-secondary:hover {
    background: lighten(var(--primary-color), 40%);
    color: var(--text-light);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

/* Sections */
.page-cockfighting__about-cockfighting .page-cockfighting__container {
    text-align: left;
}

.page-cockfighting__why-choose {
    background-color: var(--auxiliary-color);
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-cockfighting__feature-item {
    padding: 30px;
    text-align: left;
}

.page-cockfighting__feature-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__feature-description {
    font-size: 16px;
    line-height: 1.7;
}

.page-cockfighting__game-types .page-cockfighting__container {
    text-align: left;
}

.page-cockfighting__image-wrapper {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

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

.page-cockfighting__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    font-size: 17px;
}

.page-cockfighting__list-item::before {
    content: '✅';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

.page-cockfighting__list--ordered {
    list-style: decimal;
    margin-left: 20px;
    text-align: left;
}

.page-cockfighting__list--ordered .page-cockfighting__list-item {
    padding-left: 0;
}

.page-cockfighting__list--ordered .page-cockfighting__list-item::before {
    content: none;
}

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__dark-bg .page-cockfighting__card .page-cockfighting__feature-title,
.page-cockfighting__dark-bg .page-cockfighting__card .page-cockfighting__security-title,
.page-cockfighting__dark-bg .page-cockfighting__card .page-cockfighting__news-title a {
    color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__card .page-cockfighting__btn-secondary {
    background: var(--text-light);
    color: var(--primary-color);
    border-color: var(--text-light);
}

.page-cockfighting__dark-bg .page-cockfighting__card .page-cockfighting__btn-secondary:hover {
    background: lighten(var(--primary-color), 20%);
    color: var(--text-light);
}

.page-cockfighting__dark-bg a {
    color: var(--text-light);
    text-decoration: underline;
}

.page-cockfighting__dark-bg a:hover {
    color: lighten(var(--text-light), 10%);
}

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

.page-cockfighting__promo-card {
    padding: 25px;
}

.page-cockfighting__promo-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-cockfighting__promo-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__promo-description {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

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

.page-cockfighting__security-item {
    padding: 25px;
}

.page-cockfighting__security-item img {
    width: 100%;
    
    object-fit: contain;
    margin-bottom: 20px;
    filter: brightness(0) invert(1) saturate(0) hue-rotate(220deg) brightness(1.5); /* Example: Tinting for dark background. Removed due to strict image color rule */
}

.page-cockfighting__security-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-light);
}

.page-cockfighting__security-description {
    font-size: 15px;
    line-height: 1.6;
}

.page-cockfighting__card {
    background-color: var(--auxiliary-color);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0; /* Added for better contrast on light background */
    color: var(--text-dark);
}

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

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

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important;
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: var(--text-dark);
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: var(--primary-color);
    transform: rotate(45deg); /* Changed to rotate for a consistent visual toggle */
}

/* Latest News Section */
.page-cockfighting__latest-news {
    background-color: var(--primary-color);
    color: var(--text-light);
}

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

.page-cockfighting__news-card {
    padding: 25px;
    text-align: left;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-cockfighting__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-cockfighting__news-title a {
    color: var(--text-light);
    text-decoration: none;
}

.page-cockfighting__news-title a:hover {
    text-decoration: underline;
}

.page-cockfighting__news-excerpt {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-cockfighting__view-all {
    margin-top: 50px;
}

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

    .page-cockfighting__intro-text {
        font-size: 18px;
    }

    .page-cockfighting__section-title {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__hero-image {
        margin-bottom: 20px;
        border-radius: 8px;
    }

    .page-cockfighting__hero-content {
        padding: 30px 20px;
        margin-top: -60px;
        border-radius: 8px;
    }

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

    .page-cockfighting__intro-text {
        font-size: 16px;
        margin-bottom: 25px;
    }

    .page-cockfighting__cta-button {
        padding: 15px 35px;
        font-size: 18px;
        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: 26px;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__feature-description,
    .page-cockfighting__promo-description,
    .page-cockfighting__security-description,
    .page-cockfighting__news-excerpt,
    .page-cockfighting__list-item {
        font-size: 15px;
        line-height: 1.6;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__promos-grid,
    .page-cockfighting__security-grid,
    .page-cockfighting__news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__security-title,
    .page-cockfighting__news-title {
        font-size: 18px;
    }

    .page-cockfighting__button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__button-group,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-cockfighting__image-wrapper {
        border-radius: 4px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

/* Ensure image color is not altered by CSS filters */
.page-cockfighting img {
    filter: none; /* Explicitly ensure no filter is applied */
}

.page-cockfighting__security-item img {
    filter: none; /* Explicitly ensure no filter is applied, overriding previous example */
}