/* style/vip-program.css */

/* Base styles for the VIP Program page */
.page-vip-program {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Rely on shared body background */
}

/* Container for main content */
.page-vip-program__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section styling */
.page-vip-program__hero-section,
.page-vip-program__levels-section,
.page-vip-program__join-section,
.page-vip-program__privileges-section,
.page-vip-program__responsible-gaming-section,
.page-vip-program__cta-final-section,
.page-vip-program__faq-section {
  padding: 60px 0;
  position: relative;
}

/* Specific background for dark sections */
.page-vip-program__dark-section {
  background-color: #017439; /* Brand primary color as dark background */
  color: #ffffff;
}

/* Hero Section */
.page-vip-program__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden; /* Ensure no overflow */
}

.page-vip-program__hero-image {
  width: 100%;
  max-height: 675px; /* Max height for desktop hero image */
  object-fit: cover;
  display: block;
  margin-bottom: 30px; /* Space between image and content */
}

.page-vip-program__hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.page-vip-program__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size for H1 */
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 20px;
}

.page-vip-program__intro-description {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* Call to Action Buttons */
.page-vip-program__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-vip-program__btn-primary,
.page-vip-program__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button adapts to width */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
  text-align: center;
}

.page-vip-program__btn-primary {
  background-color: #C30808; /* Register/Login color */
  color: #FFFF00; /* Register/Login font color */
  border: 2px solid #C30808;
}

.page-vip-program__btn-primary:hover {
  background-color: #a00606;
  border-color: #a00606;
}

.page-vip-program__btn-secondary {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

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

.page-vip-program__cta-buttons--center {
  margin-top: 30px;
}

/* Section Titles and Descriptions */
.page-vip-program__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: #ffffff; /* Default light color */
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.3;
}

.page-vip-program__levels-section .page-vip-program__section-title,
.page-vip-program__privileges-section .page-vip-program__section-title,
.page-vip-program__faq-section .page-vip-program__section-title {
  color: #017439; /* Darker color for sections with light background */
}

.page-vip-program__section-description {
  font-size: 1.05rem;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: #f0f0f0; /* Default light color */
}

.page-vip-program__levels-section .page-vip-program__section-description,
.page-vip-program__privileges-section .page-vip-program__section-description,
.page-vip-program__faq-section .page-vip-program__section-description {
  color: #333333; /* Darker color for sections with light background */
}

/* Levels Grid */
.page-vip-program__levels-section {
  background-color: #ffffff; /* Light background for this section */
  color: #333333;
}

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

.page-vip-program__level-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-vip-program__level-card:hover {
  transform: translateY(-5px);
}

.page-vip-program__level-icon {
  width: 100%; /* Ensure images are responsive */
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-vip-program__level-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-vip-program__level-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-vip-program__level-benefits-list {
  list-style: none;
  padding: 0;
  text-align: left;
  width: 100%;
  margin-top: auto; /* Push list to bottom */
}

.page-vip-program__level-benefits-list li {
  font-size: 0.95rem;
  color: #444444;
  margin-bottom: 8px;
  padding-left: 25px;
  position: relative;
}

.page-vip-program__level-benefits-list li::before {
  content: '✔';
  color: #017439;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* How to Join Section */
.page-vip-program__join-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

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

.page-vip-program__step-card {
  background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-vip-program__step-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  object-fit: cover;
}

.page-vip-program__step-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 10px;
}

.page-vip-program__step-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #f0f0f0;
}

/* Privileges Section */
.page-vip-program__privileges-section {
  background-color: #ffffff; /* Light background for this section */
  color: #333333;
}

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

.page-vip-program__privilege-card {
  background-color: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
}

.page-vip-program__privilege-card:hover {
  transform: translateY(-5px);
}

.page-vip-program__privilege-icon {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-vip-program__privilege-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: #017439;
  margin-bottom: 15px;
}

.page-vip-program__privilege-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  flex-grow: 1;
}

/* Responsible Gaming Section */
.page-vip-program__responsible-gaming-section {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Final CTA Section */
.page-vip-program__cta-final-section {
  background-color: #f0f0f0; /* Light background for final CTA */
  color: #333333;
  padding: 80px 0;
}

.page-vip-program__cta-final-section .page-vip-program__section-title {
  color: #017439;
}

.page-vip-program__cta-final-section .page-vip-program__section-description {
  color: #333333;
}

/* FAQ Section */
.page-vip-program__faq-section {
  background-color: #ffffff; /* Light background for FAQ */
  color: #333333;
}

.page-vip-program__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
}

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

.page-vip-program__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #017439;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #e0e0e0;
}

.page-vip-program__faq-item[open] .page-vip-program__faq-question {
  border-bottom: 1px solid transparent;
}

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

.page-vip-program__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #017439;
  transition: transform 0.3s ease;
}

.page-vip-program__faq-item[open] .page-vip-program__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-vip-program__faq-answer {
  padding: 20px;
  font-size: 1rem;
  line-height: 1.6;
  color: #555555;
  background-color: #fdfdfd;
}

/* Hide default details marker */
.page-vip-program__faq-item summary::-webkit-details-marker {
  display: none;
}
.page-vip-program__faq-item summary {
  list-style: none;
}


/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .page-vip-program__hero-section {
    padding: 40px 0;
    padding-top: 10px;
  }
  .page-vip-program__main-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
  }
  .page-vip-program__intro-description {
    font-size: 1rem;
  }
  .page-vip-program__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-vip-program__levels-section,
  .page-vip-program__join-section,
  .page-vip-program__privileges-section,
  .page-vip-program__responsible-gaming-section,
  .page-vip-program__cta-final-section,
  .page-vip-program__faq-section {
    padding: 40px 0;
  }
}

@media (max-width: 768px) {
  /* General mobile adjustments */
  .page-vip-program__container {
    padding: 0 15px;
  }

  /* Images responsive (Global rule for .page-vip-program img) */
  .page-vip-program img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-vip-program__hero-section,
  .page-vip-program__levels-section,
  .page-vip-program__join-section,
  .page-vip-program__privileges-section,
  .page-vip-program__responsible-gaming-section,
  .page-vip-program__cta-final-section,
  .page-vip-program__faq-section,
  .page-vip-program__level-card,
  .page-vip-program__step-card,
  .page-vip-program__privilege-card,
  .page-vip-program__faq-item,
  .page-vip-program__cta-buttons,
  .page-vip-program__button-group,
  .page-vip-program__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add padding to prevent content touching edges */
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-vip-program__hero-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }

  .page-vip-program__main-title {
    font-size: 2rem; /* Adjusted fixed size for mobile H1 */
    margin-bottom: 15px;
  }

  .page-vip-program__intro-description {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .page-vip-program__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding-left: 0; /* Buttons themselves will have padding */
    padding-right: 0;
  }

  .page-vip-program__btn-primary,
  .page-vip-program__btn-secondary {
    width: 100% !important; /* Full width buttons */
    padding: 12px 20px;
    font-size: 0.95rem;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-vip-program__section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
  }

  .page-vip-program__section-description {
    font-size: 0.9rem;
    margin-bottom: 30px;
  }

  .page-vip-program__levels-grid,
  .page-vip-program__steps-grid,
  .page-vip-program__privileges-grid {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-vip-program__level-card,
  .page-vip-program__step-card,
  .page-vip-program__privilege-card {
    padding: 25px;
  }

  .page-vip-program__level-title,
  .page-vip-program__step-title,
  .page-vip-program__privilege-title {
    font-size: 1.4rem;
  }

  .page-vip-program__faq-question {
    font-size: 1rem;
    padding: 15px;
  }
}