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

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    background-color: var(--hn88-background); /* Deep Green */
    color: var(--hn88-text-main); /* Light text for dark background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
}

/* Section styling */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--hn88-divider);
}

/* Specific padding for the first section (hero) to avoid double offset with body */
.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for aesthetic */
    overflow: hidden;
    position: relative;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
}

.page-cockfighting__hero-content {
    position: relative; /* Ensure content is above image but not overlapping */
    max-width: 900px;
    margin-top: 30px; /* Space between image and content */
    padding: 0 20px;
    text-align: center;
    z-index: 1; /* Ensure text is above any potential background layering */
}

.page-cockfighting__hero-title {
    color: var(--hn88-gold); /* Gold for main title */
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 20px;
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Example clamp for responsive H1 */
}

.page-cockfighting__hero-description {
    color: var(--hn88-text-main);
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__section-title {
    color: var(--hn88-gold);
    font-size: 2.5em;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__sub-title {
    color: var(--hn88-primary-color);
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__text-block {
    color: var(--hn88-text-secondary);
    font-size: 1.05em;
    margin-bottom: 20px;
    text-align: left;
}

.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    text-align: left;
}

.page-cockfighting__list-item {
    color: var(--hn88-text-main);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.page-cockfighting__list-item::before {
    content: '•';
    color: var(--hn88-gold);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--hn88-primary-color);
    border: 2px solid var(--hn88-primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--hn88-primary-color);
    color: var(--hn88-text-main);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    margin-bottom: 30px;
}

.page-cockfighting__btn-video-cta {
    margin-top: 30px;
}

/* Image styling */
.page-cockfighting__image-wrapper {
    margin: 30px auto;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__image-wrapper--center {
    display: flex;
    justify-content: center;
}

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

/* Video styling */
.page-cockfighting__video-section {
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 30px auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    background-color: var(--hn88-card-bg); /* Fallback background */
    width: 100%; /* Desktop width */
    box-sizing: border-box;
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    font-weight: 600;
    color: var(--hn88-text-main);
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none;   /* Safari */
    -khtml-user-select: none;    /* Konqueror HTML */
    -moz-user-select: none;      /* Old versions of Firefox */
    -ms-user-select: none;       /* Internet Explorer/Edge */
    user-select: none;           /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--hn88-gold);
}

/* Style for details element's summary marker */
.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 18px;
    color: var(--hn88-text-secondary);
    font-size: 1em;
    text-align: left;
    max-height: 0; /* Hidden by default for JS fallback */
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

/* For <details> native open state */
.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 1000px; /* Sufficiently large to show content */
    transition: max-height 0.5s ease-in;
}

/* Responsive design */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__sub-title {
        font-size: 1.5em;
    }
    .page-cockfighting__hero-title {
        font-size: clamp(2rem, 4vw, 3rem);
    }
}

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

    .page-cockfighting__hero-content {
        margin-top: 20px;
    }

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
        margin-bottom: 20px;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

    .page-cockfighting__sub-title {
        font-size: 1.3em;
        margin-top: 30px;
    }

    .page-cockfighting__text-block,
    .page-cockfighting__list-item {
        font-size: 0.95em;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 1em;
    }

    .page-cockfighting__btn-group {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__container,
    .page-cockfighting__section,
    .page-cockfighting__card,
    .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 img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

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

    .page-cockfighting__video-section {
      padding-top: 10px !important; /* body already has padding-top */
    }

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

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