.card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* محتوا را به انتهای کارت می‌برد */
    flex-grow: 1; /* فضای باقی‌مانده را پر می‌کند */
}

.card-img-top {
    max-width: 100%;
    height: auto;
}

.single-line {
    text-align: center;
    margin-bottom: 10px; /* فاصله بین متن و دکمه */
}

.btn {
    align-self: center;
    margin-bottom: 10px;
}
.padding-right{
    padding-right: 10px!important;
}
.carousel2{
    height: 400px;
    width: 100%;
    background: #0a53be;
}

.container-fluid1{
    padding: 0
}

.carsoel{
    border: 5px solid rgba(147, 147, 147, 0.61);
    width: 100%;
    border-radius: 14px;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 50%;
    transform: translateY(-50%);
    position: absolute;
}
.carousel-control-prev {
    left: 10px;  /* فاصله 1 پیکسل از چپ تصویر */

}
.carousel-control-next {
    right: 10px;  /* فاصله 1 پیکسل از راست تصویر */
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(91, 91, 91, 0.9);
    border-radius: 50%;

    width: 30px;
    height: 30px;
}
.monasebat{
    background-color: #e5e5e5;
    height: 110px;
}

.font-title{
    font-size: 12px;
}
.tarh-hay-monasebat-akhar{
        width: 90%;
}

@media (max-width: 995px) {
    .akhrin_monasebat{
        margin-top: 10px;
    }
}


/* ----- افکت کارت‌ها ----- */
.card {
  border-radius: 1rem;
  backdrop-filter: blur(6px);

  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  opacity: 0;
  animation: fadeUp 0.6s ease forwards;
}

.card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}


/* ----- افکت برای ورود تدریجی ----- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* تأخیر برای انیمیشن کارت‌ها */
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }

/* ----- دکمه‌ها ----- */
.btn, .btn-primary, .btn-outline-primary {
  transition: all 0.3s ease;
}

.btn:hover {
  transform: scale(1.04);
}

/* ----- تصاویر کارت ----- */
.card-img-top {
  border-radius: 0.75rem;
  transition: transform 0.3s ease;
  filter: brightness(95%);
}

.card-img-top:hover {
  transform: scale(1.015);
  filter: brightness(100%);
}

/* ----- اسلایدر ----- */
.carousel .carousel-item {
  transition: opacity 0.8s ease-in-out;
}

/* ----- تک خطی ----- */
.single-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ----- اسکرول نرم ----- */
html {
  scroll-behavior: smooth;
}

/* ----- انیمیشن بارگذاری عکس ----- */
img {
  transition: opacity 0.4s ease-in-out, transform 0.3s ease;
  opacity: 0;
  transform: scale(0.98);
}

img[src] {
  opacity: 1;
  transform: scale(1);
}


/* --- افکت کارت‌ها و محتوای سایت --- */
.card, .fade-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

.card.show, .fade-on-scroll.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- دکمه برگشت به بالا --- */
#scrollToTop {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  background-color: #6f42c1;
  color: white;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  display: none;
  transition: all 0.3s ease;
  font-size: 18px;
}

#scrollToTop:hover {
  transform: scale(1.1);
  background-color: #5a32a3;
}

/* ظاهر اولیه محتوایی که باید با اسکرول ظاهر شود */
.scroll-fade {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease-out;
  will-change: opacity, transform;
}

/* وقتی وارد دید کاربر شد، این کلاس اضافه می‌شود */
.scroll-fade.in-view {
  opacity: 1;
  transform: translateY(0);
}




