/* style/cockfighting.css */

/* Custom Colors */
:root {
    --page-cockfighting-primary: #2F6BFF;
    --page-cockfighting-secondary: #6FA3FF;
    --page-cockfighting-button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --page-cockfighting-card-bg: #FFFFFF;
    --page-cockfighting-background: #F4F7FB;
    --page-cockfighting-text-main: #1F2D3D;
    --page-cockfighting-text-dark: #000000; /* Custom Color_1776249996415 */
    --page-cockfighting-border: #D6E2FF;
    --page-cockfighting-glow: #A5C4FF;
}

/* Base styles for the page content, ensuring contrast with body background */
.page-cockfighting {
    color: var(--page-cockfighting-text-main); /* Default text color for the page */
    background-color: var(--page-cockfighting-background); /* Page specific background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.page-cockfighting__dark-section {
    background: var(--page-cockfighting-primary);
    color: #ffffff; /* Forced white text for dark background */
}

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__section-description {
    color: #ffffff;
}

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

.page-cockfighting__text-center {
    text-align: center;
}

.page-cockfighting__highlight {
    color: var(--page-cockfighting-primary);
    font-weight: bold;
}

.page-cockfighting__dark-section .page-cockfighting__highlight {
    color: #ffffff;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    padding-bottom: 60px;
    background-color: var(--page-cockfighting-primary); /* Fallback background */
}

.page-cockfighting__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    order: 1; /* Image block first in flex order */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.8; /* Slightly dim the image for text contrast */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    color: #ffffff; /* White text on hero */
    order: 2; /* Content block second in flex order */
    max-width: 800px;
    margin-top: -150px; /* Pull content up over the image, but not overlapping text */
    background: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    border-radius: 10px;
    padding-bottom: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #ffffff;
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    opacity: 0.9;
}

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

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

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-dark); /* Use dark text for titles */
}

.page-cockfighting__dark-section .page-cockfighting__section-title {
    color: #ffffff;
}

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

.page-cockfighting__dark-section .page-cockfighting__section-description {
    color: #f0f0f0;
}

/* Intro Section */
.page-cockfighting__intro-section {
    background-color: var(--page-cockfighting-card-bg); /* Use white background for contrast */
}

.page-cockfighting__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__text-block {
    flex: 1;
}

.page-cockfighting__text-block p {
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__image-block {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

/* Bet Types Section */
.page-cockfighting__bet-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__card {
    background: var(--page-cockfighting-card-bg);
    color: var(--page-cockfighting-text-main);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__card-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__card-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__card-image {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: var(--page-cockfighting-background);
}

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

.page-cockfighting__step-card {
    background: var(--page-cockfighting-card-bg);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--page-cockfighting-border);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--page-cockfighting-text-dark);
}

.page-cockfighting__step-text {
    font-size: 1em;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--page-cockfighting-text-main);
}

.page-cockfighting__step-image {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin-top: auto; /* Push image to bottom if content varies */
}

/* Advantages Section */
.page-cockfighting__advantages-section {
    background-color: var(--page-cockfighting-card-bg);
}

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

.page-cockfighting__advantage-card {
    background: var(--page-cockfighting-card-bg);
    color: var(--page-cockfighting-text-main);
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__card-icon {
    width: 200px; /* Min size 200x200 for generation */
    height: 200px;
    max-width: 80px; /* Display size for icons */
    max-height: 80px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensure icons are contained */
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    background-color: var(--page-cockfighting-primary);
    color: #ffffff;
}

.page-cockfighting__promotions-section .page-cockfighting__section-title,
.page-cockfighting__promotions-section .page-cockfighting__section-description {
    color: #ffffff;
}

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

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

.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(--page-cockfighting-text-dark);
    cursor: pointer;
    background-color: #f8f8f8;
    border-bottom: 1px solid var(--page-cockfighting-border);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid transparent; /* No border when open */
}

.page-cockfighting__faq-question:hover {
    background-color: #f0f0f0;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    line-height: 1.6;
    color: var(--page-cockfighting-text-main);
    background-color: var(--page-cockfighting-card-bg);
}

.page-cockfighting__faq-answer p {
    margin-bottom: 10px;
}

.page-cockfighting__faq-answer a {
    color: var(--page-cockfighting-primary);
    text-decoration: none;
}

.page-cockfighting__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: clamp(2em, 5vw, 2.8em);
    }

    .page-cockfighting__section-title {
        font-size: 2em;
    }

    .page-cockfighting__content-grid {
        flex-direction: column;
    }

    .page-cockfighting__hero-content {
        margin-top: -100px; /* Adjust for smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__section {
        padding: 40px 0;
    }

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

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

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 10px 15px;
        font-size: 0.95em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-cockfighting__section-title {
        font-size: 1.8em;
    }

    .page-cockfighting__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-cockfighting__bet-cards-grid,
    .page-cockfighting__guide-steps-grid,
    .page-cockfighting__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

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

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__hero-content,
    .page-cockfighting__text-block,
    .page-cockfighting__image-block,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__bet-cards-grid,
    .page-cockfighting__guide-steps-grid,
    .page-cockfighting__advantages-grid,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent content overflow */
    }
    
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }

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

    .page-cockfighting__faq-answer {
        padding: 15px 20px;
    }
    
    .page-cockfighting__card-icon {
        max-width: 60px; /* Smaller display size for icons on mobile */
        max-height: 60px;
    }
}

/* Ensure no filter is used on images */
.page-cockfighting img {
    filter: none !important;
}

/* CSS for contrast fix if needed, though smart color selection should prevent it */
.page-cockfighting__contrast-fix {
  background: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #e0e0e0 !important;
}

.page-cockfighting__text-contrast-fix {
  color: #333333 !important;
  text-shadow: none !important;
}