.page-cockfighting {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background: var(--background-color, #f8f8f8); /* Inherit from shared or default light grey */
}

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

.page-cockfighting__section-title {
    font-size: clamp(28px, 4vw, 38px);
    color: #26A9E0;
    text-align: center;
    margin-bottom: 40px;
    font-weight: 700;
    line-height: 1.2;
}

.page-cockfighting__main-title {
    font-size: clamp(32px, 5vw, 48px);
    color: #26A9E0;
    font-weight: 800;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 20px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__sub-title {
    font-size: clamp(20px, 3vw, 26px);
    color: #26A9E0;
    font-weight: 600;
    margin-top: 30px;
    margin-bottom: 15px;
}

.page-cockfighting__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 40px;
    background-color: #f0f0f0; /* Fallback for hero background */
}

.page-cockfighting__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    border-radius: 10px;
}

.page-cockfighting__hero-description {
    font-size: 18px;
    margin-bottom: 30px;
    color: #ffffff;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

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

.page-cockfighting__btn-primary:hover {
    background: #1e87b7;
    border-color: #1e87b7;
}

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

.page-cockfighting__btn-secondary:hover {
    background: #26A9E0;
    color: #ffffff;
}

.page-cockfighting__about-section,
.page-cockfighting__guide-section,
.page-cockfighting__strategies-section,
.page-cockfighting__faq-section {
    padding: 60px 0;
}

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

.page-cockfighting__image-col {
    flex: 1;
    min-width: 0;
}

.page-cockfighting__image-col img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.page-cockfighting__text-col {
    flex: 1;
}

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

.page-cockfighting__features-section {
    padding: 60px 0;
    color: #ffffff;
}

.page-cockfighting__dark-bg {
    background: #26A9E0;
    color: #ffffff;
}

.page-cockfighting__light-bg {
    background: #ffffff;
    color: #333333;
}

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

.page-cockfighting__feature-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-card img {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__card-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: inherit;
}

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

.page-cockfighting__step-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 1px solid #e0e0e0;
}

.page-cockfighting__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #26A9E0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.page-cockfighting__guide-cta {
    text-align: center;
    margin-top: 40px;
}

.page-cockfighting__content-area {
    max-width: 900px;
    margin: 0 auto;
}

.page-cockfighting__content-area p {
    margin-bottom: 15px;
    font-size: 17px;
}

/* FAQ styles */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
}
details.page-cockfighting__faq-item summary.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}
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: #f5f5f5;
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #333333;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-cockfighting__faq-item .page-cockfighting__faq-answer {
  padding: 0 20px 20px;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
  color: #555555;
}

.page-cockfighting__cta-section {
    padding: 80px 0;
    text-align: center;
    color: #ffffff;
}

.page-cockfighting__cta-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* General image responsiveness */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
    .page-cockfighting__container {
        padding: 20px 30px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px; /* Small top padding */
        padding-bottom: 30px;
        min-height: auto;
    }
    .page-cockfighting__hero-image img {
        object-fit: contain !important; /* 禁止 cover 裁切两侧 */
        aspect-ratio: unset !important;
        max-height: 300px; /* Limit height on mobile */
    }
    .page-cockfighting__main-title {
        font-size: clamp(28px, 8vw, 36px);
        line-height: 1.3;
        margin-bottom: 15px;
    }
    .page-cockfighting__hero-description {
        font-size: 15px;
        margin-bottom: 20px;
    }
    .page-cockfighting__hero-buttons {
        flex-direction: column;
        gap: 10px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 - Not applicable as no gameshow, but general content grid */
    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__image-col,
    .page-cockfighting__text-col {
        flex: none;
        width: 100%;
    }

    /* 装饰主标题 + 长文 SEO 区 */
    .page-cockfighting__section-title {
        font-size: clamp(24px, 7vw, 32px);
        margin-bottom: 30px;
    }
    .page-cockfighting__sub-title {
        font-size: clamp(18px, 5vw, 22px);
        margin-top: 25px;
        margin-bottom: 10px;
    }
    .page-cockfighting__content-area {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__content-area p {
        font-size: 16px;
    }

    /* 通用图片与容器 */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__image-col,
    .page-cockfighting__feature-card,
    .page-cockfighting__step-card,
    .page-cockfighting__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__feature-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-cockfighting__steps-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-cockfighting__feature-card img {
        max-width: 80% !important; /* Allow small images to scale down */
        margin-left: auto;
        margin-right: auto;
    }

    /* 按钮与按钮容器 */
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary,
    .page-cockfighting a[class*="button"],
    .page-cockfighting a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px;
        text-align: center;
    }
    .page-cockfighting__hero-buttons,
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 10px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ mobile */
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 15px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }

    .page-cockfighting__cta-section {
        padding: 50px 0;
    }
    .page-cockfighting__cta-description {
        font-size: 16px;
        margin-bottom: 30px;
        padding: 0 15px;
    }
}