/* style/cockfighting.css */

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

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

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

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text */
    border-radius: 10px;
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-main);
    margin-bottom: 20px;
    letter-spacing: 0.05em;
}

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

.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: 14px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

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

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(17, 168, 78, 0.4);
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

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

.page-cockfighting__content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

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

.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__live-section,
.page-cockfighting__security-section,
.page-cockfighting__cta-final-section {
    background-color: var(--color-background);
    color: var(--color-text-main);
    padding: 60px 0;
}

.page-cockfighting__game-types-section,
.page-cockfighting__tips-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section {
    background-color: var(--color-card-bg);
    color: var(--color-text-main);
    padding: 60px 0;
}

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

.page-cockfighting__game-card,
.page-cockfighting__tip-card,
.page-cockfighting__promo-card {
    background-color: var(--color-background);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid var(--color-border);
}

.page-cockfighting__game-card:hover,
.page-cockfighting__tip-card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--color-text-main);
    padding: 15px 20px 10px;
}

.page-cockfighting__card-description {
    font-size: 0.95em;
    color: var(--color-text-secondary);
    padding: 0 20px 15px;
    line-height: 1.6;
    flex-grow: 1;
}

.page-cockfighting__card-button {
    display: block;
    text-align: center;
    padding: 12px 20px;
    background: var(--color-button-gradient);
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 10px 10px;
    transition: background 0.3s ease;
}

.page-cockfighting__card-button:hover {
    filter: brightness(1.1);
}

.page-cockfighting__step-item {
    text-align: center;
    padding: 25px;
    background-color: var(--color-background);
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.5);
}

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

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

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

.page-cockfighting__live-section .page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    max-width: 800px; /* Example max-width for video */
    margin: 30px auto;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-primary);
    box-sizing: border-box;
}

.page-cockfighting__live-section .page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

.page-cockfighting__security-item {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.page-cockfighting__item-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--color-text-main);
    margin-bottom: 10px;
}

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

.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-card-bg);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(var(--color-primary), 0.2);
}

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Details element native behavior for expand/collapse */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: rgba(var(--color-primary), 0.1);
}

.page-cockfighting__faq-item summary {
    list-style: none;
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: 2.5em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body already handles header offset */
    }
    .page-cockfighting__hero-content {
        padding: 10px;
    }
    .page-cockfighting__main-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }
    .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: 12px 15px;
        font-size: 1em;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__content-container {
        padding: 30px 15px;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    .page-cockfighting__text-block {
        font-size: 0.95em;
    }
    
    .page-cockfighting__grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__tips-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__security-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2em;
    }
    .page-cockfighting__card-description {
        font-size: 0.9em;
    }

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-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__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    /* Mobile video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__main-title {
        font-size: 1.7em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
}