/* Base styles for the register page */
.page-register {
  background-color: var(--background-color, #0D0E12); /* Default dark background from shared */
  color: var(--text-main, #FFF3E6); /* Default light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  padding-top: 10px; /* Small top padding, assuming body has --header-offset */
}

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

/* Section titles */
.page-register__section-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-main, #FFF3E6);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  padding-bottom: 15px;
}
.page-register__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #FF8C1A 0%, #FFA53A 100%);
  border-radius: 2px;
}

/* Hero Section */
.page-register__hero-section {
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, #17191F 0%, #0D0E12 100%); /* Card BG to Background for hero */
  overflow: hidden; /* Ensure image doesn't overflow */
}
.page-register__hero-section .page-register__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}
.page-register__hero-content {
  max-width: 800px;
}
.page-register__main-title {
  font-size: clamp(28px, 3.5vw, 48px); /* Clamp for H1 as per rules */
  font-weight: 800;
  color: var(--glow, #FFB04D);
  margin-bottom: 20px;
  line-height: 1.2;
}
.page-register__hero-description {
  font-size: 18px;
  color: var(--text-main, #FFF3E6);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}
.page-register__hero-image-wrapper {
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.page-register__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Buttons */
.page-register__btn-primary {
  display: inline-block;
  padding: 14px 30px;
  background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 140, 26, 0.4);
  max-width: 100%; /* Ensure button adapts to mobile */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}
.page-register__btn-primary:hover {
  background: linear-gradient(180deg, #FFB04D 0%, #FF8C1A 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 26, 0.6);
}
.page-register__btn-large {
  padding: 18px 40px;
  font-size: 20px;
}

/* Why Join Section */
.page-register__why-join-section {
  padding: 80px 0;
}
.page-register__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.page-register__feature-card {
  background-color: var(--card-bg, #17191F);
  border: 1px solid var(--border, #A84F0C);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: var(--text-main, #FFF3E6);
  box-sizing: border-box;
}
.page-register__feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}
.page-register__feature-icon {
  width: 100%;
  max-width: 200px; /* Adjust max-width for feature icons */
  height: auto;
  display: block;
  margin: 0 auto 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}
.page-register__feature-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--glow, #FFB04D);
  margin-bottom: 15px;
}
.page-register__feature-description {
  font-size: 16px;
  color: var(--text-main, #FFF3E6);
}

/* Guide Section */
.page-register__guide-section {
  padding: 80px 0;
  background-color: var(--deep-orange, #D96800); /* Use a brand color for this section */
  color: #ffffff; /* Ensure white text on this background */
}
.page-register__guide-section .page-register__section-title {
  color: #ffffff;
}
.page-register__guide-section .page-register__section-title::after {
  background: #ffffff;
}
.page-register__steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.page-register__step-item {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.page-register__step-image {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
  min-width: 200px; /* Enforce min size */
  min-height: 200px;
}
.page-register__step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--glow, #FFB04D);
  margin-bottom: 10px;
}
.page-register__step-description {
  font-size: 16px;
  color: #ffffff;
}

/* Important Notes Section */
.page-register__important-notes-section {
  padding: 80px 0;
}
.page-register__notes-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.page-register__note-item {
  background-color: var(--card-bg, #17191F);
  border: 1px solid var(--border, #A84F0C);
  border-radius: 10px;
  padding: 25px;
  color: var(--text-main, #FFF3E6);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}
.page-register__note-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--glow, #FFB04D);
  margin-bottom: 10px;
}
.page-register__note-description {
  font-size: 16px;
  color: var(--text-main, #FFF3E6);
}
.page-register__note-description a {
  color: var(--main-color, #FF8C1A);
  text-decoration: none;
  font-weight: 600;
}
.page-register__note-description a:hover {
  text-decoration: underline;
  color: var(--aux-color, #FFA53A);
}

/* FAQ Section */
details.page-register__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border, #A84F0C);
  overflow: hidden;
  background: var(--background-color, #0D0E12);
  color: var(--text-main, #FFF3E6);
}
details.page-register__faq-item summary.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--glow, #FFB04D);
}
details.page-register__faq-item summary.page-register__faq-question::-webkit-details-marker {
  display: none;
}
details.page-register__faq-item summary.page-register__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Light hover effect with brand color */
}
.page-register__faq-qtext {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--glow, #FFB04D);
}
.page-register__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: var(--main-color, #FF8C1A);
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-register__faq-item .page-register__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 140, 26, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: var(--text-main, #FFF3E6);
}