.page-cockfighting {
    padding-top: 10px; /* Small top padding for non-index pages */
    background-color: #F4F7FB;
    color: #1F2D3D;
}

.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column; /* Image above, text below for mobile first */
    align-items: center;
    text-align: center;
    padding: 20px 15px 40px;
    background-color: #2F6BFF;
    color: #FFFFFF;
    border-radius: 8px;
    margin: 0 15px 30px;
    overflow: hidden; /* Ensure content stays within */
}

.page-cockfighting__hero-image-wrapper {
    width: 100%;
    max-width: 100%; /* Ensure it doesn't overflow */
    margin-bottom: 20px;
}

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

.page-cockfighting__hero-content {
    max-width: 800px;
    width: 100%;
}

.page-cockfighting__hero-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

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

.page-cockfighting__hero-cta {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-cockfighting__section-title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2F6BFF;
    border-radius: 2px;
}

.page-cockfighting__introduction-section,
.page-cockfighting__how-to-play-section,
.page-cockfighting__bet-types-section,
.page-cockfighting__game-gallery-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-final-section {
    padding: 40px 15px;
    margin-bottom: 30px;
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-left: 15px;
    margin-right: 15px;
}

.page-cockfighting__text-content {
    font-size: 1rem;
    line-height: 1.7;
    color: #1F2D3D;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 20px;
}

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

.page-cockfighting__step-card {
    background-color: #F4F7FB;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-image {
    width: 100%;
    height: auto;
    max-width: 250px;
    min-width: 200px; /* Ensure minimum display size */
    display: block;
    margin: 0 auto 20px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

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

.page-cockfighting__step-description {
    font-size: 0.95rem;
    color: #1F2D3D;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-cockfighting__step-cta {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-cockfighting__step-cta:hover {
    opacity: 0.9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__type-card {
    background-color: #F4F7FB;
    border-left: 5px solid #2F6BFF;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.page-cockfighting__type-description {
    font-size: 0.9rem;
    color: #1F2D3D;
    line-height: 1.6;
}

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

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

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

.page-cockfighting__game-tile img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    object-position: center;
    min-width: 200px; /* Ensure minimum display size */
    min-height: 200px; /* Ensure minimum display size */
}

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

.page-cockfighting__promo-card {
    background-color: #F4F7FB;
    border-radius: 8px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

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

.page-cockfighting__promo-image {
    width: 100%;
    height: auto;
    max-width: 400px;
    min-width: 200px; /* Ensure minimum display size */
    display: block;
    margin: 0 auto 20px;
    border-radius: 6px;
    object-fit: cover;
    object-position: center;
}

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

.page-cockfighting__promo-description {
    font-size: 0.95rem;
    color: #1F2D3D;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-cockfighting__promo-cta {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.page-cockfighting__promo-cta:hover {
    opacity: 0.9;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__faq-list {
    margin-top: 30px;
}

.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border: 1px solid #D6E2FF;
    border-radius: 6px;
    overflow: hidden;
}

.page-cockfighting__faq-question {
    width: 100%;
    background-color: #F4F7FB;
    color: #1F2D3D;
    padding: 15px 20px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.page-cockfighting__faq-question:hover {
    background-color: #E0E7FF;
}

.page-cockfighting__faq-question::after {
    content: '+';
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.page-cockfighting__faq-question[aria-expanded="true"]::after {
    content: '-';
    transform: rotate(180deg);
}

.page-cockfighting__faq-answer {
    padding: 15px 20px;
    background-color: #FFFFFF;
    color: #1F2D3D;
    border-top: 1px solid #D6E2FF;
}

.page-cockfighting__faq-answer p {
    margin: 0;
    line-height: 1.6;
}

.page-cockfighting__cta-final-section {
    background: linear-gradient(135deg, #2F6BFF 0%, #6FA3FF 100%);
    color: #FFFFFF;
    text-align: center;
    padding: 50px 15px;
    border-radius: 8px;
    margin-left: 15px;
    margin-right: 15px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-title {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 15px;
    color: #FFFFFF;
}

.page-cockfighting__cta-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #E0E0E0;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 35px;
    background-color: #FFFFFF;
    color: #2F6BFF;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background-color: #F0F0F0;
}

/* Media Queries for responsiveness */
@media (min-width: 768px) {
    .page-cockfighting__hero-section {
        flex-direction: row; /* Desktop: Image left, text right */
        text-align: left;
        padding: 50px;
        margin: 0 30px 50px;
    }

    .page-cockfighting__hero-image-wrapper {
        flex: 1;
        margin-right: 40px;
        margin-bottom: 0;
        max-width: 50%;
    }

    .page-cockfighting__hero-content {
        flex: 1;
    }

    .page-cockfighting__hero-title {
        text-align: left;
    }

    .page-cockfighting__hero-description {
        text-align: left;
    }

    .page-cockfighting__section-title {
        font-size: 2.5rem;
    }

    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__game-gallery-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 60px 40px;
        margin-left: 30px;
        margin-right: 30px;
        margin-bottom: 50px;
    }

    .page-cockfighting__steps-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-cockfighting__bet-types-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .page-cockfighting__game-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .page-cockfighting__promo-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 849px) {
    .page-cockfighting__hero-section {
        flex-direction: column;
        text-align: center;
    }
    .page-cockfighting__hero-image-wrapper {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        margin: 0 10px 20px;
        padding: 20px;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__game-gallery-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 30px 15px;
        margin-left: 10px;
        margin-right: 10px;
        margin-bottom: 20px;
    }

    /* Ensure images are responsive and don't overflow */
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
    }
    /* Content area images minimum size check */
    .page-cockfighting__step-image, 
    .page-cockfighting__game-tile img, 
    .page-cockfighting__promo-image {
        min-width: 200px; /* Enforce min-width for display */
        min-height: 200px; /* Enforce min-height for display */
    }

    .page-cockfighting__hero-title {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }
    .page-cockfighting__section-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }
    .page-cockfighting__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); /* Smaller grid for very small screens */
    }
    .page-cockfighting__cta-title {
        font-size: clamp(1.8rem, 8vw, 2.2rem);
    }
    .page-cockfighting__cta-button {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 549px) {
    .page-cockfighting__hero-section {
        padding: 15px;
        margin: 0 8px 15px;
    }
    .page-cockfighting__introduction-section,
    .page-cockfighting__how-to-play-section,
    .page-cockfighting__bet-types-section,
    .page-cockfighting__game-gallery-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-final-section {
        padding: 25px 10px;
        margin-left: 8px;
        margin-right: 8px;
        margin-bottom: 15px;
    }
    .page-cockfighting__steps-grid,
    .page-cockfighting__bet-types-grid,
    .page-cockfighting__promo-cards-grid {
        grid-template-columns: 1fr;
    }
    .page-cockfighting__game-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    .page-cockfighting__hero-cta, .page-cockfighting__step-cta, .page-cockfighting__promo-cta {
        width: 100%;
        max-width: 280px;
    }
}