/* style/cockfighting.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --btn-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-dark: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
    --text-on-dark: #ffffff; /* For general text on dark backgrounds */
    --text-on-light: #333333; /* For general text on light backgrounds */
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--background-dark); /* Explicitly setting the page's background */
}

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

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

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    position: relative;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 10;
    padding: 40px 20px;
    max-width: 900px;
    margin-top: -100px; /* Adjust to slightly overlap the image */
    background: rgba(8, 22, 15, 0.8); /* Semi-transparent dark background for text */
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

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

.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-dark);
    padding-top: 10px; /* Small top padding, body handles --header-offset */
}

.page-cockfighting__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: var(--card-bg);
    border-radius: 10px;
    margin: 0 auto 30px auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    width: 100%; /* Ensure desktop width is 100% */
}

.page-cockfighting__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block; /* Ensure it's a block element */
}

.page-cockfighting__video-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.5);
}

.page-cockfighting__text-block {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-align: justify;
}

.page-cockfighting__text-block strong {
    color: var(--text-main);
}

/* Card Styles */
.page-cockfighting__card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--text-secondary);
}

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

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

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

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

/* Grid Layouts */
.page-cockfighting__grid-layout,
.page-cockfighting__steps-grid,
.page-cockfighting__feature-grid,
.page-cockfighting__security-grid,
.page-cockfighting__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
    margin-bottom: 50px;
}

/* List Styles (Strategy Section) */
.page-cockfighting__list {
    list-style: none;
    padding: 0;
    margin: 40px 0;
}

.page-cockfighting__list-item {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 40px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.page-cockfighting__list-item:last-child {
    margin-bottom: 0;
}

.page-cockfighting__list-image {
    width: 250px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.page-cockfighting__list-content {
    flex-grow: 1;
}

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

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

/* Button Styles */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-cockfighting__btn-primary {
    background: var(--btn-gradient);
    color: var(--text-on-dark); /* White text on dark button */
    box-shadow: 0 5px 15px rgba(34, 199, 104, 0.4);
}

.page-cockfighting__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    box-shadow: 0 8px 20px rgba(34, 199, 104, 0.6);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(17, 168, 78, 0.3);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
    box-shadow: 0 0 20px rgba(17, 168, 78, 0.5);
    transform: translateY(-2px);
}

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

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

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

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

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

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

/* Conclusion Section */
.page-cockfighting__conclusion-section {
    text-align: center;
    padding-bottom: 60px;
}

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

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

    .page-cockfighting__description {
        font-size: 1rem;
    }

    .page-cockfighting__list-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page-cockfighting__list-image {
        width: 100%;
        height: auto;
        max-width: 400px;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px; /* Mobile padding */
    }

    .page-cockfighting__hero-content {
        margin-top: -60px;
        padding: 25px 15px;
        border-radius: 10px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }

    .page-cockfighting__description {
        font-size: 0.95rem;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        max-width: 100%; /* Ensure container fills width */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px; /* Adjust padding for smaller screens */
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5.5vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-cockfighting__text-block {
        font-size: 0.9rem;
    }

    .page-cockfighting__grid-layout,
    .page-cockfighting__steps-grid,
    .page-cockfighting__feature-grid,
    .page-cockfighting__security-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        margin-bottom: 30px;
    }

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

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

    .page-cockfighting__list-item {
        padding: 20px;
        gap: 15px;
    }

    .page-cockfighting__list-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px; /* Enforce minimum size */
        min-height: 200px; /* Enforce minimum size */
        object-fit: cover;
    }

    .page-cockfighting__list-title {
        font-size: 1.2rem;
    }

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

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

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

    /* Images responsiveness for content area */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px; /* Enforce min-size for content images */
        min-height: 200px; /* Enforce min-size for content images */
    }
    
    /* Video responsiveness for content area */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* Video containers mobile adaptation */
    .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;
    }
    
    /* Small top padding for video section on mobile */
    .page-cockfighting__video-section {
        padding-top: 10px !important;
    }
    
    /* Ensure all containers with images/buttons are responsive */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__list-item,
    .page-cockfighting__feature-card,
    .page-cockfighting__security-item,
    .page-cockfighting__promo-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* Padding handled by .page-cockfighting__container for main sections */
    }
}