:root {
    --page-cockfighting-bg: #08160F;
    --page-cockfighting-card-bg: #11271B;
    --page-cockfighting-text-main: #F2FFF6;
    --page-cockfighting-text-secondary: #A7D9B8;
    --page-cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --page-cockfighting-border: #2E7A4E;
    --page-cockfighting-glow: #57E38D;
    --page-cockfighting-gold: #F2C14E;
    --page-cockfighting-gold-rgb: 242, 193, 78; /* Added for hover effects */
    --page-cockfighting-divider: #1E3A2A;
    --page-cockfighting-deep-green: #0A4B2C;
}

.page-cockfighting {
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main);
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--page-cockfighting-bg);
    position: relative;
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 675px; /* Limit height for aesthetic */
}

.page-cockfighting__hero-content {
    max-width: 800px;
    z-index: 1;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(var(--page-cockfighting-gold-rgb), 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    box-sizing: border-box;
}

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

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    border: none;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-cockfighting-glow);
}

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

.page-cockfighting__btn-secondary:hover {
    transform: translateY(-3px);
    background-color: rgba(var(--page-cockfighting-gold-rgb), 0.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 15px var(--page-cockfighting-gold);
}

/* Sections Styling */
.page-cockfighting__introduction-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__benefits-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
    background-color: var(--page-cockfighting-card-bg); /* Use card bg for light section */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--page-cockfighting-gold);
    margin-bottom: 40px;
    font-weight: 600;
    text-shadow: 0 0 8px rgba(var(--page-cockfighting-gold-rgb), 0.3);
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    max-width: 900px;
    margin: 0 auto 30px auto;
}

.page-cockfighting__image-wrapper {
    margin: 40px auto;
    max-width: 900px;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
}

/* Grid for Bet Types */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    text-align: left;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 0 10px var(--page-cockfighting-glow);
}

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
}

/* Benefits List */
.page-cockfighting__benefits-list,
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 40px auto;
    max-width: 900px;
    text-align: left;
}

.page-cockfighting__list-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.page-cockfighting__list-item:hover {
    transform: translateX(5px);
}

.page-cockfighting__list-title {
    font-size: 1.3rem;
    color: var(--page-cockfighting-gold);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-cockfighting__list-description {
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
}

/* Promotions Grid */
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__promo-card {
    text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--page-cockfighting-gold);
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(var(--page-cockfighting-gold-rgb), 0.05); 
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or similar */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.6;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting__text-link {
    color: var(--page-cockfighting-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--page-cockfighting-glow);
}

/* Divider */
.page-cockfighting__divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background-color: var(--page-cockfighting-divider);
    margin: 50px auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
    .page-cockfighting__text-block {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100%;
    }
    .page-cockfighting__grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    /* General content padding */
    .page-cockfighting__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Buttons */
    .page-cockfighting__cta-button,
    .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;
        flex-direction: column; /* Ensure vertical stacking for buttons */
    }

    /* Sections */
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__benefits-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 40px 0;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body handles --header-offset */
    }

    /* Text adjustments */
    .page-cockfighting__main-title {
        font-size: 2rem;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__text-block,
    .page-cockfighting__card-text,
    .page-cockfighting__list-description,
    .page-cockfighting__faq-answer p {
        font-size: 0.95rem;
    }
    .page-cockfighting__card-title,
    .page-cockfighting__list-title,
    .page-cockfighting__faq-question {
        font-size: 1.1rem;
    }
}