.page-app-tai-xiu-online {
  font-family: 'Arial', sans-serif;
  color: var(--text-color-dark);
  line-height: 1.6;
  background-color: var(--dark-bg-1);
}

.page-app-tai-xiu-online__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-app-tai-xiu-online__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--primary-color-text);
  text-align: center;
  margin-bottom: 40px;
  padding-top: 20px;
}

.page-app-tai-xiu-online__section-description {
  font-size: 18px;
  text-align: center;
  color: var(--text-color-light);
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-app-tai-xiu-online__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-app-tai-xiu-online__cta-button:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-app-tai-xiu-online__center-button {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* HERO Section */
.page-app-tai-xiu-online__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: 180px; /* Desktop: Adjust for fixed header */
  background: var(--dark-bg-1);
  color: #ffffff; /* Light text on dark background */
}

.page-app-tai-xiu-online__hero-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-app-tai-xiu-online__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-app-tai-xiu-online__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-app-tai-xiu-online__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-app-tai-xiu-online__hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-app-tai-xiu-online__hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  color: #f0f0f0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Game Leaderboard Section */
.page-app-tai-xiu-online__game-leaderboard-section {
  padding: 60px 0;
  background: #f1f3f5; /* Light background for contrast */
  color: #333333; /* Dark text on light background */
}

.page-app-tai-xiu-online__page-title {
  font-size: 38px;
  font-weight: bold;
  color: #333333;
  text-align: center;
  margin-bottom: 50px;
}

.page-app-tai-xiu-online__game-leaderboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.page-app-tai-xiu-online__game-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-app-tai-xiu-online__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.page-app-tai-xiu-online__game-card-segment {
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.page-app-tai-xiu-online__game-card-segment:not(:first-child) {
  border-left: 1px solid #e4e4e4;
}

.page-app-tai-xiu-online__segment-1 {
  flex-shrink: 0;
  width: 120px;
  padding-left: 0;
  padding-right: 20px;
  border-left: none;
}

.page-app-tai-xiu-online__segment-2 {
  flex: 1;
}

.page-app-tai-xiu-online__segment-3 {
  flex-shrink: 0;
  width: 150px;
}

.page-app-tai-xiu-online__segment-4 {
  flex-shrink: 0;
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.page-app-tai-xiu-online__rank-badge {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b35, #ff8c42); /* Default for 4+ */
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -10px;
  left: -10px;
  z-index: 1;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.page-app-tai-xiu-online__rank-1 {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Gold */
}

.page-app-tai-xiu-online__rank-2 {
  background: linear-gradient(135deg, #C0C0C0, #A0A0A0); /* Silver */
}

.page-app-tai-xiu-online__rank-3 {
  background: linear-gradient(135deg, #CD7F32, #B87333); /* Bronze */
}

.page-app-tai-xiu-online__game-icon {
  max-width: 100px;
  height: auto;
  display: block;
  border-radius: 8px;
  margin-top: 10px;
}

.page-app-tai-xiu-online__game-name {
  font-size: 24px;
  font-weight: bold;
  color: #000000;
  margin-bottom: 8px;
  text-align: center;
}

.page-app-tai-xiu-online__game-name-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease, text-decoration 0.3s ease;
}

.page-app-tai-xiu-online__game-name-link:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-app-tai-xiu-online__game-description {
  font-size: 14px;
  color: #000000;
  font-weight: bold;
  text-align: center;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.page-app-tai-xiu-online__game-description a {
  color: #0066cc;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-app-tai-xiu-online__game-description a:hover {
  color: #004499;
  text-decoration: underline;
}

.page-app-tai-xiu-online__game-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 5px;
}

.page-app-tai-xiu-online__stars {
  color: #FFD700;
  font-size: 18px;
  font-weight: bold;
}

.page-app-tai-xiu-online__rating-number {
  font-size: 16px;
  font-weight: bold;
  color: #333333;
}

.page-app-tai-xiu-online__promotion-text {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: #0066cc;
  font-weight: bold;
}

.page-app-tai-xiu-online__promotion-link {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-app-tai-xiu-online__promotion-link:hover {
  color: #004499;
  text-decoration: underline;
}

.page-app-tai-xiu-online__hot-badge {
  background: #ff4d4d;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.page-app-tai-xiu-online__btn-download,
.page-app-tai-xiu-online__btn-review {
  display: block;
  width: 100%;
  padding: 12px 15px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: none;
}

.page-app-tai-xiu-online__btn-download {
  background: linear-gradient(135deg, var(--primary-color), #4CAF50); /* Greenish for download */
  color: #ffffff;
}

.page-app-tai-xiu-online__btn-download:hover {
  background: linear-gradient(135deg, #4CAF50, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-app-tai-xiu-online__btn-review {
  background: linear-gradient(135deg, #FFD700, #FFA500); /* Golden for review */
  color: #333333;
}

.page-app-tai-xiu-online__btn-review:hover {
  background: linear-gradient(135deg, #FFA500, #FFD700);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Brand Review Content Section */
.page-app-tai-xiu-online__review-content-section {
  padding: 40px 20px;
  background: #f1f3f5; /* Light background for contrast */
  color: #333333;
}

.page-app-tai-xiu-online__review-content-container {
  max-width: 1400px; /* Wider for better readability */
  margin: 0 auto;
}

.page-app-tai-xiu-online__review-content-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 40px;
}

.page-app-tai-xiu-online__review-title {
  font-size: 28px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 24px;
  text-align: center;
}

.page-app-tai-xiu-online__review-content-card h3 {
  font-size: 20px;
  font-weight: bold;
  color: #333333;
  margin-top: 24px;
  margin-bottom: 12px;
}

.page-app-tai-xiu-online__review-body {
  color: #333333;
  line-height: 1.7;
}

.page-app-tai-xiu-online__review-body p {
  margin-bottom: 16px;
  font-size: 16px;
}

/* Homepage Introduction Section */
.page-app-tai-xiu-online__intro-section {
  padding: 60px 0;
  background: var(--dark-bg-1);
  color: #ffffff;
}

.page-app-tai-xiu-online__intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: left;
}

.page-app-tai-xiu-online__intro-content p {
  margin-bottom: 15px;
  font-size: 17px;
  color: #f0f0f0;
}

.page-app-tai-xiu-online__intro-content strong {
  color: #FFD700;
}

.page-app-tai-xiu-online__sub-title {
  font-size: 24px;
  font-weight: bold;
  color: #FFD700;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-app-tai-xiu-online__list {
  list-style-type: disc;
  margin-left: 25px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-app-tai-xiu-online__list li {
  margin-bottom: 8px;
  font-size: 16px;
}

.page-app-tai-xiu-online__intro-content a {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-app-tai-xiu-online__intro-content a:hover {
  color: #FFA500;
  text-decoration: underline;
}

/* Core Games/Services Section */
.page-app-tai-xiu-online__games-section {
  padding: 60px 0;
  background: #ffffff;
  color: #333333;
}

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

.page-app-tai-xiu-online__game-type-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-app-tai-xiu-online__game-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-app-tai-xiu-online__game-type-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-app-tai-xiu-online__game-type-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.page-app-tai-xiu-online__game-type-description {
  font-size: 16px;
  color: #555555;
  margin-bottom: 20px;
}

.page-app-tai-xiu-online__game-type-link {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-app-tai-xiu-online__game-type-link:hover {
  background: var(--secondary-color);
}

/* Promotions Section */
.page-app-tai-xiu-online__promotions-section {
  padding: 60px 0;
  background: var(--dark-bg-1);
  color: #ffffff;
}

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

.page-app-tai-xiu-online__promo-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.page-app-tai-xiu-online__promo-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.page-app-tai-xiu-online__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-app-tai-xiu-online__promo-title {
  font-size: 22px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-app-tai-xiu-online__promo-description {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-app-tai-xiu-online__promo-button {
  display: inline-block;
  padding: 10px 25px;
  background: var(--primary-color);
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-app-tai-xiu-online__promo-button:hover {
  background: var(--secondary-color);
}

/* Latest Blog Content Section */
.page-app-tai-xiu-online__blog-section {
  padding: 60px 0;
  background: #ffffff;
  color: #333333;
}

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

.page-app-tai-xiu-online__blog-card {
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.page-app-tai-xiu-online__blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-app-tai-xiu-online__blog-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.page-app-tai-xiu-online__blog-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.page-app-tai-xiu-online__blog-title {
  font-size: 20px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.page-app-tai-xiu-online__blog-title a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-app-tai-xiu-online__blog-title a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-app-tai-xiu-online__blog-excerpt {
  font-size: 15px;
  color: #555555;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-app-tai-xiu-online__read-more {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-app-tai-xiu-online__read-more:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-app-tai-xiu-online__hero-title {
    font-size: 42px;
  }

  .page-app-tai-xiu-online__hero-description {
    font-size: 18px;
  }

  .page-app-tai-xiu-online__page-title {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .page-app-tai-xiu-online__hero-section {
    padding-top: 140px !important; /* Mobile: Adjust for fixed header */
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-app-tai-xiu-online__hero-title {
    font-size: 32px;
  }

  .page-app-tai-xiu-online__hero-description {
    font-size: 16px;
  }

  .page-app-tai-xiu-online__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .page-app-tai-xiu-online__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-app-tai-xiu-online__section-description {
    font-size: 16px;
    margin-bottom: 40px;
  }

  .page-app-tai-xiu-online__game-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    gap: 15px;
  }

  .page-app-tai-xiu-online__game-card-segment {
    padding: 0;
    border-left: none !important;
    width: 100%;
    text-align: left;
    align-items: flex-start;
  }

  .page-app-tai-xiu-online__segment-1 {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e4e4;
  }

  .page-app-tai-xiu-online__rank-badge {
    position: static;
    margin-right: 10px;
    top: auto;
    left: auto;
  }

  .page-app-tai-xiu-online__game-icon {
    max-width: 80px;
    margin-top: 0;
  }

  .page-app-tai-xiu-online__segment-2 {
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e4e4;
  }

  .page-app-tai-xiu-online__game-name,
  .page-app-tai-xiu-online__game-description {
    text-align: left;
  }

  .page-app-tai-xiu-online__segment-3 {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e4e4e4;
  }

  .page-app-tai-xiu-online__segment-4 {
    width: 100%;
    max-width: 100%;
    padding-top: 15px;
    flex-direction: column;
    gap: 10px;
    box-sizing: border-box !important;
    padding-left: 0px !important;
    padding-right: 0px !important;
  }

  .page-app-tai-xiu-online__btn-download,
  .page-app-tai-xiu-online__btn-review {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 14px !important;
    padding: 10px 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    min-width: auto !important;
  }

  .page-app-tai-xiu-online__review-content-section {
    padding: 20px 15px;
  }

  .page-app-tai-xiu-online__review-content-card {
    padding: 24px 20px;
  }

  .page-app-tai-xiu-online__review-title {
    font-size: 24px;
  }

  .page-app-tai-xiu-online__review-content-card h3 {
    font-size: 18px;
  }

  .page-app-tai-xiu-online__review-body p {
    font-size: 15px;
  }

  .page-app-tai-xiu-online__intro-section {
    padding: 40px 0;
  }

  .page-app-tai-xiu-online__sub-title {
    font-size: 20px;
  }

  .page-app-tai-xiu-online__list {
    margin-left: 20px;
  }

  .page-app-tai-xiu-online__list li {
    font-size: 15px;
  }

  .page-app-tai-xiu-online__games-section,
  .page-app-tai-xiu-online__promotions-section,
  .page-app-tai-xiu-online__blog-section {
    padding: 40px 0;
  }

  .page-app-tai-xiu-online__game-type-card,
  .page-app-tai-xiu-online__promo-card,
  .page-app-tai-xiu-online__blog-card {
    padding: 20px;
  }

  .page-app-tai-xiu-online__game-type-title,
  .page-app-tai-xiu-online__promo-title,
  .page-app-tai-xiu-online__blog-title {
    font-size: 20px;
  }

  .page-app-tai-xiu-online__game-type-description,
  .page-app-tai-xiu-online__promo-description,
  .page-app-tai-xiu-online__blog-excerpt {
    font-size: 14px;
  }

  .page-app-tai-xiu-online__blog-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .page-app-tai-xiu-online__hero-title {
    font-size: 28px;
  }

  .page-app-tai-xiu-online__hero-description {
    font-size: 15px;
  }

  .page-app-tai-xiu-online__page-title {
    font-size: 26px;
  }

  .page-app-tai-xiu-online__game-icon {
    max-width: 60px;
  }

  .page-app-tai-xiu-online__game-name {
    font-size: 20px;
  }

  .page-app-tai-xiu-online__game-description {
    font-size: 13px;
  }

  .page-app-tai-xiu-online__stars,
  .page-app-tai-xiu-online__rating-number {
    font-size: 15px;
  }

  .page-app-tai-xiu-online__promotion-text {
    font-size: 13px;
  }

  .page-app-tai-xiu-online__btn-download,
  .page-app-tai-xiu-online__btn-review {
    font-size: 13px !important;
    padding: 8px 10px !important;
  }
}

/* Ensure all images are responsive */
.page-app-tai-xiu-online img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image and container overrides */
@media (max-width: 768px) {
  .page-app-tai-xiu-online img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-app-tai-xiu-online__section,
  .page-app-tai-xiu-online__card,
  .page-app-tai-xiu-online__container,
  .page-app-tai-xiu-online__game-card,
  .page-app-tai-xiu-online__review-content-card,
  .page-app-tai-xiu-online__game-type-card,
  .page-app-tai-xiu-online__promo-card,
  .page-app-tai-xiu-online__blog-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-app-tai-xiu-online__hero-container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-app-tai-xiu-online__hero-section {
    padding-left: 0;
    padding-right: 0;
  }
  .page-app-tai-xiu-online__game-leaderboard-section .page-app-tai-xiu-online__container {
    padding-left: 0;
    padding-right: 0;
  }
}