.page-cockfighting {
    background-color: var(--background-color, #F4F7FB); /* Using var for consistency, default to F4F7FB */
    color: var(--text-main-color, #1F2D3D);
    padding-top: 10px; /* Small top padding as per rules, not --header-offset */
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Enforce image first, then text */
    align-items: center;
    text-align: center;
    padding-bottom: 40px;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%); /* Use primary/secondary for hero background */
    color: #FFFFFF; /* White text on blue background */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 1200px; /* Constrain image wrapper */
    margin-bottom: 20px;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-cockfighting__hero-content {
    max-width: 800px;
    padding: 0 20px;
}

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

.page-cockfighting__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Intro Section */
.page-cockfighting__intro-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__intro-heading {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-cockfighting__intro-text {
    font-size: 1.05em;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto 15px auto;
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #FFFFFF); /* Card background color */
    border-top: 1px solid var(--border-color, #D6E2FF);
    border-bottom: 1px solid var(--border-color, #D6E2FF);
}

.page-cockfighting__features-heading {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

.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: #FFFFFF;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color, #D6E2FF);
}

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

.page-cockfighting__feature-icon {
    width: 100%; /* Make sure image takes full width of card */
    height: auto;
    max-width: 400px; /* Constrain max width for larger images */
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

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

.page-cockfighting__card-description {
    font-size: 1em;
    line-height: 1.5;
    color: var(--text-main-color); /* Ensure good contrast */
}

.page-cockfighting__cta-wrapper {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__secondary-cta-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__secondary-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* Guide Section */
.page-cockfighting__guide-section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__guide-heading {
    font-size: 2.2em;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

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

.page-cockfighting__step-item {
    background-color: var(--card-bg-color, #FFFFFF);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color, #D6E2FF);
}

.page-cockfighting__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient for step number */
    color: #FFFFFF;
    font-size: 1.8em;
    font-weight: 700;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__step-title {
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main-color);
}

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

.page-cockfighting__main-cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    margin-top: 40px;
}

.page-cockfighting__main-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Latest News Section */
.page-cockfighting__latest-news-section {
    padding: 60px 0;
    background-color: var(--background-color, #F4F7FB);
    border-top: 1px solid var(--border-color, #D6E2FF);
}

.page-cockfighting__latest-news-heading {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

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

.page-cockfighting__news-card {
    background-color: var(--card-bg-color, #FFFFFF);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-decoration: none;
    color: var(--text-main-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color, #D6E2FF);
    display: flex;
    flex-direction: column;
}

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

.page-cockfighting__news-image {
    width: 100%;
    height: auto;
    display: block;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px;
}

.page-cockfighting__news-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.page-cockfighting__news-title {
    font-size: 1.3em;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    color: var(--custom-color-1776249996415, #000000); /* Ensure good contrast */
}

.page-cockfighting__news-date {
    font-size: 0.9em;
    color: #666; /* Slightly lighter for date */
    margin-bottom: 10px;
}

.page-cockfighting__news-excerpt {
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--text-main-color);
}

.page-cockfighting__view-all-button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 25px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient */
    color: #FFFFFF;
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__view-all-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
    background-color: var(--card-bg-color, #FFFFFF);
    border-top: 1px solid var(--border-color, #D6E2FF);
}

.page-cockfighting__faq-heading {
    font-size: 2.2em;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-main-color);
}

.page-cockfighting__faq-items {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: #F8F8F8; /* Lighter background for FAQ item */
    padding: 20px 25px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color, #D6E2FF);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

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

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

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

    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }

    .page-cockfighting__main-title {
        font-size: 1.8em;
    }

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

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

    .page-cockfighting__intro-section,
    .page-cockfighting__features-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__latest-news-section,
    .page-cockfighting__faq-section {
        padding: 40px 0;
    }

    .page-cockfighting__intro-heading,
    .page-cockfighting__features-heading,
    .page-cockfighting__guide-heading,
    .page-cockfighting__latest-news-heading,
    .page-cockfighting__faq-heading {
        font-size: 1.8em;
    }

    .page-cockfighting__features-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__news-grid {
        grid-template-columns: 1fr;
    }

    .page-cockfighting__feature-icon,
    .page-cockfighting__news-image {
        max-width: 100%;
        width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
    }
    
    .page-cockfighting__news-card {
        flex-direction: column;
    }

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