/* style/cockfighting.css */

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

/* Base styles for the page content */
.page-cockfighting {
    background-color: var(--cockfighting-background); /* Deep Green */
    color: var(--cockfighting-main-text); /* Light text for dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Sections */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
}

.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Add horizontal padding for content containers */
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: 2.8em;
    font-weight: 700;
    color: var(--cockfighting-gold); /* Using gold for main titles for emphasis */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-cockfighting__section-description {
    font-size: 1.1em;
    color: var(--cockfighting-secondary-text);
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    overflow: hidden; /* Ensure video doesn't overflow */
    background-color: var(--cockfighting-deep-green); /* Fallback background for hero */
}

.page-cockfighting__hero-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio (1080 / 1920 = 0.5625) */
    overflow: hidden;
    margin-bottom: 30px;
}

.page-cockfighting__hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__hero-video-overlay-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: pointer;
}

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

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 4vw + 1rem, 3.8rem); /* Responsive H1 font size */
    font-weight: 800;
    color: var(--cockfighting-gold);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.page-cockfighting__intro-text {
    font-size: 1.2em;
    color: var(--cockfighting-main-text);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Call to Action Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    box-sizing: border-box; /* Ensure padding doesn't increase total width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    max-width: 100%; /* Ensure buttons don't overflow */
}

.page-cockfighting__btn-primary {
    background: var(--cockfighting-button-gradient);
    color: var(--cockfighting-main-text);
    border: none;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: var(--cockfighting-primary);
    color: var(--cockfighting-main-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 0.95em;
    margin-top: 15px;
}

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

.page-cockfighting__feature-card {
    background-color: var(--cockfighting-card-bg); /* Darker background for cards */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cockfighting-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-cockfighting__feature-icon {
    width: 100%; /* Ensure image fills card width */
    max-width: 400px; /* Recommended image size */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block; /* Ensure no extra space below image */
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__feature-title {
    font-size: 1.6em;
    color: var(--cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__feature-text {
    font-size: 1em;
    color: var(--cockfighting-secondary-text);
}

/* Grid 2 Columns (for bet types) */
.page-cockfighting__grid-2-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* Card styles for light background */
.page-cockfighting__card {
    background-color: var(--cockfighting-card-bg);
    color: var(--cockfighting-main-text);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cockfighting-border);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: var(--cockfighting-gold);
    margin-bottom: 10px;
}

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

/* Steps List */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-cockfighting__step-item {
    background-color: var(--cockfighting-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cockfighting-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-cockfighting__step-title {
    font-size: 1.6em;
    color: var(--cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__step-text {
    font-size: 1em;
    color: var(--cockfighting-secondary-text);
    flex-grow: 1; /* Allow text to take available space */
}

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

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

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

.page-cockfighting__promo-title {
    font-size: 1.6em;
    color: var(--cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__promo-text {
    font-size: 1em;
    color: var(--cockfighting-secondary-text);
    margin-bottom: 20px;
}

/* Tips List */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-cockfighting__tip-item {
    background-color: var(--cockfighting-card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--cockfighting-border);
}

.page-cockfighting__tip-title {
    font-size: 1.6em;
    color: var(--cockfighting-gold);
    margin-bottom: 15px;
}

.page-cockfighting__tip-text {
    font-size: 1em;
    color: var(--cockfighting-secondary-text);
}


/* FAQ Section */
.page-cockfighting__faq {
    padding-bottom: 80px;
}

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

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

.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 browsers */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--cockfighting-main-text);
    cursor: pointer;
    background-color: var(--cockfighting-deep-green); /* Slightly different dark green for question background */
    border-bottom: 1px solid var(--cockfighting-divider);
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: var(--cockfighting-primary); /* Hover effect for question */
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
    color: var(--cockfighting-gold); /* Gold for FAQ questions */
}

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    content: "−"; /* Change to minus when open */
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--cockfighting-secondary-text);
    background-color: var(--cockfighting-card-bg);
    border-top: 1px solid var(--cockfighting-divider);
}

/* Images and Videos Responsive */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting video {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Mobile responsiveness */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 2.2em;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw + 1rem, 3rem);
    }
    .page-cockfighting__grid-2-cols {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 15px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw + 0.5rem, 2.5rem);
    }
    .page-cockfighting__intro-text {
        font-size: 1em;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to button container */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

    /* Images mobile responsive */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important; /* Ensure image takes full width of parent */
        height: auto !important;
        display: block !important;
    }
    /* Image containers */
    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card,
    .page-cockfighting__step-item,
    .page-cockfighting__tip-item,
    .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 !important; /* Prevent overflow */
    }

    /* Video mobile responsive */
    .page-cockfighting video,
    .page-cockfighting__hero-video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    /* Video containers */
    .page-cockfighting__hero-video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        overflow: hidden !important;
    }
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 40px;
    }
    /* Ensure content images are not smaller than 200px. This CSS ensures max-width:100% and height:auto, effectively preventing smaller than 200px if container is larger. */
    .page-cockfighting__feature-icon {
        min-width: 200px;
        min-height: 200px;
    }
}

/* Ensure content area images are not smaller than 200px */
.page-cockfighting img:not(.page-cockfighting__hero-video) {
    min-width: 200px;
    min-height: 200px;
}

/* No CSS filter on images */
.page-cockfighting img {
    filter: none !important;
}

/* Specific text colors for contrast */
.page-cockfighting h1, .page-cockfighting h2, .page-cockfighting h3 {
    color: var(--cockfighting-gold); /* Gold for headings */
}
.page-cockfighting p, .page-cockfighting li {
    color: var(--cockfighting-main-text); /* Main light text for paragraphs and lists */
}
.page-cockfighting__feature-text, .page-cockfighting__card-text, .page-cockfighting__step-text, .page-cockfighting__promo-text, .page-cockfighting__tip-text, .page-cockfighting__faq-answer {
    color: var(--cockfighting-secondary-text); /* Secondary text for descriptive content */
}