/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */

body {
  padding-top: 3rem;
  padding-bottom: 3rem;
  color: rgb(var(--bs-tertiary-color-rgb));
}


/* CUSTOMIZE THE CAROUSEL
-------------------------------------------------- */

/* Carousel base class */
.carousel {
  margin-bottom: 4rem;
}
/* Since positioning the image, we need to help out the caption */
.carousel-caption {
  bottom: 3rem;
  z-index: 10;
}

/* MARKETING CONTENT
-------------------------------------------------- */

/* Center align the text within the three columns below the carousel */
.marketing .col-lg-4 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.marketing .col-lg-4 p {
  margin-right: .75rem;
  margin-left: .75rem;
}


/* Featurettes
------------------------- */

.featurette-divider {
  margin: 5rem 0; /* Space out the Bootstrap <hr> more */
}

/* Thin out the marketing headings */

/* RESPONSIVE CSS
-------------------------------------------------- */

@media (min-width: 40em) {
  /* Bump up size of carousel content */
  .carousel-caption p {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    line-height: 1.4;
  }

  .featurette-heading {
    font-size: 50px;
  }
}

@media (min-width: 62em) {
  .featurette-heading {
    margin-top: 7rem;
  }
}
/* ========== استایل‌های ریسپانسیو اسلایدر ========== */

/* حذف ارتفاع ثابت از تصاویر و استفاده از aspect-ratio */
.carousel-item {
    position: relative;
}

    .carousel-item img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 5; /* نسبت 16:5 (مشابه 1920:600) */
        object-fit: cover;
    }

/* پس‌زمینه برای تصاویر (اگر تصویر لود نشد) */
.carousel-item {
    background-color: #1e6f5c;
}

/* استایل متن‌های داخل اسلایدر (بهبود خوانایی در موبایل) */
.carousel-caption {
    background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    border-radius: 10px;
    bottom: 10%;
    left: 5%;
    right: 5%;
    padding: 15px 20px;
    text-align: center;
}

    .carousel-caption h5 {
        font-size: clamp(0.9rem, 5vw, 2rem);
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: white;
    }

    .carousel-caption p {
        font-size: clamp(0.7rem, 3.5vw, 1.2rem);
        margin-bottom: 0.5rem;
        color: #ffd966;
    }

    .carousel-caption .btn {
        font-size: clamp(0.65rem, 3vw, 1rem);
        padding: 0.4rem 1rem;
        margin: 0.2rem;
    }

/* ========== تنظیمات برای موبایل (عرض کمتر از 768px) ========== */
@media (max-width: 768px) {
    .carousel-item img {
        aspect-ratio: 16 / 7; /* در موبایل ارتفاع کمتر شود */
    }

    .carousel-caption {
        bottom: 5%;
        padding: 8px 12px;
        background: rgba(0,0,0,0.7);
    }

        .carousel-caption h5 {
            font-size: 0.85rem;
            margin-bottom: 0.2rem;
        }

        .carousel-caption p {
            font-size: 0.65rem;
            display: none; /* زیرنویس را در موبایل مخفی کن تا فضای بیشتری داشته باشیم */
        }

        .carousel-caption .btn {
            font-size: 0.6rem;
            padding: 0.2rem 0.6rem;
        }
}

/* تنظیمات برای موبایل‌های خیلی کوچک (عرض کمتر از 480px) */
@media (max-width: 480px) {
    .carousel-item img {
        aspect-ratio: 16 / 9;
    }

    .carousel-caption {
        padding: 5px 10px;
    }

        .carousel-caption h5 {
            font-size: 0.7rem;
        }
}