/* style/cockfighting.css */
/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default dark text for light body background */
    line-height: 1.6;
    background-color: var(--background-color, #ffffff); /* Fallback to white if var not set */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px; /* Minimum height for hero */
    padding: 80px 20px; /* Adjust padding for content */
    overflow: hidden;
    background-color: #f0f8ff; /* Light background for hero */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    background-color: rgba(255, 255, 255, 0.85); /* Semi-transparent white background for text */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    color: #26A9E0; /* Brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

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

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

/* General Section Styles */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.page-cockfighting__subtitle {
    font-size: 1.2em;
    text-align: center;
    color: #666666;
    margin-bottom: 50px;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

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

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #444444;
}

.page-cockfighting__image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__section-footer {
    text-align: center;
    font-size: 1.2em;
    margin-top: 40px;
    color: #26A9E0;
    font-weight: bold;
}

/* Why Choose Section (Dark Background) */
.page-cockfighting__why-choose-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

.page-cockfighting__why-choose-section .page-cockfighting__section-title {
    color: #ffffff; /* White title on dark background */
}

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

.page-cockfighting__feature-card {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white on blue */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-card .page-cockfighting__card-title {
    font-size: 1.5em;
    color: #ffffff;
    margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
    font-size: 1em;
    color: #f0f0f0;
}

/* How To Play Section */
.page-cockfighting__how-to-play-section {
    padding: 80px 0;
    background-color: #f9f9f9;
}

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

.page-cockfighting__step-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-icon {
    width: 60px;
    height: 60px;
    background-color: #26A9E0;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.page-cockfighting__step-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__step-card p {
    font-size: 1em;
    color: #555555;
}

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

/* Promotions Section (Dark Background) */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand primary color */
    color: #ffffff; /* White text for contrast */
}

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

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

.page-cockfighting__promo-card {
    background-color: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.page-cockfighting__promo-card .page-cockfighting__card-title {
    font-size: 1.4em;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__promo-card p {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-cockfighting__btn-text {
    color: #ffffff;
    text-decoration: underline;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__btn-text:hover {
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-cockfighting__faq-item {
    background-color: #f0f8ff; /* Light blue background for FAQ items */
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #26A9E0;
    cursor: pointer;
    background-color: #e6f7ff; /* Lighter blue for summary */
    border-bottom: 1px solid #d0e9ff;
    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: #d0e9ff;
}

.page-cockfighting__faq-qtext {
    flex-grow: 1;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: #26A9E0;
}

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    font-size: 1.1em;
    color: #555555;
    background-color: #f0f8ff;
}

/* CTA Banner Section */
.page-cockfighting__cta-banner {
    position: relative;
    padding: 100px 20px;
    text-align: center;
    overflow: hidden;
    background-color: #26A9E0; /* Default background if image fails */
    color: #ffffff;
}

.page-cockfighting__cta-banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.page-cockfighting__cta-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    background-color: rgba(0, 0, 0, 0.4); /* Dark overlay for text readability */
    padding: 40px;
    border-radius: 10px;
}

.page-cockfighting__cta-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-cockfighting__cta-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow long words to break */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-cockfighting__btn-primary {
    background-color: #EA7C07; /* Login color */
    color: #ffffff;
    border: 2px solid #EA7C07;
}

.page-cockfighting__btn-primary:hover {
    background-color: #d16b05;
    border-color: #d16b05;
}

.page-cockfighting__btn-primary--large {
    padding: 18px 35px;
    font-size: 1.3em;
}

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #26A9E0;
    border: 2px solid #26A9E0;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #e0f2ff;
    color: #1a8cc4;
    border-color: #1a8cc4;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }

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

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

    .page-cockfighting__cta-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        min-height: 400px;
        padding: 60px 15px;
    }

    .page-cockfighting__hero-content {
        padding: 25px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }

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

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

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

    .page-cockfighting__section-title {
        font-size: 1.8em;
        margin-bottom: 30px;
        padding-top: 40px;
    }

    .page-cockfighting__subtitle {
        font-size: 1em;
        margin-bottom: 30px;
    }

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

    .page-cockfighting__text-block p {
        font-size: 1em;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promo-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__promo-card {
        padding: 25px;
    }

    .page-cockfighting__step-icon {
        width: 50px;
        height: 50px;
        font-size: 1.8em;
    }

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

    .page-cockfighting__cta-banner {
        padding: 60px 15px;
    }

    .page-cockfighting__cta-banner-content {
        padding: 30px;
    }

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

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

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%; /* Full width for buttons on mobile */
    }

    .page-cockfighting__btn-primary--large {
        padding: 15px 25px;
        font-size: 1.1em;
    }

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

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

    .page-cockfighting__faq-answer {
        font-size: 1em;
        padding: 12px 20px 15px;
    }

    /* Mobile image and container responsiveness */
    .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-section,
    .page-cockfighting__about-section,
    .page-cockfighting__why-choose-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-banner {
        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 */
    }

    /* Specific elements that might contain buttons or media */
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__button-group {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 0;
        padding-right: 0;
        flex-wrap: wrap !important;
        gap: 15px; /* Adjust gap for mobile buttons */
        display: flex; /* Ensure flex behavior */
        flex-direction: column; /* Stack buttons vertically on mobile */
    }
}