/* LEFT CONTAINER */
.specialist-left {
    min-height: 320px;
    position: relative;
}

/* =========================
   BIG PREVIEW IMAGE
========================= */
.spec-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.preview-wrap {
    width: 100%;
    max-width: 420px;
    height: 420px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* fill container consistently */
    object-position: center;
    display: block;
}

.preview-hover {
    position: absolute;
    inset: 0;
    background: rgba(255, 107, 107, 0.9); /* sky red */
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.preview-wrap:hover .preview-hover {
    opacity: 1;
}

/* =========================
   SMALL STRIP
========================= */
.spec-strip {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

/* SMALL IMAGE CARD – DEFAULT (PARALLELOGRAM) */
.strip-item {
    width: 60px;
    height: 60px;
    overflow: hidden;
    transform: skewX(-20deg); /* parallelogram card */
    opacity: 0.6;
    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

/* IMAGE DEFAULT (counter-skew to appear normal) */
.strip-item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* fit full image, no cropping */
    object-position: center; /* center the image */
    transform: skewX(20deg); /* counter-skew to match parallelogram */
    transition: transform 0.3s ease;
    display: block;
}

/* HOVER / ACTIVE → STRAIGHT SQUARE */
.strip-item:hover,
.strip-item.active {
    opacity: 1;
    transform: skewX(0deg); /* card straight */
}

.strip-item.active {
    border-color: #ff6b6b;
}

/* OPTIONAL: also show border on hover */
.strip-item:hover {
    border-color: rgba(139, 0, 0, 0.4);
}

/* IMAGE STRAIGHT ON HOVER (NO SKEW, FULL IMAGE FIT) */
.strip-item:hover img,
.strip-item.active img {
    transform: scale(1.05); /* just a slight zoom, no skew */
    object-fit: contain; /* keep full image */
    object-position: center;
}

/* =========================
   RIGHT SIDE DOCTOR LIST
========================= */
.doctor-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 5px;
}

/* Optional title spacing */
.col-md-4 p {
    font-weight: 600;
    margin-bottom: 10px;
}

/* =========================
   DOCTOR LIST WITH AVATAR
========================= */
.doctor-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    font-size: 14px;
}

/* Avatar */
.doctor-item img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid transparent;
    transition: 0.3s;
}

/* Hover */
.doctor-item:hover {
    background: #ffecec;
    transform: translateX(6px);
}

/* Active */
.doctor-item.active {
    background: #ff6b6b;
    color: #fff;
    border-left: 4px solid #8b0000;
}

.doctor-item.active img {
    border-color: #fff;
}

/* =========================
   FADE ANIMATION
========================= */
.fade-out {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.35s ease;
}

/* Scrollbar (optional sexy UI) */
.doctor-list::-webkit-scrollbar {
    width: 6px;
}

.doctor-list::-webkit-scrollbar-thumb {
    background: #ff6b6b;
    border-radius: 10px;
}