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

.page-register__section {
  padding: 60px 20px;
  text-align: center;
}

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

.page-register__section-title {
  font-size: 36px;
  color: #26A9E0;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
  background: linear-gradient(135deg, #26A9E0 0%, #BFEFFF 100%); /* Light blue gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-register__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-register__hero-image {
  width: 100%;
  margin-bottom: 30px;
  z-index: 1;
}

.page-register__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 20px;
  background: rgba(0, 0, 0, 0.3); /* Semi-transparent overlay for text readability */
  border-radius: 12px;
  margin-top: -80px; /* Overlap image slightly */
  padding-top: 100px; /* Adjust padding for overlap */
}

.page-register__main-title {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 15px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

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

.page-register__cta-button {
  display: inline-block;
  padding: 15px 40px;
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  margin: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.page-register__btn-primary:hover {
  background: #1e87c0;
  border-color: #1e87c0;
  transform: translateY(-3px);
}

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

.page-register__btn-secondary:hover {
  background: #f0f8ff;
  color: #1e87c0;
  transform: translateY(-3px);
}

/* Why Register Section */
.page-register__why-register {
  background: #f8f9fa;
  color: #333333;
}

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

.page-register__feature-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__feature-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-register__feature-item img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

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

/* Registration Steps Section */
.page-register__registration-steps {
  background: #26A9E0;
  color: #ffffff;
}

.page-register__registration-steps .page-register__section-title,
.page-register__registration-steps .page-register__section-description {
  color: #ffffff;
}

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

.page-register__step-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  position: relative;
  padding-left: 80px;
}

.page-register__step-number {
  position: absolute;
  left: 20px;
  top: 30px;
  width: 40px;
  height: 40px;
  background: #FFFFFF;
  color: #26A9E0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: bold;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-register__step-title {
  font-size: 22px;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__step-text {
  font-size: 16px;
  color: #e0e0e0;
}

.page-register__button-group {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

/* Security & Privacy Section */
.page-register__security-privacy {
  background: #ffffff;
  color: #333333;
}

.page-register__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}

.page-register__security-content img {
  max-width: 500px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.page-register__security-list {
  list-style: none;
  padding: 0;
  text-align: left;
  max-width: 500px;
}

.page-register__security-list li {
  font-size: 18px;
  margin-bottom: 15px;
  display: flex;
  align-items: flex-start;
  color: #555555;
}

.page-register__icon {
  margin-right: 10px;
  font-size: 24px;
  color: #26A9E0;
  flex-shrink: 0;
}

.page-register__icon--check::before {
  content: '✔'; /* Unicode checkmark */
  font-size: 22px;
  line-height: 1;
}

.page-register__security-text {
  margin-top: 30px;
  font-size: 17px;
  color: #666666;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* Payment & Withdrawal Section */
.page-register__payment-withdrawal {
  background: #f0f8ff;
  color: #333333;
}

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

.page-register__method-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-register__method-item .page-register__icon {
  font-size: 50px;
  color: #26A9E0;
  margin-bottom: 20px;
  display: block;
  width: 100%;
}

.page-register__icon--bank::before {
  content: '🏦';
}
.page-register__icon--ewallet::before {
  content: '💳';
}
.page-register__icon--crypto::before {
  content: '💰';
}

.page-register__method-title {
  font-size: 24px;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__method-text {
  font-size: 16px;
  color: #666666;
}

.page-register__payment-note {
  margin-top: 40px;
  font-size: 17px;
  color: #555555;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

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

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

.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 20px;
  opacity: 0;
  background: #f9f9f9;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 2000px !important;
  padding: 20px !important;
  opacity: 1;
  background: #f9f9f9;
}

.page-register__faq-answer p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

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

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

.page-register__faq-item.active .page-register__faq-question {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-color: #d0d0d0;
}

.page-register__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  color: #26A9E0;
  pointer-events: none;
}

.page-register__faq-toggle {
  font-size: 28px;
  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;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
}

.page-register__faq-item.active .page-register__faq-toggle {
  color: #333;
  transform: rotate(45deg); /* Rotate to form 'X' or use '-' */
}

/* Latest News Section */
.page-register__latest-news {
  background: #f8f9fa;
  color: #333333;
}

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

.page-register__news-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-register__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
}

.page-register__news-card img {
  width: 100%;
  height: 220px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-register__news-card-content {
  padding: 25px;
}

.page-register__news-title {
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-register__news-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-register__news-title a:hover {
  color: #1e87c0;
}

.page-register__news-excerpt {
  font-size: 16px;
  color: #666666;
  margin-bottom: 15px;
}

.page-register__news-date {
  font-size: 14px;
  color: #999999;
  display: block;
}

/* General image styling */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-register__section {
    padding: 40px 15px;
  }

  .page-register__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .page-register__section-description {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Hero Section Mobile */
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
  }

  .page-register__main-title {
    font-size: 36px;
    line-height: 1.2;
  }

  .page-register__hero-description {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .page-register__cta-button {
    padding: 12px 25px;
    font-size: 16px;
    width: 100%;
    max-width: 300px !important; /* Ensure buttons don't stretch too wide in smaller containers */
    margin-left: auto;
    margin-right: auto;
  }

  .page-register__hero-content {
    margin-top: -60px;
    padding-top: 80px;
  }

  /* Features Grid Mobile */
  .page-register__features-grid {
    grid-template-columns: 1fr;
  }
  
  .page-register__feature-item img {
    max-width: 100%;
  }

  /* Steps List Mobile */
  .page-register__steps-list {
    grid-template-columns: 1fr;
  }
  
  .page-register__step-item {
    padding-left: 60px;
  }
  
  .page-register__step-number {
    left: 15px;
    top: 25px;
    width: 30px;
    height: 30px;
    font-size: 18px;
  }
  
  .page-register__step-title {
    font-size: 20px;
  }

  .page-register__button-group {
    flex-direction: column;
    gap: 15px;
  }
  
  .page-register__button-group .page-register__cta-button {
    width: 100% !important;
    max-width: 300px !important;
  }

  /* Security & Privacy Mobile */
  .page-register__security-content {
    flex-direction: column;
  }

  .page-register__security-list {
    max-width: 100%;
    text-align: left;
  }
  
  .page-register__security-content img {
    width: 100%;
    height: auto;
  }

  /* Payment Methods Mobile */
  .page-register__payment-methods {
    grid-template-columns: 1fr;
  }

  /* FAQ Mobile */
  .page-register__faq-question {
    padding: 15px;
  }

  .page-register__faq-question h3 {
    font-size: 16px;
  }

  .page-register__faq-toggle {
    font-size: 24px;
    width: 25px;
    height: 25px;
  }

  .page-register__faq-answer {
    padding: 0 15px;
  }
  
  .page-register__faq-item.active .page-register__faq-answer {
    padding: 15px !important;
  }

  /* News Grid Mobile */
  .page-register__news-grid {
    grid-template-columns: 1fr;
  }
  
  .page-register__news-card img {
    
  }

  /* Force responsive images and containers */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-register__section,
  .page-register__container,
  .page-register__hero-container,
  .page-register__hero-image,
  .page-register__hero-content,
  .page-register__features-grid,
  .page-register__feature-item,
  .page-register__steps-list,
  .page-register__step-item,
  .page-register__security-content,
  .page-register__security-list,
  .page-register__payment-methods,
  .page-register__method-item,
  .page-register__faq-list,
  .page-register__faq-item,
  .page-register__news-grid,
  .page-register__news-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Override padding for specific elements that already have it */
  .page-register__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-register__section {
    padding-left: 0;
    padding-right: 0;
  }
}