.page-cockfighting {
    background-color: #100224;
    color: #FFFFFF;
    font-family: Arial, sans-serif;
}

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

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    text-align: center;
    overflow: hidden;
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    object-position: center;
    max-height: 675px;
    border-radius: 10px;
}

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

.page-cockfighting__hero-title {
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    /* Use clamp for responsive font size, avoiding fixed large values */
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.page-cockfighting__hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #E0E0E0;
    margin-bottom: 30px;
}

.page-cockfighting__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: #26A9E0;
    padding-top: 40px;
}

.page-cockfighting__text {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    min-width: 180px;
    text-align: center;
}

.page-cockfighting__btn--primary {
    background: linear-gradient(90deg, #EA7C07, #FF5E3A);
    color: #FFFFFF;
    border: none;
}

.page-cockfighting__btn--primary:hover {
    background: linear-gradient(90deg, #FF5E3A, #EA7C07);
    transform: translateY(-2px);
}

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

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

.page-cockfighting__btn--center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-top: 30px;
}

/* Overview Section */
.page-cockfighting__overview-section {
    padding: 60px 0;
    background-color: #1A0D32; /* Slightly different background for contrast */
}

/* Features Section */
.page-cockfighting__features-section {
    padding: 60px 0;
}

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

.page-cockfighting__feature-card {
    background-color: #1A0D32;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__feature-image {
    width: 100%;
    height: 250px; /* Fixed height for consistency, will be object-fit */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

.page-cockfighting__feature-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

/* Game Gallery */
.page-cockfighting__game-gallery {
    padding: 60px 0;
    background-color: #1A0D32;
}

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

.page-cockfighting__game-tile {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__game-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-cockfighting__game-tile img {
    width: 100%;
    height: 220px; /* Consistent height for game tiles */
    object-fit: cover;
    display: block;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px; /* Ensure minimum size */
}

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

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

.page-cockfighting__step-card {
    background-color: #1A0D32;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__step-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: #EA7C07;
    margin-bottom: 15px;
}

.page-cockfighting__step-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #E0E0E0;
}

/* Promotions Section */
.page-cockfighting__promotions-section {
    padding: 60px 0;
    background-color: #1A0D32;
    text-align: center;
}

/* FAQ Section */
.page-cockfighting__faq-section {
    padding: 60px 0;
}

.page-cockfighting__faq-item {
    background-color: #1A0D32;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-question {
    font-size: 1.3rem;
    font-weight: bold;
    color: #26A9E0;
    margin-bottom: 10px;
    cursor: pointer;
}

.page-cockfighting__faq-answer {
    font-size: 1rem;
    line-height: 1.7;
    color: #E0E0E0;
    padding-top: 5px;
}

/* Media Queries for Responsiveness */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 20px;
    }
}

@media (max-width: 849px) {
    .page-cockfighting__hero-section {
        padding-bottom: 30px;
    }

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

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

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 30px;
    }

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

    .page-cockfighting__btn {
        padding: 12px 25px;
        font-size: 1rem;
        min-width: unset;
    }

    /* Ensure all content area images are responsive and don't overflow */
    .page-cockfighting__hero-image,
    .page-cockfighting__feature-image,
    .page-cockfighting__game-tile img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 549px) {
    .page-cockfighting__hero-section {
        padding-top: 5px;
        padding-bottom: 20px;
    }

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

    .page-cockfighting__hero-title {
        font-size: clamp(1.5rem, 7vw, 2.2rem);
        margin-bottom: 10px;
    }

    .page-cockfighting__hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        margin-bottom: 20px;
        padding-top: 30px;
    }

    .page-cockfighting__text {
        font-size: 0.9rem;
    }

    .page-cockfighting__btn {
        width: 100%;
        max-width: 280px;
        margin-left: auto;
        margin-right: auto;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        padding: 20px;
    }

    .page-cockfighting__feature-title,
    .page-cockfighting__step-title,
    .page-cockfighting__faq-question {
        font-size: 1.2rem;
    }

    .page-cockfighting__feature-image,
    .page-cockfighting__game-tile img {
        height: auto; /* Allow height to adjust freely */
        min-height: 200px; /* Maintain minimum height */
    }
}

/* Ensure all images within .page-cockfighting do not cause horizontal overflow on mobile */
@media (max-width: 768px) {
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
        box-sizing: border-box;
    }

    /* Specific rule to ensure content area images are not smaller than 200px */
    .page-cockfighting__feature-image, 
    .page-cockfighting__game-tile img {
        min-width: 200px;
        min-height: 200px;
        width: 100%; /* Ensure they take full available width, then height adjusts */
    }
}