.page-cockfighting {
    background-color: var(--bg-color, #F4F7FB); /* Default to background color */
    color: var(--text-main, #1F2D3D);
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color, #2F6BFF); /* Fallback to primary color */
    padding-bottom: 40px; /* Space below content */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    position: relative;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto; /* Ensure image scales proportionally */
    display: block;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__hero-content {
    text-align: center;
    padding: 20px;
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF; /* White text on blue background */
    padding-top: 10px; /* Small top padding for hero content */
}

.page-cockfighting__main-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 15px;
    color: #FFFFFF;
}

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

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main, #1F2D3D);
    padding-top: 40px;
}

.page-cockfighting__text-content {
    font-size: 1.05em;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: justify;
}

/* CTA Button */
.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    color: #FFFFFF;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    transition: background 0.3s ease, transform 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-cockfighting__cta-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-cockfighting__cta-button--centered {
    display: block;
    margin: 40px auto 0 auto;
    width: fit-content;
}

/* About Section */
.page-cockfighting__about-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
}

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

.page-cockfighting__feature-card {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #D6E2FF);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__feature-icon {
    width: 100%; /* Make icons fill card width */
    height: auto;
    max-width: 400px; /* Max width to prevent overly large images */
    min-width: 200px; /* Min width for content images */
    min-height: 200px; /* Min height for content images */
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--text-main, #1F2D3D);
}

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-main, #1F2D3D);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    background-color: var(--card-bg, #FFFFFF);
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
    counter-reset: guide-step;
}

.page-cockfighting__guide-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-left: 60px; /* Space for step number */
    position: relative;
}

.page-cockfighting__guide-item::before {
    counter-increment: guide-step;
    content: "Bước " counter(guide-step);
    position: absolute;
    left: 0;
    top: 0;
    background-color: var(--primary-color, #2F6BFF);
    color: #FFFFFF;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    flex-shrink: 0;
}

.page-cockfighting__guide-step-title {
    font-size: 1.3em;
    font-weight: bold;
    margin-bottom: 8px;
    color: var(--text-main, #1F2D3D);
    margin-left: 20px;
}

.page-cockfighting__guide-step-description {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
    margin-left: 20px;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--bg-color, #F4F7FB);
}

.page-cockfighting__faq-item {
    background-color: var(--card-bg, #FFFFFF);
    border: 1px solid var(--border-color, #D6E2FF);
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 20px 25px;
}

.page-cockfighting__faq-question {
    font-size: 1.2em;
    font-weight: bold;
    color: var(--text-main, #1F2D3D);
    margin-bottom: 10px;
}

.page-cockfighting__faq-answer {
    font-size: 1em;
    line-height: 1.6;
    color: var(--text-main, #1F2D3D);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
    }

    .page-cockfighting__hero-content {
        padding: 15px;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Use clamp for H1 */
    }

    .page-cockfighting__hero-description {
        font-size: 1em;
    }

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

    .page-cockfighting__cta-button {
        padding: 12px 25px;
        font-size: 1em;
    }

    .page-cockfighting__features-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-card {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 1.2em;
    }

    .page-cockfighting__guide-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-left: 0;
    }

    .page-cockfighting__guide-item::before {
        position: static;
        margin-bottom: 15px;
    }

    .page-cockfighting__guide-step-title,
    .page-cockfighting__guide-step-description {
        margin-left: 0;
    }

    .page-cockfighting__faq-question {
        font-size: 1.1em;
    }

    /* Mobile image overflow prevention */
    .page-cockfighting__hero-image,
    .page-cockfighting__feature-icon,
    .page-cockfighting__container img {
        max-width: 100%;
        height: auto;
    }

    /* Ensure content area does not cause horizontal scroll */
    .page-cockfighting {
        overflow-x: hidden;
    }
}

/* Ensure all content images within .page-cockfighting meet minimum size requirements */
.page-cockfighting img:not(.page-cockfighting__hero-image) {
    min-width: 200px;
    min-height: 200px;
}

/* Specific styling for the guide list numbers to ensure contrast */
.page-cockfighting__guide-item::before {
    background-color: var(--primary-color, #2F6BFF); /* Using primary color */
    color: #FFFFFF; /* White text for contrast */
}