/* style/cockfighting.css */

/* Custom colors from requirements */
:root {
    --f8bet80-primary-color: #11A84E;
    --f8bet80-secondary-color: #22C768;
    --f8bet80-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --f8bet80-card-bg: #11271B;
    --f8bet80-background: #08160F; /* This will be the body background from shared.css */
    --f8bet80-text-main: #F2FFF6;
    --f8bet80-text-secondary: #A7D9B8;
    --f8bet80-border-color: #2E7A4E;
    --f8bet80-glow-color: #57E38D;
    --f8bet80-gold-color: #F2C14E;
    --f8bet80-divider-color: #1E3A2A;
    --f8bet80-deep-green: #0A4B2C;
}

/* Page base styles - body background is dark, so text should be light */
.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--f8bet80-text-main); /* Default text color for the page */
    background-color: var(--f8bet80-background); /* Ensure consistency if body background is overridden */
    line-height: 1.6;
}

/* Fixed header spacing - body padding-top is handled by shared.css */
/* First section should have a small top padding, not --header-offset */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh; /* Ensure hero section has a decent height */
    overflow: hidden; /* For video containment */
    padding-top: 10px; /* Small top padding for visual separation from header */
    padding-bottom: 40px;
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.page-cockfighting__hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.6); /* Darken video for text readability, not changing color */
}

.page-cockfighting__hero-image-wrapper a {
  width: 100%;
  height: 100%;
  display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    color: var(--f8bet80-text-main);
}

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

.page-cockfighting__hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--f8bet80-text-main);
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.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;
    cursor: pointer;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%;
    text-align: center;
}

.page-cockfighting__btn-primary {
    background: var(--f8bet80-btn-gradient);
    color: var(--f8bet80-text-main);
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

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

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

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

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

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

.page-cockfighting__image-content {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 40px auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Specific section styles */
.page-cockfighting__dark-section {
    background-color: var(--f8bet80-background);
    color: var(--f8bet80-text-main);
    padding: 60px 0;
}

.page-cockfighting__light-bg {
    background-color: var(--f8bet80-card-bg); /* Use card background as light for contrast */
    color: var(--f8bet80-text-main);
    padding: 60px 0;
}

/* Why Choose Section */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card {
    background-color: rgba(17, 41, 27, 0.8); /* Slightly lighter background for cards */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--f8bet80-border-color);
}

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

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

/* Bet Types Section */
.page-cockfighting__bet-types-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__bet-type-item {
    background-color: var(--f8bet80-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--f8bet80-border-color);
}

.page-cockfighting__bet-type-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--f8bet80-gold-color);
}

.page-cockfighting__bet-type-description {
    font-size: 1rem;
    color: var(--f8bet80-text-secondary);
}

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

.page-cockfighting__card {
    background-color: var(--f8bet80-card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--f8bet80-border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

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

.page-cockfighting__view-all-promotions {
    display: block;
    margin-top: 40px;
    text-align: center;
}

/* How To Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

.page-cockfighting__step-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--f8bet80-gold-color);
}

.page-cockfighting__step-description {
    font-size: 1rem;
    color: var(--f8bet80-text-secondary);
    margin-bottom: 20px;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    background-color: var(--f8bet80-deep-green); /* Darker green for question background */
    color: var(--f8bet80-text-main);
    user-select: none;
    list-style: none; /* For details/summary */
}

/* Hide default marker for details/summary */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-item summary::marker {
    display: none;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--f8bet80-gold-color);
}

.page-cockfighting__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: var(--f8bet80-text-secondary);
    border-top: 1px solid var(--f8bet80-divider-color);
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding: 60px 0;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Highlight for keywords */
.highlight {
    color: var(--f8bet80-gold-color);
    font-weight: 600;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4vw, 3.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small padding */
        padding-bottom: 20px;
        min-height: 60vh;
    }
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem);
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Buttons responsive */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important; /* Ensure full width */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
        font-size: 1rem;
    }
    .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;
        flex-wrap: wrap !important;
        gap: 10px;
    }

    .page-cockfighting__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__feature-description,
    .page-cockfighting__bet-type-description,
    .page-cockfighting__card-description,
    .page-cockfighting__step-description,
    .page-cockfighting__faq-answer p {
        font-size: 1rem;
    }

    /* Images and Videos responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        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__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0 !important; /* Hero video should be full width */
        padding-right: 0 !important;
        overflow: hidden !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1rem;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 15px;
    }
}