/* style/cockfighting.css */
:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color-page: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #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-color); /* Light text for dark background */
    background-color: var(--background-color-page);
    line-height: 1.6;
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 20px 60px 20px; /* Small top padding, more bottom padding */
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 675px; /* Fixed height for image container */
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 8px;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__subtitle {
    font-size: 1.2em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
}

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

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent text wrapping on desktop */
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff; /* White text for contrast */
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--glow-color);
    color: var(--background-color-page);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__section {
    padding: 60px 20px;
}

.page-cockfighting__section--intro {
    background-color: var(--background-color-page);
}

.page-cockfighting__section--guide,
.page-cockfighting__section--promotions,
.page-cockfighting__section--faq {
    background-color: var(--deep-green-color);
}

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

.page-cockfighting__container--centered {
    text-align: center;
}

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

.page-cockfighting__paragraph {
    font-size: 1.1em;
    color: var(--text-main-color);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-grid,
.page-cockfighting__bet-types-grid,
.page-cockfighting__promo-cards,
.page-cockfighting__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-item,
.page-cockfighting__bet-type-card,
.page-cockfighting__promo-card,
.page-cockfighting__security-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--border-color);
}

.page-cockfighting__feature-image,
.page-cockfighting__bet-type-image,
.page-cockfighting__promo-image,
.page-cockfighting__security-icon {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    display: block;
    min-height: 200px; /* Minimum size for all images */
}

.page-cockfighting__security-icon {
    max-width: 200px;
    max-height: 200px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title,
.page-cockfighting__card-title,
.page-cockfighting__security-title {
    font-size: 1.5em;
    color: var(--glow-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__feature-description,
.page-cockfighting__card-description,
.page-cockfighting__security-description {
    font-size: 1em;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-cockfighting__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 800px;
    margin: 40px auto 0 auto;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-cockfighting__step-title {
    font-size: 1.8em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__step-description {
    font-size: 1.1em;
    color: var(--text-main-color);
    margin-bottom: 20px;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--divider-color);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--border-color);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--gold-color);
}

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

.page-cockfighting__faq-answer {
    padding: 20px 30px;
    font-size: 1em;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

/* Details element specific styling */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-item summary {
    list-style: none;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    color: var(--gold-color);
}

/* Floating buttons */
.page-cockfighting__floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.page-cockfighting__floating-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 0.9em;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.page-cockfighting__floating-btn--register {
    background: var(--button-gradient);
}

.page-cockfighting__floating-btn--login {
    background-color: var(--accent-color);
}

.page-cockfighting__floating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        height: 500px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 3em);
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__feature-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promo-cards,
    .page-cockfighting__security-features {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-image-wrapper {
        height: 400px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 6vw, 2.5em);
    }
    .page-cockfighting__subtitle {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }
    .page-cockfighting__btn-primary--large {
        padding: 15px 30px;
    }
    .page-cockfighting__section {
        padding: 40px 15px;
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__paragraph {
        font-size: 0.95em;
    }
    .page-cockfighting__feature-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promo-cards,
    .page-cockfighting__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__card-title,
    .page-cockfighting__security-title {
        font-size: 1.3em;
    }
    .page-cockfighting__feature-description,
    .page-cockfighting__card-description,
    .page-cockfighting__security-description {
        font-size: 0.9em;
    }
    .page-cockfighting__step-title {
        font-size: 1.5em;
    }
    .page-cockfighting__step-description {
        font-size: 0.95em;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer {
        padding: 15px 20px;
        font-size: 0.9em;
    }

    /* Image, Video, Container responsive rules for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .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;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    .page-cockfighting__floating-buttons {
        flex-direction: row;
        width: 100%;
        left: 0;
        right: 0;
        bottom: 0;
        padding: 10px;
        background-color: var(--deep-green-color);
        justify-content: space-around;
        border-top: 1px solid var(--border-color);
    }
    .page-cockfighting__floating-btn {
        width: 50px;
        height: 50px;
        font-size: 0.8em;
    }
}