/* style/vip-program-levels.css */

:root {
  --primary-color: #0A2239;
  --secondary-color: #E6B31E;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #0a0a0a;
  --card-background-light: #ffffff;
  --border-color: #e0e0e0;
}

.page-vip-program-levels {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-light); /* Body background is dark, so text should be light */
  background-color: var(--background-dark);
}

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

/* Hero Section */
.page-vip-program-levels__hero-section {
  padding: 80px 20px 60px; /* Adjusted to allow for header offset */
  text-align: center;
  background-color: var(--primary-color);
  position: relative;
  overflow: hidden;
  color: var(--text-light);
  padding-top: var(--header-offset, 120px);
}

.page-vip-program-levels__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  color: var(--secondary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.page-vip-program-levels__description {
  font-size: 18px;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.9);
}

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

.page-vip-program-levels__btn-primary,
.page-vip-program-levels__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-vip-program-levels__btn-primary {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--secondary-color);
}

.page-vip-program-levels__btn-primary:hover {
  background-color: darken(var(--secondary-color), 10%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.page-vip-program-levels__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-vip-program-levels__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* General Section Styles */
.page-vip-program-levels__introduction-section,
.page-vip-program-levels__detailed-privileges-section,
.page-vip-program-levels__bonuses-section,
.page-vip-program-levels__terms-section {
  padding: 60px 0;
  background-color: var(--card-background-light);
  color: var(--text-dark);
}

.page-vip-program-levels__levels-overview-section,
.page-vip-program-levels__how-to-join-section,
.page-vip-program-levels__support-section,
.page-vip-program-levels__why-join-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--text-light);
}

.page-vip-program-levels__section-title {
  font-size: 38px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.page-vip-program-levels__introduction-section .page-vip-program-levels__section-title,
.page-vip-program-levels__detailed-privileges-section .page-vip-program-levels__section-title,
.page-vip-program-levels__bonuses-section .page-vip-program-levels__section-title,
.page-vip-program-levels__terms-section .page-vip-program-levels__section-title {
  color: var(--primary-color);
}

.page-vip-program-levels__subtitle {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Content Wrapper with Image */
.page-vip-program-levels__content-wrapper {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.page-vip-program-levels__content-wrapper p {
  flex: 1;
  font-size: 16px;
}

.page-vip-program-levels__content-wrapper .page-vip-program-levels__image {
  flex: 1;
  max-width: 50%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  object-fit: cover;
}

/* VIP Table */
.page-vip-program-levels__table-responsive {
  overflow-x: auto;
  margin-bottom: 30px;
}

.page-vip-program-levels__vip-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  color: var(--text-light);
  min-width: 700px; /* Ensure table is not too small on desktop */
}

.page-vip-program-levels__vip-table th,
.page-vip-program-levels__vip-table td {
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-align: left;
}

.page-vip-program-levels__vip-table th {
  background-color: rgba(230, 179, 30, 0.8);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

.page-vip-program-levels__vip-table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

.page-vip-program-levels__vip-table tr:hover {
  background-color: rgba(230, 179, 30, 0.2);
}

.page-vip-program-levels__note {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  margin-top: 20px;
}

/* Level Cards */
.page-vip-program-levels__level-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-vip-program-levels__card {
  background-color: var(--card-background-light);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-vip-program-levels__card-image {
  width: 100%;
  max-width: 100%; /* Ensure images don't overflow cards */
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-vip-program-levels__card-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-vip-program-levels__card p {
  font-size: 15px;
  color: #555555;
  flex-grow: 1; /* Allow paragraph to take up space */
}

.page-vip-program-levels__cta-center {
  text-align: center;
  margin-top: 40px;
}

/* How to Join Section */
.page-vip-program-levels__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  text-align: center;
  margin-top: 40px;
}

.page-vip-program-levels__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-light);
}

.page-vip-program-levels__step-icon {
  background-color: var(--secondary-color);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.page-vip-program-levels__step-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.page-vip-program-levels__step-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.page-vip-program-levels__step-item a {
  color: var(--secondary-color);
  text-decoration: underline;
}

.page-vip-program-levels__step-item a:hover {
  color: lighten(var(--secondary-color), 10%);
}

.page-vip-program-levels__note-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 16px;
  opacity: 0.9;
}

/* Bonuses Section */
.page-vip-program-levels__bonus-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-vip-program-levels__bonus-item {
  background-color: var(--card-background-light);
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-vip-program-levels__bonus-image {
  width: 100%;
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
}

.page-vip-program-levels__bonus-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-vip-program-levels__bonus-item p {
  font-size: 15px;
  color: #555555;
  flex-grow: 1;
}

/* Support Section */
.page-vip-program-levels__support-section .page-vip-program-levels__content-wrapper {
  flex-direction: row-reverse; /* Image on right */
}

.page-vip-program-levels__support-text {
  flex: 1;
  text-align: left;
}

.page-vip-program-levels__support-text p {
  font-size: 16px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.page-vip-program-levels__support-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-vip-program-levels__support-list li {
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 10px;
  padding: 12px 20px;
  border-radius: 5px;
  font-size: 16px;
  color: var(--text-light);
}

.page-vip-program-levels__support-list li strong {
  color: var(--secondary-color);
}

/* Why Join Section */
.page-vip-program-levels__why-join-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-vip-program-levels__why-join-list li {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 20px 30px;
  border-radius: 10px;
  font-size: 18px;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding-left: 50px;
}

.page-vip-program-levels__why-join-list li::before {
  content: '✔';
  color: var(--secondary-color);
  font-size: 24px;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}


/* Responsive Design */
@media (max-width: 1024px) {
  .page-vip-program-levels__main-title {
    font-size: 40px;
  }

  .page-vip-program-levels__section-title {
    font-size: 32px;
  }

  .page-vip-program-levels__content-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .page-vip-program-levels__content-wrapper .page-vip-program-levels__image {
    max-width: 80%;
    margin-bottom: 30px;
  }

  .page-vip-program-levels__support-section .page-vip-program-levels__content-wrapper {
    flex-direction: column;
  }

  .page-vip-program-levels__support-text {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .page-vip-program-levels__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-vip-program-levels__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-vip-program-levels__description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-vip-program-levels__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }

  .page-vip-program-levels__btn-primary,
  .page-vip-program-levels__btn-secondary {
    width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-vip-program-levels__introduction-section,
  .page-vip-program-levels__levels-overview-section,
  .page-vip-program-levels__detailed-privileges-section,
  .page-vip-program-levels__how-to-join-section,
  .page-vip-program-levels__bonuses-section,
  .page-vip-program-levels__support-section,
  .page-vip-program-levels__terms-section,
  .page-vip-program-levels__why-join-section {
    padding: 40px 0;
  }

  .page-vip-program-levels__container {
    padding: 0 15px;
  }

  .page-vip-program-levels__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-vip-program-levels__subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-vip-program-levels__content-wrapper .page-vip-program-levels__image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    margin-bottom: 20px;
  }

  .page-vip-program-levels__vip-table th,
  .page-vip-program-levels__vip-table td {
    padding: 10px;
    font-size: 14px;
  }

  .page-vip-program-levels__card {
    padding: 20px;
  }

  .page-vip-program-levels__card-image {
    height: 150px;
  }

  .page-vip-program-levels__card-title {
    font-size: 20px;
  }

  .page-vip-program-levels__step-item {
    padding: 20px;
  }

  .page-vip-program-levels__step-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .page-vip-program-levels__step-title {
    font-size: 20px;
  }

  .page-vip-program-levels__bonus-image {
    height: 150px;
  }

  .page-vip-program-levels__bonus-title {
    font-size: 20px;
  }

  .page-vip-program-levels__support-list li,
  .page-vip-program-levels__why-join-list li {
    font-size: 16px;
    padding: 15px 15px 15px 45px;
  }
  
  .page-vip-program-levels__why-join-list li::before {
    left: 15px;
    font-size: 20px;
  }
  
  .page-vip-program-levels img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-vip-program-levels__section,
  .page-vip-program-levels__card,
  .page-vip-program-levels__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-vip-program-levels__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  
  .page-vip-program-levels__cta-buttons,
  .page-vip-program-levels__button-group,
  .page-vip-program-levels__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  
  .page-vip-program-levels__cta-buttons {
    flex-direction: column;
  }
}

/* Ensure images maintain original color */
.page-vip-program-levels img {
  filter: none; /* No CSS filters to change image colors */
}

/* Smart contrast for light backgrounds */
.page-vip-program-levels__light-bg {
  color: var(--text-dark);
  background: var(--card-background-light);
}

/* Smart contrast for dark backgrounds */
.page-vip-program-levels__dark-bg {
  color: var(--text-light);
  background: var(--primary-color);
}

/* Specific elements for contrast assurance */
.page-vip-program-levels p,
.page-vip-program-levels li,
.page-vip-program-levels h2,
.page-vip-program-levels h3 {
  color: inherit; /* Inherit from parent, which is set by dark/light bg classes */
}

/* Overrides for specific sections if needed */
.page-vip-program-levels__introduction-section p,
.page-vip-program-levels__detailed-privileges-section p,
.page-vip-program-levels__bonuses-section p,
.page-vip-program-levels__terms-section p {
  color: var(--text-dark);
}

.page-vip-program-levels__introduction-section h2,
.page-vip-program-levels__detailed-privileges-section h2,
.page-vip-program-levels__bonuses-section h2,
.page-vip-program-levels__terms-section h2 {
  color: var(--primary-color);
}

.page-vip-program-levels__card-title {
  color: var(--primary-color);
}

.page-vip-program-levels__vip-table th {
  color: var(--primary-color);
}

.page-vip-program-levels__vip-table td {
  color: var(--text-light);
}