/* اطمینان از اینکه صفحه به ارتفاع 100% تنظیم شود */
html,
body {
  height: 100%; /* تنظیم ارتفاع کل صفحه به 100% */
  margin: 0; /* حذف حاشیه‌ها */
}

/* استفاده از flexbox برای بدنه صفحه */
body {
  display: flex; /* استفاده از flexbox برای چیدن محتوا و فوتر */
  flex-direction: column; /* چیدن محتوای صفحه و فوتر در یک ستون */
  justify-content: space-between; /* فاصله بین محتوا و فوتر */
}

/* تنظیم فوتر برای پایین بودن */
footer {
  position: relative;
  margin-top: auto; /* این خط باعث می‌شود فوتر به پایین صفحه برود */
  width: 100%; /* عرض فوتر به طور کامل */
}

.parallax {
  position: relative;
  background-image: url("../images/4.jpg");
  min-height: 700px;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
}

.parallax-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.parallax-bottom-curve {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  display: block;
}

#parallax_h {
  color: white;
  padding: 20px;
  font-size: 3rem;
}

#parallax_p {
  color: white;
  font-size: 1.2rem;
  margin: 0;
}

.responsive-image {
  width: 100%;
  height: auto;
  max-height: 500px; /* ارتفاع کمتر در دسکتاپ */
  object-fit: cover; /* حفظ کیفیت */
  /* margin-top: 100px; */
}

@media (max-width: 768px) {
  .responsive-image {
    max-height: 600px; /* افزایش ارتفاع در موبایل */
  }
}

.indexcard {
  opacity: 0;
  transform: translateY(100px); /* Moves the cards down initially */
  transition: opacity 0.6s ease-out, transform 0.6s ease-out; /* Smooth transition */
}

/* Class that will be added when cards are visible */
.indexcard.visible {
  opacity: 1;
  transform: translateY(0); /* Bring the card back to its original position */
}

.indexcard-container {
  position: relative;
}

.indexcard-shadow {
  position: absolute;
  top: 10px; /* Adjust for vertical shadow offset */
  left: 10px; /* Adjust for horizontal shadow offset */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1); /* Shadow color */
  z-index: -1; /* Place behind the card */
  border-radius: 0.25rem; /* Match the card's border-radius */
}

.indexcard {
  position: relative;
  z-index: 1;
}

.btnpink:hover {
  background-color: rgb(50, 5, 61) !important;
  color: white !important; /* White text on hover */
}

.btnpink {
  border: 2px solid rgba(103, 7, 125, 0.503) !important;
}

.rounded-img {
  border-radius: 40%;
}

.hoverable:hover {
  /* height: 70px; */
  /* width: 80%; */
  /* line-height: 70px; */
  /* text-align: center; */
  border: 2px solid #dd;
  border-radius: 3px;
  box-shadow: 0 0 0 6px #dc00f5;
  transition: all 200ms ease-out;
}

.bordered-img {
  border: 2px solid #320334; /* Adjust color and width as needed */
  border-radius: 5px; /* Optional: adds rounded corners */
  padding: 6px; /* Optional: adds spacing around the image */
}

.consult:hover {
  background-color: #865ed2 !important;
}

.box {
  position: relative; /* کانتینر باید position داشته باشد */
  width: 300px;
  height: 300px;
  background-color: lightgray;
}

.box1 {
  position: absolute;
  top: 50px;
  left: 50px;
  width: 200px;
  height: 200px;
  background-color: red;
  z-index: 1; /* این عنصر در لایه پایین‌تر قرار می‌گیرد */
}

.box2 {
  position: absolute;
  top: 100px;
  left: 100px;
  width: 200px;
  height: 200px;
  background-color: blue;
  z-index: 2; /* این عنصر در لایه بالاتر قرار می‌گیرد */
}

/* //////////////////////// */

.graphic-section {
  background: radial-gradient(circle at top left, #6f42c1 0%, #0cad00 100%);
  position: relative;
  overflow: hidden;
  min-height: 60vh; /* حداقل ارتفاع - 80 درصد ارتفاع صفحه */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 80px 20px; /* فاصله داخلی مناسب */
}

.graphic-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.graphic-section p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.text-highlight {
  color: #ffd700;
}

.btn-modern {
  background: #fff;
  color: #0cad00;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.btn-modern:hover {
  background: linear-gradient(90deg, #ff4b5c, #6f42c1);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.floating-circle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite alternate;
}

.circle1 {
  width: 200px;
  height: 200px;
  background: #fff;
  top: 10%;
  left: 5%;
}

.circle2 {
  width: 300px;
  height: 300px;
  background: #ffd700;
  bottom: -15%;
  right: 10%;
  animation-delay: 2s;
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-25px);
  }
}

/* /////////////// */
.features-section {
  background: #f9f9fb;
}

.feature-card {
  transition: all 0.3s ease;
  background-color: #fff;
  border: 1px solid #eee;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.icon-wrapper {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, #6f42c1, #b084f7);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 15px;
  transition: all 0.3s ease;
}

.icon-img {
  height: 50px;
  width: auto;
  filter: brightness(0) invert(1);
}

.feature-card:hover .icon-wrapper {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, #5a32b4, #a173f0);
}

/* ========================================= */
/* استایل‌های بخش وبلاگ (مقالات) */
/* ========================================= */
.blog-title {
  color: #333;
  /* اگر می‌خواهید رنگ بنفش مونشید باشد: color: #793cbb; */
}

/* استایل کارت اصلی */
.blog-card {
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* سایه اولیه ملایم */
  cursor: pointer;
}

/* افکت هاور کارت: کمی حرکت به بالا و سایه عمیق‌تر */
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15); /* سایه برجسته‌تر */
}

/* تصویر مقاله */
.blog-img {
  width: 100%;
  height: 180px; /* ارتفاع ثابت برای یکدست شدن کارت‌ها */
  object-fit: cover;
  border-top-left-radius: calc(0.5rem - 1px); /* تطبیق با گوشه‌های کارت */
  border-top-right-radius: calc(0.5rem - 1px);
}

/* استایل عنوان مقاله */
.blog-card .card-title {
  font-size: 1.15rem;
  line-height: 1.6;
  height: 3.2em; /* ارتفاع برای 2 خط متن */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* نمایش حداکثر دو خط */
  -webkit-box-orient: vertical;
}

/* افکت هاور برای لینک عنوان */
.blog-link-hover:hover {
  color: #793cbb !important; /* رنگ بنفش اصلی مونشید هنگام هاور */
}

/* استایل دکمه وبلاگ (btnpink-blog) */
.btnpink-blog {
  color: white !important;
  background-color: #ff5a5f; /* رنگ صورتی/نارنجی پررنگ */
  border-color: #ff5a5f;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(255, 90, 95, 0.3); /* اضافه کردن سایه برای برجستگی */
  transition: all 0.3s ease;
}

.btnpink-blog:hover {
  background-color: #e04c51; /* صورتی کمی تیره‌تر هنگام هاور */
  border-color: #e04c51;
  box-shadow: 0 6px 12px rgba(255, 90, 95, 0.4);
  transform: translateY(-1px);
}

/* ............... */

/* تنظیمات کلی اسلایدر */
.modern-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}





/* ......... */
/* تنظیمات پایه اسلایدر */
.modern-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background: #1f1c2c;
    overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item {
    height: 100%;
}

/* پس‌زمینه کلی تصاویر */
.slider-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 10s ease-in-out;
    z-index: 1;
}

/* تنظیم اختصاصی عکس اسلاید اول (املاک) و کمرنگ کردن آن */
.slide-estate .slider-bg {
    background-image: url('../images/71.png');
    opacity: 0.4; /* تصویر کمرنگ می‌شود اما متن نه */
}

.carousel-item.active .slider-bg {
    transform: scale(1.1);
}

/* لایه تیره برای خوانایی */
.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.8), transparent);
    z-index: 2;
}

/* محتوا */
.content-box {
    position: relative;
    z-index: 3;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out 0.3s;
}

.carousel-item.active .content-box {
    opacity: 1;
    transform: translateY(0);
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}


.modern-slider {
    position: relative;
    height: 85vh;
    min-height: 500px;
    background: #111;
    overflow: hidden;
}

.carousel, .carousel-inner, .carousel-item { height: 100%; }

.slider-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
    z-index: 1;
}

/* تنظیم عکس برای اسلاید اول */
.slide-estate .slider-bg {
    background-image: url('../images/71.png');
    opacity: 0.4;
}

/* تنظیم عکس برای اسلاید دوم (یک عکس پیش‌فرض یا عکس دلخواه خودت را بگذار) */
.slide-service .slider-bg {
    background-image: url('../images/1.jpg'); /* یا هر عکسی که داری */
    opacity: 0.5;
}

.carousel-item.active .slider-bg { transform: scale(1.1); }

.slider-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(to left, rgba(0,0,0,0.85), transparent);
    z-index: 2;
}

.content-box {
    position: relative;
    z-index: 3;
    color: #fff;
    opacity: 0;
    transform: translateX(50px); /* حرکت از سمت راست به چپ */
    transition: all 0.8s ease-in-out;
}

.carousel-item.active .content-box {
    opacity: 1;
    transform: translateX(0);
}

.main-title { font-size: 3.2rem; font-weight: 800; margin-bottom: 20px; }
.highlight { color: #00d4ff; }
.sub-title { color: #ffc107; font-weight: bold; margin-bottom: 15px; display: block; }
.description { font-size: 1.2rem; line-height: 1.8; margin-bottom: 30px; max-width: 600px; }

.btn-group-custom { display: flex; gap: 15px; }
.btn-primary-custom { background: #00d4ff; color: #000; padding: 12px 30px; border-radius: 50px; text-decoration: none; font-weight: bold; }
.btn-outline-custom { border: 2px solid #fff; color: #fff; padding: 12px 30px; border-radius: 50px; text-decoration: none; }

@media (max-width: 768px) {
    .main-title { font-size: 2rem; }
    .content-box { text-align: center; transform: translateY(30px); }
    .btn-group-custom { flex-direction: column; }
}