/* style/cockfighting.css */

:root {
    --primary-color: #113B7A;
    --secondary-color: #1D5FD1;
    --text-main: #F3F8FF;
    --text-secondary: #AFC4E8;
    --card-bg: #10233F;
    --border-color: #244D84;
    --glow-color: #4FA8FF;
    --gold-color: #F2C14E;
    --divider-color: #1B3357;
    --deep-navy: #08162B;
    --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
    --padding-section: 60px 0;
    --padding-container: 0 20px;
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--deep-navy); /* Body background is dark, so text is light */
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--padding-container);
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gold-color);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-secondary);
}

.page-cockfighting__text-block strong {
    color: var(--text-main);
}

.page-cockfighting__text-block a {
    color: var(--glow-color);
    text-decoration: none;
}

.page-cockfighting__text-block a:hover {
    text-decoration: underline;
}

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

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
    z-index: 1;
}

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

.page-cockfighting__hero-content-wrapper {
    position: relative;
    z-index: 2;
    padding: 20px;
    max-width: 900px;
    margin-top: -100px; /* Overlap slightly for visual effect */
    background: rgba(16, 35, 63, 0.85); /* Card BG with transparency */
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
}

.page-cockfighting__main-title {
    font-size: 3.2em;
    color: var(--gold-color);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    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: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
    background: rgba(79, 168, 255, 0.1);
    transform: translateY(-3px);
}

/* Sections */
.page-cockfighting__introduction-section,
.page-cockfighting__rules-section,
.page-cockfighting__strategy-section,
.page-cockfighting__registration-section,
.page-cockfighting__advantages-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: var(--padding-section);
}

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

/* Image styles */
.page-cockfighting__image-fullwidth {
    width: 100%;
    height: auto;
    display: block;
    margin: 40px 0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

.page-cockfighting__image-centered {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px;
    min-height: 200px;
}

/* Lists */
.page-cockfighting__rules-list,
.page-cockfighting__strategy-list,
.page-cockfighting__registration-steps {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.page-cockfighting__list-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    font-size: 1.1em;
    line-height: 1.7;
    color: var(--text-secondary);
    position: relative;
    padding-left: 45px;
}

.page-cockfighting__list-item::before {
    content: '✓';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-color);
    font-weight: bold;
    font-size: 1.3em;
}

.page-cockfighting__sub-list {
    list-style: disc;
    padding-left: 20px;
    margin-top: 10px;
    color: var(--text-secondary);
}

.page-cockfighting__sub-list-item {
    margin-bottom: 5px;
}

/* Betting Types Grid */
.page-cockfighting__betting-grid,
.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
    min-height: 200px;
    color: var(--text-secondary);
}

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

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.7;
}

/* Registration Steps */
.page-cockfighting__step-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    padding-left: 80px;
    color: var(--text-secondary);
}

.page-cockfighting__step-item::before {
    content: attr(data-step-number);
    position: absolute;
    left: 25px;
    top: 25px;
    background: var(--glow-color);
    color: var(--deep-navy);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.page-cockfighting__registration-steps .page-cockfighting__step-item:nth-child(1)::before { content: '1'; }
.page-cockfighting__registration-steps .page-cockfighting__step-item:nth-child(2)::before { content: '2'; }
.page-cockfighting__registration-steps .page-cockfighting__step-item:nth-child(3)::before { content: '3'; }
.page-cockfighting__registration-steps .page-cockfighting__step-item:nth-child(4)::before { content: '4'; }
.page-cockfighting__registration-steps .page-cockfighting__step-item:nth-child(5)::before { content: '5'; }

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-top: 0;
    margin-bottom: 5px;
}

.page-cockfighting__step-description {
    font-size: 1em;
    line-height: 1.6;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
    position: relative;
}

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

.page-cockfighting__faq-question::marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--gold-color);
    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;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* CTA Section */
.page-cockfighting__cta-section {
    text-align: center;
    padding-bottom: 60px;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    margin-bottom: 20px;
}

.page-cockfighting__cta-section .page-cockfighting__text-block {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.2em;
}

.page-cockfighting__cta-section .page-cockfighting__cta-buttons {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-content-wrapper {
        margin-top: -80px;
    }
}

@media (max-width: 768px) {
    /* HERO Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Fixed top padding for mobile */
        padding-bottom: 20px;
    }
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-cockfighting__hero-content-wrapper {
        margin-top: -60px; /* Adjust overlap */
        padding: 15px;
        max-width: calc(100% - 30px);
        margin-left: 15px;
        margin-right: 15px;
        box-sizing: border-box !important;
    }
    .page-cockfighting__main-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box !important;
    }

    /* Sections */
    .page-cockfighting__introduction-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__registration-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 0;
    }
    .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 1em;
        line-height: 1.6;
    }

    /* General Images & Containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting__image-fullwidth,
    .page-cockfighting__image-centered {
        margin: 20px 0 !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Buttons & Button Containers */
    .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;
        font-size: 1em;
    }
    .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 !important; /* Stack buttons vertically */
    }

    /* Betting Types Grid */
    .page-cockfighting__betting-grid,
    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__card {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.4em;
    }

    /* Lists */
    .page-cockfighting__list-item,
    .page-cockfighting__step-item {
        padding-left: 20px;
        padding-top: 15px;
        padding-bottom: 15px;
        font-size: 1em;
    }
    .page-cockfighting__list-item::before {
        left: 10px;
        font-size: 1.1em;
    }
    .page-cockfighting__step-item::before {
        position: static;
        margin-bottom: 10px;
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .page-cockfighting__step-title {
        font-size: 1.2em;
    }

    /* FAQ Section */
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    /* Other Content Modules */
    .page-cockfighting__cta-section .page-cockfighting__text-block {
        font-size: 1em;
    }
}