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

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

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

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

/* Dark background section styles */
.page-register__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 0;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description {
  color: #ffffff;
}

/* Light background section styles */
.page-register__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

/* Card styles */
.page-register__card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  box-sizing: border-box;
  color: #333333;
}

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

/* Button styles */
.page-register__btn-primary,
.page-register__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-register__btn-primary {
  background-color: #C30808; /* Custom color for Register/Login */
  color: #FFFF00; /* Custom font color for Register/Login */
  border: 2px solid #C30808;
}

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

.page-register__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005a2b;
  border-color: #005a2b;
}

/* Hero Section */
.page-register__hero-section {
  padding-top: var(--header-offset, 120px); /* Offset for fixed header */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.page-register__hero-section .page-register__container {
  display: flex;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 1;
}

.page-register__hero-content {
  flex: 1;
  max-width: 600px;
}

.page-register__hero-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #ffffff;
}

.page-register__hero-description {
  font-size: 1.3em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-register__hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.page-register__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

/* Why Register Section */
.page-register__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-register__feature-icon {
  width: 100%;
  height: auto;
  max-width: 200px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-register__feature-title {
  font-size: 1.5em;
  color: #017439;
  margin-bottom: 10px;
}

.page-register__feature-text {
  color: #555555;
}

/* Video Section */
.page-register__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-register__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
}

.page-register__btn-video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background-color: rgba(195, 8, 8, 0.8); /* Slightly transparent for effect */
  color: #FFFF00;
  padding: 15px 30px;
  border-radius: 50px;
  font-size: 1.2em;
  animation: pulse 2s infinite;
  border: none;
}

.page-register__btn-video-overlay:hover {
  background-color: rgba(163, 6, 6, 0.9);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(1.05); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

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

.page-register__step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 30px 20px;
}

.page-register__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #C30808;
  margin-bottom: 15px;
  background-color: #f0f2f5;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #C30808;
}

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

.page-register__step-text {
  color: #555555;
  flex-grow: 1;
}

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

.page-register__illustration-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-register__benefit-item .page-register__card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-register__benefit-item .page-register__card:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.page-register__benefit-item .page-register__benefit-title {
  color: #FFFF00;
  font-size: 1.5em;
  margin-bottom: 10px;
}

.page-register__benefit-item .page-register__benefit-text {
  color: #f0f0f0;
}

.page-register__benefit-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  margin-bottom: 20px;
  border-radius: 8px;
}

/* FAQ Section */
.page-register__faq-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-register__faq-item {
  text-align: left;
  cursor: pointer;
  overflow: hidden;
}

.page-register__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
  color: #017439;
}

.page-register__faq-question:hover {
  color: #C30808;
}

.page-register__faq-heading {
  margin: 0;
  font-size: 1.2em;
  flex-grow: 1;
}

.page-register__faq-toggle {
  font-size: 1.8em;
  font-weight: bold;
  line-height: 1;
  margin-left: 20px;
  transition: transform 0.3s ease;
  color: #C30808;
}

.page-register__faq-item.active .page-register__faq-toggle {
  transform: rotate(0deg);
}

.page-register__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
}

.page-register__faq-item.active .page-register__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 15px;
}

.page-register__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-register__cta-section {
  text-align: center;
  padding: 80px 0;
}

.page-register__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

/* Image specific styles */
.page-register img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-register__hero-title {
    font-size: 3em;
  }
  .page-register__hero-description {
    font-size: 1.1em;
  }
  .page-register__hero-section .page-register__container {
    flex-direction: column;
    text-align: center;
  }
  .page-register__hero-content {
    max-width: 100%;
  }
  .page-register__hero-image-wrapper {
    justify-content: center;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .page-register {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-register__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__section-title {
    font-size: 2em;
  }
  .page-register__hero-title {
    font-size: 2.5em;
  }
  .page-register__hero-description {
    font-size: 1em;
  }
  .page-register__btn-primary,
  .page-register__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    margin: 5px 0;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-register__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }
  .page-register__container {
    padding: 0 15px;
  }
  .page-register__feature-grid,
  .page-register__steps-grid,
  .page-register__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-register__video-section,
  .page-register__why-register-section,
  .page-register__steps-section,
  .page-register__benefits-section,
  .page-register__faq-section,
  .page-register__cta-section {
    padding: 40px 0;
  }
  .page-register img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-register__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden !important;
  }
  .page-register__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-register__feature-card, .page-register__step-card, .page-register__benefit-item, .page-register__faq-item {
    padding: 20px;
  }
}