/* style/register.css */

/* Base styles for page-register */
.page-register {
  color: #ffffff; /* Default text color for dark body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-register__section {
  padding: 60px 0;
  text-align: center;
  position: relative;
}

.page-register__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter dark background for sections */
  color: #ffffff;
}

.page-register__light-bg {
  background-color: #26A9E0; /* Brand color as background */
  color: #ffffff;
}

.page-register__section-title {
  font-size: 2.8em;
  margin-bottom: 30px;
  font-weight: bold;
  color: #ffffff;
  line-height: 1.2;
}

.page-register__description {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 40px;
  color: #f0f0f0;
}

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

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

.page-register__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5); /* Darken image for text readability */
}

.page-register__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  text-align: center;
  color: #ffffff;
  padding: 20px;
}

.page-register__main-title {
  font-weight: bold;
  line-height: 1.1;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 20px;
  font-size: clamp(2.5em, 5vw, 3.5em); /* Responsive font size */
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  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;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  max-width: 100%;
}

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

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

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

.page-register__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-register__btn-text {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-register__btn-text:hover {
  color: #1d8acb;
  text-decoration: underline;
}

/* Why Join Section */
.page-register__why-join .page-register__section-image {
  margin-bottom: 40px;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

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

.page-register__card-text {
  font-size: 1em;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Registration Guide Section */
.page-register__registration-guide .page-register__section-title {
  color: #ffffff;
}

.page-register__registration-guide .page-register__section-image {
  margin-bottom: 40px;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-register__step-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 40px;
}

.page-register__step-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-right: 20px;
  flex-shrink: 0;
}

.page-register__step-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-register__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Post-Registration Section */
.page-register__post-registration .page-register__section-image {
  margin-bottom: 40px;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-register__card--alt {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  height: 100%;
  display: flex;
  flex-direction: column;
  color: #ffffff;
}

.page-register__card--alt .page-register__card-title {
  color: #26A9E0;
}

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

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

.page-register__faq-section .page-register__section-image {
  margin-bottom: 40px;
  border-radius: 10px;
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

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

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

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

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

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

.page-register__faq-answer {
  padding: 0 25px 20px;
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.6;
}

/* Conclusion Section */
.page-register__conclusion .page-register__section-title {
  color: #ffffff;
}

.page-register__conclusion .page-register__description {
  margin-bottom: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-register__section-title {
    font-size: 2.2em;
  }

  .page-register__main-title {
    font-size: clamp(2em, 4.5vw, 3em);
  }

  .page-register__grid-benefits, .page-register__grid-activities {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-register__section {
    padding: 40px 0;
  }

  .page-register__container {
    padding: 0 15px !important;
  }

  .page-register__section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
  }

  .page-register__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-register__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    padding: 12px 25px;
    font-size: 1em;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    margin-bottom: 15px; /* For stacked buttons */
  }

  .page-register__hero-content {
    padding: 15px;
  }

  .page-register__step-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .page-register__step-number {
    margin-bottom: 10px;
    margin-right: 0;
  }

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

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

  /* Mobile image and video responsiveness */
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-register__section,
  .page-register__card,
  .page-register__container,
  .page-register__hero-section,
  .page-register__hero-image-wrapper,
  .page-register__hero-content,
  .page-register__grid-benefits,
  .page-register__grid-activities,
  .page-register__step-list,
  .page-register__faq-list,
  .page-register__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }
  .page-register__video-section {
    padding-top: 10px !important; /* body already handles --header-offset */
  }
}

@media (max-width: 480px) {
  .page-register__section-title {
    font-size: 1.5em;
  }

  .page-register__main-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

  .page-register__btn-primary,
  .page-register__btn-secondary {
    font-size: 0.95em;
  }

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

  .page-register__step-number {
    font-size: 2em;
  }
}