/* style/new-user-registration-offer.css */

/* Global styles for the page content */
.page-new-user-registration-offer {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#000000), so light text for main content */
  background-color: transparent; /* Inherit from body or ensure dark if not inherited */
}

.page-new-user-registration-offer__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-new-user-registration-offer__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700); /* Use accent color for titles */
  text-align: center;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.page-new-user-registration-offer__section-description {
  font-size: 18px;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-new-user-registration-offer__sub-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
}

/* Hero Section */
.page-new-user-registration-offer__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  padding-bottom: 80px;
  overflow: hidden;
}

.page-new-user-registration-offer__hero-container {
  position: relative;
  width: 100%;
  max-width: 1920px; /* Max width for hero content */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.page-new-user-registration-offer__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  /* Using brightness filter to enhance text contrast, not to change image color hue/saturation */
  filter: brightness(0.4);
}

.page-new-user-registration-offer__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  padding: 20px;
  color: #ffffff;
}

.page-new-user-registration-offer__main-title {
  font-size: 56px;
  font-weight: 900;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.page-new-user-registration-offer__title-description {
  font-size: 22px;
  margin-bottom: 40px;
  color: #f0f0f0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.page-new-user-registration-offer__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-new-user-registration-offer__cta-button {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border: none;
  cursor: pointer;
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow word breaking */
  box-sizing: border-box;
}

.page-new-user-registration-offer__cta-button--primary {
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A192F);
}

.page-new-user-registration-offer__cta-button--primary:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-new-user-registration-offer__cta-button--secondary {
  background: transparent;
  color: var(--secondary-color, #FFD700);
  border: 2px solid var(--secondary-color, #FFD700);
}

.page-new-user-registration-offer__cta-button--secondary:hover {
  background: rgba(255, 215, 0, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* Offer Details Section */
.page-new-user-registration-offer__offer-details-section {
  background: var(--primary-color, #0A192F);
  padding: 80px 0;
}

.page-new-user-registration-offer__offer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-new-user-registration-offer__card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white for dark background */
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-new-user-registration-offer__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.page-new-user-registration-offer__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  width: 100%; /* Ensure image takes full width of card */
}

.page-new-user-registration-offer__card-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
}

.page-new-user-registration-offer__card-text {
  font-size: 16px;
  margin-bottom: 25px;
  color: #f0f0f0;
}

.page-new-user-registration-offer__card-button {
  display: inline-block;
  padding: 12px 30px;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A192F);
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
}

.page-new-user-registration-offer__card-button:hover {
  background: #e6c200;
  transform: translateY(-2px);
}

.page-new-user-registration-offer__terms-list {
  list-style: disc;
  list-style-position: inside;
  max-width: 800px;
  margin: 0 auto 50px auto;
  padding-left: 20px;
  color: #f0f0f0;
}

.page-new-user-registration-offer__terms-list li {
  margin-bottom: 10px;
  font-size: 16px;
}

.page-new-user-registration-offer__button-wrapper {
  text-align: center;
  margin-top: 40px;
}

/* Why Choose Section */
.page-new-user-registration-offer__why-choose-section {
  background: #000000; /* Darker background for contrast with primary color section */
  padding: 80px 0;
}

.page-new-user-registration-offer__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-new-user-registration-offer__feature-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-new-user-registration-offer__feature-icon {
  width: 200px; /* Display size 200x200 */
  height: 200px; /* Display size 200x200 */
  object-fit: contain;
  margin-bottom: 20px;
  /* No filter property used to change image color */
}

.page-new-user-registration-offer__feature-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 10px;
}

.page-new-user-registration-offer__feature-text {
  font-size: 16px;
  color: #f0f0f0;
}

/* How to Register Section */
.page-new-user-registration-offer__how-to-register-section {
  background: var(--primary-color, #0A192F);
  padding: 80px 0;
}

.page-new-user-registration-offer__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.page-new-user-registration-offer__step-item {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-new-user-registration-offer__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--secondary-color, #FFD700);
  color: var(--primary-color, #0A192F);
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-new-user-registration-offer__step-title {
  font-size: 24px;
  font-weight: bold;
  color: var(--secondary-color, #FFD700);
  margin-bottom: 15px;
}

.page-new-user-registration-offer__step-text {
  font-size: 16px;
  color: #f0f0f0;
  margin-bottom: 20px;
}

.page-new-user-registration-offer__step-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  width: 100%; /* Ensure image takes full width of step item */
}

/* FAQ Section */
.page-new-user-registration-offer__faq-section {
  background: #000000;
  padding: 80px 0;
}

.page-new-user-registration-offer__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

/* FAQ容器样式 */
.page-new-user-registration-offer__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05); /* Dark background, subtle light card */
  border: 1px solid rgba(255, 215, 0, 0.1);
}

/* FAQ默认状态 - 答案隐藏 */
.page-new-user-registration-offer__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 20px; /* Adjust padding for consistency */
  opacity: 0;
  color: #f0f0f0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo mở rộng */
.page-new-user-registration-offer__faq-item.active .page-new-user-registration-offer__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important để đảm bảo ưu tiên, giá trị đủ lớn để chứa bất kỳ nội dung nào */
  padding: 20px !important; /* Adjust padding for consistency */
  opacity: 1;
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
}

/* Question style */
.page-new-user-registration-offer__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.1); /* Dark background, subtle light card */
  border-bottom: 1px solid rgba(255, 215, 0, 0.1); /* Subtle border */
  border-radius: 5px; /* Only top corners initially */
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  color: #ffffff; /* Light text for question */
}

.page-new-user-registration-offer__faq-question:hover {
  background: rgba(255, 255, 255, 0.15); /* Slightly lighter on hover */
  border-color: var(--secondary-color, #FFD700);
}

.page-new-user-registration-offer__faq-item.active .page-new-user-registration-offer__faq-question {
  border-radius: 5px 5px 0 0; /* No bottom radius when active */
  border-bottom-color: transparent; /* Hide bottom border when active */
}


/* Question title style */
.page-new-user-registration-offer__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click events */
  color: var(--secondary-color, #FFD700); /* Use accent color for question title */
}

/* Toggle icon */
.page-new-user-registration-offer__faq-toggle {
  font-size: 28px; /* Larger for better visibility */
  font-weight: bold;
  line-height: 1;
  color: var(--secondary-color, #FFD700);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click events */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; /* Larger toggle area */
  height: 32px;
}

.page-new-user-registration-offer__faq-item.active .page-new-user-registration-offer__faq-toggle {
  color: #ffffff; /* White when active */
  transform: rotate(180deg); /* Rotate for minus sign */
}

/* Final CTA Section */
.page-new-user-registration-offer__final-cta-section {
  background: var(--primary-color, #0A192F);
  padding: 80px 0;
  text-align: center;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-new-user-registration-offer__main-title {
    font-size: 48px;
  }
  .page-new-user-registration-offer__title-description {
    font-size: 20px;
  }
  .page-new-user-registration-offer__section-title {
    font-size: 32px;
  }
  .page-new-user-registration-offer__section-description {
    font-size: 17px;
  }
  .page-new-user-registration-offer__card-title,
  .page-new-user-registration-offer__feature-title,
  .page-new-user-registration-offer__step-title {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .page-new-user-registration-offer__container {
    padding: 30px 15px !important; /* Mobile padding */
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  .page-new-user-registration-offer__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Mobile header spacing */
    padding-bottom: 60px;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-new-user-registration-offer__hero-content {
    padding: 15px;
  }

  .page-new-user-registration-offer__main-title {
    font-size: 36px;
    margin-bottom: 15px;
  }

  .page-new-user-registration-offer__title-description {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .page-new-user-registration-offer__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    width: 100%; /* Ensure buttons take full width */
  }

  .page-new-user-registration-offer__cta-button {
    width: 100% !important; /* Full width for mobile buttons */
    max-width: 100% !important;
    padding: 12px 25px;
    font-size: 16px;
  }

  .page-new-user-registration-offer__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }
  .page-new-user-registration-offer__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .page-new-user-registration-offer__offer-cards,
  .page-new-user-registration-offer__features,
  .page-new-user-registration-offer__steps {
    grid-template-columns: 1fr; /* Single column layout */
    gap: 20px;
  }

  .page-new-user-registration-offer__card,
  .page-new-user-registration-offer__feature-item,
  .page-new-user-registration-offer__step-item {
    padding: 20px;
  }

  .page-new-user-registration-offer__card-image,
  .page-new-user-registration-offer__step-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Images responsive */
  .page-new-user-registration-offer img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  /* Containers holding images and content */
  .page-new-user-registration-offer__hero-container,
  .page-new-user-registration-offer__offer-details-section,
  .page-new-user-registration-offer__why-choose-section,
  .page-new-user-registration-offer__how-to-register-section,
  .page-new-user-registration-offer__faq-section,
  .page-new-user-registration-offer__final-cta-section,
  .page-new-user-registration-offer__offer-cards,
  .page-new-user-registration-offer__features,
  .page-new-user-registration-offer__steps {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow */
  }
  
  /* FAQ mobile styles */
  .page-new-user-registration-offer__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-new-user-registration-offer__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-new-user-registration-offer__faq-toggle {
    margin-left: 10px;
    width: 28px;
    height: 28px;
    font-size: 24px;
  }
  
  .page-new-user-registration-offer__faq-answer {
    padding: 0 15px;
  }
  
  .page-new-user-registration-offer__faq-item.active .page-new-user-registration-offer__faq-answer {
    padding: 15px !important;
  }
}

@media (max-width: 480px) {
  .page-new-user-registration-offer__main-title {
    font-size: 32px;
  }
  .page-new-user-registration-offer__title-description {
    font-size: 16px;
  }
  .page-new-user-registration-offer__section-title {
    font-size: 24px;
  }
  .page-new-user-registration-offer__sub-title {
    font-size: 22px;
  }
  .page-new-user-registration-offer__card-title,
  .page-new-user-registration-offer__feature-title,
  .page-new-user-registration-offer__step-title {
    font-size: 20px;
  }
  .page-new-user-registration-offer__cta-button {
    padding: 10px 20px;
    font-size: 15px;
  }
  .page-new-user-registration-offer__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}