/* style/cockfighting.css */

:root {
    --primary-color: #1A202C;
    --secondary-color: #FFD700;
    --text-on-dark: #ffffff;
    --text-on-light: #333333;
    --light-bg: #f9f9f9;
    --border-color: #e0e0e0;
}

.page-cockfighting {
    font-family: 'Arial', sans-serif;
    color: var(--text-on-dark); /* Default text color for dark body background */
    background-color: var(--primary-color);
    line-height: 1.6;
}

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

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

.page-cockfighting__dark-bg {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

.page-cockfighting__medium-bg {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-cockfighting__light-bg {
    background-color: var(--light-bg);
    color: var(--text-on-light);
}

.page-cockfighting__section-title {
    font-size: 38px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: inherit;
}

.page-cockfighting__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: inherit;
}

.page-cockfighting__content-wrapper {
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

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

.page-cockfighting__image-content {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    margin: 30px auto;
    object-fit: cover;
}

.page-cockfighting__center-buttons {
    text-align: center;
    margin-top: 40px;
}

/* 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);
    min-height: 600px;
}

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

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

.page-cockfighting__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.5); /* Darken image for text readability */
}

.page-cockfighting__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 900px;
    color: var(--text-on-dark);
}

.page-cockfighting__hero-title {
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-on-dark);
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-cockfighting__hero-description {
    font-size: 20px;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-on-dark);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-cockfighting__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page-cockfighting__btn-primary {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.page-cockfighting__btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.page-cockfighting__btn-secondary {
    background: transparent;
    color: var(--text-on-dark);
    border-color: var(--secondary-color);
}

.page-cockfighting__btn-secondary:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

/* Introduction Section */
.page-cockfighting__introduction {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

/* Betting Types Section */
.page-cockfighting__betting-types {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

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

.page-cockfighting__card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-cockfighting__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__card-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.page-cockfighting__card-text {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* Guide Section */
.page-cockfighting__guide {
    background-color: var(--light-bg);
    color: var(--text-on-light);
}

.page-cockfighting__guide .page-cockfighting__section-title,
.page-cockfighting__guide .page-cockfighting__section-description {
    color: var(--text-on-light);
}

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

.page-cockfighting__guide-item {
    text-align: center;
    padding: 25px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-cockfighting__guide-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.page-cockfighting__guide-icon {
    font-size: 48px;
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 15px;
    line-height: 1;
}

.page-cockfighting__guide-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.page-cockfighting__guide-item p {
    font-size: 16px;
    color: var(--text-on-light);
    margin-bottom: 15px;
}

.page-cockfighting__text-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-cockfighting__text-link:hover {
    color: var(--primary-color);
}

.page-cockfighting__image-guide {
    margin-top: 50px;
    border: 1px solid var(--border-color);
}

/* Promotions Section */
.page-cockfighting__promotions {
    background-color: var(--secondary-color);
    color: var(--text-on-light);
}

.page-cockfighting__promotions .page-cockfighting__section-title,
.page-cockfighting__promotions .page-cockfighting__section-description {
    color: var(--text-on-light);
}

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

.page-cockfighting__promo-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: var(--text-on-light);
}

.page-cockfighting__promo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__promo-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.page-cockfighting__promo-item h3 {
    font-size: 22px;
    font-weight: bold;
    margin: 20px 15px 10px 15px;
    color: var(--primary-color);
}

.page-cockfighting__promo-item p {
    font-size: 15px;
    margin: 0 15px 20px 15px;
    color: var(--text-on-light);
}

.page-cockfighting__btn-small {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: var(--text-on-dark);
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: bold;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.page-cockfighting__btn-small:hover {
    background: #0d1016;
}

/* Security Section */
.page-cockfighting__security {
    background-color: var(--primary-color);
    color: var(--text-on-dark);
}

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

.page-cockfighting__faq .page-cockfighting__section-title,
.page-cockfighting__faq .page-cockfighting__section-description {
    color: var(--text-on-light);
}

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

/* FAQ容器样式 */
.page-cockfighting__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* 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 20px;
  opacity: 0;
  background: #fdfdfd;
  color: var(--text-on-light);
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.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 !important;
  opacity: 1;
  background: #fdfdfd;
  border-radius: 0 0 8px 8px;
}

/* Vấn đề/Câu hỏi样式 */
.page-cockfighting__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-bottom: 1px solid var(--secondary-color);
    border-radius: 8px 8px 0 0;
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-question:hover {
    background-color: var(--secondary-color);
}

/* Vấn đề/Câu hỏi tiêu đề样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
  color: var(--primary-color);
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-question h3 {
    color: var(--primary-color);
}

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

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: var(--primary-color);
  transform: rotate(45deg);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-cockfighting__hero-title {
        font-size: 42px;
    }
    .page-cockfighting__hero-description {
        font-size: 18px;
    }
    .page-cockfighting__section-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-cockfighting {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-cockfighting__container {
        padding: 0 15px;
    }

    .page-cockfighting__section {
        padding: 40px 0;
    }
    
    .page-cockfighting__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        min-height: 450px;
    }

    .page-cockfighting__hero-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-cockfighting__hero-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-cockfighting__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .page-cockfighting__cta-button,
    .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 20px;
        font-size: 16px;
    }

    .page-cockfighting__hero-cta-buttons .page-cockfighting__cta-button {
        margin: 0;
    }

    .page-cockfighting__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .page-cockfighting__section-description {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .page-cockfighting__content-wrapper p {
        font-size: 16px;
    }

    .page-cockfighting__image-content {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        margin: 20px auto;
    }

    .page-cockfighting__card {
        padding: 20px;
    }

    .page-cockfighting__card-title {
        font-size: 20px;
    }

    .page-cockfighting__card-text {
        font-size: 15px;
    }

    .page-cockfighting__guide-item {
        padding: 20px;
    }

    .page-cockfighting__guide-icon {
        font-size: 40px;
    }

    .page-cockfighting__guide-title {
        font-size: 20px;
    }

    .page-cockfighting__promo-image {
        height: 180px;
    }

    .page-cockfighting__promo-item h3 {
        font-size: 20px;
        margin-top: 15px;
    }

    .page-cockfighting__promo-item p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .page-cockfighting__btn-small {
        padding: 8px 20px;
        font-size: 14px;
    }

    .page-cockfighting__faq-question {
        padding: 15px;
    }
    
    .page-cockfighting__faq-question h3 {
        font-size: 16px;
    }
    
    .page-cockfighting__faq-toggle {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }

    .page-cockfighting__faq-item.active .page-cockfighting__faq-answer {
        padding: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-cockfighting__hero-title {
        font-size: 28px;
    }
    .page-cockfighting__hero-description {
        font-size: 15px;
    }
    .page-cockfighting__section-title {
        font-size: 24px;
    }
    .page-cockfighting__cta-button {
        padding: 10px 25px;
        font-size: 15px;
    }
}