.page-cockfighting {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
}

/* Hero Section */
.page-cockfighting__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* As per instruction, assuming body has padding-top for header */
    background-color: #017439; /* Brand primary color for dark background */
}

.page-cockfighting__hero-image {
    width: 100%;
    height: auto; /* Allow image to scale */
    display: block;
}

.page-cockfighting__hero-image img {
    width: 100%;
    height: 675px; /* Fixed height for desktop to maintain aspect ratio */
    object-fit: cover; /* Cover the area */
    display: block;
}

.page-cockfighting__hero-content {
    position: relative; /* Changed from absolute to relative to follow 'image above text' rule */
    max-width: 900px;
    margin: 40px auto; /* Centered below image */
    text-align: center;
    padding: 0 20px;
    color: #ffffff; /* Light text for dark background */
}

.page-cockfighting__main-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Register and Login font color for emphasis */
}

.page-cockfighting__sub-description {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 180px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-primary {
    background: #C30808; /* Register/Login color */
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #C30808;
}

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

.page-cockfighting__btn-secondary {
    background: transparent;
    color: #FFFF00; /* Register/Login font color */
    border: 2px solid #FFFF00;
}

.page-cockfighting__btn-secondary:hover {
    background: #FFFF00;
    color: #C30808;
}

.page-cockfighting__btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    background: #C30808;
    color: #FFFF00;
    border: 2px solid #C30808;
    margin-top: 15px;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-cockfighting__btn-small:hover {
    background: #a30606;
    border-color: #a30606;
}

/* General Section Styles */
.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 25px;
    color: #017439; /* Default for light backgrounds */
}

.page-cockfighting__section-description {
    font-size: 17px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

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

.page-cockfighting__content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.page-cockfighting__text-block p {
    margin-bottom: 15px;
    font-size: 17px;
}

.page-cockfighting__image-wrapper {
    text-align: center;
}

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

.page-cockfighting__image-wrapper--center {
    margin-top: 40px;
}

/* Color Schemes */
.page-cockfighting__dark-bg {
    background-color: #017439; /* Brand primary color */
    color: #ffffff;
}

.page-cockfighting__light-text .page-cockfighting__section-title {
    color: #ffffff;
}

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

/* Introduction Section */
.page-cockfighting__introduction-section .page-cockfighting__section-title {
    color: #017439;
}

/* Types Section */
.page-cockfighting__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__type-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-cockfighting__type-card .page-cockfighting__type-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00; /* Emphasis for titles on dark background */
}

.page-cockfighting__type-card p {
    font-size: 16px;
    line-height: 1.6;
}

/* Benefits Section */
.page-cockfighting__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__benefit-card {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease;
}

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

.page-cockfighting__benefit-card .page-cockfighting__benefit-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439;
}

.page-cockfighting__benefit-card p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

/* Guide Section */
.page-cockfighting__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__step-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__step-card .page-cockfighting__step-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFFF00;
}

.page-cockfighting__step-card p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1; /* Ensure paragraphs take available space */
}

.page-cockfighting__link {
    color: #FFFF00;
    text-decoration: underline;
}

.page-cockfighting__link:hover {
    color: #ffffff;
}

.page-cockfighting__cta-buttons--center {
    margin-top: 50px;
}

/* Tips Section */
.page-cockfighting__tips-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-cockfighting__tip-item {
    background: #ffffff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-cockfighting__tip-item .page-cockfighting__tip-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #017439;
}

.page-cockfighting__tip-item p {
    font-size: 16px;
    line-height: 1.6;
    color: #555555;
}

/* FAQ Section */
.page-cockfighting__faq-section .page-cockfighting__section-title {
    color: #ffffff;
}

.page-cockfighting__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.3); /* Lighter border for dark background */
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
}
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;
  color: #ffffff; /* White text for question on dark background */
}
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: rgba(255, 255, 255, 0.1); /* Slightly more transparent white on hover */
}
.page-cockfighting__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #ffffff;
}
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFFF00; /* Yellow for toggle icon */
  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: rgba(255, 255, 255, 0.1); /* Slightly more transparent white for answer background */
  border-radius: 0 0 5px 5px;
  color: #ffffff; /* White text for answer */
}
.page-cockfighting__faq-answer p {
    margin-bottom: 0; /* Remove default paragraph margin */
}

/* Conclusion Section */
.page-cockfighting__conclusion-section .page-cockfighting__section-title {
    color: #017439;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-cockfighting__hero-image img {
        height: 500px; /* Adjust hero image height for tablets */
    }

    .page-cockfighting__main-title {
        font-size: 42px;
    }

    .page-cockfighting__section-title {
        font-size: 34px;
    }

    .page-cockfighting__container {
        padding: 50px 20px;
    }

    .page-cockfighting__benefits-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-list {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-cockfighting__hero-section {
        padding-top: 10px; /* Consistent small top padding */
    }
    .page-cockfighting__hero-image img {
        height: auto !important; /* Allow height to auto scale */
        object-fit: contain !important; /* Ensure image is fully visible, no cropping */
        aspect-ratio: unset !important; /* Remove fixed aspect ratio */
        max-width: 100% !important;
        width: 100% !important;
    }
    .page-cockfighting__hero-content {
        margin-top: 20px; /* Adjust spacing */
    }
    .page-cockfighting__main-title {
        font-size: clamp(32px, 8vw, 40px); /* Responsive font size */
        margin-bottom: 15px;
    }
    .page-cockfighting__sub-description {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to container */
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        width: 100% !important; /* Full width buttons */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* 通用容器和标题 */
    .page-cockfighting__container {
        padding: 30px 15px; /* Smaller padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 20px;
    }
    .page-cockfighting__section-description {
        font-size: 15px;
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }
    .page-cockfighting__image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 产品展示图区域 (No gameshow, using generic grid) */
    .page-cockfighting__content-grid {
        grid-template-columns: 1fr; /* Stack columns */
        gap: 30px;
    }
    .page-cockfighting__types-grid,
    .page-cockfighting__benefits-grid,
    .page-cockfighting__guide-steps,
    .page-cockfighting__tips-list {
        grid-template-columns: 1fr; /* Single column layout */
        gap: 20px;
    }
    .page-cockfighting__type-card,
    .page-cockfighting__benefit-card,
    .page-cockfighting__step-card,
    .page-cockfighting__tip-item {
        padding: 20px;
    }
    .page-cockfighting__type-card .page-cockfighting__type-title,
    .page-cockfighting__benefit-card .page-cockfighting__benefit-title,
    .page-cockfighting__step-card .page-cockfighting__step-title,
    .page-cockfighting__tip-item .page-cockfighting__tip-title {
        font-size: 20px;
    }
    .page-cockfighting__type-card p,
    .page-cockfighting__benefit-card p,
    .page-cockfighting__step-card p,
    .page-cockfighting__tip-item p {
        font-size: 15px;
    }
    .page-cockfighting__btn-small {
        font-size: 15px;
        padding: 8px 15px;
    }

    /* FAQ Section */
    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;
    }
}