/* ==========================================================================
   Dr. Hoshyar Homepage — Refactored Stylesheet
   Scoped under .drh-home to prevent any theme leak.
   --------------------------------------------------------------------------
   Design tokens (palette, spacing, breakpoints) are centralized as CSS
   custom properties on .drh-home so every section shares one source of
   truth. This fixes the chaotic colors, inconsistent spacing and uneven
   responsive behavior reported across the original build.
   ========================================================================== */

/* ---------- Design tokens ---------- */
.drh-home {
    /* Brand palette — one cohesive medical/dental scheme */
    --drh-primary:        #0e7490;  /* deep teal */
    --drh-primary-dark:   #0c4a5e;  /* navy teal */
    --drh-primary-light:  #e0f2f8;  /* very light teal surface */
    --drh-gold:           #c9a14a;  /* warm brand gold (logo accent) */
    --drh-gold-light:     #f6efde;
    --drh-success:        #16a34a;  /* CTA green */
    --drh-success-dark:   #15803d;
    --drh-accent:         #d97706;  /* amber — replaces random oranges */
    --drh-accent-light:   #fef3e6;
    --drh-rose:           #be123c;  /* used sparingly for urgency */
    --drh-ink:            #0f172a;  /* near-black text */
    --drh-text:           #1f2937;
    --drh-muted:          #6b7280;
    --drh-faint:          #94a3b8;
    --drh-line:           #e5e7eb;
    --drh-line-soft:      #eef2f5;
    --drh-surface:        #ffffff;
    --drh-surface-1:      #f7fafb;  /* page surface tint */
    --drh-surface-2:      #f0f7fa;  /* light teal section bg */
    --drh-surface-3:      #eef2f6;  /* light gray section bg */
    --drh-dark:           #0c4a5e;  /* dark sections (cases, footer) */

    /* Spacing scale (4px base) */
    --drh-gap-xs: 4px;
    --drh-gap-sm: 8px;
    --drh-gap-md: 16px;
    --drh-gap-lg: 24px;
    --drh-gap-xl: 40px;
    --drh-gap-2xl: 64px;

    /* Section rhythm */
    --drh-section-py: 80px;
    --drh-section-py-tablet: 56px;
    --drh-section-py-mobile: 40px;

    /* Layout */
    --drh-container: 1240px;
    --drh-container-px: 24px;

    /* Radii */
    --drh-radius-sm: 8px;
    --drh-radius:    14px;
    --drh-radius-lg: 20px;
    --drh-radius-pill: 999px;

    /* Shadows */
    --drh-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --drh-shadow:    0 8px 24px rgba(15, 23, 42, 0.06);
    --drh-shadow-lg: 0 18px 40px rgba(15, 23, 42, 0.10);

    /* Mobile sticky consult bar height (kept in sync with .footer-cards-container) */
    --drh-consult-bar-h: 0px;
}

/* ---------- Reset ---------- */
.drh-home, .drh-home * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.drh-home {
    font-family: 'Vazir', 'Vazirmatn', Tahoma, sans-serif;
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    background-color: var(--drh-surface);
    color: var(--drh-text);
    /* `clip` (not `hidden`) prevents horizontal overflow WITHOUT creating a
       scroll container, so the sticky header keeps sticking to the viewport.
       Older browsers that lack `clip` fall back to the hidden rule below. */
    overflow-x: hidden;
    overflow-x: clip;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.drh-home .container,
.drh-home .container-footer {
    max-width: var(--drh-container);
    margin: 0 auto;
    padding: 0 var(--drh-container-px);
    width: 100%;
}
.drh-home a {
    text-decoration: none;
    color: inherit;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.drh-home ul { list-style: none; }
.drh-home img { max-width: 100%; height: auto; display: block; }

/* متنِ داخل SVG ها همگی لاتین‌اند (نام برندها، عنوان ژورنال‌ها، DR. HOSHYAR ...)
   ولی `direction: rtl` ریشه را به ارث می‌بردند و از مختصات x به سمت چپ رندر
   می‌شدند؛ نتیجه، لوگوهای پیش‌فرضِ درهم‌رفته و بریده بود (به‌ویژه در بخش
   «برندهای همکار» و جلد «مقالات چاپ‌شده»). */
.drh-home svg text { direction: ltr; unicode-bidi: isolate; }

/* ==========================================================================
   چیدمان متوازن بر اساس تعداد آیتم‌ها (Balanced auto-grid)

   قبلاً همهٔ گریدها تعداد ستون ثابت داشتند (مثلاً همیشه repeat(3, 1fr)). به
   محض اینکه مدیر سایت از پنل تعداد کارت‌ها را از ۶ به ۴ یا ۳ تغییر می‌داد،
   ردیف آخر ناقص می‌ماند و آیتم‌های باقی‌مانده به یک لبه می‌چسبیدند.

   حالا قالب، تعداد واقعی آیتم‌ها را با `--drh-count` به کانتینر می‌دهد و
   تعداد ستون برابر است با min(حداکثر ستونِ آن بریک‌پوینت، تعداد آیتم‌ها):
     • آیتم‌ها کمتر از ظرفیت ردیف  → دقیقاً به همان تعداد ستون ساخته می‌شود.
     • آیتم‌ها بیشتر               → می‌شکند و ردیف آخر وسط‌چین می‌ماند.
   برای تغییر حداکثر ستون‌ها در هر بریک‌پوینت فقط کافی است --drh-max عوض شود.
   ========================================================================== */
.drh-home .drh-autogrid,
.drh-home .features-grid,
.drh-home .services-grid-side,
.drh-home .pricing-grid {
    --drh-max: 4;
    --drh-count: 99;    /* بدون --drh-count (مثلاً نسخهٔ استاتیک) → همان رفتار ستون ثابت قبلی */
    --drh-cols: min(var(--drh-max), var(--drh-count));
    --drh-gap: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: var(--drh-gap);
}
.drh-home .drh-autogrid > *,
.drh-home .features-grid > *,
.drh-home .services-grid-side > *,
.drh-home .pricing-grid > * {
    flex: 0 1 240px;    /* fallback برای مرورگرهای قدیمی بدون پشتیبانی از min() */
    flex-basis: calc((100% - (var(--drh-cols) - 1) * var(--drh-gap)) / var(--drh-cols));
    /* سقف عرض، تا با ۱ یا ۲ آیتم کارت‌ها بیش از حد کشیده نشوند؛
       در این حالت ردیف وسط‌چین می‌ماند. */
    max-width: min(100%, var(--drh-item-max, 100%));
    min-width: 0;
}
.drh-home h1, .drh-home h2, .drh-home h3, .drh-home h4 {
    color: var(--drh-ink);
    line-height: 1.3;
    font-weight: 800;
}
.drh-home p { color: var(--drh-text); }

/* Shared section-title style — the right-bordered headline used in most sections */
.drh-home .section-title-bar {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--drh-ink);
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
    margin-bottom: var(--drh-gap-xl);
    line-height: 1.4;
}

/* Shared button styles */
.drh-home .btn {
    font-family: inherit;
    padding: 12px 26px;
    border-radius: var(--drh-radius-pill);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.drh-home .btn-primary {
    background-color: var(--drh-success);
    color: #fff;
    box-shadow: 0 6px 16px rgba(22, 163, 74, 0.22);
}
.drh-home .btn-primary:hover {
    background-color: var(--drh-success-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(22, 163, 74, 0.30);
}
.drh-home .btn-secondary {
    background-color: transparent;
    color: var(--drh-ink);
    border: 1.5px solid var(--drh-primary);
}
.drh-home .btn-secondary:hover {
    background-color: var(--drh-primary-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   1) Header + Hero
   ========================================================================== */
/* ==========================================================================
   1) Header — Luxury RTL
   ========================================================================== */
.drh-home .site-header {
    background: linear-gradient(135deg, #082f49 0%, var(--drh-dark) 50%, #0a3d5c 100%);
    color: #fff;
    padding: 0;
    font-size: 15px;
    position: sticky;
    top: 0;
    z-index: 500;
    width: 100%;
    border-bottom: 2px solid rgba(201, 161, 74, 0.25);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}
/* Condensed state once the page is scrolled (added by JS) */
.drh-home .site-header.is-scrolled {
    box-shadow: 0 10px 30px rgba(8, 47, 73, 0.35);
    background: linear-gradient(135deg, #06283d 0%, #0a3f52 50%, #072f47 100%);
}
.drh-home .site-header.is-scrolled .header-container { padding-top: 12px; padding-bottom: 12px; }
.drh-home .site-header.is-scrolled .brand-logo svg { height: 44px; }
.drh-home .site-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--drh-gold), transparent);
    opacity: 0.5;
}
.drh-home .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    padding: 18px 36px;
}
.drh-home .brand-logo {
    /* Pinned to the RTL start (visual right) and never shrinks. */
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.drh-home .brand-logo svg { height: 48px; width: auto; max-width: 200px; }
.drh-home .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 42px;
    padding: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
}
.drh-home .nav-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    border-radius: 2px;
    background-color: #fff;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.drh-home .site-header.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.drh-home .site-header.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.drh-home .site-header.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drh-home .main-nav {
    /* Centered nav that is allowed to SHRINK (min-width:0) so it never forces
       the logo or the contact block out of the header on narrower desktops. */
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    margin: 0 12px;
}
.drh-home .main-nav .nav-menu {
    display: flex;
    gap: 2px;
    /* Wrap to a second line if space is tight instead of overflowing. */
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}
.drh-home .main-nav .nav-menu li a {
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    color: rgba(255,255,255,0.85);
    padding: 7px 9px;
    border-radius: 8px;
    transition: all 0.25s ease;
    display: block;
}
.drh-home .main-nav .nav-menu li a:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}
.drh-home .header-left-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}
.drh-home .contact-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 11px;
    background: rgba(255,255,255,0.07);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
    cursor: default;
}
.drh-home .contact-item:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(201, 161, 74, 0.35);
    transform: translateY(-1px);
}
/* آیتم تماسِ لینک‌دار (نشان/واتساپ/تلفن): خودِ کارت کلیک‌پذیر می‌شود،
   بنابراین نیازی به چاپ آدرس به‌صورت متن زیر آن نیست. */
.drh-home a.contact-item {
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.drh-home a.contact-item:hover .contact-value { color: var(--drh-gold, #d4af37); }
.drh-home a.contact-item:focus-visible {
    outline: 2px solid var(--drh-gold, #d4af37);
    outline-offset: 2px;
}
.drh-home .contact-info {
    display: flex;
    flex-direction: column;
    text-align: right;
}
.drh-home .contact-info.text-right { text-align: right; }
.drh-home .contact-label {
    font-size: 10.5px;
    color: rgba(255,255,255,0.5);
    line-height: 1.2;
}
.drh-home .contact-value {
    font-weight: 700;
    letter-spacing: 0.2px;
    font-size: 13px;
    color: #fff;
    direction: ltr;
    text-align: right;
    unicode-bidi: plaintext;
}
.drh-home .header-icon {
    width: 20px;
    height: 20px;
    fill: var(--drh-gold);
    flex-shrink: 0;
}

/* Hero */
.drh-home .hero-section {
    background: linear-gradient(135deg, var(--drh-primary-light) 0%, #ffffff 60%);
    position: relative;
    padding: 72px 0 100px;
    overflow: visible;
}
.drh-home .hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}
.drh-home .hero-image-area {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 2;
    order: 2;
}
.drh-home .doctor-avatar-svg {
    width: 95%;
    max-width: 520px;
    height: auto;
}
.drh-home .hero-text-area {
    flex: 1.2;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
    order: 1;
}
.drh-home .doc-name-fa {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 800;
    color: var(--drh-ink);
    margin-bottom: 6px;
}
.drh-home .doc-name-en {
    font-size: 16px;
    color: var(--drh-muted);
    font-family: sans-serif;
    margin-bottom: 22px;
}
.drh-home .doc-specialty {
    font-size: clamp(18px, 2vw, 24px);
    color: var(--drh-accent);
    font-weight: 800;
    margin-bottom: 18px;
}
.drh-home .specialty-list {
    font-size: 14.5px;
    color: #334155;
    line-height: 2;
    margin-bottom: 28px;
}
.drh-home .specialty-list p { color: #334155; }
.drh-home .hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.drh-home .hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1;
    pointer-events: none;
}
.drh-home .slider-wrapper {
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 100%;
    z-index: 10;
}
.drh-home .slider-container {
    display: flex;
    align-items: center;
    /* وسط‌چین تا با ۲، ۳ یا ۵ کارت هم ردیف متوازن بماند (قبلاً flex-end بود و
       با کم شدن کارت‌ها همه به یک لبه می‌چسبیدند). */
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.drh-home .treatment-card {
    background-color: #fff;
    border-radius: var(--drh-radius);
    width: 250px;
    height: 108px;
    padding: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--drh-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--drh-line-soft);
    flex-shrink: 0;
}
.drh-home .treatment-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--drh-shadow-lg);
    border-color: var(--drh-primary-light);
}
.drh-home .card-info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    flex: 1;
    padding-left: 8px;
}
.drh-home .card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--drh-ink);
    line-height: 1.5;
}
.drh-home .card-link {
    font-size: 12.5px;
    color: var(--drh-accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.drh-home .card-image-box {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-color: var(--drh-primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    flex-shrink: 0;
}
.drh-home .card-image-box svg { width: 100%; height: 100%; }
.drh-home .slider-arrow {
    background-color: #fff;
    border: 1px solid var(--drh-line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    box-shadow: var(--drh-shadow-sm);
    transition: all 0.25s ease;
    flex-shrink: 0;
}
.drh-home .slider-arrow:hover {
    background-color: var(--drh-primary);
    transform: scale(1.06);
}
.drh-home .slider-arrow:hover svg { fill: #fff; }
.drh-home .slider-arrow svg { width: 20px; height: 20px; fill: var(--drh-ink); }

/* ==========================================================================
   2) About / Resume + Features
   ========================================================================== */
.drh-home .clinic-wrapper {
    color: var(--drh-text);
    padding: 110px var(--drh-container-px) 70px;
    max-width: var(--drh-container);
    margin: 0 auto;
}
.drh-home .resume-flex-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    margin-bottom: 64px;
}
.drh-home .resume-text-block { flex: 1.6; }
.drh-home .resume-tagline {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--drh-primary);
    display: block;
    margin-bottom: 6px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.drh-home .resume-main-title {
    font-size: clamp(22px, 2.6vw, 32px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 24px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
}
.drh-home .resume-items-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--drh-line-soft);
    font-size: 14.5px;
    color: #374151;
    line-height: 1.7;
    transition: background 0.2s, padding 0.2s;
}
.drh-home .resume-items-list li:last-child { border-bottom: none; }
.drh-home .resume-items-list li::before {
    content: '✦';
    color: var(--drh-gold);
    font-size: 16px;
    flex-shrink: 0;
    margin-left: 6px;
    line-height: 1.7;
}
.drh-home .resume-items-list li:hover {
    background-color: var(--drh-surface-2);
    border-radius: 8px;
    padding-right: 12px;
}
.drh-home .resume-svg-block {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.drh-home .svg-vector-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1.35;
    background-color: var(--drh-surface-2);
    border-radius: var(--drh-radius);
    box-shadow: var(--drh-shadow-sm);
    padding: 20px;
}
.drh-home .features-main-title {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 32px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
}
.drh-home .features-grid {
    --drh-max: 4;
    --drh-gap: 22px;
    --drh-item-max: 440px;
}
.drh-home .feature-box {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 18px;
    border-radius: var(--drh-radius);
    transition: all 0.3s ease;
    background-color: var(--drh-surface-1);
    border: 1px solid var(--drh-line-soft);
}
.drh-home .feature-box:hover {
    background-color: #fff;
    border-color: var(--drh-line);
    box-shadow: var(--drh-shadow);
    transform: translateY(-3px);
}
.drh-home .feature-icon { width: 42px; height: 42px; flex-shrink: 0; }
.drh-home .feature-content h3 {
    font-size: 16px;
    color: var(--drh-primary);
    margin: 0 0 6px;
}
.drh-home .feature-content p {
    font-size: 13.5px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    text-align: justify;
}

/* ==========================================================================
   3) Cases (Before/After) slider
   ========================================================================== */
.drh-home .cases-section {
    background-color: var(--drh-dark);
    padding: var(--drh-section-py) var(--drh-container-px);
    direction: rtl;
}
.drh-home .cases-container { max-width: 1200px; margin: 0 auto; }
.drh-home .cases-header { text-align: right; margin-bottom: 36px; }
.drh-home .cases-main-title {
    color: #fff;
    font-size: clamp(20px, 2.2vw, 26px);
    font-weight: 800;
    margin: 0;
    padding-right: 14px;
    border-right: 4px solid var(--drh-gold);
    display: inline-block;
}
.drh-home .slider-wrapper-cases {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}
.drh-home .slider-viewport {
    overflow: hidden;
    width: 100%;
}
.drh-home .slider-track {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
}
/* وقتی تعداد نمونه‌ها از ظرفیت یک صفحه کمتر است چیزی برای اسکرول وجود ندارد:
   به‌جای چسبیدن به یک لبه، وسط‌چین می‌شوند (کلاس از drh-home.js اعمال می‌شود). */
.drh-home .slider-track.is-static {
    justify-content: center;
    transform: none !important;
}
.drh-home .slide-case {
    flex: 0 0 calc(20% - 12.8px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--drh-radius-sm);
    overflow: hidden;
    background-color: #0c2535;
    aspect-ratio: 5 / 6;
}
.drh-home .slide-case img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 5/6;
}
.drh-home .slider-nav-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.drh-home .slider-nav-btn:hover {
    background: var(--drh-gold);
    border-color: var(--drh-gold);
}
.drh-home .slider-dots {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.drh-home .dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255,255,255,0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.drh-home .dot.active {
    background-color: var(--drh-gold);
    transform: scale(1.25);
}

/* ==========================================================================
   4) Services
   ========================================================================== */
.drh-home .services-section {
    background-color: var(--drh-surface-2);
    padding: var(--drh-section-py) var(--drh-container-px);
    direction: rtl;
    overflow: hidden;
}
.drh-home .services-container {
    max-width: var(--drh-container);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 50px;
}
.drh-home .services-text-side {
    flex: 1;
    position: sticky;
    top: 32px;
}
.drh-home .services-main-title {
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 18px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
}
.drh-home .services-description {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.85;
    margin-bottom: 24px;
    text-align: justify;
}
.drh-home .services-list li {
    position: relative;
    padding-right: 18px;
    margin-bottom: 14px;
    font-size: 14.5px;
    color: #374151;
    line-height: 1.8;
}
.drh-home .services-list li::before {
    content: '•';
    position: absolute;
    right: 0;
    top: -2px;
    font-size: 20px;
    color: var(--drh-primary);
}
.drh-home .services-list li strong { color: var(--drh-ink); font-weight: 800; }
.drh-home .services-grid-side {
    flex: 1.3;
    --drh-max: 3;
    --drh-gap: 18px;
    --drh-item-max: 340px;
    align-content: flex-start;
}
.drh-home .service-card {
    border-radius: var(--drh-radius);
    padding: 26px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: var(--drh-shadow-sm);
    cursor: pointer;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.35s ease;
}
.drh-home .service-card.in-view { opacity: 1; transform: translateY(0); }
.drh-home .service-card.in-view:hover {
    transform: translateY(-6px);
    box-shadow: var(--drh-shadow-lg);
}
.drh-home .service-card:hover .service-icon svg {
    transform: scale(1.12) translateY(-4px);
}
/* Unified pastel card backgrounds — kept soft but coordinated */
.drh-home .card-blue    { background-color: #e0f2f8; }  /* primary tint */
.drh-home .card-beige   { background-color: #f7efd9; }  /* gold tint */
.drh-home .card-purple  { background-color: #ede7f6; }
.drh-home .card-pink    { background-color: #fbe4e6; }
.drh-home .card-green   { background-color: #e3f5e7; }
.drh-home .card-orange  { background-color: #fde9d5; }
.drh-home .service-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.drh-home .service-icon svg {
    width: 100%;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.drh-home .service-card-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 10px;
    line-height: 1.4;
}
.drh-home .service-card-desc {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================================================
   5) Articles (Books slider)
   ========================================================================== */
.drh-home .articles-section {
    background-color: var(--drh-surface-3);
    padding: var(--drh-section-py) var(--drh-container-px);
    direction: rtl;
    overflow: hidden;
}
.drh-home .articles-container {
    max-width: var(--drh-container);
    margin: 0 auto;
    display: flex;
    direction: rtl;
    align-items: stretch;
    justify-content: space-between;
    gap: 50px;
}
.drh-home .articles-slider-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.drh-home .books-slider-wrapper {
    position: relative;
    width: 100%;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}
.drh-home .book-slide {
    position: absolute;
    width: 220px;
    height: 310px;
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0,0,0,0.18);
    background-color: #fff;
    overflow: hidden;
}
.drh-home .book-slide svg { width: 100%; height: 100%; display: block; }
.drh-home .book-slide.active {
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 3;
    opacity: 1;
    box-shadow: 0 22px 48px rgba(0,0,0,0.28);
}
.drh-home .book-slide.prev {
    transform: translateX(60%) scale(0.85) rotateY(-25deg);
    z-index: 1;
    opacity: 0.65;
}
.drh-home .book-slide.next {
    transform: translateX(-60%) scale(0.85) rotateY(25deg);
    z-index: 1;
    opacity: 0.65;
}
.drh-home .book-slide.hidden {
    transform: translateX(0) scale(0.5) translateZ(-200px);
    z-index: 0;
    opacity: 0;
    pointer-events: none;
}
.drh-home .book-dots {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.drh-home .book-dot {
    width: 7px;
    height: 7px;
    background-color: var(--drh-faint);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
}
.drh-home .book-dot.active { background-color: var(--drh-primary); transform: scale(1.3); }
.drh-home .articles-text-col {
    flex: 1.3;
    display: flex;
    flex-direction: column;
}
.drh-home .articles-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 28px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    align-self: flex-start;
}
.drh-home .articles-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}
.drh-home .article-bullet {
    color: var(--drh-primary);
    font-size: 18px;
    line-height: 1;
    margin-top: 2px;
    flex-shrink: 0;
}
.drh-home .article-text {
    direction: ltr;
    text-align: right;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: var(--drh-text);
    line-height: 1.7;
}
.drh-home .button-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: auto;
    padding-top: 22px;
}
.drh-home .btn-view-articles {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--drh-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 44px;
    border-radius: var(--drh-radius-pill);
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(14, 116, 144, 0.28);
}
.drh-home .btn-view-articles::before {
    content: '\2190';
    font-size: 18px;
    opacity: 0.8;
}
.drh-home .btn-view-articles:hover {
    background-color: var(--drh-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(14, 116, 144, 0.38);
}

/* ==========================================================================
   6) Pricing
   ========================================================================== */
.drh-home .pricing-section {
    background-color: var(--drh-primary-light);
    padding: var(--drh-section-py) var(--drh-container-px);
    direction: rtl;
    position: relative;
    overflow: hidden;
}
.drh-home .watermark-implant {
    position: absolute;
    left: 5%;
    top: 10%;
    width: 150px;
    opacity: 0.07;
    transform: rotate(-15deg);
    pointer-events: none;
    z-index: 0;
}
.drh-home .pricing-container {
    max-width: var(--drh-container);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.drh-home .pricing-main-title {
    font-size: clamp(20px, 2.4vw, 26px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 40px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
}
.drh-home .pricing-grid {
    --drh-max: 4;
    --drh-gap: 20px;
    --drh-item-max: 340px;
}
.drh-home .pricing-card {
    background-color: #fff;
    border-radius: var(--drh-radius);
    overflow: hidden;
    box-shadow: var(--drh-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.drh-home .pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--drh-shadow-lg);
}
.drh-home .card-header {
    background-color: var(--drh-primary-dark);
    color: #fff;
    padding: 18px 16px 0;
    text-align: center;
    min-height: 108px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-direction: column;
}
.drh-home .card-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    line-height: 1.5;
    color: #fff;
}
.drh-home .card-header span {
    font-size: 11.5px;
    opacity: 0.85;
    display: block;
    margin-top: 6px;
    color: #cbd5e1;
}
.drh-home .card-body {
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.drh-home .flag-box {
    width: 68px;
    height: 68px;
    margin: -48px auto 14px;
    background-color: #fff;
    border-radius: 50%;
    padding: 4px;
    box-shadow: var(--drh-shadow-sm);
    position: relative;
    z-index: 2;
}
.drh-home .flag-box svg { width: 100%; height: 100%; display: block; }
.drh-home .stars-container {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.drh-home .stars-container svg { width: 16px; height: 16px; }
.drh-home .divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--drh-muted);
    font-size: 11px;
    margin: 12px 0;
}
.drh-home .divider::before, .drh-home .divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--drh-line);
}
.drh-home .divider::before { margin-left: 10px; }
.drh-home .divider::after { margin-right: 10px; }
.drh-home .specialty-text {
    font-size: 12.5px;
    color: #374151;
    font-weight: 700;
    margin: 4px 0;
}
.drh-home .price-text {
    font-size: 14px;
    font-weight: 700;
    color: var(--drh-ink);
    margin: 4px 0;
}
.drh-home .total-price-box {
    background-color: var(--drh-primary);
    color: #fff;
    border-radius: 8px;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    margin-top: auto;
    margin-bottom: 6px;
}
.drh-home .per-unit-text {
    font-size: 11.5px;
    color: var(--drh-muted);
}

/* ==========================================================================
   7) Process (4-step timeline)
   ========================================================================== */
.drh-home .process-section {
    width: 100%;
    margin: 0;
    padding: var(--drh-section-py) var(--drh-container-px);
    background-color: var(--drh-surface-3);
}
.drh-home .section-title-process {
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    color: var(--drh-ink);
    margin-bottom: 56px;
}
.drh-home .timeline-container {
    display: flex;
    align-items: center;
    justify-content: center;
    /* بیش از ۴ گام دیگر از کادر بیرون نمی‌زند؛ ردیف بعدی وسط‌چین می‌شکند. */
    flex-wrap: wrap;
    gap: 80px 24px;
    position: relative;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
}
.drh-home .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 240px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    cursor: pointer;
}
.drh-home .step-item.top    { transform: translateY(-32px); }
.drh-home .step-item.bottom { transform: translateY(32px); }
.drh-home .step-item.top:hover    { transform: translateY(-42px); }
.drh-home .step-item.bottom:hover { transform: translateY(22px); }
.drh-home .step-item:hover .step-card {
    background-color: #fff;
    box-shadow: var(--drh-shadow);
    border-radius: var(--drh-radius);
    transform: scale(1.03);
}
.drh-home .step-item:hover .step-number {
    background-color: var(--drh-accent);
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(217, 119, 6, 0.32);
}
.drh-home .step-item:hover .icon-wrapper i { color: var(--drh-accent); }
.drh-home .step-card {
    padding: 22px 18px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}
.drh-home .icon-wrapper {
    font-size: 44px;
    color: var(--drh-primary);
    margin-bottom: 14px;
    transition: color 0.3s;
}
.drh-home .step-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--drh-ink);
    margin-bottom: 8px;
}
.drh-home .step-desc {
    font-size: 13.5px;
    color: var(--drh-muted);
    line-height: 1.7;
}
.drh-home .step-number {
    width: 52px;
    height: 52px;
    background-color: var(--drh-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(14, 116, 144, 0.25);
    transition: all 0.3s ease;
}
.drh-home .step-item.top .step-number { margin-top: 14px; }
.drh-home .step-item.bottom .step-number { margin-bottom: 14px; }

/* ==========================================================================
   8) Consultation (Bale app CTA)
   ========================================================================== */
.drh-home .consultation-section {
    padding: var(--drh-section-py) var(--drh-container-px);
    display: flex;
    justify-content: center;
    background-color: var(--drh-primary-light);
}
.drh-home .consultation-container {
    max-width: 1100px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}
.drh-home .image-column {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}
.drh-home .image-placeholder {
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    background-color: var(--drh-surface-1);
    border-radius: var(--drh-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--drh-shadow);
    border: 2px dashed var(--drh-faint);
    overflow: hidden;
}
/* توجه: این قانون قبلاً `display: none` داشت — بازمانده از نسخهٔ استاتیک که
   <img> فقط یک جای‌نگه‌دار پنهان بود. نتیجه این بود که هر تصویری که مدیر سایت
   از پنل آپلود می‌کرد، ذخیره می‌شد ولی روی سایت اصلاً دیده نمی‌شد. */
.drh-home .image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--drh-radius-lg);
    display: block;
}
/* با تصویر واقعی، حاشیهٔ نقطه‌چینِ «جای خالی» دیگر لازم نیست. */
.drh-home .image-placeholder.has-image {
    border-style: solid;
    border-color: transparent;
    background-color: transparent;
}
.drh-home .text-column {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.drh-home .main-title-consult {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 22px;
    padding-right: 14px;
    border-right: 4px solid var(--drh-primary);
    line-height: 1.35;
}
.drh-home .description-consult {
    font-size: 14.5px;
    color: var(--drh-text);
    line-height: 1.9;
    margin: 0 0 14px;
    text-align: justify;
}
.drh-home .description-consult strong { font-weight: 700; color: var(--drh-ink); }
.drh-home .btn-bale {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    background-color: #fff;
    padding: 12px 24px;
    border-radius: var(--drh-radius-pill);
    box-shadow: var(--drh-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--drh-line);
}
.drh-home .btn-bale:hover {
    transform: translateY(-3px);
    box-shadow: var(--drh-shadow);
}
.drh-home .btn-bale-icon {
    width: 36px;
    height: 36px;
    margin-left: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.drh-home .btn-bale-text {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.drh-home .btn-bale-text .top-text {
    font-size: 16px;
    font-weight: 800;
    color: var(--drh-success);
    margin-bottom: 2px;
}
.drh-home .btn-bale-text .bottom-text {
    font-size: 12px;
    font-weight: 400;
    color: var(--drh-muted);
}

/* ==========================================================================
   9) Team (Swiper)
   ========================================================================== */
.drh-home .team-section {
    max-width: 1050px;
    margin: 60px auto;
    padding: 0 var(--drh-container-px);
    background-color: transparent;
}
.drh-home .section-title-team {
    font-size: clamp(18px, 2.2vw, 22px);
    font-weight: 800;
    color: var(--drh-ink);
    margin-bottom: 32px;
    padding-right: 12px;
    border-right: 4px solid var(--drh-primary);
    display: inline-block;
    line-height: 1.3;
}
.drh-home .swiper-slide {
    background-color: #fff;
    border-radius: var(--drh-radius);
    overflow: hidden;
    box-sizing: border-box;
    padding: 20px 20px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--drh-shadow-sm);
    border: 1px solid var(--drh-line-soft);
    /* Swiper به اسلایدها `height: 100%` می‌دهد؛ نتیجه‌اش این بود که کارت به یک
       ارتفاع کوتاهِ محاسبه‌شده قفل می‌شد و کادر عکس (که فلکس‌آیتم است) له می‌شد —
       در موبایل عکس عملاً چند برابر کوچک‌تر از اندازهٔ واقعی‌اش دیده می‌شد.
       با `height: auto` ارتفاع کارت را محتوای واقعی (یعنی خود عکس) تعیین می‌کند. */
    height: auto;
}
.drh-home .card-header-team {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--drh-line-soft);
    padding-bottom: 10px;
}
.drh-home .doc-info {
    display: flex;
    flex-direction: column;
    text-align: left;
    direction: ltr;
}
.drh-home .doc-name {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--drh-ink);
    margin: 0;
}
.drh-home .doc-spec {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 11px;
    color: var(--drh-muted);
    margin: 0;
}
.drh-home .card-logo svg { width: 34px; height: 34px; fill: var(--drh-primary); }
/* کادر تصویر عضو تیم، «متناسب با خود تصویر».
   نه ارتفاع ثابت (تصویر قدی را می‌بُرید) و نه نسبت‌ابعاد تحمیلی مثل 3/4
   (تصویر را وسط کادر لِتِرباکس می‌کرد و کوچک نشان می‌داد — به‌ویژه در موبایل).
   حالا عرض کادر کامل است و ارتفاعش را خودِ عکس تعیین می‌کند. */
.drh-home .image-placeholder-team {
    width: 100%;
    min-height: 160px;   /* فقط وقتی تصویری آپلود نشده و آیکن جایگزین نمایش داده می‌شود */
    flex-shrink: 0;      /* هرگز توسط چیدمان ستونیِ کارت فشرده نشود */
    background-color: var(--drh-surface-1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
}
/* مثل بالا: `display: none` باعث می‌شد عکس آپلودشدهٔ اعضای تیم هرگز نمایش داده نشود. */
.drh-home .image-placeholder-team img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}
.drh-home .team-photo-fallback { width: 80px; height: 80px; }
.drh-home .staff-info { text-align: center; }
.drh-home .staff-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--drh-ink);
    margin: 0 0 4px;
}
.drh-home .staff-role {
    font-size: 13px;
    color: var(--drh-muted);
    margin: 0;
}
.drh-home .swiper-pagination { position: relative; margin-top: 26px; }
.drh-home .swiper-pagination-bullet {
    background-color: var(--drh-faint);
    width: 7px;
    height: 7px;
    opacity: 1;
}
.drh-home .swiper-pagination-bullet-active {
    background-color: var(--drh-primary);
    transform: scale(1.2);
}

/* ==========================================================================
   10) Brands
   ========================================================================== */
.drh-home .brands-section {
    background-color: var(--drh-surface-1);
    padding: 60px var(--drh-container-px) 70px;
    text-align: center;
    overflow: hidden;
    border-top: 1px solid var(--drh-line-soft);
    border-bottom: 1px solid var(--drh-line-soft);
}
.drh-home .brands-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.drh-home .brands-title {
    font-size: clamp(20px, 2.6vw, 28px);
    font-weight: 800;
    color: var(--drh-ink);
    margin: 0 0 16px;
}
.drh-home .brands-divider {
    width: 100%;
    max-width: 800px;
    height: 1px;
    background-color: var(--drh-line);
    margin: 0 auto 36px;
}
.drh-home .brands-logos-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
    width: 100%;
}
.drh-home .brand-item {
    width: 180px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(28px);
    animation: fadeInUp 0.7s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    filter: grayscale(1);
    transition: filter 0.3s ease;
    background: #fff;
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: var(--drh-shadow-sm);
    border: 1px solid var(--drh-line-soft);
}
.drh-home .brand-item:hover { filter: grayscale(0); transform: translateY(-4px); box-shadow: var(--drh-shadow); }
/* تأخیر پلکانی برای هر تعداد برند (قبلاً فقط تا ۴ مورد تعریف شده بود و
   برندهای پنجم به بعد بدون ترتیب ظاهر می‌شدند). قالب مقدار --drh-i را
   inline می‌دهد؛ nth-child زیر فقط پشتیبانِ نسخهٔ استاتیک است. */
.drh-home .brand-item:nth-child(1) { --drh-i: 0; }
.drh-home .brand-item:nth-child(2) { --drh-i: 1; }
.drh-home .brand-item:nth-child(3) { --drh-i: 2; }
.drh-home .brand-item:nth-child(4) { --drh-i: 3; }
.drh-home .brand-item:nth-child(5) { --drh-i: 4; }
.drh-home .brand-item:nth-child(6) { --drh-i: 5; }
.drh-home .brand-item:nth-child(7) { --drh-i: 6; }
.drh-home .brand-item:nth-child(8) { --drh-i: 7; }
.drh-home .brand-item { animation-delay: calc(0.1s + var(--drh-i, 0) * 0.15s); }
@keyframes fadeInUp {
    0%   { opacity: 0; transform: translateY(28px); }
    100% { opacity: 1; transform: translateY(0); }
}
.drh-home .brand-item svg {
    width: 100%;
    height: auto;
    max-height: 56px;
}
.drh-home .brand-item img {
    width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}

/* ==========================================================================
   11-12-13) Blog slider + Contact form + Footer
   ========================================================================== */
.drh-home .section-title-wrapper {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 22px;
    margin-top: 36px;
}
.drh-home .section-title-ft {
    font-size: clamp(18px, 2.2vw, 24px);
    font-weight: 700;
    color: var(--drh-ink);
    border-right: 5px solid var(--drh-primary);
    padding-right: 14px;
}
.drh-home .slider-container-ft {
    position: relative;
    background: #fff;
    border-radius: var(--drh-radius-lg);
    box-shadow: var(--drh-shadow-sm);
    padding: 22px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--drh-line-soft);
}
.drh-home .slides-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}
.drh-home .slide-ft {
    display: none;
    width: 100%;
    align-items: center;
    gap: 28px;
}
.drh-home .slide-ft.active { display: flex; }
.drh-home .slide-image-side {
    flex: 1.2;
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}
.drh-home .main-img-placeholder {
    width: 100%;
    max-width: 320px;
    height: 220px;
    background: linear-gradient(135deg, var(--drh-primary-light), #ffffff);
    border-radius: var(--drh-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--drh-muted);
    font-size: 14px;
    border: 1px solid var(--drh-line-soft);
    overflow: hidden;
}
.drh-home .badge-sidebar {
    width: 140px;
    border: 1px solid var(--drh-line);
    border-radius: var(--drh-radius);
    padding: 12px;
    text-align: center;
    background: var(--drh-surface-1);
}
.drh-home .badge-avatar {
    width: 58px;
    height: 58px;
    background: var(--drh-primary-light);
    border-radius: 50%;
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--drh-primary);
}
.drh-home .badge-text {
    font-size: 11px;
    font-weight: 700;
    color: var(--drh-accent);
    margin-bottom: 4px;
}
.drh-home .badge-handle {
    font-size: 10px;
    color: var(--drh-muted);
    background: #fff;
    padding: 3px 6px;
    border-radius: var(--drh-radius-pill);
    display: inline-block;
    border: 1px solid var(--drh-line-soft);
}
.drh-home .slide-text-side { flex: 2; padding-right: 18px; }
.drh-home .slide-text-side h3 {
    font-size: 20px;
    color: var(--drh-ink);
    margin-bottom: 12px;
    font-weight: 700;
}
.drh-home .slide-text-side p {
    font-size: 14px;
    color: #4b5563;
    text-align: justify;
    margin-bottom: 16px;
    border-bottom: 1px dashed var(--drh-line);
    padding-bottom: 12px;
}
.drh-home .slide-author {
    font-size: 13px;
    color: var(--drh-muted);
    font-weight: 700;
}
.drh-home .slide-author span {
    display: block;
    font-size: 11px;
    color: var(--drh-faint);
    direction: ltr;
    text-align: right;
}
.drh-home .slider-btn-ft {
    background: var(--drh-ink);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    transition: background 0.25s;
}
.drh-home .slider-btn-ft:hover { background: var(--drh-primary); }
.drh-home .slider-btn-ft.prev { right: 10px; }
.drh-home .slider-btn-ft.next { left: 10px; }

/* Contact */
.drh-home .contact-wrapper {
    display: flex;
    gap: 28px;
    margin-top: 18px;
}
.drh-home .map-side {
    flex: 1;
    border-radius: var(--drh-radius-lg);
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--drh-shadow-sm);
    color: var(--drh-muted);
    border: 1px solid var(--drh-line-soft);
    background: var(--drh-surface-1);
    position: relative;
    overflow: hidden;
}
.drh-home .map-side iframe {
    width: 100%; height: 100%; border: 0; display: block;
}
.drh-home .map-placeholder-icon {
    font-size: 46px;
    color: var(--drh-rose);
    margin-bottom: 10px;
}
.drh-home .form-side {
    flex: 1.2;
    background: #fff;
    border-radius: var(--drh-radius-lg);
    padding: 28px;
    box-shadow: var(--drh-shadow-sm);
    border: 1px solid var(--drh-line-soft);
}
.drh-home .form-notice {
    font-size: 13px;
    color: var(--drh-muted);
    margin-bottom: 18px;
    text-align: justify;
    border-bottom: 1px solid var(--drh-line-soft);
    padding-bottom: 12px;
}
.drh-home .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 12px;
}
.drh-home .form-group { display: flex; flex-direction: column; }
.drh-home .form-group.full-width { grid-column: span 2; }
.drh-home .form-group label {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--drh-ink);
}
.drh-home .form-group label span { color: var(--drh-rose); }
.drh-home .form-group input,
.drh-home .form-group textarea {
    padding: 10px 14px;
    border: 1px solid var(--drh-line);
    border-radius: 10px;
    font-size: 13px;
    font-family: inherit;
    background-color: var(--drh-surface-1);
    outline: none;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.drh-home .form-group input:focus,
.drh-home .form-group textarea:focus {
    border-color: var(--drh-primary);
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.12);
}
.drh-home .form-group textarea { resize: vertical; height: 96px; min-height: 80px; }

/* Form notices (success / error) */
.drh-home .form-notice-success {
    color: #047857;
    font-weight: 700;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 10px 14px;
    border-radius: 8px;
    border-bottom: 1px solid #a7f3d0 !important;
}
.drh-home .form-notice-error {
    color: #be123c;
    font-weight: 700;
    background: #fef2f2;
    border: 1px solid #fecdd3;
    padding: 10px 14px;
    border-radius: 8px;
    border-bottom: 1px solid #fecdd3 !important;
}
.drh-home .map-placeholder-title {
    font-weight: 700;
    font-size: 15px;
    color: var(--drh-text);
}
.drh-home .map-placeholder-sub {
    font-size: 12px;
    color: var(--drh-muted);
    margin-top: 5px;
}
.drh-home .submit-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}
.drh-home .submit-btn {
    background-color: var(--drh-primary);
    color: #fff;
    border: none;
    padding: 11px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s, transform 0.25s;
}
.drh-home .submit-btn:hover {
    background-color: var(--drh-primary-dark);
    transform: translateY(-2px);
}

/* Footer */
.drh-home .main-footer {
    background-color: var(--drh-dark);
    color: #fff;
    margin-top: 64px;
    border-radius: 40px 40px 0 0;
    padding: 56px 0 24px;
}
.drh-home .footer-grid {
    display: grid;
    /* ستون‌های فوتر از پنل ساخته می‌شوند و تعدادشان ثابت نیست. با auto-fit
       ستون‌های خالی جمع می‌شوند، پس چه ۲ ستون باشد چه ۴ ستون، فوتر همیشه
       عرض موجود را کامل و متوازن پر می‌کند (قبلاً چهار ستون سفت‌وسخت بود و
       با کم/زیاد شدن ستون‌ها، جای خالی یا شکستگی ایجاد می‌شد). */
    grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(160px, 1fr));
    gap: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 32px;
}
.drh-home .footer-brand h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: 0.5px;
    color: #fff;
}
.drh-home .footer-brand .sub-logo {
    font-size: 12px;
    color: var(--drh-gold);
    margin-bottom: 14px;
}
.drh-home .footer-brand p {
    font-size: 12.5px;
    color: #cbd5e1;
    text-align: justify;
    line-height: 1.85;
    margin-bottom: 18px;
}
.drh-home .footer-social-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.drh-home .social-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #fff;
    padding: 9px;
    border-radius: var(--drh-radius-pill);
    font-size: 13px;
    font-weight: 700;
}
.drh-home .social-link-btn.aparat    { background-color: #ea1d5d; }
.drh-home .social-link-btn.instagram { background-color: #5851db; }
.drh-home .social-link-btn.whatsapp  { background-color: #25d366; }
.drh-home .footer-col h3 {
    font-size: 16px;
    color: var(--drh-gold);
    margin-bottom: 18px;
    font-weight: 700;
}
.drh-home .footer-list li {
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 5px;
    color: #cbd5e1;
}
.drh-home .footer-list li i.list-arrow { color: var(--drh-gold); font-size: 11px; }
.drh-home .footer-list li .info-val { color: #94a3b8; }
.drh-home .footer-list li i.info-icon { color: var(--drh-gold); margin-left: 8px; }
.drh-home .footer-list li a { color: #cbd5e1; }
.drh-home .footer-list li a:hover { color: var(--drh-gold); }
.drh-home .footer-cards-container {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 18px;
    padding-top: 18px;
    flex-wrap: wrap;
}
.drh-home .footer-consult-card {
    background: #fff;
    color: var(--drh-ink);
    border-radius: 12px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    min-width: 210px;
    max-width: 250px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
    transition: transform 0.3s, box-shadow 0.3s;
    flex: 0 1 auto;
}
.drh-home .footer-consult-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.26);
}
.drh-home .card-inner-text { flex: 1; }
.drh-home .card-inner-text h4 {
    font-size: 13px;
    color: var(--drh-rose);
    font-weight: 700;
    margin: 0;
}
.drh-home .card-inner-text p {
    font-size: 12px;
    color: var(--drh-text);
    margin-top: 2px;
}
.drh-home .card-avatar-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.drh-home .card-phone-icon {
    width: 30px;
    height: 30px;
    background: var(--drh-success);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}
.drh-home .card-avatar-placeholder {
    width: 40px;
    height: 40px;
    background: var(--drh-surface-3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--drh-muted);
    border: 2px solid var(--drh-rose);
    font-size: 16px;
    flex-shrink: 0;
}
.drh-home .footer-bottom {
    text-align: center;
    padding-top: 18px;
    font-size: 12px;
    color: #94a3b8;
}
.drh-home .footer-bottom span.highlight { color: var(--drh-gold); }

/* لوگوی طراح سایت: دقیقاً روی همان خطِ متن کپی‌رایت (inline)، نه یک ردیف جدا.
   ارتفاع با واحد em به font-size همان خط گره خورده تا خودش کوچک و متناسب شود؛
   clamp هم کف و سقف می‌گذارد تا نه محو شود و نه از خط بیرون بزند. */
.drh-home .footer-bottom .footer-bottom-text { display: inline; }
.drh-home .footer-bottom .footer-bottom-text p {
    display: inline;
    margin: 0;
}
.drh-home .footer-designer {
    display: inline-block;
    vertical-align: middle;
    margin-inline-start: 10px;
    line-height: 0;
    opacity: 0.8;
    transition: opacity 0.25s ease;
}
.drh-home a.footer-designer:hover { opacity: 1; }
.drh-home .footer-designer-logo,
.drh-home .footer-designer img {
    height: clamp(32px, 3.5em, 44px);
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   تصاویر آپلودی مدیر سایت

   هر جای طراحی که یک SVG پیش‌فرض داشت، فقط برای `svg` اندازه‌گذاری شده بود.
   به محض اینکه مدیر سایت از پنل یک تصویر واقعی آپلود می‌کرد، تگ <img> هیچ
   قانونی نداشت و با اندازهٔ ذاتی خودش رندر می‌شد (بیرون‌زده، بریده یا نامرئی).
   این بخش، دقیقاً همان اندازه‌گذاریِ SVG را برای <img> هم تکرار می‌کند تا
   «تصویر جایگزین» و «تصویر آپلودی» رفتار یکسانی داشته باشند.
   ========================================================================== */

/* لوگوی هدر */
.drh-home .brand-logo img { height: 48px; width: auto; max-width: 200px; object-fit: contain; }
.drh-home .site-header.is-scrolled .brand-logo img { height: 44px; }

/* آیکن کارت‌های درمان در هیرو */
.drh-home .card-image-box img { width: 100%; height: 100%; object-fit: contain; }

/* تصویر رزومه در بخش «سوابق» */
.drh-home .svg-vector-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--drh-radius-sm); }
.drh-home .svg-vector-wrapper { display: flex; align-items: center; justify-content: center; }

/* آیکن ویژگی‌ها و آیکن کارت خدمات */
.drh-home .feature-icon img,
.drh-home .service-icon img { width: 100%; height: 100%; object-fit: contain; }

/* اسلایدر نمونه‌کارها */
.drh-home .slide-case svg,
.drh-home .slide-case-fallback { width: 100%; height: auto; display: block; aspect-ratio: 5 / 6; }

/* جلد مقالات چاپ‌شده — بدون این قانون، جلد آپلودی داخل کادر ۲۲۰×۳۱۰ بریده می‌شد. */
.drh-home .book-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* پرچم کارت‌های قیمت */
.drh-home .flag-box img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 50%; }

/* تصویر شاخص اسلایدر مقالات پایین صفحه */
.drh-home .main-img-placeholder.has-image { padding: 0; overflow: hidden; }
.drh-home .main-img-placeholder img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ==========================================================================
   Responsive — 4 standard breakpoints (1200 / 992 / 768 / 480)
   ========================================================================== */

/* Large desktop — slight tightening below 1200 */
@media (max-width: 1200px) {
    .drh-home .features-grid { --drh-max: 2; }
    .drh-home .pricing-grid { --drh-max: 2; --drh-gap: 20px; row-gap: 28px; }
}

/* Tablet landscape */
@media (max-width: 992px) {
    .drh-home {
        --drh-section-py: var(--drh-section-py-tablet);
    }
    /* Header → hamburger
       Row 1 = logo + toggle (fixed-width items, kept together via `order`);
       row 2 = collapsible nav; row 3 = contact info block. Without explicit
       `order`, the flex-wrap algorithm packs items strictly in DOM order, so
       once `.main-nav` (a 100%-wide item) forces its own line, the toggle
       button — which comes AFTER it in the markup — gets pushed down next to
       the contact block instead of sitting beside the logo. */
    .drh-home .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 12px;
        padding: 16px 24px;
    }
    .drh-home .brand-logo { order: 1; }
    .drh-home .nav-toggle { display: flex; order: 2; }
    .drh-home .main-nav {
        order: 3;
        flex-basis: 100%;
        width: 100%;
        justify-content: flex-start;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease;
    }
    .drh-home .site-header.menu-open .main-nav {
        max-height: 400px;
        opacity: 1;
        margin-top: 14px;
    }
    .drh-home .main-nav .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    .drh-home .main-nav .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .drh-home .main-nav .nav-menu li a {
        display: block;
        padding: 12px 8px;
        width: 100%;
        border-radius: 0;
    }
    .drh-home .main-nav .nav-menu li a:hover {
        background: rgba(255,255,255,0.05);
    }
    .drh-home .header-left-block {
        order: 4;
        flex-basis: 100%;
        width: 100%;
        /* On mobile the contact cards live INSIDE the hamburger dropdown:
           hidden until the menu opens, then revealed as a centered wrapping
           row right below the nav links. */
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: stretch;
        gap: 8px;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        margin-top: 0;
        transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    }
    .drh-home .site-header.menu-open .header-left-block {
        max-height: 320px;
        opacity: 1;
        margin-top: 10px;
        padding-top: 12px;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .drh-home .contact-item {
        border-radius: 10px;
        flex: 0 1 auto;
    }

    /* Hero stacks */
    .drh-home .hero-container { flex-direction: column; gap: 36px; }
    .drh-home .hero-image-area { order: 1; width: 100%; }
    .drh-home .hero-text-area {
        order: 2;
        align-items: center;
        text-align: center;
        max-width: 100%;
    }
    .drh-home .hero-actions { justify-content: center; }
    .drh-home .specialty-list, .drh-home .doc-name-fa, .drh-home .doc-name-en,
    .drh-home .doc-specialty { text-align: center; width: 100%; }
    .drh-home .slider-wrapper {
        position: relative;
        bottom: 0;
        margin-top: 36px;
        padding-bottom: 32px;
    }
    .drh-home .slider-container { justify-content: center; flex-wrap: wrap; }
    .drh-home .treatment-card { width: 100%; max-width: 300px; }

    /* About */
    .drh-home .resume-flex-container { flex-direction: column-reverse; gap: 36px; }
    .drh-home .resume-text-block { width: 100%; }
    .drh-home .resume-svg-block { width: 60%; max-width: 320px; }

    /* Services */
    .drh-home .services-container { flex-direction: column; gap: 40px; }
    .drh-home .services-text-side,
    .drh-home .services-grid-side { width: 100%; }
    .drh-home .services-grid-side { --drh-max: 3; }
    .drh-home .services-text-side { position: static; }

    /* Articles */
    .drh-home .articles-container {
        flex-direction: column-reverse;
        align-items: center;
    }
    .drh-home .articles-text-col { width: 100%; }
    .drh-home .button-wrapper { margin-top: 18px; }

    /* Cases — 3 columns at tablet landscape (992px+) */
    .drh-home .slide-case { flex: 0 0 calc(33.333% - 11px); }

    /* Process timeline */
    .drh-home .timeline-container { flex-wrap: wrap; gap: 28px; padding: 36px 0; }
    .drh-home .step-item,
    .drh-home .step-item.top,
    .drh-home .step-item.bottom {
        width: 45%;
        transform: none !important;
    }
    .drh-home .step-item.top:hover,
    .drh-home .step-item.bottom:hover {
        transform: translateY(-8px) !important;
    }

    /* Consultation */
    .drh-home .consultation-container {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
    .drh-home .image-column { justify-content: center; order: -1; width: 100%; margin-bottom: 8px; }
    .drh-home .image-placeholder { max-width: 340px; margin: 0 auto; }
    .drh-home .text-column { align-items: center; width: 100%; }
    .drh-home .main-title-consult {
        border-right: none;
        padding-right: 0;
        border-bottom: 4px solid var(--drh-primary);
        padding-bottom: 10px;
        text-align: center;
        width: 100%;
    }
    .drh-home .description-consult { text-align: center; }

    /* Footer */
    .drh-home .footer-grid { grid-template-columns: 1fr 1fr; }
    .drh-home .slide-ft { flex-direction: column; text-align: center; }
    .drh-home .slide-text-side { padding-right: 0; padding-top: 18px; }
    .drh-home .footer-cards-container { flex-direction: column; align-items: center; }
    .drh-home .slide-image-side { justify-content: center; }

    /* Contact */
    .drh-home .contact-wrapper { flex-direction: column; }
}

/* Tablet portrait / small tablet */
@media (max-width: 768px) {
    .drh-home {
        --drh-section-py: var(--drh-section-py-mobile);
        --drh-container-px: 16px;
    }

    .drh-home .header-container { padding: 14px 16px; }
    .drh-home .brand-logo svg { height: 40px; }
    .drh-home .main-nav .nav-menu li a { font-size: 13px; }
    .drh-home .contact-item {
        padding: 8px 12px;
        justify-content: center;
    }

    .drh-home .hero-section { padding: 48px 0 90px; }
    .drh-home .doctor-avatar-svg { width: 85%; max-width: 380px; }

    /* Cases — 2 columns at tablet portrait (768px). JS shows 2 slides at ≤768px. */
    .drh-home .slide-case { flex: 0 0 calc(50% - 8px); }
    .drh-home .btn { padding: 10px 20px; font-size: 13px; }

    .drh-home .clinic-wrapper { padding: 70px 16px 50px; }
    .drh-home .resume-main-title { font-size: 24px; padding-right: 12px; }
    .drh-home .resume-items-list li { font-size: 13px; padding: 11px 0; }
    .drh-home .features-main-title { font-size: 22px; }
    .drh-home .features-grid { --drh-max: 2; --drh-gap: 14px; }
    .drh-home .feature-box { padding: 14px; }
    .drh-home .feature-content h3 { font-size: 13px; }
    .drh-home .feature-content p { font-size: 12px; }

    .drh-home .cases-section { padding: 48px 16px; }
    .drh-home .slider-wrapper-cases { gap: 10px; }
    .drh-home .slider-nav-btn { width: 36px; height: 36px; font-size: 18px; }

    .drh-home .services-section { padding: 48px 16px; }
    .drh-home .services-grid-side { --drh-max: 2; --drh-gap: 14px; }
    .drh-home .services-main-title { font-size: 22px; padding-right: 12px; }
    .drh-home .service-card { padding: 20px 12px; }

    .drh-home .articles-section { padding: 48px 16px; }
    .drh-home .articles-title { font-size: 22px; padding-right: 12px; }
    .drh-home .book-slide { width: 160px; height: 230px; }
    .drh-home .books-slider-wrapper { height: 260px; }
    .drh-home .article-text { font-size: 13px; }
    .drh-home .btn-view-articles { padding: 10px 30px; font-size: 13px; }

    .drh-home .pricing-section { padding: 48px 16px 60px; }
    .drh-home .pricing-main-title { font-size: 22px; }
    .drh-home .card-header { min-height: 96px; padding: 12px 12px 0; }
    .drh-home .card-header h3 { font-size: 14px; }
    .drh-home .card-body { padding: 20px 14px; }
    .drh-home .flag-box { width: 56px; height: 56px; margin: -40px auto 12px; }

    .drh-home .process-section { padding: var(--drh-section-py-mobile) 16px; }
    .drh-home .section-title-process { font-size: 24px; margin-bottom: 36px; }
    .drh-home .timeline-container {
        flex-direction: column;
        align-items: stretch;
        padding: 16px 0;
        gap: 16px;
    }
    .drh-home .step-item,
    .drh-home .step-item.top,
    .drh-home .step-item.bottom {
        width: 100%;
        flex-direction: row !important;
        transform: none !important;
        margin-bottom: 12px;
    }
    .drh-home .step-item:hover,
    .drh-home .step-item.top:hover,
    .drh-home .step-item.bottom:hover {
        transform: translateX(-6px) !important;
    }
    .drh-home .step-number {
        order: 1;
        margin: 0 0 0 18px !important;
        flex-shrink: 0;
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
    .drh-home .step-card {
        order: 2;
        text-align: right;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 16px;
        flex: 1;
    }
    .drh-home .icon-wrapper { margin-bottom: 8px; font-size: 32px; }
    .drh-home .step-title { font-size: 15.5px; }
    .drh-home .step-desc { font-size: 13px; }

    .drh-home .consultation-section { padding: 48px 16px; }
    .drh-home .main-title-consult { font-size: 22px; }
    .drh-home .description-consult { font-size: 13.5px; }
    .drh-home .btn-bale { padding: 10px 20px; }
    .drh-home .btn-bale-text .top-text { font-size: 14px; }
    .drh-home .btn-bale-text .bottom-text { font-size: 11px; }
    .drh-home .image-placeholder { max-width: 360px; width: 100%; margin: 0 auto; }

    .drh-home .team-section { margin: 40px auto; padding: 0 16px; }
    .drh-home .section-title-team { font-size: 20px; padding-right: 10px; }
    .drh-home .swiper-slide { padding: 16px; }
    /* ارتفاع ثابت اینجا حذف شد: کادر عکس عضو تیم باید در موبایل هم متناسب با
       خود تصویر باشد. قبلاً `height: 240px` عکس را در یک نوار کوتاه له می‌کرد. */

    .drh-home .brands-section { padding: 40px 16px 48px; }
    .drh-home .brands-title { font-size: 20px; }
    .drh-home .brands-logos-wrapper { gap: 20px; }
    .drh-home .brand-item { width: 140px; height: 64px; }

    .drh-home .section-title-wrapper { margin-top: 26px; margin-bottom: 18px; }
    .drh-home .section-title-ft { font-size: 20px; padding-right: 12px; border-right-width: 4px; }
    .drh-home .slider-container-ft { padding: 16px; }
    .drh-home .slide-text-side h3 { font-size: 18px; }
    .drh-home .slide-text-side p { font-size: 13px; }
    .drh-home .main-img-placeholder { height: 170px; max-width: 100%; }
    .drh-home .badge-sidebar { width: 120px; }

    .drh-home .form-side { padding: 20px; }
    .drh-home .form-grid { grid-template-columns: 1fr; gap: 12px; }
    .drh-home .form-group.full-width { grid-column: span 1; }

    .drh-home .footer-grid { grid-template-columns: 1fr; gap: 22px; }

    /* Sticky consult bar — does NOT overlap content thanks to bottom padding */
    .drh-home .footer-cards-container {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        margin: 0;
        padding: 8px 10px;
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        background: rgba(12, 74, 94, 0.96);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.35);
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: stretch;
        justify-content: center;
        gap: 10px;
        backdrop-filter: blur(6px);
    }
    .drh-home .footer-consult-card {
        min-width: 0;
        max-width: none;
        flex: 1 1 0;
        padding: 7px 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .drh-home .card-avatar-wrapper { gap: 8px; }
    .drh-home .card-inner-text h4 { font-size: 12.5px; }
    .drh-home .card-inner-text p { font-size: 11px; }
    .drh-home .card-avatar-placeholder { width: 34px; height: 34px; font-size: 14px; }
    .drh-home .card-phone-icon { width: 28px; height: 28px; font-size: 12px; }
    /* Reserve space below the page so the sticky bar never covers content.
       Using CSS var so JS can adjust if the bar wraps. */
    .drh-home { padding-bottom: 84px; }
    .drh-home .map-side { height: 280px; }
    .drh-home .slider-btn-ft { width: 32px; height: 32px; }
    .drh-home .main-footer { border-radius: 24px 24px 0 0; padding: 40px 0 24px; }
}

/* Mobile */
@media (max-width: 480px) {
    .drh-home .doctor-avatar-svg { width: 70%; max-width: 280px; }
    .drh-home .doc-name-fa { font-size: 26px; }
    .drh-home .doc-specialty { font-size: 16px; }
    .drh-home .hero-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }
    .drh-home .hero-actions .btn { width: 100%; }
    .drh-home .treatment-card { height: 86px; padding: 10px; max-width: 100%; }
    .drh-home .card-title { font-size: 11.5px; }
    .drh-home .card-image-box { width: 52px; height: 52px; padding: 8px; }
    .drh-home .card-link { font-size: 10.5px; }
    .drh-home .slider-arrow { width: 34px; height: 34px; }
    .drh-home .slider-arrow svg { width: 16px; height: 16px; }

    .drh-home .clinic-wrapper { padding: 50px 14px 36px; }
    .drh-home .resume-svg-block { width: 80%; }
    /* تک‌ستونه روی موبایل: سقف عرض برداشته می‌شود تا کارت تمام پهنا را بگیرد. */
    .drh-home .features-grid { --drh-max: 1; --drh-gap: 12px; --drh-item-max: 100%; }
    .drh-home .resume-main-title { font-size: 22px; }
    .drh-home .resume-items-list li { font-size: 12.5px; padding: 10px 0; }
    .drh-home .features-main-title { font-size: 20px; }
    .drh-home .feature-box { padding: 12px; }

    .drh-home .slide-case { flex: 0 0 calc(50% - 8px); }
    .drh-home .cases-main-title { font-size: 18px; padding-right: 10px; border-right-width: 3px; }

    .drh-home .services-grid-side { --drh-max: 1; --drh-item-max: 100%; }
    .drh-home .services-main-title { font-size: 20px; }
    .drh-home .services-description { font-size: 13px; }
    .drh-home .services-list li { font-size: 12.5px; }
    .drh-home .service-card { padding: 18px 12px; }
    .drh-home .service-icon { width: 36px; height: 36px; margin-bottom: 12px; }

    .drh-home .articles-title { font-size: 20px; }
    .drh-home .book-slide { width: 120px; height: 170px; }
    .drh-home .books-slider-wrapper { height: 200px; }
    .drh-home .article-text { font-size: 12px; }
    .drh-home .articles-list li { gap: 8px; margin-bottom: 14px; }
    .drh-home .btn-view-articles { padding: 8px 24px; font-size: 12px; }
    .drh-home .book-dot { width: 5px; height: 5px; }
    .drh-home .book-dots { gap: 5px; }

    .drh-home .pricing-grid { --drh-max: 1; --drh-item-max: 100%; max-width: 360px; margin: 0 auto; }
    .drh-home .pricing-main-title { font-size: 20px; }

    .drh-home .section-title-process { font-size: 22px; }
    .drh-home .step-card { padding: 12px 14px; }
    .drh-home .icon-wrapper { font-size: 28px; }
    .drh-home .step-number { width: 38px; height: 38px; font-size: 18px; margin: 0 0 0 12px !important; }
    .drh-home .step-title { font-size: 15px; }
    .drh-home .step-desc { font-size: 12.5px; }

    .drh-home .main-title-consult { font-size: 20px; }
    .drh-home .description-consult { font-size: 12.5px; }
    .drh-home .btn-bale { flex-wrap: wrap; justify-content: center; padding: 10px 16px; }
    .drh-home .btn-bale-icon { margin-left: 10px; width: 28px; height: 28px; }
    .drh-home .image-placeholder { max-width: 360px; width: 100%; margin: 0 auto; }

    .drh-home .team-section { margin: 30px auto; }
    .drh-home .section-title-team { font-size: 18px; }
    .drh-home .swiper-slide { padding: 12px; }
    /* مثل بریک‌پوینت بالا: ارتفاع ثابت حذف شد تا عکس کامل و بزرگ دیده شود. */
    .drh-home .card-header-team { flex-wrap: wrap; gap: 8px; }
    .drh-home .doc-name { font-size: 12px; }
    .drh-home .doc-spec { font-size: 10px; }
    .drh-home .card-logo svg { width: 28px; height: 28px; }
    .drh-home .staff-name { font-size: 13px; }
    .drh-home .staff-role { font-size: 11px; }

    .drh-home .brands-section { padding: 32px 12px 40px; }
    .drh-home .brands-title { font-size: 18px; }
    .drh-home .brands-logos-wrapper { gap: 14px; }
    .drh-home .brand-item { width: 42%; max-width: 150px; height: 60px; }
    .drh-home .brand-item svg { max-height: 40px; }

    .drh-home .section-title-ft { font-size: 18px; padding-right: 10px; border-right-width: 3px; }
    .drh-home .slider-container-ft { padding: 12px; border-radius: 14px; }
    .drh-home .slide-text-side h3 { font-size: 16px; }
    .drh-home .slide-text-side p { font-size: 12px; }
    .drh-home .main-img-placeholder { height: 140px; font-size: 12px; }
    .drh-home .badge-sidebar { width: 100px; padding: 8px; }
    .drh-home .badge-avatar { width: 45px; height: 45px; }
    .drh-home .badge-text { font-size: 10px; }
    .drh-home .badge-handle { font-size: 9px; }

    .drh-home .form-side { padding: 14px; }
    .drh-home .form-notice { font-size: 12px; }
    .drh-home .form-group label { font-size: 12px; }
    .drh-home .form-group input,
    .drh-home .form-group textarea { font-size: 12px; padding: 8px 12px; }
    .drh-home .submit-btn { padding: 8px 20px; font-size: 13px; }
    .drh-home .map-side { height: 220px; }
    .drh-home .map-placeholder-icon { font-size: 36px; }

    .drh-home .footer-consult-card { padding: 6px 8px; gap: 6px; }
    .drh-home .footer-brand h2 { font-size: 18px; }
    .drh-home .footer-col h3 { font-size: 14px; }
    .drh-home .footer-list li { font-size: 12px; }
    .drh-home .social-link-btn { font-size: 12px; padding: 7px; }
    .drh-home .main-footer { border-radius: 20px 20px 0 0; padding: 30px 0 18px; margin-top: 36px; }
    .drh-home .footer-bottom { font-size: 11px; }
    /* ارتفاع لوگو em‌محور است و خودش با کوچک‌شدن فونتِ این خط کوچک می‌شود؛
       فقط سقفِ عرض کمی تنگ‌تر می‌شود تا لوگوهای کشیده خط را نشکنند. */
    .drh-home .footer-designer-logo,
    .drh-home .footer-designer img { max-width: 140px; }
}

/* Honoring reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
    .drh-home *,
    .drh-home *::before,
    .drh-home *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ==========================================================================
   Header — theme-proof layout lock (!important)
   --------------------------------------------------------------------------
   Forces the full-width, single-row header (logo → right, nav → center,
   contacts → left) even when the active WordPress theme injects competing
   rules (floats, flex-direction:column, list styling, widths). Desktop-only
   overrides live under min-width:993px so the mobile hamburger still works.
   ========================================================================== */
.drh-home .site-header {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    float: none !important;
    clear: both !important;
}
.drh-home .site-header .header-container {
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    float: none !important;
}
.drh-home .site-header .brand-logo,
.drh-home .site-header .main-nav,
.drh-home .site-header .header-left-block {
    float: none !important;
    box-sizing: border-box !important;
}
.drh-home .site-header .main-nav .nav-menu {
    display: flex !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.drh-home .site-header .main-nav .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    background: none !important;
}
.drh-home .site-header .main-nav .nav-menu li::before,
.drh-home .site-header .main-nav .nav-menu li::marker {
    content: none !important;
}

/* Desktop: the three zones are locked into ONE row */
@media (min-width: 993px) {
    .drh-home .site-header .header-container {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        gap: 16px !important;
    }
    .drh-home .site-header .nav-toggle { display: none !important; }
    .drh-home .site-header .brand-logo {
        order: 0 !important;
        flex: 0 0 auto !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
    }
    .drh-home .site-header .main-nav {
        order: 0 !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        margin: 0 12px !important;
        justify-content: center !important;
    }
    /* nav links may wrap WITHIN their own zone so the three sections never
       overflow the row and push the contacts off-screen */
    .drh-home .site-header .main-nav .nav-menu {
        flex-wrap: wrap !important;
        justify-content: center !important;
    }
    .drh-home .site-header .header-left-block {
        order: 0 !important;
        flex: 0 0 auto !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        max-height: none !important;
        opacity: 1 !important;
        overflow: visible !important;
        margin: 0 !important;
        padding: 0 !important;
        border-top: 0 !important;
    }
}
