@keyframes dtr-dot-pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.7);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.dtr-menu-dot {
    font-size: 8px;
    display: inline-block;
    animation: dtr-dot-pulse 1.8s ease-in-out infinite;
    color: #fff;
}

/* هر آیتم با تأخیر متفاوت — چشمک نزنن همزمان */
.dtr-top-menu-wrap a:nth-child(1) .dtr-menu-dot {
    animation-delay: 0s;
}

.dtr-top-menu-wrap a:nth-child(2) .dtr-menu-dot {
    animation-delay: 0.3s;
}

.dtr-top-menu-wrap a:nth-child(3) .dtr-menu-dot {
    animation-delay: 0.6s;
}

.dtr-top-menu-wrap a:nth-child(4) .dtr-menu-dot {
    animation-delay: 0.9s;
}

.dtr-top-menu-wrap a:nth-child(5) .dtr-menu-dot {
    animation-delay: 1.2s;
}

.dtr-top-menu-wrap a:nth-child(6) .dtr-menu-dot {
    animation-delay: 1.5s;
}

/* ===========================================
   موبایل استایل‌های اختصاصی دکترتو
   فقط برای صفحه‌نمایش‌های زیر ۷۶۸px
   =========================================== */

/* ===== متغیرها ===== */
:root {
    --dtr-blue: #1565C0;
    --dtr-blue-dark: #0d3b8c;
    --dtr-gold: #F9A825;
    --dtr-pink: #e91e63;
    --dtr-radius: 16px;
}

/* ===== ریست موبایل ===== */
@media (max-width: 768px) {
    * {
        box-sizing: border-box;
    }

    body {
        overflow-x: hidden;
    }
}

/* ===== هدر دسکتاپ / موبایل ===== */

/* پیش‌فرض: هدر دسکتاپ نمایش داده می‌شه، موبایل مخفیه */
.dtr-desktop-header {
    display: block;
}

.dtr-mobile-header {
    display: none;
}

@media (max-width: 768px) {

    /* روی موبایل: هدر دسکتاپ مخفی، موبایل نمایش داده می‌شه */
    .dtr-desktop-header {
        display: none !important;
    }

    .dtr-mobile-header {
        display: flex !important;
        position: sticky;
        top: 0;
        z-index: 999;
        background: #fff;
        padding: 12px 16px;
        align-items: center;
        justify-content: space-between;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        flex-direction: row-reverse;
    }
}

.dtr-mobile-header .dtr-mob-logo {
    display: flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dtr-mob-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.dtr-mob-icon-btn svg {
    width: 24px;
    height: 24px;
}

/* ===== مودال سرچ ===== */
.dtr-search-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1100;
    background: rgba(0, 0, 0, 0.5);
    align-items: flex-start;
    justify-content: center;
}

.dtr-search-modal.active {
    display: flex;
}

.dtr-search-modal-box {
    background: #fff;
    width: 100%;
    padding: 20px 16px;
    border-radius: 0 0 20px 20px;
    direction: rtl;
}

.dtr-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.dtr-search-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
}

.dtr-search-close-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 22px;
    color: #666;
    padding: 4px 8px;
    line-height: 1;
}

.dtr-search-input-wrap {
    display: flex;
    align-items: center;
    border: 1.5px solid #E0E8FF;
    border-radius: 12px;
    padding: 10px 14px;
    gap: 10px;
    background: #F8FAFF;
}

.dtr-search-input-wrap input {
    flex: 1;
    border: none;
    background: none;
    font-size: 15px;
    font-family: 'yekanbakh', Tahoma, sans-serif;
    direction: rtl;
    outline: none;
    color: #333;
}

.dtr-search-input-wrap svg {
    width: 20px;
    height: 20px;
    stroke: var(--dtr-blue);
    flex-shrink: 0;
}

/* ===== منوی همبرگری ===== */
.dtr-hamburger-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, 0.4);
}

.dtr-hamburger-overlay.active {
    display: block;
}

.dtr-hamburger-drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: #fff;
    z-index: 1051;
    transition: right 0.3s ease;
    direction: rtl;
    overflow-y: auto;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.15);
}

.dtr-hamburger-drawer.active {
    right: 0;
}

.dtr-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid #f0f0f0;
}

.dtr-drawer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.dtr-drawer-logo-text span:first-child {
    display: block;
    color: var(--dtr-blue);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.dtr-drawer-logo-text span:last-child {
    display: block;
    color: var(--dtr-gold);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
}

.dtr-drawer-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 24px;
    color: #666;
    padding: 4px;
    line-height: 1;
}

.dtr-drawer-nav {
    padding: 12px 0;
    direction: ltr;
}

.dtr-drawer-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    color: #1a1a2e;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
}

.dtr-drawer-item:hover {
    background: #f8faff;
}

.dtr-drawer-item .dtr-drawer-arrow {
    color: #aaa;
    font-size: 18px;
    transition: transform 0.2s;
}

.dtr-drawer-item.open .dtr-drawer-arrow {
    transform: rotate(90deg);
}

.dtr-drawer-submenu {
    display: none;
    background: #f8faff;
    padding: 4px 0;
}

.dtr-drawer-submenu.open {
    display: block;
}

.dtr-drawer-submenu a {
    display: block;
    padding: 11px 32px;
    color: #444;
    font-size: 14px;
    text-decoration: none;
    border-bottom: 1px solid #eef0f8;
}

.dtr-drawer-submenu a:hover {
    color: var(--dtr-blue);
}

/* ===== هیرو موبایل ===== */
@media (max-width: 768px) {
    .dtr-hero-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-template-rows: auto auto auto !important;
        gap: 10px !important;
    }

    .dtr-hero-grid a:nth-child(2) {
        grid-column: 1 / -1 !important;
        grid-row: 2 !important;
        order: 0;
    }

    /* کارت‌های اول و سوم - ردیف اول (بالا) */
    .dtr-hero-grid a:nth-child(1) {
        grid-column: 1 !important;
        grid-row: 1 !important;
    }

    .dtr-hero-grid a:nth-child(3) {
        grid-column: 2 !important;
        grid-row: 1 !important;
    }

    /* کارت‌های چهارم و پنجم - ردیف سوم (پایین) */
    .dtr-hero-grid a:nth-child(4) {
        grid-column: 1 !important;
        grid-row: 3 !important;
    }

    .dtr-hero-grid a:nth-child(5) {
        grid-column: 2 !important;
        grid-row: 3 !important;
    }

    .dtr-hero-grid a>div {
        min-height: 160px !important;
    }

    /* کارت بزرگ وسط - ارتفاع بیشتر */
    .dtr-hero-grid a:nth-child(2)>div {
        min-height: 250px !important;
    }
}

/* ===== دسته‌بندی‌های آیکونی - کارسل تمام‌عرض موبایل ===== */
@media (max-width: 768px) {

    /* wrapper کارسل */
    .dtr-categories-grid {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow: hidden !important;
        gap: 0 !important;
        padding-bottom: 0 !important;
        justify-content: flex-start !important;
        scroll-snap-type: none !important;
        position: relative;
        width: 100%;
    }

    /* هر آیتم تمام عرض */
    .dtr-cat-item {
        min-width: 100% !important;
        width: 100% !important;
        flex-shrink: 0 !important;
        scroll-snap-align: none !important;
        transition: transform 0.4s ease;
        text-align: center;
        padding: 20px 0 10px;
    }

    /* باکس آیکون بزرگ‌تر */
    .dtr-cat-item .dtr-cat-icon-box {
        background: transparent !important;
        border-radius: 0 !important;
        padding: 10px !important;
        margin-bottom: 16px !important;
    }

    /* آیکون خیلی بزرگ‌تر */
    .dtr-cat-item .dtr-cat-icon-box>div {
        width: 160px !important;
        height: 160px !important;
        margin: 0 auto !important;
    }

    .dtr-cat-item svg {
        width: 80px !important;
        height: 80px !important;
    }

    /* اسم دسته‌بندی */
    .dtr-cat-item>a>div>div:last-child,
    .dtr-cat-item div:last-child {
        font-size: 16px !important;
        font-weight: 700 !important;
        color: #1a1a2e !important;
        margin-top: 8px;
    }

    /* دات‌های pagination */
    .dtr-categories-dots {
        display: flex !important;
        justify-content: center;
        gap: 7px;
        margin-top: 16px;
        padding-bottom: 8px;
    }

    .dtr-categories-dots span {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: background 0.2s;
        display: inline-block;
    }

    .dtr-categories-dots span.active {
        background: #888;
    }
}

/* دات‌ها روی دسکتاپ مخفی */
.dtr-categories-dots {
    display: none;
}

/* ===== گرید مطالب موبایل ===== */
@media (max-width: 768px) {
    .dtr-posts-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* کارت عمودی - عکس بالا، متن پایین */
    .dtr-post-card {
        flex-direction: column !important;
        border-radius: 16px !important;
        overflow: hidden !important;
    }

    /* عکس بالا - تمام عرض */
    .dtr-post-card-img {
        width: 100% !important;
        height: 180px !important;
        flex-shrink: 0 !important;
        order: -1 !important;
    }

    .dtr-post-card-img img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }

    /* متن زیر عکس */
    .dtr-post-card>div:first-child {
        padding: 14px 16px !important;
    }

    .dtr-post-card h3 {
        font-size: 16px !important;
        margin-bottom: 6px !important;
    }

    .dtr-post-card p {
        font-size: 13px !important;
        -webkit-line-clamp: 3;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* ===== جدیدترین مطالب - کارت بزرگ موبایل ===== */
@media (max-width: 768px) {
    .dtr-latest-big-card {
        flex-direction: column !important;
    }

    .dtr-latest-big-card img {
        width: 100% !important;
        height: 200px !important;
        object-fit: cover;
    }
}

/* ===== بخش علائم + دکترها - موبایل ===== */
@media (max-width: 768px) {
    .dtr-doctors-symptoms-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* عنوان دکترها */
    .dtr-doctors-header-row {
        flex-direction: column-reverse !important;
        align-items: flex-start !important;
        gap: 0 !important;
        margin-bottom: 15px !important;
    }

    /* دکمه صورتی «لیست دکترها» — مخفی در بالا */
    .dtr-doctors-header-row a {
        display: none !important;
    }

    /* دکمه پایین لیست دکترها - تمام عرض */
    .dtr-doctors-bottom-btn {
        display: block !important;
        width: 80% !important;
        text-align: center !important;
        margin-top: 16px !important;
        background: #e91e63 !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        padding: 7px 20px !important;
        border-radius: 15px !important;
        position: relative;
        margin-right: auto;
        margin-left: auto;
    }

    .dtr-doctors-header-row h2 {
        font-size: 18px !important;
        margin: 0 !important;
    }
}

/* دکمه پایین روی دسکتاپ مخفی */
.dtr-doctors-bottom-btn {
    display: none;
}

/* ===== بنر بالا موبایل ===== */
@media (max-width: 768px) {
    .dtr-top-banner {
        font-size: 12px !important;
        padding: 8px 12px !important;
        gap: 8px !important;
    }

    .dtr-top-banner a {
        font-size: 12px !important;
        padding: 5px 12px !important;
    }
}

/* ===== نوار آبی موبایل ===== */
@media (max-width: 768px) {
    .dtr-blue-bar-inner {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
        padding: 6px !important;
    }

    .dtr-top-menu-wrap {
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .dtr-top-menu-wrap a {
        font-size: 12px !important;
    }
}

/* ===== صفحه همه مطالب موبایل ===== */
@media (max-width: 768px) {
    .dtr-all-articles-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .dtr-all-articles-grid .dtr-post-card {
        flex-direction: column !important;
    }

    .dtr-all-articles-grid .dtr-post-card-img {
        width: 100% !important;
        height: 180px !important;
        order: -1 !important;
    }

    .dtr-all-articles-grid .dtr-post-card-img img {
        width: 100% !important;
        height: 180px !important;
        object-fit: cover !important;
        display: block !important;
    }
}

dtr-mob-icon-btn:focus,
dtr-mob-icon-btn:hover,
dtr-mob-icon-btn:focus,
dtr-mob-icon-btn:hover,
button:focus,
button:hover{
background-color: #fff !important;
}

/* ===== ناوبری الفبایی موبایل ===== */
@media (max-width: 768px) {
    .dtr-alpha-wrap {
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        padding-bottom: 8px;
    }

    .dtr-alpha-wrap::-webkit-scrollbar {
        display: none;
    }
}

@media (max-width: 768px) {
    
}

@media (max-width: 768px) {
    .dtr-categories-grid{
        background-color: #f5f5f5;
    }
}