body {
    direction: rtl;
    overflow-x: hidden;
}
/* تنظیمات اولیه dropdown */
.nav-item.dropdown .dropdown-menu {
    display: block;  /* همیشه منو به صورت بلوک خواهد بود */
    opacity: 0;  /* منو در حالت عادی شفاف است */
    visibility: hidden;  /* پنهان سازی کامل برای جلوگیری از کلیک */
    max-height: 0;  /* ارتفاع صفر برای پنهان سازی */
    overflow: hidden;  /* جلوگیری از نمایش محتوای اضافه */
    transition: opacity 0.5s ease, max-height 0.5s ease;  /* انیمیشن ها */
}

/* هنگام هاور منو را نمایش بده */
.nav-item.dropdown:hover .dropdown-menu {
    opacity: 1;  /* تنظیم نمایش منو */
    visibility: visible;  /* نمایش منو */
    max-height: 500px;  /* تنظیم ارتفاع منو به مقداری کافی */
}

/* افزودن فلش ساده به پایین */
.nav-item.dropdown .nav-link::after {
    content: "";
    display: inline-block;
    margin-left: 5px;
    border-top: 5px solid;  /* ضخامت و رنگ فلش */
    border-right: 5px solid transparent;
    border-left: 5px solid transparent;
    vertical-align: middle; /* تراز وسط فلش با متن */
}

/* فلش هنگام هاور ثابت بماند */
.nav-item.dropdown:hover .nav-link::after {
    content: "";
}
.background {
    position: relative;
    background-color: rgba(0, 0, 0, 0.5);
}
.carousel-item {
    height: 90vh; /* یا یک ارتفاع ثابت مثلاً 600px */
}

/* تصاویر داخل اسلایدر باید کل فضا را بپوشانند */
.carousel-item img {
    width: 100%;  /* عرض 100% برای سازگاری با عرض صفحه */
    height: 90vh;  /* ارتفاع یکسان برای همه اسلایدها */
    object-fit: cover;  /* برش تصویر برای پر کردن کامل اسلایدر بدون تغییر نسبت تصویر */
}

.carousel-caption {
    position: absolute;
    bottom: 50px;
    text-align: right;
    color: #fff;
}
.navbar {
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
}
.navbar-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}
.navbar-brand:hover {
    color: #ccc;
}
.navbar-nav .nav-link {
    color: #fff;
}
.navbar-nav .nav-link:hover {
    color: white;
}
.btn-custom {
    background-color: #007bff;
    color: white;
}
.btn-custom:hover {
    background-color: #0056b3;
}
.footer {
    background-color: #333;
    color: white;
    padding: 40px 0;
}
.footer a {
    color: #999;
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}
.social-icons a {
    margin-inline-end: 10px;
    color: white;
}
.footer .row > div {
    margin-bottom: 20px;
}
.footer .copyright {
    background-color: #222;
    padding: 10px 0;
    text-align: center;
    margin-top: 30px;
}
.hero-section {
    position: relative;
    background: url('your-background-image.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* ایجاد پوشش شفاف روی تصاویر */
}
  .hero-content {
    color: #87613E;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s ease-out, transform 1s ease-out;
  }

  .hero-section:hover .hero-content {
    opacity: 1;
    transform: translateY(0);
  }
.hero-content h1 {
    font-size: 3rem;
    font-weight: bold;
}
.hero-content p {
    font-size: 1.5rem;
}
.hero-content .btn-custom {
    background-color: #007bff;
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    margin-top: 20px;
}
.hero-content .btn-custom:hover {
    background-color: #0056b3;
}
.services-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}
.service-box {
    text-align: center;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.service-box.show {
  opacity: 1;
  transform: translateY(0);
}
.service-box i {
    font-size: 3rem;
    color: #007bff;
    margin-bottom: 20px;
}
.service-box h5 {
    font-size: 1.2rem;
    margin-bottom: 15px;
}
.service-box p {
    font-size: 1rem;
    color: #666;
}
.form-section {
    padding: 60px 0;
}
.form-box {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.form-box.show {
  opacity: 1;
  transform: translateY(0);
}

.form-image {
  opacity: 0;
  transform: translateY(-50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.form-image.show {
  opacity: 1;
  transform: translateY(0);
}
.form-box h2 {
    margin-bottom: 30px;
    font-size: 1.8rem;
}
.form-box .form-control {
    margin-bottom: 20px;
}
.form-box .btn-custom {
    background-color: #007bff;
    color: white;
}
.form-box .btn-custom:hover {
    background-color: #0056b3;
}
.form-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-image img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
.testimonial-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}
.testimonial-heading {
    text-align: center;
    margin-bottom: 40px;
}
.testimonial-heading h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}
.testimonial-heading p {
    font-size: 1.1rem;
    color: #666;
}
.testimonial-box {
  opacity: 0;
  transform: scale(0.9) rotateY(10deg);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.testimonial-box.show {
  opacity: 1;
  transform: scale(1) rotateY(0deg);
}

.testimonial-box:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.15);
}
.testimonial-logo img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    object-fit: cover;
}
.testimonial-box h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.testimonial-box p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 15px;
}
.stars {
    color: #ffc107;
}
.stars i {
    font-size: 1.2rem;
}
.services-section {
    padding: 60px 0;
}
.services-content {
    padding-inline-start: 30px;
}
.services-content h2 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 20px;
}
.services-content h4 {
    font-size: 1.3rem;
    color: #6c757d;
    margin-bottom: 15px;
}
.services-content p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}
.services-image {
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-image img {
    max-width: 100%;
    border-radius: 8px;
}
.blog-card {
    direction: rtl; /* جهت متن از راست به چپ */
}
.blog-title {
    font-size: 1.5rem;
    font-weight: bold;
}
.blog-subtitle {
    color: #555;
}

.services-content img {
    max-width: 100%;
    height: auto;
}
