/* ===== slide2.css برای اسلاید دوم ===== */

/* پس‌زمینه‌ی اسلاید دوم */
.history-slide {
  background-color: #1c1c1c;
}

/* بخش scrollable داخل اسلاید دوم */
.history-slide.scrollable {
  padding: 4rem 2rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

/* محتوای درون اسلاید دوم */
.history-slide .content {
  max-width: 900px;
  line-height: 2.2;
  font-size: 1.1rem;
  text-align: justify;
  text-align-last: right;
  color: #e0e0e0;
}

/* باکس اسکرول متون */
.history-slide .scroll-box {
  max-height: calc(100vh - 8rem);
  overflow-y: auto;
  padding-left: 1rem;
}

/* مخفی کردن اسکرول‌بار */
.history-slide .scroll-box::-webkit-scrollbar {
  display: none;
}
.history-slide .scroll-box {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* پاراگراف‌ها */
.history-slide .content p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* وقتی کلاس show اضافه شود */
.history-slide .content p.show {
  opacity: 1;
  transform: translateY(0);
}

/* استایل برای عناوین درشت */
.history-slide .content strong {
  color: #d4af37;
  font-size: 1.7rem;
}

/* لینک‌ها */
.history-slide a {
  color: #d4af37;
  text-decoration: none;
}
.history-slide a:hover {
  color: #f0f0f0;
  text-decoration: underline;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 768px) {
  .history-slide.scrollable {
    padding: 3rem 1rem;
  }

  .history-slide .content {
    font-size: 0.95rem;
    line-height: 1.8;
  }

  .history-slide .scroll-box {
    max-height: calc(100vh - 6rem);
    padding-left: 0.5rem;
  }

  .history-slide .content strong {
    font-size: 1.4rem;
  }

  .history-slide .content p {
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .history-slide.scrollable {
    padding: 2rem 0.5rem;
    flex-direction: column;
  }

  .history-slide .content {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .history-slide .scroll-box {
    max-height: calc(100vh - 5rem);
    padding-left: 0.25rem;
  }

  .history-slide .content strong {
    font-size: 1.2rem;
  }

  .history-slide .content p {
    margin-bottom: 0.75rem;
  }
}
