/* style/cockfighting.css */
/* Base styles for the cockfighting page */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #f8f8f8); /* Assume light background from shared */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #26A9E0; /* Primary color for titles */
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

.page-cockfighting__section-title--light {
    color: #ffffff;
}

.page-cockfighting__section-title--light::after {
    background-color: #ffffff;
}

.page-cockfighting__paragraph {
    font-size: 18px;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__paragraph--light {
    color: #f0f0f0;
}

.page-cockfighting__cta-button,
.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-small {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    margin: 10px;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-cockfighting__cta-button {
    background: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
}

.page-cockfighting__cta-button:hover {
    background: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button--secondary {
    background: #ffffff;
    color: #26A9E0;
    border-color: #26A9E0;
}

.page-cockfighting__cta-button--secondary:hover {
    background: #e0f2f7;
    color: #1e87b7;
    border-color: #1e87b7;
}

.page-cockfighting__btn-primary {
    background: #26A9E0;
    color: #ffffff;
    border-color: #26A9E0;
}

.page-cockfighting__btn-primary:hover {
    background: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background: #e0f2f7;
    color: #1e87b7;
    border-color: #1e87b7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-small {
    padding: 10px 25px;
    font-size: 16px;
    background: #EA7C07; /* Login color for small buttons */
    color: #ffffff;
    border-color: #EA7C07;
    margin: 10px 5px;
}

.page-cockfighting__btn-small:hover {
    background: #c26706;
    border-color: #c26706;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__button-group {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 60px;
    background: linear-gradient(135deg, #26A9E0, #a0d9ef); /* Gradient background for visual appeal */
    /* Fixed header spacing */
    padding-top: var(--header-offset, 120px);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #ffffff; /* White text on hero background */
}

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

.page-cockfighting__hero-description {
    font-size: 20px;
    max-width: 800px;
    margin: 0 auto 30px auto;
    color: #e0f2f7;
}

/* Content Images */
.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

/* Grid Layout */
.page-cockfighting__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
    text-align: left;
}

.page-cockfighting__grid--advantages {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.page-cockfighting__card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333; /* Dark text for light card background */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    max-width: 100%; /* Ensure images inside cards are responsive */
}

.page-cockfighting__card-title {
    font-size: 24px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__card-description {
    font-size: 16px;
    color: #555555;
}

/* Dark background section */
.page-cockfighting__dark-bg {
    background: #26A9E0;
    color: #ffffff;
}

/* Steps section */
.page-cockfighting__steps {
    display: flex;
    justify-content: space-around;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-cockfighting__step-item {
    flex: 1;
    min-width: 280px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
}

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

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

.page-cockfighting__step-description {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
}

/* Advantages section */
.page-cockfighting__advantage-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    color: #333333;
}

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

.page-cockfighting__advantage-icon {
    width: 200px; /* Ensure icons meet minimum size requirement */
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
    max-width: 100%; /* Responsive */
}

.page-cockfighting__advantage-title {
    font-size: 22px;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__advantage-description {
    font-size: 16px;
    color: #555555;
}

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

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    overflow: hidden;
}

.page-cockfighting__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
    padding: 0 15px;
    opacity: 0;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
    max-height: 2000px !important; /* Ensure enough space for content */
    padding: 20px 15px !important;
    opacity: 1;
    background: #f9f9f9;
    border-radius: 0 0 5px 5px;
    color: #333333;
}

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.page-cockfighting__faq-question:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
    background: #eeeeee;
}

.page-cockfighting__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    pointer-events: none;
    color: #26A9E0; /* FAQ question color */
}

.page-cockfighting__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
    flex-shrink: 0;
    margin-left: 15px;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
    color: #26A9E0;
    transform: rotate(180deg); /* Rotate for minus sign */
}

/* News/Blog section */
.page-cockfighting__news {
    background: #f0f8ff; /* Light background for news section */
}

.page-cockfighting__grid--news {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.page-cockfighting__news-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    max-width: 100%;
}

.page-cockfighting__news-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #26A9E0;
    flex-grow: 1;
}

.page-cockfighting__news-title a.page-cockfighting__news-link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-cockfighting__news-title a.page-cockfighting__news-link:hover {
    color: #1e87b7;
    text-decoration: underline;
}

.page-cockfighting__news-excerpt {
    font-size: 16px;
    color: #555555;
    margin-bottom: 15px;
}

.page-cockfighting__news-date {
    font-size: 14px;
    color: #888888;
    margin-top: auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 44px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 30px;
    }
    .page-cockfighting__paragraph {
        font-size: 16px;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-cockfighting__grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 0 15px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    /* Fixed header spacing for mobile */
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
    }
    .page-cockfighting__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 25px;
    }
    .page-cockfighting__section-title {
        font-size: 26px;
        margin-bottom: 30px;
    }
    .page-cockfighting__paragraph {
        font-size: 15px;
    }

    /* Mobile button adaptation */
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-small,
    .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;
        margin: 8px 0 !important; /* Adjust margin for stacked buttons */
    }

    .page-cockfighting__button-group {
        flex-direction: column; /* Stack buttons vertically on mobile */
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px;
    }

    /* Mobile image adaptation */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__steps,
    .page-cockfighting__faq-list,
    .page-cockfighting__grid {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__grid {
        gap: 15px;
    }
    .page-cockfighting__card-image {
        height: 180px;
    }
    .page-cockfighting__news-image {
        height: 160px;
    }
    .page-cockfighting__step-item {
        min-width: unset;
        width: 100%;
        padding: 25px;
    }

    /* FAQ Mobile */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 28px;
    }
    .page-cockfighting__section-title {
        font-size: 22px;
    }
    .page-cockfighting__cta-button,
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 15px;
    }
}

/* Ensure no filter is used for images */
.page-cockfighting img {
    filter: none; /* Explicitly disable any potential filters */
}