/* style/cockfighting.css */

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

/* Base styles for the page content */
.page-cockfighting {
    background-color: var(--co88-win-background);
    color: var(--co88-win-text-main); /* Default text color for the page */
    font-family: Arial, sans-serif;
    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;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    text-align: center;
    padding: 60px 20px; /* Adjust padding for visual separation */
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    box-sizing: border-box;
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width */
    margin-bottom: 30px; /* Space between image and content */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-cockfighting__hero-content {
    max-width: 900px;
    width: 100%; /* Ensure content block takes full width up to max-width */
    z-index: 1; /* Ensure content is above image if any layering occurs (though layout is image-above-text) */
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: var(--co88-win-text-main);
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--co88-win-text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    box-sizing: border-box; /* Crucial for responsive buttons */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

.page-cockfighting__btn-primary {
    background: var(--co88-win-button-gradient);
    color: var(--co88-win-text-main);
    border: 2px solid transparent;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__btn-secondary:hover {
    background: var(--co88-win-primary);
    color: var(--co88-win-text-main);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.95rem;
    min-width: 150px;
}


/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--co88-win-text-main);
    text-align: center;
    margin-bottom: 40px;
    padding-top: 40px;
}

/* Text Blocks */
.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--co88-win-text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block strong {
    color: var(--co88-win-text-main);
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    background-color: var(--co88-win-background);
}

/* Types Section & Advantages Section (Dark Background) */
.page-cockfighting__dark-section {
    background-color: var(--co88-win-card-bg); /* Use Card BG for dark sections */
    padding: 60px 0;
}

.page-cockfighting__grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__grid-layout--reversed {
    grid-template-areas: "content image";
}

.page-cockfighting__grid-layout--reversed .page-cockfighting__grid-item:first-child {
    grid-area: image;
}

.page-cockfighting__grid-layout--reversed .page-cockfighting__grid-item:last-child {
    grid-area: content;
}

.page-cockfighting__image-responsive {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

.page-cockfighting__advantage-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__advantage-item {
    background-color: rgba(var(--co88-win-primary), 0.1); /* Slightly transparent primary color */
    border-left: 5px solid var(--co88-win-primary);
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-cockfighting__advantage-title {
    font-size: 1.3rem;
    color: var(--co88-win-text-main);
    margin-top: 0;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
    font-size: 0.95rem;
    color: var(--co88-win-text-secondary);
    margin-bottom: 0;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: var(--co88-win-background);
    text-align: center;
}

.page-cockfighting__image-full-width {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 10px;
    object-fit: cover;
}

.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
    text-align: left;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__promo-item {
    background-color: var(--co88-win-card-bg);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid var(--co88-win-border);
    color: var(--co88-win-text-secondary);
}

.page-cockfighting__promo-item strong {
    color: var(--co88-win-text-main);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--co88-win-deep-green); /* A darker green for contrast */
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: var(--co88-win-card-bg);
    color: var(--co88-win-text-main);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

.page-cockfighting__faq-question::marker {
    display: none; /* Hide default marker for Firefox */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    background-color: var(--co88-win-deep-green); /* Slightly darker when open */
    border-bottom: 1px solid var(--co88-win-border);
}

.page-cockfighting__faq-question:hover {
    background-color: var(--co88-win-deep-green);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    transition: transform 0.3s ease;
    color: var(--co88-win-glow);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--co88-win-text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    background-color: var(--co88-win-card-bg);
}

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    padding: 60px 0;
    background-color: var(--co88-win-background);
    text-align: center;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__grid-layout {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__grid-layout--reversed {
        grid-template-areas: none; /* Reset grid area for mobile */
    }

    .page-cockfighting__grid-layout--reversed .page-cockfighting__grid-item:first-child,
    .page-cockfighting__grid-layout--reversed .page-cockfighting__grid-item:last-child {
        grid-area: auto; /* Reset grid area for mobile */
    }

    .page-cockfighting__hero-content {
        padding: 0 15px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section,
    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__advantages-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section {
        padding: 40px 0;
    }

    .page-cockfighting__section-title {
        margin-bottom: 30px;
        padding-top: 20px;
    }

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1rem;
    }

    /* Mobile image and video responsive adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting video,
    .page-cockfighting__video { /* Assuming a video element might exist */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Ensure no overflow */
    }

    /* Small top padding for sections, body handles --header-offset */
    .page-cockfighting__hero-section,
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }

    .page-cockfighting__faq-question {
        font-size: 1rem;
        padding: 15px 20px;
    }

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

/* Ensure content images are never smaller than 200px (desktop) */
.page-cockfighting__image-responsive,
.page-cockfighting__image-full-width {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fix if needed, though colors are predefined */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}