@font-face {
  font-family: "Farhang";
  src: url("../fonts/FarhangFamily/Farhang2-Medium.ttf") format("truetype"),
    url("../fonts/woff/Farhang2-Medium.woff") format("woff"),
    url("../fonts/Farhang.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
button,
input,
textarea {
  font-family: "Farhang", sans-serif !important;
}

.card-tours .card-img-top {
  height: 180px; /* ارتفاع ثابت برای تمام تصاویر */
  object-fit: cover; /* تضمین می‌کند تصویر بدون تغییر نسبت پر شود */
}

.card-tours .card-body {
  flex: 1; /* باعث می‌شود بدنه کارت فضای باقیمانده را پر کند */
}

/* افکت hover برای کاردها */
.card-tours {
  border-radius: 20px !important;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-tours:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* استایل‌های سفارشی */
.dropdown-menu {
  text-align: right;
  right: 0;
  left: auto;
}

.dropdown-item {
  text-align: right;
  direction: rtl;
}

/* منوی موبایل - آف‌کنواس */
@media (max-width: 991.98px) {
  .offcanvas {
    width: 50% !important;
    left: auto;
    right: 0;
  }

  .offcanvas-start {
    transform: translateX(100%);
  }

  .offcanvas.show {
    transform: none;
  }
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  right: 100%;
  margin-top: -1px;
  display: none;
}

.dropdown-submenu:hover > .dropdown-menu {
  display: block;
}

.dropdown-submenu > a {
  position: relative;
  padding-left: 20px;
}

.dropdown-arrow {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
}

.dropdown-arrow::after {
  font-size: 10px;
}

@media (max-width: 992px) {
  .dropdown-submenu .dropdown-menu {
    position: static;
    margin: 0;
  }

  .dropdown-arrow::after {
    transform: none;
  }
}

/* دکمه منوی موبایل */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

@keyframes rotate-bg {
  from {
    transform: rotate(0deg) scale(1.2);
  }

  to {
    transform: rotate(360deg) scale(1.2);
  }
}

.rotating-background {
  background-attachment: fixed;
}

@media (min-width: 768px) {
  .rotating-background {
    background-size: 100% auto;
  }
}

.parallax-container {
  height: 250px; /* ارتفاع دلخواه */
  overflow: hidden;
  position: relative;
}

.parallax-image {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 100%;
  width: 100%;
}

.destination-card {
  transition: all 0.3s ease;
  background: white;
}

.destination-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

.destination-card img {
  transition: transform 0.3s ease;
}

.destination-card:hover img {
  transform: scale(1.1);
}
/* /////////////////////// */
/* /////////////////////// */

/* Section Title Styles */
.section-title {
  font-size: 1.8rem !important; /* !important اضافه شد */
  font-weight: 700 !important; /* !important اضافه شد */
  color: #333 !important; /* !important اضافه شد */
}

/* Inline Divider Styles */
.section-divider-inline {
  height: 2px !important; /* !important اضافه شد */
  background-color: #dee2e6 !important;
  flex-grow: 1 !important;
  margin: 0 1.5rem !important;
}

/* Button Styles (Outline Dark Blue) */
.btn-outline-darkblue {
  /* Default (outline) state */
  color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  background-color: transparent !important;
  font-weight: 600 !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 0.5rem !important;
  /* transition و box-shadow معمولا نیازی به !important ندارند مگر اینکه مشکل داشته باشید */
  transition: all 0.3s ease;
  box-shadow: none;
}

.btn-outline-darkblue:hover {
  /* Hover state */
  color: white !important;
  background-color: #2c3e50 !important;
  border-color: #2c3e50 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 12px rgba(44, 62, 80, 0.3) !important;
}

/* Mobile specific adjustments for the button */
.btn-outline-darkblue.btn-sm {
  padding: 0.4rem 0.8rem !important;
  font-size: 0.875rem !important;
}

/* --- RTL Adjustments for Margins --- */
/* این‌ها قبلاً هم !important داشتند و درست است */
[dir="rtl"] .me-2 {
  margin-left: 0.5rem !important;
  margin-right: 0 !important;
}

[dir="rtl"] .ms-1 {
  margin-right: 0.25rem !important;
  margin-left: 0 !important;
}

[dir="rtl"] .mx-3 {
  margin-left: 1rem !important;
  margin-right: 1rem !important;
}

/* --- Responsive Adjustments for Smaller Desktop Screens --- */
@media (max-width: 1200px) {
  .section-title {
    font-size: 1.6rem !important; /* !important اضافه شد */
  }
  .btn-outline-darkblue {
    padding: 0.6rem 1.2rem !important; /* !important اضافه شد */
    font-size: 0.95rem !important; /* !important اضافه شد */
  }
}

/* ////////////////////////// */
