/* style/cockfighting.css */

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

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

/* Section Spacing */
.page-cockfighting__section-spacing {
    padding: 60px 0;
}

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

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

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

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: bold;
    color: var(--page-cockfighting-gold);
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(242, 193, 78, 0.3);
}

.page-cockfighting__section-title--light {
    color: var(--page-cockfighting-text-main);
    text-shadow: none;
}

.page-cockfighting__hero-description,
.page-cockfighting__description {
    font-size: 1.1rem;
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 30px;
}

.page-cockfighting p {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 15px;
}

.page-cockfighting h3 {
    font-size: 1.4rem;
    color: var(--page-cockfighting-text-main);
    margin-bottom: 15px;
}

/* Buttons */
.page-cockfighting__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

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

.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 10px 20px;
    background: transparent;
    color: var(--page-cockfighting-primary-color);
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    border: 2px solid var(--page-cockfighting-primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-cockfighting__btn-secondary:hover {
    background: var(--page-cockfighting-primary-color);
    color: #ffffff;
}

.page-cockfighting__btn-large {
    padding: 18px 40px;
    font-size: 1.2rem;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Upper image, lower text */
    align-items: center;
    justify-content: center;
    min-height: 600px;
    overflow: hidden;
    text-align: center;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

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

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin-top: 40px; /* Separated from image */
    padding: 0 20px;
}

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

.page-cockfighting__content-grid--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-block,
.page-cockfighting__image-block {
    flex: 1;
    min-width: 0; /* Allow shrinking */
}

.page-cockfighting__content-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum image size */
    min-height: 200px; /* Minimum image size */
}

/* Why Choose Section */
.page-cockfighting__dark-section {
    background-color: var(--page-cockfighting-deep-green); /* Deep Green background */
    color: var(--page-cockfighting-text-main);
}

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

.page-cockfighting__feature-card {
    background-color: var(--page-cockfighting-card-bg); /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-cockfighting-divider);
    transition: transform 0.3s ease;
}

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
}

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

.page-cockfighting__feature-description {
    color: var(--page-cockfighting-text-secondary);
}

/* Bet Types Section */
.page-cockfighting__bet-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__bet-list li {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-divider);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__bet-list li h3 {
    color: var(--page-cockfighting-gold);
    margin-top: 0;
    font-size: 1.2rem;
}

.page-cockfighting__bet-list li p {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 0;
}

/* How To Play Section */
.page-cockfighting__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.page-cockfighting__step-card {
    background-color: var(--page-cockfighting-card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--page-cockfighting-divider);
    position: relative;
    padding-top: 60px; /* Space for step number */
}

.page-cockfighting__step-number {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--page-cockfighting-button-gradient);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 2px 8px rgba(42, 209, 111, 0.5);
}

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

.page-cockfighting__step-description {
    color: var(--page-cockfighting-text-secondary);
    margin-bottom: 25px;
}

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

.page-cockfighting__faq-item {
    background-color: var(--page-cockfighting-card-bg);
    border: 1px solid var(--page-cockfighting-divider);
    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;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-cockfighting-text-main);
    background-color: rgba(17, 168, 78, 0.1); /* Slight highlight */
    border-bottom: 1px solid var(--page-cockfighting-divider);
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-question {
    border-bottom: 1px solid var(--page-cockfighting-border);
}

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

.page-cockfighting__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    width: 24px;
    text-align: center;
    color: var(--page-cockfighting-primary-color);
}

.page-cockfighting__faq-answer {
    padding: 20px;
    padding-top: 0;
    color: var(--page-cockfighting-text-secondary);
}

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

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

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

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

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    /* Mobile responsive for images */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min size even on mobile */
        min-height: 200px !important;
    }
    
    /* Mobile responsive for containers holding images/content */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-section,
    .page-cockfighting__introduction-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__conclusion-section,
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__text-block,
    .page-cockfighting__image-block,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    /* Mobile button adaptation */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        /* padding-left and padding-right are handled by parent container's padding */
    }
    
    .page-cockfighting__hero-content .page-cockfighting__btn-primary {
        margin-left: 0;
        margin-right: 0;
    }

    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group,
    .page-cockfighting__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-wrap: wrap !important;
        gap: 10px;
        display: flex; /* Ensure flex for wrapping */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }

    /* Specific padding for hero section on mobile */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding */
        padding-bottom: 40px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-content {
        padding: 0 10px;
    }
    .page-cockfighting__container {
        padding: 0 10px;
    }
}

/* Ensure no text overlay on hero image */
.page-cockfighting__hero-section .page-cockfighting__hero-image {
    position: relative; /* Not absolute */
    z-index: 0;
}
.page-cockfighting__hero-section .page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
}

/* All content images must be at least 200x200px */
.page-cockfighting img:not(.page-cockfighting__hero-image) {
    min-width: 200px;
    min-height: 200px;
}