:root {
    --mhl-primary: #1d4ed8;
    --mhl-primary-dark: #1e3a8a;
    --mhl-soft: #eff6ff;
    --mhl-surface: #ffffff;
    --mhl-border: #dbe4f0;
    --mhl-text: #172033;
    --mhl-muted: #64748b;
    --mhl-success: #0f766e;
    --mhl-danger: #b91c1c;
}

.mhl-doctor-card,
.mhl-question-card,
.mhl-ask-form-wrap,
.mhl-dashboard,
.mhl-dashboard-question {
    direction: rtl;
    font-family: inherit;
    color: var(--mhl-text);
}

.mhl-doctor-card {
    display: flex;
    gap: 18px;
    align-items: center;
    background: linear-gradient(135deg, #ffffff, #f4f8ff);
    border: 1px solid var(--mhl-border);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .08);
}

.mhl-doctor-avatar img {
    width: 96px;
    height: 96px;
    object-fit: cover;
    border-radius: 24px;
}

.mhl-doctor-info h3,
.mhl-question-card h3,
.mhl-dashboard-question h3 {
    margin: 0 0 8px;
    line-height: 1.5;
}

.mhl-doctor-specialty,
.mhl-doctor-code,
.mhl-answer-meta,
.mhl-user-info-row,
.mhl-dashboard-kicker {
    color: var(--mhl-muted);
}

.mhl-question-list {
    display: grid;
    gap: 18px;
}

.mhl-question-card,
.mhl-ask-form-wrap,
.mhl-dashboard-question {
    background: var(--mhl-surface);
    border: 1px solid var(--mhl-border);
    border-radius: 22px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
}

.mhl-question-head,
.mhl-dashboard-question-head,
.mhl-answer-meta,
.mhl-user-info-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mhl-dashboard-question-head {
    justify-content: space-between;
}

.mhl-status-pill,
.mhl-doctor-mini {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--mhl-soft);
    color: var(--mhl-primary-dark);
    font-size: 12px;
    font-weight: 700;
}

.mhl-question-content {
    line-height: 2;
    color: #334155;
}

.mhl-answer-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.mhl-answer-card,
.mhl-existing-answer {
    border: 1px solid #e6edf7;
    background: #f8fbff;
    border-radius: 18px;
    padding: 16px;
}

.mhl-answer-meta span,
.mhl-user-info-row span {
    padding: 5px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--mhl-border);
    font-size: 12px;
}

.mhl-video-open,
.mhl-primary-btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--mhl-primary), var(--mhl-primary-dark));
    color: #fff;
    cursor: pointer;
    padding: 11px 18px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease;
}

.mhl-video-open:hover,
.mhl-primary-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(29, 78, 216, .22);
}

.mhl-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.mhl-form-full {
    grid-column: 1 / -1;
}

.mhl-ask-form label,
.mhl-doctor-answer-form label {
    display: grid;
    gap: 8px;
}

.mhl-ask-form span,
.mhl-doctor-answer-form span {
    font-weight: 700;
}

.mhl-ask-form input,
.mhl-ask-form textarea,
.mhl-doctor-answer-form input,
.mhl-doctor-answer-form textarea,
.mhl-doctor-answer-form select {
    width: 100%;
    min-height: 44px;
    border: 1px solid var(--mhl-border);
    border-radius: 14px;
    padding: 10px 12px;
    background: #fff;
    color: var(--mhl-text);
    box-sizing: border-box;
}

.mhl-ask-form textarea,
.mhl-doctor-answer-form textarea {
    min-height: 120px;
}

.mhl-primary-btn {
    margin-top: 16px;
}

.mhl-alert {
    padding: 14px 16px;
    border-radius: 16px;
    margin: 14px 0;
    line-height: 1.8;
}

.mhl-alert-success {
    background: #dcfce7;
    color: #166534;
}

.mhl-alert-error {
    background: #fee2e2;
    color: var(--mhl-danger);
}

.mhl-empty-state,
.mhl-answer-pending {
    padding: 18px;
    border-radius: 18px;
    background: #f8fafc;
    color: var(--mhl-muted);
    text-align: center;
}

.mhl-dashboard-hero {
    padding: 26px;
    border-radius: 26px;
    background: linear-gradient(135deg, #102a64, #2563eb);
    color: #fff;
    margin-bottom: 18px;
}

.mhl-dashboard-hero h2,
.mhl-dashboard-hero p {
    color: #fff;
}

.mhl-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.mhl-dashboard-stats div {
    background: #fff;
    border: 1px solid var(--mhl-border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.mhl-dashboard-stats strong {
    display: block;
    font-size: 30px;
    color: var(--mhl-primary-dark);
}

.mhl-dashboard-list {
    display: grid;
    gap: 18px;
}

.mhl-existing-answers {
    margin: 16px 0;
}

.mhl-existing-answer {
    margin-top: 8px;
}

.mhl-video-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mhl-video-modal.is-open {
    display: flex;
}

.mhl-video-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .78);
}

.mhl-video-dialog {
    position: relative;
    z-index: 1;
    width: min(920px, 100%);
    background: #020617;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(0,0,0,.5);
}

.mhl-video-dialog video,
.mhl-video-dialog .mhl-aparat-frame {
    display: block;
    width: 100%;
    background: #000;
}

.mhl-video-dialog video {
    max-height: 78vh;
}

.mhl-video-dialog .mhl-aparat-frame {
    aspect-ratio: 16 / 9;
    max-height: 78vh;
    border: 0;
}

.mhl-video-dialog video[hidden],
.mhl-video-dialog .mhl-aparat-frame[hidden] {
    display: none;
}

.mhl-video-close {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.92);
    color: #0f172a;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
}

@media (max-width: 760px) {
    .mhl-doctor-card,
    .mhl-dashboard-question-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .mhl-form-grid,
    .mhl-dashboard-stats {
        grid-template-columns: 1fr;
    }

    .mhl-question-card,
    .mhl-ask-form-wrap,
    .mhl-dashboard-question {
        padding: 18px;
    }
}

/* Phase 7: Ajax archive and advanced filters */
.mhl-ajax-archive {
    direction: rtl;
    background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 100%);
    border: 1px solid rgba(18, 42, 82, .08);
    border-radius: 28px;
    padding: 28px;
    margin: 28px 0;
    box-shadow: 0 18px 45px rgba(16, 33, 62, .08);
}

.mhl-archive-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.mhl-archive-header h3 {
    margin: 5px 0 0;
    font-size: 26px;
    color: #10213e;
}

.mhl-archive-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #2c65d8;
    font-weight: 800;
}

.mhl-archive-filters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    background: #fff;
    padding: 16px;
    border-radius: 20px;
    border: 1px solid rgba(16, 33, 62, .08);
    margin-bottom: 18px;
}

.mhl-archive-filters label,
.mhl-form-row {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-weight: 700;
    color: #213452;
}

.mhl-archive-filters select,
.mhl-form-row select {
    width: 100%;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid #d9e3f2;
    background: #f9fbff;
    padding: 0 12px;
    color: #14233d;
    outline: none;
}

.mhl-archive-filters select:focus,
.mhl-form-row select:focus {
    border-color: #2c65d8;
    box-shadow: 0 0 0 4px rgba(44, 101, 216, .12);
}

.mhl-archive-ask-panel {
    margin: 16px 0 22px;
    animation: mhlFadeUp .22s ease both;
}

.mhl-load-more-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 22px;
}

.mhl-secondary-btn {
    border: 1px solid #cfdcf0;
    background: #fff;
    color: #213452;
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 800;
    cursor: pointer;
    transition: all .2s ease;
}

.mhl-secondary-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(16, 33, 62, .1);
}

.mhl-secondary-btn:disabled,
.mhl-ajax-archive button:disabled,
.mhl-ajax-archive select:disabled {
    opacity: .58;
    cursor: not-allowed;
}

.mhl-ajax-loader {
    color: #64748b;
    font-weight: 700;
}

.mhl-ajax-archive.is-loading .mhl-ajax-results {
    opacity: .62;
}

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

@media (max-width: 768px) {
    .mhl-ajax-archive {
        padding: 18px;
        border-radius: 22px;
    }

    .mhl-archive-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .mhl-archive-filters {
        grid-template-columns: 1fr;
    }
}

.mhl-video-preview {
    width: 100%;
    max-width: 420px;
    min-height: 180px;
    position: relative;
    display: grid;
    align-items: center;
    justify-items: center;
    overflow: hidden;
    padding: 0;
    border-radius: 20px;
    background: #0f172a;
    color: #fff;
    text-align: center;
}

.mhl-video-preview img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.mhl-video-preview strong {
    position: absolute;
    right: 16px;
    bottom: 14px;
    z-index: 2;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 13px;
}

.mhl-video-play {
    position: absolute;
    inset: auto auto 50% 50%;
    transform: translate(-50%, 50%);
    z-index: 2;
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .94);
    color: var(--mhl-primary-dark);
    display: grid;
    place-items: center;
    font-size: 22px;
    box-shadow: 0 12px 32px rgba(0,0,0,.22);
}

.mhl-video-placeholder {
    min-height: 180px;
    display: grid;
    place-items: center;
    width: 100%;
    font-weight: 900;
    background: linear-gradient(135deg, #0f172a, #1d4ed8);
}

.mhl-video-preview.is-loading {
    opacity: .72;
    cursor: wait;
}

.mhl-video-message {
    padding: 42px 24px;
    color: #fff;
    text-align: center;
    font-weight: 800;
}

.mhl-existing-answer-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.mhl-answer-form-title {
    margin: 18px 0 10px;
}

.mhl-edit-answer-details {
    margin-top: 12px;
    border-top: 1px solid #e6edf7;
    padding-top: 12px;
}

.mhl-edit-answer-details summary {
    cursor: pointer;
    font-weight: 900;
    color: var(--mhl-primary-dark);
}

.mhl-delete-answer-form {
    margin-top: 12px;
}

.mhl-danger-btn {
    border: 0;
    border-radius: 999px;
    padding: 9px 15px;
    background: #fee2e2;
    color: var(--mhl-danger);
    font-weight: 900;
    cursor: pointer;
}

.mhl-media-name {
    display: inline-block;
    margin: 8px 10px 0 0;
    color: #475569;
    font-size: 13px;
}

.mhl-source-upload em {
    display: block;
    margin-top: 8px;
    color: #64748b;
}

@media (max-width: 560px) {
    .mhl-video-preview {
        max-width: 100%;
    }

    .mhl-video-preview img {
        height: 180px;
    }
}

.mhl-doctor-actions{margin-top:16px}.mhl-booking-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.mhl-booking-link:hover{text-decoration:none}

/* Question permalink, ratings and SEO-ready single page */
.mhl-question-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color .2s ease;
}

.mhl-question-card-title a:hover {
    color: var(--mhl-primary);
}

.mhl-question-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e6edf7;
}

.mhl-question-detail-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    padding: 10px 16px;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.mhl-question-detail-link:hover {
    background: #dbeafe;
    color: #1e3a8a;
    transform: translateY(-1px);
    box-shadow: 0 9px 20px rgba(29, 78, 216, .12);
}

.mhl-rating-summary {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
    color: #475569;
}

.mhl-rating-summary.is-compact {
    gap: 6px;
    font-size: 13px;
}

.mhl-stars-display {
    position: relative;
    display: inline-block;
    direction: ltr;
    unicode-bidi: bidi-override;
    font-size: 23px;
    line-height: 1;
    letter-spacing: 2px;
    white-space: nowrap;
}

.mhl-rating-summary.is-compact .mhl-stars-display {
    font-size: 18px;
    letter-spacing: 1px;
}

.mhl-stars-base {
    color: #d9e2ef;
}

.mhl-stars-fill {
    position: absolute;
    inset: 0 auto 0 0;
    overflow: hidden;
    color: #f4b400;
    white-space: nowrap;
}

.mhl-rating-average {
    color: #172033;
    font-size: 16px;
}

.mhl-rating-summary.is-compact .mhl-rating-average {
    font-size: 13px;
}

.mhl-rating-count {
    color: #64748b;
}


.mhl-question-canvas-body {
    margin: 0 !important;
    background: #f8f7fc;
}

.mhl-question-template-root {
    --mhl-single-primary: #7e57c2;
    --mhl-single-primary-dark: #6742aa;
    --mhl-single-primary-soft: #f0eafa;
    --mhl-single-secondary: #d0c4e8;
    --mhl-single-secondary-soft: #eee9f6;
    --mhl-single-max-width: 1440px;
    direction: rtl;
    width: 100%;
    min-height: 100%;
    box-sizing: border-box;
    color: var(--mhl-text);
}

.mhl-question-template-root *,
.mhl-question-template-root *::before,
.mhl-question-template-root *::after {
    box-sizing: border-box;
}

.mhl-question-canvas-header {
    position: relative;
    z-index: 20;
    width: 100%;
    border-bottom: 1px solid var(--mhl-single-secondary);
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 28px rgba(46, 31, 74, .06);
}

.mhl-question-canvas-header-inner,
.mhl-question-canvas-footer-inner {
    width: min(var(--mhl-single-max-width), calc(100% - 48px));
    margin: 0 auto;
}

.mhl-question-canvas-header-inner {
    min-height: 82px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
}

.mhl-question-canvas-brand {
    display: inline-flex;
    align-items: center;
    color: var(--mhl-single-primary-dark);
    text-decoration: none;
}

.mhl-question-canvas-brand img {
    display: block;
    width: auto;
    max-width: 170px;
    height: 52px;
    object-fit: contain;
}

.mhl-question-canvas-brand strong {
    color: var(--mhl-single-primary-dark);
    font-size: 19px;
}

.mhl-question-canvas-section-title {
    display: grid;
    justify-items: start;
    gap: 2px;
    padding-right: 18px;
    border-right: 1px solid var(--mhl-single-secondary);
}

.mhl-question-canvas-section-title span {
    color: #302641;
    font-weight: 900;
}

.mhl-question-canvas-section-title small {
    color: #786f86;
}

.mhl-question-canvas-home {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 9px 17px;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 999px;
    background: var(--mhl-single-secondary-soft);
    color: var(--mhl-single-primary-dark);
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.mhl-question-canvas-home:hover {
    background: #fff;
    color: var(--mhl-single-primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(46, 31, 74, .08);
}

.mhl-question-single-page {
    direction: rtl;
    width: 100%;
    min-height: 70vh;
    margin: 0;
    padding: 38px 24px 72px;
    background:
        radial-gradient(circle at 88% 3%, var(--mhl-single-secondary-soft) 0, transparent 28%),
        radial-gradient(circle at 8% 44%, var(--mhl-single-primary-soft) 0, transparent 25%),
        #f8f7fc;
    color: var(--mhl-text);
}

.mhl-question-single-shell {
    width: min(var(--mhl-single-max-width), 100%);
    margin: 0 auto;
}

.mhl-question-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 16px;
    color: #766f80;
    font-size: 13px;
}

.mhl-question-breadcrumb a {
    color: var(--mhl-single-primary);
    text-decoration: none;
    font-weight: 800;
}

.mhl-question-single-card {
    overflow: hidden;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 30px;
    background: #fff;
    box-shadow: 0 28px 70px rgba(46, 31, 74, .10);
}

.mhl-question-single-header {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 38px 44px 34px;
    color: #fff;
    background: var(--mhl-single-primary);
}

.mhl-question-single-header::before {
    content: "";
    position: absolute;
    z-index: -1;
    width: 390px;
    height: 390px;
    left: -110px;
    top: -230px;
    border-radius: 50%;
    background: var(--mhl-single-secondary);
    opacity: .24;
}

.mhl-question-single-header::after {
    content: "؟";
    position: absolute;
    z-index: -1;
    left: 30px;
    bottom: -50px;
    color: rgba(255, 255, 255, .10);
    font-size: 190px;
    font-weight: 900;
    line-height: 1;
}

.mhl-question-single-header h1 {
    max-width: 1080px;
    margin: 17px 0 20px;
    color: #fff;
    font-size: clamp(28px, 3.5vw, 46px);
    line-height: 1.55;
    letter-spacing: -.5px;
}

.mhl-question-single-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.mhl-question-single-meta .mhl-status-pill,
.mhl-question-single-meta .mhl-doctor-mini,
.mhl-question-single-meta time {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 5px 11px;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.mhl-question-single-rating-top .mhl-rating-summary {
    padding: 11px 15px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 16px;
    background: rgba(255, 255, 255, .14);
    color: rgba(255, 255, 255, .9);
    backdrop-filter: blur(10px);
}

.mhl-question-single-rating-top .mhl-rating-average,
.mhl-question-single-rating-top .mhl-rating-count {
    color: #fff;
}

.mhl-question-single-rating-top .mhl-stars-base {
    color: rgba(255, 255, 255, .3);
}

.mhl-question-single-question,
.mhl-question-single-answers {
    padding: 36px 44px;
}

.mhl-question-single-question {
    border-bottom: 1px solid var(--mhl-single-secondary-soft);
    background: linear-gradient(180deg, #fff 0%, var(--mhl-single-secondary-soft) 180%);
}

.mhl-question-single-question .mhl-question-content {
    max-width: 1160px;
    margin-top: 13px;
    color: #3f3749;
    font-size: 17px;
    line-height: 2.15;
}

.mhl-single-section-label,
.mhl-rating-kicker {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--mhl-single-primary);
    font-size: 13px;
    font-weight: 900;
}

.mhl-single-section-label::before,
.mhl-rating-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--mhl-single-primary);
    box-shadow: 0 0 0 5px var(--mhl-single-primary-soft);
}

.mhl-single-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.mhl-single-section-heading h2,
.mhl-rating-box h2 {
    margin: 6px 0 0;
    color: #302641;
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.5;
}

.mhl-question-single-answers .mhl-answer-list {
    gap: 18px;
}

.mhl-question-single-answers .mhl-answer-card {
    position: relative;
    padding: 24px;
    border-color: var(--mhl-single-secondary);
    border-radius: 22px;
    background: linear-gradient(135deg, #fff 0%, var(--mhl-single-secondary-soft) 165%);
    box-shadow: 0 10px 28px rgba(46, 31, 74, .05);
    scroll-margin-top: 100px;
}

.mhl-question-single-answers .mhl-answer-card::before {
    content: "";
    position: absolute;
    top: 19px;
    right: 0;
    width: 4px;
    height: 44px;
    border-radius: 999px 0 0 999px;
    background: var(--mhl-single-primary);
}

.mhl-question-single-answers .mhl-answer-meta span,
.mhl-question-single-answers .mhl-answer-meta time {
    border-color: var(--mhl-single-secondary);
    background: #fff;
}

.mhl-question-single-answers .mhl-answer-doctor a,
.mhl-question-single-answers .mhl-answer-doctor-profile {
    color: var(--mhl-single-primary-dark);
}

.mhl-question-single-answers .mhl-answer-text {
    max-width: 1160px;
    color: #40384a;
    font-size: 16px;
    line-height: 2.1;
}

.mhl-question-single-page .mhl-video-open,
.mhl-question-single-page .mhl-primary-btn {
    background: var(--mhl-single-primary);
}

.mhl-question-single-page .mhl-video-open:hover,
.mhl-question-single-page .mhl-primary-btn:hover {
    box-shadow: 0 10px 24px rgba(80, 50, 130, .18);
}

.mhl-rating-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 30px;
    margin-top: 24px;
    padding: 30px 34px;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 27px;
    background: linear-gradient(135deg, #ffffff 0%, var(--mhl-single-secondary-soft) 100%);
    box-shadow: 0 20px 50px rgba(46, 31, 74, .08);
}

.mhl-rating-box-copy p {
    margin: 9px 0 0;
    color: #716978;
    line-height: 1.9;
}

.mhl-rating-widget {
    min-width: 320px;
    padding: 20px 22px;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 21px;
    background: rgba(255, 255, 255, .92);
    text-align: center;
    transition: opacity .2s ease;
}

.mhl-rating-widget.is-loading {
    opacity: .65;
    pointer-events: none;
}

.mhl-star-buttons {
    display: flex;
    direction: ltr;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.mhl-rate-star {
    appearance: none;
    border: 0;
    background: transparent;
    color: #ded8e7;
    cursor: pointer;
    padding: 3px;
    font-size: 43px;
    line-height: 1;
    filter: drop-shadow(0 5px 9px rgba(46, 31, 74, .08));
    transition: color .15s ease, transform .15s ease, filter .15s ease;
}

.mhl-rate-star:hover,
.mhl-rate-star:focus-visible {
    transform: translateY(-3px) scale(1.08);
    outline: none;
}

.mhl-rate-star:focus-visible {
    border-radius: 7px;
    box-shadow: 0 0 0 4px var(--mhl-single-primary-soft);
}

.mhl-rate-star.is-active {
    color: #f4b400;
    filter: drop-shadow(0 7px 10px rgba(244, 180, 0, .24));
}

.mhl-rating-status {
    min-height: 24px;
    margin-top: 10px;
    color: #716978;
    font-size: 13px;
    font-weight: 700;
}

.mhl-rating-status.is-success {
    color: #0f766e;
}

.mhl-rating-status.is-error {
    color: #b91c1c;
}

.mhl-related-questions {
    margin-top: 26px;
    padding: 30px 34px;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 27px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(46, 31, 74, .06);
}

.mhl-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.mhl-related-card {
    display: flex;
    flex-direction: column;
    gap: 13px;
    min-height: 160px;
    padding: 19px;
    border: 1px solid var(--mhl-single-secondary);
    border-radius: 20px;
    background: linear-gradient(145deg, #fff, var(--mhl-single-secondary-soft));
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mhl-related-card:hover {
    border-color: var(--mhl-single-primary);
    color: inherit;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(46, 31, 74, .09);
}

.mhl-related-card h3 {
    margin: 0;
    color: #302641;
    font-size: 17px;
    line-height: 1.8;
}

.mhl-related-link {
    margin-top: auto;
    color: var(--mhl-single-primary);
    font-size: 13px;
    font-weight: 900;
}

.mhl-question-canvas-footer {
    width: 100%;
    border-top: 1px solid var(--mhl-single-secondary);
    background: #fff;
}

.mhl-question-canvas-footer-inner {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: #766f80;
    font-size: 13px;
}

.mhl-question-canvas-footer-inner strong {
    color: var(--mhl-single-primary-dark);
}

@media (max-width: 800px) {
    .mhl-question-card-footer,
    .mhl-rating-box {
        align-items: stretch;
        flex-direction: column;
    }

    .mhl-question-card-footer {
        display: flex;
    }

    .mhl-rating-box {
        grid-template-columns: 1fr;
    }

    .mhl-rating-widget {
        min-width: 0;
    }

    .mhl-related-grid {
        grid-template-columns: 1fr;
    }

    .mhl-question-canvas-header-inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .mhl-question-canvas-section-title {
        display: none;
    }
}

@media (max-width: 600px) {
    .mhl-question-canvas-header-inner,
    .mhl-question-canvas-footer-inner {
        width: min(var(--mhl-single-max-width), calc(100% - 24px));
    }

    .mhl-question-canvas-header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .mhl-question-canvas-brand img {
        max-width: 128px;
        height: 44px;
    }

    .mhl-question-canvas-home {
        min-height: 38px;
        padding: 7px 12px;
        font-size: 12px;
    }

    .mhl-question-single-page {
        padding: 22px 10px 46px;
    }

    .mhl-question-single-card,
    .mhl-rating-box,
    .mhl-related-questions {
        border-radius: 21px;
    }

    .mhl-question-single-header,
    .mhl-question-single-question,
    .mhl-question-single-answers,
    .mhl-rating-box,
    .mhl-related-questions {
        padding: 22px 18px;
    }

    .mhl-question-single-header h1 {
        font-size: 27px;
    }

    .mhl-question-single-rating-top .mhl-rating-summary {
        align-items: flex-start;
    }

    .mhl-rate-star {
        font-size: 38px;
    }

    .mhl-question-detail-link {
        justify-content: center;
        text-align: center;
    }

    .mhl-question-canvas-footer-inner {
        min-height: 64px;
        flex-direction: column;
        justify-content: center;
        gap: 2px;
    }
}

/* Article-friendly category question slider */
.mhl-category-slider {
    --mhl-slider-gap: 18px;
    --mhl-desktop-basis: calc((100% - (var(--mhl-slider-gap) * 2)) / 3);
    --mhl-tablet-basis: calc((100% - var(--mhl-slider-gap)) / 2);
    --mhl-mobile-basis: 100%;
    --mhl-slide-basis: var(--mhl-desktop-basis);
    direction: rtl;
    container-type: inline-size;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    margin: 28px 0;
    padding: 26px;
    overflow: hidden;
    border: 1px solid rgba(29, 78, 216, .10);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(37, 99, 235, .10), transparent 34%),
        linear-gradient(145deg, #f9fbff 0%, #f3f7fd 100%);
    color: var(--mhl-text);
    box-shadow: 0 18px 46px rgba(15, 23, 42, .075);
    font-family: inherit;
}

.mhl-category-slider::before {
    content: "";
    position: absolute;
    top: -80px;
    left: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    border: 44px solid rgba(56, 189, 248, .06);
    pointer-events: none;
}

.mhl-category-slider-header {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 20px;
}

.mhl-category-slider-heading {
    min-width: 0;
}

.mhl-category-slider-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb;
    font-size: 12px;
    font-weight: 900;
}

.mhl-category-slider-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #2563eb;
    box-shadow: 0 0 0 5px rgba(37, 99, 235, .11);
}

.mhl-category-slider-heading h3 {
    margin: 7px 0 4px;
    color: #10213e;
    font-size: clamp(21px, 3vw, 29px);
    line-height: 1.5;
}

.mhl-category-slider-heading p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.8;
}

.mhl-category-slider-controls {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.mhl-slider-nav {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #d7e2f2;
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    color: #153567;
    cursor: pointer;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .06);
    transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.mhl-slider-nav:hover:not(:disabled),
.mhl-slider-nav:focus-visible {
    transform: translateY(-2px);
    border-color: #93b4ef;
    color: #155eef;
    box-shadow: 0 12px 25px rgba(21, 94, 239, .14);
    outline: none;
}

.mhl-slider-nav:disabled {
    opacity: .35;
    cursor: default;
    box-shadow: none;
}

.mhl-category-slider-viewport {
    position: relative;
    z-index: 1;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.mhl-category-slider-viewport::-webkit-scrollbar {
    display: none;
}

.mhl-category-slider-viewport:focus-visible {
    border-radius: 20px;
    outline: 3px solid rgba(37, 99, 235, .18);
    outline-offset: 4px;
}

.mhl-category-slider-viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
    user-select: none;
}

.mhl-category-slider-track {
    display: flex;
    align-items: stretch;
    gap: var(--mhl-slider-gap);
    min-width: 100%;
}

.mhl-category-slide {
    flex: 0 0 var(--mhl-slide-basis);
    min-width: 0;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.mhl-category-slide-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 430px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid #e1e9f4;
    border-radius: 23px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, .06);
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.mhl-category-slide-card:hover {
    transform: translateY(-4px);
    border-color: #c8d8ef;
    box-shadow: 0 20px 42px rgba(15, 23, 42, .11);
}

.mhl-category-slide-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 0;
}

.mhl-category-slide-type {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf5ff;
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 900;
}

.mhl-category-slide-rating {
    display: inline-flex;
    direction: ltr;
    align-items: center;
    gap: 5px;
    min-height: 29px;
    padding: 4px 9px;
    border: 1px solid #f4df9a;
    border-radius: 999px;
    background: #fffaf0;
    color: #5d4a12;
    font-size: 12px;
    line-height: 1;
}

.mhl-category-slide-rating i {
    color: #f4b400;
    font-size: 16px;
    font-style: normal;
    filter: drop-shadow(0 3px 5px rgba(244, 180, 0, .18));
}

.mhl-category-slide-rating b {
    font-variant-numeric: tabular-nums;
}

.mhl-category-slide-question {
    display: block;
    padding: 16px 18px 14px;
    color: inherit;
    text-decoration: none;
}

.mhl-category-slide-question:hover,
.mhl-category-slide-question:focus-visible {
    color: inherit;
    text-decoration: none;
    outline: none;
}

.mhl-category-slide-question-label {
    display: block;
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
}

.mhl-category-slide-question h4 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: #12233f;
    font-size: 17px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    transition: color .2s ease;
}

.mhl-category-slide-question:hover h4,
.mhl-category-slide-question:focus-visible h4 {
    color: #155eef;
}

.mhl-category-slide-question p {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    color: #64748b;
    font-size: 12px;
    line-height: 1.9;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mhl-category-slide-answer {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0 18px 16px;
    padding: 14px;
    border: 1px solid #e2ebf6;
    border-radius: 17px;
    background: linear-gradient(145deg, #f9fbff, #f3f8ff);
    color: #334155;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.mhl-category-slide-answer:hover,
.mhl-category-slide-answer:focus-visible {
    border-color: #bdd2f1;
    background: #f0f6ff;
    color: #334155;
    text-decoration: none;
    outline: none;
}

.mhl-category-answer-icon {
    flex: 0 0 auto;
    width: 31px;
    height: 31px;
    border-radius: 10px;
    background: #155eef;
    color: #fff;
    text-align: center;
    font-family: Georgia, serif;
    font-size: 27px;
    line-height: 40px;
    box-shadow: 0 7px 16px rgba(21, 94, 239, .19);
}

.mhl-category-answer-copy {
    min-width: 0;
}

.mhl-category-answer-copy small {
    display: block;
    margin-bottom: 4px;
    color: #155eef;
    font-size: 10px;
    font-weight: 900;
}

.mhl-category-answer-copy > span {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.95;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.mhl-category-slide-video {
    position: relative;
    display: block;
    width: auto;
    min-height: 155px;
    aspect-ratio: 16 / 9;
    margin: 0 18px 10px;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 17px;
    background: #0f172a;
    color: #fff;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
}

.mhl-category-slide-video:hover {
    transform: none;
    box-shadow: 0 13px 28px rgba(15, 23, 42, .18);
}

.mhl-category-slide-video img,
.mhl-category-video-placeholder,
.mhl-category-video-shade {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.mhl-category-slide-video img {
    object-fit: cover;
    transition: transform .35s ease;
}

.mhl-category-slide-video:hover img {
    transform: scale(1.04);
}

.mhl-category-video-placeholder {
    background:
        radial-gradient(circle at 30% 20%, rgba(56, 189, 248, .5), transparent 25%),
        linear-gradient(135deg, #0f2d5d, #155eef);
}

.mhl-category-video-shade {
    background: linear-gradient(180deg, rgba(2, 6, 23, .04), rgba(2, 6, 23, .68));
}

.mhl-category-video-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    padding-right: 3px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    color: #155eef;
    font-size: 20px;
    transform: translate(-50%, -58%);
    box-shadow: 0 12px 26px rgba(2, 6, 23, .25);
    transition: transform .2s ease;
}

.mhl-category-slide-video:hover .mhl-category-video-play {
    transform: translate(-50%, -58%) scale(1.08);
}

.mhl-category-slide-video strong {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    color: #fff;
    font-size: 11px;
}

.mhl-category-slide-video-caption {
    display: -webkit-box;
    margin: 0 18px 14px;
    overflow: hidden;
    color: #64748b;
    font-size: 11px;
    line-height: 1.8;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.mhl-category-slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 14px 18px 17px;
    border-top: 1px solid #edf1f7;
    background: #fcfdff;
}

.mhl-category-slide-doctor {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.mhl-category-doctor-avatar {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border: 2px solid #fff;
    border-radius: 13px;
    background: linear-gradient(135deg, #dbeafe, #bfdbfe);
    color: #155eef;
    box-shadow: 0 4px 13px rgba(15, 23, 42, .10);
}

.mhl-category-doctor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mhl-category-doctor-avatar i {
    font-size: 23px;
    font-style: normal;
    font-weight: 400;
}

.mhl-category-slide-doctor > span:last-child {
    min-width: 0;
}

.mhl-category-slide-doctor strong,
.mhl-category-slide-doctor small {
    display: block;
    overflow: hidden;
    max-width: 130px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mhl-category-slide-doctor strong {
    color: #1e293b;
    font-size: 11px;
}

.mhl-category-slide-doctor small {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.mhl-category-slide-more {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
    color: #155eef;
    font-size: 10px;
    font-weight: 900;
    text-decoration: none;
}

.mhl-category-slide-more:hover,
.mhl-category-slide-more:focus-visible {
    color: #0f3f9e;
    text-decoration: none;
    outline: none;
}

.mhl-category-slider-progress {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
}

.mhl-slider-progress-bar {
    position: relative;
    display: block;
    flex: 1 1 auto;
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce6f3;
}

.mhl-slider-progress-bar i {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #155eef);
    transition: width .25s ease;
}

.mhl-slider-counter {
    display: inline-flex;
    direction: ltr;
    align-items: baseline;
    gap: 5px;
    min-width: 48px;
    color: #94a3b8;
    font-size: 11px;
}

.mhl-slider-counter b {
    color: #155eef;
    font-size: 16px;
}

.mhl-slider-counter em {
    font-style: normal;
}

@container (max-width: 880px) {
    .mhl-category-slider {
        --mhl-slide-basis: var(--mhl-tablet-basis);
    }
}

@container (max-width: 570px) {
    .mhl-category-slider {
        --mhl-slider-gap: 13px;
        padding: 19px 15px;
        border-radius: 22px;
    }

    .mhl-category-slider-header {
        align-items: center;
        margin-bottom: 16px;
    }

    .mhl-category-slider-heading p {
        display: none;
    }

    .mhl-slider-nav {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .mhl-category-slider {
        --mhl-slide-basis: var(--mhl-mobile-basis);
    }

    .mhl-category-slide-card {
        min-height: 410px;
        border-radius: 20px;
    }
}

@media (min-width: 761px) and (max-width: 1024px) {
    .mhl-category-slider {
        --mhl-slide-basis: var(--mhl-tablet-basis);
    }
}

@media (max-width: 760px) {
    .mhl-category-slider {
        --mhl-slide-basis: var(--mhl-mobile-basis);
    }
}

@media (prefers-reduced-motion: reduce) {
    .mhl-category-slider-viewport,
    .mhl-category-slide-card,
    .mhl-slider-nav,
    .mhl-category-slide-video img,
    .mhl-category-video-play,
    .mhl-slider-progress-bar i {
        scroll-behavior: auto;
        transition: none;
    }
}


/* Keep conditional doctor answer fields hidden even if theme CSS forces labels visible. */
.mhl-doctor-answer-form [hidden] {
    display: none !important;
}

/* SEO/E-E-A-T answer author details */
.mhl-answer-doctor{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:10px 0 16px;padding:12px 14px;border:1px solid rgba(0,0,0,.08);border-radius:12px;background:rgba(255,255,255,.55)}
.mhl-answer-doctor-name a,.mhl-answer-doctor-profile{font-weight:700;text-decoration:none}
.mhl-answer-doctor-specialty,.mhl-answer-doctor-code{font-size:.92em;opacity:.82}
.mhl-accepted-answer-badge{font-weight:700}

/* Management referral notices: intentionally separate from medical answers */
.mhl-management-notices{display:grid;gap:12px;margin:18px 0 4px}
.mhl-management-notice{display:flex;gap:14px;align-items:flex-start;padding:16px 18px;border:1px solid rgba(126,87,194,.22);border-radius:16px;background:linear-gradient(135deg,rgba(126,87,194,.08),rgba(208,196,232,.16));color:#344054}
.mhl-management-notice-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:12px;background:var(--mhl-single-primary,#7e57c2);color:#fff;font-size:22px;font-weight:800;line-height:1}
.mhl-management-notice-body{min-width:0;flex:1}.mhl-management-notice-head{display:flex;align-items:center;flex-wrap:wrap;gap:8px 12px;margin-bottom:7px}
.mhl-management-notice-head strong{color:var(--mhl-single-primary-dark,#5e3ea0);font-size:14px}.mhl-management-notice-head span{padding:3px 9px;border-radius:999px;background:#fff;color:#667085;font-size:12px}
.mhl-management-notice p{margin:0;line-height:2;color:#475467}.mhl-management-notice-compact{display:block;margin:12px 0;padding:12px 14px;border-radius:12px}.mhl-management-notice-compact strong{display:block;margin-bottom:5px;color:#5e3ea0}.mhl-management-notice-compact p{margin:0}
@media(max-width:640px){.mhl-management-notice{padding:14px;gap:10px}.mhl-management-notice-icon{width:34px;height:34px;flex-basis:34px}.mhl-management-notice-head{align-items:flex-start;flex-direction:column;gap:6px}}

/* Clinirova shared anti-spam controls */
.mhl-antispam-hp{
    position:absolute!important;
    left:-10000px!important;
    top:auto!important;
    width:1px!important;
    height:1px!important;
    overflow:hidden!important;
    opacity:0!important;
    pointer-events:none!important;
}
.mhl-antispam-check{
    display:flex;
    align-items:center;
    gap:9px;
    width:max-content;
    max-width:100%;
    margin:12px 0 16px;
    padding:10px 13px;
    border:1px solid #dcdcde;
    border-radius:9px;
    background:#fff;
    color:#1d2327;
    font-size:14px;
    line-height:1.5;
    cursor:pointer;
    user-select:none;
}
.mhl-antispam-check input[type="checkbox"]{
    width:18px;
    height:18px;
    min-width:18px;
    margin:0;
    accent-color:#7e57c2;
}
