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

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--background-main); /* Overall page background */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background: var(--background-main);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for large screens */
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    text-align: center;
    padding: 30px 20px;
    max-width: 900px;
    margin-top: -150px; /* Overlap slightly for visual effect, but text is below image */
    background: linear-gradient(0deg, var(--background-main) 0%, rgba(8, 22, 15, 0.8) 50%, rgba(8, 22, 15, 0.5) 100%);
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.page-cockfighting__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    color: var(--text-main);
    margin-bottom: 15px;
    line-height: 1.2;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

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

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

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid transparent;
    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(--gold-color);
    border: 2px solid var(--gold-color);
}

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

.page-cockfighting__btn-large {
    min-width: 200px;
}

/* General Section Styles */
.page-cockfighting__intro-section,
.page-cockfighting__how-to-play,
.page-cockfighting__bet-types,
.page-cockfighting__rules-tips,
.page-cockfighting__why-cmd368,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final {
    padding: 60px 0;
    text-align: center;
}

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

.page-cockfighting__light-bg {
    background-color: #11271B; /* Using Card BG for lighter sections */
    color: var(--text-main);
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: var(--gold-color);
    margin-bottom: 30px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__text-block {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Row */
.page-cockfighting__image-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.page-cockfighting__image-item {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 150px;
}

/* Numbered List */
.page-cockfighting__numbered-list {
    list-style: none;
    counter-reset: my-counter;
    text-align: left;
    max-width: 800px;
    margin: 40px auto;
    padding: 0;
}

.page-cockfighting__numbered-list li {
    counter-increment: my-counter;
    margin-bottom: 25px;
    padding-left: 60px;
    position: relative;
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.page-cockfighting__numbered-list li::before {
    content: counter(my-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__numbered-list li strong {
    color: var(--gold-color);
}

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

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

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

.page-cockfighting__card-text {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Rules and Tips Section */
.page-cockfighting__rules-tips {
    text-align: left;
}

.page-cockfighting__rules-tips .page-cockfighting__container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
}

.page-cockfighting__rules-block,
.page-cockfighting__tips-block {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
}

.page-cockfighting__rules-block .page-cockfighting__section-title,
.page-cockfighting__tips-block .page-cockfighting__section-title {
    text-align: left;
    margin-bottom: 25px;
}

.page-cockfighting__bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

.page-cockfighting__bullet-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.page-cockfighting__bullet-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
    top: -2px;
}

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

/* Why cmd368 Section */
.page-cockfighting__why-cmd368 {
    padding-bottom: 80px;
}

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

.page-cockfighting__feature-item {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-cockfighting__feature-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum image size */
    min-height: 200px;
}

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

.page-cockfighting__feature-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-cockfighting__mt-40 {
    margin-top: 40px;
}

/* Promotions Section */
.page-cockfighting__promotions-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-cockfighting__promotions-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1.05rem;
    color: var(--text-main);
    line-height: 1.6;
}

.page-cockfighting__promotions-list li::before {
    content: '⭐';
    position: absolute;
    left: 0;
    font-size: 1.2em;
    top: 0;
}

.page-cockfighting__promotions-list li strong {
    color: var(--gold-color);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-cockfighting__faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    list-style: none; /* Hide default marker for details */
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-left: 15px;
    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: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 500px; /* Sufficiently large to show content */
    padding-top: 10px;
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    padding: 80px 0;
    background: linear-gradient(90deg, var(--deep-green) 0%, var(--primary-color) 100%);
    border-top: 5px solid var(--gold-color);
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
    color: #f2fff6;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -100px;
        padding: 20px;
    }
}

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

    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-content {
        margin-top: -80px;
        padding: 15px;
    }

    .page-cockfighting__hero-title {
        font-size: 2rem;
    }

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

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__hero-cta-buttons, 
    .page-cockfighting__cta-final .page-cockfighting__hero-cta-buttons {
        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; /* Ensure buttons wrap if they are in a row */
        gap: 10px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__card-text,
    .page-cockfighting__bullet-list li,
    .page-cockfighting__feature-description,
    .page-cockfighting__promotions-list li,
    .page-cockfighting__faq-item summary,
    .page-cockfighting__faq-answer p {
        font-size: 0.95rem;
    }

    .page-cockfighting__image-item {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 150px !important;
    }
    
    .page-cockfighting__image-row, .page-cockfighting__card-grid, .page-cockfighting__feature-grid, .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__rules-tips .page-cockfighting__container {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__rules-block,
    .page-cockfighting__tips-block {
        max-width: 100%;
    }
    
    /* Ensure all images maintain min size on mobile unless it causes overflow */
    .page-cockfighting img {
        min-width: 200px !important;
        min-
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        margin-top: -60px;
    }

    .page-cockfighting__hero-title {
        font-size: 1.8rem;
    }

    .page-cockfighting__section-title {
        font-size: 1.6rem;
    }

    .page-cockfighting__numbered-list li {
        padding-left: 50px;
        font-size: 1rem;
    }

    .page-cockfighting__numbered-list li::before {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
}