:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --text-dark: #111111;
  --text-light: #FFFFFF;
  --background-dark: #000000;
  --accent-yellow: #FFD700;
  --login-button-color: #EA7C07;
}

.page-f168 {
  font-family: 'Arial', sans-serif;
  color: var(--text-light);
  background-color: var(--background-dark);
  line-height: 1.6;
}

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

.page-f168__hero-section {
  padding-top: 10px;
  padding-bottom: 40px;
  text-align: center;
  background-color: var(--background-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-f168__hero-image-container {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-f168__hero-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

.page-f168__hero-content {
  max-width: 900px;
  padding: 0 20px;
}

.page-f168__main-title {
  font-size: 2.8em;
  color: var(--accent-yellow);
  margin-bottom: 15px;
  font-weight: bold;
  line-height: 1.2;
}

.page-f168__description {
  font-size: 1.1em;
  color: var(--text-light);
  margin-bottom: 30px;
}

.page-f168__btn-primary,
.page-f168__btn-secondary {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.05em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-f168__btn-primary {
  background-color: var(--primary-color);
  color: var(--text-light);
  border: 2px solid var(--primary-color);
  margin: 10px;
}

.page-f168__btn-primary:hover {
  background-color: darken(var(--primary-color), 10%);
  border-color: darken(var(--primary-color), 10%);
}

.page-f168__btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  margin: 10px;
}

.page-f168__btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-f168__btn-center {
  display: block;
  width: fit-content;
  margin: 30px auto 0 auto;
}

.page-f168__section-title {
  font-size: 2.2em;
  color: var(--accent-yellow);
  text-align: center;
  margin-bottom: 30px;
  padding-top: 40px;
  font-weight: bold;
}

.page-f168__text-block {
  font-size: 1.05em;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: justify;
}

.page-f168__dark-bg {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 0;
}

.page-f168__light-bg {
  background-color: #1a1a1a;
  color: var(--text-light);
  padding: 60px 0;
}

.page-f168__games-grid,
.page-f168__promotions-list,
.page-f168__blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
  margin-bottom: 40px;
}

.page-f168__game-card,
.page-f168__promotion-card,
.page-f168__blog-card {
  background-color: #111111;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-f168__game-card:hover,
.page-f168__promotion-card:hover,
.page-f168__blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.page-f168__game-card img,
.page-f168__promotion-card img,
.page-f168__blog-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-f168__game-card-title,
.page-f168__promotion-title,
.page-f168__blog-card-title {
  font-size: 1.3em;
  color: var(--accent-yellow);
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-f168__game-card-desc,
.page-f168__promotion-desc,
.page-f168__blog-card-excerpt {
  font-size: 0.95em;
  color: var(--text-light);
  padding: 0 15px;
  margin-bottom: 15px;
  flex-grow: 1;
}

.page-f168__blog-card-date {
  font-size: 0.85em;
  color: #aaa;
  padding: 0 15px;
  display: block;
  margin-top: auto;
}

.page-f168__providers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 20px;
  margin-top: 40px;
  justify-items: center;
  align-items: center;
}

.page-f168__provider-item {
  background-color: #111111;
  border-radius: 8px;
  padding: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100px;
  width: 100%;
  max-width: 160px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.page-f168__provider-item img {
  max-width: 100%;
  max-height: 70px;
  height: auto;
  display: block;
  object-fit: contain;
}

.page-f168__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-f168__faq-list {
  margin-top: 40px;
}

.page-f168__faq-item {
  background-color: #111111;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.page-f168__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  user-select: none;
  background-color: #222222;
  color: var(--accent-yellow);
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

.page-f168__faq-question:hover {
  background-color: #333333;
}

.page-f168__faq-qtext {
  pointer-events: none;
  flex-grow: 1;
}

.page-f168__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  pointer-events: none;
  transition: transform 0.3s ease;
}

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

.page-f168__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  color: var(--text-light);
}

.page-f168__faq-item.active .page-f168__faq-answer {
  max-height: 2000px !important; /* Đủ lớn để chứa mọi nội dung */
  padding: 20px !important;
  opacity: 1;
}

.page-f168__faq-answer p {
  margin-bottom: 0;
  font-size: 1em;
  color: var(--text-light);
}

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

.page-f168__social-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #333333;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.page-f168__social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-5px);
}

.page-f168__social-link img {
  width: 48px;
  height: 48px;
  display: block;
}

.page-f168__floating-login {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.page-f168__floating-btn {
  background-color: var(--login-button-color);
  color: var(--text-light);
  padding: 15px 25px;
  border-radius: 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: block;
  text-align: center;
  white-space: normal;
  word-wrap: break-word;
  max-width: 280px;
  box-sizing: border-box;
}

.page-f168__floating-btn:hover {
  background-color: darken(var(--login-button-color), 10%);
  transform: translateY(-3px);
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .page-f168__main-title {
    font-size: 2.5em;
  }
  .page-f168__section-title {
    font-size: 2em;
  }
  .page-f168__games-grid,
  .page-f168__promotions-list,
  .page-f168__blog-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-f168__container {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-f168 {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-f168__hero-section {
    padding-top: 10px !important;
    padding-bottom: 20px;
  }
  .page-f168__hero-image-container {
    margin-bottom: 15px;
  }
  .page-f168__hero-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-f168__main-title {
    font-size: 2em !important;
    padding: 0 15px;
  }
  .page-f168__description {
    font-size: 1em;
    padding: 0 15px;
  }
  .page-f168__btn-primary,
  .page-f168__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 8px 0;
  }
  .page-f168__btn-center {
    width: 100%;
    margin: 20px auto 0 auto;
  }
  .page-f168__cta-buttons {
    flex-direction: column;
    gap: 10px;
    padding: 0 15px;
  }
  .page-f168__section-title {
    font-size: 1.8em !important;
    padding-top: 30px;
    margin-bottom: 20px;
  }
  .page-f168__text-block {
    font-size: 0.95em;
    padding: 0 15px;
    text-align: left;
  }
  .page-f168__dark-bg, .page-f168__light-bg {
    padding: 40px 0;
  }
  .page-f168__container {
    padding: 0;
  }
  .page-f168__games-grid,
  .page-f168__promotions-list,
  .page-f168__blog-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
    padding: 0 15px;
  }
  .page-f168__game-card,
  .page-f168__promotion-card,
  .page-f168__blog-card {
    margin: 0;
  }
  .page-f168__game-card img,
  .page-f168__promotion-card img,
  .page-f168__blog-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover;
  }
  .page-f168__providers-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 15px;
    padding: 0 15px;
  }
  .page-f168__provider-item {
    max-width: 120px;
    height: 80px;
  }
  .page-f168__provider-item img {
    max-height: 60px;
  }
  .page-f168__faq-question {
    font-size: 1em;
    padding: 15px;
  }
  .page-f168__faq-qtext {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
  }
  .page-f168__faq-answer {
    padding: 0 15px;
  }
  .page-f168__faq-item.active .page-f168__faq-answer {
    padding: 15px !important;
  }
  .page-f168__faq-answer p {
    font-size: 0.95em;
  }
  .page-f168__social-links {
    gap: 15px;
    padding: 0 15px;
  }
  .page-f168__social-link {
    width: 50px;
    height: 50px;
  }
  .page-f168__social-link img {
    width: 40px;
    height: 40px;
  }
  .page-f168__floating-login {
    bottom: 15px;
    right: 15px;
  }
  .page-f168__floating-btn {
    font-size: 1em;
    padding: 12px 20px;
    max-width: 250px;
  }
}