/* -------------------- Base Styles -------------------- */

html, body {
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #FFF5F7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.diagram-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50px;
}

.step {
  background: #ffffff;
  padding: 20px;
  width: 60%;
  border-radius: 10px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  position: relative;
  margin-bottom: 40px;
  border: 1px solid #2A2B2D;
}

.step img {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.step h2 {
  font-size: 20px;
  color: #2A2B2D;
}

.step p {
  font-size: 16px;
  color: #4A403A;
}

.arrow-down {
  font-size: 30px;
  color: #2A2B2D;
  font-weight: bold;
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
}

.step:last-child .arrow-down {
  display: none;
}

/* Navbar */
.navbar {
  background-color:  #2A2B2D;
  display: flex;
  width: 100%;
  max-width: 1520px;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.navbar-container {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.navbar-title {
  font-size: 32px;
  font-weight: bold;
  color: #FFF5F7;
  flex-grow: 1;
  text-align: center;
}

/* Footer */
.footer {
  background-color:  #2A2B2D;
  text-align: center;
  padding: 15px;
  width: 100%;
  color: #FFF5F7;
  margin-top: auto;
}

/* Logo Styling */
.logo-container {
  width: 60px;
  height: 60px;
  background-color: #FFF5F7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-text {
  font-size: 50px;
  font-weight: 600;
  color:  #2A2B2D;
  font-family: 'Times New Roman';
  display: flex;
  align-items: center;
}

.logo-link {
  text-decoration: none;
}

/* --- Back Button --- */
.back-button {
  display: block;
  position: absolute;
  top: 120px;
  left: 20px;
  width: 56px;
  height: 56px;
  margin: 0;
  overflow: hidden;
  outline: none;
  background-color: transparent;
  cursor: pointer;
  border: 0;
}

.back-button:before,
.back-button:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  inset: 7px;
}

.back-button:before {
  border: 4px solid #4A403A;
  transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
}

.back-button:after {
  border: 4px solid #2A2B2D;
  transform: scale(1.3);
  transition: opacity 0.4s ease-in-out, transform 0.5s ease-in-out;
  opacity: 0;
}

.back-button:hover:before {
  opacity: 0;
  transform: scale(0.7);
}

.back-button:hover:after {
  opacity: 1;
  transform: scale(1);
}

.button-box {
  display: flex;
  position: absolute;
  top: 0;
  left: 0;
}

.button-elem {
  display: block;
  width: 20px;
  height: 20px;
  margin: 17px 18px 0 18px;
  transform: rotate(180deg);
  fill: #4A403A;
}

.back-button:hover .button-box {
  transition: 0.4s;
  transform: translateX(-56px);
}

/* -------------------- Responsive -------------------- */
@media (max-width: 768px) {
  .diagram-container {
    margin-top: 70px;
  }

  .step {
    width: 90%;
    padding: 15px;
    margin-bottom: 30px;
  }

  .step img {
    width: 60px;
    height: 60px;
  }

  .step h2 {
    font-size: 18px;
  }

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

  .arrow-down {
    font-size: 24px;
    bottom: -20px;
  }

  body {
    padding: 0;
    margin: 0;
    font-size: 15px;
  }

  .navbar {
    flex-direction: column;
    width: 100%;
    height: auto;
    padding: 10px;
    align-items: flex-start;
  }

  .logo-container {
    width: 45px;
    height: 45px;
    margin-left: 0;
  }

  .logo-text {
    font-size: 30px;
  }

  .navbar-title {
    font-size: 20px;
    text-align: center;
    margin-top: 8px;
    width: 100%;
  }

  .footer {
    font-size: 14px;
    padding: 10px;
  }

  .back-button {
    top: 85px;
    left: 10px;
    width: 48px;
    height: 48px;
  }

  .back-button:before,
  .back-button:after {
    inset: 6px;
    border-width: 3px;
  }

  .button-box {
    top: 0;
    left: 0;
  }

  .button-elem {
    width: 16px;
    height: 16px;
    margin: 15px;
  }
}
