/*
Theme Name: EDigital Child
Theme URI:  https://tahlilamar.com
Description: Child theme for EDigital — place to override templates & styles
Author: Mohsen Akbari
Template: edigital
Version: 1.0.0
Text Domain: edigital-child
*/

/* اینجا می‌توانی CSS سفارشی سایت را قرار بدهی */






/* استایل پیام محصولات محدود در صفحه رسید */
.ta-restricted-success {
    margin: 22px 0;
}

.ta-restricted-success-inner{
    display:flex;
    gap:18px;
    align-items:center;
    background: linear-gradient(180deg,#ffffff,#fbfbff);
    border:1px solid rgba(43,109,230,0.12);
    padding:18px;
    border-radius:12px;
    box-shadow: 0 8px 24px rgba(17,24,39,0.04);
}

.ta-restricted-icon{
    width:64px;
    height:64px;
    border-radius:50%;
    background: linear-gradient(180deg,#2b6de6,#6a9cff);
    display:flex;
    align-items:center;
    justify-content:center;
    color:#fff;
    font-weight:700;
    font-size:26px;
    flex-shrink:0;
}

.ta-restricted-text h3{
    margin:0 0 6px 0;
    font-size:17px;
    color:#111827;
}

.ta-restricted-text h3 span{
    color:#2b6de6; /* آموزش‌های من برجسته */
    font-weight:800;
}

.ta-restricted-text p{
    margin:0;
    color:#555;
}

.ta-restricted-cta .ta-restricted-button{
    display:inline-block;
    padding:10px 16px;
    border-radius:10px;
    background:#2b6de6;
    color:#fff;
    font-weight:700;
    text-decoration:none;
    transition: transform .15s ease, box-shadow .15s ease;
}

.ta-restricted-cta .ta-restricted-button:hover{
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(43,109,230,0.18);
}

/* واکنش‌گرایی موبایل */
@media (max-width:720px){
    .ta-restricted-success-inner{
        flex-direction:column;
        align-items:flex-start;
    }
    .ta-restricted-cta{ width:100%; display:flex; justify-content:flex-start;}
}



























/* فرم ثبت‌نام EDD */
.edd-register-wrapper {
    font-family: Tahoma, sans-serif;
    max-width: 450px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    direction: rtl;
}

/* پیام خوش آمد */
.welcome-box {
    background: #90c847;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}

.welcome-box h2 {
    color: #fff;
    font-weight: bold;
    margin: 0;
    font-size: 18px;
}

/* فیلدهای فرم */
.edd-register-wrapper fieldset p {
    margin-bottom: 15px;
}

.edd-register-wrapper input[type="text"],
.edd-register-wrapper input[type="email"],
.edd-register-wrapper input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
}

/* فیلد رمز با آیکون چشم */
.password-field {
    position: relative;
}

.password-field {
    position: relative;
}

.password-field input {
    width: 100%;
    padding-left: 40px; /* فضای کافی برای چشم */
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    left: 10px;           /* فاصله از سمت چپ */
    top: 70%;             /* وسط ورودی */
    transform: translateY(-50%); /* دقیق وسط عمودی */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i.fa-eye {
    font-size: 18px;
    color: #555;
}


/* دکمه‌ها */
/* دکمه‌ها - نسخه حرفه‌ای هماهنگ با فرم ورود */
/* ===== فرم ثبت‌نام EDD ===== */
.edd-register-wrapper {
    font-family: Tahoma, sans-serif;
    max-width: 450px;
    margin: 30px auto;
    padding: 25px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border-radius: 15px;
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    direction: rtl;
}

/* ===== پیام خوش آمد ===== */
.welcome-box {
    background: #90c847;
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
    text-align: center;
}
.welcome-box h2 {
    color: #fff;
    font-weight: bold;
    margin: 0;
    font-size: 18px;
}

/* ===== فیلدهای فرم ===== */
.edd-register-wrapper fieldset p {
    margin-bottom: 15px;
}

.edd-register-wrapper input[type="text"],
.edd-register-wrapper input[type="email"],
.edd-register-wrapper input[type="password"] {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    box-sizing: border-box;
    font-family: Tahoma;
}

/* ===== فیلد رمز عبور با چشم ===== */
.password-field {
    position: relative;
}
.password-field input {
    width: 100%;
    padding-left: 40px;
    box-sizing: border-box;
}

.toggle-password {
    position: absolute;
    left: 10px;             
    top: 70%;                /* طبق درخواست شما بدون تغییر */
    transform: translateY(-50%);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-password i.fa-eye {
    font-size: 18px;
    color: #555;
}

/* ===== دکمه‌ها (ورود + ثبت‌نام) ===== */
.submit-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

/* استایل مشترک دکمه‌ها */
.register-btn,
.login-btn {
    height: 48px;
    width: 48%;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.25s ease;
    box-sizing: border-box;
    font-family: Tahoma;
    text-decoration: none;
}

/* دکمه ثبت نام */
.register-btn {
    background: #90c847;
    border: 2px solid #90c847;
    color: #fff;
}
.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* دکمه ورود */
.login-btn {
    background: #6c757d;
    border: 2px solid #6c757d;
    color: #fff;
}
.login-btn:hover {
    background: #5a6268;
    border-color: #5a6268;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ===== دکمه ثبت‌نام EDD (input) ===== */
.edd-register-wrapper .edd-submit {
    height: 48px !important;
    width: 48%;
    background: #90c847 !important;
    color: #fff !important;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: 0.25s ease;
    font-family: Tahoma;
    font-size: 15px;
}
.edd-register-wrapper .edd-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* ===== متن‌های پایین فرم ===== */
.already-registered {
    color: red;
    font-size: 12px;
    text-align: center;
    margin-top: 10px;
}

.forgot-password {
    text-align: center;
    margin-top: 15px;
}
.forgot-password a {
    color: #007bff;
    text-decoration: none;
}
.forgot-password a:hover {
    text-decoration: underline;
}

/* ===== استایل فرم ورود EDD نیز هماهنگ شد ===== */
#edd_login_form .register-btn,
#edd_login_form .login-btn {
    height: 48px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: bold;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 48%;
    cursor: pointer;
    transition: all 0.25s ease;
}

/* دکمه ورود (سبز) */
#edd_login_form .register-btn {
    background: #90c847;
    color: #fff;
    border: none;
}

/* Hover */
#edd_login_form .register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* دکمه ثبت‌نام (خاکستری) */
#edd_login_form .login-btn {
    background: #6c757d;
    color: #fff;
}

/* Hover */
#edd_login_form .login-btn:hover {
    color: #90c847;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}
































/* کانتینر کلی پروفایل */
.um-profile-custom-container {
    display: flex;
    flex-direction: column;
    margin: -10px auto;
    max-width: 1200px;
}

/* پیام خوشامدگویی */
.um-welcome-box {
    width: 100% !important;
    background-color: #90c847 !important;
    color: #fff !important;
    text-align: center !important;
    padding: 33px 0 !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    margin-bottom: 20px !important;
    height: 100px !important;
    line-height: 2.5rem !important;
}

/* Wrapper منو و بدنه اصلی */
.um-profile-content-wrapper {
    display: flex;
    gap: 20px;
}

/* منوی سمت راست */
.um-profile-sidebar {
    width: 220px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.um-profile-sidebar .um-sidebar-btn {
    display: block;
    padding: 10px 14px;
    background-color: #f8f9fa;
    color: #333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: 0.3s;
}

.um-profile-sidebar .um-sidebar-btn:hover {
    background-color: #0d6efd;
    color: #d9f0ff;
}

/* بدنه اصلی */
.um-profile-main {
    flex: 1;
    background-color: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

/* کادر دوره‌ها */
.um-courses-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

/* عنوان بخش دوره‌ها */
.um-profile-main h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    border-bottom: 2px solid #0d6efd;
    padding-bottom: 8px;
}

/* ریسپانسیو موبایل */
@media(max-width: 900px) {
    .um-profile-content-wrapper {
        flex-direction: column;
    }
    .um-profile-sidebar {
        width: 100%;
        flex-direction: row;
        overflow-x: auto;
    }
    .um-profile-sidebar .um-sidebar-btn {
        flex: 0 0 auto;
    }
}





























/* ============================================================
   استایل گرید آموزش‌های من
=============================================================== */

.my-courses-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* چهار آموزش در هر ردیف */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    direction: rtl;
    font-family: Tahoma, sans-serif;
}

/* === آیتم هر آموزش === */
.mc-item {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mc-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

/* === لینک داخل هر آیتم === */
.mc-link {
    color: #222;
    text-decoration: none;
    display: block;
    text-align: center;
}

/* === تصویر شاخص === */
.mc-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

/* === عنوان آموزش === */
.mc-title {
    font-size: 15px;
    font-weight: 600;
    padding: 12px 8px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* === پیام‌های هشدار / بدون دوره === */
.mc-alert {
    padding: 12px 16px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 8px;
    max-width: 650px;
    margin: 20px auto;
    font-family: Tahoma, sans-serif;
    direction: rtl;
}

/* ============================================================
   ریسپانسیو برای موبایل و تبلت
=============================================================== */

@media (max-width: 1024px) {
    .my-courses-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .my-courses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .my-courses-grid {
        grid-template-columns: 1fr;
    }
}






















/* ============================
/* ============================
   کارت محصول EDD – نسخه اصلاح شده
 /* ============================
   این قسمت برای برگه های پرسشنامه ها و ویدیوهای اموزشی و داده های بورسی و مبانی نظری استایل مناسب خواهد داشت
   ============================ */

/* کادر کلی محصول */
.edd_download_inner {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    padding: 15px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

/* hover */
.edd_download_inner:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* ======================================
   1) یکسان‌سازی اندازه تصویر
   ====================================== */
.edd_download_inner .edd_download_image {
    width: 100%;
    height: 200px;  /* ارتفاع ثابت برای تمام تصاویر */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.edd_download_inner .edd_download_image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* تصویر دقیقاً اندازه کادر می‌شود */
    display: block;
}

/* ======================================
   2) حذف توضیحات زیر پرسشنامه
   ====================================== */
.edd_download_inner .edd_download_excerpt {
    display: none !important;
}

/* عنوان محصول */
.edd_download_inner .edd_download_title {
    margin: 15px 0 10px !important;
    text-align: center;
    min-height: 48px; /* هم‌اندازه شدن عنوان‌ها */
}

.edd_download_inner .edd_download_title a {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    display: block;
    line-height: 1.4;
}

/* دکمه خرید همیشه پایین */
.edd_purchase_submit_wrapper {
    margin-top: auto !important;
}

/* دکمه خرید */
.edd_download_inner .edd-add-to-cart {
    width: 100%;
    border-radius: 10px !important;
    padding: 12px 0 !important;
    font-size: 14px;
    font-weight: 600;
}

/* واکنش‌گرا */
@media (max-width: 480px) {
    .edd_download_inner .edd_download_image {
        height: 170px;
    }
}





























/* -----------------------------
   فرم بازیابی رمز عبور
------------------------------ */
/* -----------------------------
   فرم بازیابی رمز عبور
------------------------------ */

.fp-wrapper {
    max-width: 400px;
    margin: 40px auto;
    background: #ffffff;
    padding: 25px 30px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0,0,0,0.08);
    font-family: inherit;
}

.fp-wrapper h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

.fp-wrapper label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
}

.fp-wrapper input[type="text"],
.fp-wrapper input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: 0.2s;
}

.fp-wrapper input[type="text"]:focus {
    border-color: #0088ff;
    box-shadow: 0 0 5px rgba(0,136,255,0.3);
}

.fp-wrapper input[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #90c847;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.fp-wrapper input[type="submit"]:hover {
    background: #006edc;
}

/* باکس‌های پیام موفقیت و خطا */
.fp-box {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 14px;
}

.error-msg {
    background: #ffe5e5;
    color: #c30000;
    border: 1px solid #ffb3b3;
}

.success-msg {
    background: #e5ffe9;
    color: #008f2f;
    border: 1px solid #99ffb0;
}









/* استایل سرویس ها در صفحه نخت( باکس های مخصولات پیشنهادی و کلیه محصولاتی که در صفحه نخست هستش با این کار میکند توج کنید این فایل فق روی کلاس این محصولات انجام شده و هیچ فایلی در فاکشن پی اپ پی ندارد) */
/* استایل سرویس ها در صفحه نخست - کارت هم اندازه با پس‌زمینه سبز کم رنگ */
.single-post-wrapper.mt-column-3 {
    background-color: #dff5e0;       /* پس‌زمینه سبز خیلی کم رنگ */
    border: 2px solid #b6e0a1;       /* حاشیه مشخص */
    border-radius: 12px;             
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 400px;                  /* ارتفاع ثابت کارت */
}

.single-post-wrapper.mt-column-3:hover {
    background-color: #c8ebc0;       
    box-shadow: 0 12px 25px rgba(0,0,0,0.25); 
    transform: translateY(-5px) scale(1.05); 
}

.single-post-wrapper.mt-column-3 .img-holder {
    flex: 0 0 auto;
    height: 180px;                   /* ارتفاع ثابت تصویر */
    overflow: hidden;
    margin-bottom: 15px;
    border-radius: 12px;
    background-color: #d0f0c0;       /* پس‌زمینه تصویر در صورت کوچک بودن */
}

.single-post-wrapper.mt-column-3 .img-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;               /* تصویر داخل کادر بزرگ می‌شود و برش می‌خورد */
    transition: transform 0.3s ease;
}

.single-post-wrapper.mt-column-3 .post-title {
    font-size: 16px;
    color: #1a4d1a;
    margin: 5px 0 10px 0;
    flex: 0 0 auto;
}

.single-post-wrapper.mt-column-3 .service-content {
    flex: 1 1 auto;
    display: none;  /* این کد متن را مخفی می‌کند */
}

.single-post-wrapper.mt-column-3 .service-content p {
    font-size: 14px;
    color: #333;
    line-height: 1.5;
    overflow: hidden;
}









/* متن توضیحات در صفحه نخست -(متن چرا تحلیل آمار... این در گوشی از کنارها میزد بیرون و در موبایل اکی نبود این درستش کرد) ریسپانسیو */
.section-info {
    word-wrap: break-word;     /* متن طولانی می‌شکند */
    overflow-wrap: break-word; /* پشتیبانی بیشتر */
    line-height: 1.6;          /* فاصله بین خطوط */
    font-size: 14px;
    color: #333;
    text-align: justify;        /* متن منظم داخل کادر */
    max-width: 100%;           /* از عرض کارت بیشتر نمی‌شود */
    box-sizing: border-box;    /* شامل padding و border شود */
}












/* ساختار کلی سه کادر فوتر( فوتر با این استایل کار میکن)  */
/* ساختار کلی سه کادر */
.custom-footer-container {
    display: flex;
    justify-content: space-between;
    gap: 20px; /* فاصله بین کادرها */
    width: 80%; /* پهنای کل ردیف 80٪ */
    margin: 0 auto;
    padding: 30px 20px;
    background-color: #000000; /* بک گراند سیاه کلی */
    color: #ffffff;
    flex-wrap: wrap;
}

.footer-box {
    flex: 1;
    min-width: 200px;
    background-color: #1c2326; /* بک گراند کادرها */
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    text-align: center;
}

.footer-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.footer-box-title {
    text-align: center;
    margin-bottom: 10px;
    font-size: 18px;
    color: #ffffff;
}

/* خط زیر عنوان */
.footer-box-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 2px;
    background-color: #2a7d2a;
    margin: 8px auto 0 auto; /* زیر عنوان قرار گیرد */
}

.footer-box-text {
    line-height: 1.5;
    font-size: 14px;
    color: #ffffff;
}

.footer-box a {
    color: #2a7d2a;
}

@media (max-width: 900px) {
    .custom-footer-container {
        flex-direction: column;
        width: 95%;
    }
}















/* کل فرم دیدگاه */
.comment-form {
    background-color: #f9f9f9;  /* پس‌زمینه روشن */
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 12px;
    max-width: 700px;
    margin: 20px auto;
}

/* فاصله بین فیلدها */
.comment-form p {
    margin-bottom: 15px;
}

/* برچسب‌ها (label) */
.comment-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
}

/* فیلدهای ورودی و textarea */
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

/* چک‌باکس و متن توضیح کنار هم */
.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px; /* فاصله بین چک‌باکس و متن */
    font-size: 14px;
     display: none !important;
}

/* دکمه ارسال */
.comment-form .submit {
    background-color: #4CAF50;
    color: white;
    padding: 10px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s ease;
}

.comment-form .submit:hover {
    background-color: #45a049;
}












/*  از بین بردن یک محصول  در یک کادر زشت در زیر نوشته ها یا محصولات */

.nav-links {
    display: none !important;
}












