/* style/cockfighting.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-main-color); /* Default text color for the page */
    background-color: var(--background-color);
}

.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--deep-green-color);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-height: 700px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 400px; /* Ensure minimum height for larger images */
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 40px auto;
    text-align: center;
    padding: 0 20px;
    z-index: 1; /* Ensure content is above any potential background layers */
}

.page-cockfighting__main-title {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-main-color);
    margin-bottom: 20px;
    max-width: 600px; /* Prevent title from being too wide */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__lead-text {
    font-size: 1.15em;
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
}

.page-cockfighting__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: var(--text-main-color);
    border: none;
    margin-right: 15px;
}

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

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

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

.page-cockfighting__section {
    padding: 60px 0;
    background-color: var(--background-color);
}

.page-cockfighting__dark-section {
    background-color: var(--card-bg-color);
}

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

.page-cockfighting__section-title {
    text-align: center;
    font-size: 2.5em;
    font-weight: 700;
    color: var(--text-main-color);
    margin-bottom: 50px;
    line-height: 1.3;
}

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

.page-cockfighting__card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main-color);
}

.page-cockfighting__card-title {
    font-size: 1.8em;
    font-weight: 600;
    color: var(--text-main-color);
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
}

.page-cockfighting__card-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 20px;
    display: block;
    object-fit: cover;
    min-height: 200px;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    margin-top: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: pointer; /* Indicate video is clickable */
}

.page-cockfighting__content-area {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    color: var(--text-secondary-color);
    line-height: 1.7;
}

.page-cockfighting__sub-title {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-main-color);
    margin-top: 40px;
    margin-bottom: 20px;
}

.page-cockfighting__content-area p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

.page-cockfighting__ordered-list {
    list-style-type: decimal;
    margin-left: 25px;
    margin-bottom: 20px;
    color: var(--text-secondary-color);
}

.page-cockfighting__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

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

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

.page-cockfighting__grid-layout--features {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.page-cockfighting__feature-card {
    background-color: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: var(--text-main-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
    width: 80%; /* Adjust size for feature icons */
    max-width: 250px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-height: 200px;
    object-fit: cover;
}

.page-cockfighting__feature-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text-main-color);
    margin-bottom: 10px;
}

.page-cockfighting__feature-description {
    font-size: 0.95em;
    line-height: 1.6;
    color: var(--text-secondary-color);
    margin-bottom: 20px;
    flex-grow: 1;
}

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

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main-color);
    cursor: pointer;
    background-color: var(--deep-green-color);
    border-bottom: 1px solid var(--border-color);
    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 webkit browsers */
}

.page-cockfighting__faq-question:hover {
    background-color: rgba(var(--primary-color), 0.2);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 24px;
    text-align: center;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.7;
    color: var(--text-secondary-color);
    background-color: var(--card-bg-color);
}

/* For JS-driven FAQ (if not using <details>) */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px; /* Large enough to show content */
    transition: max-height 0.5s ease-in-out;
}

.page-cockfighting__faq-item:not(.active) .page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

.page-cockfighting__faq-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    object-fit: cover;
    min-height: 200px;
}

.page-cockfighting__cta-section {
    background-color: var(--deep-green-color);
    padding: 80px 20px;
    text-align: center;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Desktop specific adjustments */
@media (min-width: 769px) {
    .page-cockfighting__main-title {
        font-size: 3.5em; /* Larger title for desktop, but not fixed */
    }
    .page-cockfighting__section-title {
        font-size: 3em;
    }
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
        padding-top: 10px !important; /* body handles --header-offset */
    }

    .page-cockfighting__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-cockfighting__lead-text {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 15px 0 !important; /* Stack buttons vertically */
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }

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

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

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

    .page-cockfighting__content-area p,
    .page-cockfighting__ordered-list li,
    .page-cockfighting__card-description,
    .page-cockfighting__feature-description,
    .page-cockfighting__faq-answer {
        font-size: 0.95em;
    }

    .page-cockfighting__card-title,
    .page-cockfighting__feature-title {
        font-size: 1.4em;
    }

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

    /* Mobile image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-height: 200px !important; /* Ensure minimum size */
    }

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

    .page-cockfighting__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__card,
    .page-cockfighting__feature-card,
    .page-cockfighting__faq-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 20px; /* Space between image and text on mobile */
    }

    /* Ensure content containers don't overflow */
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__content-area,
    .page-cockfighting__grid-layout,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }
}