/* style/cockfighting.css */
/* 
  Page specific styles for the 'Đá Gà' page.
  All class names must follow BEM naming convention: .page-cockfighting__element-name
  Styles are scoped to .page-cockfighting.
  Color scheme: Primary #26A9E0, Secondary #FFFFFF.
  Body background is dark (from shared.css), so text should be light by default.
*/

.page-cockfighting {
    color: #ffffff; /* Default text color for dark body background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: transparent; /* Inherit from body, which is dark */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Fixed header offset for main content or hero section */
.page-cockfighting__hero-section {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

.page-cockfighting__hero-video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    overflow: hidden;
    background-color: #000; /* Fallback background */
}

.page-cockfighting__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.7) 100%);
}

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

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* General content area */
.page-cockfighting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    box-sizing: border-box;
    background-color: var(--neon-dark-bg); /* Use shared dark background for consistency */
    color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    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-color: #26A9E0;
    border-radius: 2px;
}

.page-cockfighting p {
    margin-bottom: 1em;
    color: #f0f0f0; /* Light text for paragraphs */
}

.page-cockfighting a {
    color: #26A9E0; /* Primary color for links */
    text-decoration: none;
}

.page-cockfighting a:hover {
    text-decoration: underline;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    text-align: center;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box; /* Include padding/border in width */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
}

.page-cockfighting__btn-primary {
    background-color: #26A9E0; /* Primary color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background-color: #1e87b6;
    border-color: #1e87b6;
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #26A9E0;
    border: 2px solid #26A9E0;
    margin-left: 20px;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Why Choose Us Section */
.page-cockfighting__features-grid,
.page-cockfighting__security-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__feature-card,
.page-cockfighting__security-item,
.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for cards on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    height: 100%; /* Ensure cards have equal height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff; /* Light text for card content */
}

.page-cockfighting__feature-card:hover,
.page-cockfighting__security-item:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
}

.page-cockfighting__feature-image,
.page-cockfighting__security-image,
.page-cockfighting__promo-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

/* How to Play Section */
.page-cockfighting__steps-list,
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__step-item,
.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-cockfighting__step-title,
.page-cockfighting__list-heading {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

/* Dark Section specific styles */
.page-cockfighting__dark-section {
    background-color: #1a1a1a; /* Slightly darker than default body bg, but still dark */
    color: #ffffff;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #26A9E0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #ffffff;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Important for JS toggle */
    padding: 20px 25px;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    text-align: center;
    padding: 80px 20px;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-cockfighting__content-area {
        padding: 40px 15px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width of parent */
        height: auto !important;
        display: block !important;
    }
    
    /* Video responsiveness */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Image/Video containers responsiveness */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__features-grid,
    .page-cockfighting__security-grid,
    .page-cockfighting__promo-grid,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Specific padding for hero video section to maintain header offset */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        margin-left: 0 !important;
        margin-bottom: 15px;
        padding: 12px 20px !important;
        font-size: 0.9em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column !important;
        gap: 0 !important;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__security-item,
    .page-cockfighting__promo-card {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 1.3em;
    }

    .page-cockfighting__faq-question {
        padding: 15px 20px;
    }

    .page-cockfighting__faq-question h3 {
        font-size: 1em;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
}

/* Ensure text in card/sections respects contrast */
.page-cockfighting__dark-bg {
    color: #ffffff; /* Deep dark background, light text */
    background: #0d0d0d; 
}

.page-cockfighting__light-bg {
    color: #333333; /* Light background, dark text */
    background: #ffffff;
}

.page-cockfighting__medium-bg {
    color: #000000; 
    background: #FFFFFF;
}

.page-cockfighting__content-area,
.page-cockfighting__text-block {
    color: #f0f0f0; /* Ensure light text on dark background */
}

.page-cockfighting p,
.page-cockfighting li {
    color: #f0f0f0; /* Ensure light text on dark background */
}

.page-cockfighting__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white on dark background */
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2); 
}