/* HomePage VideService */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
}

.popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    max-width: 90%;
    max-height: 80%;
}

video {
    width: 100%;
    max-height: 70vh;
    border-radius: 5px;
}


.close-btn {
    position: absolute;
    top: 5px;
    right: 8px;
    background: red;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
}

/* HomePage VideService */


.appointment-two-bg {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 400px; /* ارتفاع دلخواه */
}

    .appointment-two-bg video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        transform: translate(-50%, -50%);
        object-fit: cover;
        z-index: 0;
    }

    .appointment-two-bg .content {
        position: relative;
        z-index: 1;
        color: #fff;
        text-align: center;
        padding-top: 100px;
    }




.typewriter {
    font-size: 24px;
    line-height: 1.5;
    position: relative;
    padding-left: 4px; /* جای کرسر */
}

    .typewriter::after {
        content: '';
        position: absolute;
        left: 0; /* چون متن راست‌چین است، کرسر سمت چپ کلی خط نوشته قرار می‌گیرد */
        top: 0;
        bottom: 0;
        width: 3px;
        background-color: #00ffcc;
        animation: blinkCursor .7s infinite;
    }

@keyframes blinkCursor {
    0%, 50%, 100% {
        opacity: 1;
    }

    25%, 75% {
        opacity: 0;
    }
}












.service-two-swiper-arrow .swiper-button-next {
    transform: rotate(-180deg);
}


/* برای اطمینان فونت و جهت متن (rtl) */
.logo-link {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    text-decoration: none !important;
}

/* کنترل اندازه لوگو */
.logo-img {
    width: 110px !important;
    height: auto !important;
    display: block !important;
}

/* استایل متن شرکت — هایلایت مشکی با متن سفید */
.company-tagline {
    display: inline-block !important;
    background-color: rgba(0,0,0,0.85) !important; /* پس‌زمینه مشکی تا کمی شفاف */
    color: #fff !important;
    padding: 6px 12px !important; /* فاصله داخلی بالا/پایین و چپ/راست */
    border-radius: 8px !important; /* گوشه‌های گرد */
    margin-right: 6px !important; /* فاصله‌ی کمی به سمت راست (چون راست به چپ است) */
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(0,0,0,.2) !important;
}

/* اگر می‌خواهی متن خیلی نزدیکتر باشه */
.logo-link.tight .company-tagline {
    margin-right: 4px !important;
    padding: 5px 10px !important;
}

/* در صفحه‌های کوچک (ریسپانسیو) ممکن است بخواهی اندازه کوچک شود یا متن پشت لوگو برود */
@media (max-width: 768px) {
    .logo-img {
        width: 90px !important;
    }

    .company-tagline {
        font-size: 12px !important;
        padding: 4px 8px !important;
    }
    /* اگر خیلی جا کم شد، می‌توان متن را مخفی کرد */
    /* .company-tagline { display: none; } */
}


.pbmit-slider-content {
    visibility: hidden;
    opacity: 0;
}


/* جابجایی مکان فلش‌ها */
.pbmit-slider-two .swiper-button-next {
    left: 10px !important;
    right: auto !important;
}

.pbmit-slider-two .swiper-button-prev {
    right: 10px !important;
    left: auto !important;
}

/* تغییر جهت فلش‌ها به جای rotate */
.pbmit-slider-two .swiper-button-next::after {
    content: '›' !important; /* یا \203A */
}

.pbmit-slider-two .swiper-button-prev::after {
    content: '‹' !important; /* یا \2039 */
}

.behzadText {
    direction: rtl;
}

.pbmit-fid-inner-behzad {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
