/* style/cockfighting.css */

/* --- General Styles & Body Background --- */
/* Body padding-top is handled by shared.css var(--header-offset) */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Assuming var(--secondary-color) is white */
}

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

/* --- Section Styling --- */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

.page-cockfighting__subsection-title {
    font-size: 1.8em;
    color: #26A9E0;
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
}

.page-cockfighting__list,
.page-cockfighting__ordered-list {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.page-cockfighting__list li,
.page-cockfighting__ordered-list li {
    margin-bottom: 10px;
    font-size: 1.05em;
}

/* --- Hero Section --- */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: #FFFFFF;
    text-align: center;
    box-sizing: border-box;
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1600px; /* Adjust max-width as needed for hero image */
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 10px;
}

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

.page-cockfighting__hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* Use clamp for H1 */
    color: #26A9E0;
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: bold;
}

.page-cockfighting__description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #555555;
}

/* --- Buttons --- */
.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width for responsive padding */
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px; /* Add padding to prevent overflow */
}

.page-cockfighting__cta-buttons--center {
    justify-content: center;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__small-btn {
    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;
    max-width: 100%; /* Ensure buttons adapt to container width */
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

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

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

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

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

.page-cockfighting__small-btn {
    padding: 10px 20px;
    font-size: 0.9em;
    margin-top: 15px;
}

/* --- Introduction Section --- */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

.page-cockfighting__feature-list {
    list-style-type: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.page-cockfighting__feature-item {
    background-color: #f8f8f8;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid #26A9E0;
}

.page-cockfighting__feature-item strong {
    color: #26A9E0;
    display: block;
    margin-bottom: 10px;
    font-size: 1.1em;
}

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

.page-cockfighting__dark-section .page-cockfighting__section-title,
.page-cockfighting__dark-section .page-cockfighting__subsection-title {
    color: #FFFFFF; /* White titles on dark background */
}

.page-cockfighting__image-with-text {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.page-cockfighting__image-with-text--reversed {
    flex-direction: row-reverse;
}

.page-cockfighting__content-image {
    flex: 1;
    min-width: 300px; /* Ensure image doesn't get too small */
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover;
}

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

/* --- Registration Section --- */
.page-cockfighting__registration-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-cockfighting__step-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.page-cockfighting__process-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    margin-top: 40px;
    object-fit: cover;
}

/* --- Security Section --- */
.page-cockfighting__security-section {
    padding: 80px 0;
    background-color: #FFFFFF;
}

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

.page-cockfighting__info-card {
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.page-cockfighting__info-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__image-container--full-width {
    width: 100%;
    max-width: 1200px;
    margin: 40px auto;
    overflow: hidden;
    border-radius: 10px;
}

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

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

.page-cockfighting__faq-list {
    margin-top: 40px;
}

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

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

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

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

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

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

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

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    line-height: 1.7;
}

/* --- Conclusion Section --- */
.page-cockfighting__conclusion-section {
    padding: 80px 0;
    text-align: center;
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: #FFFFFF;
}

.page-cockfighting__conclusion-section .page-cockfighting__text-block {
    max-width: 800px;
    margin: 0 auto 40px auto;
    font-size: 1.15em;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding: 40px 15px;
    }

    .page-cockfighting__section-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-cockfighting__subsection-title {
        font-size: 1.6em;
    }

    .page-cockfighting__image-with-text {
        flex-direction: column;
        gap: 30px;
    }

    .page-cockfighting__image-with-text--reversed {
        flex-direction: column; /* Reset order for mobile */
    }

    .page-cockfighting__content-image,
    .page-cockfighting__text-content {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

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

    .page-cockfighting__hero-section {
        padding: 20px 15px;
        padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
    }

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

    .page-cockfighting__description {
        font-size: 1em;
    }

    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px !important; /* Ensures buttons don't overflow */
    }

    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__small-btn {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Image responsiveness */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-container,
    .page-cockfighting__image-with-text,
    .page-cockfighting__steps-grid,
    .page-cockfighting__info-grid,
    .page-cockfighting__faq-list,
    .page-cockfighting__feature-list,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important; /* Ensure no horizontal scroll */
        padding-left: 0;
        padding-right: 0;
    }

    .page-cockfighting__hero-image-wrapper,
    .page-cockfighting__image-container,
    .page-cockfighting__image-with-text {
        margin-left: auto;
        margin-right: auto;
    }

    .page-cockfighting__content-image {
        min-width: unset; /* Remove min-width for mobile */
    }

    .page-cockfighting__feature-item,
    .page-cockfighting__step-card,
    .page-cockfighting__info-card,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

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

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
    }

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

    .page-cockfighting__subsection-title {
        font-size: 1.4em;
    }
}