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

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

.page-cockfighting__section-title {
    font-size: 36px;
    font-weight: bold;
    color: #017439; /* Primary brand color */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 10px;
}

.page-cockfighting__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #C30808; /* Accent color */
    border-radius: 2px;
}

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

.page-cockfighting__section-title--light::after {
    background-color: #FFFF00;
}

.page-cockfighting__description-text {
    text-align: center;
    margin-bottom: 30px;
    font-size: 18px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

.page-cockfighting__description-text--light {
    color: #f0f0f0;
}

/* 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 offset */
  background: linear-gradient(135deg, #017439, #017439cc); /* Darker gradient for text contrast */
  overflow: hidden;
}

.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; /* Ensure content is above image */
}

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

.page-cockfighting__hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0.6; /* Slightly dim image for text readability */
}

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

.page-cockfighting__hero-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  color: #FFFF00; /* Yellow for prominence */
  line-height: 1.2;
}

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

.page-cockfighting__hero-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: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  min-width: 180px;
  text-align: center;
  box-sizing: border-box;
}

.page-cockfighting__cta-button--register {
  background: #C30808; /* Register button color */
  color: #FFFF00; /* Register font color */
  border: 2px solid #C30808;
}

.page-cockfighting__cta-button--register:hover {
  background: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.page-cockfighting__cta-button--login {
  background: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: 2px solid #C30808;
}

.page-cockfighting__cta-button--login:hover {
  background: #ff3333;
  border-color: #ff3333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Module 1: Introduction Section */
.page-cockfighting__introduction-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

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

.page-cockfighting__content-text {
    flex: 1;
    font-size: 17px;
    line-height: 1.7;
    color: #444444;
}

.page-cockfighting__content-text p {
    margin-bottom: 15px;
}

.page-cockfighting__content-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-cockfighting__content-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Module 2: Quick Access Section */
.page-cockfighting__quick-access-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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

.page-cockfighting__btn-link {
    display: block;
    padding: 18px 25px;
    background-color: #C30808; /* Accent button color */
    color: #FFFF00; /* Accent font color */
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 17px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-cockfighting__btn-link:hover {
    background-color: #ff3333;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Module 3: Game Details Section */
.page-cockfighting__game-details-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

.page-cockfighting__feature-item {
    background-color: #fdfdfd;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-cockfighting__feature-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__feature-title {
    font-size: 24px;
    font-weight: bold;
    color: #017439;
    margin-bottom: 15px;
}

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

/* Module 4: Promotions Section */
.page-cockfighting__promotions-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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

.page-cockfighting__promo-card {
    background-color: #016a34; /* Slightly lighter green */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-cockfighting__promo-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.page-cockfighting__promo-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-cockfighting__promo-title {
    font-size: 24px;
    font-weight: bold;
    color: #FFFF00; /* Yellow for prominence */
    margin-bottom: 15px;
}

.page-cockfighting__promo-card p {
    font-size: 16px;
    color: #f0f0f0;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 20px;
}

.page-cockfighting__btn-promo {
    display: inline-block;
    padding: 12px 25px;
    background-color: #C30808; /* Accent button color */
    color: #FFFF00; /* Accent font color */
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    width: auto;
    max-width: 100%;
}

.page-cockfighting__btn-promo:hover {
    background-color: #ff3333;
    transform: translateY(-2px);
}

/* Module 5: Security & Support Section */
.page-cockfighting__security-support-section {
    padding: 80px 0;
    background-color: #f8f8f8;
}

.page-cockfighting__btn-contact {
    display: inline-block;
    padding: 15px 30px;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
}

.page-cockfighting__btn-contact:hover {
    background-color: #005a2e;
    transform: translateY(-2px);
}

/* Module 6: FAQ Section */
.page-cockfighting__faq-section {
    padding: 80px 0;
    background-color: #ffffff;
}

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

/* 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和足够大的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 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* 问题样式 */
.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;
}

/* 问题标题样式 */
.page-cockfighting__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* 防止h3标签阻止点击事件 */
  color: #333333;
}

/* 切换图标 */
.page-cockfighting__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #017439; /* Primary color for toggle */
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* 防止图标阻止点击事件 */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-cockfighting__faq-item.active .page-cockfighting__faq-toggle {
  color: #C30808; /* Accent color when active */
  transform: rotate(180deg);
}

/* Module 7: Blog Section */
.page-cockfighting__blog-section {
    padding: 80px 0;
    background-color: #017439; /* Primary brand color */
    color: #ffffff;
}

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