:root {
    --primary-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --text-main-color: #1F2D3D;
    --bg-page-color: #F4F7FB;
    --bg-card-color: #FFFFFF;
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
}

.page-cockfighting {
    font-family: Arial, sans-serif;
    color: var(--text-main-color);
    background-color: var(--bg-page-color);
    line-height: 1.6;
    font-size: 16px;
}

.page-cockfighting__section {
    padding: 60px 0;
    position: relative;
}

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

.page-cockfighting__section-title {
    font-size: 36px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__text-block {
    margin-bottom: 20px;
    text-align: justify;
}

/* HERO Section */
.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    background-color: var(--bg-page-color);
}

.page-cockfighting__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-cockfighting__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-cockfighting__main-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--text-main-color);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.page-cockfighting__subtitle {
    font-size: 18px;
    color: var(--text-main-color);
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--button-gradient);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__cta-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--small {
    padding: 12px 30px;
    font-size: 16px;
}

.page-cockfighting__cta-button--large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Introduction Section */
.page-cockfighting__introduction {
    background-color: var(--bg-card-color);
}

.page-cockfighting__image-wrapper {
    text-align: center;
    margin-top: 30px;
}

.page-cockfighting__image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    min-width: 200px; /* Enforce min image size */
    min-height: 200px;
}

/* How-to-Play Section */
.page-cockfighting__how-to-play {
    background-color: var(--bg-page-color);
}

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

.page-cockfighting__step-item {
    background-color: var(--bg-card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__step-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

.page-cockfighting__step-item p {
    font-size: 15px;
    color: var(--text-main-color);
}

.page-cockfighting__link-text {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.page-cockfighting__link-text:hover {
    color: var(--secondary-color);
}

/* Bet Types Section */
.page-cockfighting__bet-types {
    background-color: var(--bg-card-color);
}

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

.page-cockfighting__card {
    background-color: var(--bg-card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-color);
    color: var(--text-main-color);
}

.page-cockfighting__card-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* Tips Section */
.page-cockfighting__tips {
    background-color: var(--bg-page-color);
}

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

.page-cockfighting__tip-item {
    background-color: var(--bg-card-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.page-cockfighting__tip-title {
    font-size: 20px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 700;
}

/* Safety & Fairness Section */
.page-cockfighting__safety-fairness {
    background-color: var(--bg-card-color);
}

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

.page-cockfighting__feature-item {
    background-color: var(--bg-page-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    text-align: center;
}

.page-cockfighting__feature-title {
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: 700;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: var(--bg-page-color);
}

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

details.page-cockfighting__faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    background: var(--bg-card-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    color: var(--text-main-color);
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question::-webkit-details-marker {
    display: none;
}

details.page-cockfighting__faq-item summary.page-cockfighting__faq-question:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.page-cockfighting__faq-qtext {
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    text-align: left;
}

.page-cockfighting__faq-toggle {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-left: 15px;
    width: 30px;
    text-align: center;
    transition: transform 0.3s ease;
}

details[open].page-cockfighting__faq-item .page-cockfighting__faq-toggle {
    transform: rotate(45deg);
}

details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
    padding: 0 25px 20px;
    background: #fdfdfd;
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 10px 10px;
    color: var(--text-main-color);
    font-size: 15px;
}

/* Final CTA Section */
.page-cockfighting__cta-final {
    background-color: var(--primary-color);
    color: #ffffff;
    text-align: center;
    padding: 80px 20px;
}

.page-cockfighting__cta-final .page-cockfighting__section-title {
    color: #ffffff;
    font-size: 40px;
}

.page-cockfighting__cta-final .page-cockfighting__text-block {
    color: #ffffff;
    max-width: 900px;
    margin: 0 auto 40px auto;
    font-size: 18px;
}

.page-cockfighting__cta-final .page-cockfighting__cta-button {
    background: var(--button-gradient);
    border: 2px solid #ffffff;
}

.page-cockfighting__cta-final .page-cockfighting__cta-button:hover {
    background: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }
    .page-cockfighting__subtitle {
        font-size: 17px;
    }
    .page-cockfighting__cta-final .page-cockfighting__section-title {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: 10px !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__hero-image img {
        border-radius: 4px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    .page-cockfighting__subtitle {
        font-size: 15px;
    }
    .page-cockfighting__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-cockfighting__cta-button--large {
        padding: 15px 35px;
        font-size: 18px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    .page-cockfighting__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }
    .page-cockfighting__steps-list,
    .page-cockfighting__grid,
    .page-cockfighting__features-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-cockfighting__step-item, .page-cockfighting__card, .page-cockfighting__tip-item, .page-cockfighting__feature-item {
        padding: 25px;
    }
    .page-cockfighting__step-title, .page-cockfighting__card-title, .page-cockfighting__tip-title, .page-cockfighting__feature-title {
        font-size: 20px;
    }
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
        padding: 15px 20px;
    }
    .page-cockfighting__faq-qtext {
        font-size: 16px;
    }
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
        padding: 0 20px 15px;
    }
    .page-cockfighting__cta-final .page-cockfighting__section-title {
        font-size: 30px;
    }
    .page-cockfighting__cta-final .page-cockfighting__text-block {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-cockfighting__cta-button {
        font-size: 15px;
        padding: 10px 25px;
    }
    .page-cockfighting__cta-final .page-cockfighting__section-title {
        font-size: 26px;
    }
}