/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light background */
    line-height: 1.6;
    background-color: #FFFFFF; /* Default body background is white */
}

/* Header offset for main content */
.page-cockfighting__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-offset, 120px); /* Ensures content starts below fixed header */
    min-height: 600px; /* Minimum height for hero section */
}

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

.page-cockfighting__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 2;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 3;
    max-width: 900px;
    padding: 40px 20px;
    color: #FFFFFF;
}

.page-cockfighting__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

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

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

/* General Section Styling */
.page-cockfighting__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

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

.page-cockfighting__text-block {
    font-size: 1.1em;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Section Specific Styles */
.page-cockfighting__introduction-section,
.page-cockfighting__guide-section,
.page-cockfighting__tournaments-section,
.page-cockfighting__faq-section {
    background-color: #FFFFFF; /* Light background */
    color: #333333;
}

.page-cockfighting__types-section,
.page-cockfighting__strategy-section,
.page-cockfighting__benefits-section,
.page-cockfighting__conclusion-section {
    background-color: #26A9E0; /* Dark background (primary color) */
    color: #FFFFFF;
}

.page-cockfighting__types-section .page-cockfighting__section-title,
.page-cockfighting__strategy-section .page-cockfighting__section-title,
.page-cockfighting__benefits-section .page-cockfighting__section-title,
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: #FFFFFF; /* White titles on dark background */
}

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

.page-cockfighting__card {
    background-color: #FFFFFF;
    color: #333333;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__card-image {
    max-width: 100%;
    height: 200px; /* Fixed height for consistency, object-fit will handle aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-cockfighting__card-text {
    font-size: 1em;
    text-align: justify;
}

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

.page-cockfighting__step-item {
    background-color: #F8F8F8;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__step-number {
    font-size: 2.5em;
    color: #26A9E0;
    font-weight: bold;
    margin-bottom: 15px;
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    color: #333333;
    margin-bottom: 10px;
}

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

.page-cockfighting__strategy-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__list-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    margin-bottom: 15px;
    border-left: 5px solid #FFFFFF;
    border-radius: 5px;
    color: #FFFFFF;
    font-size: 1.1em;
}

.page-cockfighting__list-item strong {
    color: #FFFFFF;
}

.page-cockfighting__tournament-info {
    max-width: 900px;
    margin: 40px auto;
    background-color: #F8F8F8;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__info-subtitle {
    font-size: 1.5em;
    color: #26A9E0;
    margin-top: 25px;
    margin-bottom: 10px;
    font-weight: bold;
}

.page-cockfighting__info-text {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 15px;
    text-align: justify;
}

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

.page-cockfighting__benefit-item {
    background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #FFFFFF;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__benefit-title {
    font-size: 1.4em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-cockfighting__benefit-text {
    font-size: 1em;
    text-align: justify;
}

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

.page-cockfighting__faq-item {
    background-color: #F8F8F8;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden; /* For details tag */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #333333;
    cursor: pointer;
    background-color: #EFEFEF;
    border-bottom: 1px solid #E0E0E0;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-item[open] > .page-cockfighting__faq-question {
    background-color: #E0E0E0;
    color: #26A9E0;
}

.page-cockfighting__faq-item summary { /* For native details tag */
    list-style: none;
}
.page-cockfighting__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
}

.page-cockfighting__faq-answer {
    padding: 20px 25px;
    font-size: 1.1em;
    color: #555555;
    background-color: #FFFFFF;
    border-top: 1px solid #E0E0E0;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    text-align: justify;
}

/* Buttons */
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping for buttons */
    word-wrap: break-word;
    text-align: center;
}

.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: #e0f2f7;
    color: #26A9E0;
}

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

.page-cockfighting__text-link {
    color: #26A9E0;
    text-decoration: underline;
}

.page-cockfighting__text-link:hover {
    color: #1a8cc7;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 2.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 1.2em;
    }
    .page-cockfighting__section-title {
        font-size: 2em;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
        min-height: 400px; /* Adjust minimum height for mobile hero */
    }
    .page-cockfighting__hero-title {
        font-size: 2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__section-title {
        font-size: 1.8em;
    }
    .page-cockfighting__container {
        padding: 20px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__text-block {
        font-size: 1em;
    }
    .page-cockfighting__types-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__card-image {
        height: 220px; /* Adjust height for mobile cards */
    }

    /* Mobile image adaptation */
    .page-cockfighting img {
      max-width: 100% !important;
      width: 100% !important; /* Ensure images fill container */
      height: auto !important;
      display: block !important;
      box-sizing: border-box !important;
    }
    
    /* 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: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-cta-group,
    .page-cockfighting__cta-center {
        flex-direction: column !important;
        gap: 15px !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Containers for images/buttons to prevent overflow */
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__types-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__benefits-grid {
        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__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-cockfighting__faq-answer {
        font-size: 1em;
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 1.8em;
    }
    .page-cockfighting__hero-description {
        font-size: 0.9em;
    }
    .page-cockfighting__section-title {
        font-size: 1.6em;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 20px;
        font-size: 1em;
    }
}

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