/* ==========================================================================
   Service detail: readable rich content + clinic product visual
   ========================================================================== */

/* ---- Rich content (post body under the lead paragraph) ---- */
.service__Detail__sec__first .section__row .left__column .section__desc {
    color: #3f3f4a;
}
.service__Detail__sec__first .section__desc p {
    margin: 0 0 16px;
    color: #3f3f4a;
    font-size: 16px;
    line-height: 1.75;
}
.service__Detail__sec__first .section__desc h3 {
    margin: 36px 0 12px;
    padding-left: 14px;
    border-left: 3px solid #000000;
    color: #000000;
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
}
.service__Detail__sec__first .section__desc h3:first-child {
    margin-top: 0;
}
.service__Detail__sec__first .section__desc strong {
    color: #000000;
    font-weight: 600;
}
.service__Detail__sec__first .section__desc a {
    color: #000000;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: opacity 0.2s ease;
}
.service__Detail__sec__first .section__desc a:hover {
    opacity: 0.65;
}
.service__Detail__sec__first .service__detail__lead {
    color: #000000;
}

/* ---- Product visual (replaces the generic photo on clinic pages) ---- */
.service-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 48px;
    background: #0d0d0f;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    font-family: "Poppins", sans-serif;
}
.service-visual__glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(520px 360px at 78% 18%, rgba(255, 255, 255, 0.10), transparent 70%),
        radial-gradient(420px 320px at 12% 88%, rgba(255, 255, 255, 0.06), transparent 70%);
    pointer-events: none;
}
.service-visual__glow::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 85%);
    -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 40%, transparent 85%);
}
.service-visual__stage {
    position: sticky;
    top: 130px;
    width: 100%;
    max-width: 520px;
    min-height: 640px;
}

.sv-card {
    position: absolute;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 2px 6px rgba(0, 0, 0, 0.25);
    color: #111111;
    font-size: 13px;
    line-height: 1.45;
}
.sv-card__title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 20px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
    border-bottom: 1px solid #eeeeee;
}
.sv-card__title i {
    font-size: 15px;
}

.sv-list {
    list-style: none;
    margin: 0;
    padding: 8px 12px 14px;
}
.sv-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 8px;
    border-bottom: 1px solid #f2f2f2;
}
.sv-list li:last-child {
    border-bottom: 0;
}
.sv-list time {
    flex: 0 0 42px;
    font-size: 12px;
    font-weight: 600;
    color: #555555;
}
.sv-list span:not(.sv-avatar) {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sv-avatar {
    display: inline-flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f0f0f0;
    color: #111111;
    font-size: 11px;
    font-weight: 600;
}
.sv-avatar--brand {
    background: #000000;
    color: #ffffff;
    font-size: 14px;
}

.sv-pill {
    flex: 0 0 auto;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-style: normal;
    font-weight: 500;
    white-space: nowrap;
}
.sv-pill.is-ok {
    background: #111111;
    color: #ffffff;
}
.sv-pill.is-wait {
    background: #f1f1f1;
    color: #333333;
}
.sv-pill.is-new {
    background: #ffffff;
    color: #111111;
    box-shadow: inset 0 0 0 1px #111111;
}

.sv-chat__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid #eeeeee;
}
.sv-chat__head strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
}
.sv-chat__head small {
    display: block;
    font-size: 11px;
    color: #777777;
}
.sv-chat__body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px 18px 18px;
    background: #fafafa;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.sv-msg {
    max-width: 85%;
    margin: 0;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 12.5px;
}
.sv-msg--out {
    align-self: flex-start;
    background: #ffffff;
    border: 1px solid #e7e7e7;
    border-top-left-radius: 4px;
}
.sv-msg--in {
    align-self: flex-end;
    background: #111111;
    color: #ffffff;
    border-top-right-radius: 4px;
}
.sv-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.sv-chips span {
    padding: 5px 10px;
    border: 1px solid #111111;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    background: #ffffff;
}
.sv-status {
    align-self: flex-end;
    margin: 2px 0 0;
    font-size: 11px;
    color: #333333;
}
.sv-status i {
    margin-right: 4px;
}

.sv-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 14px;
}
.sv-badge > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #000000;
    color: #ffffff;
    font-size: 15px;
}
.sv-badge span {
    font-size: 12px;
    color: #555555;
}
.sv-badge strong {
    display: block;
    font-size: 13px;
    color: #000000;
}

/* Layout: booking + dental */
.service-visual--booking .sv-schedule,
.service-visual--healthcare .sv-schedule {
    top: 0;
    left: 0;
    width: 84%;
}
.service-visual--booking .sv-chat--small,
.service-visual--healthcare .sv-chat--small {
    top: 262px;
    right: 0;
    width: 66%;
}
.service-visual--booking .sv-badge,
.service-visual--healthcare .sv-badge {
    top: 540px;
    left: 0;
    max-width: 52%;
}

/* Layout: whatsapp */
.service-visual--whatsapp .sv-chat {
    top: 0;
    left: 0;
    width: 70%;
}
.service-visual--whatsapp .sv-inbox {
    top: 300px;
    right: 0;
    width: 66%;
}
.service-visual--whatsapp .sv-badge {
    top: 560px;
    left: 0;
    max-width: 52%;
}

/* Gentle float, respects reduced motion */
@media (prefers-reduced-motion: no-preference) {
    .service-visual .sv-card {
        animation: sv-float 7s ease-in-out infinite;
    }
    .service-visual .sv-card:nth-child(2) {
        animation-delay: -2.5s;
    }
    .service-visual .sv-card:nth-child(3) {
        animation-delay: -4.5s;
    }
}
@keyframes sv-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Large screens: keep the composition from stretching too tall */
@media only screen and (min-width: 1400px) {
    .service-visual__stage {
        max-width: 560px;
    }
}

/* Tablet & mobile: visual moves under the text, like the old photo */
@media only screen and (max-width: 991px) {
    .service-visual {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
        margin-top: 50px;
        padding: 40px 20px;
        border-radius: 0;
    }
    .service-visual__stage {
        position: relative;
        top: 0;
        min-height: 560px;
        max-width: 480px;
        margin: 0 auto;
    }
    .service__Detail__sec__first .section__desc h3 {
        padding-left: 0;
        border-left: 0;
    }
}
@media only screen and (max-width: 480px) {
    .service-visual__stage {
        min-height: 540px;
    }
    .service-visual--booking .sv-schedule,
    .service-visual--healthcare .sv-schedule,
    .service-visual--whatsapp .sv-chat {
        width: 100%;
    }
    .service-visual--booking .sv-chat--small,
    .service-visual--healthcare .sv-chat--small,
    .service-visual--whatsapp .sv-inbox {
        width: 86%;
    }
    .service-visual .sv-badge {
        display: none;
    }
    .sv-list time {
        display: none;
    }
}
