/* style/cockfighting.css */

/* Variables */
:root {
    --color-primary: #11A84E;
    --color-secondary: #22C768;
    --color-bg-card: #11271B;
    --color-bg-main: #08160F;
    --color-text-main: #F2FFF6;
    --color-text-secondary: #A7D9B8;
    --color-border: #2E7A4E;
    --color-glow: #57E38D;
    --color-gold: #F2C14E;
    --color-deep-green: #0A4B2C;

    /* Button gradient */
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--color-text-main); /* Default text color for dark background */
    background-color: var(--color-bg-main); /* Ensure main content background is dark */
    line-height: 1.6;
    padding-bottom: 60px; /* Add some padding at the bottom before footer */
}

/* Ensure all links inherit color or have specific color for contrast */
.page-cockfighting a {
    color: var(--color-gold); /* Links stand out */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting a:hover {
    color: var(--color-glow);
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-text-main);
    text-align: center;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
}

.page-cockfighting__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
    display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin-top: 50px; /* Push content down from the very top */
    box-sizing: border-box;
}

.page-cockfighting__main-title {
    font-size: clamp(2rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-gold);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    margin-bottom: 30px;
    color: var(--color-text-main);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

/* Section Titles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-gold);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    padding: 0 15px;
}

/* General Content Area */
.page-cockfighting__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
    background-color: var(--color-bg-card); /* Card background for content sections */
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__content-area p {
    margin-bottom: 15px;
    color: var(--color-text-main);
}

.page-cockfighting__content-area ul,
.page-cockfighting__content-area ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.page-cockfighting__content-area li {
    margin-bottom: 8px;
    color: var(--color-text-main);
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Ensure long words break */
    box-sizing: border-box; /* Include padding and border in element's total width and height */
    max-width: 100%; /* Ensure button doesn't overflow container */
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-cockfighting__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--color-glow);
    border: 2px solid var(--color-glow);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-cockfighting__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    color: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.9em;
}

/* Card Grid */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-cockfighting__card {
    background-color: var(--color-bg-card);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__card-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--color-gold);
    margin: 20px 20px 10px;
}

.page-cockfighting__card-description {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    padding: 0 20px 20px;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 40px 20px;
    background-color: var(--color-bg-card);
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    max-width: 1200px; /* Match content area max-width */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    width: 100%; /* Ensure desktop width is 100% within its container */
    margin: 0 auto 30px;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-border);
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    cursor: pointer; /* Indicate it's clickable */
}

.page-cockfighting__video-text {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__video-text p {
    color: var(--color-text-secondary);
    font-size: 1.1em;
}

/* Guide Section */
.page-cockfighting__guide-step {
    background-color: var(--color-deep-green);
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--color-border);
}

.page-cockfighting__guide-title {
    font-size: 1.6rem;
    color: var(--color-gold);
    margin-bottom: 20px;
    text-align: center;
}

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

.page-cockfighting__step-list li {
    margin-bottom: 10px;
}

.page-cockfighting__step-list li strong {
    color: var(--color-glow);
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--color-border);
}

/* Feature List */
.page-cockfighting__feature-list,
.page-cockfighting__promo-list,
.page-cockfighting__tip-list,
.page-cockfighting__support-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__feature-list li,
.page-cockfighting__promo-list li,
.page-cockfighting__tip-list li,
.page-cockfighting__support-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
    font-size: 1.05em;
    color: var(--color-text-main);
}

.page-cockfighting__feature-list li::before,
.page-cockfighting__promo-list li::before,
.page-cockfighting__tip-list li::before,
.page-cockfighting__support-list li::before {
    content: '✅'; /* Checkmark icon */
    position: absolute;
    left: 0;
    color: var(--color-glow);
    font-size: 1.2em;
    line-height: 1;
}

.page-cockfighting__text-secondary {
    color: var(--color-text-secondary);
    font-size: 0.95em;
    text-align: center;
    margin-top: 30px;
}

/* FAQ Section */
.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    background-color: var(--color-deep-green);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
    background-color: var(--color-bg-card); /* Slightly darker for question header */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker 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: var(--color-border);
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--color-gold);
}

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-glow);
    margin-left: 15px;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    color: var(--color-primary);
}

.page-cockfighting__faq-answer {
    padding: 0 20px 20px;
    font-size: 1rem;
    color: var(--color-text-secondary);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-content {
        padding: 15px;
        margin-top: 30px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 4.5vw, 3rem);
    }

    .page-cockfighting__subtitle {
        font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    }

    .page-cockfighting__content-area {
        padding: 30px 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        margin-bottom: 30px;
    }

    .page-cockfighting__card-title {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-bottom: 40px;
    }

    .page-cockfighting__main-title {
        font-size: 2.2rem;
    }

    .page-cockfighting__subtitle {
        font-size: 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;
        padding: 12px 20px !important;
        font-size: 1em !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8rem;
        margin-top: 40px;
        margin-bottom: 25px;
    }

    .page-cockfighting__content-area {
        padding: 25px 15px;
        margin-bottom: 30px;
    }

    .page-cockfighting__card-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    /* Video responsiveness */
    .page-cockfighting__video-section {
        padding: 25px 15px !important;
        margin-bottom: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Maintain aspect ratio */
        display: block !important;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-cockfighting__content-image {
        margin: 20px auto !important;
    }

    /* Ensure all content containers are responsive */
    .page-cockfighting__introduction,
    .page-cockfighting__types,
    .page-cockfighting__guide,
    .page-cockfighting__features,
    .page-cockfighting__promotions,
    .page-cockfighting__tips,
    .page-cockfighting__support,
    .page-cockfighting__faq,
    .page-cockfighting__conclusion {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__guide-step {
        padding: 20px;
        margin-bottom: 20px;
    }

    .page-cockfighting__guide-title {
        font-size: 1.4rem;
    }

    .page-cockfighting__step-list {
        margin-left: 15px;
        font-size: 0.95em;
    }

    .page-cockfighting__feature-list li,
    .page-cockfighting__promo-list li,
    .page-cockfighting__tip-list li,
    .page-cockfighting__support-list li {
        font-size: 0.9em;
        padding-left: 25px;
    }

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

    .page-cockfighting__faq-toggle {
        font-size: 1.3rem;
    }

    .page-cockfighting__faq-answer {
        padding: 0 15px 15px;
        font-size: 0.95rem;
    }
}