/* Start custom CSS for text-editor, class: .elementor-element-8cfee1a *//* متغیر رنگ اصلی */
:root {
    --ein-green: #57a798;
    --ein-light-bg: #f4fcfb; /* رنگ پس زمینه خیلی روشن */
    --ein-border: #e1e1e1;
    --ein-text-gray: #777;
    --ein-title-gray: #555;
}

/* ساختار کلی */
.ein-archive-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    direction: rtl;
    font-family: inherit; /* ارث بری فونت از قالب */
    margin-top: 20px;
}

/* ---------------- سایدبار راست ---------------- */
.ein-sidebar-right {
    width: 26%;
    min-width: 260px;
}

.ein-widget-box {
    background: #fff;
    border: 1px solid var(--ein-border);
    border-radius: 20px; /* گردی گوشه ها مطابق طرح */
    padding: 20px 25px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.03);
}

.ein-widget-header {
    background: #f0f0f0;
    margin: -20px -25px 15px -25px; /* کشیدن هدر به لبه ها */
    padding: 12px 25px;
    border-radius: 20px 20px 0 0;
    border-bottom: 1px solid var(--ein-border);
}

h4.ein-widget-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--ein-title-gray);
    margin: 0;
    text-align: right;
}

/* لیست دسته بندی ها (ویجت ۱) */
ul.ein-cat-list, ul.ein-sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* استایل آیتم های لیست + خط چین */
ul.ein-cat-list > li, 
ul.ein-sidebar-menu > li {
    border-bottom: 1px dashed #ddd; /* خط چین */
    padding: 10px 0;
}
ul.ein-cat-list > li:last-child, 
ul.ein-sidebar-menu > li:last-child {
    border-bottom: none;
}

/* لینک های اصلی */
a.ein-cat-link, 
ul.ein-sidebar-menu > li > a {
    text-decoration: none;
    color: var(--ein-text-gray);
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

/* بولت سبز برای والدها */
a.ein-cat-link.parent .bullet,
ul.ein-sidebar-menu > li > a::before {
    color: var(--ein-green);
    font-size: 10px; /* اندازه بولت */
    margin-left: 8px;
    content: '●'; /* بولت برای منوی وردپرس */
}
a.ein-cat-link.parent .bullet { content: normal; } /* جلوگیری از تکرار */

/* هاور و اکتیو */
a.ein-cat-link:hover, 
a.ein-cat-link.active,
ul.ein-sidebar-menu li a:hover {
    color: var(--ein-green);
    font-weight: bold;
}

/* زیرمجموعه ها (Children) */
ul.ein-sub-cat, 
ul.ein-sidebar-menu .sub-menu {
    list-style: none;
    padding-right: 15px;
    margin-top: 5px;
}
ul.ein-sub-cat li, 
ul.ein-sidebar-menu .sub-menu li {
    padding: 5px 0;
    border-bottom: none; /* زیرمجموعه خط چین ندارد */
}
a.ein-cat-link.child, 
ul.ein-sidebar-menu .sub-menu a {
    font-size: 13px;
    color: #999;
}
a.ein-cat-link.child:hover,
ul.ein-sidebar-menu .sub-menu a:hover {
    color: var(--ein-green);
}

/* ---------------- محتوای چپ ---------------- */
.ein-content-left {
    width: 70%;
    flex-grow: 1;
}

/* باکس توضیحات بالا (Intro Box) */
.ein-intro-box {
    margin-bottom: 40px;
}

.ein-intro-header {
    background: #eef8f6; /* سبز خیلی کمرنگ */
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 20px;
    border-right: 8px solid var(--ein-green);
}
.ein-intro-header h2 {
    color: #3d6e66;
    font-size: 22px;
    font-weight: 800;
    margin: 0;
}

.ein-intro-text p {
    color: #666;
    line-height: 2.2; /* فاصله خطوط خوانا */
    text-align: justify;
    font-size: 15px;
}

/* گرید و کارنامه ها */
.ein-year-title {
    font-size: 22px;
    color: #444;
    margin-bottom: 25px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    font-weight: 800;
}
.ein-year-title span {
    color: #fab005; /* زرد طلایی */
    font-weight: 900;
    margin-left: 12px;
    font-size: 28px;
    line-height: 1;
}

.ein-reports-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 50px;
}

.ein-report-item {
    position: relative; /* << این خط اضافه شود */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.ein-report-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(87, 167, 152, 0.2);
    border-color: var(--ein-green);
}
/* این کد جدید را بعد از هاور بالا اضافه کنید */
.ein-report-item:hover .ein-report-img-box img {
    filter: brightness(0.9); /* کمی تیره شدن عکس */
    transform: scale(1.05); /* کمی زوم روی عکس */
}

/* این کد را هم برای خود عکس اصلاح کنید تا انیمیشن نرم باشد */
.ein-report-img-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease, filter 0.5s ease; /* << این خط اضافه یا جایگزین شود */
}

/* این کد جدید را اضافه کنید */
.ein-report-img-box {
    position: relative; /* برای قرارگیری دکمه زوم روی آن */
    display: block;
    overflow: hidden;
}

.ein-report-img-box img {
    width: 100%;
    height: auto;
    display: block;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .ein-sidebar-right, .ein-content-left { width: 100%; }
    .ein-reports-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .ein-reports-grid { grid-template-columns: 1fr; }
}

/* اصلاح فرم در سایدبار */
.ein-consult-widget form label { display: none; } /* مخفی کردن لیبل ها برای تمیزی */
.ein-consult-widget input, .ein-consult-widget select {
    border-radius: 5px;
    background: #fdfdfd;
}
.ein-consult-widget button {
    background: var(--ein-green) !important;
    border-radius: 5px !important;
    font-weight: bold;
}
/* --- ساختار کلی سایدبار --- */
.ein-archive-sidebar {
    background: #fff;
    padding: 0;
    border-radius: 15px;
    overflow: hidden; /* جلوگیری از بیرون زدگی */
}

/* --- ویجت فرم مشاوره --- */
.consultation-widget {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 15px;
    overflow: hidden;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* هدر سبز رنگ فرم */
.consultation-header {
    background-color: #5da692; /* رنگ سبز مشابه تصویر */
    padding: 15px;
    text-align: center;
}

.consultation-header h3 {
    color: #fff;
    margin: 0;
    font-size: 16px;
    font-weight: bold;
    font-family: inherit; /* یا فونت ایران سنس/یکان شما */
}

/* بدنه فرم */
.consultation-body {
    padding: 20px;
}

/* استایل اینپوت‌ها و سلکت‌ها */
.ein-consult-form input[type="text"],
.ein-consult-form input[type="tel"],
.ein-consult-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    font-size: 13px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.ein-consult-form input:focus,
.ein-consult-form select:focus {
    border-color: #5da692;
    background-color: #fff;
}

/* دکمه ارسال */
.ein-consult-form button[type="submit"] {
    width: 100%;
    background-color: #5da692;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.ein-consult-form button[type="submit"]:hover {
    background-color: #4a8b7a;
}

/* حذف فلش‌های پیش‌فرض سلکت در برخی مرورگرها برای زیبایی بیشتر */
.ein-consult-form select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235da692' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: left 10px center; /* چپ چین برای فارسی */
    background-size: 16px;
}
/* --- استایل دکمه زوم و لایت‌باکس --- */

/* دکمه زوم (ذره‌بین) */
.ein-zoom-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5); /* شروع کوچک از وسط */
    width: 50px;
    height: 50px;
    background: rgba(87, 167, 152, 0.9); /* رنگ سبز تم شما */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* مخفی در حالت عادی */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* انیمیشن فنری */
    z-index: 10;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    text-decoration: none !important;
}

/* نمایش دکمه زوم هنگام هاور روی کارت */
.ein-report-item:hover .ein-zoom-trigger {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* آیکون ذره‌بین (ساخته شده با CSS خالص) */
.ein-zoom-trigger::before,
.ein-zoom-trigger::after {
    content: '';
    position: absolute;
    background: #fff;
    border-radius: 2px;
}
.ein-zoom-trigger::before { /* خط عمودی */
    width: 2px;
    height: 16px;
}
.ein-zoom-trigger::after { /* خط افقی */
    width: 16px;
    height: 2px;
}


/* --- استایل لایت‌باکس (پاپ‌آپ تصویر) --- */
.ein-modal {
    display: none; /* در حالت عادی مخفی */
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: einFadeIn 0.3s;
}

.ein-modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
    animation: einZoomIn 0.3s;
}

.ein-close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 45px;
    font-weight: 300;
    cursor: pointer;
    z-index: 100001;
    line-height: 1;
    transition: 0.3s;
}
.ein-close-modal:hover { color: #ccc; }

/* انیمیشن‌های باز شدن */
@keyframes einFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes einZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}/* End custom CSS */