/* style/index-hiphop-event-intro.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --login-button-color: #EA7C07;
}

.page-index-hiphop-event-intro {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--secondary-color);
}

.page-index-hiphop-event-intro__dark-bg {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-index-hiphop-event-intro__light-bg {
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-index-hiphop-event-intro__section {
  padding: 60px 20px;
  text-align: center;
}

.page-index-hiphop-event-intro__container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-index-hiphop-event-intro__main-title {
  font-size: 44px;
  margin-bottom: 20px;
  font-weight: bold;
  color: var(--text-light);
}

.page-index-hiphop-event-intro__intro-text {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: var(--text-light);
}

.page-index-hiphop-event-intro__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);
  overflow: hidden;
}

.page-index-hiphop-event-intro__hero-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-index-hiphop-event-intro__hero-image {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 8px;
  overflow: hidden;
}

.page-index-hiphop-event-intro__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.page-index-hiphop-event-intro__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
}

.page-index-hiphop-event-intro__section-title {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: bold;
}

.page-index-hiphop-event-intro__paragraph {
  font-size: 17px;
  margin-bottom: 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: justify;
}

.page-index-hiphop-event-intro__keyword {
  font-weight: bold;
  color: var(--primary-color);
}

.page-index-hiphop-event-intro__dark-bg .page-index-hiphop-event-intro__keyword {
  color: var(--secondary-color);
}

.page-index-hiphop-event-intro__image-wrapper {
  margin: 40px auto;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-index-hiphop-event-intro__image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-index-hiphop-event-intro__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-index-hiphop-event-intro__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
  border: 2px solid transparent;
}

.page-index-hiphop-event-intro__btn-primary:hover {
  background: #1e87c0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-index-hiphop-event-intro__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.page-index-hiphop-event-intro__btn-secondary:hover {
  background: #e0f2f7;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-index-hiphop-event-intro__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.page-index-hiphop-event-intro__button-group--center {
  margin-top: 40px;
}

.page-index-hiphop-event-intro__link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-index-hiphop-event-intro__link:hover {
  color: #1e87c0;
  text-decoration: underline;
}

.page-index-hiphop-event-intro__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-index-hiphop-event-intro__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-hiphop-event-intro__step-title {
  font-size: 22px;
  color: var(--text-light);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-hiphop-event-intro__step-description {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-index-hiphop-event-intro__promotion-card {
  text-align: left;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--secondary-color);
  color: var(--text-dark);
}

.page-index-hiphop-event-intro__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-index-hiphop-event-intro__card-title {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-index-hiphop-event-intro__card-description {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-index-hiphop-event-intro__game-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  text-align: left;
}

.page-index-hiphop-event-intro__game-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-index-hiphop-event-intro__game-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.page-index-hiphop-event-intro__game-item a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.page-index-hiphop-event-intro__game-title {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 10px;
  font-weight: bold;
}

.page-index-hiphop-event-intro__game-description {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.page-index-hiphop-event-intro__faq-list {
  margin-top: 40px;
  text-align: left;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

/* FAQ展开状态 - 🚨 Sử dụng!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-index-hiphop-event-intro__faq-item.active .page-index-hiphop-event-intro__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;
}

/* Câu hỏi kiểu */
.page-index-hiphop-event-intro__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-index-hiphop-event-intro__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-index-hiphop-event-intro__faq-question:active {
  background: #eeeeee;
}

/* Tiêu đề câu hỏi kiểu */
.page-index-hiphop-event-intro__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Ngăn chặn thẻ h3 chặn sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-index-hiphop-event-intro__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 chặ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-index-hiphop-event-intro__faq-item.active .page-index-hiphop-event-intro__faq-toggle {
  color: #333;
}

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

.page-index-hiphop-event-intro__blog-card {
  text-align: left;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--secondary-color);
  color: var(--text-dark);
  text-decoration: none;
}

.page-index-hiphop-event-intro__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .page-index-hiphop-event-intro__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-hiphop-event-intro__main-title {
    font-size: 32px;
  }

  .page-index-hiphop-event-intro__intro-text {
    font-size: 16px;
  }

  .page-index-hiphop-event-intro__section-title {
    font-size: 28px;
  }

  .page-index-hiphop-event-intro__paragraph {
    font-size: 15px;
  }

  .page-index-hiphop-event-intro__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important;
    max-width: 100% !important;
  }

  .page-index-hiphop-event-intro__button-group {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-index-hiphop-event-intro__steps,
  .page-index-hiphop-event-intro__promotions-grid,
  .page-index-hiphop-event-intro__game-list,
  .page-index-hiphop-event-intro__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-index-hiphop-event-intro__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-index-hiphop-event-intro__faq-question h3 {
    font-size: 15px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-index-hiphop-event-intro__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-index-hiphop-event-intro__faq-answer {
    padding: 0 15px;
  }
  
  .page-index-hiphop-event-intro__faq-item.active .page-index-hiphop-event-intro__faq-answer {
    padding: 15px !important;
  }

  .page-index-hiphop-event-intro img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-index-hiphop-event-intro__section,
  .page-index-hiphop-event-intro__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}