/* style/register.css */
/* body đã padding-top: var(--header-offset); trang này không được thêm lại */

.page-register {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Mặc định cho nền sáng */
}

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: 10px; /* Nhỏ hơn để tránh trùng với body padding */
  text-align: center;
  overflow: hidden;
  color: #ffffff; /* Cho nền tối */
  background: linear-gradient(135deg, #26A9E0 0%, #1a7bbd 100%);
}

.page-register__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  display: block;
}

.page-register__hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.page-register__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 100%; /* Đảm bảo không tràn */
  font-size: clamp(2em, 5vw, 3.2em); /* Sử dụng clamp cho kích thước font H1 */
}

.page-register__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

/* General Section Styling */
.page-register__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

.page-register__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

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

/* Benefits Section */
.page-register__benefits-section {
  background: #ffffff;
  color: #333333;
}

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

.page-register__benefit-card {
  background: #f8f8f8;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-register__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block; /* Đảm bảo hình ảnh là block để căn giữa */
  margin-left: auto;
  margin-right: auto;
}

.page-register__card-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-register__card-text {
  font-size: 1em;
  color: #555555;
}

/* How To Register Section */
.page-register__how-to-register-section {
  background: #26A9E0;
  color: #ffffff;
}

.page-register__how-to-register-section .page-register__section-title {
  color: #ffffff;
}

.page-register__how-to-register-section .page-register__section-description {
  color: #f0f0f0;
}

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

.page-register__step-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.page-register__step-number {
  position: absolute;
  top: 15px;
  left: 15px;
  font-size: 2.5em;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1;
}

.page-register__step-card .page-register__card-title {
  color: #ffffff;
  margin-top: 20px;
}

.page-register__step-card .page-register__card-text {
  color: #f0f0f0;
}

.page-register__step-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-top: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* FAQ Section */
.page-register__faq-section {
  background: #ffffff;
  color: #333333;
}

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

.page-register__faq-item {
  background: #f8f8f8;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 1.1em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
}

.page-register__faq-item[open] .page-register__faq-question {
  border-bottom: none;
}

.page-register__faq-question::-webkit-details-marker, 
.page-register__faq-question::marker {
  display: none;
}

.page-register__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
  color: #26A9E0;
}

.page-register__faq-item[open] .page-register__faq-toggle {
  transform: rotate(45deg);
}

.page-register__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1em;
  color: #555555;
}

/* Bottom CTA Section */
.page-register__cta-bottom-section {
  background: #26A9E0;
  color: #ffffff;
  text-align: center;
  padding: 80px 20px;
}

.page-register__cta-bottom-section .page-register__section-title {
  color: #ffffff;
}

.page-register__cta-bottom-section .page-register__section-description {
  color: #f0f0f0;
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  background: #EA7C07; /* Màu cam cho nút đăng ký/đăng nhập */
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-register__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
}

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

/* Responsive Design */

/* Tất cả hình ảnh và video phải thích ứng với màn hình di động */
.page-register img,
.page-register video,
.page-register__video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tất cả các container chứa hình ảnh/video/nút */
.page-register__section,
.page-register__card,
.page-register__container,
.page-register__video-section,
.page-register__video-container,
.page-register__video-wrapper,
.page-register__cta-buttons,
.page-register__button-group,
.page-register__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Nút responsive */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register a[class*="button"],
.page-register a[class*="btn"] {
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .page-register__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-register__intro-text {
    font-size: 1em;
  }

  .page-register__section-title {
    font-size: 2em;
  }

  .page-register__section-description {
    font-size: 1em;
  }

  .page-register__hero-section,
  .page-register__benefits-section,
  .page-register__how-to-register-section,
  .page-register__faq-section,
  .page-register__cta-bottom-section {
    padding: 40px 15px; /* Điều chỉnh padding cho di động */
    padding-top: 10px !important; /* Đảm bảo top padding nhỏ */
  }

  .page-register__hero-image-wrapper {
    opacity: 0.1;
  }

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

  .page-register__benefit-card,
  .page-register__step-card {
    padding: 20px;
  }

  .page-register__card-title {
    font-size: 1.3em;
  }

  .page-register__faq-question {
    font-size: 1em;
    padding: 15px;
  }

  .page-register__faq-answer {
    padding: 0 15px 15px 15px;
  }

  /* Force responsive for all images */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force responsive for all videos */
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Force responsive for all containers */
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__video-section,
  .page-register__video-container,
  .page-register__video-wrapper,
  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Force responsive for buttons */
  .page-register__btn-primary,
  .page-register__btn-secondary,
  .page-register a[class*="button"],
  .page-register a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-register__cta-buttons,
  .page-register__button-group,
  .page-register__btn-container {
    flex-direction: column !important; /* Xếp dọc các nút */
    gap: 10px;
  }
}