﻿

.footer-icons {
    border: 1px solid #ffffff;
    border-radius: 50%;
    padding-left: 7px;
    padding-right: 7px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-left: 7px;
}

    .footer-icons:hover {
        color: #222222;
        background: #ffffff;
        transition-duration: 0.6s;
    }


.link-github {
    color: #ffffff;
    font-size: 2rem;
}

    .link-github i {
        color: #ffffff;
        border-radius: 50%;
        padding-right: 2px;
        padding-left: 2px;
    }

    .link-github:hover i {
        color: #222222;
        background-color: #ffffff;
        transition-duration: 0.5s;
    }

.link-instagram {
    color: #ffffff;
    font-size: 2rem;
    margin-right: 10px
}

    .link-instagram:hover i {
        color: #cb21bc;
        transition-duration: 0.5s;
    }

.link-telegram {
    color: #ffffff;
    font-size: 1.6rem;
    margin-right: 10px;
}

    .link-telegram:hover i {
        color: #357afd;
        transition-duration: 0.5s;
    }

.link-bale {
    margin-right: 2px;
}

    .link-bale img {
        width: 2rem;
        margin-top: -10px;
        color: #ffffff;
        filter: brightness(0) invert(1);
    }

    .link-bale:hover {
        filter: invert(34%) sepia(93%) saturate(2242%) hue-rotate(87deg) brightness(98%) contrast(102%);
    }

.link-rubika {
    display: block;
    margin-left: 18px;
}

    .link-rubika img {
        width: 8rem;
    }

@media (max-width: 576px) {
    .xs-text-center {
        text-align: center !important;
    }

    .link-rubika {
        margin-left: 0px;
    }
}


.nav-link {
    position: relative;
    color: black;
    transition: color 0.5s;
    list-style: none;
}

    .nav-link::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 0;
        height: 2px;
        /*background-color: #357afd;*/ /* رنگ خط */
        background-color: #ffffff; /* رنگ خط */
        transition: width 0.3s;
    }

    .nav-link:hover:not(.active) {
        color: #007bff;
    }

        .nav-link:hover:not(.active)::after {
            width: 100%;
        }

    /* جلوگیری از خط زیر li فعال */
    .nav-link.active::after {
        display: none;
    }


nav.fixed-top .nav-item .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 2px;
    background-color: #000000; /* رنگ خط */
    transition: width 0.3s;
}

nav.fixed-top .nav-item .nav-link:hover:not(.active) {
    color: #007bff;
}

    nav.fixed-top .nav-item .nav-link:hover:not(.active)::after {
        width: 100%;
    }

/* جلوگیری از خط زیر li فعال */
nav.fixed-top .nav-item .nav-link.active::after {
    display: none;
}


.tet-justify {
    text-align: justify !important;
}

.btn-border-round {
    border-radius: 30px !important;
}

.btn-resume {
    width: fit-content !important;
    height: fit-content !important;
    text-align: center !important;
    float: left !important;
    margin-top: -10px !important;
}
.btn-resume:focus{
    color:#ffffff;
}

.expert-img{
    width:50px !important;
}

.progress-container {
    width: 100%;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    height: 15px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #7B2CBF, #3AB0FF);
    width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
}

.tooltip {
    position: absolute;
    top: -2rem;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.progress-bar:hover .tooltip {
    opacity: 1;
}

nav.navbar2 {
    width: 100%;
    top: 0;
    z-index: 999;
    -webkit-transition: all .5s ease;
    -o-transition: all .5s ease;
    transition: all .5s ease;
}

nav.navbar2 .logo {
    font-size: 22px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #000000;
    font-family: Vazir;
}

.navbar2 .container, .navbar .container-fluid, .navbar .container-lg, .navbar .container-md, .navbar .container-sm, .navbar .container-xl {
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-pack: justify;
    justify-content : space-between;
}
nav.navbar2 .nav-item:first-child {
    padding-left: 0px;
}

nav.navbar2 .nav-item {
    font-size: 13px;
    font-weight: 400;
    padding-right: 13px;
    padding-left: 13px;
    color: rgb(255, 255, 255);
    text-transform: uppercase;
}

nav.navbar2 .nav-item .nav-link {
    color: rgb(255, 255, 255);
    position: relative;
    text-decoration: none;
    padding: 0px;
}

.text-primary{
    color:#007bff !important;
}

.underline{
    text-decoration:underline!important;
}





.blog-img {
    height: 250px;
  
}

    .blog-img img {
        height:250px;
       /* object-fit: cover;  برش هوشمند تصویر بدون تغییر نسبت 
        object-position: center;  موقعیت تصویر 
        display: block;*/
    }

.index-blog-body {
    height:175px;
    text-align:justify;
    direction:rtl;
}
.index-blog-title{
    height:50px;
    line-height:1.5;
    margin-top:-20px;
}

.blog-content {
    height: 330px;
}

.blog-item{
    direction:rtl;
}

.blog-meta .date{
    display:block;
}

@media (max-width: 1200px) {

    .blog-content {
        height:355px;
    }
    .index-blog-body {
        height: 200px;
    }
}

@media (max-width: 768px) {

    .blog-content {
        height: 430px;
    }

    .index-blog-body {
        height: 250px;
    }
}
@media (max-width: 480px) {
   
}




.pr-50 {
    padding-right:50px;
}
.pl-50{
    padding-left:50px;
}


.single-blog-section {
    background-color: #ffffff;
}

.single-blog-titr {
    font-size: 1.6rem !important;
    font-weight: bold !important;
}


.single-title-header {
    display: flex;
    align-items: center; /* وسط‌چین عمودی همه آیتم‌ها */
    justify-content: space-between; /* یا start یا center بسته به طراحی */
    flex-wrap: wrap; /* در موبایل بشکنه */
    gap: 16px;
}

.single-blog-info {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
    align-items: center;
    border-bottom: 1px solid #e9e4e4;
    padding-bottom: 7px;
    margin-bottom:15px;
    width:100%;
}

    .single-blog-info i {
        margin-left: 6px;
        color: #777;
    }


.single-blog-image {
    max-width: 100%;
    height: auto;
    width: 400px;
    display: inline-block;
    float: right;
    margin-left: 15px;
}
.single-blog-content{
    display:inline-block;
    text-align:justify;
    float:right;
    color:#000000;
}

.single-blog-container {
    margin-left: auto;
    margin-right: auto;
    padding-left: 100px;
    padding-right: 100px;
    width: 100%;
    max-width: 1200px; /* حداکثر عرض در مانیتورهای بزرگ */
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .single-blog-container {
        padding-left: 12px;
        padding-right: 12px;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .single-blog-container {
        padding-left: 8px;
        padding-right: 8px;
    }
}

.single-blog-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* فاصله بین تگ‌ها */
}

.single-blog-tag {
    background-color: #f0f0f0;
    color: #333;
    padding: 4px 10px;
    border-radius: 2px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

    .single-blog-tag:hover {
        background-color: #ddd;
    }


.comments-section {
    margin-top: 40px;
    padding: 16px;
    border-top: 2px solid #eee;
}

.comment {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 0.9rem;
    color: #555;
}

.comment-author {
    font-weight: bold;
    color: #333;
}

.comment-date {
    font-style: italic;
    color: #999;
}

.comment-body {
    font-size: 1rem;
    line-height: 1.6;
    color: #222;
}





/* استایل‌های بخش نمونه‌کارها */
.portfolio {
    padding: 100px 0 70px;
    direction: rtl;
}

.heading {
    margin-bottom: 50px;
    text-align: center;
}

    .heading h6 {
        font-size: 16px;
        color: #666;
        text-transform: uppercase;
        margin-bottom: 10px;
    }

    .heading h2 {
        font-size: 36px;
        font-weight: 700;
        margin-bottom: 0;
    }

/* استایل‌های فیلتر */
.portfolio-filter {
    margin-bottom: 40px;
}

    .portfolio-filter ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
    }

    .portfolio-filter li {
        margin: 5px 10px;
        padding: 10px 20px;
        cursor: pointer;
        font-size: 16px;
        transition: all 0.3s ease;
        border-radius: 25px;
        background: #f5f5f5;
    }

        .portfolio-filter li:hover,
        .portfolio-filter li.sel-item {
            background: #6c63ff;
            color: #fff;
        }

/* استایل‌های شبکه */
.portfolio-grid {
    width: 100%;
}

.work-card {
    width: 33.33%;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 0px;
}

.card-inner {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    height: 250px; /* ارتفاع ثابت برای همه کارت‌ها */
    margin: 0; /* حذف حاشیه‌های احتمالی */
}

.card-front {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

    .card-front img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover; /* تصویر کل فضا را پر می‌کند */
        object-position: center; /* تصویر از مرکز تنظیم می‌شود */
        transition: transform 0.3s ease;
    }

    .card-front::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.4); /* لایه تیرگی نیمه‌شفاف */
        transition: opacity 0.3s ease;
        z-index: 1; /* بالای تصویر، زیر card-back */
    }

.card-inner:hover .card-front::before {
    opacity: 0; /* حذف تیرگی هنگام هاور */
}

.card-back {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(108, 99, 255,0.9);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

    .card-back h6 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    .card-back p {
        font-size: 14px;
        margin-bottom: 15px;
    }

    .card-back .icons .icon {
        font-size: 20px;
        color: #fff;
        margin: 0 10px;
    }

.card-inner:hover .card-back {
    opacity: 1;
}

.card-inner:hover .card-front img {
    transform: scale(1.1);
}

/* طراحی ریسپانسیو */
@media (max-width: 991px) {
    .work-card {
        width: 50%;
    }

    .card-inner {
        height: 250px; /* ارتفاع برای تبلت */
    }
}

@media (max-width: 576px) {
    .work-card {
        width: 100%;
    }

    .card-inner {
        height: 200px; /* ارتفاع برای موبایل */
    }

    .heading h2 {
        font-size: 28px;
    }

    .portfolio-filter li {
        font-size: 14px;
        padding: 8px 15px;
        margin: 5px;
    }
}




.blog-button .main-btn,
.about-button .main-btn,
.single-blog-container .main-btn {
    background-color: #6c63ff; /* رنگ اصلی */
    color: #fff; /* متن سفید */
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    border: none; /* حذف بوردر سیاه */
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

    .blog-button .main-btn:hover,
    .about-button .main-btn:hover,
    .single-blog-container .main-btn:hover {
        background-color: #514ed0; /* رنگ تیره‌تر هنگام هاور */
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }













.blog-item {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin: 20px; /* افزایش فاصله بین کارت‌ها */
    width: 100%;
    display: inline-block;
}
    .blog-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 10px rgba(0,0,0,0.15);
    }

.blog-img img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

    .blog-img img:hover {
        transform: scale(1.05);
    }

.blog-content {
    padding: 20px;
}

.index-blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #333;
}

.index-blog-body {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #888;
}

    .blog-meta a {
        color: #6c63ff;
        font-weight: 600;
        text-decoration: none;
    }

        .blog-meta a:hover {
            text-decoration: underline;
        }

.blog-button .main-btn {
    background-color: #6c63ff;
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

    .blog-button .main-btn:hover {
        background-color: #514ed0;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    }

/* Owl Carousel تنظیمات */
.owl-carousel .blog-item {
    display: inline-block;
    width: auto; /* کارت اجازه می‌دهد Carousel خودش عرض را تنظیم کند */
}

/* کارت وبلاگ */
.blog-item {
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    margin: 0 7.5px; /* نصف فاصله سمت راست و چپ */
    width: 100%; /* همیشه کل عرض owl-item */
}

/* فاصله بین آیتم‌ها داخل Carousel */
.owl-carousel .owl-stage-outer {
    padding: 0 15px; /* مجموع فاصله 15px بین کارت‌ها */
}

/* تصویر کارت */
.blog-img img {
    width: 100%;
    border-radius: 20px 20px 0 0;
}

/* محتوای کارت */
.blog-content {
    padding: 20px;
}

/* عنوان */
.index-blog-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* متن خلاصه */
.index-blog-body {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* دکمه مطالعه بیشتر */
.blog-content .more a {
    color: #6c63ff;
    font-weight: 600;
    text-decoration: none;
}
