/* style/cockfighting.css */

/* Base styles for the page content */
.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light background */
    background-color: #f8f9fa; /* Light background for the overall page */
}

/* Sections */
.page-cockfighting__section-title {
    font-size: 2.5em;
    color: #007bff;
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
}

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

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

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

/* Color contrast handling */
.page-cockfighting__light-bg {
    background-color: #ffffff; /* Explicitly white for light sections */
    color: #333333;
    padding: 60px 0;
}

.page-cockfighting__dark-bg {
    background-color: #007bff; /* Primary brand color for dark sections */
    color: #ffffff; /* White text for contrast */
    padding: 60px 0;
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    padding-bottom: 60px;
}

.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;
    color: #ffffff;
}

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

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

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

/* 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;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-cockfighting__btn-primary {
    background-color: #ffc107; /* Auxiliary brand color */
    color: #333333; /* Dark text for contrast on yellow */
    border: 2px solid #ffc107;
}

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

.page-cockfighting__btn-secondary {
    background-color: transparent;
    color: #ffffff; /* White text for contrast on dark hero background */
    border: 2px solid #ffffff;
}

.page-cockfighting__btn-secondary:hover {
    background-color: #ffffff;
    color: #007bff;
}

.page-cockfighting__btn-small {
    padding: 10px 20px;
    font-size: 1em;
}

/* Card Grid for Types Section */
.page-cockfighting__card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

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

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

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

.page-cockfighting__card-title {
    font-size: 1.5em;
    color: #007bff;
    margin: 20px 15px 10px;
}

.page-cockfighting__card-text {
    padding: 0 15px 20px;
    font-size: 1em;
}

/* Guide List Section */
.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__guide-list li {
    background-color: #f0f8ff; /* Light blue background for list items */
    border-left: 5px solid #007bff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__guide-list li p {
    margin-bottom: 10px;
}

/* Strategy Section */
.page-cockfighting__strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__strategy-item {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    color: #333333;
    text-align: center;
    padding-bottom: 20px;
}

.page-cockfighting__strategy-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    margin-bottom: 15px;
}

/* Advantages Section */
.page-cockfighting__advantages-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__advantages-list li {
    background-color: #f0f8ff;
    border-left: 5px solid #ffc107; /* Auxiliary color for accent */
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__advantages-list li p {
    margin-bottom: 10px;
}

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

.page-cockfighting__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    color: #333333; /* Default text color for FAQ item */
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    cursor: pointer;
    background-color: #f0f8ff; /* Light blue background for question */
    border-bottom: 1px solid #e0e0e0;
    transition: background-color 0.3s ease;
}

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

.page-cockfighting__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #007bff;
}

.page-cockfighting__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #007bff;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 20px; /* Padding when active */
}

.page-cockfighting__faq-answer p {
    margin: 0;
    padding-top: 10px; /* Small padding after question when expanded */
}

/* CTA Section */
.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-cockfighting__cta-content {
    max-width: 800px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on smaller screens */
}

/* Images: Global responsive styles */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
    filter: none; /* Ensure no CSS filter is used for images */
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .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__subsection-title {
        font-size: 1.6em;
    }
}

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

    /* Fixed header offset for mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        min-height: 500px;
    }

    .page-cockfighting__hero-title {
        font-size: 2.2em;
    }
    .page-cockfighting__hero-description {
        font-size: 1em;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    /* Mobile button responsiveness */
    .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__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;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
    }

    /* Mobile image 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 {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden; /* Prevent horizontal scroll */
    }
    
    .page-cockfighting__card-grid,
    .page-cockfighting__strategy-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 1.1em;
    }
    .page-cockfighting__faq-answer p {
        font-size: 0.95em;
    }
}

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

/* Ensure content area images meet minimum size requirements */
.page-cockfighting__about-section img,
.page-cockfighting__types-section img,
.page-cockfighting__guide-section img,
.page-cockfighting__strategy-section img,
.page-cockfighting__advantages-section img,
.page-cockfighting__faq-section img,
.page-cockfighting__cta-section img {
    min-width: 200px;
    min-height: 200px;
}
/* Specific override for card images which are typically smaller than hero but still content */
.page-cockfighting__card-image,
.page-cockfighting__strategy-image {
    width: 100%; /* Ensure they fill their container */
    height: 250px; /* Maintain a reasonable height, responsive */
    object-fit: cover;
}