/* style/cockfighting.css */

/* Base styles for the page content, ensuring light text on dark body background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Main content background is transparent to show body background */
}

/* Sections with light background */
.page-cockfighting__light-bg {
    background-color: #1a1a1a; /* Slightly lighter dark background for contrast */
    color: #f0f0f0;
    padding: 60px 0;
}

/* Sections with dark background (primary brand color or darker tone) */
.page-cockfighting__dark-bg {
    background-color: #0d0d0d; /* Darker background for contrast, or brand color */
    color: #ffffff;
    padding: 60px 0;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, larger bottom padding */
    overflow: hidden; /* Ensure no overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    width: 100%; /* Ensure it fills its wrapper */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin-top: 40px;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background-color: rgba(38, 169, 224, 0.9); /* Brand color with slight transparency */
    color: #ffffff;
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-cockfighting__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Essential for responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
}

.page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
    background-color: #d46c00;
    border-color: #d46c00;
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #26A9E0;
}

.page-cockfighting__btn-centered {
    margin: 40px auto 0 auto; /* Centered button in its section */
    display: block;
    width: fit-content;
    max-width: calc(100% - 30px); /* Account for container padding */
}

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.5em;
    margin-bottom: 30px;
    text-align: center;
    color: #26A9E0; /* Brand color for titles */
}

.page-cockfighting__sub-title {
    font-size: 1.8em;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #26A9E0;
}

.page-cockfighting p {
    margin-bottom: 15px;
    color: #f0f0f0;
}

/* Image styles within content */
.page-cockfighting__image-full {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* List styles */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 5px solid #26A9E0;
    color: #f0f0f0;
}

.page-cockfighting__list-title {
    color: #26A9E0;
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__numbered-list {
    list-style-type: decimal;
    padding-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__numbered-list .page-cockfighting__list-item {
    background-color: transparent;
    border: none;
    padding: 0;
    margin-bottom: 10px;
    color: #f0f0f0;
}

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

.page-cockfighting__benefit-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #f0f0f0;
}

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

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

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(38, 169, 224, 0.2); /* Lighter brand color background */
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.3);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #ffffff;
}

.page-cockfighting__faq-answer {
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 0.95em;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Ensure small top padding */
        padding-bottom: 40px;
    }

    .page-cockfighting__hero-content {
        margin-top: 30px;
        padding: 20px;
        max-width: calc(100% - 30px); /* Adjust for padding */
    }

    .page-cockfighting__main-title {
        font-size: 2em; /* Adjust font size for mobile */
    }

    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0; /* Remove horizontal padding as buttons will take full width */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 15px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }

    .page-cockfighting__container {
        padding: 0 15px; /* Add padding to container */
    }

    /* Images responsiveness */
    .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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* body đã承担 --header-offset，此处禁止 var(--header-offset) */
    }
    
    /* Video responsiveness (if any, though none explicitly added in HTML yet) */
    .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;
    }
}