/* style/cockfighting.css */

/* Custom Colors */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-button-gradient-start: #2AD16F;
    --color-button-gradient-end: #13994A;
    --color-card-bg: #11271B;
    --color-background: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-divider: #1E3A2A;
    --color-deep-green: #0A4B2C;
}

/* Base styles for the page content, ensuring good contrast on dark body background */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text-main); /* Light text on dark background */
    background-color: var(--color-background); /* Deep green background */
}

/* Section styling */
.page-cockfighting__section {
    padding: 60px 20px;
    background-color: var(--color-background);
}

.page-cockfighting__dark-section {
    background-color: var(--color-deep-green); /* A slightly different dark green for contrast */
}

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 3.5vw, 42px); /* H1 font-size rule applied to H2 as it's a main section title */
    font-weight: bold;
    color: var(--color-gold); /* Gold color for main titles */
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.page-cockfighting__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-block {
    flex: 1;
    min-width: 300px;
}

.page-cockfighting__image-block {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* No filter allowed */
}

.page-cockfighting p {
    margin-bottom: 1em;
    color: var(--color-text-main);
}

.page-cockfighting strong {
    color: var(--color-gold);
}

.page-cockfighting__list {
    list-style: disc;
    margin-left: 20px;
    margin-bottom: 1em;
    color: var(--color-text-main);
}

.page-cockfighting__list li {
    margin-bottom: 0.5em;
    color: var(--color-text-main);
}

.page-cockfighting__steps-list {
    list-style: none;
    padding-left: 0;
}

.page-cockfighting__steps-list li {
    margin-bottom: 1.5em;
    position: relative;
    padding-left: 35px;
    color: var(--color-text-main);
}

.page-cockfighting__steps-list li::before {
    content: attr(value);
    position: absolute;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    background: var(--color-gold);
    color: var(--color-background);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
}
.page-cockfighting__steps-list li:nth-child(1)::before { content: '1'; }
.page-cockfighting__steps-list li:nth-child(2)::before { content: '2'; }
.page-cockfighting__steps-list li:nth-child(3)::before { content: '3'; }
.page-cockfighting__steps-list li:nth-child(4)::before { content: '4'; }
.page-cockfighting__steps-list li:nth-child(5)::before { content: '5'; }
.page-cockfighting__steps-list li:nth-child(6)::before { content: '6'; }


/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure nothing overflows horizontally */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image width on larger screens */
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 12px;
    /* HTML width/height attributes for CLS, CSS for responsive display */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-cockfighting__main-title {
    font-size: clamp(32px, 4.5vw, 56px); /* Use clamp for H1 font size */
    font-weight: bold;
    color: var(--color-gold);
    margin-bottom: 20px;
    line-height: 1.1;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-description {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--color-text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    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 for flex-wrap */
    max-width: 600px; /* Max width for button group */
    margin: 0 auto;
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting a[class*="button"],
.page-cockfighting a[class*="btn"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
    cursor: pointer;
}

.page-cockfighting__btn-primary {
    background: var(--color-button-gradient-start); /* Fallback for browsers not supporting gradient */
    background: linear-gradient(180deg, var(--color-button-gradient-start) 0%, var(--color-button-gradient-end) 100%);
    color: var(--color-text-main);
    border: 2px solid transparent;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--color-gold); /* Gold text for secondary button */
    border: 2px solid var(--color-gold);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--color-gold);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__text-link {
    color: var(--color-gold);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--color-glow);
}

/* FAQ Section */
.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
}

.page-cockfighting__faq-item {
    background-color: var(--color-card-bg); /* Darker green for card background */
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    color: var(--color-text-main);
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 18px;
    color: var(--color-gold); /* Gold for question text */
    position: relative;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    margin-right: 15px;
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    line-height: 1;
    color: var(--color-glow); /* Glow color for toggle icon */
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 16px;
    color: var(--color-text-secondary); /* Secondary text color for answers */
    border-top: 1px solid var(--color-divider);
    margin-top: -1px; /* Overlap border for cleaner look */
}

.page-cockfighting__faq-answer p {
    margin-bottom: 0;
    color: var(--color-text-secondary);
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__content-grid {
        flex-direction: column;
    }
    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Also column for reverse on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-cockfighting__main-title {
        font-size: 36px;
    }

    .page-cockfighting__hero-description {
        font-size: 16px;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        max-width: 300px; /* Constrain button width for mobile */
        margin-left: auto;
        margin-right: auto;
        padding-left: 15px;
        padding-right: 15px;
        box-sizing: border-box;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        width: 100% !important; /* Ensure buttons take full width */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        white-space: normal !important;
        word-wrap: break-word !important;
        box-sizing: border-box !important;
    }

    .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,
    .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;
    }

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

    .page-cockfighting__faq-item summary {
        font-size: 16px;
        padding: 15px 20px;
    }

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