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

.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: 100px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
    background-color: #017439;
    overflow: hidden;
}

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Custom font color for register/login as specified */
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

.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%;
    z-index: 1;
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #FFFF00; /* Custom font color for register/login as specified */
    text-align: center;
    margin-bottom: 50px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    color: #FFFF00; /* Custom font color for register/login as specified */
    margin-top: 30px;
    margin-bottom: 15px;
}

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

/* Light background sections */
.page-cockfighting__light-bg {
    background-color: #FFFFFF; /* White background as per custom colors */
    color: #333333; /* Dark text for light background */
    padding: 60px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title,
.page-cockfighting__light-bg .page-cockfighting__sub-title {
    color: #017439; /* Brand primary color for titles on light background */
}

.page-cockfighting__light-bg .page-cockfighting__text-block,
.page-cockfighting__light-bg .page-cockfighting__card-description,
.page-cockfighting__light-bg .page-cockfighting__list-description {
    color: #333333;
}

/* Dark background sections */
.page-cockfighting__dark-bg {
    background-color: #017439; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for dark background */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__dark-bg .page-cockfighting__card-title {
    color: #FFFF00; /* Custom font color for register/login as specified */
}

.page-cockfighting__dark-bg .page-cockfighting__card-description {
    color: #f0f0f0;
}

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

.page-cockfighting__feature-card, .page-cockfighting__step-card, .page-cockfighting__promo-card {
    text-align: center;
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover, .page-cockfighting__step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__list-item {
    background-color: #017439;
    color: #ffffff;
    padding: 20px 25px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__list-title {
    font-size: 1.4em;
    color: #FFFF00; /* Custom font color for register/login as specified */
    margin-bottom: 10px;
}

.page-cockfighting__list-description {
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__contact-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.page-cockfighting__contact-item {
    background-color: #017439;
    color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

.page-cockfighting__faq-item {
    background-color: #017439;
    color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.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;
    color: #FFFF00; /* Custom font color for register/login as specified */
    position: relative;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-cockfighting__cta-section {
    padding: 80px 20px;
    text-align: center;
    background-color: #017439;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: #FFFF00; /* Custom font color for register/login as specified */
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 40px;
    color: #ffffff;
}

/* Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #017439; /* Primary brand color */
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    border: 2px solid #017439;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-cockfighting__btn-small {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9em;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-cockfighting__btn-register, .page-cockfighting__btn-deposit, .page-cockfighting__btn-play, .page-cockfighting__btn-withdraw {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

.page-cockfighting__btn-register:hover, .page-cockfighting__btn-deposit:hover, .page-cockfighting__btn-play:hover, .page-cockfighting__btn-withdraw:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

/* Image specific styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-image {
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding: 80px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__feature-grid, .page-cockfighting__steps-grid, .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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__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;
        flex-wrap: wrap !important;
        gap: 10px;
    }
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column;
    }

    /* Ensure all images are responsive and do not overflow */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Content area images should not be smaller than 200px, but still responsive */
    .page-cockfighting__content-image {
        min-width: 200px;
        min-height: 200px;
    }
    .page-cockfighting__feature-icon {
        min-width: 80px;
        min-height: 80px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-section {
        padding: 60px 10px;
        padding-top: var(--header-offset, 120px) !important;
    }
}