/* style/cockfighting.css */

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

.page-cockfighting {
    background-color: var(--page-cockfighting-bg);
    color: var(--page-cockfighting-text-main); /* Light text on dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-bottom: 30px; /* Space between image and text */
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure text is above any potential background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Use clamp for H1 */
    font-weight: 700;
    color: var(--page-cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: 0.05em;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.5);
}

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

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 500px; /* Limit max width for button group */
    margin: 0 auto;
    box-sizing: border-box;
}

.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.1em;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for button max-width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main); /* White text on dark button */
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-gold); /* Gold text */
    border: 2px solid var(--page-cockfighting-gold);
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-gold);
    color: var(--page-cockfighting-bg); /* Dark text on gold hover */
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
}

.page-cockfighting__btn-lg {
    min-width: 200px;
    padding: 18px 35px;
    font-size: 1.2em;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.8em);
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 25px;
    font-weight: 600;
    line-height: 1.3;
}

.page-cockfighting__section-intro {
    font-size: 1.05em;
    color: var(--page-cockfighting-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-cockfighting__about-section,
.page-cockfighting__guide-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__contact-section {
    padding: 80px 0;
    border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__about-section.page-cockfighting__dark-bg,
.page-cockfighting__bet-types-section.page-cockfighting__dark-bg,
.page-cockfighting__faq-section.page-cockfighting__dark-bg {
    background-color: var(--page-cockfighting-deep-green); /* Use a slightly different dark green */
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    color: var(--page-cockfighting-text-main); /* Ensure text is light on card bg */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__feature-image,
.page-cockfighting__promo-image {
    width: 100%;
    max-width: 400px; /* Max width for card images */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Minimum image size */
}

.page-cockfighting__feature-title,
.page-cockfighting__promo-title,
.page-cockfighting__guide-title,
.page-cockfighting__bet-title {
    font-size: 1.4em;
    color: var(--page-cockfighting-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__feature-text,
.page-cockfighting__promo-description,
.page-cockfighting__guide-text,
.page-cockfighting__bet-description {
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.7;
}

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

.page-cockfighting__guide-item {
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-cockfighting__guide-number {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
    background: var(--page-cockfighting-btn-gradient);
    color: var(--page-cockfighting-text-main);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 50px;
}

.page-cockfighting__guide-illustration,
.page-cockfighting__contact-image {
    width: 100%;
    max-width: 1000px;
    height: auto;
    display: block;
    margin: 50px auto 0 auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-height: 200px; /* Minimum image size */
}

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

.page-cockfighting__bet-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    color: var(--page-cockfighting-text-main);
    text-align: left;
}

.page-cockfighting__bet-strategy-tip {
    font-size: 1.1em;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-deep-green);
    border: 1px solid var(--page-cockfighting-border);
    padding: 25px;
    border-radius: 10px;
    margin-top: 50px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__bet-strategy-tip strong {
    color: var(--page-cockfighting-gold);
}

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

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

.page-cockfighting__faq-item[open] {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--page-cockfighting-gold);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--page-cockfighting-gold);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* Hide default marker */
}

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: var(--page-cockfighting-text-secondary);
    line-height: 1.7;
    text-align: left;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    transition: max-height 0.5s ease-in;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-image {
        max-height: 500px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }
    .page-cockfighting__description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 4vw, 2.5em);
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 80%; /* Make buttons wider on tablet */
        max-width: 350px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles header offset, small top padding */
    }
    .page-cockfighting__hero-image {
        max-height: 350px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
        margin-bottom: 15px;
    }
    .page-cockfighting__description {
        font-size: 0.95em;
    }
    .page-cockfighting__cta-buttons {
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* All images responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All video responsive (placeholder, no video in HTML currently) */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* All image/video/button containers responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__content-area {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }

    .page-cockfighting__about-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__contact-section {
        padding: 50px 0;
    }
    .page-cockfighting__guide-steps {
        gap: 30px;
    }
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: clamp(1.5em, 8vw, 2.2em);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.4em, 7vw, 2em);
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-cockfighting__guide-item {
        padding-top: 45px;
    }
    .page-cockfighting__guide-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
    }
}