/* 서브페이지 모바일 전용 스타일 */
@media (max-width: 768px) {
    /* 기본 폰트 크기 조정 */
    body {
        font-size: 14px;
        line-height: 1.6;
    }
    
    /* 네비게이션 스페이서 숨김 */
    .nav-spacer {
        display: none !important;
    }
    
    /* 상단 네비게이션과 서브헤더 간격 조정 */
    .sub-header {
        margin-top: 0 !important; /* 모바일에서 여백 제거 */
        height: 250px; /* 높이 적절히 조정 */
        min-height: 200px;
    }

    .sub-header-content {
        padding: 30px 0; /* 상하 패딩 줄이기 */
    }

    .sub-title {
        font-size: 28px;
        margin-bottom: 10px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    /* 인사말 섹션 모바일 최적화 */
    .greeting-section {
        padding: 40px 0;
    }

    .greeting-header {
        margin-bottom: 30px;
        text-align: center;
    }

    .greeting-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
    }

    .greeting-title {
        font-size: 24px;
        line-height: 1.4;
        word-break: keep-all;
    }

    /* 줄바꿈 방지를 위한 특수 처리 */
    .greeting-title .highlight {
        display: inline-block;
        white-space: nowrap;
    }

    /* 인사말 콘텐츠 */
    .greeting-content {
        flex-direction: column;
        gap: 30px;
    }

    .greeting-image {
        width: 100%;
        max-width: 200px;
        margin: 0 auto;
    }

    .greeting-text {
        padding: 0 20px;
    }

    .greeting-message p {
        font-size: 15px;
        line-height: 1.8;
        margin-bottom: 20px;
        word-break: keep-all;
    }

    .greeting-message .intro {
        font-size: 16px;
    }

    .greeting-message .closing {
        font-size: 16px;
        font-weight: 500;
        text-align: center;
        margin-top: 30px;
    }

    .greeting-message .signature {
        text-align: center;
        font-size: 14px;
    }

    /* 핵심가치 섹션 */
    .core-values {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .values-title {
        font-size: 22px;
        text-align: center;
        margin-bottom: 30px;
        word-break: keep-all;
    }

    /* 핵심가치 텍스트 줄바꿈 방지 */
    .values-title .highlight {
        display: inline-block;
        white-space: nowrap;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-item {
        padding: 25px 20px;
        text-align: center;
    }

    .value-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
        margin: 0 auto 15px;
    }

    .value-item h4 {
        font-size: 18px;
        margin-bottom: 10px;
        white-space: nowrap;
    }

    .value-item p {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }

    /* 의사 소개 */
    .doctor-profile {
        margin-top: 40px;
        padding: 30px 20px;
    }

    .profile-title {
        font-size: 22px;
        text-align: center;
        margin-bottom: 30px;
    }

    .profile-content {
        flex-direction: column;
        gap: 30px;
    }

    .doctor-image {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }

    .doctor-info h4 {
        font-size: 20px;
        text-align: center;
        margin-bottom: 20px;
    }

    .info-list li {
        font-size: 14px;
        padding: 8px 0;
        word-break: keep-all;
    }

    /* 모바일 공통 텍스트 처리 */
    h1, h2, h3, h4, h5, h6 {
        word-break: keep-all;
        word-wrap: break-word;
    }

    /* 한글 단어 단위 줄바꿈 */
    p, li, span {
        word-break: keep-all;
        word-wrap: break-word;
    }

    /* 컨테이너 패딩 조정 */
    .container {
        padding: 0 20px;
    }

    /* 모바일에서 불필요한 여백 제거 */
    section {
        overflow-x: hidden;
    }

    /* 맥스 너비 제한 */
    .container {
        max-width: 100%;
    }

    /* 제목 및 텍스트 줄바꿈 최적화 */
    .section-title,
    .sub-title,
    h1, h2, h3, h4 {
        word-break: keep-all;
        overflow-wrap: break-word;
        hyphens: none;
    }

    /* 핵심가치 같은 중요 단어 줄바꿈 방지 */
    .no-break {
        white-space: nowrap;
        display: inline-block;
    }

    /* 전반적인 섹션 패딩 조정 */
    section {
        padding: 40px 0;
    }

    /* 키학 메뉴 모바일 조정 */
    /* .quick-menu {
        display: none;
    } */
    
    /* 모바일에서 퀵메뉴 위치 조정 */
    .quick-menu {
        position: fixed;
        bottom: 20px;
        right: 10px;
        z-index: 1000;
    }
    
    .quick-item {
        width: 50px;
        height: 50px;
        margin-bottom: 8px;
    }
    
    .quick-icon {
        width: 30px;
        height: 30px;
    }
    
    .quick-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .quick-item span {
        font-size: 11px;
    }

    /* 의료진소개 페이지 모바일 */
    .doctors-section {
        padding: 40px 0;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    .section-subtitle {
        font-size: 12px;
        letter-spacing: 1.5px;
        margin-bottom: 10px;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .section-title .highlight {
        display: inline-block;
        white-space: nowrap;
    }
    
    /* 대표원장 소개 모바일 */
    .doctor-main {
        margin-bottom: 50px;
    }
    
    .doctor-main-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        padding: 20px;
        border-radius: 20px;
    }
    
    .doctor-photo {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        position: relative;
    }
    
    /* 모바일에서 배지 숨김 */
    .doctor-badge {
        display: none;
    }
    
    /* 이름 옆에 대표원장 표시 */
    .doctor-name::after {
        content: '(대표원장)';
        font-size: 16px;
        font-weight: 500;
        color: #2c5aa0;
        margin-left: 8px;
    }
    
    .doctor-info {
        gap: 30px;
    }
    
    .doctor-name-section {
        text-align: center;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }
    
    .doctor-name {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .doctor-name span {
        font-size: 22px;
    }
    
    .doctor-specialty {
        font-size: 16px;
    }
    
    /* 학력 및 경력 모바일 */
    .doctor-credentials h4,
    .doctor-expertise h4,
    .doctor-message h4 {
        font-size: 18px;
        margin-bottom: 15px;
    }
    
    .doctor-credentials ul {
        margin-bottom: 20px;
    }
    
    .doctor-credentials li {
        font-size: 14px;
        margin-bottom: 10px;
        padding-left: 20px;
        line-height: 1.6;
    }
    
    /* 학력/경력 로고 */
    .credentials-logos {
        margin-top: 25px;
        padding-top: 25px;
    }
    
    .logo-item img {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .logo-item p {
        font-size: 13px;
    }
    
    /* 전문진료분야 모바일 */
    .expertise-tags {
        gap: 8px;
        justify-content: center;
    }
    
    .expertise-tags span {
        font-size: 13px;
        padding: 6px 16px;
        border-radius: 18px;
    }
    
    /* 진료철학 모바일 */
    .doctor-message p {
        font-size: 14px;
        line-height: 1.8;
        padding: 20px;
        border-radius: 12px;
        border-left-width: 3px;
    }
    
    /* 진료시간표 모바일 */
    .doctor-schedule {
        padding: 30px 20px;
        border-radius: 15px;
        margin-bottom: 40px;
    }
    
    .schedule-title {
        font-size: 22px;
        margin-bottom: 25px;
        text-align: center;
    }
    
    /* 기존 테이블 숨김 */
    .schedule-table {
        display: none;
    }
    
    /* 모바일 전용 시간표 */
    .mobile-schedule {
        display: block;
    }
    
    .mobile-schedule-item {
        background: #f8f9fa;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 12px;
        border: 1px solid #e9ecef;
    }
    
    .mobile-schedule-item:last-child {
        margin-bottom: 0;
    }
    
    .mobile-day {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-day.weekend {
        color: #e74c3c;
    }
    
    .mobile-time {
        display: flex;
        justify-content: space-around;
        gap: 20px;
    }
    
    .time-slot {
        flex: 1;
        text-align: center;
    }
    
    .time-slot-label {
        display: block;
        font-size: 13px;
        color: #666;
        margin-bottom: 5px;
    }
    
    .time-slot-value {
        display: block;
        font-size: 16px;
        font-weight: 600;
        color: #28a745;
    }
    
    .time-slot-value.off {
        color: #dc3545;
    }
    
    .schedule-note {
        gap: 20px;
        margin-top: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .schedule-note p {
        font-size: 13px;
    }
    
    .schedule-note .dot {
        width: 10px;
        height: 10px;
    }
    
    /* CTA 배너 모바일 최적화 */
    .cta-banner {
        padding: 50px 0;
    }

    .cta-content {
        text-align: center;
    }

    .cta-subtitle {
        font-size: 14px;
    }

    .cta-title {
        font-size: 26px;
        margin: 10px 0;
    }

    .cta-description {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-button {
        width: 100%;
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* 시설안내 페이지 모바일 */
    .facilities-section {
        padding: 40px 0;
    }
    
    .gallery-container {
        margin-bottom: 60px;
    }
    
    /* 메인 이미지 모바일 */
    .main-image-container {
        border-radius: 15px;
        margin-bottom: 20px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .main-image-info {
        padding: 20px;
    }
    
    .main-image-info h3 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .main-image-info p {
        font-size: 14px;
    }
    
    /* 모바일에서는 써네일 슬라이더 대신 인디케이터 사용 */
    .thumbnail-container {
        display: none;
    }
    
    /* 모바일 전용 이미지 인디케이터 */
    .mobile-image-indicators {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 20px;
    }
    
    .indicator-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ddd;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .indicator-dot.active {
        background: #2c5aa0;
        width: 24px;
        border-radius: 4px;
    }
    
    /* 시설 특징 모바일 */
    .facility-features {
        margin-top: 50px;
    }
    
    .features-title {
        font-size: 24px;
        margin-bottom: 40px;
        word-break: keep-all;
        line-height: 1.4;
    }
    
    .features-title .highlight {
        display: inline-block;
        white-space: nowrap;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        padding: 25px 20px;
        border-radius: 15px;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .feature-icon i {
        font-size: 28px;
    }
    
    .feature-item h4 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .feature-item p {
        font-size: 14px;
        line-height: 1.6;
        word-break: keep-all;
    }
    
    /* 대표 질환 테이블 모바일 */
    .disease-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .disease-table table {
        min-width: 100%;
    }
    
    .disease-table th,
    .disease-table td {
        padding: 15px !important;
        font-size: 14px !important;
    }
    
    .disease-table th {
        font-size: 16px !important;
        white-space: nowrap;
    }
    
    .disease-table td:first-child {
        min-width: 100px;
    }
    
    .disease-table td:last-child {
        white-space: normal !important;
        word-break: keep-all;
        line-height: 1.5 !important;
    }
    
    /* 모바일 슬라이더 네비게이션 버튼 세로 중앙 정렬 */
    .mobile-test-slider,
    .mobile-process-slider {
        position: relative;
    }
    
    .mobile-test-nav,
    .mobile-process-nav {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 100%;
        display: flex;
        justify-content: space-between;
        padding: 0 10px;
        pointer-events: none;
        z-index: 5;
        height: 0;
    }
    
    /* 슬라이드 콘텐츠 높이에서 인디케이터 영역 제외 */
    .mobile-test-slider .mobile-test-wrapper,
    .mobile-process-slider .mobile-process-wrapper {
        padding-bottom: 0;
    }
    
    .mobile-test-slider,
    .mobile-process-slider {
        padding-bottom: 50px;
    }
    
    /* 네비게이션 버튼이 콘텐츠 영역 기준으로 중앙 정렬되도록 */
    .mobile-test-nav,
    .mobile-process-nav {
        top: calc(50% - 25px);
    }
    
    /* 알레르기 & 면역치료 모바일 세로 배치 */
    .treatment-section .treatment-cards[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        max-width: 100% !important;
    }
    
    .treatment-section .treatment-card {
        margin-bottom: 20px;
    }
    
    .treatment-section .treatment-card:last-child {
        margin-bottom: 0;
    }
    
    /* 수액클리닉 주요 서비스 모바일 표시 */
    .test-details-section .test-items-grid {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
    
    .test-details-section .test-item {
        padding: 20px !important;
        text-align: center !important;
    }
    
    /* 모바일에서 데스크탑 프로세스 타임라인 숨김 */
    .process-timeline {
        display: none !important;
    }
    
    /* 모바일에서는 슬라이드만 표시 */
    .mobile-test-slider {
        display: block !important;
    }
    
    .mobile-process-slider {
        display: block !important;
    }
    
    /* 수액 종류 카드 제목 가운데 정렬 */
    .treatment-section .treatment-header {
        justify-content: center;
        text-align: center;
    }
    
    .treatment-section .treatment-header h4 {
        margin: 0;
    }
    
    /* 검사 방법 상세 모바일 세로 배치 */
    .test-method-grid {
        flex-direction: column !important;
        max-width: 600px !important;
    }
    
    /* 어지럼증 페이지 테이블 모바일 가운데 정렬 */
    .disease-table table th,
    .disease-table table td {
        text-align: center !important;
    }
}