.page-resources-tf88-platform-overview {
  font-family: 'Arial', sans-serif;
  color: #333333;
  line-height: 1.6;
  background-color: #f8f8f8;
}

.page-resources-tf88-platform-overview__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-resources-tf88-platform-overview__section-title {
  font-size: 36px;
  font-weight: 700;
  color: #000080;
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}

.page-resources-tf88-platform-overview__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #FFD700;
  border-radius: 2px;
}

.page-resources-tf88-platform-overview__section-title--light {
  color: #ffffff;
}

.page-resources-tf88-platform-overview__section-title--light::after {
  background-color: #ffffff;
}

.page-resources-tf88-platform-overview__text-block {
  font-size: 17px;
  line-height: 1.8;
  margin-bottom: 20px;
  text-align: justify;
  color: #333333;
}

.page-resources-tf88-platform-overview__text-block--light {
  color: #f0f0f0;
}

.page-resources-tf88-platform-overview__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #FFD700;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-resources-tf88-platform-overview__cta-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.page-resources-tf88-platform-overview__cta-button--light {
  background: #000080;
  color: #FFD700;
  border: 2px solid #FFD700;
}

.page-resources-tf88-platform-overview__cta-button--light:hover {
  background: #000066;
  color: #ffffff;
  border-color: #ffffff;
}

.page-resources-tf88-platform-overview__btn-primary {
  display: inline-block;
  padding: 10px 25px;
  background: #FFD700;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  margin-top: 15px;
}

.page-resources-tf88-platform-overview__btn-primary:hover {
  background: #e6c200;
}

.page-resources-tf88-platform-overview__btn-secondary {
  display: inline-block;
  padding: 10px 25px;
  background: #000080;
  color: #FFD700;
  text-decoration: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #FFD700;
  cursor: pointer;
  margin-top: 15px;
}

.page-resources-tf88-platform-overview__btn-secondary:hover {
  background: #FFD700;
  color: #000080;
  border-color: #000080;
}

.page-resources-tf88-platform-overview__button-group {
  text-align: center;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* Hero Section */
.page-resources-tf88-platform-overview__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;
  background-color: #000080; /* Fallback for image */
}

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

.page-resources-tf88-platform-overview__hero-image-wrapper {
  width: 100%;
  margin-bottom: 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-resources-tf88-platform-overview__hero-image {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.8); /* Subtle dimming to ensure text contrast */
}

.page-resources-tf88-platform-overview__hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  width: 80%;
  max-width: 800px;
}

.page-resources-tf88-platform-overview__main-title {
  font-size: 52px;
  font-weight: 900;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.page-resources-tf88-platform-overview__hero-description {
  font-size: 20px;
  color: #ffffff;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.6);
}

/* Introduction Section */
.page-resources-tf88-platform-overview__introduction-section {
  padding: 80px 0;
  background-color: #ffffff;
}

/* Games Section */
.page-resources-tf88-platform-overview__games-section {
  padding: 80px 0;
  background-color: #000080;
  color: #ffffff;
}

.page-resources-tf88-platform-overview__game-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-tf88-platform-overview__game-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-tf88-platform-overview__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.page-resources-tf88-platform-overview__game-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 12px 12px 0 0;
}

.page-resources-tf88-platform-overview__game-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #000080;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-resources-tf88-platform-overview__game-card-description {
  font-size: 16px;
  color: #555555;
  padding: 0 20px;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Promotions Section */
.page-resources-tf88-platform-overview__promotions-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-resources-tf88-platform-overview__promo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-tf88-platform-overview__promo-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  padding-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-resources-tf88-platform-overview__promo-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-tf88-platform-overview__promo-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 12px 12px 0 0;
}

.page-resources-tf88-platform-overview__promo-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #000080;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-resources-tf88-platform-overview__promo-card-description {
  font-size: 15px;
  color: #555555;
  padding: 0 20px;
}

/* Security & Support Section */
.page-resources-tf88-platform-overview__security-support-section {
  padding: 80px 0;
  background-color: #000080;
  color: #ffffff;
}

.page-resources-tf88-platform-overview__feature-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-tf88-platform-overview__feature-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  padding: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-resources-tf88-platform-overview__feature-card-image {
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  margin-bottom: 25px;
  filter: drop-shadow(0 5px 10px rgba(0,0,0,0.1));
}

.page-resources-tf88-platform-overview__feature-card-title {
  font-size: 22px;
  font-weight: 700;
  color: #000080;
  margin-bottom: 15px;
}

.page-resources-tf88-platform-overview__feature-card-description {
  font-size: 16px;
  color: #555555;
  line-height: 1.7;
}

/* Get Started Section */
.page-resources-tf88-platform-overview__get-started-section {
  padding: 80px 0;
  background-color: #ffffff;
}

.page-resources-tf88-platform-overview__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-tf88-platform-overview__step-card {
  background-color: #f0f0f0;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.page-resources-tf88-platform-overview__step-number {
  font-size: 60px;
  font-weight: 900;
  color: rgba(0, 0, 128, 0.1);
  position: absolute;
  top: 10px;
  left: 20px;
  line-height: 1;
  z-index: 0;
}

.page-resources-tf88-platform-overview__step-title {
  font-size: 24px;
  font-weight: 700;
  color: #000080;
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.page-resources-tf88-platform-overview__step-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

/* FAQ Section */
.page-resources-tf88-platform-overview__faq-section {
  padding: 80px 0;
  background-color: #000080;
}

.page-resources-tf88-platform-overview__faq-list {
  margin-top: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ容器样式 */
.page-resources-tf88-platform-overview__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-resources-tf88-platform-overview__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-color: #f9f9f9;
  color: #333333;
}

/* FAQ展开状态 - 🚨 使用!important和足够大的max-height确保一定能展开 */
.page-resources-tf88-platform-overview__faq-item.active .page-resources-tf88-platform-overview__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: #f9f9f9;
  border-radius: 0 0 8px 8px;
}

/* 问题样式 */
.page-resources-tf88-platform-overview__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-resources-tf88-platform-overview__faq-item.active .page-resources-tf88-platform-overview__faq-question {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}

.page-resources-tf88-platform-overview__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-resources-tf88-platform-overview__faq-question:active {
  background: #eeeeee;
}

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

/* 切换图标 */
.page-resources-tf88-platform-overview__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  line-height: 1;
  color: #FFD700;
  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: 30px;
  height: 30px;
}

.page-resources-tf88-platform-overview__faq-item.active .page-resources-tf88-platform-overview__faq-toggle {
  color: #000080;
  transform: rotate(45deg);
}

/* News Section */
.page-resources-tf88-platform-overview__news-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

.page-resources-tf88-platform-overview__news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-resources-tf88-platform-overview__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.page-resources-tf88-platform-overview__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.page-resources-tf88-platform-overview__news-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
}

.page-resources-tf88-platform-overview__news-card-title {
  font-size: 22px;
  font-weight: 700;
  margin: 20px 20px 10px;
  line-height: 1.4;
  flex-grow: 1;
}

.page-resources-tf88-platform-overview__news-card-title a {
  color: #000080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-resources-tf88-platform-overview__news-card-title a:hover {
  color: #FFD700;
}

.page-resources-tf88-platform-overview__news-card-date {
  font-size: 14px;
  color: #888888;
  margin: 0 20px 15px;
}

.page-resources-tf88-platform-overview__news-card-excerpt {
  font-size: 15px;
  color: #555555;
  margin: 0 20px 25px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-resources-tf88-platform-overview__main-title {
    font-size: 44px;
  }

  .page-resources-tf88-platform-overview__hero-description {
    font-size: 18px;
  }

  .page-resources-tf88-platform-overview__section-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-resources-tf88-platform-overview__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-resources-tf88-platform-overview__hero-image-wrapper {
    margin-bottom: 20px;
    border-radius: 8px;
  }

  .page-resources-tf88-platform-overview__hero-content {
    width: 90%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: relative;
    margin-top: -100%; /* Adjust to layer content over image */
  }

  .page-resources-tf88-platform-overview__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-resources-tf88-platform-overview__hero-description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-resources-tf88-platform-overview__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    width: 100% !important;
    max-width: 300px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .page-resources-tf88-platform-overview__introduction-section,
  .page-resources-tf88-platform-overview__games-section,
  .page-resources-tf88-platform-overview__promotions-section,
  .page-resources-tf88-platform-overview__security-support-section,
  .page-resources-tf88-platform-overview__get-started-section,
  .page-resources-tf88-platform-overview__faq-section,
  .page-resources-tf88-platform-overview__news-section {
    padding: 50px 0;
  }

  .page-resources-tf88-platform-overview__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-resources-tf88-platform-overview__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-resources-tf88-platform-overview__text-block {
    font-size: 15px;
  }

  .page-resources-tf88-platform-overview__game-cards,
  .page-resources-tf88-platform-overview__promo-grid,
  .page-resources-tf88-platform-overview__feature-cards,
  .page-resources-tf88-platform-overview__steps-grid,
  .page-resources-tf88-platform-overview__news-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .page-resources-tf88-platform-overview__game-card-image,
  .page-resources-tf88-platform-overview__promo-card-image,
  .page-resources-tf88-platform-overview__feature-card-image,
  .page-resources-tf88-platform-overview__news-card-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* FAQ Mobile */
  .page-resources-tf88-platform-overview__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-resources-tf88-platform-overview__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-resources-tf88-platform-overview__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 22px;
  }
  
  .page-resources-tf88-platform-overview__faq-answer {
    padding: 0 15px;
  }
  
  .page-resources-tf88-platform-overview__faq-item.active .page-resources-tf88-platform-overview__faq-answer {
    padding: 15px !important;
  }

  /* All images */
  .page-resources-tf88-platform-overview img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-resources-tf88-platform-overview__section,
  .page-resources-tf88-platform-overview__card,
  .page-resources-tf88-platform-overview__container,
  .page-resources-tf88-platform-overview__button-group {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons mobile */
  .page-resources-tf88-platform-overview__cta-button,
  .page-resources-tf88-platform-overview__btn-primary,
  .page-resources-tf88-platform-overview__btn-secondary,
  .page-resources-tf88-platform-overview a[class*="button"],
  .page-resources-tf88-platform-overview 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-left: 15px;
    padding-right: 15px;
  }
  .page-resources-tf88-platform-overview__button-group {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-resources-tf88-platform-overview__hero-content .page-resources-tf88-platform-overview__cta-button {
    max-width: 250px !important;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-resources-tf88-platform-overview__main-title {
    font-size: 28px;
  }

  .page-resources-tf88-platform-overview__section-title {
    font-size: 24px;
  }

  .page-resources-tf88-platform-overview__hero-image-wrapper {
    border-radius: 4px;
  }

  .page-resources-tf88-platform-overview__hero-content {
    width: 95%;
  }
}