/* style/cockfighting.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --card-bg-dark-bg: rgba(255, 255, 255, 0.1);
    --card-bg-light-bg: #FFFFFF;
    --border-color: #e0e0e0;
}

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

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding for content */
    text-align: center;
    overflow: hidden;
}

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

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em);
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
    margin-bottom: 20px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__hero-description {
    font-size: clamp(1em, 1.5vw, 1.2em);
    margin-bottom: 30px;
    color: var(--secondary-color);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    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;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border: 2px solid var(--primary-color);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

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

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3vw, 2.8em);
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
}

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

/* Section backgrounds and text colors */
.page-cockfighting__dark-bg {
    background-color: #1a1a1a;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__light-bg {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
}

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

.page-cockfighting__advantages .page-cockfighting__section-title {
    color: var(--secondary-color);
}

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

.page-cockfighting__card {
    background-color: var(--card-bg-dark-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--text-color-dark-bg);
}

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

.page-cockfighting__bet-types .page-cockfighting__text-block,
.page-cockfighting__bet-types .page-cockfighting__list-item {
    color: var(--text-color-light-bg);
}

.page-cockfighting__list,
.page-cockfighting__numbered-list {
    list-style-type: none;
    padding-left: 0;
    margin-top: 20px;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg-light-bg);
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    color: var(--text-color-light-bg);
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
    counter-increment: list-counter;
    position: relative;
    padding-left: 40px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
    content: counter(list-counter);
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9em;
}

.page-cockfighting__strategies .page-cockfighting__text-block,
.page-cockfighting__strategies .page-cockfighting__list-item {
    color: var(--text-color-dark-bg);
}

.page-cockfighting__registration-guide .page-cockfighting__text-block {
    color: var(--text-color-light-bg);
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg-light-bg);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color-light-bg);
}

.page-cockfighting__step-number {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-cockfighting__step-description {
    font-size: 0.95em;
    color: var(--text-color-light-bg);
}

.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: var(--secondary-color);
}

.page-cockfighting__faq-list {
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg-dark-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1em;
    color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px 25px;
    font-size: 1em;
    color: var(--text-color-dark-bg);
    text-align: left;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-cockfighting__hero-description {
        font-size: clamp(0.9em, 1.8vw, 1.1em);
    }
    .page-cockfighting__card-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    .page-cockfighting__guide-steps {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

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

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

    .page-cockfighting__hero-content {
        padding: 15px;
        max-width: 95%;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: clamp(0.9em, 2.5vw, 1em);
        margin-bottom: 25px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 30px;
    }

    .page-cockfighting__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card-image,
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px;
        min-height: 200px;
    }

    .page-cockfighting__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

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

    /* Ensure all image/video containers are responsive */
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__card,
    .page-cockfighting__step-item,
    .page-cockfighting__faq-item,
    .page-cockfighting__container,
    .page-cockfighting__hero-image,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }
}