.home-doctor {
    background-color: var(--color-secondary-1);

    >.container {
        padding-top: 80px;
        padding-bottom: 60px;

        >h2 {
            color: var(--color-primary-2);
            margin-bottom: 24px;
        }
    }
}

.home-doctor-swiper {
    background-color: var(--color-gray-6);
    >.swiper {
        overflow-x: clip;
        overflow-y: visible;

    }
}
.home-doctor-item {
    max-width: 1440px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 660px 1fr;
    grid-template-rows: min-content 1fr;
    gap: 24px 60px;
}

.home-doctor-img {
    grid-row: span 2;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding-left: 120px;

    >img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center bottom;
    }

    >.circle-1,
    >.circle-2,
    >.circle-3 {
        position: absolute;
        z-index: -1;
        aspect-ratio: 1;
        border-radius: 50%;
    }

    >.circle-1 {
        bottom: 280px;
        left: 60px;
        width: 200px;
        background-color: color-mix(in oklab, var(--color-primary-3) 80%, transparent);
        animation: circle-scale-big 3s ease-in-out infinite alternate;
    }

    >.circle-2 {
        bottom: -180px;
        left: 0px;
        width: 100%;
        max-width: 606px;
        background-color: color-mix(in oklab, white 50%, transparent);
        backdrop-filter: blur(10px);
        animation: circle-scale-small 3s ease-in-out infinite alternate;
    }

    >.circle-3 {
        top: 120px;
        left: 81.48%;
        width: 40px;
        background-color: color-mix(in oklab, var(--color-primary-3) 80%, transparent);
        animation: circle-scale-big 3s ease-in-out infinite alternate;
    }
}
.home-doctor-title {
    position: relative;
    padding: 60px 120px 0 0;
    >a {
        position: absolute;
        z-index: 2;
        right: 120px;
        top: -60px;
        width: 200px;
        aspect-ratio: 1;
        border-radius: 50%;
        background-color: var(--color-primary-1);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: background-color 0.3s;
        >p{
            color: white;
            text-align: center;
        }
        &:hover{
            background-color: var(--color-primary-2);
        }
    }
    >h5 {
        color: var(--color-primary-1);
        margin-bottom: 24px;
    }
}
.home-doctor-content {
    padding: 0 120px 60px 0;

    >.tags {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-bottom: 60px;

        >p {
            padding: 4px 16px;
            border-radius: 6px;
            background-color: color-mix(in oklab, var(--color-primary-2) 10%, transparent);
            color: var(--color-primary-2);
        }
    }

    >div:not(.tags) {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;

        h5 {
            color: var(--color-primary-2);
            padding-left: 12px;
            border-left: 1px solid var(--color-primary-2);
            margin-bottom: 12px;
        }

        ul {
            list-style-type: initial;
            padding-left: 28px;

            >li {
                color: var(--color-gray-3);
            }
        }
    }
}

.home-doctor-swiper-prev,
.home-doctor-swiper-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    cursor: pointer;
    >svg>path:nth-child(1){
        transition: fill 0.3s;
    }
    &:hover>svg>path:nth-child(1){
        fill: var(--color-gray-4);
    }
}
.home-doctor-swiper-prev{
    left: 0;
}
.home-doctor-swiper-next{
    right: 0;
}

@keyframes circle-scale-big {
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(1.2);
    }
}
@keyframes circle-scale-small {
    0%{
        transform: scale(1);
    }
    100%{
        transform: scale(0.8);
    }
}


@media screen and (width < 1440px) {
    .home-doctor-item {
        grid-template-columns: 564px 1fr;
        gap: 24px;
    }
    .home-doctor-img {
        padding-left: 24px;
    }
    .home-doctor-title {
        padding: 60px 24px 0 0;
    }
    .home-doctor-content {
        padding: 0 24px 60px 0;
    }
}
@media screen and (width < 1248px) {
    .home-doctor-item {
        grid-template-columns: 480px 1fr;
    }
    .home-doctor-title {
        >a {
            right: 24px;
            width: 150px;
        }
    }
}

@media screen and (width < 1024px) {
    .home-doctor-item {
        grid-template-columns: 100%;
        grid-template-rows: auto;
        gap: 0;
    }
    .home-doctor-img {
        padding-left: 0;
        grid-row: auto;
        aspect-ratio: 1;
        width: 100%;
        max-width: 486px;
        margin: 0 auto;
        >.circle-1 {
            top: 5%;
            bottom: auto;
            left: 8.7%;
            width: 28.8%;
        }
        >.circle-2 {
            bottom: 0px;
            width: 87.2%;
            max-width: none;
        }
        >.circle-3 {
            top: 13.7%;
            left: auto;
            right: 13.7%;
            width: 5.8%;
        }
    }
    .home-doctor-title {
        order: -1;
        padding: 40px 24px 16px;
        >h5, >h4 {
            text-align: center;
        }
        >a {
            top: calc(100% + 286px);
            right: auto;
            left: 24px;
            width: 200px;
            >p{
                width: 36px;
            }
        }
    }
    .home-doctor-content {
        padding: 32px 24px;
    }
    .home-doctor-swiper-prev,
    .home-doctor-swiper-next {
        top: 30%;
    }
}

@media screen and (width < 768px) {
    .home-doctor-title {
        >h5 {
            margin-bottom: 12px;
        }
        >a > p{
            width: 32px;
        }
    }
}

@media screen and (width < 576px) {
    .home-doctor-content {
        >.tags {
            gap: 4px;
            margin-bottom: 32px;
        }
        >div:not(.tags) {
            grid-template-columns: 100%;
            h5 {
                margin-bottom: 8px;
            }
            ul {
                padding-left: 24px;
            }
        }
    }
}

@media screen and (width < 486px) {
    .home-doctor-title > a {
        top: calc(100% + 74.4vw);
        width: 25.6%;
    }
}