/* Existing common styles … (keep these intact) */

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.content-wrap {
  flex: 1;
}

.main-content {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 80px;
}

.content-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  padding: 20px;
  gap: 20px;
}

.middle-section {
  display: flex;
  flex-direction: column;
  width: 60%;
  gap: 10px;
}

/* Directory link styling */
.directory {
  font-size: 14px;
  color: #0645AD;
  cursor: pointer;
}

.directory a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.directory a:hover {
  text-decoration: underline;
}

.main-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: -5px;
}

.published-date {
  font-size: 12px;
  color: black;
}

.main-paragraph {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  line-height: 1.5;
  color: #333;
  margin: 20px 0;
}

.main-input-box {
  width: 100%;
  height: 200px;
  padding: 10px;
  font-size: 16px;
  box-sizing: border-box;
  resize: none;
  margin-bottom: 10px;
}

.solve-button {
  width: 100%;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.solve-button:hover {
  background-color: #0056b3;
}

.answer-box {
  margin-top: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
}

.hidden {
  display: none !important;
}

.right-sidebar {
  position: sticky;
  top: 60px;
  width: 15%;
  height: 100vh;
}

.steps-buttons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
.steps-buttons.hidden {
  display: none !important;
}

.step-button {
  flex: 1;
  padding: 10px 0;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: white;
  background-color: #007BFF;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.step-button:hover {
  background-color: #0056b3;
}

.login-please-text {
  color: #555;
  text-align: center;
  margin-top: 10px;
  font-size: 14px;
  font-weight: bold;
}
.login-please-text a {
  color: blue;
  text-decoration: none;
}
.login-please-text a:hover {
  text-decoration: underline;
}

.step-info {
  text-align: right;
  font-size: 12px;
  margin-top: 5px;
}

.step-explanation {
  font-size: 16px;
  font-weight: bold;
  margin: 15px 0;
  text-align: left;
  background-color: transparent;
}

.step-answer {
  display: flex;           /* make it a flex container */
  justify-content: center; /* horizontally center anything inside */
  background-color: #e0e0e0;
  padding: 15px;
  border-radius: 5px;
  margin: 20px 0;
  font-size: 14px;
}

.final-answer {
  font-size: 16px;
  font-weight: bold;
  margin-top: 15px;
  text-align: left;
}

/* --- New spacing rules added below --- */

/* Add space below the "show steps" buttons and before the first step */
.steps-container {
  margin-top: 20px;
}

/* Optionally, add spacing between each individual step */
.step {
  margin-top: 20px;
}
