/* style/cockfighting.css */
/* Custom Colors */
:root {
    --cockfighting-bg: #08160F;
    --cockfighting-card-bg: #11271B;
    --cockfighting-text-main: #F2FFF6;
    --cockfighting-text-secondary: #A7D9B8;
    --cockfighting-btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --cockfighting-border: #2E7A4E;
    --cockfighting-glow: #57E38D;
    --cockfighting-gold: #F2C14E;
    --cockfighting-divider: #1E3A2A;
    --cockfighting-deep-green: #0A4B2C;
}

/* Base styles for the page content, assuming a dark body background from shared.css */
.page-cockfighting {
    background-color: var(--cockfighting-bg); /* Use the specified background color */
    color: var(--cockfighting-text-main); /* Main text color for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-cockfighting a {
    color: var(--cockfighting-glow); /* Links stand out with glow color */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--cockfighting-gold);
}

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

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: var(--cockfighting-text-main);
    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(--cockfighting-glow);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    color: var(--cockfighting-text-secondary);
    text-align: justify;
}

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Ensure padding/border are included in width */
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--cockfighting-glow); /* Glow text for secondary button */
    border-color: var(--cockfighting-glow);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--cockfighting-glow);
    color: var(--cockfighting-bg); /* Dark text on hover */
}

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

.page-cockfighting__center-cta {
    text-align: center;
    margin-top: 40px;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    box-sizing: border-box;
    background-color: var(--cockfighting-bg); /* Ensure hero has a background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Max width for hero image */
    margin-bottom: 40px; /* Space between image and content */
}

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

.page-cockfighting__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.2em); /* Using clamp for H1 font size */
    font-weight: 700;
    color: var(--cockfighting-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.2em;
    color: var(--cockfighting-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: var(--cockfighting-card-bg); /* Darker background for contrast */
}

/* Game Types Section */
.page-cockfighting__game-types-section {
    padding: 80px 0;
    background-color: var(--cockfighting-bg);
}

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

.page-cockfighting__game-card {
    background-color: var(--cockfighting-card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Ensure cards have equal height */
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
    display: block; /* Ensure image is block for proper sizing */
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--cockfighting-text-main);
    margin-bottom: 15px;
    padding: 0 20px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    color: var(--cockfighting-text-secondary);
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
    padding: 0 20px;
    text-align: justify;
}

.page-cockfighting__card-button {
    margin-top: auto; /* Push button to the bottom */
    margin-left: auto;
    margin-right: auto;
    width: fit-content; /* Adjust button width to content */
    min-width: 180px;
}

/* How to Bet Section */
.page-cockfighting__how-to-bet-section {
    padding: 80px 0;
    background-color: var(--cockfighting-card-bg); /* Darker background */
}

.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: var(--cockfighting-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--cockfighting-divider);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: var(--cockfighting-btn-gradient);
    border-radius: 50%;
    font-size: 2em;
    font-weight: bold;
    color: #ffffff;
    margin: 0 auto 20px;
    box-shadow: 0 4px 10px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    color: var(--cockfighting-text-main);
    margin-bottom: 10px;
}

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

/* Tips & Strategies Section */
.page-cockfighting__tips-strategies-section {
    padding: 80px 0;
    background-color: var(--cockfighting-bg);
}

.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__tips-list li {
    background-color: var(--cockfighting-card-bg);
    border-radius: 8px;
    padding: 15px 25px;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: var(--cockfighting-text-secondary);
    border-left: 5px solid var(--cockfighting-glow);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tips-list li strong {
    color: var(--cockfighting-text-main);
}

.page-cockfighting__image-promo {
    text-align: center;
    margin-top: 50px;
}

.page-cockfighting__image {
    width: 100%;
    max-width: 800px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure image is block for proper sizing */
    margin: 0 auto;
}

.page-cockfighting__image-caption {
    font-size: 0.9em;
    color: var(--cockfighting-text-secondary);
    margin-top: 15px;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: var(--cockfighting-card-bg);
}

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

.page-cockfighting__promo-card {
    background-color: var(--cockfighting-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Why Choose Section */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
    background-color: var(--cockfighting-bg);
}

.page-cockfighting__features-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-cockfighting__features-list li {
    background-color: var(--cockfighting-card-bg);
    border-radius: 8px;
    padding: 20px 25px;
    font-size: 1.1em;
    color: var(--cockfighting-text-secondary);
    border-left: 5px solid var(--cockfighting-deep-green);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 45px; /* Space for custom bullet */
}

.page-cockfighting__features-list li::before {
    content: '✅'; /* Custom bullet point */
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting__features-list li strong {
    color: var(--cockfighting-text-main);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: var(--cockfighting-card-bg);
}

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

.page-cockfighting__faq-item {
    background-color: var(--cockfighting-bg);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--cockfighting-divider);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    color: var(--cockfighting-text-main);
    cursor: pointer;
    background-color: var(--cockfighting-deep-green);
    border-bottom: 1px solid var(--cockfighting-divider);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}
/* Hide default details marker */
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-cockfighting__faq-item summary::marker {
    display: none;
}


.page-cockfighting__faq-question:hover {
    background-color: var(--cockfighting-deep-green);
    filter: brightness(1.2);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--cockfighting-glow);
    margin-left: 15px;
    line-height: 1;
}

.page-cockfighting__faq-answer {
    padding: 0 25px;
    font-size: 1em;
    color: var(--cockfighting-text-secondary);
    background-color: var(--cockfighting-bg);
    border-top: 1px solid var(--cockfighting-divider);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
/* For details element, answer is shown by default when open */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Sufficient height for content */
    padding-top: 15px;
    padding-bottom: 15px;
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Final CTA Section */
.page-cockfighting__final-cta-section {
    padding: 80px 0;
    text-align: center;
    background-color: var(--cockfighting-bg);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }
    .page-cockfighting__hero-description {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding for section */
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        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__game-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-cards-grid,
    .page-cockfighting__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 1em;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

    /* Mobile image, video, container responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting video,
    .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__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; /* Prevent content overflow */
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 10px 20px;
    }
}