html {
  scroll-behavior: smooth;
}

#guidePage {
  width: 100%;
  min-height: 100vh;
  background-color: #FFFDF6;
  position: relative;
  color: #141E46;
  overflow-x: hidden;
}

.guideNav {
  padding-left: 3rem;
}

.guideTitle {
  padding-top: 3rem;
  padding-left: 6rem;
  display: flex;
  flex-direction: column;
  font-family: 'Montserrat Alternates', sans-serif;
  text-align: left;
}

.guideTitle h1 {
  font-size: 2.3rem;
  font-weight: 600;
  color: #141E46;
  padding-bottom: 0;
}

.guideTitle p {
  font-size: 1.3rem;
  font-family: 'Afacad';
  color: #333;
}

.navParts {
  padding-left: 8rem;
}

.navParts p {
  padding: 1rem 0;
  font-size: 1.3rem;
  font-family: 'Afacad';
  color: #333;
}

.navParts a {
  font-size: 1.2rem;
  color: #141E46;
  text-decoration: none;
  transition: color 0.4s ease, transform 0.3s ease;
}

.navParts a.active {
  font-weight: bold;
  color: #25de6f;
  transform: scale(1.1);
}

.guide-box {
  display: flex;
  justify-content: center; 
  align-items: flex-start;
  gap: 60px;
  padding: 2rem 4rem 5rem;
  flex-wrap: wrap;
}

.stepsCard {
  width: 750px;
  height: 500px;
  background: linear-gradient(145deg, #3e7a53, #2c5038);
  border-radius: 25px;
  margin-top: 5rem;
  
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #bbb transparent;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.stepsCard:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.step {
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.in-view {
  transform: translateY(0);
}

.circleNum {
  width: 60px;
  height: 60px;
  background-color: #FFFDF6;
  color: #141E46;
  border-top-right-radius: 40px;
  border-bottom-right-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Arbutus', sans-serif;
  font-size: 2rem;
  font-weight: 600;
}

.stepTitle {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-top: 1.5rem;
}

.stepTitle h2 {
  font-size: 2rem;
  font-weight: 500;
  padding-left: 3rem;
  color: #FFFDF6;
}

.stepContent {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 1rem 3rem;
}

.stepContent img {
  padding: 1rem;
  width: 400px;
  height: auto;
  border-radius: 10px;
}

.stepContent p {
  font-size: 20px;
  color: #FFFDF6;
}

.textContent {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* Step variations */
#step2 .stepContent,
#step4 .stepContent {
  flex-direction: column;
}

#step2 .stepContent img,
#step4 .stepContent img {
  width: 600px;
}

#step5 .addText {
  margin: 1.5rem 6rem;
  font-size: 20px;
}

#step5 .stepContent {
  gap: 2rem;
  justify-content: center;
}

#step5 .stepContent img {
  width: 300px;
}

.bot-text {
  font-size: 20px;
  font-weight: 500;
  color: #141E46;
  text-align: center;
  margin-top: 2rem;
}

.stepsCard::-webkit-scrollbar {
  width: 6px;
}

.stepsCard::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 20px;
}

.stepsCard::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.5);
}

/* 💻 Tablets and smaller (≤992px) */
@media (max-width: 992px) {
  .navParts {
    display: none;
  }

  .guideTitle {
    padding: 3rem 1rem 2rem 1rem;
    text-align: center;
    align-items: center;
    justify-content: center;
  }

  .guideTitle h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .guideTitle p {
    font-size: 1rem;
    margin-top: 0.5rem;
  }

  .guide-box {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2rem;
    padding: 2rem 1rem; 
  }

  .stepsCard {
    width: 90%;
    height: 500px;
    overflow-y: auto;
    margin: 3rem auto 2rem auto;
    border-radius: 20px;
  }

  .stepContent {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0;
    padding: 1rem;
  }

  .stepContent img {
    width: 80%;
    max-width: 450px;
  }

  .stepTitle {
    justify-content: center;
  }

  .stepTitle h2 {
    font-size: 1.6rem;
    text-align: center;
  }

  .textContent {
    gap: 1rem;
  }

  .bot-text {
    margin: 3rem auto 2rem auto;
    text-align: center;
    position: relative;
    bottom: 0;
  }
}

/* 📱 Mobile (≤600px) */
@media (max-width: 600px) {
  .guideTitle h1 {
    font-size: 1.8rem;
    margin-top: 1rem;
  }

  .stepsCard {
    width: 95%;
    height: 450px;
    margin-top: 4rem;
  }

  .circleNum {
    width: 45px;
    height: 45px;
    font-size: 1.3rem;
  }

  .stepTitle h2 {
    font-size: 1.3rem;
    padding-left: 1rem;
  }

  .stepContent img {
    width: 90%;
  }

  .stepContent p {
    font-size: 16px;
  }

  .bot-text {
    font-size: 16px;
    margin-top: 3rem;
  }
}

/* 📱 Smallest Screens (≤400px) */
@media (max-width: 400px) {
  .guideTitle h1 {
    font-size: 1.5rem;
    margin-top: 1rem;
  }

  .stepsCard {
    width: 95%;
    height: 420px;
    padding: 1rem;
    margin-top: 4rem;
  }

  .stepContent img {
    width: 100%;
  }

  .stepTitle h2 {
    font-size: 1.1rem;
  }

  .stepContent p {
    font-size: 14px;
  }

  .bot-text {
    font-size: 14px;
    margin-top: 3rem;
  }
}

