/* style/cockfighting.css */
:root {
    --primary-color: #017439;
    --secondary-color: #FFFFFF;
    --text-color-dark-bg: #FFFFFF;
    --text-color-light-bg: #333333;
    --card-bg-dark-theme: rgba(255, 255, 255, 0.08);
    --border-color: rgba(255, 255, 255, 0.15);
    --button-register-bg: #C30808;
    --button-login-bg: #C30808;
    --button-font-color: #FFFF00;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-color-light-bg); /* Default for light sections */
    background-color: #121212; /* Body background from shared.css */
}

.page-cockfighting__dark-bg {
    background-color: #121212;
    color: var(--text-color-dark-bg);
}

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

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

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

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

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--button-font-color); /* Use yellow for highlight */
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    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;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background-color: var(--button-register-bg);
    color: var(--button-font-color);
    border: 2px solid var(--button-font-color);
}

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--button-register-bg), 10%);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: var(--button-login-bg);
    color: var(--button-font-color);
    border: 2px solid var(--button-font-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: darken(var(--button-login-bg), 10%);
    transform: translateY(-2px);
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: bold;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: var(--button-font-color);
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__intro-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__video-section,
.page-cockfighting__conclusion-section {
    padding: 60px 20px;
}

.page-cockfighting__how-to-join-section,
.page-cockfighting__strategy-section,
.page-cockfighting__features-section,
.page-cockfighting__faq-section {
    padding: 60px 20px;
}

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

.page-cockfighting__step-card,
.page-cockfighting__bet-type-card,
.page-cockfighting__promo-card {
    background-color: var(--card-bg-dark-theme);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__light-bg .page-cockfighting__step-card,
.page-cockfighting__light-bg .page-cockfighting__bet-type-card,
.page-cockfighting__light-bg .page-cockfighting__promo-card {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border: 1px solid #e0e0e0;
}

.page-cockfighting__step-card:hover,
.page-cockfighting__bet-type-card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__step-image,
.page-cockfighting__bet-type-image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfighting__step-title,
.page-cockfighting__bet-type-title,
.page-cockfighting__promo-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__dark-bg .page-cockfighting__step-title,
.page-cockfighting__dark-bg .page-cockfighting__bet-type-title,
.page-cockfighting__dark-bg .page-cockfighting__promo-title {
    color: var(--button-font-color);
}

.page-cockfighting__step-text,
.page-cockfighting__bet-type-text,
.page-cockfighting__promo-text {
    font-size: 1em;
    color: var(--text-color-dark-bg);
    flex-grow: 1;
}

.page-cockfighting__light-bg .page-cockfighting__step-text,
.page-cockfighting__light-bg .page-cockfighting__bet-type-text,
.page-cockfighting__light-bg .page-cockfighting__promo-text {
    color: var(--text-color-light-bg);
}

.page-cockfighting__cta-center {
    text-align: center;
    margin-top: 50px;
}

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

.page-cockfighting__strategy-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 60px;
    background-color: var(--card-bg-dark-theme);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-cockfighting__strategy-item:nth-child(even) {
    flex-direction: row-reverse;
}

.page-cockfighting__strategy-item:nth-child(odd) .page-cockfighting__strategy-image {
    margin-right: 30px;
}

.page-cockfighting__strategy-item:nth-child(even) .page-cockfighting__strategy-image {
    margin-left: 30px;
}

.page-cockfighting__strategy-item > * {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__strategy-heading {
    font-size: 1.8em;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-cockfighting__dark-bg .page-cockfighting__strategy-heading {
    color: var(--button-font-color);
}

.page-cockfighting__strategy-text {
    font-size: 1.05em;
    color: var(--text-color-dark-bg);
}

.page-cockfighting__strategy-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

.page-cockfighting__feature-item {
    background-color: var(--card-bg-dark-theme);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

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

.page-cockfighting__dark-bg .page-cockfighting__feature-title {
    color: var(--button-font-color);
}

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

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    margin: 40px auto;
}

.page-cockfighting__video-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

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

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

.page-cockfighting__light-bg .page-cockfighting__faq-item {
    background-color: var(--secondary-color);
    color: var(--text-color-light-bg);
    border: 1px solid #e0e0e0;
}

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

.page-cockfighting__light-bg .page-cockfighting__faq-question {
    background-color: #f9f9f9;
}

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

.page-cockfighting__light-bg .page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-cockfighting__light-bg .page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-qtext {
    color: var(--primary-color);
}

.page-cockfighting__dark-bg .page-cockfighting__faq-qtext {
    color: var(--button-font-color);
}

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

.page-cockfighting__dark-bg .page-cockfighting__faq-toggle {
    color: var(--button-font-color);
}

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

.page-cockfighting__light-bg .page-cockfighting__faq-answer {
    color: var(--text-color-light-bg);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__strategy-item {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__strategy-item:nth-child(even) {
        flex-direction: column;
    }
    .page-cockfighting__strategy-item:nth-child(odd) .page-cockfighting__strategy-image,
    .page-cockfighting__strategy-item:nth-child(even) .page-cockfighting__strategy-image {
        margin: 20px auto;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 500px;
        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__cta-buttons {
        flex-direction: column;
        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;
    }

    .page-cockfighting__container {
        padding: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }

    .page-cockfighting__steps-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__step-card,
    .page-cockfighting__bet-type-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__feature-item {
        padding: 20px;
    }

    .page-cockfighting__step-title,
    .page-cockfighting__bet-type-title,
    .page-cockfighting__promo-title,
    .page-cockfighting__feature-title {
        font-size: 1.2em;
    }

    .page-cockfighting__strategy-item {
        padding: 20px;
    }
    .page-cockfighting__strategy-heading {
        font-size: 1.5em;
    }
    .page-cockfighting__strategy-text {
        font-size: 0.95em;
    }
    .page-cockfighting__strategy-image {
        margin: 15px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-wrapper {
        margin: 20px auto;
        padding-left: 0; /* Remove padding if added by container */
        padding-right: 0;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.05em;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px 15px;
    }
}

/* Ensure images maintain original color and no filter */
.page-cockfighting img {
    filter: none; /* No CSS filter to change image colors */
}

.page-cockfighting__hero-image {
    filter: brightness(0.5); /* This is allowed to darken the background for text contrast, not change image color */
}