/* ===== اسلاید اول ===== */
.slide {
  min-height: 100vh;
  padding: 4rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1c1c1c;
  position: relative;
  overflow: hidden;
}

.slide-with-bg {
  background-image: url("/img/index/2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #2e2e2e;
  z-index: 1;
}

.slide-with-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.6);
  z-index: 2;
}

.slide-with-bg .content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  line-height: 2.2;
  font-size: 1.1rem;
  text-align: justify;
  text-align-last: right;
  color: #e0e0e0;
  padding: 1rem;
}

.content p {
  margin-bottom: 1.5rem;
}

.company-title {
  font-size: 2rem;
  font-weight: bold;
  color: #d4af37;
  margin-bottom: 1rem;
  text-align: center;
}

/* لینک‌ها */
.slide-with-bg .content a {
  color: #d4af37;
  text-decoration: none;
}
.slide-with-bg .content a:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

/* انیمیشن */
@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-with-bg .company-title,
.slide-with-bg .content p {
  opacity: 0;
  animation: fadeUp 1s ease-out forwards;
}

.slide-with-bg .content p {
  animation-delay: 0.5s;
}

/* ========= ریسپانسیو ========= */
@media (max-width: 768px) {
  .slide {
    padding: 3rem 1rem;
  }

  .slide-with-bg .content {
    font-size: 0.95rem;
    line-height: 1.8;
    padding: 0.75rem;
  }

  .company-title {
    font-size: 1.6rem;
  }

  .content p {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .slide {
    padding: 2rem 0.5rem;
    flex-direction: column;
  }

  .slide-with-bg .content {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.5rem;
  }

  .company-title {
    font-size: 1.3rem;
  }

  .content p {
    margin-bottom: 0.75rem;
  }
}
