/* اصلی */
span.title-span{
    color: #77DD77;
    font-size: 16px;
    font-weight: 700;
    direction: ltr;
    display: block;
}
span.title-span::after {
    content: "";
    display: inline-block;
    background: url("../images/title-span.png") no-repeat center center;
    background-size: contain; /* میشه cover هم بذاری */
    width: 33px;
    height: 17px;
    margin-left: 5px;
    position: relative;
    top: 5px;
}
section.single-services{
    background: url("../images/single-services.svg");
    padding-top: 20px;
    background-size: contain;
    height: 500px;
    background-repeat: no-repeat;
    background-position-y: -10px;
}
section.single-services .content{
    padding-top: 100px;
    text-align: right;
    color: #fff;
}
section.single-services .content h1{
    font-size: 48px;
    font-weight: 700;
    line-height: 28px;
    margin-bottom: 24px;
}
section.single-services .content p{
    line-height: 34px;
    margin-bottom: 40px;
    text-align: justify;
    direction: rtl;
    margin-top: 44px;
}
section.single-services .badg{
    position: absolute;
    top: -24px;
    z-index: 1;
    right: -18px;
    width: 81px;
}
section.single-services .carousel-indicators {
    bottom: -50px;
}
section.single-services .carousel-indicators [data-bs-target] {
    width: 20px;
    opacity: 1;
}
section.single-services .carousel-indicators .active {
    opacity: 1;
    background-color: #7D7;
    width: 40px !important;
}
section.single-services .content a:last-child{
    background: #7D7;
    color: #0A315B;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    width: 130px;
    display: inline-flex;
    justify-content: center;
}
section.single-services .content a {
    background: transparent;
    color: #7D7;
    text-decoration: none;
    padding: 10px;
    border-radius: 10px;
    width: 130px;
    display: inline-flex;
    justify-content: center;
    border: 1px solid;
    margin-left: 24px;
}

/* ریسپانسیو برای تبلت */
@media (max-width: 991px){
    section.single-services{
        height: auto;
        padding: 40px 20px;
        background-position-y: 0;
    }
    section.single-services .content{
        padding-top: 40px;
    }
    section.single-services .content h1{
        font-size: 36px;
        line-height: 32px;
        margin-bottom: 16px;
    }
    section.single-services .content p{
        font-size: 16px;
        line-height: 28px;
        margin-top: 20px;
        margin-bottom: 24px;
    }
    section.single-services .badg{
        width: 60px;
        top: -12px;
        right: -12px;
    }
    section.single-services .content a,
    section.single-services .content a:last-child{
        width: 110px;
        padding: 8px;
        font-size: 14px;
    }
}
section.single-project{
    margin-top: 44px;
}
section.single-project h2{
    color: #104E92;
    font-size: 28px;
    margin-top: 20px;
    font-weight: 700;
}
section.single-project p{
    font-size: 16px;
    font-weight: 400;
    color:#6A6A6A ;
    text-align: justify;
    direction: rtl;
    line-height: 28px;
    margin-top: 20px;
}
section.single-project ul{
    direction: rtl;
    padding-right: 22px;
    border-right: 2px solid #7D7;
    line-height: 30px;
    color: #6A6A6A;
}
section.single-project div.images{
    margin-top: 16px;
}
section.portfolio{
    margin-top: 64px;
    background: #F8F8F8;
    padding-top: 64px;
}
section.portfolio h2{
    font-size: 28px;
    font-weight: 700;
    color: #104E92;
    margin-top: 20px;
    margin-bottom: 64px;
}
section.portfolio .portfolio-content ul{
    display: flex;
    list-style: none;
    direction: rtl;
    justify-content: center;
}
section.portfolio .portfolio-content ul li{
    margin-left: 24px;
}
section.portfolio .portfolio-content ul li:last-child{
    margin-left: 0;
}
section.portfolio .portfolio-content a.btn-success{
    margin-top: 43px;
    background: transparent;
    color: #B8B8B8;
    border: 1px solid #B8B8B8;
}
section.portfolio .portfolio-content a.btn-success.active{
    margin-top: 43px;
    background: #77DD77;
    color: #fff;
    border: none;
}
section.portfolio .portfolio-content a.item{
    margin-bottom: 16px;
    display: inline-flex;
}
section.portfolio a.btn-success{
    margin-top: 43px;
    background: #77DD77;
    border: none;
}
.item-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px; /* مثل عکس نمونه */
}

.item-wrapper img {
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 20px;
}

.item-wrapper:hover img {
    transform: scale(1.03);
}

.item-wrapper .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(to top, rgba(16, 78, 146, 0.9), rgba(16, 78, 146, 0) 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 15px;
}

.item-wrapper:hover .overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    direction: rtl;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    color: #fff;
}

.overlay-content h4 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    border-right: 3px solid #91E391;
    padding-right: 10px;
}

.overlay-btn {
    background: #7ed957; /* همون سبز نمونه */
    color: #104E92;
    padding: 8px 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    transition: background 0.3s ease;
}

.overlay-btn:hover {
    background: #6ec94a;
}
section.brand{
    margin-top: 64px;
    position: relative;
}
section.brand h2{
    color: #115296;
    font-size: 28px;
    font-weight: bold;
    margin-top: 16px;
    margin-bottom: 40px;
}
section.brand .owl-nav {
    position: absolute;
    top: -59%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: left;
    transform: translateY(-50%); /* عمودی وسط چین */
}

section.brand .owl-nav button.owl-prev,
section.brand .owl-nav button.owl-next {
    font-size: 0 !important; /* حذف متن پیش فرض */
    background: none !important;
    border: none !important;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
}

section.brand .owl-nav button.owl-prev {
    background-image: url("../images/arrow-left.png") !important;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat !important;

}

section.brand .owl-nav button.owl-next {
    background-image: url("../images/arrow-right.png") !important;
    width: 60px;
    height: 60px;
    background-repeat: no-repeat !important;
}
section.about-us{
    margin-top: 40px;
}
section.about-us div.why{
    background: linear-gradient(270deg, #057FD7, #40BFFF, #2BC3D2, #55D555);
    border-radius: 8px;
}
section.about-us div.why div{
    text-align: center;
    border: 1px solid #fff;
    border-top: 0;
    border-bottom: 0;
    padding: 16px;
}
section.about-us div.why div h2{
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    text-align: right;
    direction: rtl;
}
section.about-us div.why span{
    font-size: 48px;
    color: #fff;
    margin-bottom: 16px;
    display: block;
    text-align: center;
}
section.about-us div.why p{
    font-size: 20px;
    color: #fff;
    text-align: center;
}
section.about-us div.why span.why-span{
    font-size: 27px !important;
    color: #000;
    font-weight: 900;
    direction: rtl;
    text-align: right;
    display: block;
}

/* === ساختار کلی === */
.timeline {
    position: relative;
    margin: 60px auto;
    width: 80%;
}

/* خط عمودی وسط */
.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background: #dcdcdc;
    z-index: 0;
}

/* آیتم‌ها */
.timeline-item {
    position: relative;
    width: 50%;
    padding: 30px 40px;
    box-sizing: border-box;
    cursor: pointer;
}

/* سمت چپ */
.timeline-item.left {
    left: 0;
}

/* سمت راست */
.timeline-item.right {
    left: 50%;
    text-align: right;
}

/* === شماره مرحله (دایره روی خط) === */
.timeline-number {
    position: absolute;
    top: 50px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #dcdcdc;
    background: #f5f5f5;
    color: #999;
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* موقعیت شماره در هر سمت */
.timeline-item.left .timeline-number {
    right: -30px; /* نصف عرض دایره برای قرار گرفتن روی خط */
}

.timeline-item.right .timeline-number {
    left: -30px;
}

/* === آیکون === */
.timeline-icon {
    position: absolute;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #aaa;
    z-index: 2;
    transition: all 0.3s ease;
    padding: 14px;
}

/* آیکون‌ها روی خط */
.timeline-item.left .timeline-icon {
    left: -25px;
}

.timeline-item.right .timeline-icon {
    right: -25px;
}

/* === محتوای توضیحات === */
.timeline-content {
    background: #fff;
    padding: 20px 60px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s ease;
}

/* فاصله محتوا از خط برای هر سمت */
.timeline-item.left .timeline-content {
    margin-left: auto;
}



/* === تیتر و لیست === */
.timeline-content h3 {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: #444;
    transition: color 0.3s ease;
    text-align: right;
}

.timeline-content ul {
    margin: 10px 30px 0 0;
    padding: 0;
    direction: rtl;
    text-align: right;

}

.timeline-content ul li {
    font-size: 14px;
    margin-bottom: 6px;
    color: #777;
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* === حالت فعال === */
.timeline-item.active .timeline-number {
    border-color: #4dbd90;
    background: #e6f8f2;
    color: #219653;
    box-shadow: 0 4px 10px rgba(77,189,144,0.2);
}

.timeline-item.active .timeline-icon {
    background: #e6f8f2;
    color: #4dbd90;
    transform: scale(1.1);
}
.timeline .timeline-item.left .timeline-content h3 {
    margin-right: 40px !important;
}

.timeline .timeline-item.left .timeline-content ul {
    margin-right: 60px !important;
}

.timeline-item.active .timeline-content h3 {
    color: #1a3c67;
}

.timeline-item.active .timeline-content ul li {
    color: #333;
}
.contact-us-form form{
    background: #EAF2FA;
    padding: 24px;
    border-radius: 20px;
}
.contact-us-form form label{
    direction: rtl;
}
.contact-us-form form input,.contact-us-form form select{
    border: none !important;
    border-radius: 10px !important;
    text-align: right;
}
.contact-us-form form textarea{
    border: none;
    border-radius: 10px;
    max-height: 200px !important;
    min-height: 200px !important;
}
input[type="submit"] {
    background: #77DD77;
    color: #0A315B;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}
section.contact-us{
    margin-top: 48px;
}
section.contact-us h2{
    font-size: 28px;
    font-weight: 700;
    color: #104E92;
    margin-top: 20px;
    margin-bottom: 24px;
}
section.contact-us p{
    font-size: 14px;
    color: #5D5656;
    line-height: 28px;
    text-align: justify;
    direction: rtl;
}
section.contact-us ul{
text-align: right;
    padding-right: 15px;
    direction: rtl;
    line-height: 28px;
}
section.faq{
    margin-top: 64px;
}
section.faq span.title-span{
    text-align: center;
}
section.faq h2{
    font-size: 28px;
    color: #104E92;
    font-weight: 700;
    line-height: 40px;
    margin-bottom: 40px;
    margin-top: 20px;
    text-align: center;
}
section.faq .accordion-body {
    text-align: right;
    direction: rtl;
}
section.faq #accordionFlushExample {
    width: 50%;
    margin: auto;
}
section.faq .accordion-item{
  border: none !important;
}
section.faq .accordion-item h2{
    margin: auto;
}
section.faq .accordion-item button{
    direction: rtl;
    box-shadow: 3px 5px 10px #eee;
    margin-bottom: 20px;
    border-radius: 10px !important;
}
section.faq .accordion-item button::after{
   margin-left: initial;
    margin-right: auto;
}
section.comments {
    background: #F8F8F8;
    margin-top: 130px;
    padding-top: 64px;
    direction: rtl;
    text-align: right;
}
section.comments h2{
    color: #115296;
    font-size: 28px;
    font-weight: 700;
    line-height: 40px;
    margin-top: 20px;
}
section.comments #reply-title {
    display: none;
}
section.comments #commentform {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
}
.comment-form-author ,.comment-form-email,.comment-form-url{
    display: inline-flex;
}
section.comments label{
    margin-left: 16px;
}
#author,#email,#url {
    border: none;
    background: #F8F8F8;
    padding: 10px;
    border-radius: 10px;
    margin-left: 16px;
}
section.comments .form-submit{
    text-align: left;
}
section.comments #submit {
    background: transparent;
    border: 1px solid #104E92;
    padding: 16px;
    color: #104E92;
}
section.comments textarea{
    background: #F8F8F8;
    width: 100%;
    border: none;
    border-radius: 10px;
    margin-top: 16px;
}
/* === حالت موبایل === */
@media (max-width: 768px) {
    .timeline::before {
        left: 8px;
        transform: none;
    }

    .timeline-item {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .timeline-item.right,
    .timeline-item.left {
        left: 21px;
    }

    .timeline-number {
        left:-42px !important;
        right: auto !important;
        transform: translateY(-50%);
    }

    .timeline-icon {
        left: 0 !important;
        right: auto !important;
        display: none;
    }

    .timeline-item .timeline-content {
        margin: 0;
        text-align: right;
    }
    .timeline-content {
        padding: 0;
    }
    section.our-team .member {
        margin-bottom: 26px;
    }
    .bg-blue {
        height: 130px;

    }
    section.faq #accordionFlushExample {
        width: 100%;
    }
    section.single-project h2,section.portfolio h2,section.faq h2,section.contact-us h2,section.brand h2,section.comments h2 {
        font-size: 20px;
    }
    section.brand .owl-nav {
        position: absolute;
        top: 120px;
        width: 100%;
        text-align: center;
        display: flex;
        justify-content: center;
    }
    section.single-services {
        background: url("../images/single-services-mobile.svg");
        background-size: cover;
        height: 700px;
    }
    section.single-services .content p {
        text-align: center;
        font-size: 14px;
    }
    section.single-services .content h1 {
        text-align: center;
        font-size: 24px;
    }
    section.single-services .content a, section.single-services .content a:last-child {
        width: 100%;
        padding: 8px;
        font-size: 14px;
        display: flex;
        text-align: center;
        margin-bottom: 16px !important;
        margin: auto;
        margin-bottom: auto;
    }
    .carousel {
        margin-top: 32px;
    }
    section.single-services .badg {
        width: 60px;
        top: 11px;
        right: -12px;
    }
}
