@media (min-width: 991.96px) {
    #breadcrumb-providers {
        margin-top: 4rem !important;
    }
}
@media (max-width: 991.96px) {
    #breadcrumb-providers {
        margin-top: 4rem !important;
    }
}
/* ===== استایل‌های مدرن برای Breadcrumb ===== */
.breadcrumb-bar {
    position: relative;
    padding: 4rem 0 3rem;
    overflow: hidden;
    direction: rtl;
}

.inner-banner {
    position: relative;
    z-index: 2;
}

/* عنوان اصلی */
.breadcrumb-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 1.2rem;
    line-height: 1.3;
    position: relative;
    padding-bottom: 1rem;
    text-align: right;
    background: linear-gradient(135deg, #1b344d, #204f83);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.breadcrumb-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2c3e50);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.inner-banner:hover .breadcrumb-title::after {
    width: 120px;
}

/* مسیر ناوبری */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumb-item:not(:last-child)::after {
    content: '›';
    color: #3498db;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

.breadcrumb-link {
    color: #666;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
}

.breadcrumb-link:hover {
    color: #3498db;
    background: rgba(52, 152, 219, 0.1);
    transform: translateX(-3px);
}

.breadcrumb-current {
    color: #2c3e50;
    font-weight: 600;
    background: rgba(52, 152, 219, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
}

/* توضیحات */
.description-container {
    position: relative;
    margin: 2rem 0;
}

.description-text {
    color: #555;
    line-height: 1.9;
    font-size: 1.1rem;
    text-align: right;
    position: relative;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    border-right: 4px solid #1e4671;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}
.dark-mode #description-long {
    border-right: 4px solid #0c243e;
}
.dark-mode .stat-icon {
    background: linear-gradient(135deg, #0c243e, #1c5072);
}
.dark-mode .ck-content strong, .ck-content b {
    font-weight: 700;
    color: #d3d1d1;
}
.description-text.limited {
    max-height: 8.5em;
    overflow: hidden;
    position: relative;
}

.description-text.limited::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.9), transparent);
    pointer-events: none;
    border-radius: 0 0 12px 12px;
}

.description-text.expanded::after {
    display: none;
}

/* دکمه نمایش بیشتر */
.read-more-wrapper {
    text-align: right;
    margin-top: 1rem;
}

.read-more-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.read-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #1c5a7d);
}

.read-more-btn i {
    transition: transform 0.3s ease;
}

.read-more-btn.expanded i {
    transform: rotate(180deg);
}

/* تصویر تخصص */
.specialty-image-container {
    position: relative;
    text-align: center;
}

.specialty-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.specialty-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.specialty-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(52, 152, 219, 0.2), rgba(41, 128, 185, 0.1));
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.specialty-image-wrapper:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.specialty-image-wrapper:hover::before {
    opacity: 1;
}

.specialty-image-wrapper:hover .specialty-image {
    transform: scale(1.1);
}

/* آمار و اطلاعات */
.stats-container {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    background: white;
}

.stat-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #1e4671, #2980b9);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.stat-info h4 {
    margin: 0;
    font-size: 1.2rem;
    color: #2c3e50;
    font-weight: 700;
}

.stat-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* ===== دارک مود ===== */
.dark-mode .breadcrumb-bar {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-mode .breadcrumb-title {
    background: linear-gradient(90deg, #ecf0f1, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-mode .breadcrumb-link {
    color: #bdc3c7;
}

.dark-mode .breadcrumb-link:hover {
    color: #3498db;
    background: #ec5498;
}

.dark-mode .breadcrumb-current {
    color: #ecf0f1;
    background: rgba(52, 152, 219, 0.3);
}

.dark-mode .description-text {
    color: #ecf0f1;
    background: rgb(193 193 193 / 5%);
    border-right-color: #ec5498;
}

.dark-mode .description-text.limited::after {
    background: linear-gradient(to top, rgba(44, 62, 80, 0.9), transparent);
}

.dark-mode .stat-item {
    background: rgba(255, 255, 255, 0.05);
    color: #ecf0f1;
}

.dark-mode .stat-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.dark-mode .stat-info h4 {
    color: #ecf0f1;
}

.dark-mode .stat-info p {
    color: #bdc3c7;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .breadcrumb-bar {
        padding: 3rem 0 2rem;
    }

    .breadcrumb-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .breadcrumb-bar {
        padding: 2rem 0;
    }

    .breadcrumb-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .breadcrumb-title::after {
        right: 50%;
        transform: translateX(50%);
    }

    .breadcrumb-trail {
        justify-content: center;
    }

    .description-text {
        text-align: center;
        font-size: 1rem;
        padding: 1rem;
    }

    .specialty-image-wrapper {
        max-width: 250px;
    }

    .stats-container {
        justify-content: center;
    }

    .col-md-9, .col-md-3 {
        text-align: center;
    }
}

@media (max-width: 576px) {
    .breadcrumb-title {
        font-size: 1.5rem;
    }

    .stat-item {
        flex: 1 0 100%;
    }

    .read-more-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.inner-banner {
    animation: fadeInUp 0.8s ease-out;
}

.specialty-image-wrapper {
    animation: float 4s ease-in-out infinite;
}

/* ===== بهبود کارت‌ها ===== */
.clinic-item {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.clinic-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.clinic-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #012047ad, #388ce1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clinic-item:hover::before {
    opacity: 1;
}

/* استایل‌های باقی‌مانده از کد قبلی */
.dark-mode .clinic-item {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.dark-mode .clinic-white {
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

@media (max-width: 768px) {
    .clinic-item {
        margin-bottom: 1rem;
    }
}

/* ===== استایل‌های سئو پسند برای محتوای CKEditor ===== */
.ck-content {
    font-family: 'Vazir', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.8;
    color: #333;
    text-align: right;
    hyphens: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ===== تایپوگرافی ===== */
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6 {
    font-weight: 700;
    line-height: 1.4;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    position: relative;
    padding-bottom: 0.5rem;
}

.ck-content h1 {
    font-size: 2rem;
    border-bottom: 3px solid #ec5498;
    padding-bottom: 0.8rem;
}

.ck-content h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid #ec5498;
    padding-bottom: 0.6rem;
}

.ck-content h3 {
    font-size: 1.5rem;
    border-right: 4px solid #ec5498;
    padding-right: 1rem;
}

.ck-content h4 {
    font-size: 1.25rem;
    color: #34495e;
}

.ck-content h5 {
    font-size: 1.1rem;
    color: #34495e;
}

.ck-content h6 {
    font-size: 1rem;
    color: #34495e;
}

/* ===== پاراگراف‌ها ===== */
.ck-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    text-align: justify;
    text-justify: inter-word;
}

.ck-content p:last-child {
    margin-bottom: 0;
}

/* فاصله بین پاراگراف‌ها (برای خوانایی بهتر) */
.ck-content p + p {
    margin-top: 1rem;
}

/* ===== لیست‌ها ===== */
.ck-content ul,
.ck-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
    text-align: right;
}

.ck-content li {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    position: relative;
    padding-right: 0.5rem;
}

.ck-content ul li::before {
    content: '•';
    color: #3498db;
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    right: -1.2rem;
    top: 0;
}

.ck-content ol {
    counter-reset: persian-counter;
}

.ck-content ol li {
    counter-increment: persian-counter;
}

.ck-content th p {
    color: white;
}
.ck-content ol li::before {
    content: counter(persian-counter) '. ';
    color: #ec5498;
    font-weight: bold;
    position: absolute;
    right: -1.5rem;
}

/* ===== لینک‌ها ===== */
.ck-content a {
    color: #2980b9;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
    padding: 0 2px;
}

.ck-content a:hover {
    color: #1c5a7d;
    border-bottom-color: #ec5498;
    background-color: rgba(52, 152, 219, 0.1);
}

.ck-content a:focus {
    outline: 2px solid #ec5498;
    outline-offset: 2px;
}

/* ===== تصاویر ===== */
.ck-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 2rem auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.ck-content img:hover {
    transform: scale(1.02);
}

/* تصاویر با caption */
.ck-content figure {
    margin: 2rem auto;
    text-align: center;
    max-width: 100%;
}

.ck-content figcaption {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
    font-style: italic;
    text-align: center;
}

/* ===== جداول ===== */
.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
    font-size: 0.95rem;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.ck-content th,
.ck-content td {
    padding: 1rem;
    text-align: right;
    border: 1px solid #ddd;
}

.ck-content th {
    background-color: #ed5096;
    color: white;
    font-weight: 600;
}

.ck-content tr:nth-child(even) {
    background-color: #f8f9fa;
}

.ck-content tr:hover {
    background-color: rgba(52, 152, 219, 0.1);
}

/* ===== نقل قول‌ها ===== */
.ck-content blockquote {
    border-right: 4px solid #ec5498;
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    position: relative;
}

.ck-content blockquote::before {
    content: '❝';
    font-size: 3rem;
    color: #3498db;
    position: absolute;
    left: 1rem;
    top: 0.5rem;
    opacity: 0.3;
}

.ck-content blockquote p {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
}

/* ===== کد و پیش‌فرمات ===== */
.ck-content pre,
.ck-content code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #f4f4f4;
    border-radius: 4px;
}

.ck-content pre {
    padding: 1.5rem;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-right: 3px solid #ec5498;
}

.ck-content code {
    padding: 0.2rem 0.4rem;
    font-size: 0.9rem;
}

/* ===== افقی خط ===== */
.ck-content hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
    margin: 3rem auto;
    width: 80%;
}

/* ===== ویدیو و iframe ===== */
.ck-content iframe,
.ck-content video {
    max-width: 100%;
    height: auto;
    min-height: 300px;
    margin: 2rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* ===== استایل‌های خاص ===== */
.ck-content strong,
.ck-content b {
    font-weight: 700;
    color: #2c3e50;
}

.ck-content em,
.ck-content i {
    font-style: italic;
    color: #34495e;
}

.ck-content mark {
    background-color: #ffeaa7;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
}

.ck-content small {
    font-size: 0.85rem;
    opacity: 0.8;
}

.ck-content sup,
.ck-content sub {
    font-size: 0.75rem;
}

/* ===== دارک مود ===== */
.dark-mode .ck-content {
    color: #ecf0f1;
    background-color: transparent;
}

.dark-mode #location{
    color: white;
}

.dark-mode .ck-content h1,
.dark-mode .ck-content h2,
.dark-mode .ck-content h3,
.dark-mode .ck-content h4,
.dark-mode .ck-content h5,
.dark-mode .ck-content h6 {
    color: #ecf0f1;
}

.dark-mode .ck-content a {
    color: #4da8ff;
}

.dark-mode .ck-content a:hover {
    color: #80c1ff;
    background-color: rgba(77, 168, 255, 0.1);
}

.dark-mode .ck-content blockquote {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    color: #ecf0f1;
}

.dark-mode .ck-content img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.dark-mode .ck-content th {
    background-color: #2c3e50;
}

.dark-mode .ck-content td {
    border-color: #34495e;
}

.dark-mode .ck-content tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .ck-content pre,
.dark-mode .ck-content code {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.dark-mode .ck-content figcaption {
    color: #bdc3c7;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    /* کاهش فاصله از کناره‌ها در موبایل */
    .ck-content {
        padding: 0 0.5rem;
    }

    /* کاهش سایز فونت‌ها */
    .ck-content h1 {
        font-size: 1.6rem;
        margin-top: 2rem;
    }

    .ck-content h2 {
        font-size: 1.4rem;
    }

    .ck-content h3 {
        font-size: 1.2rem;
    }

    .ck-content p {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.2rem;
    }

    /* کاهش فاصله بین پاراگراف‌ها */
    .ck-content p + p {
        margin-top: 0.8rem;
    }

    /* کاهش padding جدول */
    .ck-content th,
    .ck-content td {
        padding: 0.7rem 0.5rem;
        font-size: 0.9rem;
    }

    /* لیست‌ها */
    .ck-content ul,
    .ck-content ol {
        padding-right: 1.5rem;
    }

    /* تصاویر */
    .ck-content img {
        margin: 1.5rem auto;
        border-radius: 6px;
    }

    /* نقل قول */
    .ck-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }

    /* کد */
    .ck-content pre {
        padding: 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    /* بیشتر کاهش فاصله از کناره‌ها */
    .ck-content {
        padding: 0 0.25rem;
    }

    .ck-content h1 {
        font-size: 1.4rem;
    }

    .ck-content h2 {
        font-size: 1.2rem;
    }

    .ck-content h3 {
        font-size: 1.1rem;
    }

    .ck-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* مخفی کردن افکت‌های hover در موبایل */
    .ck-content img:hover {
        transform: none;
    }

    /* جدول‌ها */
    .ck-content table {
        font-size: 0.85rem;
    }

    .ck-content th,
    .ck-content td {
        padding: 0.5rem 0.3rem;
    }
}

/* ===== انیمیشن‌های ملایم ===== */
.ck-content img,
.ck-content iframe,
.ck-content table {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== بهبود خوانایی برای متن‌های بلند ===== */
.ck-content {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* هایلایت متن انتخاب شده */
.ck-content ::selection {
    background-color: rgba(52, 152, 219, 0.3);
    color: #2c3e50;
}

.dark-mode .ck-content ::selection {
    background-color: rgba(77, 168, 255, 0.3);
    color: #ecf0f1;
}

/* ===== دسترسی ===== */
/* تضمین کنتراست مناسب */
.ck-content {
    color: #333;
    background-color: #fff;
}

.ck-content a:focus-visible {
    outline: 3px solid #3498db;
    outline-offset: 2px;
}

/* مطمئن شو همه interactive elements قابل focus هستند */
.ck-content button:focus,
.ck-content input:focus,
.ck-content select:focus,
.ck-content textarea:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}
