/* style/cockfighting.css */

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

/* Main page styling */
.page-cockfighting {
    color: var(--bu88win-text-main); /* Default text color for dark background */
    background-color: var(--bu88win-bg-main); /* Main background color */
}

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

.page-cockfighting__section-title {
    font-size: 2.5rem;
    color: var(--bu88win-text-main);
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--bu88win-primary);
    border-radius: 2px;
}

.page-cockfighting__text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px auto;
    color: var(--bu88win-text-secondary);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 0 60px 0; /* body handles top padding, use small decorative top padding */
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit max height for desktop */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.6); /* Slightly darken image for text contrast */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-cockfighting__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--bu88win-text-main);
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.page-cockfighting__hero-description {
    font-size: 1.2rem;
    color: var(--bu88win-text-secondary);
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: var(--bu88win-button-gradient);
    color: var(--bu88win-text-main);
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3), 0 0 15px var(--bu88win-glow);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--bu88win-glow);
    color: var(--bu88win-bg-main);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: var(--bu88win-bg-main);
}

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

.page-cockfighting__feature-item {
    background-color: var(--bu88win-bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bu88win-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-cockfighting__feature-title {
    font-size: 1.6rem;
    color: var(--bu88win-text-main);
    margin-bottom: 15px;
}

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

/* Betting Types Section */
.page-cockfighting__betting-types-section {
    padding: 80px 0;
    background-color: var(--bu88win-deep-green);
}

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

.page-cockfighting__betting-option {
    background-color: var(--bu88win-bg-card);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bu88win-border);
}

.page-cockfighting__option-title {
    font-size: 1.5rem;
    color: var(--bu88win-text-main);
    margin-bottom: 10px;
}

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

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

/* How to Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: var(--bu88win-bg-main);
}

.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 50px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-item {
    background-color: var(--bu88win-bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bu88win-border);
    position: relative;
    text-align: center;
}

.page-cockfighting__step-item::before {
    content: attr(data-step);
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bu88win-primary);
    color: var(--bu88win-text-main);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    border: 2px solid var(--bu88win-border);
}

.page-cockfighting__step-item:nth-child(1)::before { content: '1'; }
.page-cockfighting__step-item:nth-child(2)::before { content: '2'; }
.page-cockfighting__step-item:nth-child(3)::before { content: '3'; }
.page-cockfighting__step-item:nth-child(4)::before { content: '4'; }

.page-cockfighting__step-title {
    font-size: 1.5rem;
    color: var(--bu88win-text-main);
    margin-top: 20px;
    margin-bottom: 10px;
}

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

/* Strategies Section */
.page-cockfighting__strategies-section {
    padding: 80px 0;
    background-color: var(--bu88win-deep-green);
}

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

.page-cockfighting__strategy-card {
    background-color: var(--bu88win-bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--bu88win-border);
    text-align: center;
}

.page-cockfighting__strategy-title {
    font-size: 1.5rem;
    color: var(--bu88win-text-main);
    margin-bottom: 10px;
}

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

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

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

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

.page-cockfighting__faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 20px 25px;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--bu88win-text-main);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--bu88win-deep-green);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-item summary:hover {
    background-color: var(--bu88win-primary);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--bu88win-glow);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: '−';
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--bu88win-text-secondary);
    background-color: var(--bu88win-bg-card);
    border-top: 1px solid var(--bu88win-divider);
}

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

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

.page-cockfighting__faq-link {
    color: var(--bu88win-glow);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-cockfighting__faq-link:hover {
    color: var(--bu88win-primary);
    text-decoration: underline;
}

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    background-color: var(--bu88win-deep-green);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 2.8rem;
    }
    .page-cockfighting__section-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-content {
        top: auto;
        bottom: 0;
        transform: translate(-50%, 0%);
        padding: 40px 20px;
        background: linear-gradient(0deg, rgba(8, 22, 15, 0.9) 0%, rgba(8, 22, 15, 0.6) 50%, rgba(8, 22, 15, 0) 100%);
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__text-block {
        font-size: 0.95rem;
    }
    .page-cockfighting__features-grid,
    .page-cockfighting__betting-options-grid,
    .page-cockfighting__steps-list,
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__betting-option,
    .page-cockfighting__step-item,
    .page-cockfighting__strategy-card,
    .page-cockfighting__faq-item {
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box !important;
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__features-grid,
    .page-cockfighting__betting-options-grid,
    .page-cockfighting__steps-list,
    .page-cockfighting__strategy-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-section {
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__hero-image {
        filter: brightness(0.4); /* Darken more for mobile */
    }
    .page-cockfighting__hero-content {
        position: relative; /* Change to relative on mobile to be below image */
        transform: none;
        top: auto;
        left: auto;
        padding-top: 20px;
        background: none; /* Remove gradient on mobile if relative */
    }
    .page-cockfighting__hero-image-wrapper + .page-cockfighting__hero-content {
        order: 2; /* Ensure content is below image in flex column */
    }
    .page-cockfighting__hero-section {
        flex-direction: column; /* Stack image then content */
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.8rem;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9rem;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 1rem;
        padding: 12px 20px;
    }
    .page-cockfighting__section-title {
        font-size: 1.5rem;
    }
    .page-cockfighting__feature-title,
    .page-cockfighting__option-title,
    .page-cockfighting__step-title,
    .page-cockfighting__strategy-title {
        font-size: 1.3rem;
    }
    .page-cockfighting__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 1.5rem;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.9rem;
        padding: 15px 20px;
    }
}