/* style/cockfighting.css */

/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: var(--background-color, #FFFFFF); /* Inherit from shared, default white */
    line-height: 1.6;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    color: #FFFFFF; /* White text for hero section */
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.7); /* Darken image for text readability */
}

.page-cockfighting__hero-section .page-cockfighting__container {
    position: relative;
    z-index: 1;
    padding-top: 50px;
    padding-bottom: 50px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #FFFF00; /* Special color for title as per requirement for 'Đăng Ký và Đăng Nhập' - I'll use it here for emphasis too */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFFFFF;
}

.page-cockfighting__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure responsiveness */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Register color */
    color: #FFFF00; /* Register font color */
    border: 2px solid #C30808;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
}

/* Section Titles and Descriptions */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color */
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #555555;
}

/* Light Background Sections */
.page-cockfighting__light-bg {
    background-color: #FFFFFF; /* White background */
    color: #333333; /* Dark text */
    padding: 80px 0;
}

.page-cockfighting__light-bg .page-cockfighting__section-title {
    color: #017439;
}

.page-cockfighting__light-bg .page-cockfighting__section-description {
    color: #555555;
}

.page-cockfighting__light-bg .page-cockfighting__list-item strong {
    color: #017439;
}

/* Dark Background Sections */
.page-cockfighting__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #FFFFFF; /* White text */
    padding: 80px 0;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__dark-bg .page-cockfighting__section-description {
    color: #f0f0f0;
}

.page-cockfighting__dark-bg .page-cockfighting__list-item strong {
    color: #FFFF00; /* Yellow for emphasis on dark background */
}

/* Content Grid for sections with text and image */
.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 40px;
}

.page-cockfighting__content-grid--reverse {
    grid-template-columns: 1fr 1fr; /* Default order */
}

/* Images within content sections */
.page-cockfighting__image-right,
.page-cockfighting__image-left,
.page-cockfighting__image-center {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__image-center {
    margin: 40px auto 0 auto;
    max-width: 800px; /* Constraint for center image */
}

/* Text blocks */
.page-cockfighting__text-block p {
    margin-bottom: 15px;
}

/* Lists */
.page-cockfighting__list,
.page-cockfighting__numbered-list,
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.page-cockfighting__list-item {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-cockfighting__list-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #017439; /* Brand color for checkmark */
    font-weight: bold;
}

.page-cockfighting__numbered-list {
    counter-reset: list-item;
}
.page-cockfighting__numbered-list .page-cockfighting__list-item::before {
    content: counter(list-item) '.';
    counter-increment: list-item;
    color: #017439;
    font-weight: bold;
    left: 0;
    position: absolute;
    width: 20px;
    text-align: right;
}
.page-cockfighting__numbered-list .page-cockfighting__list-item {
    padding-left: 30px;
}

.page-cockfighting__promo-list .page-cockfighting__list-item::before {
    content: '★';
    color: #FFFF00; /* Yellow star for promotions */
}


/* CTA Buttons in content sections */
.page-cockfighting__cta-buttons--center {
    text-align: center;
    margin-top: 50px;
}

/* Advantages Section Cards */
.page-cockfighting__advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__advantage-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFFFFF;
}

.page-cockfighting__advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFFF00; /* Yellow for titles on dark cards */
}

.page-cockfighting__card-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #f9f9f9;
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #017439;
}

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

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 20px;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 3em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__content-grid--reverse {
        grid-template-columns: 1fr; /* On smaller screens, revert to single column */
    }
    .page-cockfighting__image-left,
    .page-cockfighting__image-right {
        order: -1; /* Image always on top for single column */
    }
    .page-cockfighting__advantage-card {
        padding: 25px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 450px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure content is not hidden by fixed header */
    }
    .page-cockfighting__hero-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__light-bg,
    .page-cockfighting__dark-bg {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Images responsiveness */
    .page-cockfighting img {
      max-width: 100% !important;
      height: auto !important;
      display: block !important;
      min-width: 200px !important; /* Ensure minimum size */
      min-height: 200px !important; /* Ensure minimum size */
    }
    
    /* All containers containing images, videos, buttons must be responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__content-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-buttons {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important; /* Prevent content overflow */
    }
    .page-cockfighting__hero-section .page-cockfighting__container {
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        align-items: center;
        gap: 15px;
        padding-left: 0;
        padding-right: 0;
    }
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 15px;
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-cockfighting__faq-question {
        font-size: 1.1em;
        padding: 15px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 10px 15px;
    }
    .page-cockfighting__list-item {
        padding-left: 20px;
    }
    .page-cockfighting__numbered-list .page-cockfighting__list-item {
        padding-left: 25px;
    }
    .page-cockfighting__list-item::before,
    .page-cockfighting__numbered-list .page-cockfighting__list-item::before {
        font-size: 0.9em;
    }
}

/* Ensure no filter on images */
.page-cockfighting img {
    filter: none;
}
/* Specific filter for hero image to make text readable */
.page-cockfighting__hero-image {
    filter: brightness(0.7);
}

/* CSS for content area images, ensuring minimum size */
.page-cockfighting__content-area img,
.page-cockfighting__text-block img,
.page-cockfighting__advantages-section img,
.page-cockfighting__strategy-section img {
    min-width: 200px;
    min-height: 200px;
}

/* For elements that might contain images, videos, or buttons, ensure they don't cause overflow */
.page-cockfighting__content-grid,
.page-cockfighting__advantages-grid,
.page-cockfighting__faq-list {
    overflow-x: hidden;
}

/* Ensure all p and li tags have sufficient contrast */
.page-cockfighting p,
.page-cockfighting li {
  color: inherit; /* Inherit from parent section's color to ensure contrast */
}
.page-cockfighting__light-bg p,
.page-cockfighting__light-bg li {
  color: #333333;
}
.page-cockfighting__dark-bg p,
.page-cockfighting__dark-bg li {
  color: #FFFFFF;
}

/* Specific button styles for mobile to prevent overflow if they have flex */
@media (max-width: 768px) {
    .page-cockfighting__hero-cta-buttons,
    .page-cockfighting__cta-buttons {
        display: flex;
        flex-direction: column; /* Stack buttons vertically */
        align-items: stretch; /* Stretch buttons to full width */
        gap: 15px;
    }
    .page-cockfighting__hero-cta-buttons a,
    .page-cockfighting__cta-buttons a {
        width: 100%;
    }
}