/* style/cockfighting.css */

/* Variables from custom palette */
:root {
    --page-cockfighting-primary-color: #11A84E; /* Main color */
    --page-cockfighting-secondary-color: #22C768; /* Auxiliary color */
    --page-cockfighting-button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    --page-cockfighting-bg-color: #08160F; /* Background */
    --page-cockfighting-card-bg: #11271B; /* Card BG */
    --page-cockfighting-text-main: #F2FFF6; /* Text Main */
    --page-cockfighting-text-secondary: #A7D9B8; /* Text Secondary */
    --page-cockfighting-border-color: #2E7A4E; /* Border */
    --page-cockfighting-glow-color: #57E38D; /* Glow */
    --page-cockfighting-gold-color: #F2C14E; /* Gold */
    --page-cockfighting-divider-color: #1E3A2A; /* Divider */
    --page-cockfighting-deep-green: #0A4B2C; /* Deep Green */
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    background-color: var(--page-cockfighting-bg-color); /* Dark background */
    color: var(--page-cockfighting-text-main); /* Light text for dark background */
    line-height: 1.6;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    box-sizing: border-box;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* H1 font size with clamp */
    color: var(--page-cockfighting-gold-color);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

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

/* Call to Action Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    width: 100%; /* Ensure button container is full width */
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 50px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    min-width: 180px; /* Minimum width for buttons */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
    background: var(--page-cockfighting-button-gradient);
    color: var(--page-cockfighting-text-main); /* Light text for dark button */
    border: 2px solid var(--page-cockfighting-glow-color);
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: var(--page-cockfighting-glow-color); /* Green text for light button */
    border: 2px solid var(--page-cockfighting-glow-color);
}

.page-cockfighting__btn-secondary:hover {
    background-color: var(--page-cockfighting-glow-color);
    color: var(--page-cockfighting-bg-color); /* Dark text on hover */
    transform: translateY(-3px);
}

/* Video Section */
.page-cockfighting__video-section {
    padding: 40px 20px;
    text-align: center;
    background-color: var(--page-cockfighting-deep-green); /* Slightly different dark background */
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__video-container {
    width: 100%; /* Desktop width */
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
}

.page-cockfighting__video-link {
    display: block;
    margin: 30px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer; /* Indicate it's clickable */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__video {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Min video size */
    min-height: 200px; /* Min video size */
}

.page-cockfighting__cta-buttons--video {
    margin-top: 20px;
}

/* General Content Sections */
.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: var(--page-cockfighting-gold-color);
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.3;
}

.page-cockfighting__section-description {
    font-size: 1.05rem;
    color: var(--page-cockfighting-text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-cockfighting__content-section {
    padding: 60px 0;
}

.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-bg-color);
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__light-bg {
    background-color: var(--page-cockfighting-deep-green); /* Use a lighter dark green for contrast */
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__text-block {
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__text-block h3 {
    font-size: 1.5rem;
    color: var(--page-cockfighting-gold-color);
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 30px auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Features/Cards Section */
.page-cockfighting__features-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__security-section {
    padding: 60px 0;
}

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

.page-cockfighting__grid--reverse {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
}

.page-cockfighting__grid--reverse .page-cockfighting__text-block,
.page-cockfighting__grid--reverse .page-cockfighting__image-wrapper {
    flex: 1;
}

.page-cockfighting__image-wrapper {
    min-width: 200px; /* Ensure image wrapper has min size */
}

.page-cockfighting__card,
.page-cockfighting__promo-card {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-border-color);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: var(--page-cockfighting-text-secondary);
}

.page-cockfighting__card:hover,
.page-cockfighting__promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-title,
.page-cockfighting__promo-title {
    font-size: 1.6rem;
    color: var(--page-cockfighting-gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-cockfighting__promo-description {
    margin-bottom: 20px;
}

.page-cockfighting__promo-card .page-cockfighting__btn-primary,
.page-cockfighting__promo-card .page-cockfighting__btn-secondary {
    width: 100%; /* Make buttons full width in promo cards */
    max-width: 100%;
    margin-top: auto; /* Push to bottom if flex column */
}


/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

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

.page-cockfighting__faq-item summary {
    list-style: none; /* Hide default marker */
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--page-cockfighting-text-main);
    cursor: pointer;
    background-color: var(--page-cockfighting-card-bg);
    transition: background-color 0.3s ease;
}

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

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

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

.page-cockfighting__faq-answer p:last-child {
    margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-cockfighting__grid--reverse {
        flex-direction: column; /* Stack on tablets */
    }
}

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

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

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

    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons on mobile */
        gap: 15px;
        padding: 0 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .page-cockfighting__video-section {
        padding: 30px 15px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .page-cockfighting__section-description {
        font-size: 0.95rem;
    }

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

    .page-cockfighting__content-section,
    .page-cockfighting__features-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__security-section,
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }

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

    .page-cockfighting__card-title,
    .page-cockfighting__promo-title {
        font-size: 1.4rem;
    }

    /* Mobile image responsive styles */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-wrapper,
    .page-cockfighting__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile video responsive styles */
    .page-cockfighting video,
    .page-cockfighting__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    
    .page-cockfighting__video-section,
    .page-cockfighting__video-container,
    .page-cockfighting__video-wrapper,
    .page-cockfighting__video-link {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important;
    }
    
    .page-cockfighting__video-section {
        padding-top: 10px !important; /* Small top padding for video section on mobile */
    }

    /* Ensure all content containers have proper padding on mobile */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__grid,
    .page-cockfighting__text-block,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-content {
        padding: 0; /* Remove horizontal padding from hero content block, let container handle it */
    }
}

/* Ensure minimum image sizes for all content images */
.page-cockfighting__hero-image,
.page-cockfighting__content-image,
.page-cockfighting__promo-image,
.page-cockfighting__video {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images fill their space without distortion */
}