/* style/cockfighting.css */
.page-cockfighting {
    font-family: Arial, sans-serif;
    color: #333333; /* Default text color on light backgrounds */
    background-color: #ffffff; /* Body background is white */
    line-height: 1.6;
}

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

.page-cockfighting__section {
    padding: 60px 0;
    text-align: center;
}

.page-cockfighting__section-title {
    font-size: 36px;
    color: #26A9E0;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* 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: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #e0f2f7, #ffffff); /* Light gradient background */
}

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

.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; /* Min image size */
    min-height: 200px; /* Min image size */
}

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

.page-cockfighting__main-title {
    font-size: 48px;
    color: #26A9E0;
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-cockfighting__hero-description {
    font-size: 20px;
    color: #555555;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.page-cockfighting__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

.page-cockfighting__btn-primary,
.page-cockfighting__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
}

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

.page-cockfighting__btn-primary:hover {
    background: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-cockfighting__btn-secondary:hover {
    background: #f0f8ff;
    color: #1e87c2;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

/* Content Grid */
.page-cockfighting__content-grid {
    display: flex;
    align-items: center;
    gap: 40px;
    text-align: left;
    margin-top: 40px;
}

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

.page-cockfighting__text-block,
.page-cockfighting__image-block {
    flex: 1;
    min-width: 300px; /* Ensure content doesn't get too squished */
}

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

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

/* Dark Background Section */
.page-cockfighting__dark-bg {
    background-color: #26A9E0;
    color: #ffffff;
}

.page-cockfighting__dark-bg .page-cockfighting__section-title {
    color: #ffffff;
}

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


/* Features Grid */
.page-cockfighting__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
    text-align: left;
}

.page-cockfighting__feature-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-cockfighting__feature-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__feature-item p {
    font-size: 16px;
    color: #f0f0f0;
}

/* Steps List */
.page-cockfighting__steps-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-cockfighting__steps-list li {
    margin-bottom: 25px;
    position: relative;
    padding-left: 40px;
}

.page-cockfighting__steps-list li::before {
    content: counter(step-counter);
    counter-increment: step-counter;
    position: absolute;
    left: 0;
    top: 0;
    background: #26A9E0;
    color: #ffffff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.page-cockfighting__steps-list {
    counter-reset: step-counter;
}

.page-cockfighting__step-title {
    font-size: 20px;
    color: #26A9E0;
    margin-bottom: 5px;
}

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

.page-cockfighting__tournament-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__tournament-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-cockfighting__tournament-card .page-cockfighting__card-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__tournament-card .page-cockfighting__card-text {
    font-size: 16px;
    color: #f0f0f0;
    flex-grow: 1;
}

/* Strategy List */
.page-cockfighting__strategy-list {
    list-style: disc;
    padding-left: 20px;
    text-align: left;
    font-size: 17px;
}

.page-cockfighting__strategy-list li {
    margin-bottom: 10px;
}

.page-cockfighting__strategy-list strong {
    color: #26A9E0;
}

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

.page-cockfighting__promotion-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-cockfighting__promotion-card img {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 15px;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-cockfighting__promotion-card .page-cockfighting__card-title {
    font-size: 22px;
    color: #ffffff;
    margin-bottom: 10px;
}

.page-cockfighting__promotion-card .page-cockfighting__card-text {
    font-size: 16px;
    color: #f0f0f0;
    flex-grow: 1;
    margin-bottom: 20px;
}

/* FAQ Section */
.page-cockfighting__faq {
    background-color: #f9f9f9;
}

.page-cockfighting__faq-list {
    max-width: 900px;
    margin: 40px auto 0 auto;
    text-align: left;
}

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ默认状态 - 答案隐藏 */
.page-cockfighting__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề kiểu dáng */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-cockfighting__faq-question:active {
  background: #eeeeee;
}

/* Kiểu dáng tiêu đề câu hỏi */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px; /* Tăng kích thước font để dễ đọc hơn */
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn thẻ h3 chặn sự kiện nhấp */
  color: #333333; /* Đảm bảo độ tương phản */
}

/* Biểu tượng chuyển đổi */
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #26A9E0; /* Sử dụng màu chính khi hoạt động */
  transform: rotate(45deg); /* Đã thay đổi để xoay cho hiệu ứng 'x' */
}

/* Bottom CTA Section */
.page-cockfighting__cta-bottom {
    padding: 80px 0;
}
.page-cockfighting__cta-bottom .page-cockfighting__section-title {
    margin-bottom: 25px;
}
.page-cockfighting__cta-bottom .page-cockfighting__section-description {
    margin-bottom: 40px;
    font-size: 18px;
}
.page-cockfighting__text-center {
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__main-title {
        font-size: 40px;
    }
    .page-cockfighting__section-title {
        font-size: 30px;
    }
    .page-cockfighting__hero-description,
    .page-cockfighting__section-description {
        font-size: 17px;
    }
    .page-cockfighting__btn-primary,
    .page-cockfighting__btn-secondary {
        padding: 12px 30px;
        font-size: 16px;
    }
    .page-cockfighting__content-grid {
        flex-direction: column;
        gap: 30px;
    }
    .page-cockfighting__content-grid--reverse {
        flex-direction: column; /* Stack normally on smaller screens */
    }
    .page-cockfighting__text-block,
    .page-cockfighting__image-block {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
        padding-bottom: 40px;
    }
    .page-cockfighting__main-title {
        font-size: 32px;
    }
    .page-cockfighting__hero-description {
        font-size: 16px;
    }
    .page-cockfighting__section {
        padding: 40px 0;
    }
    .page-cockfighting__section-title {
        font-size: 26px;
    }
    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-cockfighting__cta-buttons {
        flex-direction: column;
        gap: 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;
    }

    /* Images responsive for mobile */
    .page-cockfighting img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-width: unset !important; /* Remove min-width for mobile flexibility */
        min-height: unset !important; /* Remove min-height for mobile flexibility */
    }
    .page-cockfighting__section,
    .page-cockfighting__container,
    .page-cockfighting__card,
    .page-cockfighting__hero-container,
    .page-cockfighting__cta-buttons,
    .page-cockfighting__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-cockfighting__tournament-card img,
    .page-cockfighting__promotion-card img {
         /* Adjust fixed height for mobile cards */
    }

    /* FAQ mobile adjustments */
    .page-cockfighting__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
        width: calc(100% - 40px);
    }
    .page-cockfighting__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-cockfighting__faq-answer {
        padding: 0 15px;
    }
    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
    .page-cockfighting__cta-bottom {
        padding: 50px 0;
    }
}