.page-vic88game {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #f8f9fa;
}

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

.page-vic88game__section-padding {
  padding: 60px 0;
}

.page-vic88game__section-title {
  font-size: 2.5em;
  font-weight: 700;
  color: #2563eb;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.2;
}

.page-vic88game__section-title--white {
  color: #ffffff;
}

.page-vic88game__description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #555555;
}

.page-vic88game__description--white {
  color: #f0f0f0;
}

.page-vic88game__highlight {
  color: #2563eb;
  font-weight: bold;
}

.page-vic88game__dark-bg {
  background-color: #2563eb;
  color: #ffffff;
}

.page-vic88game__light-bg {
  background-color: #f8f9fa;
  color: #333333;
}

.page-vic88game__cta-button {
  display: inline-block;
  background-color: #2563eb;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  border: 2px solid transparent;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vic88game__cta-button:hover {
  background-color: #1a4aae;
  transform: translateY(-2px);
}

.page-vic88game__cta-button--outline {
  background-color: transparent;
  border-color: #ffffff;
  color: #ffffff;
}

.page-vic88game__cta-button--outline:hover {
  background-color: #ffffff;
  color: #2563eb;
}

.page-vic88game__btn-secondary {
  display: inline-block;
  background-color: #ffffff;
  color: #2563eb;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease, border-color 0.3s ease;
  border: 2px solid #2563eb;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vic88game__btn-secondary:hover {
  background-color: #e0e7ff;
  transform: translateY(-2px);
  border-color: #1a4aae;
}

.page-vic88game__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.page-vic88game__button-group--center {
  text-align: center;
}

.page-vic88game__inline-link {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.page-vic88game__inline-link:hover {
  color: #1a4aae;
}

.page-vic88game__inline-link--white {
  color: #ffffff;
}

.page-vic88game__inline-link--white:hover {
  color: #e0e7ff;
}

/* Hero Section */
.page-vic88game__hero-section {
  position: relative;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #1e3a8a;
}

.page-vic88game__hero-image-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

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

.page-vic88game__hero-content {
  max-width: 900px;
  padding: 40px 20px;
  color: #ffffff;
  position: relative; /* Ensure content is above any potential background layers */
  z-index: 1;
  margin-top: -80px; /* Pull content up slightly over the image if needed */
}

.page-vic88game__main-title {
  font-size: clamp(2em, 5vw, 3.5em);
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

/* About Section */
.page-vic88game__about-content {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1.1em;
  line-height: 1.8;
  text-align: justify;
}

.page-vic88game__about-content p {
  margin-bottom: 15px;
}

/* Games Section */
.page-vic88game__games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.page-vic88game__game-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: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-vic88game__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-vic88game__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  margin-bottom: 15px;
}

.page-vic88game__game-title {
  font-size: 1.4em;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 10px;
  padding: 0 15px;
}

.page-vic88game__game-desc {
  font-size: 0.95em;
  color: #64748b;
  margin-bottom: 20px;
  padding: 0 15px;
}

.page-vic88game__game-button {
  display: inline-block;
  background-color: #64748b;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vic88game__game-button:hover {
  background-color: #475569;
}

/* Promotions Section */
.page-vic88game__flex-container {
  display: flex;
  align-items: center;
  gap: 40px;
}

.page-vic88game__flex-container--reverse {
  flex-direction: row-reverse;
}

.page-vic88game__promotions-content,
.page-vic88game__app-content {
  flex: 1;
  text-align: left;
}

.page-vic88game__promotions-image-wrapper,
.page-vic88game__app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-vic88game__promotions-image,
.page-vic88game__app-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  display: block;
}

.page-vic88game__promo-list {
  list-style: none;
  padding: 0;
  margin: 30px 0;
}

.page-vic88game__promo-item {
  font-size: 1.05em;
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  color: #555555;
}

.page-vic88game__promo-item::before {
  content: '✓';
  color: #2563eb;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* App Section */
.page-vic88game__app-download-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.page-vic88game__qr-code-wrapper {
  text-align: center;
}

.page-vic88game__qr-code {
  width: 150px;
  height: 150px;
  border: 5px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: block;
  margin: 0 auto 10px auto;
}

.page-vic88game__qr-label {
  color: #ffffff;
  font-size: 0.95em;
}

/* FAQ Section */
.page-vic88game__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-vic88game__faq-item {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.page-vic88game__faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

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

.page-vic88game__faq-question:hover {
  background-color: #e6f2ff;
}

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

.page-vic88game__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  color: #2563eb;
  margin-left: 20px;
  pointer-events: none; /* Prevent toggle from blocking click event */
  transition: transform 0.3s ease;
}

.page-vic88game__faq-item.active .page-vic88game__faq-question {
  background-color: #e6f2ff;
}

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

.page-vic88game__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;
}

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

.page-vic88game__faq-answer p {
  margin-bottom: 10px;
}

/* CTA Section */
.page-vic88game__cta-flex {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-vic88game__responsible-gambling-text {
  color: #f0f0f0;
  font-size: 0.9em;
  margin-top: 20px;
}

/* Floating Button */
.page-vic88game__floating-button-wrapper {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: none; /* Hidden by default, shown on mobile */
}

.page-vic88game__floating-button {
  display: block;
  background-color: #ffc107; /* Eye-catching color */
  color: #333333;
  padding: 15px 25px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-align: center;
  white-space: nowrap; /* Keep text on one line */
}

.page-vic88game__floating-button:hover {
  background-color: #e0a800;
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-vic88game__games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-vic88game__flex-container {
    flex-direction: column;
    text-align: center;
  }

  .page-vic88game__flex-container--reverse {
    flex-direction: column;
  }

  .page-vic88game__promotions-content,
  .page-vic88game__app-content {
    order: 2;
    text-align: center;
  }

  .page-vic88game__promotions-image-wrapper,
  .page-vic88game__app-image-wrapper {
    order: 1;
    margin-bottom: 30px;
  }

  .page-vic88game__promo-list {
    text-align: left;
    max-width: 500px;
    margin: 30px auto;
  }
}

@media (max-width: 768px) {
  /* HERO Section */
  .page-vic88game__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-vic88game__hero-content {
    padding: 20px 15px;
    margin-top: -60px;
  }

  .page-vic88game__main-title {
    font-size: 2em;
  }

  .page-vic88game__description {
    font-size: 1em;
    margin-bottom: 30px;
    padding: 0 10px;
  }

  .page-vic88game__cta-button,
  .page-vic88game__btn-secondary,
  .page-vic88game__game-button {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-vic88game__button-group {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  /* General Images & Containers */
  .page-vic88game img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    box-sizing: border-box !important;
  }

  .page-vic88game__container,
  .page-vic88game__section-padding,
  .page-vic88game__about-section,
  .page-vic88game__games-section,
  .page-vic88game__promotions-section,
  .page-vic88game__app-section,
  .page-vic88game__faq-section,
  .page-vic88game__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Games Section */
  .page-vic88game__games-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .page-vic88game__game-image {
    height: 150px; /* Adjust height for smaller screens */
  }

  .page-vic88game__game-title {
    font-size: 1.1em;
  }

  .page-vic88game__game-desc {
    font-size: 0.85em;
  }

  /* App Section */
  .page-vic88game__app-download-options {
    flex-direction: column;
    gap: 20px;
  }

  .page-vic88game__qr-code {
    width: 120px;
    height: 120px;
  }

  /* FAQ Section */
  .page-vic88game__faq-question {
    padding: 15px 20px;
  }

  .page-vic88game__faq-qtext {
    font-size: 1em;
  }

  .page-vic88game__faq-answer {
    padding: 0 20px;
  }

  .page-vic88game__faq-item.active .page-vic88game__faq-answer {
    padding: 15px 20px !important;
  }

  /* Floating Button */
  .page-vic88game__floating-button-wrapper {
    display: block; /* Show on mobile */
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    bottom: 15px;
  }

  .page-vic88game__floating-button {
    width: 100%;
    font-size: 1em;
    padding: 12px 20px;
    white-space: normal;
  }

  /* List Items Responsive */
  .page-vic88game__promo-list {
    padding: 0;
    margin: 20px 0;
  }

  .page-vic88game__promo-item {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 20px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }

  .page-vic88game__promo-item::before {
    left: 0;
  }
}

@media (max-width: 480px) {
  .page-vic88game__section-title {
    font-size: 1.8em;
  }

  .page-vic88game__games-grid {
    grid-template-columns: 1fr;
  }

  .page-vic88game__game-image {
    height: 180px;
  }
}