/* style/register.css */
/* body đã có padding-top: var(--header-offset) từ shared.css, không thêm lại ở đây */

.page-register {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Body background is dark (#0a0a0a), so text is light */
  background-color: transparent; /* Main content background is transparent to show body background */
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  text-align: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  overflow: hidden; /* Ensure no overflow from hero image */
}

.page-register__hero-image-wrapper {
  position: relative;
  width: 100%;
  max-height: 700px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px; /* Space between image and content */
}

.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Cover the area, crop if necessary */
  max-height: 700px; /* Ensure image itself doesn't exceed this height */
}

.page-register__hero-content {
  position: relative; /* Stacks below image, not on top */
  z-index: 1;
  max-width: 800px;
  padding: 0 20px;
}

.page-register__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
  color: #26A9E0; /* Brand color for main title */
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-register__hero-description {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #f0f0f0; /* Light text for readability on dark background */
  margin-bottom: 30px;
}

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

.page-register__btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: all 0.3s ease;
  cursor: pointer;
  max-width: 100%; /* Ensure buttons don't overflow */
  box-sizing: border-box;
  white-space: normal; /* Allow text to wrap */
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #26A9E0; /* Main brand color */
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-register__btn-primary:hover {
  background-color: #1e87c0;
  border-color: #1e87c0;
}

.page-register__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* General Section Styling */
.page-register__section {
  padding: 60px 0;
}

.page-register__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: #26A9E0;
  text-align: center;
  margin-bottom: 40px;
  font-weight: bold;
}

.page-register__description {
  font-size: 1.1rem;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
}

.page-register__highlight {
  color: #26A9E0; /* Highlight important keywords */
  font-weight: bold;
}

/* Why Register Section */
.page-register__why-register {
  background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for contrast */
}

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

.page-register__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__feature-icon {
  width: 250px; /* Ensure images are not too small */
  height: 187px; /* Maintain 4:3 aspect ratio for 250x187.5 */
  object-fit: cover;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__feature-description {
  font-size: 1rem;
  color: #cccccc;
}

.page-register__feature-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__feature-description a:hover {
  text-decoration: underline;
}

/* How to Register Section */
.page-register__how-to-register {
  background-color: #0a0a0a; /* Darker background */
}

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

.page-register__step-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-register__step-number {
  background-color: #26A9E0;
  color: #ffffff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-register__step-title {
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__step-description {
  font-size: 1rem;
  color: #cccccc;
  flex-grow: 1; /* Make descriptions take equal height */
}

.page-register__step-image {
  width: 300px; /* Example size, adjust as needed */
  height: 225px; /* Maintain 4:3 aspect ratio for 300x225 */
  object-fit: cover;
  margin: 20px 0;
  border-radius: 8px;
}

.page-register__step-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__step-description a:hover {
  text-decoration: underline;
}

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

/* Member Benefits Section */
.page-register__member-benefits {
  background-color: rgba(255, 255, 255, 0.05);
}

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

.page-register__benefit-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-register__benefit-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-register__benefit-description {
  font-size: 1rem;
  color: #cccccc;
}

.page-register__benefit-description a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__benefit-description a:hover {
  text-decoration: underline;
}

.page-register__benefit-image {
  width: 250px; /* Example size */
  height: 333px; /* Maintain 3:4 aspect ratio for 250x333.33 */
  object-fit: cover;
  margin: 20px 0;
  border-radius: 8px;
}

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

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

.page-register__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2rem;
  font-weight: bold;
  color: #ffffff;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.15);
  transition: background-color 0.3s ease;
  list-style: none; /* Hide default marker for details summary */
}

.page-register__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for webkit browsers */
}

.page-register__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__faq-qtext {
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.5rem;
  margin-left: 15px;
  color: #26A9E0;
}

.page-register__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1rem;
  color: #cccccc;
  line-height: 1.8;
}

.page-register__faq-answer p {
  margin-bottom: 0; /* Remove default paragraph margin in answer */
}

.page-register__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-register__faq-answer a:hover {
  text-decoration: underline;
}

/* Call to Action Section */
.page-register__call-to-action {
  background-color: #26A9E0; /* Brand color background */
  padding: 80px 0;
  text-align: center;
}

.page-register__call-to-action .page-register__section-title {
  color: #ffffff;
  margin-bottom: 30px;
}

.page-register__call-to-action .page-register__description {
  color: #ffffff;
  max-width: 800px;
  margin: 0 auto 40px;
}

.page-register__btn-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  background-color: #EA7C07; /* Login button color for strong CTA */
  border-color: #EA7C07;
}

.page-register__btn-large:hover {
  background-color: #c96800;
  border-color: #c96800;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__hero-section {
    min-height: 450px;
  }
  .page-register__main-title {
    font-size: clamp(2.2rem, 4.5vw, 3rem);
  }
  .page-register__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  }
  .page-register__feature-icon,
  .page-register__step-image,
  .page-register__benefit-image {
    width: 200px; /* Adjust image sizes */
    height: auto;
  }
}

@media (max-width: 768px) {
  .page-register__hero-section {
    padding-bottom: 40px;
  }
  .page-register__main-title {
    font-size: clamp(2rem, 7vw, 2.5rem);
  }
  .page-register__hero-description {
    font-size: 1rem;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-register__btn {
    width: 100% !important; /* Force full width on mobile */
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-register__section {
    padding: 40px 0;
  }
  .page-register__section-title {
    font-size: clamp(1.5rem, 6vw, 2rem);
    margin-bottom: 30px;
  }
  .page-register__description {
    font-size: 0.95rem;
  }

  /* Image, Video, Container Responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register video,
  .page-register__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }

  .page-register__video-section {
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-register__faq-question {
    font-size: 1rem;
    padding: 15px 20px;
  }
  .page-register__faq-answer {
    padding: 10px 20px 15px;
  }

  .page-register__call-to-action {
    padding: 60px 0;
  }
}

@media (max-width: 480px) {
  .page-register__hero-section {
    min-height: 350px;
  }
  .page-register__main-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
  }
  .page-register__feature-item,
  .page-register__step-card,
  .page-register__benefit-item {
    padding: 20px;
  }
  .page-register__step-number {
    width: 50px;
    height: 50px;
    font-size: 1.8rem;
  }
  .page-register__step-title {
    font-size: 1.4rem;
  }
}