.page-cockfighting {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color for light background */
    background-color: #FFFFFF; /* Default background for main content */
    line-height: 1.6;
}

.page-cockfighting__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    background-color: #f8f9fa; /* Light background for hero section */
    color: #333333;
}

.page-cockfighting__hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* Image above text on all devices */
    gap: 30px;
    align-items: center;
    padding: 0 20px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    object-fit: cover; /* Desktop: cover to fill space */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__hero-text-block {
    text-align: center;
    max-width: 800px;
}

.page-cockfighting__main-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem); /* Responsive font size */
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    color: #555555;
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%; /* Ensure container takes full width */
    max-width: 100%;
    box-sizing: border-box;
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary,
.page-cockfighting__btn-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't exceed container */
}

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

.page-cockfighting__btn-primary:hover {
    background-color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

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

.page-cockfighting__btn-secondary:hover {
    background-color: #e0f2f7;
    color: #1e87c0;
    border-color: #1e87c0;
    transform: translateY(-2px);
}

.page-cockfighting__btn-text {
    background: none;
    border: none;
    color: #26A9E0;
    padding: 0;
    text-decoration: underline;
    font-weight: 500;
}

.page-cockfighting__btn-text:hover {
    color: #1e87c0;
}

.page-cockfighting__btn-small {
    padding: 8px 18px;
    font-size: 0.9rem;
}

/* General Section Styling */
.page-cockfighting__section {
    padding: 60px 20px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    color: #26A9E0;
    margin-bottom: 40px;
    line-height: 1.3;
}

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

/* Advantages Section */
.page-cockfighting__advantages-section {
    background-color: #FFFFFF;
}

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

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

.page-cockfighting__card {
    background-color: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease;
    color: #333333;
    border: 1px solid #e0e0e0; /* Added for contrast */
}

.page-cockfighting__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__card-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it doesn't cause extra space */
}

.page-cockfighting__card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-cockfighting__card-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 15px;
}

/* Types Section */
.page-cockfighting__types-section {
    background-color: #26A9E0; /* Brand color background */
    color: #FFFFFF;
}

.page-cockfighting__type-card {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white background */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__type-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__type-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-cockfighting__type-description {
    font-size: 1rem;
    color: #f0f0f0;
}

/* Guide Section */
.page-cockfighting__guide-section {
    background-color: #FFFFFF;
}

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

.page-cockfighting__guide-item {
    background-color: #fefefe;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 30px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    color: #333333;
}

.page-cockfighting__guide-step-number {
    width: 40px;
    height: 40px;
    background-color: #26A9E0;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-cockfighting__guide-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-cockfighting__guide-text {
    font-size: 1rem;
    color: #555555;
    margin-bottom: 20px;
}

.page-cockfighting__guide-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 20px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__cta-buttons--inline {
    justify-content: flex-start;
    gap: 10px;
}

/* Tips Section */
.page-cockfighting__tips-section {
    background-color: #26A9E0;
    color: #FFFFFF;
}

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

.page-cockfighting__tip-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFFFFF;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__tip-image {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
}

.page-cockfighting__tip-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-cockfighting__tip-text {
    font-size: 1rem;
    color: #f0f0f0;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    background-color: #FFFFFF;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 30px auto 0 auto;
    text-align: left;
}

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

.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #26A9E0;
    cursor: pointer;
    list-style: none; /* For details/summary */
    -webkit-tap-highlight-color: transparent; /* Remove tap highlight on mobile */
}

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

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

.page-cockfighting__faq-item[open] .page-cockfighting__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-cockfighting__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1rem;
    color: #555555;
    line-height: 1.7;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    max-height: 0;
    overflow: hidden;
}

.page-cockfighting__faq-item[open] .page-cockfighting__faq-answer {
    max-height: 2000px; /* Sufficiently large to show content */
    padding-top: 10px;
}

/* CTA Banner */
.page-cockfighting__cta-banner {
    padding: 80px 20px;
    background-color: #26A9E0;
    color: #FFFFFF;
    text-align: center;
}

.page-cockfighting__cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-cockfighting__cta-description {
    font-size: 1.1rem;
    color: #f0f0f0;
    max-width: 700px;
    margin: 0 auto 40px auto;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }
    .page-cockfighting__section {
        padding: 50px 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 4.5vw, 2.8rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 4vw, 2.2rem);
    }
    .page-cockfighting__card-image,
    .page-cockfighting__type-image,
    .page-cockfighting__guide-image,
    .page-cockfighting__tip-image {
        height: 180px; /* Slightly smaller on tablets */
    }
}

@media (max-width: 768px) {
    /* General responsive for images and containers */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }
    .page-cockfighting__section,
    .page-cockfighting__card,
    .page-cockfighting__container,
    .page-cockfighting__type-card,
    .page-cockfighting__guide-item,
    .page-cockfighting__tip-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-cockfighting__hero-section {
        padding-top: 10px !important; /* Small top padding, body handles header offset */
        padding-bottom: 20px;
    }
    .page-cockfighting__hero-content-wrapper {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    .page-cockfighting__hero-image {
        object-fit: contain !important; /* Mobile: contain to prevent cropping */
        aspect-ratio: unset !important;
        max-height: none !important;
        height: auto !important; /* Ensure height adjusts */
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__hero-description {
        font-size: 1rem;
    }

    /* CTA Buttons */
    .page-cockfighting__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 10px;
        padding: 0 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting__btn-text,
    .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--inline {
        flex-direction: row !important; /* Keep inline buttons horizontal if possible */
        flex-wrap: wrap !important;
        justify-content: center;
        padding: 0; /* Remove extra padding for inline groups */
    }
    .page-cockfighting__cta-buttons--inline .page-cockfighting__btn-small {
        width: auto !important; /* Allow small buttons to size to content */
        max-width: calc(50% - 5px) !important; /* Max 2 buttons per row */
    }


    /* General Section Styling */
    .page-cockfighting__section {
        padding: 40px 15px;
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 6vw, 2rem);
        margin-bottom: 30px;
    }

    /* Grid Layouts */
    .page-cockfighting__grid,
    .page-cockfighting__grid--three-cols,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

    /* Card Images */
    .page-cockfighting__card-image,
    .page-cockfighting__type-image,
    .page-cockfighting__guide-image,
    .page-cockfighting__tip-image {
        height: 200px; /* Consistent height for mobile cards */
    }

    /* FAQ Section */
    .page-cockfighting__faq-list {
        margin-top: 20px;
        padding: 0 15px;
    }
    .page-cockfighting__faq-question {
        padding: 15px 20px;
        font-size: 1rem;
    }
    .page-cockfighting__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.95rem;
    }

    /* CTA Banner */
    .page-cockfighting__cta-banner {
        padding: 50px 15px;
    }
    .page-cockfighting__cta-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }
    .page-cockfighting__cta-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }
}