.page-tr88 {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #f8f9fa;
}

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

.page-tr88__hero-section {
  position: relative;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on body padding-top from shared.css */
  padding-bottom: 40px;
  overflow: hidden;
  background-color: #1a1a1a;
  color: #ffffff;
}

.page-tr88__hero-image-container {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-tr88__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-tr88__hero-content {
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.page-tr88__main-title {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 15px;
  color: #ffffff;
  line-height: 1.2;
}

.page-tr88__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  color: #e0e0e0;
}

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

.page-tr88__btn-primary,
.page-tr88__btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tr88__btn-primary {
  background-color: #2563eb;
  color: #ffffff;
  border: 2px solid #2563eb;
}

.page-tr88__btn-primary:hover {
  background-color: #1e40af;
  border-color: #1e40af;
}

.page-tr88__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.page-tr88__btn-secondary:hover {
  background-color: #ffffff;
  color: #2563eb;
}

.page-tr88__section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: #2563eb;
}

.page-tr88__about-section,
.page-tr88__guide-section,
.page-tr88__payment-section,
.page-tr88__faq-section,
.page-tr88__download-section {
  padding: 60px 0;
  background-color: #f8f9fa;
  color: #333333;
}

.page-tr88__games-section,
.page-tr88__promo-section,
.page-tr88__contact-section {
  padding: 60px 0;
  background-color: #2563eb;
  color: #ffffff;
}

.page-tr88__games-section .page-tr88__section-title,
.page-tr88__promo-section .page-tr88__section-title,
.page-tr88__contact-section .page-tr88__section-title {
  color: #ffffff;
}

.page-tr88__text-block {
  font-size: 1.1rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.page-tr88__text-block a {
  color: #2563eb;
  text-decoration: underline;
}

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

.page-tr88__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

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

.page-tr88__game-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-tr88__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-tr88__game-description {
  font-size: 1rem;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-tr88__btn-play {
  display: inline-block;
  padding: 10px 25px;
  background-color: #fca311;
  color: #1a1a1a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tr88__btn-play:hover {
  background-color: #e69500;
}

.page-tr88__view-all-games {
  text-align: center;
  margin-top: 50px;
}

.page-tr88__btn-small {
  padding: 10px 20px;
  font-size: 0.95rem;
}

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

.page-tr88__step-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  box-sizing: border-box;
}

.page-tr88__step-icon {
  margin-bottom: 20px;
}

.page-tr88__step-icon img {
  width: 100%;
  max-width: 150px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.page-tr88__step-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 10px;
}

.page-tr88__step-description {
  font-size: 1rem;
  color: #555555;
}

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

.page-tr88__promo-card {
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
}

.page-tr88__promo-image {
  width: 100%;
  max-width: 350px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  object-fit: cover;
}

.page-tr88__promo-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-tr88__promo-description {
  font-size: 1rem;
  color: #e0e0e0;
  flex-grow: 1;
  margin-bottom: 20px;
}

.page-tr88__btn-claim {
  display: inline-block;
  padding: 10px 25px;
  background-color: #fca311;
  color: #1a1a1a;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tr88__btn-claim:hover {
  background-color: #e69500;
}

.page-tr88__btn-full-width {
  width: 100%;
  max-width: 300px;
  margin: 40px auto 0;
  display: block;
}

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

.page-tr88__method-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  height: 100%;
  box-sizing: border-box;
}

.page-tr88__method-icon {
  width: 100%;
  max-width: 80px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tr88__method-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #2563eb;
  margin-bottom: 10px;
}

.page-tr88__method-description {
  font-size: 1rem;
  color: #555555;
}

.page-tr88__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-tr88__faq-item {
  background-color: #ffffff;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-tr88__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  user-select: none;
  background-color: #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
}

.page-tr88__faq-question:hover {
  background-color: #e6e6e6;
}

.page-tr88__faq-qtext {
  font-size: 1.2rem;
  font-weight: 600;
  color: #333333;
  pointer-events: none; /* Prevent text from blocking click */
}

.page-tr88__faq-toggle {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2563eb;
  pointer-events: none; /* Prevent icon from blocking click */
  transition: transform 0.3s ease;
}

.page-tr88__faq-item.active .page-tr88__faq-toggle {
  transform: rotate(45deg);
}

.page-tr88__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  color: #555555;
  font-size: 1rem;
  line-height: 1.7;
}

.page-tr88__faq-item.active .page-tr88__faq-answer {
  max-height: 2000px !important; /* Sufficiently large height */
  padding: 20px 25px !important;
  opacity: 1;
}

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

.page-tr88__contact-card {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  box-sizing: border-box;
}

.page-tr88__contact-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-tr88__contact-title {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-tr88__contact-description {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-tr88__app-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-tr88__btn-download {
  display: inline-flex;
  align-items: center;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

.page-tr88__btn-ios {
  background-color: #000000;
  color: #ffffff;
}

.page-tr88__btn-ios:hover {
  background-color: #333333;
}

.page-tr88__btn-android {
  background-color: #3DDC84;
  color: #1a1a1a;
}

.page-tr88__btn-android:hover {
  background-color: #32c470;
}

.page-tr88__download-icon {
  width: 30px;
  height: 30px;
  margin-right: 10px;
  object-fit: contain;
}

/* General image responsiveness */
.page-tr88 img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .page-tr88__container {
    padding: 15px;
  }

  .page-tr88__hero-section {
    padding-top: 10px !important;
    padding-bottom: 30px;
  }

  .page-tr88__main-title {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .page-tr88__subtitle {
    font-size: clamp(0.9rem, 3.5vw, 1.1rem);
  }

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

  .page-tr88__btn-primary,
  .page-tr88__btn-secondary,
  .page-tr88__btn-play,
  .page-tr88__btn-claim,
  .page-tr88__btn-download,
  .page-tr88__btn-small,
  .page-tr88__btn-full-width {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 15px !important;
    font-size: 1rem !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-tr88__btn-full-width {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .page-tr88__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 20px;
  }

  .page-tr88__text-block {
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .page-tr88__games-grid,
  .page-tr88__steps-grid,
  .page-tr88__promo-cards,
  .page-tr88__payment-methods,
  .page-tr88__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-tr88__games-section,
  .page-tr88__about-section,
  .page-tr88__guide-section,
  .page-tr88__promo-section,
  .page-tr88__payment-section,
  .page-tr88__faq-section,
  .page-tr88__contact-section,
  .page-tr88__download-section {
    padding: 40px 0;
  }

  .page-tr88__game-card,
  .page-tr88__step-card,
  .page-tr88__promo-card,
  .page-tr88__method-card,
  .page-tr88__contact-card {
    padding: 20px;
  }

  .page-tr88__game-image,
  .page-tr88__promo-image,
  .page-tr88__step-icon img,
  .page-tr88__method-icon,
  .page-tr88__contact-icon {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
  }

  .page-tr88__faq-question {
    padding: 15px 20px;
  }

  .page-tr88__faq-qtext {
    font-size: 1.1rem;
  }

  .page-tr88__faq-toggle {
    font-size: 1.5rem;
  }

  .page-tr88__faq-answer {
    padding: 15px 20px !important;
    font-size: 0.95rem;
  }

  .page-tr88__app-links {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-tr88 p,
  .page-tr88 li {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
    box-sizing: border-box !important;
  }
  
  .page-tr88__faq-list,
  .page-tr88__app-links,
  .page-tr88__cta-buttons {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-tr88__faq-item {
    width: auto !important;
    max-width: 100% !important;
  }
}