/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

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

.page-cockfighting__heading {
    font-size: 2.5em;
    color: #ffffff; /* Ensure contrast on dark sections */
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
}

.page-cockfighting__paragraph {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: #f0f0f0; /* Light text for dark backgrounds */
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Buttons */
.page-cockfighting__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn--primary {
    background-color: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
}

.page-cockfighting__btn--primary:hover {
    background-color: #a00606;
}

.page-cockfighting__btn--secondary {
    background-color: transparent;
    color: #017439;
    border: 2px solid #017439;
}

.page-cockfighting__btn--secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

.page-cockfighting__btn--link {
    background: none;
    border: 1px solid #017439;
    color: #017439;
    padding: 8px 15px;
    font-size: 0.9em;
    margin-top: 10px;
}

.page-cockfighting__btn--link:hover {
    background-color: #017439;
    color: #ffffff;
}

/* Section specific styles */
.page-cockfighting__dark-section {
    background-color: #017439; /* Main brand color as background */
    color: #ffffff;
    padding: 60px 0;
}

.page-cockfighting__dark-section .page-cockfighting__heading,
.page-cockfighting__dark-section .page-cockfighting__paragraph {
    color: #ffffff;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    min-height: 70vh;
    background-color: #0a0a0a; /* Ensure dark background for hero */
    color: #ffffff;
    overflow: hidden;
}

.page-cockfighting__hero-content {
    z-index: 2;
    padding: 20px;
    max-width: 900px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

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

.page-cockfighting__hero-media {
    position: relative;
    width: 100%;
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Max width for video */
    margin-top: 40px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-cockfighting__video-link {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10; /* Make the link clickable over the video */
}

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__heading {
    color: #ffffff;
}

.page-cockfighting__introduction-section .page-cockfighting__paragraph {
    color: #f0f0f0;
}

/* Betting Types Section */
.page-cockfighting__betting-types-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__betting-types-section .page-cockfighting__heading {
    color: #017439;
}

.page-cockfighting__betting-types-section .page-cockfighting__paragraph {
    color: #333333;
}

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

.page-cockfighting__card {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: left;
    color: #333333;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #555555;
}

/* Why B52 Section */
.page-cockfighting__why-b52-section .page-cockfighting__heading {
    color: #ffffff;
}

.page-cockfighting__why-b52-section .page-cockfighting__paragraph {
    color: #f0f0f0;
}

.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__benefit-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    color: #FFFF00; /* Highlight color for titles */
    margin-bottom: 10px;
}

.page-cockfighting__benefit-text {
    font-size: 0.95em;
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__guide-section .page-cockfighting__heading {
    color: #017439;
}

.page-cockfighting__guide-section .page-cockfighting__paragraph {
    color: #333333;
}

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

.page-cockfighting__step-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    color: #333333;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: #017439;
    background-color: #e6ffe6;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    border: 2px solid #017439;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: #017439;
    margin-bottom: 10px;
}

.page-cockfighting__step-text {
    font-size: 0.95em;
    color: #555555;
    flex-grow: 1; /* Ensure consistent height */
}

/* Strategy Section */
.page-cockfighting__strategy-section .page-cockfighting__heading {
    color: #ffffff;
}

.page-cockfighting__strategy-section .page-cockfighting__paragraph {
    color: #f0f0f0;
}

.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Cards here inherit from .page-cockfighting__card but with dark section styling */
.page-cockfighting__strategy-grid .page-cockfighting__card {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-cockfighting__strategy-grid .page-cockfighting__card-title {
    color: #FFFF00;
}

.page-cockfighting__strategy-grid .page-cockfighting__card-text {
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__faq-section .page-cockfighting__heading {
    color: #017439;
}

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

.page-cockfighting__faq-item {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: #f9f9f9;
    color: #017439;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #e9e9e9;
}

.page-cockfighting__faq-title {
    font-size: 1.1em;
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    width: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* + to X, or just change text to - */
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #ffffff;
    color: #333333;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 25px;
}

.page-cockfighting__faq-answer .page-cockfighting__paragraph {
    font-size: 0.95em;
    color: #555555;
    margin-bottom: 0;
}

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

.page-cockfighting__conclusion-section .page-cockfighting__heading {
    color: #ffffff;
}

.page-cockfighting__conclusion-section .page-cockfighting__paragraph {
    color: #f0f0f0;
    max-width: 800px;
    margin: 0 auto 30px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }

    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }

    .page-cockfighting__heading {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: auto;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__heading {
        font-size: 1.8em;
    }

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

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Button responsiveness */
    .page-cockfighting__btn,
    .page-cockfighting__btn--primary,
    .page-cockfighting__btn--secondary,
    .page-cockfighting__btn--link {
        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__hero-buttons {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__type-cards,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr; /* Single column layout for cards on mobile */
        gap: 20px;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 20px !important;
    }
}