:root {
  --primary-color: #11A84E;
  --secondary-color: #22C768;
  --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  --card-bg: #11271B;
  --bg-color: #08160F;
  --text-main: #F2FFF6;
  --text-secondary: #A7D9B8;
  --border-color: #2E7A4E;
  --glow-color: #57E38D;
  --gold-color: #F2C14E;
  --divider-color: #1E3A2A;
  --deep-green-color: #0A4B2C;
}

/* Base styles for the VIP Club Privileges page */
.page-vip-club-privileges {
  font-family: 'Arial', sans-serif;
  color: var(--text-main);
  background-color: var(--bg-color);
  line-height: 1.6;
  padding-bottom: 50px; /* Add some padding at the bottom for spacing */
}

/* Hero Section */
.page-vip-club-privileges__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 20px 40px; /* Small top padding, more bottom padding */
  box-sizing: border-box;
  overflow: hidden; /* Ensure content doesn't overflow */
}

.page-vip-club-privileges__hero-image-wrapper {
  width: 100%;
  max-width: 100%;
  margin-bottom: 30px;
}

.page-vip-club-privileges__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  filter: none; /* Ensure no filter properties are applied */
}

.page-vip-club-privileges__hero-content {
  max-width: 900px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-vip-club-privileges__hero-title {
  font-size: clamp(2em, 5vw, 3.2em); /* Responsive H1 font size */
  color: var(--gold-color);
  font-weight: bold;
  margin-bottom: 15px;
  line-height: 1.2;
  text-shadow: 0 0 10px var(--glow-color, rgba(87, 227, 141, 0.5)); /* Glow effect */
}

.page-vip-club-privileges__hero-description {
  font-size: 1.1em;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

/* General Section Styles */
.page-vip-club-privileges__section {
  padding: 50px 20px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.page-vip-club-privileges__section-title {
  font-size: 2.5em;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
  text-shadow: 0 0 8px var(--glow-color, rgba(87, 227, 141, 0.3));
}

.page-vip-club-privileges__section-subtitle {
  font-size: 1.5em;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 30px;
}

.page-vip-club-privileges__content-text {
  font-size: 1.05em;
  color: var(--text-main);
  margin-bottom: 20px;
  text-align: justify;
}

.page-vip-club-privileges__image-container {
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  text-align: center;
}

.page-vip-club-privileges__content-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  filter: none; /* Ensure no filter properties are applied */
}

/* Card Styles */
.page-vip-club-privileges__card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-vip-club-privileges__card {
  background-color: var(--card-bg);
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  color: var(--text-main); /* Ensure text is readable on card background */
}

.page-vip-club-privileges__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.page-vip-club-privileges__card-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  display: inline-block;
  object-fit: contain;
  filter: none; /* Ensure no filter properties are applied */
}

.page-vip-club-privileges__card-title {
  font-size: 1.4em;
  color: var(--gold-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.page-vip-club-privileges__card-description {
  font-size: 0.95em;
  color: var(--text-secondary);
}

/* Button Styles */
.page-vip-club-privileges__cta-button {
  display: inline-block;
  padding: 14px 30px;
  background: var(--button-gradient);
  color: var(--text-main);
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.1em;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-vip-club-privileges__cta-button:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-vip-club-privileges__button-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

/* VIP Levels Table */
.page-vip-club-privileges__vip-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background-color: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-vip-club-privileges__vip-table th,
.page-vip-club-privileges__vip-table td {
  border: 1px solid var(--divider-color);
  padding: 15px;
  text-align: left;
  color: var(--text-main);
}

.page-vip-club-privileges__vip-table th {
  background-color: var(--deep-green-color);
  color: var(--text-main);
  font-weight: bold;
  font-size: 1.1em;
}

.page-vip-club-privileges__vip-table tr:nth-child(even) {
  background-color: rgba(17, 168, 78, 0.1); /* Slightly lighter row for readability */
}

/* FAQ Section */
.page-vip-club-privileges__faq-list {
  margin-top: 30px;
}

.page-vip-club-privileges__faq-item {
  background-color: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-vip-club-privileges__faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--text-main);
  background-color: var(--deep-green-color);
  border-bottom: 1px solid var(--divider-color);
  list-style: none; /* Hide default marker */
}

.page-vip-club-privileges__faq-item summary::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-vip-club-privileges__faq-item summary:hover {
  background-color: rgba(10, 75, 44, 0.8); /* Slightly darker on hover */
}

.page-vip-club-privileges__faq-qtext {
  flex-grow: 1;
}

.page-vip-club-privileges__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--gold-color);
}

.page-vip-club-privileges__faq-item[open] .page-vip-club-privileges__faq-toggle {
  color: var(--gold-color);
}

.page-vip-club-privileges__faq-answer {
  padding: 20px;
  font-size: 1em;
  color: var(--text-secondary);
  background-color: var(--card-bg);
}

/* Mobile Responsive Overrides */
@media (max-width: 768px) {
  .page-vip-club-privileges {
    font-size: 15px;
    line-height: 1.5;
  }

  .page-vip-club-privileges__hero-section {
    padding: 10px 15px 30px;
  }

  .page-vip-club-privileges__hero-title {
    font-size: clamp(1.8em, 7vw, 2.5em);
    padding: 0 5px;
  }

  .page-vip-club-privileges__hero-description {
    font-size: 1em;
    padding: 0 5px;
  }

  .page-vip-club-privileges__section {
    padding: 30px 15px;
  }

  .page-vip-club-privileges__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-vip-club-privileges__section-subtitle {
    font-size: 1.2em;
    margin-bottom: 20px;
  }

  .page-vip-club-privileges__cta-button {
    padding: 12px 20px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-vip-club-privileges__button-group {
    flex-direction: column; /* Stack buttons vertically on mobile */
    gap: 15px;
    padding: 0 15px;
  }

  .page-vip-club-privileges__card-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-vip-club-privileges__card {
    padding: 25px;
  }

  .page-vip-club-privileges__vip-table {
    display: block; /* Make table scrollable */
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .page-vip-club-privileges__vip-table thead, 
  .page-vip-club-privileges__vip-table tbody, 
  .page-vip-club-privileges__vip-table th, 
  .page-vip-club-privileges__vip-table td, 
  .page-vip-club-privileges__vip-table tr {
    display: block; /* For stacked appearance */
  }

  .page-vip-club-privileges__vip-table thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }

  .page-vip-club-privileges__vip-table tr {
    margin-bottom: 15px;
    border-bottom: 1px solid var(--divider-color);
  }

  .page-vip-club-privileges__vip-table td {
    border: none;
    border-bottom: 1px solid var(--divider-color);
    position: relative;
    padding-left: 50%;
    text-align: right;
  }

  .page-vip-club-privileges__vip-table td::before {
    position: absolute;
    top: 0;
    left: 6px;
    width: 45%;
    padding-right: 10px;
    white-space: nowrap;
    text-align: left;
    font-weight: bold;
    color: var(--gold-color);
  }

  /* Label the data */
  .page-vip-club-privileges__vip-table td:nth-of-type(1)::before { content: "Cấp Độ:"; }
  .page-vip-club-privileges__vip-table td:nth-of-type(2)::before { content: "Yêu Cầu:"; }
  .page-vip-club-privileges__vip-table td:nth-of-type(3)::before { content: "Đặc Quyền:"; }

  /* Image responsive override for all images */
  .page-vip-club-privileges img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-vip-club-privileges__section,
  .page-vip-club-privileges__card,
  .page-vip-club-privileges__container,
  .page-vip-club-privileges__button-group,
  .page-vip-club-privileges__faq-list,
  .page-vip-club-privileges__vip-table,
  .page-vip-club-privileges__image-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Video responsive override (if any video is added) */
  .page-vip-club-privileges video,
  .page-vip-club-privileges__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-vip-club-privileges__video-section,
  .page-vip-club-privileges__video-container,
  .page-vip-club-privileges__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-vip-club-privileges__video-section {
    padding-top: 10px !important;
  }
  
  .page-vip-club-privileges__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}