.page-cockfighting {
    background-color: var(--bg-color, #F4F7FB); /* Using the provided background color */
    color: var(--text-main-color, #1F2D3D);
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: #2F6BFF; /* Primary color for hero background */
    color: #FFFFFF; /* White text on blue background */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 600px; /* Limit height for hero image */
    margin-bottom: 20px; /* Space between image and content */
}

.page-cockfighting__hero-content {
    padding: 20px 20px 40px;
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: var(--custom-color-1776249996415, #000000); /* Use custom color #000000 for titles for optimal contrast */
}

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: #E0E0E0; /* Lighter text for contrast on dark blue */
}

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

.page-cockfighting__btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1em;
    transition: all 0.3s ease;
    min-width: 150px; /* Ensure buttons are not too small */
    text-align: center;
    border: none;
    cursor: pointer;
}

.page-cockfighting__btn--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    box-shadow: 0 4px 10px rgba(47, 107, 255, 0.4);
}

.page-cockfighting__btn--primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(47, 107, 255, 0.6);
}

.page-cockfighting__btn--secondary {
    background-color: #FFFFFF;
    color: #2F6BFF;
    border: 2px solid #2F6BFF;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__btn--secondary:hover {
    background-color: #F0F5FF;
    color: #1F4CAF;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* General Section Styling */
.page-cockfighting__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive H2 font size */
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    color: var(--custom-color-1776249996415, #000000); /* Use custom color for titles */
}

.page-cockfighting__text-content {
    font-size: 1em;
    margin-bottom: 20px;
    text-align: justify;
    color: var(--text-main-color, #1F2D3D);
}

.page-cockfighting__text-content a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

.page-cockfighting__text-content a:hover {
    text-decoration: underline;
}

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

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

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

.page-cockfighting__feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 200px; /* Fixed height for feature images */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-cockfighting__card-title {
    font-size: 1.4em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415, #000000);
}

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

/* How-To-Play Section */
.page-cockfighting__how-to-play-section {
    padding: 60px 0;
}

.page-cockfighting__step-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: var(--card-bg-color, #FFFFFF);
    border: 1px solid var(--border-color, #D6E2FF);
    border-radius: 10px;
    padding: 25px 30px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}

.page-cockfighting__step-item:last-child {
    margin-bottom: 0;
}

.page-cockfighting__step-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--custom-color-1776249996415, #000000);
    margin-bottom: 10px;
    position: relative;
    padding-left: 35px;
}

.page-cockfighting__step-title::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9em;
    font-weight: 700;
}

.page-cockfighting__step-description {
    font-size: 1em;
    color: var(--text-main-color, #1F2D3D);
    text-align: left;
}

.page-cockfighting__step-description a {
    color: #2F6BFF;
    text-decoration: none;
    font-weight: 600;
}

.page-cockfighting__step-description a:hover {
    text-decoration: underline;
}

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

/* Counter for steps */
.page-cockfighting__step-list {
    counter-reset: step-counter;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 5px; /* Adjust for smaller screens */
    }

    .page-cockfighting__hero-image {
        max-height: 400px;
    }

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

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

    .page-cockfighting__hero-actions {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__btn {
        width: 100%;
        max-width: 300px; /* Limit button width on mobile */
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.6em, 6vw, 2em); /* Adjust H2 for mobile */
        margin-top: 40px;
        margin-bottom: 30px;
    }

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

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

    .page-cockfighting__feature-image {
        height: auto; /* Allow auto height on mobile for responsiveness */
        max-width: 100%;
        min-width: 200px; /* Ensure min width is maintained */
        min-height: 200px; /* Ensure min height is maintained */
    }

    .page-cockfighting__step-item {
        padding: 20px;
    }

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

    /* Mobile content image overflow prevention */
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
    }
}

/* Ensure all images in content area are responsive and meet min size */
.page-cockfighting__introduction-section img,
.page-cockfighting__features-section img,
.page-cockfighting__how-to-play-section img {
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}