.page-cockfighting {
    background-color: #F4F7FB;
    color: #1F2D3D;
    padding-top: 10px; /* Small top padding for main content below header */
}

.page-cockfighting__hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px 15px 40px;
    background: linear-gradient(180deg, #2F6BFF 0%, #6FA3FF 100%);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

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

.page-cockfighting__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__hero-content {
    width: 100%;
    max-width: 900px;
    z-index: 1;
}

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

.page-cockfighting__description {
    font-size: 1.1em;
    margin-bottom: 30px;
    line-height: 1.6;
}

.page-cockfighting__hero-cta-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-cockfighting__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 44px; /* Ensure touch target size */
    box-sizing: border-box;
}

.page-cockfighting__btn--primary {
    background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border: 1px solid #2F6BFF;
}

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

.page-cockfighting__btn--secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 1px solid #FFFFFF;
}

.page-cockfighting__btn--secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
}

.page-cockfighting__btn--outline {
    background-color: transparent;
    color: #2F6BFF;
    border: 1px solid #2F6BFF;
}

.page-cockfighting__btn--outline:hover {
    background-color: #2F6BFF;
    color: #FFFFFF;
}

.page-cockfighting__btn--small {
    padding: 8px 15px;
    font-size: 0.9em;
    min-height: 36px;
}

.page-cockfighting__section-title {
    font-size: 2.2em;
    font-weight: 700;
    color: #1F2D3D;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.page-cockfighting__section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #2F6BFF, #6FA3FF);
    margin: 15px auto 0;
    border-radius: 2px;
}

.page-cockfighting__about-section,
.page-cockfighting__features-section,
.page-cockfighting__games-section,
.page-cockfighting__guide-section,
.page-cockfighting__promotions-section,
.page-cockfighting__faq-section,
.page-cockfighting__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.page-cockfighting__content-wrapper {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.page-cockfighting__content-wrapper--reverse {
    flex-direction: row-reverse;
}

.page-cockfighting__text-content {
    flex: 1;
    line-height: 1.7;
    color: #1F2D3D;
}

.page-cockfighting__text-content p {
    margin-bottom: 15px;
}

.page-cockfighting__image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__image-container img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

.page-cockfighting__feature-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    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__card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #2F6BFF;
    margin-bottom: 15px;
}

.page-cockfighting__feature-card p {
    color: #1F2D3D;
    line-height: 1.6;
}

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

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

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

.page-cockfighting__game-tile img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__view-all-games {
    text-align: center;
}

.page-cockfighting__guide-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__guide-list li {
    background-color: #FFFFFF;
    border-left: 5px solid #2F6BFF;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    color: #1F2D3D;
}

.page-cockfighting__guide-list li strong {
    color: #000000;
    font-size: 1.1em;
    display: block;
    margin-bottom: 5px;
}

.page-cockfighting__promotions-intro {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #1F2D3D;
}

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

.page-cockfighting__promo-card {
    background-color: #FFFFFF;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    color: #1F2D3D;
}

.page-cockfighting__promo-card .page-cockfighting__card-title {
    color: #2F6BFF;
}

.page-cockfighting__promo-card p {
    margin-bottom: 20px;
}

.page-cockfighting__all-promotions-cta {
    text-align: center;
}

.page-cockfighting__faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.page-cockfighting__faq-item {
    background-color: #FFFFFF;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-cockfighting__faq-question {
    font-size: 1.1em;
    font-weight: 600;
    color: #000000;
    padding: 18px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    transition: background-color 0.3s ease;
}

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

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

.page-cockfighting__faq-item.is-open .page-cockfighting__faq-question::after {
    transform: rotate(45deg);
}

.page-cockfighting__faq-answer {
    padding: 0 25px 18px;
    color: #1F2D3D;
    line-height: 1.6;
    display: none;
}

.page-cockfighting__faq-item.is-open .page-cockfighting__faq-answer {
    display: block;
}

.page-cockfighting__cta-section {
    text-align: center;
    background: linear-gradient(180deg, #6FA3FF 0%, #2F6BFF 100%);
    color: #FFFFFF;
    border-radius: 12px;
    margin: 60px auto;
    padding: 50px 20px;
}

.page-cockfighting__cta-section .page-cockfighting__section-title {
    color: #FFFFFF;
    margin-bottom: 20px;
}

.page-cockfighting__cta-section .page-cockfighting__section-title::after {
    background: linear-gradient(90deg, #FFFFFF, rgba(255, 255, 255, 0.5));
}

.page-cockfighting__cta-description {
    font-size: 1.1em;
    margin-bottom: 35px;
    line-height: 1.6;
}

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

/* Responsive Styles */
@media (max-width: 849px) {
    .page-cockfighting__content-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .page-cockfighting__content-wrapper--reverse {
        flex-direction: column;
    }

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

    .page-cockfighting__hero-image-wrapper {
        margin-bottom: 15px;
    }

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

    .page-cockfighting__description {
        font-size: 1em;
    }

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

    .page-cockfighting__about-section,
    .page-cockfighting__features-section,
    .page-cockfighting__games-section,
    .page-cockfighting__guide-section,
    .page-cockfighting__promotions-section,
    .page-cockfighting__faq-section,
    .page-cockfighting__cta-section {
        padding: 40px 15px;
    }

    .page-cockfighting__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card {
        padding: 25px;
    }

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

    .page-cockfighting__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }

    .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }

    /* Ensure all content area images are responsive */
    .page-cockfighting img {
        max-width: 100%;
        height: auto;
        display: block;
    }
}

@media (max-width: 549px) {
    .page-cockfighting__hero-cta-group,
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-cockfighting__btn {
        width: 100%;
        max-width: 280px; /* Constrain button width */
        margin: 0 auto;
    }

    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 8vw, 2em);
    }

    .page-cockfighting__section-title {
        font-size: clamp(1.5rem, 7vw, 1.8em);
    }

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

    /* Enforce min-width for all content images */
    .page-cockfighting__image-container img,
    .page-cockfighting__games-grid img,
    .page-cockfighting__promo-card img {
        min-width: 200px;
        min-height: 200px;
        object-fit: cover;
    }

    .page-cockfighting__feature-card,
    .page-cockfighting__promo-card {
        min-width: 200px;
    }

    /* Specific rule for content images to ensure minimum size and prevent overflow */
    .page-cockfighting__about-section .page-cockfighting__image-container img,
    .page-cockfighting__guide-section .page-cockfighting__image-container img {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px; /* Ensure minimum size */
    }
}