/* style/cockfighting.css */

/* Base Styles & Typography */
.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Dark text for light body background */
    line-height: 1.6;
    background-color: #f8f8f8; /* Light background for the main content area */
}

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

.page-cockfighting__section {
    padding: 60px 0;
    margin-bottom: 20px;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting__section:first-of-type {
    padding-top: 10px; /* Small top padding, relies on body padding-top from shared.css */
    margin-top: 20px; /* Visual separation from header */
}

.page-cockfighting__section-title {
    font-size: 36px;
    color: #017439;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

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

/* Hero Section */
.page-cockfighting__hero-section {
    background-color: #017439; /* Brand color background for hero */
    color: #ffffff;
    padding: 10px 0 60px; /* Small top padding */
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-cockfighting__hero-section .page-cockfighting__container {
    display: flex;
    flex-direction: column; /* Stack image then content */
    align-items: center;
    gap: 30px;
}

.page-cockfighting__image-wrapper {
    width: 100%;
    max-width: 1000px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

.page-cockfighting__main-visual {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-cockfighting__content-block {
    text-align: center;
    max-width: 800px;
}

.page-cockfighting__main-title {
    font-size: clamp(28px, 4vw, 48px); /* Use clamp for H1 */
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.page-cockfighting__description {
    font-size: 18px;
    margin-bottom: 30px;
}

.page-cockfighting__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    width: 100%;
    max-width: 500px; /* Limit button group width */
    margin: 0 auto;
}

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

.page-cockfighting__btn-primary {
    background-color: #C30808; /* Custom color for primary button */
    color: #FFFF00; /* Custom font color */
    border: 2px solid #C30808;
    box-shadow: 0 4px 15px rgba(195, 8, 8, 0.3);
}

.page-cockfighting__btn-primary:hover {
    background-color: #a00606;
    border-color: #a00606;
    box-shadow: 0 6px 20px rgba(195, 8, 8, 0.4);
    transform: translateY(-2px);
}

.page-cockfighting__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color for text */
    border: 2px solid #017439;
    box-shadow: 0 4px 10px rgba(0, 116, 57, 0.1);
}

.page-cockfighting__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #005f2e;
    box-shadow: 0 6px 15px rgba(0, 116, 57, 0.2);
    transform: translateY(-2px);
}

/* Two-column layout */
.page-cockfighting__two-column {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

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

.page-cockfighting__image-column {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.page-cockfighting__why-choose-image,
.page-cockfighting__types-image,
.page-cockfighting__tips-image,
.page-cockfighting__promotions-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Feature List */
.page-cockfighting__feature-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-cockfighting__feature-item {
    background-color: #f9f9f9;
    border-left: 5px solid #017439;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.page-cockfighting__feature-heading {
    font-size: 22px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Game Types Grid */
.page-cockfighting__types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.page-cockfighting__type-card {
    background-color: #f9f9f9;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    border: 1px solid #eee;
}

.page-cockfighting__card-title {
    font-size: 20px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 15px;
}

/* How-to Play Steps */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
}

.page-cockfighting__step-item {
    background-color: #f9f9f9;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.page-cockfighting__step-heading {
    font-size: 24px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Winning Tips */
.page-cockfighting__tips-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__tip-item {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.page-cockfighting__tip-item::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #017439;
    font-weight: bold;
    font-size: 20px;
}

.page-cockfighting__tip-heading {
    font-size: 20px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 5px;
}

/* Promotions List */
.page-cockfighting__promo-list {
    list-style: none;
    padding: 0;
}

.page-cockfighting__promo-item {
    background-color: #f9f9f9;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.page-cockfighting__promo-heading {
    font-size: 22px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

/* Responsible Gaming */
.page-cockfighting__responsibility-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.page-cockfighting__responsibility-item {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    border-top: 5px solid #017439;
}

.page-cockfighting__responsibility-heading {
    font-size: 22px;
    color: #017439;
    margin-top: 0;
    margin-bottom: 10px;
}

/* FAQ Section (details/summary based) */
details.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  overflow: hidden;
  background: #fff;
  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 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: #017439;
  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 8px 8px;
  color: #555555;
}

/* Conclusion */
.page-cockfighting__conclusion {
    text-align: center;
    padding-bottom: 80px;
}

/* Image Responsiveness (General) */
.page-cockfighting img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Responsive Design --- */

/* Tablet and Mobile (max-width: 1024px) */
@media (max-width: 1024px) {
    .page-cockfighting__section-title {
        font-size: 32px;
    }
    .page-cockfighting__intro-text {
        font-size: 17px;
    }
    .page-cockfighting__hero-section .page-cockfighting__container {
        gap: 20px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(24px, 5vw, 40px);
    }
    .page-cockfighting__description {
        font-size: 17px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 25px;
        font-size: 17px;
    }
    .page-cockfighting__two-column {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__image-column {
        order: -1; /* Image appears before text on smaller screens */
    }
    .page-cockfighting__types-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .page-cockfighting__step-heading,
    .page-cockfighting__feature-heading,
    .page-cockfighting__promo-heading,
    .page-cockfighting__responsibility-heading {
        font-size: 20px;
    }
    .page-cockfighting__responsibility-list {
        grid-template-columns: 1fr;
    }
}

/* Mobile (max-width: 768px) - MUST INCLUDE ALL REQUIRED BLOCKS */
@media (max-width: 768px) {
    /* 1. Top section __hero-section / __section:首块顶距约 10px */
    .page-cockfighting__section:first-of-type,
    .page-cockfighting__hero-section {
        padding-top: 10px;
        margin-top: 10px;
    }

    /* 2. 落地页双栏模块单列堆叠 */
    .page-cockfighting__hero-section .page-cockfighting__container {
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__two-column {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__reverse-order-mobile .page-cockfighting__image-column {
        order: 0;
    }
    .page-cockfighting__reverse-order-mobile .page-cockfighting__text-content {
        order: 1;
    }

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

    /* 4. 按钮 max-width:100% !important, 可换行 */
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
        font-size: 16px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 25px;
    }
    .page-cockfighting__intro-text {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-cockfighting__main-title {
        font-size: clamp(24px, 7vw, 36px);
    }
    .page-cockfighting__description {
        font-size: 16px;
    }
    .page-cockfighting__feature-item,
    .page-cockfighting__step-item,
    .page-cockfighting__type-card,
    .page-cockfighting__promo-item,
    .page-cockfighting__responsibility-item {
        padding: 20px;
    }
    .page-cockfighting__feature-heading,
    .page-cockfighting__step-heading,
    .page-cockfighting__card-title,
    .page-cockfighting__tip-heading,
    .page-cockfighting__promo-heading,
    .page-cockfighting__responsibility-heading {
        font-size: 18px;
    }
    details.page-cockfighting__faq-item summary.page-cockfighting__faq-question { padding: 15px; }
    .page-cockfighting__faq-qtext { font-size: 15px; }
    .page-cockfighting__faq-toggle { font-size: 20px; width: 24px; }
    details.page-cockfighting__faq-item .page-cockfighting__faq-answer { padding: 0 15px 15px; }
}