/* How to Use Section */
.how-to-use-section {
  padding: 8rem 2rem 4rem;
  min-height: calc(100vh - 80px);
  /* Subtract footer height approx */
  background: linear-gradient(135deg,
      rgba(0, 255, 255, 0.05) 0%,
      rgba(255, 0, 255, 0.05) 100%),
    #0a0a0f;
}

.how-to-use-container {
  max-width: 1000px;
  margin: 0 auto;
}

.how-to-use-container h1 {
  font-size: 3rem;
  border-bottom: 2px solid rgba(0, 255, 255, 0.3);
  padding-bottom: 1rem;
  display: block;
  width: fit-content;
  margin: 0 auto 3rem auto;
}

.guide-step {
  background: rgba(15, 15, 25, 0.8);
  border: 1px solid rgba(0, 255, 255, 0.2);
  border-radius: 15px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.guide-step:hover {
  border-color: rgba(0, 255, 255, 0.5);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1);
  transform: translateY(-5px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: -20px;
  background: linear-gradient(135deg, #00ffff, #ff00ff);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid #fff;
  color: #0a0a0f;
  font-family: "Orbitron", sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  z-index: 10;
}

.guide-step h2 {
  color: #00ffff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  margin-left: 1rem;
}

.guide-step p {
  font-size: 1.1rem;
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.step-images {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

.step-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  height: 400px;
  /* Fixed height for uniformity */
  border-radius: 10px;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
  background: rgba(0, 0, 0, 0.3);
  /* Dark background for container */
  display: flex;
  flex-direction: column;
}

.step-image-container:hover {
  transform: scale(1.02);
  border-color: rgba(0, 255, 255, 0.4);
}

.step-image-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* Ensures image fits without distinction */
  background: #000;
  flex: 1;
  /* Takes available space above caption */
}

.step-image-caption {
  background: rgba(0, 0, 0, 0.8);
  color: #b0b0b0;
  padding: 0.8rem;
  text-align: center;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .how-to-use-section {
    padding: 6rem 1rem 3rem;
  }

  .how-to-use-container h1 {
    font-size: 2.2rem;
  }

  .guide-step {
    padding: 2rem 1.5rem;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    left: -10px;
  }

  .guide-step h2 {
    font-size: 1.5rem;
  }
}

/* RTL Support */
/* RTL Support */

[dir="rtl"] .step-number {
  left: auto;
  right: -20px;
}

[dir="rtl"] .guide-step h2 {
  margin-left: 0;
  margin-right: 1rem;
  text-align: right;
}

[dir="rtl"] .guide-step p {
  text-align: right;
}

[dir="rtl"] .step-image-caption {
  text-align: center;
}