/* 서브페이지 헤더 */
.sub-header {
    position: relative;
    height: 400px;
    background-image: url('/assets/images/greting.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 80px; /* 네비게이션 높이 */
}

/* 모바일에서 margin-top 제거 */
@media (max-width: 768px) {
    .sub-header {
        margin-top: 0;
    }
}

.sub-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(20, 20, 20, 0.8) 100%);
    z-index: 1;
}

.sub-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.sub-title {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

/* 브레드크럼 */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 16px;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb .current {
    color: white;
    font-weight: 500;
}

/* 인사말 섹션 */
.greeting-section {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.greeting-subtitle {
    font-size: 14px;
    color: #2c5aa0;
    letter-spacing: 2px;
    font-weight: 500;
    margin-bottom: 15px;
}

.greeting-title {
    font-size: 40px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.4;
}

.greeting-title .highlight {
    color: #2c5aa0;
    font-weight: 500;
}

/* 인사말 콘텐츠 */
.greeting-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.greeting-image {
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.greeting-image img {
    width: 100%;
    height: auto;
    display: block;
}


/* 인사말 텍스트 */
.greeting-text {
    padding-top: 20px;
}

.greeting-message {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
}

.greeting-message p {
    margin-bottom: 25px;
}

.greeting-message .intro {
    font-size: 20px;
    color: #333;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e9ecef;
}

.greeting-message strong {
    color: #2c5aa0;
    font-weight: 600;
}

.greeting-message .closing {
    margin-top: 40px;
    font-size: 18px;
    color: #333;
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 15px;
    line-height: 1.8;
}

.greeting-message .signature {
    text-align: right;
    font-size: 18px;
    color: #333;
    font-weight: 500;
    margin-top: 40px;
    padding-right: 30px;
}

/* 핵심가치 */
.core-values {
    margin-top: 100px;
    padding: 80px 0;
    background: #ffffff;
    border-radius: 30px;
}

.values-title {
    text-align: center;
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 60px;
    color: #1a1a1a;
}

.values-title .highlight {
    color: #2c5aa0;
    font-weight: 500;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.value-item {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.value-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.value-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5aa0;
    transition: all 0.3s ease;
}

.value-item:hover .value-icon {
    background: #2c5aa0;
    color: white;
    transform: scale(1.1);
}

.value-item h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.value-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .greeting-content {
        grid-template-columns: 250px 1fr;
        gap: 60px;
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 250px;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .breadcrumb {
        font-size: 14px;
        gap: 10px;
    }
    
    .greeting-section {
        padding: 60px 0;
    }
    
    .greeting-header {
        margin-bottom: 50px;
    }
    
    .greeting-title {
        font-size: 28px;
    }
    
    .greeting-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .greeting-image {
        max-width: 300px;
        margin: 0 auto;
        padding: 30px;
    }
    
    .greeting-image img {
        max-width: none;
    }
    
    .greeting-message {
        font-size: 15px;
    }
    
    .greeting-message .intro {
        font-size: 18px;
        margin-bottom: 30px;
        padding-bottom: 20px;
    }
    
    .greeting-message .closing {
        font-size: 16px;
        padding: 20px;
    }
    
    .core-values {
        margin-top: 60px;
        padding: 60px 20px;
    }
    
    .values-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .value-item {
        padding: 30px 20px;
    }
}

/* 애니메이션 */
.greeting-header,
.greeting-image,
.greeting-text,
.value-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.greeting-header.animate-in,
.greeting-image.animate-in,
.greeting-text.animate-in,
.value-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.greeting-image.animate-in {
    transition-delay: 0.2s;
}

.greeting-text.animate-in {
    transition-delay: 0.4s;
}

.value-item:nth-child(1).animate-in { transition-delay: 0.1s; }
.value-item:nth-child(2).animate-in { transition-delay: 0.2s; }
.value-item:nth-child(3).animate-in { transition-delay: 0.3s; }
.value-item:nth-child(4).animate-in { transition-delay: 0.4s; }

/* 모바일 전용 스타일 (768px 이하) */
@media (max-width: 768px) {
    /* Hero 섹션과 메뉴 간격 조정 */
    .sub-header {
        padding: 60px 0 40px;
        margin-top: 60px; /* 모바일 메뉴 높이 고려 */
    }

    .sub-title {
        font-size: 24px;
    }

    .breadcrumb {
        font-size: 12px;
    }

    /* 인사말 섹션 여백 조정 */
    .greeting-section {
        padding: 40px 0;
    }

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

    .greeting-subtitle {
        font-size: 11px;
        letter-spacing: 1.5px;
    }

    .greeting-title {
        font-size: 20px;
        line-height: 1.5;
        word-break: keep-all; /* 단어 단위로 줄바꿈 */
    }

    .greeting-title .highlight {
        display: inline-block; /* 병원 이름은 한 줄로 유지 */
    }

    .greeting-content {
        gap: 20px;
    }

    .greeting-image {
        padding: 20px;
        max-width: 250px;
    }

    .greeting-image img {
        max-width: 160px;
    }

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

    .greeting-message {
        padding: 20px;
        font-size: 14px;
        line-height: 1.8;
    }

    .greeting-message p {
        margin-bottom: 15px;
    }

    .greeting-message .intro {
        font-size: 16px;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .greeting-message .closing {
        margin: 20px 0 15px;
        font-size: 14px;
        padding: 15px;
    }

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

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

    .values-title {
        font-size: 20px;
        margin-bottom: 25px;
        text-align: center;
        word-break: keep-all;
        line-height: 1.4;
    }

    /* 핵심가치 텍스트를 한 줄로 유지 */
    .values-title .highlight {
        white-space: nowrap; /* 핵심가치를 한 줄로 */
    }

    .values-grid {
        gap: 15px;
        padding: 0;
    }

    .value-item {
        padding: 25px 15px;
    }

    .value-icon {
        margin-bottom: 12px;
    }

    .value-icon svg {
        width: 35px;
        height: 35px;
    }

    .value-item h4 {
        font-size: 17px;
        margin-bottom: 8px;
        white-space: nowrap; /* 제목 한 줄 유지 */
    }

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

    /* 텍스트 강조 부분 */
    .greeting-message strong {
        font-weight: 600;
        color: var(--primary-color);
    }
}