.newcomers-container {
  background: var(--background-light);
  min-height: 100vh;
  padding: 0;
  margin: 0;
}

.newcomers-welcome {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.page-title {
  color: var(--color-secondary-dark);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.welcome-text {
  color: var(--color-secondary-dark);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.6;
}

.welcome-text a {
  color: var(--brand-color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.welcome-text a:hover {
  text-decoration: underline;
  color: var(--brand-color-primary);
}

/* Journey Section */
.newcomers-journey {
  display: flex;
  align-items: flex-start;
  margin: 4rem 0;
  gap: 6rem;
}

.heading {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  flex: 1;
  min-width: 300px;
  margin-right: 2rem;
}

.heading h2 {
  font-size: 2rem;
  margin: 0;
  font-weight: 700;
  color: var(--color-secondary-dark);
}

.heading-start {
  display: flex;
  position: relative;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  margin-top: -0.7rem;
}

.heading-start h4 {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--color-secondary-dark);
  margin: 0;
}

.heading-start__arrow {
  position: absolute;
  height: 3rem;
  width: 4rem;
  right: -4.5rem;
  transition: 0.5s;
  filter: var(--image-filter-light);
}

.heading-start__arrow:hover {
  transform: translateX(1rem);
  transition: 0.5s;
}

.journey-map {
  flex: 1;
  min-width: 300px;
}

.how-to-contribute h3 {
  font-size: 1.68em;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin-bottom: 2rem;
}

.how-to-contribute p {
  color: var(--color-secondary-dark);
  font-size: 1.125rem;
}

.how-to-contribute a {
  color: var(--brand-color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.how-to-contribute a:hover {
  text-decoration: underline;
  color: var(--brand-color-primary);
}

/* Instructions Section */
.instructions {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

/* Base step styles */
.step {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  gap: 4rem;
}

/* Step 1: Text left, button right (side by side) */
.instructions .step:nth-child(1) {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.instructions .step:nth-child(1) .step-content {
  flex: 1;
  text-align: left;
  max-width: 650px;
}

.instructions .step:nth-child(1) .step-action {
  flex-shrink: 0;
  margin: 0;
  margin-top: 0.5rem;
}

/* Step 2: Image left, text right */
.instructions .step:nth-child(2) {
  flex-direction: row;
}

.instructions .step:nth-child(2) .step-image {
  order: 1;
}

.instructions .step:nth-child(2) .step-content {
  order: 2;
}

/* Step 3: Text left, image right */
.instructions .step:nth-child(3) {
  flex-direction: row;
}

.instructions .step:nth-child(3) .step-content {
  order: 1;
}

.instructions .step:nth-child(3) .step-image {
  order: 2;
}

/* Step 4: Image left, text right */
.instructions .step:nth-child(4) {
  flex-direction: row;
  margin-bottom: 0;
}

.instructions .step:nth-child(4) .step-image {
  order: 1;
}

.instructions .step:nth-child(4) .step-content {
  order: 2;
}

.step-content {
  flex: 1;
  min-width: 400px;
}

.step-content h3 {
  color: var(--color-secondary-dark);
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.step-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--brand-color-secondary);
}

.step-content p {
  color: var(--color-secondary-dark);
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.step-content ol {
  padding-left: 1.5rem;
  text-align: left;
}

.step-content li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--color-secondary-dark);
}

.step-content a {
  color: var(--brand-color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.step-content a:hover {
  text-decoration: underline;
  color: var(--brand-color-primary);
}

.step-action {
  margin-top: 0;
}

.step-image {
  flex: 1;
  min-width: 400px;
  max-width: 500px;
  text-align: center;
}

.step-image img {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
}

/* Button Styles */
.button {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--action-color-dark);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.button:hover {
  background-color: var(--action-color-dark-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 179, 159, 0.3);
}

.button.primary {
  background-color: var(--action-color-dark) !important;
  color: #000 !important;
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: 8px;
  white-space: nowrap;
  border: none;
}

.button.primary:hover {
  background-color: var(--action-color-dark-hover) !important;
  transform: translateY(-2px);
}

/* Tutorials Section */
.tutorials-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.tutorials-heading {
  text-align: center;
}

.tutorials-heading h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  text-align: center;
}

.tutorials-heading p {
  color: var(--color-secondary-dark);
  font-size: 1.125rem;
  margin: 0;
  text-align: center;
}

.tutorials-heading a {
  color: var(--brand-color-secondary);
  text-decoration: none;
  font-weight: 500;
}

.tutorials-heading a:hover {
  text-decoration: underline;
  color: var(--brand-color-primary);
}

/* Reset text alignment for the table */
.tutorials-table {
  text-align: left;
}

/* Join Community Section */
.join-community {
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 991px) {
  .instructions .step {
    flex-direction: column !important;
    gap: 2rem;
    text-align: center;
  }

  .instructions .step:nth-child(1),
  .instructions .step:nth-child(2),
  .instructions .step:nth-child(3),
  .instructions .step:nth-child(4) {
    flex-direction: column !important;
  }

  .instructions .step .step-content,
  .instructions .step .step-image,
  .instructions .step .step-action {
    order: unset !important;
  }

  .instructions .step:nth-child(1) {
    align-items: center;
    text-align: center;
  }

  .instructions .step:nth-child(1) .step-content {
    text-align: center;
    max-width: 100%;
  }

  .instructions .step:nth-child(1) .step-action {
    margin-top: 1.5rem;
  }

  .step-content,
  .step-image {
    min-width: auto;
    max-width: 100%;
  }

  .newcomers-journey {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .heading {
    align-items: center;
    margin-right: 0;
  }

  .heading-start__arrow {
    display: none;
  }
}

@media (max-width: 768px) {
  .instructions {
    padding: 1rem;
  }

  .step {
    margin-bottom: 4rem;
    gap: 2rem;
  }

  .step-content h3 {
    font-size: 1.75rem;
  }

  .page-title {
    font-size: 2.5rem;
  }

  .newcomers-welcome {
    padding: 2rem 1rem;
  }

  .tutorials-section {
    padding: 1rem;
    text-align: center;
  }
  
  .tutorials-heading {
    margin-bottom: 2rem;
  }
  
  .tutorials-heading h3 {
    font-size: 1.5rem;
  }
  
  .tutorials-heading p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .step-content h3 {
    font-size: 1.5rem;
  }

  .step-image img {
    max-width: 300px;
  }

  .button {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .page-title {
    font-size: 2rem;
  }

  .step {
    gap: 1.5rem;
  }

  .tutorials-heading h3 {
    font-size: 1.25rem;
  }
  
  .tutorials-heading p {
    font-size: 0.95rem;
  }
}