:root {
    color-scheme: light;
    /* Force browser to use light theme defaults (scrollbars, form controls) */
    /* ==== [디자인 변수 설정] ==== 
       자주 사용하는 색상이나 크기를 미리 이름표를 붙여 저장해두는 곳입니다.
       나중에 색을 바꾸고 싶을 때 여기서 한 번만 바꾸면 전체 웹사이트가 바뀝니다. */
    --primary-color: #0056b3;
    /* 메인 파란색: 신뢰감을 주는 병원 상징색 */
    --secondary-color: #00a8cc;
    /* 보조 하늘색: 강조할 때 사용 */
    --accent-color: #f0f8ff;
    /* 아주 연한 파란색: 배경색으로 사용 */
    --text-color: #333;
    /* 기본 글자색: 진한 회색 (검은색보다 눈이 편함) */
    --light-text: #666;
    /* 연한 글자색: 부가 설명용 */
    --white: #fff;
    /* 흰색 */
    --header-height: 80px;
    /* 상단바의 높이 */

    /* [테마 변수 추가] */
    --bg-body: #f9f9f9;
    --bg-card: #ffffff;
    --bg-header: #ffffff;
    --border-color: #eeeeee;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* [다크 모드 설정] 
   시스템 설정이 다크 모드일 때 자동으로 색상을 변경합니다. */
/* [다크 모드 설정 제거됨] 
   모든 사용자가 밝은 테마를 보도록 설정 */

/* ==== [기본 설정 초기화] ==== 
   브라우저마다 기본으로 설정된 여백들을 모두 0으로 만들어 디자인을 깨지지 않게 합니다. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 패딩을 넣어도 전체 크기가 커지지 않게 설정 */
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    /* 한글 폰트 설정 */
    color: var(--text-color);
    line-height: 1.6;
    /* 줄 간격 설정 (글자가 덜 답답해 보임) */
    background-color: var(--bg-body);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==== [상단 헤더 바] ==== */
header {
    background-color: var(--bg-header);
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

nav {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    /* 수직 중앙 정렬 */
}

nav>ul>li {
    position: relative;
    /* 드롭다운 기준점 */
    padding: 10px 0;
    /* 호버 영역 확보 */
}

/* [메인 메뉴 스타일] */
nav>ul>li>a {
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
    display: block;
    position: relative;
    /* 밑줄 효과 기준점 */
}

/* 메인 메뉴 밑줄 인터랙션 (중앙에서 퍼지는 효과) */
nav>ul>li>a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width 0.3s ease;
}

nav>ul>li:hover>a {
    color: var(--secondary-color);
}

nav>ul>li:hover>a::after {
    width: 100%;
}

/* [드롭다운 하위 메뉴] */
.dropdown-menu {
    position: absolute;
    /* 보이지 않게 숨겨져 있다가 부모 li 기준으로 나타남 */
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: #fff;
    min-width: 160px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 5px 0;
    /* 패딩을 줄여서 더 컴팩트하게 */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 0;
    /* 간격 초기화 (상위 nav ul의 gap:30px 상속 방지) */
}

/* 메뉴에 마우스를 올렸을 때(hover) 드롭다운 나오게 하기 */
nav li:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    font-size: 0.95rem;
    padding: 12px 20px;
    /* 세로 패딩 살짝 늘림 */
    text-align: left;
    /* 왼쪽 정렬로 변경 */
    color: #555;
    white-space: nowrap;
    display: block;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
}

/* 서브메뉴 호버 시 효과 (배경색 + 글자 이동) */
.dropdown-menu a:hover {
    background-color: #f0f8ff;
    /* 아주 연한 하늘색 배경 */
    color: var(--primary-color);
    padding-left: 25px;
    /* 오른쪽으로 살짝 이동하는 느낌 */
    font-weight: 500;
}

.header-contact {
    font-weight: 700;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.header-contact:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ==== [메인 비주얼 슬라이더] ==== */
.hero {
    margin-top: var(--header-height);
    height: 600px;
    position: relative;
    overflow: hidden;
    /* 슬라이더 밖으로 나가는 이미지 숨김 */
    background-color: #000;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 0 10%;
    opacity: 0;
    /* 기본적으로 투명하게 숨김 */
    transition: opacity 1s ease-in-out;
    /* 바뀔 때 1초 동안 부드럽게 */
    z-index: 1;
    /* Anti-ghosting fixes */
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

.hero-slide.active {
    opacity: 1;
    /* 활성화된 슬라이드만 보이게 함 */
    z-index: 2;
}

/* 이미지 위에 어두운 겹(Overlay)을 씌워 글자를 잘 보이게 함 */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    background: rgba(255, 255, 255, 0.85);
    /* 투명도 조절: 0.95 -> 0.85 */
    backdrop-filter: blur(5px);
    /* 배경 흐림 효과 추가 (Glassmorphism) */
    padding: 40px;
    border-radius: 10px;
    color: var(--text-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
    opacity: 0;
    transform: translateY(30px);
    /* 아래에서 위로 올라오는 효과를 위한 시작점 */
    transition: all 1.2s ease-out 0.5s;
}

/* 슬라이드가 활성화되면 글자 상자가 나타남 */
.hero-slide.active .hero-content {
    opacity: 1;
    transform: translateY(0);
}

.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.3);
}

.hero h2 {
    color: var(--secondary-color);
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.3;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text);
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    display: inline-block;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #004494;
}

/* ==== 퀵 메뉴 ==== */
.quick-menu {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 40px 10%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 10px 10px 0 0;
    margin-left: 5%;
    margin-right: 5%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.quick-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quick-item h3 {
    font-size: 1.3rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    margin-bottom: 10px;
}

.time-table {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 0;
}

/* ==== 진료 과목 (Departments) - 업데이트된 디자인 ==== */
.departments {
    padding: 80px 10%;
    /* 좌우 여백을 늘려 카드 집중도 향상 */
    text-align: center;
    background-color: var(--bg-body);
    /* 배경색 약간 수정 */
}

.section-title {
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2rem;
    color: var(--text-color);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--secondary-color);
    font-weight: 600;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

@media (max-width: 1200px) {
    .dept-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        /* 화면이 좁아지면 줄바꿈 허용 */
    }
}

/* ==== [진료 과목 카드 디자인] ==== */
.dept-card {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    /* 호버 시 변화를 부드럽게 함 */
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
    text-align: center;
    z-index: 1;
}

/* 카드 배경 어둡게 만들기 */
.dept-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.3;
    transition: all 0.4s ease;
    z-index: -1;
}

/* [마우스를 올렸을 때 변화] 파란색으로 변하며 위로 살짝 올라감 */
.dept-card:hover::before {
    background-color: var(--primary-color);
    opacity: 0.95;
}

.dept-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 86, 179, 0.4);
}

/* 아이콘 스타일 삭제됨 */

/* 제목 스타일 (항상 흰색) */
.dept-card h3 {
    font-size: clamp(0.9rem, 1.0vw, 1.1rem);
    /* 아이콘이 빠져서 글자 크기를 더 키움 */
    margin-bottom: 15px;
    color: #ffffff;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: color 0.4s ease;
    font-weight: 700;
}

/* 설명문 (호버 시 사라짐) */
.dept-card p {
    font-size: clamp(0.75rem, 0.8vw, 0.9rem);
    /* 설명도 조금 더 잘 보이게 */
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
    margin-bottom: 0;
    line-height: 1.5;
}

.dept-card:hover p {
    display: none;
}

/* 상세 서브 메뉴 (호버 시 등장) */
.dept-submenu {
    list-style: none;
    padding: 0;
    margin-top: 10px;
    width: 100%;
    text-align: left;
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dept-card:hover .dept-submenu {
    display: block;
}

.dept-submenu li {
    padding: 10px 15px;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: clamp(0.65rem, 0.75vw, 0.85rem);
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    /* 클릭 가능 표시 */
    transition: background-color 0.3s;
}

.dept-submenu li:hover {
    background-color: rgba(255, 255, 255, 0.1);
    /* 호버 시 살짝 배경 밝게 */
}

.dept-submenu li::before {
    content: "•";
    color: #8ceeff;
    font-weight: bold;
    font-size: 1.2em;
    opacity: 0;
    /* 기본 숨김 */
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.dept-submenu li:hover::before {
    opacity: 1;
    /* 호버 시 보임 */
    transform: translateX(0);
}

.dept-submenu li:last-child {
    border-bottom: none;
}

/* ==== 의료진 소개 ==== */
.staff-section {
    padding: 80px 0;
    /* 좌우 여백 제거 */
    background-color: var(--bg-body);
    text-align: center;
}

/* 의료진 소개 슬라이더 스타일 */
/* 의료진 소개 슬라이더 스타일 */
.staff-slider-container {
    position: relative;
    max-width: 100%;
    /* 전체 폭 사용 */
    margin: 0 auto;
    padding: 0;
    /* 여백 제거 */
    overflow: hidden;
    /* 영역 밖 숨김 */
}

.staff-slider-wrapper {
    overflow: hidden;
    width: 100%;
}

.staff-track {
    display: flex;
    gap: 0;
    /* gap 제거하고 패딩으로 처리 */
    transition: transform 0.5s ease-in-out;
}

.staff-card {
    flex: 0 0 25%;
    /* 4개씩 꽉 차게 보이도록 설정 (반응형으로 조정 필요) */
    width: 25%;
    padding: 0 15px;
    /* 좌우 카드 간격 확보 */
    box-sizing: border-box;
    /* 패딩 포함 넓이 */
    background: transparent;
    /* 배경 투명 */
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    transition: transform 0.3s;
    backface-visibility: hidden;
    transform: translateZ(0);
    cursor: pointer;
}

.staff-card-inner {
    background: var(--bg-card);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px var(--shadow-color);
    height: 100%;
    transform: translateZ(0);
    position: relative;
    /* 가상요소 기준점 */
}

/* 테두리를 가상요소로 띄워서 이미지 위로 덮어씌움 (깔끔한 라운딩) */
.staff-card-inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    box-sizing: border-box;
    z-index: 2;
    pointer-events: none;
    transition: border-color 0.3s;
}

.staff-card:hover .staff-card-inner {
    transform: translateY(-10px);
}

.staff-card:hover .staff-card-inner::after {
    border-color: var(--secondary-color);
    border-width: 2px;
    /* 강조 */
}

.staff-img {
    width: 100%;
    height: 380px;
    /* 이미지 높이 키움 */
    object-fit: cover;
    object-position: center;
    object-position: center;
    background-color: var(--accent-color);
    border-radius: 15px 15px 0 0;
    /* 이미지 자체도 라운딩 처리 */
}

.staff-img.fit-contain {
    object-fit: contain !important;
    background-color: var(--accent-color);
    object-position: bottom center;
}

.blur-effect {
    filter: blur(4px);
    opacity: 0.8;
}

.staff-info {
    padding: 20px;
}

.staff-name {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--text-color);
}

.staff-dept {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1rem;
    display: inline-block;
    padding: 4px 12px;
    background: rgba(0, 168, 204, 0.1);
    border-radius: 20px;
}

.staff-desc {
    font-size: 0.95rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* 슬라이더 네비게이션 버튼 */
/* 슬라이더 네비게이션 버튼 */
.staff-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.8);
    /* 반투명 배경 */
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.staff-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.staff-prev {
    left: 20px;
}

/* 버튼 위치 조정 */
.staff-next {
    right: 20px;
}

/* 버튼 위치 조정 */

/* ==== 전문센터 ==== */
.specialty-section {
    padding: 80px 10%;
    background-color: var(--accent-color);
}

.center-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.center-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-top: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.center-card:hover {
    transform: translateY(-10px);
}

.center-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: inline-block;
}

.center-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.center-card p {
    color: var(--light-text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.center-card ul {
    list-style: none;
    padding: 0;
}

.center-card li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
    font-size: 0.95rem;
    color: #555;
}

.center-card li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==== 병원 약속 ==== */
.promise {
    background-color: var(--accent-color);
    padding: 80px 10%;
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.promise-content {
    flex: 1;
    min-width: 300px;
}

.promise-image {
    flex: 1;
    min-width: 300px;
    height: 400px;
    background-color: #ddd;
    background-image: url('images/build001.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.promise h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.promise li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check-icon {
    color: #28a745;
    font-weight: bold;
}

/* ==== 푸터 (Footer) ==== */
footer {
    background-color: #1a1a1a;
    /* 매우 어두운 회색 (거의 검정) */
    position: relative;
    z-index: 1;
    overflow: hidden;

    color: #999;
    padding: 20px 10%;
    margin-top: 50px;
    font-size: 0.85rem;
    font-family: 'Noto Sans KR', sans-serif;
    letter-spacing: -0.5px;
}

/* 배경 건물 이미지 효과 (가상요소 사용) */
footer::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 70%;
    height: 100%;
    background-image: url('images/footer_bg.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    mix-blend-mode: screen;
    /* 검은 배경을 투명하게 */
    opacity: 0.5;
    /* 은은하게 */
    z-index: -1;
    pointer-events: none;
}

.footer-inner {
    position: relative;
    z-index: 2;
    /* 배경 위로 내용 올리기 */
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    /* 간격 축소 */
    max-width: 1400px;
    margin: 0 auto;
}

/* 왼쪽 영역 */
.footer-left {
    flex: 2;
    min-width: 320px;
}

.f-top-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 15px;
    /* 마진 축소 */
}

.f-logo-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.f-logo {
    height: 30px;
    /* 로고 크기 축소 */
}

.f-logo-box h3 {
    color: #fff;
    font-size: 1.2rem;
    /* 폰트 축소 */
    margin: 0;
    font-weight: 700;
    letter-spacing: -1px;
}

.f-address-box p {
    color: #888;
    margin: 0;
}

.f-info-text p {
    margin-bottom: 3px;
    /* 줄간격 축소 */
    line-height: 1.4;
}

.f-copyright {
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
}

.f-bottom-links {
    display: flex;
    gap: 0;
    padding: 0;
    margin: 0;
}

.f-bottom-links li {
    position: relative;
    padding: 0 10px;
}

.f-bottom-links li:first-child {
    padding-left: 0;
}

.f-bottom-links li::after {
    content: '|';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #444;
    font-size: 0.8rem;
}

.f-bottom-links li:last-child::after {
    display: none;
}

.f-bottom-links a {
    color: #999;
    transition: color 0.3s;
}

.f-bottom-links a:hover {
    color: #fff;
}

/* 오른쪽 영역 */
.footer-right {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    min-width: 300px;
}

.f-phone-box {
    margin-bottom: 5px;
    /* 마진 대폭 축소 */
}

.f-phone-box span {
    font-size: 1rem;
    color: #fff;
    margin-right: 10px;
    vertical-align: middle;
}

.f-phone-box strong {
    font-size: 1.8rem;
    /* 전화번호 크기 축소 */
    color: #5dade2;
    font-weight: 800;
    vertical-align: middle;
    letter-spacing: 1px;
}

.f-hours-info {
    text-align: left;
    /* 내부 텍스트 좌측 정렬 (컬럼 맞춤) */
}

.f-hours-info p {
    margin-bottom: 6px;
    color: #ccc;
    font-size: 0.9rem;
    letter-spacing: -0.3px;
}

.time-label {
    display: inline-block;
    width: 55px;
    color: #fff;
    font-weight: 700;
}

/* 반응형 */
@media (max-width: 900px) {
    .header-contact {
        display: none;
    }

    .hero {
        padding: 0 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-content {
        padding: 20px;
    }

    .promise {
        flex-direction: column-reverse;
    }

    nav ul {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 50px;
    }

    .footer-right {
        text-align: left;
        align-items: flex-start;
        margin-top: 20px;
    }

    .f-top-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .f-bottom-links {
        flex-wrap: wrap;
    }

    .f-bottom-links li {
        padding: 0 10px 10px 0;
    }

    .f-bottom-links li::after {
        display: none;
    }
}

/* ==== 서브 페이지 공통 (Sub Visual) ==== */
.sub-visual {
    margin-top: var(--header-height);
    height: 320px;
    /* 높이 약간 확대 */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    background: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(135deg, #2b8ce3 0%, #004494 100%);
    /* 패턴 + 더 화사한 그라데이션 */
    background-size: 30px 30px,
        100% 100%;
}

.sub-title h2 {
    font-size: 3rem;
    /* 제목 확대 */
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    /* 텍스트 입체감 */
    position: relative;
    display: inline-block;
}

/* 제목 아래 포인트 장식 */
.sub-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #ffd700;
    /* 골드 컬러 포인트 */
    margin: 15px auto 0;
    border-radius: 2px;
}

.sub-title {
    position: relative;
    z-index: 10;
}

.sub-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.sub-title p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* ==== 게시판 스타일 (Board) ==== */
/* ==== 게시판 스타일 (Board) ==== */
.board-section {
    padding: 80px 10%;
    background-color: var(--bg-body);
    /* #fff -> var */
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.board-count {
    color: var(--text-color);
    /* #666 -> var */
}

.board-search {
    display: flex;
    gap: 5px;
}

.board-search input {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
}

.board-search button {
    padding: 8px 20px;
    background-color: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.board-table {
    width: 100%;
    border-top: 2px solid var(--text-color);
    border-collapse: collapse;
}

.board-table th,
.board-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    /* #eee -> var */
    font-size: 0.95rem;
    color: var(--text-color);
    /* Add explicit color */
}

.board-table th {
    background-color: var(--bg-card);
    /* #f9f9f9 -> var */
    font-weight: 600;
    color: var(--text-color);
    /* #333 -> var */
}

.board-table td.subject {
    text-align: left;
    padding-left: 30px;
}

.board-table td.subject a {
    color: var(--text-color);
    /* #333 -> var */
    transition: color 0.2s;
}

.board-table td.subject a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.notice-badge {
    background-color: #ff5e57;
    color: #fff;
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-right: 5px;
}

/* 게시판 하단 (페이징, 버튼) */
.board-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    position: relative;
}

.pagination {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex: 1;
    /* 가운데 정렬을 위해 */
}

.page-btn {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    /* #ddd -> var */
    color: var(--text-color);
    /* #666 -> var */
    border-radius: 5px;
    transition: all 0.2s;
}

.page-btn.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:hover:not(.active) {
    background-color: var(--bg-card);
    /* #f5f5f5 -> var */
}

.write-btn {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    position: absolute;
    right: 0;
    /* 우측 고정 */
}

/* 온라인 상담 상태 배지 */
.status-waiting {
    color: #888;
    border: 1px solid #ddd;
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 20px;
}

.status-complete {
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 2px 8px;
    font-size: 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

/* ==== [병원장 인사말 페이지] ==== */
.greeting-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.greeting-container {
    display: flex;
    align-items: center;
    /* 수직 중앙 정렬 */
    gap: 80px;
    /* 텍스트와 이미지 사이 여백 */
}

.greeting-text {
    flex: 1.2;
    /* 텍스트 영역을 조금 더 넓게 */
}

.greeting-text h3 {
    font-size: 1.4rem;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.greeting-text h2 {
    font-size: 2.4rem;
    line-height: 1.3;
    color: #222;
    margin-bottom: 30px;
    font-weight: 700;
    letter-spacing: -1px;
}

.greeting-divider {
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin-bottom: 40px;
}

.greeting-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 25px;
    word-break: keep-all;
    /* 단어 단위 줄바꿈 */
}

.greeting-text strong {
    color: #222;
    font-weight: 600;
}

.sign-area {
    margin-top: 50px;
    font-size: 1.2rem;
    color: #444;
    text-align: right;
    font-family: 'Noto Sans KR', sans-serif;
}

.sign-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: #222;
    margin-left: 10px;
}

.greeting-img {
    flex: 0.8;
    position: relative;
}

.greeting-img img {
    width: 100%;
    border-radius: 20px 0 20px 0;
    /* 모서리 대각선 둥글게 */
    box-shadow: 20px 20px 0px rgba(0, 86, 179, 0.05);
    /* 포인트 그림자 */
    object-fit: cover;
}

.img-caption {
    position: absolute;
    bottom: 20px;
    right: -20px;
    background: #fff;
    padding: 15px 30px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

@media (max-width: 900px) {
    .greeting-container {
        flex-direction: column-reverse;
        /* 모바일에서는 이미지가 위로 */
        gap: 50px;
    }

    .greeting-text h2 {
        font-size: 2rem;
    }

    .greeting-text {
        text-align: left;
    }

    .sign-area {
        text-align: right;
    }
}

/* 필기체 폰트 적용 (인사말 헤드라인 & 서명) */
.greeting-text h2 {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 3.2rem;
    /* 필기체는 작아보일 수 있어서 크기를 키움 */
    line-height: 1.2;
    font-weight: normal;
    /* 필기체는 굵기보다 자연스러움이 중요 */
    letter-spacing: 0;
}

.sign-area {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 1.8rem;
}

.sign-name {
    font-size: 2.2rem;
    /* 이름은 더 크게 */
    font-weight: normal;
}

/* 인사말 이미지 개선: 세로로 길게 & 그라데이션 페이드 효과 */
.greeting-img {
    flex: 0.9;
    /* 이미지 영역 비율 살짝 늘림 */
    position: relative;
    /* 중요: 이미지를 감싸는 틀 */
    height: 600px;
    /* 세로 높이 고정으로 길게 만듦 */
    overflow: hidden;
    /* 둥근 모서리 적용을 위해 넘치는 부분 자름 */
    border-radius: 20px;
    /* 전체 둥근 모서리 */
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    /* 부드러운 그림자 */
}

.greeting-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 비율 유지하며 꽉 채움 (인물 중심) */
    object-position: top center;
    /* 인물 얼굴 위주로 보이게 */
    border-radius: 0;
    /* 부모에게 둥글기 줬으므로 초기화 */
    box-shadow: none;
    /* 초기화 */
}

/* 이미지 왼쪽에 자연스러운 페이드 아웃 효과 (Overlay) */
.greeting-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    /* 왼쪽 30% 영역에만 그라데이션 */
    height: 100%;
    background: linear-gradient(to right, #fff, transparent);
    /* 흰색에서 투명으로 */
    pointer-events: none;
    /* 마우스 클릭 통과 */
}

/* ==== [병원장 인사말 페이지 - 레퍼런스 스타일 수정] ==== */

/* 1. 타이틀 스타일 변경: 고딕체로 복귀 */
/* 1. 타이틀 스타일 변경: 고딕체로 복귀 */
.greeting-text h2 {
    font-family: 'Noto Sans KR', sans-serif !important;
    /* 필기체 해제 */
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.05em;
    color: var(--text-color);
}

/* 2. 본문 텍스트 스타일 */
.greeting-text p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-color);
    /* #444 -> var */
    margin-bottom: 20px;
}

/* 3. 핵심 가치 박스 3개 스타일 */
.value-box-wrapper {
    display: flex;
    gap: 20px;
    margin: 40px 0 50px 0;
}

.value-box {
    flex: 1;
    background: #f8f9fa;
    /* 아주 연한 회색 배경 */
    border-radius: 15px;
    padding: 25px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.value-box:hover {
    background: #eef2f6;
    /* 호버 시 약간 진하게 */
    transform: translateY(-5px);
}

.value-box strong {
    display: block;
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.3;
}

.value-box span {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
    display: block;
}

/* 4. 이미지 영역 스타일 변경 (깔끔한 배치) */
.greeting-img-wrap {
    flex: 0.8;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    background-color: transparent !important;
    /* 프레임 제거 강제 */
    box-shadow: none !important;
}

.bg-circle {
    display: none;
    border-radius: 50%;
}

.greeting-img-wrap img {
    position: relative;
    width: 110%;
    /* 사진 확대 */
    max-width: none;
    z-index: 1;
    margin-right: -10%;
    /* 오른쪽으로 너무 나가지 않게 위치 조정 */
}

@media (max-width: 900px) {
    .value-box-wrapper {
        flex-direction: column;
    }

    /* 의료진 슬라이더 모바일 대응 */
    .staff-card {
        flex: 0 0 100%;
        width: 100%;
        padding: 0 40px;
        /* 좌우 여백을 주어 중앙 정렬 느낌 */
    }

    .staff-img {
        height: 400px;
        /* 모바일에서 적절한 높이 */
    }
}

/* ==== [High-End 인포그래픽 디자인] ==== */
.circle-chart-container {
    position: relative;
    width: 100%;
    max-width: 450px;
    /* 전체 폭 조절 */
    height: 450px;
    margin: 30px auto 30px 0;
    /* 왼쪽 정렬에 맞게 마진 수정 */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 1. 배경 궤도 (은은한 광채 효과) */
.orbit-circle {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px dashed rgba(0, 86, 179, 0.15);
    /* 아주 얇고 세련된 점선 */
    border-radius: 50%;
    z-index: 0;
    /* 은은한 빛 퍼짐 효과 */
    box-shadow: 0 0 60px rgba(0, 86, 179, 0.05);
}

/* 2. 중앙 핵심 원 (보석 같은 3D 입체감) */
.center-circle {
    position: relative;
    width: 180px;
    /* 더 키움 */
    height: 180px;
    background: linear-gradient(135deg, #2b70c9 0%, #003a8c 100%);
    /* 깊이감 있는 딥 블루 */
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    /* 강력한 입체 그림자 */
    box-shadow:
        0 20px 40px rgba(0, 58, 140, 0.4),
        inset 0 4px 10px rgba(255, 255, 255, 0.2);
    /* 윗면 하이라이트 */
    z-index: 10;
}

.center-circle span {
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    margin-bottom: 8px;
    letter-spacing: 2px;
    /* 자간을 넓혀 고급스럽게 */
    text-transform: uppercase;
}

.center-circle strong {
    font-size: 1.6rem;
    line-height: 1.25;
    font-weight: 800;
    /* 아주 굵게 */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff !important;
}

/* 3. 주변 아이템 원 (깔끔한 화이트 + 컬러 포인트) */
.item-circle {
    position: absolute;
    width: 100px;
    /* 비례에 맞춰 사이즈 조절 */
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 부드럽게 떠있는 그림자 */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    z-index: 5;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* 통통 튀는 효과 */
}

/* 개별 색상 포인트 라인 (상단에 얇게) */
.item-circle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--secondary-color);
    border-radius: 0 0 5px 5px;
}

.item-circle:hover {
    transform: scale(1.15);
    /* 호버 시 확 커짐 */
    box-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
}

.item-circle small {
    display: block;
    font-size: 0.75rem;
    color: #888;
    font-weight: 600;
    margin-bottom: 2px;
    letter-spacing: -0.5px;
}

.item-circle strong {
    display: block;
    font-size: 1.15rem;
    color: #333;
    line-height: 1.2;
    font-weight: 700;
}

/* 위치 미세 조정 (황금 비율 배치) */
.item-top {
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
}

.item-left {
    bottom: 60px;
    left: 20px;
}

.item-right {
    bottom: 60px;
    right: 20px;
}

@media (max-width: 500px) {

    /* 모바일 대응 */
    .circle-chart-container {
        height: 380px;
        margin: 20px auto;
    }

    .orbit-circle {
        width: 300px;
        height: 300px;
    }

    .center-circle {
        width: 140px;
        height: 140px;
    }

    .item-circle {
        width: 85px;
        height: 85px;
    }

    .center-circle strong {
        font-size: 1.3rem;
    }

    .item-left {
        bottom: 50px;
        left: 15px;
    }

    .item-right {
        bottom: 50px;
        right: 15px;
    }
}

/* ==== [인사말 페이지 수정: 서명 위치 이동 및 이미지 확대] ==== */

/* 1. 이미지 영역 확대 */
.greeting-img-wrap {
    flex: 1.1;
    /* 0.8 -> 1.1로 키움 */
    display: flex;
    flex-direction: column;
    /* 세로 정렬 */
    align-items: flex-end;
    /* 우측 정렬 */
    position: relative;
}

/* 2. 서명 영역 스타일 (이미지 위에 겹치거나 하단에 배치) */
.sign-area {
    position: absolute;
    bottom: 20px;
    right: 20px;
    text-align: right;
    z-index: 10;
    font-family: 'Noto Sans KR', sans-serif;
    /* 기본 글씨는 고딕체 */
    font-size: 1.1rem;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    /* 가독성을 위한 반투명 배경 (필요시) */
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* 3. 이름만 필기체로 강조 */
.sign-name {
    font-family: 'Nanum Pen Script', cursive;
    font-size: 2.2rem;
    /* 이름 크기 */
    margin-left: 10px;
    vertical-align: middle;
    color: #000;
}

/* 모바일 대응 */
@media (max-width: 900px) {
    .greeting-img-wrap {
        width: 100%;
        height: auto;
    }

    .sign-area {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: -30px;
        /* 이미지와 겹치게 살짝 올림 */
        align-self: flex-end;
    }
}

/* 인사말 사진 크기 수정: 텍스트 영역과 높이 맞춤 */
.greeting-container {
    align-items: stretch;
    /* 텍스트와 이미지 높이를 동일하게 맞춤 */
}

.greeting-img-wrap {
    flex: 1;
    /* 1:1 비율에 가깝게 */
    height: auto;
    /* 부모 높이(stretch)를 따라감 */
    position: relative;
    overflow: visible;
    /* 그림자가 잘리지 않도록 */
}

.greeting-img-wrap img {
    width: 100%;
    height: 100% !important;
    /* 강제로 높이를 꽉 채움 */
    object-fit: cover;
    /* 비율 유지하며 꽉 채우기 (잘리는 부분 생김) */
    object-position: top center;
    /* 얼굴 위주로 보여주기 */
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    /* 하단만 살짝 페이드 */
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    border-radius: 0 0 20px 20px;
}

/* 배경 원형 장식 조정 */
.bg-circle {
    width: 500px;
    /* 더 키움 */
    height: 500px;
    top: 50%;
    transform: translateY(-50%);
}

/* 인사말 사진 높이 미세 조정 (답답하지 않게 여유 주기) */
.greeting-container {
    align-items: center;
    /* 다시 중앙 정렬로 변경 (stretch 해제) */
}

.greeting-img-wrap {
    height: 600px;
    /* 고정 높이로 제한 (너무 길어지지 않게) */
    display: flex;
    align-items: center;
    /* 내부 이미지 중앙 정렬 */
    justify-content: center;
}

.greeting-img-wrap img {
    height: 100% !important;
    width: auto;
    /* 가로 비율에 맞게 자연스럽게 */
    max-width: 100%;
    /* 부모 너비 넘지 않게 */
    border-radius: 20px;
    /* 사방 둥글게 복구 */
    mask-image: none;
    /* 하단 페이드 제거 (깔끔하게) */
    -webkit-mask-image: none;
    box-shadow: 10px 10px 30px rgba(0, 0, 0, 0.1);
    /* 그림자 다시 추가 */
}

/* 배경 원도 다시 조정 */
.bg-circle {
    width: 450px;
    height: 450px;
}

/* 인사말 타이틀 폰트 사이즈 조절 */
.greeting-text h2 {
    font-size: 2.1rem !important;
    /* 2.5rem -> 2.1rem 으로 축소 */
}

/* 인사말 사진 높이 재조정: 타이틀 높이에 맞춰 확대 */
.greeting-img-wrap {
    height: 720px !important;
    /* 높이를 더 키워서 타이틀 라인과 맞춤 */
}

/* 사진이 커짐에 따라 배경 원 위치도 살짝 조정 */
.bg-circle {
    width: 550px;
    height: 550px;
}

/* ==== [미션/비전 페이지 스타일] ==== */

/* 1. Vision Hero Section */
.vision-hero {
    height: 450px;
    background: linear-gradient(135deg, #004494 0%, #002a5c 100%);
    /* Deep Blue */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    margin-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

/* 배경에 은은한 기하학 패턴 추가 */
.vision-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    z-index: 1;
}

.vision-hero-content {
    z-index: 2;
}

.vision-hero .eng-title {
    display: block;
    font-size: 1rem;
    letter-spacing: 5px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.vision-hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 25px;
}

.vision-hero h1 strong {
    font-weight: 900;
}

.vision-hero p {
    font-size: 1.2rem;
    opacity: 0.8;
}

/* 2. Mission Section (White Clean) */
.mission-section {
    padding: 120px 5%;
    background: var(--bg-body);
    text-align: center;
}

.mission-badge {
    display: inline-block;
    padding: 8px 30px;
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-weight: 800;
    font-family: 'Montserrat', sans-serif;
    /* 영문 폰트 */
    margin-bottom: 30px;
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.mission-section h2 {
    font-size: 2.8rem;
    line-height: 1.4;
    font-size: 2.8rem;
    line-height: 1.4;
    color: var(--text-color);
    font-weight: 400;
    margin-bottom: 40px;
}

.highlight-text {
    color: var(--primary-color);
    font-weight: 800;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(0, 86, 179, 0.1);
    z-index: -1;
}

.mission-desc p {
    font-size: 1.15rem;
    font-size: 1.15rem;
    color: var(--light-text);
    line-height: 1.8;
    line-height: 1.8;
}

/* 3. Core Values (Cards) */
.value-section {
    padding: 100px 5%;
    background: var(--accent-color);
    /* 연한 회색 배경 */
}

.section-title h3 {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--text-color);
    margin-bottom: 60px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.value-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 부드러운 그림자 */
    transition: all 0.3s ease;
    border-top: 5px solid transparent;
}

.value-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    border-top-color: var(--primary-color);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--bg-body);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 30px;
    font-size: 2rem;
    color: var(--primary-color);
    transition: all 0.3s;
}

.value-card:hover .card-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(360deg);
    /* 회전 효과 */
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.card-content h4 {
    font-size: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
    margin-bottom: 20px;
}

.card-content p {
    font-size: 1rem;
    color: var(--light-text);
    line-height: 1.6;
}

/* 4. Vision Goal Section (좌우 레이아웃) */
.vision-goal-section {
    padding: 120px 5%;
    position: relative;
    background: var(--bg-body);
    overflow: hidden;
}

.vision-bg-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: #f0f8ff;
    /* 오른쪽 배경색 다르게 */
    z-index: 0;
    clip-path: polygon(20% 0%, 100% 0, 100% 100%, 0% 100%);
    /* 사선 처리 */
}

.inner-container.relative {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 50px;
}

.vision-text-side {
    flex: 1;
}

.vision-label {
    font-weight: 700;
    color: var(--secondary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 5px;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
}

.vision-text-side h2 {
    font-size: 2.8rem;
    line-height: 1.3;
    margin-bottom: 40px;
    color: #222;
}

.vision-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.check-icon {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    font-weight: bold;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.vision-list strong {
    font-size: 1.2rem;
    color: #222;
    display: block;
    margin-bottom: 5px;
}

.vision-list p {
    color: #666;
}

.vision-graphic-side {
    flex: 0.8;
    display: flex;
    justify-content: center;
}

.future-circle {
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--secondary-color), #00c6ff);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px rgba(0, 172, 193, 0.4);
    position: relative;
}

/* 궤도 애니메이션 효과 */
.future-circle::before {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    border: 1px dashed rgba(0, 198, 255, 0.5);
    border-radius: 50%;
    animation: spinOrbit 30s linear infinite;
}

.f-text {
    font-size: 2.5rem;
    font-weight: 900;
    text-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Montserrat', sans-serif;
}

@media (max-width: 900px) {
    .vision-hero h1 {
        font-size: 2.5rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .inner-container.relative {
        flex-direction: column;
    }

    .vision-bg-overlay {
        width: 100%;
        height: 300px;
        bottom: 0;
        top: auto;
        clip-path: none;
    }
}

/* ==== 의료진 상세 모달 팝업 ==== */
.staff-modal-overlay {
    display: none;
    /* 기본 숨김 */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 20000;
    /* 모바일 메뉴 버튼(10001)보다 높게 설정 */
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.staff-modal-overlay.active {
    opacity: 1;
}

.staff-modal {
    background: var(--bg-card);
    width: 1100px;
    max-width: 95%;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    height: 85vh;
    /* 높이를 화면의 85%로 고정해 시원하게 */
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    transform: translateY(30px);
    transition: transform 0.3s ease;
}

.staff-modal-overlay.active .staff-modal {
    transform: translateY(0);
}

.modal-img-area {
    width: 40%;
    background: #f0f8ff;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    /* 이미지를 하단에 맞춤 */
}

.modal-img-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.modal-content-area {
    width: 60%;
    padding: 50px;
    position: relative;
    overflow-y: auto;
    max-height: 80vh;
}

.modal-close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 2.5rem;
    z-index: 100;
    color: #999;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-dept-label {
    display: inline-block;
    padding: 6px 15px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.modal-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 30px;
}

.modal-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}

.modal-list {
    list-style: none;
    margin-bottom: 30px;
}

.modal-list li {
    position: relative;
    padding-left: 15px;
    margin-bottom: 8px;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.modal-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
}

/* 진료 일정 섹션 여백 추가 */
#modalScheduleSection {
    margin-top: 40px;
}

/* 진료 일정 이미지 스타일 (Global) */
.schedule-img-container {
    margin-top: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #fff;
    /* 다크모드에서도 잘 보이도록 흰색 배경 고정 */
}

.schedule-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

@media (max-width: 900px) {
    .staff-modal {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        height: 100%;
        border-radius: 0;
        background: var(--accent-color);
        /* 배경색 */
    }

    .modal-img-area {
        width: 100%;
        height: 320px;
        /* 사진 높이 확보 */
        position: relative;
        z-index: 1;
        align-items: flex-end;
        /* 이미지를 아래쪽에 정렬 */
    }

    .modal-content-area {
        width: 100%;
        padding: 40px 25px;
        background: var(--bg-card);
        border-radius: 30px 30px 0 0;
        /* 둥근 카드 형태 */
        margin-top: -40px;
        /* 사진 위로 겹치게 (Overlay Effect) */
        position: relative;
        z-index: 2;
        box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
        flex: 1;
        overflow-y: auto;
        /* 내용 많을 시 스크롤 */
    }

    /* 진료 일정 이미지 스타일 */


    .modal-close-btn {
        top: 20px;
        right: 20px;
        color: #333;
        background: rgba(255, 255, 255, 0.95);
        /* 깔끔한 흰색 버튼 */
        width: 44px;
        height: 44px;
        border-radius: 50%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 2rem;
        padding-bottom: 4px;
        /* 시각적 중앙 보정 */
    }

    .modal-name {
        font-size: 1.8rem;
        /* 이름 크기 조정 */
        margin-bottom: 20px;
    }
}

/* 예약 확인 모달 & 버튼 스타일 */
.btn-check-reserve {
    width: 100%;
    background: #fff;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 14px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    margin-top: 10px;
}

.btn-check-reserve:hover {
    background: #f0f8ff;
}

.check-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.check-modal-overlay.active {
    opacity: 1;
}

.check-modal {
    background: #fff;
    width: 400px;
    max-width: 90%;
    border-radius: 15px;
    padding: 30px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.check-modal-overlay.active .check-modal {
    transform: translateY(0);
}

.check-modal h3 {
    text-align: center;
    color: #333;
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.check-result-box {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    border: 1px solid #eee;
    display: none;
    /* 기본 숨김 */
}

.result-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.result-row span:first-child {
    color: #666;
}

.result-row span:last-child {
    font-weight: 600;
    color: #333;
}

.result-status {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    color: #fff;
    background: #ccc;
}

.result-status.confirmed {
    background: #27ae60;
}

.result-status.cancelled {
    background: #e74c3c;
}

.result-status.pending {
    background: #f39c12;
}

/* 신년 인사 팝업 스타일 */
.promo-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    justify-content: center;
    align-items: center;
}

.promo-modal {
    background: transparent;
    max-width: 1000px;
    width: 90%;
    position: relative;
    text-align: center;
}

.promo-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.promo-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.9rem;
    width: fit-content;
    margin: 0 auto;
    gap: 20px;
}

.promo-check-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #333;
}

.promo-close-btn {
    background: none;
    border: none;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    font-size: 0.95rem;
}

.promo-close-btn:hover {
    color: var(--primary-color);
}

/* ==== [FINAL FIX: Greeting Image Style] ==== */
/* Remove all frames, shadows, and resizing overrides */
.greeting-img-wrap {
    background-color: transparent !important;
    box-shadow: none !important;
    border: none !important;
    height: auto !important;
    overflow: visible !important;
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
}

.greeting-img-wrap img {
    width: 120% !important;
    /* Increase size */
    height: auto !important;
    max-width: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    mask-image: none !important;
    -webkit-mask-image: none !important;
    margin-right: -10% !important;
    /* Shift right slightly */
}

.bg-circle {
    display: none !important;
}

/* Fix: Item Top Hover Glitch */
.item-top:hover {
    transform: translateX(-50%) scale(1.15) !important;
}

/* Handwriting Font for Greeting Closing */
.handwriting-text {
    font-family: 'Nanum Brush Script', cursive !important;
    font-size: 1.8rem !important;
    /* 붓글씨는 작으면 안보이므로 확대 */
    color: #333 !important;
    line-height: 1.6 !important;
}

/* ============================
   Floating QR Banner 
   ============================ */
.fixed-qr-banner {
    position: fixed;
    bottom: 85px;
    right: 20px;
    /* 우측으로 더 이동 */
    z-index: 9999;
    width: 125px;
    /* 더 작게 축소 -> 125px로 확대 */
    text-align: center;
    transition: transform 0.3s;
    /* animation: bannerFloat 3s ease-in-out infinite; Remove floating */
    cursor: pointer;
}

.fixed-qr-banner:hover {
    animation-play-state: paused;
    transform: translateY(-5px) scale(1.05);
}

.fixed-qr-banner a {
    text-decoration: none;
    display: block;
}

.qr-mascot {
    position: relative;
    z-index: 2;
    margin-bottom: -25px;
    /* 머리가 더 크므로 겹침 정도 조정 */
}

.qr-mascot img {
    width: 65px;
    /* 얼굴 더 작게 */
    height: auto;
    margin: 0 auto;
    display: block;
    /* 투명 이미지이므로 배경/보더/라운딩 제거하고 그림자만 적용 */
    filter: drop-shadow(0 4px 5px rgba(0, 0, 0, 0.15));
    object-fit: contain;
}

.qr-content-box {
    background: #FFEB00;
    /* 카카오 옐로우 */
    border-radius: 12px;
    padding: 12px 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
    border: 2px solid #fff;
}

.qr-img-frame {
    background: #fff;
    border-radius: 8px;
    padding: 4px;
    margin-bottom: 5px;
    overflow: hidden;
}

.qr-img-frame img {
    width: 100%;
    display: block;
    border-radius: 4px;
}

.qr-content-box p {
    font-size: 0.65rem;
    font-weight: 800;
    color: #3C1E1E;
    /* 카카오 브라운 */
    margin: 0;
    line-height: 1.3;
    letter-spacing: -0.5px;
    font-family: 'Noto Sans KR', sans-serif;
}

@keyframes bannerFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {
    .fixed-qr-banner {
        bottom: 20px;
        right: 20px;
        width: 100px;
    }

    .qr-mascot img {
        width: 60px;
    }
}

/* ============================
   [반응형 미디어 쿼리 - 추가]
   Strategy #1 Grid System & Layout
   ============================ */

/* 태블릿 (1024px 이하) */
@media (max-width: 1024px) {

    /* 1. 의료진 소개: 4단 -> 2단 */
    .staff-card {
        flex: 0 0 50%;
        width: 50%;
    }

    /* 2. 섹션 여백 조정 */
    .staff-section,
    .departments,
    .specialty-section,
    .promise {
        padding: 60px 5%;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {

    /* 1. 의료진 소개: 2단 -> 1단 */
    .staff-card {
        flex: 0 0 100%;
        width: 100%;
    }

    /* 2. 전체 여백 최소화 */
    .hero {
        height: 450px;
        /* 모바일에서 높이 적절히 축소 */
        min-height: auto;
    }

    .hero h1 {
        font-size: 1.8rem;
        /* 타이틀 크기 축소 */
        word-break: keep-all;
        /* 단어 단위 줄바꿈 */
    }

    .hero p {
        font-size: 1rem;
        word-break: keep-all;
    }

    .quick-menu {
        margin-top: -30px;
        /* 겹침 정도 축소 */
        padding: 30px 20px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        grid-template-columns: 1fr;
        /* 1단 배열 */
    }

    /* 3. 의료진 이미지 최적화 (사이즈 일정하게) */
    .staff-img {
        height: 350px;
        /* 모바일에서 높이 조정 */
        /* 사람이 아래쪽에 맞춰지도록 설정 (키 차이 보완) */
        object-position: bottom center !important;
    }

    .staff-desc {
        word-break: keep-all;
        /* 설명글 줄바꿈 개선 */
    }

    .section-title h2 {
        font-size: 1.5rem;
    }

    /* 플로팅 배너 위치 조정 (모바일에서 조금 더 위로, 혹은 작게) */
    .fixed-qr-banner {
        bottom: 80px;
    }
}

/* ============================
   [모바일/태블릿 추가 오버라이드 - Strategy #3 Check]
   ============================ */
@media (max-width: 1024px) {

    /* 플로팅 배너: 아이콘 모드 (내용 숨김) */
    .qr-content-box {
        display: none !important;
    }

    .fixed-qr-banner {
        width: auto !important;
        bottom: 30px !important;
        right: 20px !important;
    }

    .qr-mascot {
        margin-bottom: 0 !important;
    }

    .qr-mascot img {
        width: 70px !important;
        filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3)) !important;
    }
}

/* ============================
   [모바일 Hero 섹션 폰트/패딩 최적화]
   ============================ */
@media (max-width: 768px) {
    .hero-content {
        padding: 25px 20px;
        /* 패딩 대폭 축소 (상하좌우) */
        width: 90%;
        /* 너비 확보 */
        max-width: none;
        /* 최대 너비 해제 */
    }

    .hero h2 {
        font-size: 0.95rem !important;
        margin-bottom: 5px !important;
    }

    .hero h1 {
        font-size: 1.6rem !important;
        /* 제목 크기 축소 */
        margin-bottom: 10px !important;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem !important;
        /* 본문 크기 축소 */
        line-height: 1.4 !important;
        /* 줄간격 좁힘 */
        margin-bottom: 20px !important;
    }

    /* 버튼 크기 조정 */
    .btn-primary {
        padding: 10px 25px !important;
        font-size: 0.95rem !important;
    }

    /* 슬라이드 도트 위치 조정 (내용과 겹치지 않게) */
    .slider-dots {
        bottom: 15px !important;
    }
}

/* ============================
   [모바일 Hero 중앙 정렬]
   ============================ */
@media (max-width: 768px) {
    .hero-slide {
        padding: 0 !important;
        justify-content: center !important;
        /* 카드 박스 중앙 정렬 */
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        /* 텍스트 중앙 정렬 */
        width: 85% !important;
        /* 너비 살짝 여유 있게 */
    }

    .hero h1,
    .hero h2,
    .hero p {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* ============================
   [모바일 가로 스크롤/여백 방지]
   ============================ */
html,
body {
    overflow-x: hidden;
    /* 가로 스크롤 강제 숨김 */
    width: 100%;
}

@media (max-width: 768px) {

    /* 모바일에서 헤더 메뉴가 넘치지 않도록 숨김 (임시: 햄버거 메뉴 필요 시 추가 개발) */
    /* 현재는 줄바꿈 허용으로 넘침 방지 */
    nav {
        position: static;
        transform: none;
        width: 100%;
        overflow-x: auto;
        /* 필요시 가로 스크롤 */
    }

    nav ul {
        justify-content: center;
        gap: 15px;
        /* 간격 축소 */
        flex-wrap: wrap;
        /* 줄바꿈 허용 */
        padding: 10px 0;
    }

    header {
        height: auto;
        /* 내용에 맞춰 높이 조절 */
        flex-direction: column;
        padding: 10px 5%;
    }

    .logo {
        margin-bottom: 10px;
    }
}

/* ============================
   [모바일 팝업 메뉴 (Lion Icon Style) - 추가]
   ============================ */
.mobile-menu-btn {
    display: none;
    /* PC 숨김 */
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 10001;
    background: var(--bg-card);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    align-items: center;
    justify-content: center;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-card);
    z-index: 10002;
    padding: 20px 25px;
    transform: translateX(100%);
    /* 오른쪽에서 슬라이드 */
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
}

.mobile-menu-logo img {
    height: 35px;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #333;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu-list>li {
    border-bottom: 1px solid #f9f9f9;
}

.mobile-menu-list>li>a {
    display: block;
    padding: 18px 5px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-menu-list>li>a:hover {
    color: var(--primary-color);
}

.mobile-submenu {
    list-style: none;
    padding: 0;
    display: none;
    background: #f8fbff;
    border-radius: 10px;
    margin-bottom: 10px;
    padding: 10px;
}

.mobile-submenu li a {
    display: block;
    padding: 10px;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

.mobile-submenu li:last-child a {
    border-bottom: none;
}

/* 1024px 이하에서만 보이기 */
@media (max-width: 1024px) {
    .mobile-menu-btn {
        display: flex;
    }

    /* 기존 Nav 숨김 (중복 방지) */
    nav {
        display: none !important;
    }
}

/* ==== [메인 슬라이드 커스텀 컨트롤] ==== */
.slide-control-pill {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 20;
}

.slide-control-pill .control-arrow {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    /* 화살표 크기 */
    cursor: pointer;
    padding: 0;
    transition: all 0.2s;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.5));
}

.slide-control-pill .control-arrow:hover {
    transform: scale(1.2);
    color: var(--secondary-color);
    /* 호버 시 색상 변경 */
}

.slide-control-pill .control-count {
    background: white;
    color: #003b7e;
    /* 짙은 파랑 */
    padding: 6px 20px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    min-width: 70px;
    text-align: center;
}

@media (max-width: 768px) {
    .slide-control-pill {
        display: flex;
        /* 모바일에서도 보이기 */
        bottom: 50px;
        /* 위치 조정 */
        gap: 15px;
    }

    .slide-control-pill .control-arrow {
        font-size: 1.5rem;
        /* 모바일에서 화살표 작게 */
    }

    .slide-control-pill .control-count {
        padding: 4px 15px;
        font-size: 0.9rem;
        min-width: 60px;
    }

    .slider-dots {
        bottom: 15px !important;
    }
}

/* 슬라이드 비디오 배경 스타일 */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    /* 배경 이미지 위, 컨텐츠 아래? 아니 배경 대신임 */
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: none;
    /* 텍스트 가독성을 위해 어둡게 */
    z-index: -1;
}

/* ==== [Mobile Board Responsive] ==== */
@media (max-width: 768px) {

    /* 1. Board Section Padding Check */
    .board-section {
        padding: 40px 15px;
        /* Reduce side padding */
    }

    /* 2. Hide Less Important Columns */
    .board-table .col-id,
    .board-table .col-writer,
    .board-table .col-views,
    .board-table .col-status {
        display: none;
    }

    /* 3. Adjust Table Cells */
    .board-table th,
    .board-table td {
        padding: 12px 5px;
        /* Reduce cell padding */
        font-size: 0.85rem;
    }

    /* 4. Subject / Title Width */
    .board-table th.col-subject,
    .board-table td.subject,
    .board-table td.col-title {
        width: 75% !important;
        white-space: normal;
        word-break: keep-all;
        text-align: left;
        padding-left: 5px !important;
    }

    /* 5. Date Column - Keep it but small */
    .board-table .col-date {
        font-size: 0.8rem;
        color: #999;
        text-align: right;
        padding-right: 0;
        white-space: nowrap;
        width: 25% !important;
        /* Force small width */
    }

    /* Ensure table layout doesn't use colgroup strictly on mobile */
    .board-table {
        table-layout: auto !important;
    }

    /* 6. Media List Thumb resize */
    .thumb-cell img {
        width: 80px;
        /* Smaller thumb */
        height: auto;
    }

    .thumb-cell {
        width: 90px;
    }

    /* 7. Board Header Stack */
    .board-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .board-search {
        width: 100%;
        display: flex;
    }

    .board-search input {
        flex: 1;
    }
}

/* ==== [View Page Styles] ==== */
.view-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 80px;
    /* Top padding for fixed header */
}

.view-header {
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.view-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #222;
}

.view-meta {
    font-size: 0.95rem;
    color: #777;
    text-align: right;
}

.view-content {
    min-height: 300px;
    margin-bottom: 50px;
    line-height: 1.8;
    color: #444;
    word-break: break-all;
}

.view-content img {
    max-width: 100% !important;
    height: auto !important;
}

.btn-list {
    display: table;
    /* Center block */
    margin: 0 auto;
    padding: 12px 40px;
    background: #555;
    color: #fff;
    border-radius: 5px;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-list:hover {
    background: #333;
}

@media (max-width: 768px) {
    .view-container {
        padding: 100px 15px 50px;
    }

    .view-title {
        font-size: 1.4rem;
    }

    .view-meta {
        font-size: 0.85rem;
        text-align: left;
        margin-top: 10px;
    }

    .view-content {
        font-size: 0.95rem;
    }
}

/* Top Button Animation */
@keyframes float-up {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.btn-scroll-top {
    cursor: pointer;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    margin: 0 auto 15px auto;
    transition: all 0.3s;
}

.btn-scroll-top i {
    animation: float-up 2s infinite ease-in-out;
}

.btn-scroll-top:hover {
    background-color: var(--primary-color);
}

.btn-scroll-top:hover i {
    color: #fff !important;
    animation: none;
}

/* =========================================
   Sub Page Hero Section (Common)
   ========================================= */
.sub-hero {
    height: 350px;
    background: url('images/companyD.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 80px;
    /* Moves it down below fixed header */
}

/* Dark Overlay */
.sub-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.sub-hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}

.sub-hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.sub-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .sub-hero {
        height: 250px;
    }

    .sub-hero-content h1 {
        font-size: 2rem;
    }
}

/* =========================================
   Medical Staff Page (about_staff.php) - Zig-Zag Layout
   ========================================= */
.staff-intro-section {
    padding: 100px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    background-color: var(--bg-body);
    /* Dark mode compatible */
}

.staff-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 150px;
    gap: 80px;
}

.staff-row:last-child {
    margin-bottom: 50px;
}

/* Even rows: Image Right, Text Left */
.staff-row:nth-child(even) {
    flex-direction: row-reverse;
}

.staff-img-col {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

/* Image Styling */
.staff-img-col img {
    max-width: 100%;
    width: 420px;
    height: 520px;
    object-fit: contain;
    filter: drop-shadow(15px 15px 25px rgba(0, 0, 0, 0.1));
    transition: transform 0.3s ease;
}

.staff-img-col img:hover {
    transform: scale(1.02);
}

/* Background Deco for Image (Optional) */
.staff-img-col::before {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: var(--light-blue);
    border-radius: 50%;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.5;
}

/* Text Content Styling */
.staff-info-col {
    flex: 1.2;
}

.staff-info-col h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.staff-info-col .badge {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0, 86, 179, 0.2);
    vertical-align: middle;
}

.staff-info-col .history-list {
    margin-top: 35px;
    list-style: none;
    padding: 0;
    border-top: 2px solid var(--border-color);
    padding-top: 25px;
}

.staff-info-col .history-list li {
    font-size: 1.1rem;
    color: var(--light-text);
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.staff-info-col .history-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 1.2rem;
    font-weight: bold;
}

/* Responsive - Mobile/Tablet */
@media (max-width: 900px) {

    .staff-row,
    .staff-row:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        margin-bottom: 100px;
    }

    .staff-img-col img {
        width: 100%;
        max-width: 320px;
        height: auto;
    }

    .staff-info-col h3 {
        justify-content: center;
        font-size: 1.8rem;
    }

    .staff-info-col .history-list {
        text-align: left;
        display: inline-block;
        padding-left: 10px;
        padding-right: 10px;
    }

    .staff-img-col::before {
        width: 250px;
        height: 250px;
    }
}

/* =========================================
   About Hours Page (about_hours.php)
   ========================================= */
.general-hours-section {
    padding: 80px 0 50px;
    background: var(--bg-body);
}

.hours-container {
    max-width: 800px;
    margin: 0 auto 50px;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hours-box-header {
    background: var(--primary-color);
    color: #fff;
    padding: 25px;
    text-align: center;
}

.hours-box-header h2 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.hours-box-header h2 i {
    margin-right: 10px;
}

.hours-box-body {
    padding: 40px;
}

.h-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
    font-size: 1.1rem;
}

.h-row:last-child {
    border-bottom: none;
}

.h-label {
    font-weight: 700;
    color: var(--text-color);
    width: 100px;
}

.h-time {
    color: var(--light-text);
    text-align: right;
    flex: 1;
}

.h-label.highlight,
.h-time.highlight {
    color: var(--secondary-color);
    font-weight: 700;
}

.sub-text {
    font-size: 0.9rem;
    color: #888;
    margin-left: 5px;
}

.hours-box-footer {
    background: #f8f9fa;
    padding: 20px;
    text-align: center;
    border-top: 1px solid #eee;
    color: var(--text-color);
}

/* Doctor Schedule Section */
.doctor-schedule-section {
    padding: 50px 0 100px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.schedule-list-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 50px;
}

.schedule-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    padding: 30px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.schedule-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.doc-profile-area {
    width: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-shrink: 0;
    border-right: 1px solid #eee;
    padding-right: 30px;
    margin-right: 30px;
}

.doc-thumb {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 15px;
    border: 3px solid var(--bg-body);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.doc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Special scaling for certain images if needed (like doc06) */
.schedule-item:nth-child(6) .doc-thumb img {
    transform: scale(1.1);
    transform-origin: center 20%;
}

.doc-txt h3 {
    font-size: 1.3rem;
    color: var(--text-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.doc-txt span {
    display: inline-block;
    background: var(--light-blue);
    color: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.doc-schedule-img {
    flex: 1;
    display: flex;
    justify-content: center;
}

.doc-schedule-img img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    /* Optional: subtle border for the table image */
    border: 1px solid #eee;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .schedule-item {
        flex-direction: column;
        padding: 25px;
        text-align: center;
    }

    .doc-profile-area {
        width: 100%;
        border-right: none;
        padding-right: 0;
        margin-right: 0;
        margin-bottom: 25px;
        border-bottom: 1px solid #eee;
        padding-bottom: 20px;
    }

    .doc-schedule-img {
        width: 100%;
    }

    .schedule-item:hover {
        transform: none;
    }
}
/* [Mobile Popup Fix] - Ensure popups scroll on small screens */
@media (max-width: 768px) {
    .promo-modal-overlay {
        align-items: flex-start !important; /* Allow scrolling from top */
        padding-top: 50px !important;
        padding-bottom: 50px !important;
    }
    
    #promoContainer {
        margin-top: 20px !important;
        flex-direction: column !important; /* Stack vertically */
        align-items: center !important;
    }
    
    .promo-card {
        width: 90% !important; /* Fit screen width */
        margin-bottom: 20px !important;
        max-width: 380px !important;
    }
}
