/*
Theme Name: Farabegir child Theme
Theme URI: http://faraabegir.ir
Author: Dr Mohsen Sojoudi
Author URI: http://faraabegir.ir
Description: Farabegir Digital Agancy Theme
Version: 1
Template:seosight
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: seosight
*/

/*****************************************************************
Add Custom styles below 
******************************************************************/

/* 1. معرفی فونت به وب‌سایت */
@font-face {
    font-family: 'Vazir';
    src: url('fonts/Vazir.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* 2. اعمال فونت به تمام بخش‌های سایت */
html, body, p, a, h1, h2, h3, h4, h5, h6, span, button, input, select, textarea,.main-slider .slider-content .slider-content-title,
.main-slider .slider-content .slider-content-text,.heading-text {
    font-family: 'Vazir', tahoma, sans-serif !important;
}

/* 3. اصلاح اعداد فارسی (اگر فونت شما نسخه اعداد فارسی دارد) */
.numeric {
    font-feature-settings: "ss01";
}
.logo .logo-text .logo-sub-title {
    margin-top: 5px;
}
.logo img {
    width: 80px;
}
.main-slider .slider-content .slider-content-title,
.main-slider .slider-content .slider-content-text{
	direction: rtl;
}
.slides-item .content .text-wrap .slides-title{
	font-size:24px;
}

/* ظرف کلی سوالات */
#my-custom-faq .rank-math-faq-item {
    background: #ffffff;
    margin-bottom: 20px; /* فاصله بین باکس‌ها */
    border-radius: 15px; /* گردی گوشه‌ها شبیه عکس */
    border: none;
    /* ایجاد سایه نرم و حرفه‌ای */
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.07); 
    overflow: hidden;
    transition: all 0.3s ease;
}

/* حالت هاور برای جذابیت بیشتر */
#my-custom-faq .rank-math-question:hover {
   background: #f1f6f6;
}

/* استایل بخش سوال */
#my-custom-faq .rank-math-question {
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: 700;
    color: #333;
    margin: 0;
	background: #f0f2f2;
    border-radius: 20px;
    margin-bottom: 15px;
}

/* استایل آیکون دایره‌ای نارنجی مشابه عکس */
#my-custom-faq .rank-math-question::before {
    content: "\f060"; /* آیکون فلش */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    margin-left: 15px;
    background: #ff6b35; /* رنگ نارنجی تصویر */
    color: #fff;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    transition: all 0.3s ease;
}

/* استایل بخش پاسخ */
#my-custom-faq .rank-math-answer {
    padding: 0 25px 25px 75px; /* تراز کردن متن با سوال */
    color: #777;
    line-height: 1.8;
    font-size: 15px;
}

.list li .ovh a {
    display: contents;
}

.info-box-text ul {
    text-align: justify;
    padding-top: 10px;
    line-height: 32px;
}

.accordion-heading .icon {
    padding-right: 30px;
    padding-left: unset;
}
.crumina-accordion .accordion-panel .accordion-heading .icon {
    right: 30px;
	left: unset !important;
    transform: scaleX(-1);
}
.crumina-accordion .panel-heading {
    padding-right: 20px;
}

/* Blog Contet */

.single .entry-content p {
    line-height: 40px;
}

.entry-content ul.wp-block-list li, 
.entry-content ol.wp-block-list li {
    padding: 0px;
	font-size: 17px;
}
.entry-content ul.wp-block-list,
.entry-content ol.wp-block-list {
    background: #d3ece40f;
    padding: 20px 35px;
    border-radius: 10px;
    list-style: arabic-indic;
}

.single .entry-content h2 {
    color: #f15b26;
    font-weight: normal;
    background: linear-gradient(88deg, #ff5a1414 30%, #ffffff 70%);
    font-weight: bold;
    font-size: 26px;
    border-radius: 10px;
    padding: 15px 0px 15px 15px;
}
.single .entry-content img{
	border-radius:10px;
}

/* انتخاب لینک‌های محتوا با حذف لیست‌ها و ستون‌های وردپرس */
.single .entry-content a:not(li a):not(.wp-block-column a) {
    text-decoration: none;
    position: relative;
    color: #0073aa; /* رنگ برند شما */
    display: inline-block;
    transition: color 0.3s ease;
}

/* ایجاد خط زیرین (حالت آماده‌باش) */
.single .entry-content a:not(li a):not(.wp-block-column a)::after {
    content: '';
    position: absolute;
    bottom: -2px; /* فاصله مناسب از زیر متن */
    right: 0;
    width: 100%;
    height: 1.5px;
    background-color: rgba(0, 115, 170, 0.1); /* بسیار کمرنگ و محو */
    transform: scaleX(0); /* طول صفر در حالت عادی */
    transform-origin: right; /* نقطه شروع انیمیشن از راست */
    transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

/* انیمیشن پر شدن خط از راست به چپ هنگام هاور */
.single .entry-content a:not(li a):not(.wp-block-column a):hover::after {
    transform: scaleX(1);
    background-color: rgba(0, 115, 170, 1); /* پررنگ شدن کامل خط */
}

/* تغییر رنگ ملایم متن هنگام هاور */
.single .entry-content a:not(li a):not(.wp-block-column a):hover {
    color: #005177;
}

.wp-block-column.has-background {
    padding: 20px;
    border-radius: 10px;
}

.crumina-grid .wp-block-image figcaption, .wp-block-gallery figcaption, .wp-block-video figcaption{
	background-color: #ececec1a !important;
}

div#rank-math-toc ul {
    background: #f8f8ff36;
    color: black;
    line-height: 20px;
    list-style: circle;
	padding: 10px 30px;
}

h3.rank-math-question {
color: black !important;
    border-bottom: 1px solid #e1e1e1;
    margin-bottom: 3px !important;
    line-height: 50px;
    text-align: justify;
    background: #4cc2c02e;
    border-radius: 3px;
    padding-right: 3px;
    font-size: 20px;
}

.rank-math-answer {
    line-height: 28px;
    padding: 5px 10px;
}

/* ۲. استایل FAB Container (برای موقعیت‌دهی) */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
}

/* ۳. استایل FAB اصلی با اعمال انیمیشن */
.fab-main-button {
    width: 150px;
    height: 60px;
	padding:0px;
    border-radius: 12px;
    background-color: #015448; /* رنگ اصلی پالس */
    color: white;
    font-size: 16px;
    border: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* سایه استاندارد */
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: pulse-effect 2s infinite;
}

.fab-main-button:hover {
    background: #000000 !important;
}

/* استایل کانتینر زیردکمه‌ها */
.fab-sub-buttons {
    display: flex;
    flex-direction: column-reverse; /* زیردکمه‌ها را به صورت ستونی مرتب می‌کند */
    align-items: center;
    margin-bottom: 10px; /* فاصله از دکمه اصلی */
    
    /* مخفی کردن اولیه زیردکمه‌ها */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

/* استایل دکمه‌های فرعی */
.fab-sub-button {
    width: 150px;
    padding: 10px 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    color: white;
    border: none;
	font-size:16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0; /* در ابتدا دکمه‌ها را شفاف می‌کند */
}
.fab-sub-button.action-1{
	background-color: #000000; /* خاکستری */
}
.fab-sub-button.action-2{
	background-color: #f4662f; /* خاکستری */
}
.fab-sub-button.action-3{
	background-color: #800080; /* خاکستری */
}
/* حالت فعال (برای نمایش زیردکمه‌ها) */
.fab-container.active .fab-main-button {
    transform: scale(1.1); /* برای تبدیل + به X */
}

.fab-container.active .fab-sub-buttons {
    max-height: 200px; /* ارتفاع بیشتر از مجموع ارتفاع زیردکمه‌ها برای نمایش */
}

.fab-container.active .fab-sub-button {
    opacity: 1; /* زیردکمه‌ها را نمایان می‌کند */
}


@media (max-width: 480px) {
    .header .logo {
        margin: 0 auto 0px !important;
    }
}

/* استایل ویجت مطالب دسته بخصوص */
.category-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.post-categories a {
    display: contents !important;
}
li.category-post-item {
    border: 2px solid #f4f5f6;
    padding: 10px;
    border-radius: 25px;
}
.category-post-item {
    display: flex;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}
.post-thumbnail {
    flex: 0 0 80px;
    margin-left: 15px;
}
.post-thumbnail img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}
.post-content {
    flex: 1;
}
.post-content h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    line-height: 1.4;
}
.post-content h4 a {
    text-decoration: none;
    color: #333;
}
.post-date {
    display: block;
    font-size: 12px;
    color: #999;
}
.view-all {
    margin-top: 10px;
    text-align: left;
}
.view-all a {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
}

.crumina-module-posts-slider-saas .crumina-case-item .case-item__titlecont {
    text-align: right;
}

.crumina-module-posts-slider-saas .crumina-case-item .case-item__arrow {
    left: 0;
    transform: scaleX(-1);
}
.crumina-module-posts-slider-modern .crumina-case-item .case-item__cat a {
    color: #464b52;
}

.crumina-module-posts-slider-saas .crumina-case-item .case-item__title {
    color: #4cc2c0;
}
.crumina-heading .read-more{
	float:left;
}

input#wpforms-3314-field_1::placeholder {
    color: #a5a5a5;
}
input#wpforms-3314-field_1 {
    background-color: #373434;
    padding: 30px 20px;
    border-radius: 0px 20px 20px 0px;
	color:white;
}
button#wpforms-submit-3314 {
    background-color: #3cb879;
    text-decoration: none;
    padding: 20px 30px 35px 30px;
    color: #fff;
    border-radius: 50px;
    position: relative;
    transition: all .3s ease;
    text-align: center;
    border-color: transparent;
}
.wpforms-submit-container {
    text-align: center;
}
