/* style/cockfighting.css */

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

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    line-height: 1.2;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 6vw, 3.8rem); /* Using clamp for H1 */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.1;
    max-width: 900px;
}

.page-cockfighting__main-description {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
    max-width: 800px;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--deep-green);
    overflow: hidden;
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    margin-bottom: 40px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

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

.page-cockfighting__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    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);
    opacity: 0.9;
}

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

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

/* Intro Section */
.page-cockfighting__intro-section {
    background-color: var(--background-color); 
    color: var(--text-secondary);
    padding: 80px 0;
}

/* Types Section */
.page-cockfighting__types-section {
    background-color: var(--card-bg);
    padding: 80px 0;
    color: var(--text-main);
}

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

.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
}

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

.page-cockfighting__card-title {
    font-size: 1.5rem;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__card p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Rules Section */
.page-cockfighting__rules-section {
    background-color: var(--background-color);
    padding: 80px 0;
    color: var(--text-secondary);
}

.page-cockfighting__numbered-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__numbered-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 60px;
}

.page-cockfighting__numbered-list li::before {
    content: counter(list-item);
    counter-increment: list-item;
    position: absolute;
    left: 20px;
    top: 25px;
    background-color: var(--primary-color);
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.page-cockfighting__list-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__numbered-list p {
    color: var(--text-secondary);
}

/* Video Section */
.page-cockfighting__video-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding */
    background-color: var(--deep-green);
    color: var(--text-main);
    text-align: center;
}

.page-cockfighting__video-container {
    width: 100%; /* Must be 100% for desktop */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-top: 40px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    background-color: black; /* Fallback for video area */
}

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

.page-cockfighting__video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: pointer;
    border-radius: 10px;
}

.page-cockfighting__video-wrapper:hover .page-cockfighting__video-overlay {
    opacity: 1;
}

.page-cockfighting__video-cta {
    display: inline-block;
    background: var(--button-gradient);
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.page-cockfighting__video-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

.page-cockfighting__video-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
}

/* Strategies Section */
.page-cockfighting__strategies-section {
    background-color: var(--background-color);
    padding: 80px 0;
    color: var(--text-secondary);
}

.page-cockfighting__bullet-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-cockfighting__bullet-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Safety Section */
.page-cockfighting__safety-section {
    background-color: var(--card-bg);
    padding: 80px 0;
    color: var(--text-main);
}

.page-cockfighting__feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: center;
}

.page-cockfighting__feature-list li {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title {
    font-size: 1.4rem;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

/* CTA Banner */
.page-cockfighting__cta-banner {
    background-color: var(--primary-color);
    padding: 80px 20px;
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__banner-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-cockfighting__banner-description {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: var(--background-color);
    padding: 80px 0;
    color: var(--text-secondary);
}

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--gold-color);
    list-style: none; /* For details summary */
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.8rem;
    line-height: 1;
    color: var(--primary-color);
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    font-size: 1rem;
    color: var(--text-secondary);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 1000px; /* Sufficiently large value */
    transition: max-height 0.5s ease-in;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−";
}


/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image-wrapper {
        max-height: 500px;
    }
}

@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: clamp(2rem, 8vw, 3rem);
    }

    .page-cockfighting__main-description {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        padding: 0 15px;
        box-sizing: border-box;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-cockfighting__section-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
        margin-bottom: 30px;
    }

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

    .page-cockfighting__intro-section,
    .page-cockfighting__types-section,
    .page-cockfighting__rules-section,
    .page-cockfighting__video-section,
    .page-cockfighting__strategies-section,
    .page-cockfighting__safety-section,
    .page-cockfighting__cta-banner,
    .page-cockfighting__faq-section {
        padding: 60px 0;
    }

    .page-cockfighting__grid,
    .page-cockfighting__feature-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card-image {
        height: 180px;
    }

    .page-cockfighting__numbered-list li {
        padding: 20px 20px 20px 50px;
    }

    .page-cockfighting__numbered-list li::before {
        left: 15px;
        top: 20px;
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }

    .page-cockfighting__video-wrapper {
        padding-bottom: 75%; /* Adjust for mobile aspect ratio if needed, or keep 16:9 */
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-cockfighting__video-section .page-cockfighting__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__cta-banner .page-cockfighting__btn-primary,
    .page-cockfighting__cta-banner .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
    }

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

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

    /* Images responsive */
    .page-cockfighting img {
      max-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;
      overflow: hidden; /* Ensure no overflow */
    }
    
    /* Ensure no filter on images */
    .page-cockfighting img {
        filter: none !important;
    }
}