/*
Theme Name: Hello Elementor Child
Theme URI: https://example.com/
Description: چایلد تم برای هلو المنتور
Author: Nima
Author URI: https://example.com/
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
.hafanwp img {
    -webkit-mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    mask: linear-gradient(-60deg,#000 30%,#0005,#000 50%) right / 300% 100%;
    animation: nsshine 3s infinite
}

@keyframes nsshine {
    0% {
        -webkit-mask-position: 140% 140%;
        mask-position: 140% 140%
    }

    100% {
        -webkit-mask-position: -20% -20%;
        mask-position: -20% -20%
    }
}
/* استایل‌های سفارشی شما از اینجا شروع میشه */
.heade-box-img{
    box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}

.box-text-shodo{
box-shadow: rgb(38, 57, 77) 0px 20px 30px -10px;
}
.box-text{
box-shadow: rgba(0, 0, 0, 0.16) 0px 3px 6px, rgba(0, 0, 0, 0.23) 0px 3px 6px;
}

.box-text-shodo:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12),
                0 10px 30px rgba(0, 0, 0, 0.15);
 
}
.box-efeck1{
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px); /* for ios */
	box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
	
}
.box-efeck1:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12),
                0 10px 30px rgba(0, 0, 0, 0.15);
 
}
/* افکت شیشه‌ای ساده */
.box-efeck{
    background-color: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px); /* for ios */
	height: 200px;
	
}
.box-efeck:hover{
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12),
                0 10px 30px rgba(0, 0, 0, 0.15);
 
}
/* شیشه‌ای با رنگ سفارشی */
.box-efeck3{
    background-color: rgba(255, 32, 32, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(20px); /* for ios */
}
/* شیشه‌ای با گرادیان */
.box-efeck4{
    background-color: transparent;
    backdrop-filter: blur(10px);
    background-image: linear-gradient(
        180deg,
        rgba(255,255,255,0.2),
        rgba(0,0,0,0.6)
    );
}


/* ------------------------ */
/* abuot shwodo */
.abuot-box{
	box-shadow: rgba(0, 0, 0, 0.25) 0px 14px 28px, rgba(0, 0, 0, 0.22) 0px 10px 10px;
}

/* ===== Modern comments style (Elementor-friendly, RTL-aware) ===== */
.comments-area .comment-list,
#comments .comment-list,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list li.comment,
.comment-list .comment {
  margin-bottom: 24px;
}

/* کارت نظر */
.comment .comment-body,
.comment-body,
.comment-list article.comment {
  background: #ffffff;
  border: 1px solid #e6eef6;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 12px rgba(15,23,42,0.06);
  transition: transform .18s ease, box-shadow .18s ease;
}

/* hover زیبا */
.comment .comment-body:hover,
.comment-body:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(15,23,42,0.08);
}

/* هدر هر کامنت (آواتار + نام) */
.comment-author,
.comment-author.vcard,
.comment-author .fn {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

/* آواتار — از خصوصیات منطقی برای پشتیبانی RTL استفاده شده */
.comment-author img,
.avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #eef6fb;
  /* margin-inline-start به طور خودکار در RTL سمت راست را می‌گیرد */
  margin-inline-start: 12px;
}

/* اسم نویسنده */
.comment-author .fn {
  font-weight: 600;
  font-size: 16px;
  color: #0f1724;
}

/* متادیتا (تاریخ، زمان) */
.comment-meta,
.comment-metadata {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 10px;
}

/* متن کامنت */
.comment-content,
.comment .comment-content {
  font-size: 15px;
  line-height: 1.8;
  color: #1f2937;
}

/* دکمه پاسخ */
.comment-reply-link,
.reply a,
.comment .reply a {
  display: inline-block;
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 8px;
  background: #ebf8ff;
  color: #1d4ed8;
  font-weight: 500;
  transition: all .15s ease;
}
.comment-reply-link:hover,
.reply a:hover {
  background: #1d4ed8;
  color: #fff;
}

/* فرم ارسال نظر */
#respond,
#commentform {
  margin-top: 32px;
  padding: 22px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e6eef6;
}

#reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #0f1724;
}

#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"],
#commentform textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 15px;
  box-sizing: border-box;
}

#commentform input:focus,
#commentform textarea:focus {
  border-color: #2563eb;
  outline: none;
}

#commentform input[type="submit"] {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}
#commentform input[type="submit"]:hover {
  background: #1e40af;
}

/* موبایل */
@media (max-width: 600px) {
  .comment .comment-body,
  .comment-body {
    padding: 14px;
  }
  .comment-author img,
  .avatar {
    width: 42px;
    height: 42px;
    margin-inline-start: 8px;
  }
  .comment-author .fn { font-size: 14px; }
  .comment-meta { font-size: 12px; }
  .comment-content { font-size: 14px; }
  .reply a { font-size: 13px; padding: 6px 10px; }
}
/* ===== استایل مدرن فهرست مطالب ===== */

/* کانتینر اصلی */
.toc, 
.ez-toc-container, 
.lwptoc {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 20px;
  margin: 25px 0;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  font-family: inherit;
}

/* عنوان */
.toc-title, 
.ez-toc-title, 
.lwptoc_title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.toc-title::before, 
.ez-toc-title::before, 
.lwptoc_title::before {
  content: "📑";
  font-size: 20px;
}

/* لیست اصلی */
.toc ul, 
.ez-toc-list, 
.lwptoc_items {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* آیتم‌ها */
.toc ul li, 
.ez-toc-list li, 
.lwptoc_items li {
  margin: 8px 0;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all .2s ease;
}

/* لینک‌ها */
.toc ul li a, 
.ez-toc-list a, 
.lwptoc_items a {
  text-decoration: none;
  color: #1d4ed8;
  font-size: 15px;
  display: block;
  line-height: 1.6;
  transition: color .2s ease;
}

.toc ul li:hover, 
.ez-toc-list li:hover, 
.lwptoc_items li:hover {
  background: #f1f5f9;
}

.toc ul li a:hover, 
.ez-toc-list a:hover, 
.lwptoc_items a:hover {
  color: #0f172a;
}

/* سطوح تو در تو */
.toc ul ul, 
.ez-toc-list ul, 
.lwptoc_items ul {
  margin-top: 6px;
  padding-inline-start: 16px; /* در RTL به طور خودکار راست‌چین میشه */
  border-inline-start: 2px solid #e2e8f0;
}

/* ریسپانسیو */
@media (max-width: 600px) {
  .toc, 
  .ez-toc-container, 
  .lwptoc {
    padding: 15px;
    font-size: 14px;
  }
  .toc-title, 
  .ez-toc-title, 
  .lwptoc_title {
    font-size: 16px;
  }
  .toc ul li a, 
  .ez-toc-list a, 
  .lwptoc_items a {
    font-size: 14px;
  }
}
.consulting-form {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.consulting-form h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #1e293b;
}

.consulting-form p {
  font-size: 14px;
  color: #475569;
}

.consulting-form label {
  display: block;
  margin-bottom: 15px;
  font-weight: 500;
  color: #0f172a;
}

.consulting-form input,
.consulting-form select,
.consulting-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  margin-top: 6px;
  transition: border 0.2s ease;
}

.consulting-form input:focus,
.consulting-form select:focus,
.consulting-form textarea:focus {
  border-color: #2563eb;
  outline: none;
}

.consulting-form input[type="submit"] {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.consulting-form input[type="submit"]:hover {
  background: #1e40af;
}
/*--------------------------------------------------------------  */

/* ====== تنظیم رنگ‌های متن ====== */
.custom-underline-menu .elementor-item {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
  color: #333; /* 🔹 رنگ پیش‌فرض متن منو */
  transition: color 0.3s ease;
}

/* رنگ هاور */
.custom-underline-menu .elementor-item:hover {
  color: #000; /* 🔹 رنگ متن در حالت هاور */
}

/* رنگ آیتم فعال (صفحه جاری) */
.custom-underline-menu .elementor-item.current-menu-item,
.custom-underline-menu .elementor-item.elementor-item-active {
  color: #c00; /* 🔹 رنگ متن آیتم فعال */
}

/* ====== خط انیمیشن ====== */
.custom-underline-menu .elementor-item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;                 /* ضخامت خط */
  background-color: #000;      /* 🔹 رنگ خط (میتونی تغییر بدی) */
  transform-origin: right center;
  transform: scaleX(0);
  transition: transform 0.65s cubic-bezier(.25,.8,.25,1); /* 🔹 نرم‌تر از قبل */
}

/* نمایش خط در هاور و آیتم فعال */
.custom-underline-menu .elementor-item:hover::after,
.custom-underline-menu .elementor-item:focus::after,
.custom-underline-menu .elementor-item.current-menu-item::after,
.custom-underline-menu .elementor-item.elementor-item-active::after {
  transform: scaleX(1);
}

.moving-title {
  display: inline-block;
  transition: transform 0.3s ease-in-out;
}

.moving-title:hover {
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0% { transform: translateX(0); }
  25% { transform: translateX(6px); }
  50% { transform: translateX(-6px); }
  75% { transform: translateX(3px); }
  100% { transform: translateX(0); }
}


/* ------------------------------------فرم */
/* استایل کلی فرم */
.consulting-form-consul {
  background: #fff;
  color: #000;
  border: 1px solid #ddd;
  padding: 25px;
  border-radius: 12px;
  max-width: 700px;
  margin: 0 auto;
  font-family: "IranSansDN", sans-serif;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* عنوان */
.consulting-form-consul-h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
  text-align: center;
}

/* توضیحات */
.consulting-form-consul-p {
  font-size: 0.95rem;
  margin-bottom: 20px;
  text-align: center;
  color: #444;
}

/* لیبل‌ها */
.consulting-form-consul label{
  display: block;
  font-size: 0.9rem;
  margin-bottom: 25px !important;
  color: #333;
}
.consulting-form-consul-lb span{
margin-top: 15px !important;
	color:black !important;
	
}
/* فیلدهای ورودی */
.consulting-form-consul input[type="text"],
.consulting-form-consul input[type="email"],
.consulting-form-consul input[type="tel"],
.consulting-form-consul select,
.consulting-form-consul textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 25px !important;
	margin-top: 25px !important;
  border: 1px solid #aaa;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 0.95rem;
  color: #000;
  transition: all 0.3s ease;
}

.consulting-form-consul input:focus,
.consulting-form-consul select:focus,
.consulting-form-consul textarea:focus {
  border-color: #000;
  background: #fff;
  outline: none;
}

/* چک‌باکس و رادیو */
.consulting-form-consul input[type="checkbox"],
.consulting-form-consul input[type="radio"] {
  margin-left: 5px;
  accent-color: #000;
}

/* دکمه ارسال */
.consulting-form-consul input[type="submit"] {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.consulting-form-consul input[type="submit"]:hover {
  background: #333;
}

/* واکنش‌گرایی */
@media (max-width: 768px) {
  .consulting-form {
    padding: 20px;
  }

  .consulting-form-consul h3 {
    font-size: 1.2rem;
  }

  .consulting-form-consul input,
  .consulting-form-consul select,
  .consulting-form-consul textarea {
    font-size: 0.9rem;
  }
}

.consulting-form-consul span {
  color: red;
  font-weight: bold;
}
