/* style/cockfighting.css */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --dark-text-color: #333333;
    --light-text-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --background-light: #f8f9fa; /* A very light grey for contrast with white */
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--dark-text-color);
    line-height: 1.6;
    background-color: var(--secondary-color); /* Default background is white */
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px);
    box-sizing: border-box;
}

.page-cockfighting__hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    color: var(--light-text-color);
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--light-text-color);
}

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

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

.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, color 0.3s ease, border-color 0.3s ease;
    font-size: 1.1em;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
    background-color: darken(var(--primary-color), 10%);
    border-color: darken(var(--primary-color), 10%);
}

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

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

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

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

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px auto;
    color: var(--dark-text-color);
}

.page-cockfighting__section-description--white {
    color: var(--light-text-color);
}

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

.page-cockfighting__introduction-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__introduction-text {
    flex: 1;
}

.page-cockfighting__introduction-text p {
    margin-bottom: 20px;
    font-size: 1.1em;
    color: var(--dark-text-color);
}

.page-cockfighting__introduction-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-cockfighting__introduction-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__advantages-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--light-text-color);
}

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

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
}

.page-cockfighting__advantage-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__advantage-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-cockfighting__advantage-description {
    font-size: 1em;
    color: var(--light-text-color);
}

.page-cockfighting__guide-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
}

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

.page-cockfighting__step-card {
    background-color: var(--secondary-color);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    color: var(--dark-text-color);
}

.page-cockfighting__step-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

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

.page-cockfighting__step-description {
    font-size: 1em;
    margin-bottom: 15px;
    color: var(--dark-text-color);
}

.page-cockfighting__btn-small {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.page-cockfighting__btn-small:hover {
    background-color: darken(var(--primary-color), 10%);
}

.page-cockfighting__guide-image-wrapper {
    flex: 1;
    text-align: center;
}

.page-cockfighting__guide-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__bet-types-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--light-text-color);
}

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

.page-cockfighting__bet-type-card {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    color: var(--light-text-color);
}

.page-cockfighting__bet-type-title {
    font-size: 1.6em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.page-cockfighting__bet-type-description {
    font-size: 1em;
    color: var(--light-text-color);
}

.page-cockfighting__promotions-section {
    background-color: var(--background-light);
    padding: 80px 20px;
    color: var(--dark-text-color);
}

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

.page-cockfighting__promotion-card {
    background-color: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--dark-text-color);
}

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

.page-cockfighting__promotion-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.page-cockfighting__promotion-description {
    font-size: 1em;
    margin-bottom: 20px;
    flex-grow: 1;
    color: var(--dark-text-color);
}

.page-cockfighting__btn-link {
    display: inline-block;
    padding: 10px 20px;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-cockfighting__btn-link:hover {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

.page-cockfighting__cta-full-width {
    text-align: center;
}

.page-cockfighting__btn-primary--large {
    padding: 18px 40px;
    font-size: 1.2em;
}

.page-cockfighting__safety-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    color: var(--light-text-color);
}

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

.page-cockfighting__safety-item {
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-text-color);
}

.page-cockfighting__safety-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-cockfighting__safety-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--light-text-color);
}

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

.page-cockfighting__faq-section {
    background-color: var(--secondary-color);
    padding: 80px 20px;
    color: var(--dark-text-color);
}

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

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

.page-cockfighting__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: var(--secondary-color);
    color: var(--primary-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: var(--background-light);
}

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

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

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    font-size: 1em;
    color: var(--dark-text-color);
    background-color: var(--background-light);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

.page-cockfighting__cta-section {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: var(--light-text-color);
}

.page-cockfighting__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.page-cockfighting__cta-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: var(--light-text-color);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary--large,
.page-cockfighting__btn-secondary--large {
    min-width: 220px;
    text-align: center;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__introduction-grid,
    .page-cockfighting__guide-wrapper {
        flex-direction: column;
    }
    .page-cockfighting__introduction-image-wrapper,
    .page-cockfighting__guide-image-wrapper {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        height: 500px;
        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-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__content-area {
        padding: 40px 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-description {
        margin-bottom: 40px;
    }
    .page-cockfighting__advantages-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__safety-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__introduction-image,
    .page-cockfighting__guide-image,
    .page-cockfighting__promotion-image,
    .page-cockfighting__advantage-icon,
    .page-cockfighting__safety-icon {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__introduction-image-wrapper,
    .page-cockfighting__guide-image-wrapper,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section,
    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary--large,
    .page-cockfighting__btn-secondary--large {
        width: 100% !important;
        min-width: unset;
    }

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

/* Color contrast specific styles */
.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--light-text-color);
}

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

.page-cockfighting p,
.page-cockfighting li {
    color: var(--dark-text-color);
}

/* Ensure specific elements have correct colors for contrast */
.page-cockfighting__advantage-card p,
.page-cockfighting__bet-type-card p,
.page-cockfighting__safety-item p {
    color: var(--light-text-color);
}

.page-cockfighting__introduction-text p,
.page-cockfighting__step-description p,
.page-cockfighting__promotion-description p,
.page-cockfighting__faq-answer p {
    color: var(--dark-text-color);
}

/* Login button specific color */
.page-cockfighting__btn-login {
    background-color: var(--login-button-color);
    color: var(--light-text-color);
    border: 2px solid var(--login-button-color);
}

.page-cockfighting__btn-login:hover {
    background-color: darken(var(--login-button-color), 10%);
    border-color: darken(var(--login-button-color), 10%);
}