/* --- Local Font Definition (IranYekan) --- */
@font-face {
    font-family: 'IranYekan';
    src: url('../fonts/IranYekan.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* --- Professional Color Palette --- */
:root {
    --primary-color: #D90429;
    --primary-hover: #B70021;
    --dark-color: #2B2D42;
    --body-text: #8D99AE;
    --light-bg: var(--white-color);
    --white-color: #FFFFFF;
    --border-color: #EAEBF0;
    --font-family: 'IranYekan', sans-serif;
    --box-shadow: 0 10px 30px rgba(43, 45, 66, 0.1);
    --border-radius: 12px;
}

/* --- General Styles --- */
html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    color: var(--body-text);
    background-color: var(--white-color);
    font-weight: 400;
    overflow-x: hidden;
    line-height: 1.7;
    font-size: calc(15px + 0.1vw);
    padding-bottom: 70px; /* فضا برای نوار تماس در موبایل */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1.4;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}
a:hover {
    color: var(--primary-hover);
}

/* --- Navbar Styling --- */
.navbar-custom {
    background-color: var(--white-color);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.navbar-custom .navbar-brand {
    font-weight: 800;
    color: var(--dark-color);
    font-size: calc(20px + 0.2vw);
}
.navbar-custom .nav-link {
    color: var(--dark-color);
    font-weight: 500;
    margin: 0 0.75rem;
    transition: color 0.3s ease;
    font-size: calc(14.5px + 0.1vw);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--primary-color);
}

.btn-cta {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(217, 4, 41, 0.25);
    font-size: calc(14.5px + 0.1vw);
}
.btn-cta:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(217, 4, 41, 0.35);
    color: var(--white-color);
}
.btn-cta-outline {
    border: 2px solid var(--border-color);
    color: var(--dark-color);
    background-color: transparent;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: calc(14.5px + 0.1vw);
}
.btn-cta-outline:hover {
    background-color: var(--dark-color);
    border-color: var(--dark-color);
    color: var(--white-color);
}


/* --- Main Content Wrapper --- */
main {
    padding-top: 90px;
}

/* --- Hero Section --- */
.hero-section {
    padding: 6rem 0;
    background-color: var(--white-color);
}
.hero-section .hero-text h1 {
    font-size: calc(2.2rem + 1.2vw);
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}
.hero-section .hero-text .highlight {
    color: var(--primary-color);
}
.hero-section .hero-text p.lead {
    font-size: calc(1rem + 0.2vw);
    color: var(--body-text);
    margin-bottom: 2rem;
    line-height: 1.6;
}
.hero-section .hero-image {
    text-align: center;
}
.hero-section .hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}
.hero-section .hero-cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* --- Section Title Styling --- */
.section-title {
    margin-bottom: 3rem;
}
.section-title .subtitle {
    font-size: calc(15px + 0.1vw);
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}
.section-title h2 {
    font-size: calc(22px + 0.3vw);
    font-weight: 800;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.75rem auto 0;
}

.section-title p {
    font-size: calc(16px + 0.15vw);
    color: var(--body-text);
    max-width: 600px;
    margin: 0.5rem auto 0;
}

/* --- Product Card Styling --- */
.product-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease-in-out;
    box-shadow: 3px 5px 5px rgb(44 45 61 / 32%);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow);
    border-color: transparent;
}
.product-card .card-img-container {
    height: 220px;
    overflow: hidden;
}
.product-card .card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .card-img-top {
    transform: scale(1.05);
}
.product-card .card-body {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}
.product-card .card-title {
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
    font-size: calc(18px + 0.15vw);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
}
.product-card .card-text {
    color: var(--body-text);
    flex-grow: 1;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 80px;
    font-size: calc(14.5px + 0.05vw);
}
.product-card .card-link {
    display: inline-block;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    margin-top: auto;
    font-size: calc(14px + 0.05vw);
    color: #ffffff;
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.product-card .card-link .icon-arrow {
   display: none;
}
.product-card:hover .card-link {
    background-color: var(--primary-hover);
    color: var(--white-color);
    border-color: var(--primary-hover);
}
.project-card .card-subtitle {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: calc(14px + 0.1vw);
}


/* --- Feature Section --- */
.feature-section {
    padding: 1rem 0;
}
.feature-box {
    text-align: center;
    padding: 1.5rem;
}
.feature-box .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: inline-block;
    line-height: 1;
}
.feature-box h5 {
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-size: calc(18px + 0.1vw);
}
.feature-box p {
    font-size: calc(14.5px + 0.05vw);
}

/* --- Testimonials Section --- */
.testimonials-section {
    padding: 1rem 0;
}
.testimonial-card {
    background-color: var(--white-color);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    box-shadow: var(--box-shadow);
    position: relative;
    border-top: 4px solid var(--primary-color);
}
.testimonial-card .quote-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    left: 2rem;
}
.testimonial-card p {
    font-style: italic;
    line-height: 1.8;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-size: calc(16px + 0.1vw);
}
.testimonial-card .user-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: calc(15px + 0.05vw);
}
.testimonial-card .user-company {
    color: var(--body-text);
    font-size: calc(14px + 0.05vw);
}


/* --- FAQ Section Styling --- */
.faq-section {
    padding: 1rem 0;
    background-color: var(--light-bg);
}
.faq-section .accordion-item {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}
.faq-section .accordion-button {
    font-weight: 700;
    color: var(--dark-color);
    font-size: calc(16px + 0.15vw);
}
.faq-section .accordion-button:not(.collapsed) {
    background-color: transparent;
    color: var(--primary-color);
    box-shadow: none;
}
.faq-section .accordion-button:focus {
    box-shadow: none;
    border-color: rgba(0,0,0,0.1);
}
.faq-section .accordion-body {
    color: var(--body-text);
    line-height: 1.8;
}
.faq-section .accordion-button::after {
    font-family: "Font Awesome 6 Free";
    content: "\f067"; /* + */
    font-weight: 900;
    background-image: none;
    transition: transform 0.3s ease;
}
.faq-section .accordion-button:not(.collapsed)::after {
    content: "\f068"; /* - */
    transform: rotate(0deg);
}


/* --- Final CTA Section --- */
.cta-section {
    padding: 5rem 0;
    background-color: var(--dark-color);
    color: var(--white-color);
    border-radius: 0;
    margin-top: 3rem;
}
.cta-section h2 {
    color: var(--white-color);
    font-size: calc(22px + 0.3vw);
    font-weight: 800;
    margin-bottom: 1rem;
}
.cta-section p {
    color: #e0e0e0;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    font-size: calc(16px + 0.15vw);
}
.cta-section .btn-cta {
    padding: 1rem 2.5rem;
    font-size: calc(16px + 0.1vw);
}

/* --- ============================ --- */
/* --- === استایل فوتر جدید و باریک === --- */
/* --- ============================ --- */

.footer-custom-slim {
    background-color: #1c1d2b; /* همان رنگ فوتر قبلی */
    color: #aab1b9;           /* همان رنگ متن فوتر قبلی */
    padding: 1.5rem 0;        /* پدینگ کمتر برای باریک شدن */
    font-size: calc(14px + 0.05vw); /* کمی کوچکتر کردن فونت */
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* یک خط جداکننده ظریف */
}

.footer-custom-slim strong {
    color: var(--white-color); /* نام شرکت کمی برجسته‌تر */
    font-weight: 600;
}

.footer-custom-slim a {
    color: #aab1b9;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-custom-slim a:hover {
    color: var(--white-color);
}

.footer-custom-slim .footer-contact-info {
    display: inline-block; /* جلوگیری از شکستن خط در برخی موارد */
    margin-bottom: 0.5rem; /* فاصله کم بین آدرس و تلفن در موبایل */
}

.footer-custom-slim .footer-contact-info i {
    color: var(--primary-color); /* آیکون‌ها به رنگ قرمز */
    font-size: 0.9em;
    vertical-align: middle;
}

/* در صفحات کوچکتر، همه چیز وسط چین می‌شود */
@media (max-width: 767px) {
    .footer-custom-slim .row > div {
        text-align: center !important;
        margin-bottom: 0.75rem; /* کمی فاصله بین خطوط در موبایل */
    }
     .footer-custom-slim .footer-contact-info.ms-md-3 {
         margin-right: 0 !important; /* حذف فاصله چپ در موبایل */
         display: block; /* هر کدام در یک خط در موبایل */
     }
}
/* --- Swiper Testimonial Slider Styling --- */
.testimonial-slider {
    overflow: hidden;
    padding-bottom: 50px;
}
.testimonial-slider .swiper-slide {
    height: auto;
}
.testimonial-slider .swiper-slide .testimonial-card {
    height: 100%;
}
.testimonial-slider .swiper-pagination-bullet {
    background-color: #ccc;
    opacity: 1;
}
.testimonial-slider .swiper-pagination-bullet-active {
    background-color: var(--primary-color);
}


/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .navbar-custom .navbar-nav {
        background-color: var(--white-color);
        padding: 1rem;
        border-radius: var(--border-radius);
        margin-top: 1rem;
        box-shadow: var(--box-shadow);
    }
    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }
    .hero-section .hero-text h1 {
        font-size: 2.5rem;
    }
    .hero-section .hero-image img {
        margin-top: 3rem;
    }
    .hero-section .hero-cta-buttons {
        justify-content: center;
    }
}

@media (max-width: 767px) {
    .product-card .card-text {
        min-height: 0;
        -webkit-line-clamp: 2;
    }
    .hero-section .hero-text h1 {
        font-size: 2.2rem;
    }
}

/* --- =================================== --- */
/* --- === نوار تماس شناور (موبایل) (نهایی) === --- */
/* --- =================================== --- */
.mobile-call-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    color: var(--white-color);
    padding: 0.8rem 1rem;
    z-index: 1000;
    font-weight: 700;
    font-size: calc(17px + 0.1vw);

    /* --- اصلاحیه: برجسته سازی و گرادیانت --- */
    background-image: linear-gradient(to top, #B70021 0%, #D90429 20%); /* --primary-hover to --primary-color */
    box-shadow: 0 -4px 12px rgba(43, 45, 66, 0.2), 0 -2px 6px rgba(43, 45, 66, 0.15); /* سایه قوی‌تر */
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* خط نوری باریک در بالا برای برجستگی */

    /* --- اصلاحیه: انیمیشن ورود (در ابتدا مخفی) --- */
    visibility: hidden;
    opacity: 0;
    transform: translateY(100%); /* 100% ارتفاع خودش، بیرون از صفحه */
    transition: all 0.4s ease-in-out;
}

/* --- اصلاحیه: کلاس فعال‌ساز (توسط JS اضافه می‌شود) --- */
.mobile-call-bar.is-visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.mobile-call-bar:hover {
    color: var(--white-color);
    /* --- اصلاحیه: هاور برجسته --- */
    background-image: linear-gradient(to top, #B70021 0%, #D90429 30%);
    /* کمی بالا می‌آید تا حس دکمه بودن بدهد */
    transform: translateY(-3px);
}

/* استایل آیکون در نوار */
.mobile-call-bar i {
    margin-left: 0.75rem;
    font-size: 1.1rem;
    vertical-align: middle;
}

/* --- نمایش فقط در موبایل (و مخفی کردن در دسکتاپ) --- */
@media (min-width: 768px) { /* md breakpoint بوت استرپ */
    .mobile-call-bar {
        display: none;
    }

    /* حذف padding-bottom در دسکتاپ */
    body {
        padding-bottom: 0;
    }
}


  /* --- Hero Video Background --- */
    .hero-section-video {
        position: relative;
        overflow: hidden;
        padding: 8rem 0;
        color: var(--white-color);
    }

    .hero-section-video .background-video {
        position: absolute;
        top: 50%;
        left: 50%;
        min-width: 100%;
        min-height: 100%;
        width: auto;
        height: auto;
        z-index: 1;
        transform: translateX(-50%) translateY(-50%);
        background-color: var(--dark-color);
    }

    .hero-section-video::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(43, 45, 66, 0.75);
        z-index: 2;
    }

    .hero-section-video .container {
        position: relative;
        z-index: 3;
    }

    .hero-section-video .hero-text h1 {
        color: var(--white-color);
    }

    .hero-section-video .hero-text p.lead {
        color: rgba(255, 255, 255, 0.9);
        font-size: calc(1.1rem + 0.2vw);
        margin-bottom: 2.5rem;
    }

    .hero-section-video .hero-text .highlight {
        color: #ff6b6b;
        font-weight: 800;
    }

    .hero-section-video .btn-cta-outline {
        background-color: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.6);
        color: var(--white-color);
    }

    .hero-section-video .btn-cta-outline:hover {
        background-color: rgba(255, 255, 255, 0.2);
        border-color: rgba(255, 255, 255, 0.9);
        color: var(--white-color);
    }

    @media (min-width: 992px) {
        .hero-section-video .hero-text {
            text-align: right;
        }

        .hero-section-video .hero-cta-buttons {
            justify-content: flex-end;
        }
    }

    @media (max-width: 991px) {
        .hero-section-video {
            padding: 5rem 0;
        }

        .hero-section-video .hero-text {
            text-align: center;
        }

        .hero-section-video .hero-cta-buttons {
            justify-content: center;
        }
    }

    /* --- استایل مدال محصول (اصلاح نهایی RTL) --- */
    #productDetailModal .modal-content {
        border-radius: var(--border-radius);
        border: none;
        box-shadow: 0 15px 40px rgba(43, 45, 66, 0.15);
    }

    #productDetailModal .modal-header {
        background-color: var(--primary-color);
        color: var(--white-color);
        border-top-left-radius: var(--border-radius);
        border-top-right-radius: var(--border-radius);
        padding: 1rem 1.5rem;
        border-bottom: none;
        position: relative;
    }

    #productDetailModal .modal-title {
        font-weight: 700;
        font-size: calc(18px + 0.2vw);
        padding-left: 40px;
        /* فضای بیشتر برای دکمه بستن RTL */
    }

    #productDetailModal .btn-close {
        filter: invert(1) grayscale(100%) brightness(200%);
        opacity: 0.8;
        transition: opacity 0.3s ease;
        position: absolute;
        left: 1.25rem;
        /* تنظیم دقیق‌تر فاصله چپ */
        right: auto;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        padding: 0.5rem;
        /* افزایش سطح کلیک */
    }

    #productDetailModal .btn-close:hover {
        opacity: 1;
    }

    #productDetailModal .modal-body {
        padding: 2rem;
        line-height: 1.8;
    }

    #productDetailModal .modal-product-image {
        max-height: 350px;
        /* کمی کوچکتر */
        object-fit: contain;
        margin-bottom: 1rem;
        width: 100%;
        /* اطمینان از عرض کامل */
    }

    #productDetailModal .modal-product-description {
        font-size: calc(15px + 0.08vw);
        /* کمی بزرگتر */
        color: var(--dark-color);
        text-align: justify;
        /* مرتب‌سازی متن */
    }

    #productDetailModal .modal-product-description-col {
        max-height: calc(80vh - 180px);
        /* ارتفاع حداکثر تطبیقی */
        overflow-y: auto;
        padding-right: 10px;
        /* فاصله از اسکرول بار */
    }

    #productDetailModal .modal-footer {
        background-color: #f8f9fa;
        border-bottom-left-radius: var(--border-radius);
        border-bottom-right-radius: var(--border-radius);
        border-top: 1px solid var(--border-color);
        padding: 1rem 1.5rem;
    }

    #productDetailModal .modal-footer .btn-cta {
        font-size: calc(14.5px + 0.1vw);
        padding: 0.7rem 1.8rem;
    }

    @media (max-width: 767px) {
        #productDetailModal .modal-body {
            padding: 1.5rem;
        }

        #productDetailModal .modal-product-description-col {
            max-height: 50vh;
            /* ارتفاع کمتر در موبایل */
            overflow-y: auto;
            padding-right: 5px;
        }

        #productDetailModal .modal-title {
            padding-left: 45px;
        }
    }



/* --- فاصله بین دکمه‌های CTA در بخش Hero --- */
.hero-section-video .hero-cta-buttons .btn {
    margin: 0.5rem; /* 8px فاصله از هر طرف */
}

/* در موبایل، دکمه‌ها می‌توانند به صورت بلوک و با فاصله عمودی باشند */
@media (max-width: 575.98px) { /* Small devices (landscape phones, less than 576px) */
    .hero-section-video .hero-cta-buttons .btn {
        display: block; /* هر دکمه در یک خط */
        width: 100%;    /* عرض کامل */
        margin-left: 0; /* حذف margin چپ و راست */
        margin-right: 0;
        margin-bottom: 1rem; /* فاصله عمودی بین دکمه‌ها */
    }
}


/* --- ============================ --- */
/* --- استایل توضیحات کوتاه کارت محصول --- */
/* --- ============================ --- */

.product-card .card-text-short {
    color: var(--body-text);
    font-size: calc(14px + 0.05vw); /* کمی کوچکتر از متن اصلی کارت */
    margin-bottom: 1.5rem; /* فاصله تا دکمه پایین */
    min-height: 60px; /* ایجاد فضای تقریبی برای 3 خط */
    /* محدود کردن به 3 خط با ... */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* در موبایل، محدودیت خطوط را کمتر می‌کنیم */
@media (max-width: 767px) {
    .product-card .card-text-short {
        -webkit-line-clamp: 2; /* 2 خط کافیست */
        min-height: 40px; /* فضای تقریبی برای 2 خط */
    }
}
/* --- ============================ --- */
/* --- === بخش موقعیت مکانی (Iframe قابل کلیک) === --- */
/* --- ============================ --- */

.location-section .map-iframe-container {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden; /* iframe گوشه‌های گرد را می‌گیرد */
    box-shadow: var(--box-shadow);
    border: 1px solid var(--border-color);
    /* برای حفظ نسبت ابعاد نقشه در حالت ریسپانسیو */
    padding-top: 56.25%; /* نسبت 16:9 (height/width) */
    height: 0;
}

.location-section .map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* بسیار مهم: جلوی کلیک روی خود iframe را می‌گیرد */
}

/* لایه شفاف قابل کلیک */
.location-section .map-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* روی iframe قرار می‌گیرد */
    cursor: pointer;
    background-color: rgba(43, 45, 66, 0.4); /* --dark-color at 40% */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; /* در حالت عادی شفاف */
    transition: all 0.3s ease;
}

.location-section .map-click-overlay:hover {
    opacity: 1; /* در هاور ظاهر می‌شود */
}

.location-section .map-overlay-content {
    color: var(--white-color);
    font-size: calc(18px + 0.2vw);
    font-weight: 700;
    text-decoration: none;
    text-align: center;
    padding: 1rem;
}

.location-section .map-overlay-content i {
    margin-left: 0.5rem;
}
[dir="rtl"] .location-section .map-overlay-content i {
    margin-left: 0;
    margin-right: 0.5rem;
}

/* حذف استایل دکمه‌های قبلی (اگر هنوز وجود دارند) */
.location-section .direction-buttons,
.location-section .btn-cta-outline-map,
.location-section .map-icon {
    display: none !important;
}

/* --- ============================ --- */
/* --- === استایل مدال تماس با کارشناسان === --- */
/* --- ============================ --- */

#salesCallModal .modal-content {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* هدر قرمز رنگ، مشابه مدال محصولات */
#salesCallModal .modal-header {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    border-bottom: none;
    position: relative;
    padding: 1rem 1.5rem;
}

#salesCallModal .modal-header .modal-title {
    font-weight: 700;
    font-size: 1.25rem;
    padding-left: 30px; /* فضا برای دکمه بستن در RTL */
}

/* استایل دکمه بستن برای RTL */
#salesCallModal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
    position: absolute;
    top: 50%;
    left: 1.25rem; /* موقعیت از سمت چپ */
    right: auto;
    transform: translateY(-50%);
    margin: 0;
    padding: 0.5rem;
}

/* استایل دکمه بستن برای LTR */
[dir="ltr"] #salesCallModal .modal-header .btn-close {
    left: auto;
    right: 1.25rem; /* موقعیت از سمت راست */
}
[dir="ltr"] #salesCallModal .modal-title {
    padding-left: 0;
    padding-right: 30px; /* فضا برای دکمه بستن در LTR */
}


#salesCallModal .modal-body {
    padding: 1.5rem 1rem; /* پدینگ کمتر */
}

/* لیست کارشناسان */
#salesCallModal .sales-call-list .list-group-item {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius) !important; /* گرد کردن گوشه‌ها */
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none; /* حذف آندرلاین لینک */
}

#salesCallModal .sales-call-list .list-group-item:last-child {
    margin-bottom: 0;
}

/* افکت هاور زیبا */
#salesCallModal .sales-call-list .list-group-item:hover {
    background-color: #f8f9fa; /* پس‌زمینه روشن در هاور */
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.07);
    border-color: var(--border-color);
}

/* نام کارشناس */
#salesCallModal .sales-agent-name {
    font-weight: 700;
    color: var(--dark-color);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

/* شماره تلفن */
#salesCallModal .sales-agent-number {
    font-size: 1rem;
    color: var(--body-text);
    font-weight: 500;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

/* آیکون قرمز دایره‌ای تلفن */
#salesCallModal .sales-call-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

/* هاور آیکون */
#salesCallModal .list-group-item:hover .sales-call-icon {
    background-color: var(--primary-hover);
}


/* --- ============================ --- */
/* --- === استایل شماره تلفن‌های فوتر === --- */
/* --- ============================ --- */

.footer-phone-link {
    /* ارث‌بری رنگ از .footer-custom a */
    color: #aab1b9;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;

    /* استایل ظاهری شبیه تگ (Pill) */
    border: 1px solid rgba(255, 255, 255, 0.2); /* بوردر نیمه شفاف */
    border-radius: 50px; /* گرد کردن کامل */
    padding: 0.2rem 0.6rem; /* پدینگ کوچک و حرفه‌ای */
    font-size: 0.8rem; /* فونت ریز */
    display: inline-block;
    margin-top: 0.25rem; /* فاصله در حالت موبایل وقتی زیر هم می‌افتند */
    transition: all 0.3s ease;
}

.footer-phone-link:hover {
    color: var(--white-color);
    background-color: var(--primary-color); /* رنگ قرمز اصلی در هاور */
    border-color: var(--primary-color); /* بوردر قرمز در هاور */
    transform: translateY(-1px);
}
