.page-vip-club {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared, default to white */
}

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

.page-vip-club__section-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for titles */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-vip-club__section-description {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #555555;
}

/* Hero Section */
.page-vip-club__hero-section {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

.page-vip-club__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.page-vip-club__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

.page-vip-club__hero-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  max-width: 900px;
  padding: 20px;
}

.page-vip-club__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #FFFFFF;
}

.page-vip-club__hero-description {
  font-size: 1.3em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Buttons */
.page-vip-club__btn-primary {
  display: inline-block;
  background: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vip-club__btn-primary:hover {
  background-color: #a30606;
  transform: translateY(-2px);
}

.page-vip-club__btn-secondary {
  display: inline-block;
  background: #ffffff;
  color: #017439;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 1.2em;
  font-weight: bold;
  border: 2px solid #017439;
  transition: background-color 0.3s ease, color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vip-club__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

/* Sections */
.page-vip-club__benefits-section,
.page-vip-club__how-to-join-section,
.page-vip-club__exclusive-games-section,
.page-vip-club__faq-section,
.page-vip-club__cta-section {
  padding: 80px 0;
}

.page-vip-club__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-vip-club__dark-bg {
  background-color: #017439;
  color: #ffffff; /* White text for dark background */
}

.page-vip-club__dark-bg .page-vip-club__section-title,
.page-vip-club__dark-bg .page-vip-club__section-description,
.page-vip-club__dark-bg .page-vip-club__step-title,
.page-vip-club__dark-bg .page-vip-club__step-text,
.page-vip-club__dark-bg .page-vip-club__faq-title,
.page-vip-club__dark-bg .page-vip-club__faq-toggle,
.page-vip-club__dark-bg .page-vip-club__faq-answer p {
  color: #ffffff;
}

.page-vip-club__dark-bg .page-vip-club__step-text a {
  color: #FFFF00; /* Yellow for links on dark background */
  text-decoration: underline;
}

/* Benefits Grid */
.page-vip-club__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-vip-club__benefit-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-vip-club__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-vip-club__benefit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

.page-vip-club__card-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-vip-club__card-text {
  font-size: 1em;
  color: #666666;
}

/* How to Join Section */
.page-vip-club__process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-vip-club__step-item {
  text-align: center;
  padding: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.2);
}

.page-vip-club__step-title {
  font-size: 1.8em;
  color: #FFFF00; /* Yellow for titles on dark background */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-vip-club__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-vip-club__process-image {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  min-height: 200px;
}

/* Exclusive Games Section */
.page-vip-club__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-vip-club__game-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333;
}

.page-vip-club__game-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-vip-club__game-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px;
  min-height: 200px;
}

/* FAQ Section */
.page-vip-club__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-vip-club__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  overflow: hidden;
}

.page-vip-club__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  background-color: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-vip-club__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-vip-club__faq-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  margin: 0;
}

.page-vip-club__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00;
  transition: transform 0.3s ease;
}

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

.page-vip-club__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  background-color: rgba(0, 0, 0, 0.1);
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-vip-club__faq-item.active .page-vip-club__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-vip-club__faq-answer p {
  margin: 0;
  color: #f0f0f0;
  font-size: 1em;
}

/* CTA Section */
.page-vip-club__cta-section {
  text-align: center;
  background-color: #f0f0f0;
  padding: 60px 0;
}

.page-vip-club__cta-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-vip-club__cta-image {
  max-width: 100%;
  height: auto;
  margin-top: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 200px;
  min-height: 200px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-vip-club__hero-title {
    font-size: 3em;
  }
  .page-vip-club__hero-description {
    font-size: 1.1em;
  }
  .page-vip-club__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-vip-club {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-vip-club__hero-section {
    height: 60vh;
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-vip-club__hero-title {
    font-size: 2.2em;
  }
  .page-vip-club__hero-description {
    font-size: 1em;
  }
  .page-vip-club__btn-primary,
  .page-vip-club__btn-secondary {
    font-size: 1em;
    padding: 12px 25px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-vip-club__benefits-section,
  .page-vip-club__how-to-join-section,
  .page-vip-club__exclusive-games-section,
  .page-vip-club__faq-section,
  .page-vip-club__cta-section {
    padding: 40px 0;
  }
  .page-vip-club__section-title {
    font-size: 1.8em;
  }
  .page-vip-club__section-description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }
  .page-vip-club__benefit-card,
  .page-vip-club__game-card {
    padding: 20px;
  }
  .page-vip-club__benefit-card img,
  .page-vip-club__game-card img,
  .page-vip-club__process-image,
  .page-vip-club__cta-image {
    max-width: 100% !important;
    height: auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .page-vip-club__container,
  .page-vip-club__benefits-grid,
  .page-vip-club__process-steps,
  .page-vip-club__games-grid,
  .page-vip-club__faq-list,
  .page-vip-club__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-vip-club__faq-question {
    padding: 15px 20px;
  }
  .page-vip-club__faq-answer {
    padding: 0 20px;
  }
  .page-vip-club__faq-item.active .page-vip-club__faq-answer {
    padding: 10px 20px;
  }
  .page-vip-club__cta-content .page-vip-club__btn-primary {
    width: auto !important; /* Allow button to shrink if content allows */
    max-width: 80% !important; /* Or set a specific max-width for mobile CTA button */
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .page-vip-club__hero-title {
    font-size: 1.8em;
  }
  .page-vip-club__hero-description {
    font-size: 0.9em;
  }
  .page-vip-club__section-title {
    font-size: 1.5em;
  }
  .page-vip-club__card-title {
    font-size: 1.2em;
  }
  .page-vip-club__step-title {
    font-size: 1.4em;
  }
  .page-vip-club__faq-title {
    font-size: 1em;
  }
  .page-vip-club__benefits-grid,
  .page-vip-club__process-steps,
  .page-vip-club__games-grid {
    grid-template-columns: 1fr;
  }
}