:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

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

/* Ensure content doesn't get hidden by fixed header, small top padding */
.page-cockfighting__hero-section,
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__advantages-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding-top: 60px;
    padding-bottom: 60px;
    position: relative;
}

.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 80px;
    text-align: center;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 40px;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: var(--gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__text-block {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__highlight {
    color: var(--gold-color);
    font-weight: bold;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-large {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 2px solid var(--glow-color);
    box-shadow: 0 0 15px var(--glow-color);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--glow-color);
}

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

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    background: var(--gold-color);
    color: var(--deep-green-color);
}

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

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

.page-cockfighting__step-card,
.page-cockfighting__feature-card,
.page-cockfighting__promo-card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__step-card:hover,
.page-cockfighting__feature-card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--button-gradient);
    border-radius: 50%;
    font-size: 1.8rem;
    color: var(--text-main);
    font-weight: bold;
    margin: 0 auto 20px;
    box-shadow: 0 0 10px rgba(42, 209, 111, 0.7);
}

.page-cockfighting__step-title,
.page-cockfighting__feature-title,
.page-cockfighting__promo-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__step-description,
.page-cockfighting__feature-description,
.page-cockfighting__promo-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.page-cockfighting__content-image,
.page-cockfighting__feature-icon,
.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    font-size: 1.05rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.page-cockfighting__list-item::before {
    content: '✅';
    margin-right: 10px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gold-color);
    font-weight: 600;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
    list-style: none; /* For details/summary */
}

.page-cockfighting__faq-question::-webkit-details-marker {
    display: none; /* For details/summary */
}

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Adjust as needed for details/summary */
}

.page-cockfighting__floating-cta {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.page-cockfighting__floating-btn {
    display: block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__floating-btn--register {
    background: var(--button-gradient);
    color: var(--text-main);
    border: 1px solid var(--glow-color);
}

.page-cockfighting__floating-btn--register:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__floating-btn--login {
    background: var(--gold-color);
    color: var(--deep-green-color);
    border: 1px solid var(--gold-color);
}

.page-cockfighting__floating-btn--login:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-large {
        width: 80%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 60px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-large {
        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__steps-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__promo-cards-grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 15px;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__feature-card img,
    .page-cockfighting__promo-card img {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 0;
    }
    .page-cockfighting__step-card,
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__faq-item {
        padding: 20px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.05rem;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.95rem;
        padding: 15px;
    }
    .page-cockfighting__floating-cta {
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }
    .page-cockfighting__floating-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    .page-cockfighting__container {
        padding: 0 15px;
    }
}