/* style/cockfighting.css */

/* Base styles for the page-cockfighting scope */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default dark text for light body background */
    background-color: #FFFFFF; /* Explicitly set for clarity, though shared.css might set body */
}

/* Section spacing */
.page-cockfighting__section,
.page-cockfighting__hero-section,
.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__types-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__strategy-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 20px;
    margin-bottom: 0; /* Ensure no extra margin between sections */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    padding-top: var(--header-offset, 120px); /* Account for fixed header */
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__dark-section {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 20px;
}

.page-cockfighting__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

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

.page-cockfighting__hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* General button styles */
.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;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box; /* Crucial for responsive buttons */
}

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom red for primary actions */
    color: #FFFF00; /* Custom yellow for text */
    border: 2px solid #C30808;
}

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

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

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #017439;
    border-color: #ffffff;
}

/* Section Titles */
.page-cockfighting__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #017439;
}

.page-cockfighting__section-subtitle {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Content Grid (for image/text blocks) */
.page-cockfighting__content-grid {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

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

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

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

/* Features Section */
.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.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__feature-card .page-cockfighting__card-description {
    color: #f0f0f0;
}

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

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

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

.page-cockfighting__type-card .page-cockfighting__card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__type-card .page-cockfighting__card-title {
    font-size: 1.4em;
    margin: 20px 15px 10px;
    color: #017439;
}

.page-cockfighting__type-card .page-cockfighting__card-description {
    font-size: 0.95em;
    padding: 0 15px 20px;
    color: #555555;
}

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

.page-cockfighting__step-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__step-number {
    font-size: 3em;
    font-weight: bold;
    color: #FFFF00; /* Custom yellow for step numbers */
    margin-bottom: 15px;
}

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

.page-cockfighting__step-card .page-cockfighting__card-description {
    color: #f0f0f0;
}

/* Strategy Section */
.page-cockfighting__strategy-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.page-cockfighting__strategy-content .page-cockfighting__text-block h3 {
    color: #017439;
    font-size: 1.6em;
    margin-top: 25px;
    margin-bottom: 10px;
}

.page-cockfighting__strategy-content .page-cockfighting__text-block p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

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

.page-cockfighting__promotion-card {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-cockfighting__promotion-card .page-cockfighting__card-description {
    color: #f0f0f0;
    margin-bottom: 25px;
    flex-grow: 1;
}

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

.page-cockfighting__faq-item {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-cockfighting__faq-item summary {
    list-style: none; /* Remove default marker */
    padding: 20px 25px;
    font-weight: bold;
    font-size: 1.1em;
    color: #017439;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f9f9f9;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item summary:hover {
    background-color: #e6f7ed;
}

.page-cockfighting__faq-item[open] summary {
    background-color: #e6f7ed;
}

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

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

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

.page-cockfighting__faq-answer {
    padding: 15px 25px 20px;
    border-top: 1px solid #e0e0e0;
    color: #555555;
    font-size: 1em;
    line-height: 1.6;
}

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

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

/* Call to Action Section */
.page-cockfighting__cta-section {
    text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__content-grid,
    .page-cockfighting__strategy-content {
        flex-direction: column;
    }
    .page-cockfighting__strategy-content .page-cockfighting__image-block {
        order: -1; /* Image above text on smaller screens */
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure padding for mobile */
    }
    .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__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-cockfighting__section,
    .page-cockfighting__hero-section,
    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__types-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__strategy-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 15px;
    }
    .page-cockfighting__container {
        padding: 0; /* Remove container padding as section padding handles it */
    }

    /* Images and video responsive rules */
    .page-cockfighting img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-cockfighting__image-block,
    .page-cockfighting__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
    /* Content containers for mobile overflow */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__hero-content,
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__faq-list,
    .page-cockfighting__content-grid,
    .page-cockfighting__features-grid,
    .page-cockfighting__types-grid,
    .page-cockfighting__steps-grid,
    .page-cockfighting__promotions-grid,
    .page-cockfighting__strategy-content {
        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 */
    }
    .page-cockfighting__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-cockfighting__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

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

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

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
}

/* Ensure link colors are visible */
.page-cockfighting a {
    color: #017439;
    text-decoration: underline;
}

.page-cockfighting a:hover {
    color: #005f2f;
}

.page-cockfighting__dark-section a {
    color: #FFFF00;
}

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