/* ========================================
   Sub Page CSS - 해운대아산내과의원
   ======================================== */

/* Sub Page Layout */
.sub-page {
    padding-top: var(--header-height);
}

.sub-content {
    min-height: calc(100vh - var(--header-height) - 200px);
    padding: 80px 0;
}

.sub-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: 2px solid var(--color-main);
}

/* ========================================
   Sub Hero Section
   ======================================== */
.sub-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sub-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
}

.sub-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
}

.sub-hero-subtitle {
    display: block;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    letter-spacing: 2px;
    margin-bottom: 16px;
    opacity: 0.9;
}

.sub-hero-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 52px;
    line-height: 1.2;
}

/* ========================================
   Doctor Introduction Section - 계단형 레이아웃
   ======================================== */
.doctor-intro-section {
    padding: 80px 0;
    background-color: #fff;
    overflow: hidden;
}

.doctor-intro-stair {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.stair-left {
    flex-shrink: 0;
    align-self: flex-start;
}

.stair-left img {
    width: 280px;
    height: auto;
    display: block;
}

.stair-center {
    text-align: center;
    padding: 60px 50px 0;
    flex: 1;
    max-width: 480px;
}

.stair-right {
    flex-shrink: 0;
    align-self: flex-end;
}

.stair-right img {
    width: 280px;
    height: auto;
    display: block;
}

.doctor-intro-subtitle {
    display: block;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size:30px;
    color: var(--color-main);
    letter-spacing: 1px;
    margin-bottom: 35px;
}

.doctor-intro-text {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.doctor-intro-text:last-child {
    margin-bottom: 0;
}

/* ========================================
   Flowing Text Animation
   ======================================== */
.flowing-text-wrapper {
    overflow: hidden;
    padding: 60px 0;
    background-color: #fff;
}

.flowing-text {
    display: flex;
    white-space: nowrap;
    animation: flowingText 25s linear infinite;
}

.flowing-text span {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 120px;
    color: #e8e8e8;
    padding-right: 100px;
}

@keyframes flowingText {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* ========================================
   Partnership Section
   ======================================== */
.partnership-section {
    padding: 100px 0;
    background-color: #fff;
}

.partnership-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 60px;
}

.partnership-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 80px;
}

.partnership-logos {
    display: flex;
    align-items: center;
    gap: 30px;
}

.partnership-logos img {
    height: 220px;
    width: auto;
}

.partnership-logos img:nth-child(2) {
    height: 300px;
}

.partnership-text {
    text-align: left;
}

.partnership-highlight {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.partnership-desc {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 2;
    color: var(--text-medium);
}

/* ========================================
   Career Section (약력)
   ======================================== */
.career-section {
    padding: 100px 0;
    background-color: #fff;
}

.career-section-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 50px;
}

.career-box {
    max-width: 900px;
    margin: 0 auto;
    min-height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 40px;
}

/* ========================================
   Director Profile Section (대표원장)
   ======================================== */
.director-profile-section {
    position: relative;
    padding: 100px 0 0;
    background-color: #fff;
    overflow: hidden;
}

.director-profile-bg-text {
    position: absolute;
    bottom: 0;
    left: 35%;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 900;
    font-size: 280px;
    color: rgba(0, 0, 0, 0.03);
    letter-spacing: 20px;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: none;
    line-height: 1;
}

.director-profile-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
}

.director-profile-info {
    flex: 1;
    padding-bottom: 80px;
}

.director-profile-title {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.director-profile-position {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-medium);
}

.director-profile-name {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--color-main);
    letter-spacing: 12px;
}

.director-profile-intro {
    margin-bottom: 35px;
}

.director-profile-intro img {
    max-width: 100%;
    height: auto;
}

.director-profile-career {
    list-style: none;
}

.director-profile-career li {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
    padding-left: 15px;
    position: relative;
    margin-bottom: 8px;
}

.director-profile-career li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-main);
    font-weight: 700;
}

.director-profile-photo {
    flex-shrink: 0;
}

.director-profile-photo img {
    max-width: 380px;
    height: auto;
    display: block;
}

/* ========================================
   Price Section (비급여항목)
   ======================================== */
.price-section {
    padding: 100px 0;
    background-color: #fff;
}

.price-header {
    text-align: center;
    margin-bottom: 60px;
}

.price-subtitle {
    display: block;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.price-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 42px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.price-desc {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-light);
}

.price-columns {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.price-column {
    flex: 1;
}

.price-table-wrap {
    margin-bottom: 30px;
}

.price-table-wrap:last-child {
    margin-bottom: 0;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #f7f7f7;
    border-top: 3px solid var(--color-main);
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.price-table thead th {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 14px;
    color: var(--text-dark);
    background-color: #f7f7f7;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
}

.price-table thead th:last-child {
    border-right: none;
}

.price-table tbody td {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: var(--text-dark);
    padding: 12px 20px;
    border-bottom: 1px solid #ddd;
    border-right: 1px solid #ddd;
    vertical-align: middle;
    background-color: #f7f7f7;
}

.price-table tbody td:last-child {
    text-align: right;
    border-right: none;
}

.price-table tbody td.category-cell {
    font-weight: 800;
    text-align: center;
    background-color: #f7f7f7;
}

.price-table tbody tr:last-child td {
    border-bottom: none;
}

/* Responsive */
@media (max-width: 992px) {
    .price-columns {
        flex-direction: column;
    }
}

/* ========================================
   Clinic Section (진료안내)
   ======================================== */
.clinic-section {
    padding: 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.clinic-header {
    text-align: center;
    margin-bottom: 40px;
}

.clinic-subtitle {
    display: block;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.clinic-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.clinic-desc {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-medium);
}

/* Clinic Tabs */
.clinic-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.clinic-tab {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--text-medium);
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 30px;
    padding: 12px 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clinic-tab:hover {
    border-color: var(--color-main);
    color: var(--color-main);
}

.clinic-tab.active {
    background-color: var(--color-main);
    border-color: var(--color-main);
    color: #fff;
}

/* Clinic Panel */
.clinic-content {
    position: relative;
}

.clinic-panel {
    display: none;
}

.clinic-panel.active {
    display: block;
}

.clinic-panel-inner {
    display: flex;
    align-items: center;
    gap: 50px;
    background-color: #fff;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    margin: 0 auto;
}

.clinic-panel-image {
    flex-shrink: 0;
    width: 320px;
    height: 220px;
    border-radius: 15px;
    overflow: hidden;
}

.clinic-panel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clinic-panel-info {
    flex: 1;
}

.clinic-panel-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.clinic-panel-desc {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-medium);
    margin-bottom: 25px;
}

.clinic-panel-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: var(--color-main);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.clinic-panel-more:hover {
    background-color: var(--color-main-dark);
    transform: translateX(5px);
}

.clinic-panel-more span {
    display: block;
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
    margin-left: -3px;
}

/* Section Navigation Arrows */
.clinic-section {
    position: relative;
}

.clinic-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

.clinic-nav img {
    display: block;
    width: auto;
    height: auto;
}

.clinic-nav-prev {
    left: 50px;
}

.clinic-nav-next {
    right: 50px;
}

.clinic-nav:hover {
    opacity: 0.7;
}

/* Dark Background Sections - 내시경 센터, 건강검진 센터, 성인 예방 접종 */
.clinic-section-2 .clinic-title,
.clinic-section-4 .clinic-title,
.clinic-section-6 .clinic-title {
    color: #fff;
}

.clinic-section-2 .clinic-desc,
.clinic-section-4 .clinic-desc,
.clinic-section-6 .clinic-desc {
    color: rgba(255, 255, 255, 0.85);
}

/* Responsive */
@media (max-width: 992px) {
    .clinic-panel-inner {
        flex-direction: column;
        text-align: center;
    }

    .clinic-panel-image {
        width: 100%;
        height: 200px;
    }

    .clinic-nav-prev,
    .clinic-nav-next {
        display: none;
    }
}

@media (max-width: 768px) {
    .clinic-title {
        font-size: 28px;
    }

    .clinic-tabs {
        gap: 8px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .clinic-tab {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* 탭 3개일 때: 가로 한 줄 */
    .clinic-section-2 .clinic-tabs,
    .clinic-section-3 .clinic-tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        max-width: none;
    }

    .clinic-section-2 .clinic-tabs .clinic-tab,
    .clinic-section-3 .clinic-tabs .clinic-tab {
        padding: 10px 14px;
        font-size: 12px;
    }

    /* 성인 예방 접종 - 기존 flex 유지 */
    .clinic-section-6 .clinic-tabs {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        max-width: none;
    }
}

/* ========================================
   Gallery Section - 병원 둘러보기
   ======================================== */
.gallery-section {
    padding: 80px 0;
    background-color: #fff;
}

.gallery-header {
    text-align: center;
    margin-bottom: 50px;
}

.gallery-subtitle {
    display: block;
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 10px;
}

.gallery-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 800;
    font-size: 38px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.gallery-desc {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-medium);
}

/* Gallery Slider */
.gallery-slider-container {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

.gallery-side-image {
    flex-shrink: 0;
    width: 400px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-side-image img {
    width: 800px;
    max-width: none;
    height: auto;
    display: block;
}

.gallery-side-image.left img {
    margin-left: -400px;
}

.gallery-side-image.right img {
    margin-left: 0;
}

.gallery-center {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gallery-nav {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    padding: 0;
}

.gallery-nav img {
    display: block;
    width: 70px;
    height: auto;
}

.gallery-main-image {
    flex-shrink: 0;
    width: 800px;
    border-radius: 10px;
    overflow: hidden;
}

.gallery-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Gallery Progress Bar */
.gallery-progress {
    width: 800px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 40px auto 0;
    overflow: hidden;
}

.gallery-progress-bar {
    height: 100%;
    background-color: var(--color-main);
    border-radius: 2px;
    transition: width 0.5s ease;
}

/* ========================================
   Location Section - 진료시간 및 오시는길
   ======================================== */
.location-section {
    background-color: #f9f6f3;
    overflow: hidden;
}

.location-section .container {
    max-width: none;
    padding-left: calc((100% - 1400px) / 2 + 20px);
    padding-right: 0;
}

.location-left {
    flex: 0 0 45%;
    max-width: 600px;
    padding: 80px 0;
}

.location-columns {
    display: flex;
    gap: 60px;
}

.location-right {
    flex: 1;
}

.location-info {
    margin-bottom: 30px;
}

.location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #e5e5e5;
}

.location-info-item:first-child {
    padding-top: 0;
}

.location-info-item:last-child {
    border-bottom: none;
}

.location-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    width: 130px;
}

.location-info-icon {
    width: 28px;
    height: auto;
}

.location-info-content {
    flex: 1;
}

.location-info-title {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
}

.location-time-table {
    border-collapse: collapse;
}

.location-time-table tr {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.location-time-table th,
.location-time-table td {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: #666;
    text-align: left;
    padding: 0;
    white-space: nowrap;
}

.location-time-table th {
    width: 70px;
    color: #333;
    font-weight: 700;
}

.location-time-table td::before {
    content: '|';
    margin-right: 15px;
    color: #ddd;
}

.location-info-notice {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: var(--color-main);
    margin-top: 10px;
}

.location-tel {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: var(--color-main);
    letter-spacing: 1px;
}

.location-address {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.location-address-sub {
    font-family: 'NanumSquareNeo', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

.location-map-small {
    margin-top: 20px;
    margin-left: 160px;
    border-radius: 10px;
    overflow: hidden;
    max-width: 350px;
}

.location-map-small img {
    width: 100%;
    height: auto;
    display: block;
}

.location-map-large {
    height: 100%;
    min-height: 1010px;
    border-radius: 10px 0 0 10px;
    overflow: hidden;
}

.location-map-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* 카카오맵 스타일 */
.location-map-large .root_daum_roughmap {
    width: 100% !important;
    height: 100% !important;
    min-height: 1010px;
}

.location-map-large .wrap_map {
    width: 100% !important;
    height: 100% !important;
    min-height: 1010px;
}

/* 카카오맵 하단 정보 숨김 */
.location-map-large .wrap_controllers,
.location-map-large .cont {
    display: none !important;
}

/* Location Responsive */
@media (max-width: 992px) {
    .location-columns {
        flex-direction: column;
    }

    .location-left {
        flex: 1;
    }

    .location-map-large {
        height: 400px;
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .gallery-main-image {
        width: 500px;
    }

    .gallery-side-image {
        width: 350px;
    }

    .gallery-progress {
        width: 500px;
    }
}

@media (max-width: 768px) {
    /* 서브 히어로 반응형 */
    .sub-hero {
        height: 280px;
    }

    .sub-hero-subtitle {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .sub-hero-title {
        font-size: 32px;
    }

    /* 갤러리 반응형 */
    .gallery-header {
        margin-bottom: 30px;
    }

    .gallery-subtitle {
        font-size: 12px;
    }

    .gallery-title {
        font-size: 28px;
    }

    .gallery-desc {
        font-size: 14px;
    }

    .gallery-slider-container {
        justify-content: center;
    }

    .gallery-center {
        gap: 10px;
    }

    .gallery-main-image {
        width: 280px;
    }

    .gallery-side-image {
        width: 180px;
    }

    .gallery-side-image img {
        width: 360px;
    }

    .gallery-side-image.left img {
        margin-left: -180px;
    }

    .gallery-nav img {
        width: 30px;
    }

    .gallery-progress {
        width: 280px;
        margin-top: 30px;
    }

    /* 로케이션 반응형 */
    .location-section {
        padding: 40px 0;
    }

    .location-section .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .location-left {
        padding: 40px 0;
    }

    .location-info-item {
        flex-direction: column;
        gap: 15px;
    }

    .location-info-header {
        width: 100%;
        margin-bottom: 0;
    }

    .location-info-icon {
        width: 24px;
    }

    .location-info-title {
        font-size: 16px;
    }

    .location-info-content {
        margin-left: 0;
        font-size: 14px;
        width: 100%;
    }

    .location-tel {
        font-size: 26px;
    }

    .location-address {
        font-size: 14px;
    }

    .location-map-small {
        margin-left: 0;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .sub-hero {
        height: 220px;
    }

    .sub-hero-subtitle {
        font-size: 12px;
    }

    .sub-hero-title {
        font-size: 26px;
    }

    .gallery-slider-container {
        padding: 0 10px;
        justify-content: center;
    }

    .gallery-center {
        gap: 8px;
    }

    .gallery-main-image {
        width: 240px;
    }

    .gallery-side-image {
        display: none;
    }

    .gallery-nav img {
        width: 25px;
    }

    .gallery-progress {
        width: 240px;
        margin-top: 25px;
    }
}

/* ========================================
   Doctor Page Responsive (의료진소개)
   ======================================== */

/* Tablet */
@media (max-width: 1024px) {
    /* Doctor Intro Section */
    .doctor-intro-stair {
        padding: 0 20px;
    }

    .stair-left img,
    .stair-right img {
        width: 220px;
    }

    .stair-center {
        padding: 40px 30px 0;
        max-width: 400px;
    }

    /* Flowing Text */
    .flowing-text span {
        font-size: 80px;
        padding-right: 60px;
    }

    /* Partnership Section */
    .partnership-content {
        gap: 50px;
    }

    .partnership-logos img {
        height: 120px;
    }

    .partnership-logos img:nth-child(2) {
        height: 300px;
    }

    /* Director Profile Section */
    .director-profile-bg-text {
        font-size: 200px;
        left: 20%;
    }

    .director-profile-wrapper {
        gap: 40px;
        padding: 0 20px;
    }

    .director-profile-name {
        font-size: 36px;
        letter-spacing: 8px;
    }

    .director-profile-photo img {
        max-width: 320px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Doctor Intro Section */
    .doctor-intro-section {
        padding: 50px 0;
    }

    .doctor-intro-stair {
        flex-direction: column;
        align-items: center;
    }

    .stair-left,
    .stair-right {
        align-self: center;
    }

    .stair-left img,
    .stair-right img {
        width: 180px;
    }

    .stair-center {
        padding: 30px 20px;
        max-width: 100%;
        order: -1;
    }

    .doctor-intro-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .doctor-intro-text {
        font-size: 14px;
        line-height: 1.8;
        margin-bottom: 20px;
    }

    .doctor-intro-text br {
        display: none;
    }

    /* Flowing Text */
    .flowing-text-wrapper {
        padding: 40px 0;
    }

    .flowing-text span {
        font-size: 50px;
        padding-right: 40px;
    }

    /* Partnership Section */
    .partnership-section {
        padding: 60px 0;
    }

    .partnership-title {
        font-size: 26px;
        margin-bottom: 40px;
    }

    .partnership-content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }

    .partnership-logos {
        justify-content: center;
    }

    .partnership-logos img {
        height: 190px;
    }

    .partnership-logos img:nth-child(2) {
        height: 100px;
    }

    .partnership-text {
        text-align: center;
    }

    .partnership-highlight {
        font-size: 15px;
    }

    .partnership-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .partnership-desc br {
        display: none;
    }

    /* Director Profile Section */
    .director-profile-section {
        padding: 60px 0 0;
    }

    .director-profile-bg-text {
        font-size: 120px;
        left: 10%;
    }

    .director-profile-wrapper {
        flex-direction: column;
        gap: 30px;
        padding: 0 20px;
    }

    .director-profile-info {
        padding-bottom: 30px;
        text-align: center;
    }

    .director-profile-title {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }

    .director-profile-position {
        font-size: 14px;
    }

    .director-profile-name {
        font-size: 32px;
        letter-spacing: 8px;
    }

    .director-profile-intro {
        margin-bottom: 25px;
    }

    .director-profile-career {
        text-align: left;
        max-width: 400px;
        margin: 0 auto;
    }

    .director-profile-career li {
        font-size: 14px;
        line-height: 1.7;
    }

    .director-profile-photo {
        order: -1;
    }

    .director-profile-photo img {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    /* Doctor Intro Section */
    .doctor-intro-section {
        padding: 40px 0;
    }

    .stair-left,
    .stair-right {
        display: none;
    }

    .stair-center {
        padding: 0 15px;
    }

    .doctor-intro-subtitle {
        font-size: 13px;
    }

    .doctor-intro-text {
        font-size: 13px;
    }

    /* Flowing Text */
    .flowing-text-wrapper {
        padding: 30px 0;
    }

    .flowing-text span {
        font-size: 36px;
        padding-right: 30px;
    }

    /* Partnership Section */
    .partnership-section {
        padding: 40px 0;
    }

    .partnership-title {
        font-size: 22px;
        margin-bottom: 30px;
    }

    .partnership-logos img {
        height: 60px;
    }

    .partnership-logos img:nth-child(2) {
        height: 80px;
    }

    .partnership-highlight {
        font-size: 14px;
    }

    .partnership-desc {
        font-size: 13px;
    }

    /* Director Profile Section */
    .director-profile-section {
        padding: 40px 0 0;
    }

    .director-profile-bg-text {
        font-size: 80px;
    }

    .director-profile-name {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .director-profile-career li {
        font-size: 13px;
    }

    .director-profile-photo img {
        max-width: 240px;
    }
}
