/* 서브페이지 헤더 - 기존과 동일 */
.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;
}

.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;
}

/* 오시는길 섹션 */
.location-section {
    padding: 100px 0 0;
    background-color: #ffffff;
}

.location-section > .container:first-child {
    padding-bottom: 100px;
}

/* 진료시간 안내 섹션 - 전체 배경 */
.hours-section {
    padding: 0;
}

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

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

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

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

/* 지도 및 정보 컨테이너 */
.location-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

/* 지도 영역 */
.map-wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
}

/* 지도 터치 스크롤 방지 오버레이 */
.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    cursor: pointer;
}

.map-overlay:hover::after {
    content: '클릭하여 지도 이동';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
}

/* 위치 정보 */
.location-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.info-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.info-section h3 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center; /* 가운데 정렬 추가 */
    gap: 10px;
    text-align: center;
}

.info-section h3 i {
    color: #2c5aa0;
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center; /* 가운데 정렬 추가 */
}

.info-item {
    text-align: center; /* 텍스트 가운데 정렬 */
    width: 100%;
}

.info-item h4 {
    font-size: 18px;
    font-weight: 500;
    color: #555;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center; /* 가운데 정렬 */
    gap: 8px;
}

.info-item h4 i {
    color: #2c5aa0;
    font-size: 16px;
}

.info-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 10px auto; /* 가운데 정렬 */
    width: 80%; /* 너비 제한 */
}

.info-section p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 10px;
    text-align: center; /* 가운데 정렬 */
}

.phone-large {
    font-size: 28px;
    font-weight: 700;
    color: #2c5aa0;
    margin: 20px 0;
    text-align: center; /* 가운데 정렬 */
}

.address {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 15px;
    text-align: center; /* 가운데 정렬 */
}

/* 주소 복사 버튼 */
.copy-address {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto; /* 가운데 정렬 */
}

.copy-address:hover {
    background: #1e4080;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

/* 진료시간 안내 - 따로 뺀 섹션 */
.hours-guide {
    background: #f3f4f6;
    padding: 80px 0;
    margin: 0 calc(-50vw + 50%);
    padding-left: calc(50vw - 50%);
    padding-right: calc(50vw - 50%);
}

.hours-guide-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.hours-item {
    background: white;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.hours-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hours-item.lunch {
    background: #fff5f5;
}

.hours-item.lunch .hours-icon {
    background: #ffe8e8;
}

.hours-item.lunch .hours-icon i {
    color: #ff6b6b;
}

.hours-item.lunch .hours-time {
    color: #ff6b6b;
}

.hours-item.closed .hours-time {
    color: #999;
}

.hours-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.hours-icon i {
    font-size: 30px;
    color: #2c5aa0;
}

.hours-item:hover .hours-icon {
    background: #2c5aa0;
}

.hours-item:hover .hours-icon i {
    color: white;
}

.hours-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.hours-item .hours-time {
    font-size: 20px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 5px;
}

.hours-item .hours-desc {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* 교통편 안내 */
.transport-guide {
    background: #ffffff;
    padding: 80px 0;
    margin: 0;
}

.transport-title,
.nearby-title {
    font-size: 32px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
}

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

.transport-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.transport-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #2c5aa0;
}

.transport-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.transport-icon i {
    font-size: 30px;
    color: #2c5aa0;
}

.transport-item:hover .transport-icon {
    background: #2c5aa0;
}

.transport-item:hover .transport-icon i {
    color: white;
}

.transport-item h4 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.transport-item ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.transport-item li {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.transport-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2c5aa0;
}

/* 퀵메뉴 활성 상태 */
.quick-item.active {
    background-color: #2c5aa0;
}

.quick-item.active .quick-icon,
.quick-item.active span {
    color: white;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .transport-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .sub-header {
        height: 250px;
    }
    
    .sub-title {
        font-size: 32px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .location-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .map-wrapper {
        height: 350px;
    }
    
    .transport-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .hours-guide {
        padding: 60px 0;
        margin: 0 -20px;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .info-content {
        gap: 20px;
    }
    
    .hours-guide-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .hours-item {
        padding: 25px;
    }
    
    .transport-title {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .transport-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .hours-item {
        padding: 20px;
    }
    
    .hours-icon {
        width: 60px;
        height: 60px;
    }
    
    .hours-icon i {
        font-size: 24px;
    }
}

/* 애니메이션 */
.location-container,
.transport-item,
.hours-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.location-container.animate-in,
.transport-item.animate-in,
.hours-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

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