@charset "utf-8";

.doctor-v2-list,
.doctor-v2-detail,
.doctor-v2-write {
    --doctor-red: #e94a4d;
    --doctor-red-dark: #c9363a;
    --doctor-text: #171717;
    --doctor-muted: #676767;
    --doctor-line: #e4e4e4;
    --doctor-surface: #f4f4f2;
    box-sizing: border-box;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    color: var(--doctor-text);
    letter-spacing: 0;
}

.doctor-v2-list *,
.doctor-v2-detail *,
.doctor-v2-write * {
    box-sizing: border-box;
    letter-spacing: 0;
}

.doctor-v2-list {
    padding: 145px 0 160px;
}

.doctor-v2-list__header {
    margin-bottom: 72px;
    text-align: center;
}

.doctor-v2-eyebrow {
    margin: 0 0 18px;
    color: var(--doctor-red);
    font-size: 17px;
    font-weight: 600;
}

.doctor-v2-list__header h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
}

.doctor-v2-list__header > p:last-child {
    margin: 24px 0 0;
    color: var(--doctor-muted);
    font-size: 18px;
    line-height: 1.7;
}

.doctor-v2-admin-bar,
.doctor-v2-admin-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 22px;
}

.doctor-v2-admin-actions {
    margin-top: 30px;
}

.doctor-v2-admin-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 20px;
    border: 1px solid var(--doctor-red);
    border-radius: 4px;
    background: var(--doctor-red);
    color: #fff !important;
    font: inherit;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
}

.doctor-v2-admin-button--muted {
    border-color: #4e4e4e;
    background: #4e4e4e;
}

.doctor-v2-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 52px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.doctor-v2-grid__item {
    position: relative;
    min-width: 0;
}

.doctor-v2-check {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 3px;
    background: rgba(255,255,255,.92);
    font-size: 13px;
}

.doctor-v2-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #ededeb;
    border-radius: 6px;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.doctor-v2-card:hover,
.doctor-v2-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(0,0,0,.09);
}

.doctor-v2-card__link {
    display: flex;
    height: 100%;
    color: inherit !important;
    text-decoration: none !important;
    flex-direction: column;
}

.doctor-v2-card__visual {
    position: relative;
    height: 400px;
    overflow: hidden;
    border-radius: 72px 0 72px 0;
    background: #f2f2f0;
}

.doctor-v2-card__visual::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 36%;
    background: linear-gradient(to top, rgba(233,74,77,.35), rgba(233,74,77,0));
    content: "";
    pointer-events: none;
}

.doctor-v2-card__visual img {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    object-position: center bottom;
}

.doctor-v2-card__badge {
    position: absolute;
    z-index: 1;
    top: 28px;
    left: 28px;
    padding: 8px 13px;
    border: 1px solid #222;
    border-radius: 18px;
    background: rgba(255,255,255,.78);
    font-size: 13px;
    font-weight: 600;
}

.doctor-v2-card__body {
    display: flex;
    flex: 1;
    padding: 30px 30px 28px;
    flex-direction: column;
}

.doctor-v2-card__identity h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}

.doctor-v2-card__identity h2 small {
    font-size: 17px;
    font-weight: 500;
}

.doctor-v2-card__english {
    margin: 7px 0 0;
    color: #363636;
    font-size: 15px;
}

.doctor-v2-card__field {
    margin: 26px 0 0;
    color: var(--doctor-red-dark);
    font-size: 18px;
    line-height: 1.45;
    font-weight: 700;
    word-break: keep-all;
}

.doctor-v2-card__procedures {
    display: flex;
    gap: 7px 15px;
    margin: 15px 0 0;
    padding: 0;
    color: #555;
    font-size: 15px;
    line-height: 1.55;
    list-style: none;
    flex-wrap: wrap;
}

.doctor-v2-card__procedures li {
    position: relative;
    padding-left: 10px;
}

.doctor-v2-card__procedures li::before {
    position: absolute;
    top: .68em;
    left: 0;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--doctor-red);
    content: "";
}

.doctor-v2-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 24px;
    color: #282828;
    font-size: 14px;
    font-weight: 600;
}

.doctor-v2-card__more span {
    color: var(--doctor-red);
    font-size: 25px;
    line-height: 1;
}

.doctor-v2-empty {
    padding: 100px 20px;
    border-top: 1px solid var(--doctor-line);
    border-bottom: 1px solid var(--doctor-line);
    color: var(--doctor-muted);
    text-align: center;
}

.doctor-v2-pagination {
    margin-top: 60px;
    text-align: center;
}

/* 의료진 상세 */
.doctor-v2-detail {
    padding: 120px 0 155px;
}

.doctor-v2-detail__hero {
    display: grid;
    min-height: 720px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr);
    align-items: stretch;
}

.doctor-v2-detail__portrait {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border-radius: 110px 0 110px 0;
    background: #f1f1ef;
}

.doctor-v2-detail__portrait::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 32%;
    background: linear-gradient(to top, rgba(233,74,77,.16), rgba(233,74,77,0));
    content: "";
}

.doctor-v2-detail__portrait img {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: auto;
    object-fit: contain;
    object-position: center bottom;
}

.doctor-v2-detail__content {
    display: flex;
    min-width: 0;
    padding: 48px 0 40px 80px;
    flex-direction: column;
    justify-content: center;
}

.doctor-v2-detail__identity {
    display: flex;
    gap: 22px;
    align-items: center;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--doctor-line);
}

.doctor-v2-detail__identity h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.2;
    font-weight: 700;
}

.doctor-v2-detail__identity h1 small {
    font-size: 22px;
    font-weight: 500;
}

.doctor-v2-detail__english {
    margin: 8px 0 0;
    color: #3b3b3b;
    font-size: 17px;
}

.doctor-v2-detail__label {
    margin: 0 0 12px;
    color: var(--doctor-red);
    font-size: 15px;
    font-weight: 700;
}

.doctor-v2-detail__field {
    margin: 36px 0 0;
}

.doctor-v2-detail__field h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.4;
}

.doctor-v2-detail__summary {
    margin: 20px 0 0;
    color: var(--doctor-muted);
    font-size: 17px;
    line-height: 1.8;
}

.doctor-v2-detail__procedures {
    display: grid;
    gap: 10px 24px;
    margin: 30px 0 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
}

.doctor-v2-detail__procedures li {
    position: relative;
    padding-left: 18px;
    font-size: 16px;
    line-height: 1.55;
}

.doctor-v2-detail__procedures li::before {
    position: absolute;
    top: .56em;
    left: 0;
    width: 7px;
    height: 7px;
    border: 2px solid var(--doctor-red);
    border-radius: 50%;
    content: "";
}

.doctor-v2-detail__section {
    padding: 115px 0 0;
}

.doctor-v2-detail__section-head {
    margin-bottom: 44px;
    text-align: center;
}

.doctor-v2-detail__section-head p {
    margin: 0 0 12px;
    color: var(--doctor-red);
    font-size: 16px;
    font-weight: 600;
}

.doctor-v2-detail__section-head h2 {
    margin: 0;
    font-size: 36px;
    line-height: 1.35;
    word-break: keep-all;
}

.doctor-v2-detail__bio {
    max-width: 960px;
    margin: 0 auto 45px;
    color: #555;
    font-size: 17px;
    line-height: 1.9;
    text-align: center;
}

.doctor-v2-detail__credentials {
    display: grid;
    gap: 0 48px;
    margin: 0;
    padding: 42px 50px;
    border-top: 1px solid var(--doctor-line);
    border-bottom: 1px solid var(--doctor-line);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
}

.doctor-v2-detail__credentials li {
    position: relative;
    padding: 10px 0 10px 16px;
    color: #444;
    font-size: 16px;
    line-height: 1.65;
}

.doctor-v2-detail__credentials li::before {
    position: absolute;
    top: 1.35em;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--doctor-red);
    content: "";
}

.doctor-v2-detail__links {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 45px;
    flex-wrap: wrap;
}

.doctor-v2-detail__links a,
.doctor-v2-detail__back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border: 1px solid var(--doctor-red);
    border-radius: 4px;
    color: var(--doctor-red) !important;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none !important;
}

.doctor-v2-detail__footer {
    display: flex;
    justify-content: center;
    margin-top: 70px;
}

.doctor-v2-detail__admin {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

/* 의료진 글쓰기 */
.doctor-v2-write {
    padding: 110px 0 150px;
}

.doctor-v2-write__header {
    margin-bottom: 45px;
    text-align: center;
}

.doctor-v2-write__header h1 {
    margin: 0;
    font-size: 38px;
}

.doctor-v2-write__header p {
    margin: 16px 0 0;
    color: var(--doctor-muted);
    font-size: 16px;
}

.doctor-v2-write__layout {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
    align-items: start;
}

.doctor-v2-write__section {
    margin-bottom: 22px;
    padding: 30px;
    border: 1px solid var(--doctor-line);
    border-radius: 6px;
    background: #fff;
}

.doctor-v2-write__section h2 {
    margin: 0 0 25px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--doctor-line);
    font-size: 22px;
}

.doctor-v2-write__grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.doctor-v2-write__field {
    min-width: 0;
}

.doctor-v2-write__field--full {
    grid-column: 1 / -1;
}

.doctor-v2-write__field label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
    font-weight: 700;
}

.doctor-v2-write__field label span {
    color: var(--doctor-red);
}

.doctor-v2-write__field input[type="text"],
.doctor-v2-write__field input[type="number"],
.doctor-v2-write__field input[type="file"],
.doctor-v2-write__field select,
.doctor-v2-write__field textarea {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    background: #fff;
    color: #222;
    font: inherit;
    font-size: 15px;
}

.doctor-v2-write__field textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.65;
}

.doctor-v2-write__field small {
    display: block;
    margin-top: 7px;
    color: #777;
    font-size: 12px;
    line-height: 1.5;
}

.doctor-v2-write__existing-file {
    display: block;
    margin-top: 8px;
    color: #666;
    font-size: 13px;
}

.doctor-v2-write__preview {
    position: sticky;
    top: 120px;
    overflow: hidden;
    border: 1px solid var(--doctor-line);
    border-radius: 6px;
    background: #f2f2f0;
}

.doctor-v2-write__preview-image {
    height: 360px;
    background: #ececea;
}

.doctor-v2-write__preview-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
}

.doctor-v2-write__preview-body {
    padding: 25px;
    background: #fff;
}

.doctor-v2-write__preview-body h2 {
    margin: 0;
    font-size: 28px;
}

.doctor-v2-write__preview-body h2 small {
    font-size: 15px;
    font-weight: 500;
}

.doctor-v2-write__preview-body p {
    margin: 12px 0 0;
    color: var(--doctor-muted);
    line-height: 1.6;
}

.doctor-v2-write__preview-field {
    color: var(--doctor-red-dark) !important;
    font-weight: 700;
}

.doctor-v2-write__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 32px;
}

.doctor-v2-write__actions a,
.doctor-v2-write__actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid #333;
    border-radius: 4px;
    background: #fff;
    color: #222;
    font: inherit;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.doctor-v2-write__actions button {
    border-color: var(--doctor-red);
    background: var(--doctor-red);
    color: #fff;
}

@media (max-width: 1320px) {
    .doctor-v2-list,
    .doctor-v2-detail,
    .doctor-v2-write { padding-right: 30px; padding-left: 30px; }
    .doctor-v2-detail__content { padding-left: 55px; }
}

@media (max-width: 1050px) {
    .doctor-v2-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .doctor-v2-detail__hero { min-height: 620px; }
    .doctor-v2-detail__content { padding-left: 40px; }
    .doctor-v2-detail__identity h1 { font-size: 40px; }
}
