.doctor-detail-cases {
    padding: 24px;
}

.doctor-detail-cases__head {
    display: grid;
    gap: 14px;
    margin-bottom: 20px;
}

.doctor-detail-cases__more {
    color: #064aa7;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.doctor-detail-cases__more::after {
    content: "→";
    margin-left: 7px;
}

.doctor-detail-journey__tabs {
    margin: 0 0 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.doctor-detail-journey__tabs::-webkit-scrollbar {
    display: none;
}

.doctor-detail-journey__tabs button {
    min-width: 82px;
    height: 32px;
    padding: 0 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(6, 27, 92, .1);
    border-radius: 999px;
    color: #061b5c;
    background: #f6f8ff;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(18, 29, 74, .08);
}

.doctor-detail-journey__tabs button.is-active {
    color: #fff;
    background: #061b5c;
}

.doctor-detail-journey__panel {
    display: none;
}

.doctor-detail-journey__panel.is-active {
    display: block;
}

.doctor-detail-journey__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.doctor-detail-journey-card {
    padding: 7px 7px 18px;
    display: block;
    border: 1px solid rgba(16, 30, 80, .08);
    border-radius: 12px;
    background: #fff;
    text-align: center;
    text-decoration: none;
}

.doctor-detail-journey-card:hover {
    text-decoration: none;
}

.doctor-detail-journey-card.is-hidden,
.doctor-detail-journey__more[hidden] {
    display: none;
}

.doctor-detail-journey-card__photos {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 340 / 198;
    border-radius: 10px;
    background: #eef2f7;
}

.doctor-detail-journey-card figure {
    margin: 0;
    overflow: hidden;
}

.doctor-detail-journey-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.doctor-detail-journey-card__labels {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 2;
    display: flex;
    transform: translateX(-50%);
}

.doctor-detail-journey-card__labels span {
    min-width: 48px;
    padding: 6px 8px;
    color: #061b5c;
    background: rgba(255, 255, 255, .94);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
}

.doctor-detail-journey-card__labels span:first-child {
    border-radius: 12px 0 0;
}

.doctor-detail-journey-card__labels span:last-child {
    border-radius: 0 12px 0 0;
}

.doctor-detail-journey-card h3 {
    margin: 10px 0 4px;
    color: #061b5c;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.doctor-detail-journey-card p {
    margin: 0;
    color: #061b5c !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.doctor-detail-journey-card__more {
    min-width: 94px;
    min-height: 30px;
    margin: 12px auto 0;
    padding: 7px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #064aa7;
    border-radius: 999px;
    color: #064aa7 !important;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
}

.doctor-detail-journey-card:hover .doctor-detail-journey-card__more {
    color: #fff !important;
    background: #064aa7;
}

.doctor-detail-journey__more {
    min-width: 132px;
    min-height: 38px;
    margin: 28px auto 0;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: #064aa7;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(6, 74, 167, .22);
}

@media (min-width: 768px) {
    .doctor-detail-cases {
        padding: 34px;
    }

    .doctor-detail-cases__head {
        grid-template-columns: 1fr auto;
        align-items: center;
        margin-bottom: 24px;
    }

    .doctor-detail-journey__grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}

@media (max-width: 767.98px) {
    .doctor-detail-cases {
        padding: 20px;
    }

    .doctor-detail-cases__head {
        gap: 12px;
        margin-bottom: 18px;
    }

    .doctor-detail-journey__tabs {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 18px;
    }

    .doctor-detail-journey__tabs button {
        min-width: auto;
        padding: 0 14px;
        font-size: 13px;
    }

    .doctor-detail-journey-card__photos {
        aspect-ratio: 360 / 250;
    }
}

@media (max-width: 380px) {
    .doctor-detail-journey__grid {
        grid-template-columns: 1fr;
    }
}
