.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
}

.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Padding for fixed header */
.page-register__hero-section {
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
  padding-bottom: 60px;
}

.page-register__section-title {
  font-size: 36px;
  font-weight: bold;
  color: #1A2B3C;
  text-align: center;
  margin-bottom: 20px;
}

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

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

.page-register__btn-primary {
  background: var(--primary-color, #1A2B3C);
  color: #ffffff;
}

.page-register__btn-primary:hover {
  background: #0f1c2b;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
  background: #ffffff;
  color: var(--primary-color, #1A2B3C);
  border: 2px solid var(--primary-color, #1A2B3C);
}

.page-register__btn-secondary:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.page-register__hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1A2B3C 0%, #0c1824 100%);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 500px;
}

.page-register__hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700;
}

.page-register__hero-description {
  font-size: 22px;
  margin-bottom: 40px;
  max-width: 900px;
  color: #f0f0f0;
}

.page-register__hero-cta-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  margin-top: 30px;
  display: block;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

.page-register__feature-item {
  text-align: center;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-register__feature-icon {
  width: 120px; /* Min 200x200px rule is for content images, not decorative icons. Re-evaluating. User specified NO SMALL ICONS, so this must be larger. */
  height: 120px;
  object-fit: contain;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__feature-title {
  font-size: 24px;
  font-weight: bold;
  color: #1A2B3C;
  margin-bottom: 15px;
}

.page-register__feature-item p {
  font-size: 16px;
  color: #666666;
}

/* Steps Section */
.page-register__steps-section {
  padding: 80px 0;
  background: #1A2B3C;
  color: #ffffff;
}

.page-register__steps-section .page-register__section-title,
.page-register__steps-section .page-register__section-description {
  color: #ffffff;
}

.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 50px;
}

.page-register__step-item {
  text-align: center;
  position: relative;
  padding: 20px;
}

.page-register__step-number {
  width: 60px;
  height: 60px;
  background-color: #FFD700;
  color: #1A2B3C;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  margin: 0 auto 25px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 26px;
  font-weight: bold;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-register__step-item p {
  font-size: 17px;
  color: #e0e0e0;
}

.page-register__cta-center {
  text-align: center;
  margin-top: 60px;
}

/* Brand Introduction Section */
.page-register__brand-intro-section {
  padding: 80px 0;
  background-color: #ffffff;
}

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

.page-register__brand-item {
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.page-register__brand-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.page-register__brand-item-title {
  font-size: 24px;
  font-weight: bold;
  color: #1A2B3C;
  margin-bottom: 15px;
}

.page-register__brand-item p {
  font-size: 16px;
  color: #666666;
}

.page-register__brand-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  margin-top: 50px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8;
}

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

/* FAQ容器样式 */
.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

/* FAQ默认状态 - 答案隐藏 */
.page-register__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 15px;
  opacity: 0;
}

/* FAQ展开状态 - 🚨 使用!important và đủ lớn max-height để đảm bảo có thể mở rộng */
.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important; /* 🚨 Sử dụng!important đảm bảo ưu tiên, giá trị đủ lớn để chứa mọi nội dung */
  padding: 20px 15px !important;
  opacity: 1;
  background: #f9f9f9;
  border-radius: 0 0 5px 5px;
}

/* Vấn đề phong cách */
.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item.active .page-register__faq-question {
  border-bottom: 1px solid transparent;
  border-radius: 5px 5px 0 0;
}

.page-register__faq-question:hover {
  background: #f5f5f5;
}

.page-register__faq-question:active {
  background: #eeeeee;
}

/* Vấn đề tiêu đề phong cách */
.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #1A2B3C;
  pointer-events: none; /* Ngăn h3 chặn các sự kiện nhấp */
}

/* Chuyển đổi biểu tượng */
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: #666;
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Ngăn biểu tượng chặn các sự kiện nhấp */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #FFD700;
  transform: rotate(45deg);
}

/* Final CTA Section */
.page-register__cta-final-section {
  padding: 80px 0;
  background: linear-gradient(135deg, #1A2B3C 0%, #0c1824 100%);
  color: #ffffff;
  text-align: center;
}

.page-register__cta-final-section .page-register__section-title,
.page-register__cta-final-section .page-register__section-description {
  color: #ffffff;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* General card styling (used by feature-item, brand-item, faq-item) */
.page-register__card {
  background: #ffffff; /* Ưu tiên sử dụng nền trắng để đảm bảo khả năng đọc */
  color: #333333;
  border: 1px solid #e0e0e0; /* Thêm đường viền để tăng cường khả năng đọc */
}

.page-register__dark-bg {
  background: #1A2B3C;
  color: #ffffff;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 40px;
  }
  .page-register__hero-description {
    font-size: 19px;
  }
  .page-register__section-title {
    font-size: 30px;
  }
  .page-register__section-description {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-register__container {
    padding: 0 15px; /* Adjust container padding for mobile */
  }

  /* 🚨 Mobile specific padding-top for fixed header */
  .page-register__hero-section {
    padding-top: 100px !important; /* Mobile: Adjust based on mobile header height */
    padding-bottom: 40px;
  }

  .page-register__hero-title {
    font-size: 32px;
  }
  .page-register__hero-description {
    font-size: 17px;
    margin-bottom: 30px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 16px;
    width: 100% !important; /* Ensure buttons are full width */
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 10px 0; /* Stack buttons vertically */
  }

  .page-register__hero-cta-buttons,
  .page-register__cta-buttons,
  .page-register__cta-center {
    flex-direction: column; /* Stack buttons vertically */
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 0 15px;
  }

  .page-register__section-title {
    font-size: 26px;
  }
  .page-register__section-description {
    font-size: 15px;
  }

  .page-register__why-join-section,
  .page-register__steps-section,
  .page-register__brand-intro-section,
  .page-register__faq-section,
  .page-register__cta-final-section {
    padding: 50px 0;
  }

  .page-register__features-grid,
  .page-register__steps-grid,
  .page-register__brand-content-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-register__feature-icon {
    width: 100px;
    height: 100px;
  }

  .page-register__feature-title,
  .page-register__brand-item-title {
    font-size: 20px;
  }

  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .page-register__step-title {
    font-size: 22px;
  }

  /* FAQ mobile adaptation */
  .page-register__faq-question {
    padding: 15px;
    flex-wrap: wrap;
  }
  
  .page-register__faq-question h3 {
    font-size: 16px;
    margin-bottom: 0;
    width: calc(100% - 40px);
  }
  
  .page-register__faq-toggle {
    margin-left: 10px;
    width: 24px;
    height: 24px;
    font-size: 20px;
  }
  
  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* Image responsive */
  .page-register img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-register__hero-image,
  .page-register__brand-image {
    border-radius: 8px;
  }

  .page-register__card {
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}