/* style/cockfighting.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #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-dark); /* Ensure consistency with body background */
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure hero image is not too small */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
    margin-top: -100px; /* Pull content slightly over the image for visual hierarchy */
    background-color: rgba(17, 39, 27, 0.8); /* Semi-transparent card-bg */
    border-radius: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid var(--border-color);
    box-shadow: 0 0 30px rgba(87, 227, 141, 0.3);
}

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

.page-cockfighting__hero-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    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 {
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main);
    border: none;
    box-shadow: 0 5px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(46, 122, 78, 0.4);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--deep-green);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(46, 122, 78, 0.6);
}

.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--background-dark);
    text-align: center;
}

.page-cockfighting__section-title {
    color: var(--gold-color);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__section-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 40px;
}

.page-cockfighting__video-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(87, 227, 141, 0.5);
}

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

.page-cockfighting__video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

.page-cockfighting__content-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--background-dark);
    text-align: center;
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg);
}

.page-cockfighting__feature-grid, 
.page-cockfighting__game-types, 
.page-cockfighting__guide-steps, 
.page-cockfighting__promotion-grid, 
.page-cockfighting__tips-grid {
    display: grid;
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__game-types {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

.page-cockfighting__promotion-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__tips-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.page-cockfighting__feature-card,
.page-cockfighting__type-card,
.page-cockfighting__step-card,
.page-cockfighting__promo-card,
.page-cockfighting__tip-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__type-card:hover,
.page-cockfighting__step-card:hover,
.page-cockfighting__promo-card:hover,
.page-cockfighting__tip-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(87, 227, 141, 0.3);
}

.page-cockfighting__feature-image,
.page-cockfighting__type-image,
.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

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

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

.page-cockfighting__step-number {
    background: var(--button-gradient);
    color: var(--text-main);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(42, 209, 111, 0.5);
}

.page-cockfighting__btn-text {
    color: var(--glow-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    transition: color 0.3s ease;
}

.page-cockfighting__btn-text:hover {
    color: var(--gold-color);
}

.page-cockfighting__faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: var(--background-dark);
    text-align: center;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    text-align: left;
}

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

.page-cockfighting__faq-item[open] {
    box-shadow: 0 0 25px rgba(87, 227, 141, 0.2);
}

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

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

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    width: 30px;
    text-align: center;
    color: var(--glow-color);
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

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

.page-cockfighting__call-to-action {
    padding: 80px 20px;
    text-align: center;
    background-color: var(--deep-green);
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
}

.page-cockfighting__call-to-action .page-cockfighting__section-title {
    color: var(--text-main);
    text-shadow: none;
}

.page-cockfighting__call-to-action .page-cockfighting__section-description {
    color: var(--text-secondary);
    margin-bottom: 50px;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        margin-top: -50px;
        padding: 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }
    .page-cockfighting__feature-grid, 
    .page-cockfighting__game-types, 
    .page-cockfighting__guide-steps, 
    .page-cockfighting__promotion-grid, 
    .page-cockfighting__tips-grid {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-image {
        min-height: 250px;
    }
    .page-cockfighting__hero-content {
        margin-top: -30px;
        padding: 10px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        white-space: normal !important;
        word-wrap: break-word !important;
        margin: 0 auto; /* Center buttons */
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__content-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__call-to-action {
        padding: 40px 15px !important;
    }

    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2.2rem);
        margin-bottom: 15px;
    }
    .page-cockfighting__section-description {
        font-size: 0.9rem;
        margin-bottom: 30px;
    }
    .page-cockfighting__feature-grid, 
    .page-cockfighting__game-types, 
    .page-cockfighting__guide-steps, 
    .page-cockfighting__promotion-grid, 
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__feature-card,
    .page-cockfighting__type-card,
    .page-cockfighting__step-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__tip-item {
        padding: 20px;
    }
    .page-cockfighting__card-title {
        font-size: 1.2rem;
    }
    .page-cockfighting__card-text {
        font-size: 0.9rem;
    }
    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        font-size: 0.9rem;
        padding: 0 15px 15px;
    }
    .page-cockfighting__video-section {
      padding-top: 10px !important;
    }
}