/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background-color: #ffffff;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Navigation - 새로운 디자인 */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* 모바일에서 네비게이션 높이 조정 */
@media (max-width: 768px) {
    .nav-wrapper {
        height: 60px;
        padding: 0 20px;
    }
}

/* 로고 */
.nav-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.nav-logo img {
    height: 45px;
    width: auto;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .nav-logo img {
        height: 35px;
    }
}

.nav-logo img:hover {
    opacity: 0.8;
}

/* 모바일 토글 버튼 - 기본값 숨김 */
.nav-mobile-toggle {
    display: none;
}

/* 메뉴 */
.nav-menu {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 15px; /* 간격을 줄여서 더 많은 메뉴가 들어가도록 */
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: block;
    padding: 30px 0;
    font-size: 13px; /* 폰트 크기 약간 작게 */
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;
    position: relative;
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: #2c5aa0;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-item:hover .nav-link::after {
    width: 100%;
}

/* 드롭다운 메뉴 스타일 */
.nav-item.has-dropdown {
    position: relative;
    z-index: 1001;
}

/* PC에서만 드롭다운 스타일 적용 */
@media (min-width: 769px) {
    .nav-item .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        background: #fff;
        min-width: 200px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s;
        z-index: 100;
        display: block;
    }

    .nav-item:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .dropdown-menu a {
        display: block;
        padding: 12px 20px;
        color: #666;
        transition: all 0.3s;
        border-bottom: 1px solid #f0f0f0;
        font-size: 14px;
    }

    .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .dropdown-menu a:hover {
        color: #0066cc;
        background: #f8f9fa;
        padding-left: 25px;
    }
}

.nav-link.active {
    color: #0066cc;
    font-weight: 600;
}

/* 네비게이션 CTA 버튼 */
.nav-cta {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
}

/* 모바일 메뉴 토글 */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.nav-mobile-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

.nav-mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translateY(7px);
}

.nav-mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px);
}
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-cta:hover::before {
    width: 100px;
    height: 100px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.nav-cta::after {
    display: none;
}

.nav-cta svg {
    transition: transform 0.3s ease;
}

.nav-cta:hover svg {
    transform: rotate(10deg) scale(1.1);
}

/* 드롭다운 메뉴 - PC에서 개별 드롭다운 숨김 */
@media (min-width: 769px) {
    /* 개별 드롭다운 메뉴 숨김 */
    .nav-item .dropdown-menu {
        display: none !important;
    }
    
    /* 통합 메가 드롭다운 표시 */
    .mega-dropdown-all {
        display: block !important;
    }
}

/* 통합 메가 드롭다운 */
.mega-dropdown-all {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    border-top: 1px solid #e9ecef;
    display: none;
}

/* PC에서만 표시 */
@media (min-width: 769px) {
    .mega-dropdown-all {
        display: block;
    }
}

.mega-dropdown-all .mega-dropdown-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.dropdown-section h3 {
    font-size: 16px;
    font-weight: 600;
    color: #2c5aa0;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.dropdown-section .dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dropdown-section .dropdown-links a {
    font-size: 14px;
    color: #555;
    font-weight: 400;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 5px;
    display: block;
}

.dropdown-section .dropdown-links a:hover {
    color: #2c5aa0;
    background: #f8f9fa;
    padding-left: 20px;
}

/* 모바일 토글 */
.nav-mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
}

.nav-mobile-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background-color: #f5f5f5;
    margin-top: 0; /* 네비게이션과 겹치지 않도록 */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

/* Hero Slideshow */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: zoomEffect 10s ease-in-out;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1.0);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
    padding-top: 100px; /* 네비게이션 높이 고려 */
    max-width: 800px;
    margin: 0 auto;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-subtitle-fixed {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-weight: 300;
}

.hero-subtitle {
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 400;
    min-height: 36px; /* 타이핑 애니메이션을 위한 고정 높이 */
}

/* 타이핑 커서 애니메이션 */
.typing-text {
    display: inline-block;
    position: relative;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 28px;
    background-color: #ffffff;
    margin-left: 2px;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero-description {
    font-size: 20px;
    color: #ffffff;
    line-height: 1.8;
    margin-bottom: 50px;
}

/* 서울대 로고 추가 */
.hero-credentials {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.seoul-univ-badge {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    animation: fadeInDown 0.8s ease-out 0.4s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-button.primary {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.hero-button.primary:hover {
    background: linear-gradient(135deg, #1e4080 0%, #153060 100%);
    transform: translateY(-3px);
    animation: none;
    box-shadow: 0 10px 35px rgba(44, 90, 160, 0.4);
}

.hero-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.3);
}

.hero-button.secondary:hover {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4);
}

/* 버튼 호버 효과 */
.hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.hero-button:hover::before {
    left: 100%;
}

.hero-button svg {
    transition: transform 0.3s ease;
}

.hero-button:hover svg {
    transform: scale(1.2);
}

/* 전화 아이콘 애니메이션 */
.hero-button.primary svg {
    animation: ring 1s ease-in-out infinite;
}

.hero-button.primary:hover svg {
    animation: none;
    transform: scale(1.2) rotate(15deg);
}

/* Quick Menu - Fixed Position */
.quick-menu {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    opacity: 1;
}

/* 스크롤 방향에 따른 애니메이션 */
.quick-menu.scrolling-down {
    transform: translateY(-50%) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quick-menu.scrolling-up {
    transform: translateY(-50%) translateY(-20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    width: 90px;
    height: 90px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
}

.quick-item:last-child {
    border-bottom: none;
}

.quick-item:hover {
    background-color: #2c5aa0;
    transform: scale(1.05);
}

.quick-icon {
    width: 30px;
    height: 30px;
    margin-bottom: 8px;
    color: #666;
    transition: all 0.3s ease;
}

.quick-item:hover .quick-icon {
    color: white;
    transform: scale(1.2);
}

.quick-item span {
    font-size: 13px;
    font-weight: 500;
    color: #666;
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
    white-space: nowrap; /* 줄바꿈 방지 */
}

.quick-item:hover span {
    color: white;
    font-weight: 600;
}

/* TOP 버튼 특별 스타일 */
.quick-top {
    background-color: #2c5aa0;
}

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

.quick-top:hover {
    background-color: #1e4080;
}

/* Section Common */
.section-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 60px;
    color: #1a1a1a;
    position: relative;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: #2c5aa0;
}

/* Main Clinics Section Title Override */
.main-clinics .section-title {
    font-size: 40px;
    margin-bottom: 0;
    padding-bottom: 0;
}

.main-clinics .section-title::after {
    display: none;
}

/* Main Clinics - Circle Design */
.main-clinics {
    padding: 100px 0;
    background-color: #ffffff;
}

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

.section-subtitle {
    font-size: 14px;
    color: #00b4d8;
    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: #00b4d8;
    font-weight: 500;
}

.clinic-circles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* 데스크탑에서 네비게이션 버튼 숨김 */
.slide-nav-button {
    display: none;
}

.clinic-circle-item {
    text-align: center;
    position: relative;
}

.circle-image {
    width: 240px;
    height: 240px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 25px;
    position: relative;
    background: #f5f5f5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.clinic-circle-item:hover .circle-image {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.clinic-circle-item:hover .circle-image img {
    transform: scale(1.05);
}

.clinic-circle-item h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.clinic-circle-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.circle-arrow {
    display: inline-flex;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #f8f9fa;
    align-items: center;
    justify-content: center;
    color: #999;
    transition: all 0.3s ease;
}

.circle-arrow:hover {
    background: #00b4d8;
    color: white;
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 1200px) {
    .clinic-circles {
        grid-template-columns: repeat(2, 1fr);
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .clinic-circles {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .circle-image {
        width: 220px;
        height: 220px;
    }
    
    .section-title {
        font-size: 28px;
    }
}

/* Reservation Section */
.reservation-section {
    padding: 100px 0;
    background-color: #f8f9fa;
}

.reservation-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1200px;
    margin: 0 auto;
}

.reservation-info {
    text-align: center;
}

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

.phone-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.phone-icon {
    width: 80px;
    height: 80px;
    background: #e8f4f8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5aa0;
}

.phone-info {
    text-align: left;
}

.phone-label {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.phone-number {
    font-size: 36px;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 10px;
}

.phone-hours {
    font-size: 14px;
    color: #777;
}

.btn-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #2c5aa0;
    font-size: 16px;
    padding: 16px 40px;
    border: 2px solid #2c5aa0;
    border-radius: 35px;
    transition: all 0.3s ease;
    margin-top: 20px;
    width: 100%;
    justify-content: center;
    font-weight: 600;
    background-color: white;
    position: relative;
    z-index: 1;
}

.btn-location span {
    position: relative;
    z-index: 2;
}

.btn-location:hover {
    background-color: #2c5aa0;
    color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    border-color: #2c5aa0;
}

.btn-location:hover span {
    color: #000000;
}

.btn-location svg {
    transition: transform 0.3s ease;
    fill: currentColor;
    position: relative;
    z-index: 2;
}

.btn-location:hover svg {
    transform: scale(1.2);
    animation: locationPulse 1s ease infinite;
    fill: #000000;
}

.reservation-notice {
    margin-top: 25px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    text-align: left;
}

.reservation-notice p {
    color: #666;
    font-size: 14px;
    margin: 5px 0;
    line-height: 1.6;
}

/* Hours Info */
.hours-info .section-title {
    margin-bottom: 50px;
}

.hours-table {
    background-color: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #f0f0f0;
    align-items: center;
    flex-wrap: wrap;
}

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

/* 점심시간 연한 빨간색 */
.hours-row.lunch-time .time {
    color: #ff6b6b;
    font-weight: 600;
}

.hours-row .day {
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

.hours-row .time {
    font-size: 18px;
    color: #2c5aa0;
    font-weight: 600;
}

/* 토요일 안내 문구 */
.hours-note-small {
    font-size: 14px;
    color: #666;
    width: 100%;
    margin-top: 5px;
    font-style: italic;
}

.hours-notice {
    text-align: center;
}

.hours-notice p {
    color: #666;
    margin: 10px 0;
    font-size: 15px;
}

/* Responsive */
@media (max-width: 1024px) {
    .reservation-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .phone-box {
        flex-direction: column;
        gap: 20px;
        padding: 30px;
    }
    
    .phone-info {
        text-align: center;
    }
    
    .phone-number {
        font-size: 28px;
    }
    
    .reservation-buttons {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

/* CTA Banner Section */
.cta-banner {
    padding: 80px 0;
    background: linear-gradient(135deg, #e8f4f8 0%, #f8fbfd 100%);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-subtitle {
    font-size: 18px;
    color: #555;
    margin-bottom: 20px;
    font-weight: 400;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.cta-subtitle.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-title {
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
    line-height: 1.2;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.2s;
}

.cta-title.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-description {
    font-size: 18px;
    color: #666;
    line-height: 1.8;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.4s;
}

.cta-description.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 40px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 35px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease 0.6s;
}

.cta-button.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 전화예약 버튼 */
.cta-phone {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 5px 20px rgba(44, 90, 160, 0.3);
    }
    50% {
        box-shadow: 0 8px 30px rgba(44, 90, 160, 0.5);
    }
}

.cta-phone:hover {
    background: linear-gradient(135deg, #1e4080 0%, #153060 100%);
    transform: translateY(-3px);
    animation: none;
    box-shadow: 0 10px 35px rgba(44, 90, 160, 0.4);
}

/* 네이버 예약 버튼 */
.cta-naver {
    background: linear-gradient(135deg, #03C75A 0%, #02a048 100%);
    color: white;
    box-shadow: 0 5px 20px rgba(3, 199, 90, 0.3);
}

.cta-naver:hover {
    background: linear-gradient(135deg, #02a048 0%, #018a3a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(3, 199, 90, 0.4);
}

/* 버튼 호버 효과 */
.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button svg {
    transition: transform 0.3s ease;
}

.cta-button:hover svg {
    transform: scale(1.2);
}

/* 아이콘 애니메이션 */
.cta-phone svg {
    animation: ring 1s ease-in-out infinite;
}

@keyframes ring {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

.cta-phone:hover svg {
    animation: none;
    transform: scale(1.2) rotate(15deg);
}

/* Location Section - Redesigned */
.location-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.location-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    align-items: stretch;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

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

.location-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.detail-item {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #e8f4f8;
    transform: translateX(5px);
}

.detail-item svg {
    flex-shrink: 0;
    margin-top: 3px;
}

.detail-item div {
    flex: 1;
}

.detail-item strong {
    display: block;
    font-size: 16px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.detail-item p {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 15px 0 15px;
}

.footer-content {
    display: block;
    margin-bottom: 20px;
}

.footer-logo-section {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 15px;
}

.footer-logo-section img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    margin: 0;
}

.footer-info {
    text-align: left;
}

.footer-info h4 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
}

.footer-info p {
    font-size: 14px;
    line-height: 1.6;
    color: #bdc3c7;
    margin-bottom: 3px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid #34495e;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.footer-links a {
    color: #bdc3c7;
    font-size: 14px;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    color: #95a5a6;
    font-size: 14px;
    margin: 0;
}

.copyright p {
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-wrapper {
        padding: 0 20px;
    }
    
    .nav-list {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 15px;
    }
    
    .dropdown-menu {
        min-width: 200px;
    }
    
    /* Footer 반응형 */
    .footer-content {
        margin-bottom: 20px;
    }
    
    .footer-logo-section img {
        height: 45px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* 모바일에서 전체 하단 패딩 제거 */
    body {
        overflow-x: hidden;
        padding-bottom: 0;
    }
    
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: white;
        transition: left 0.3s ease;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch; /* iOS 스크롤 개선 */
        z-index: 9999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
        min-height: 100%;
        padding-bottom: 100px; /* 하단 여백 추가 */
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-link {
        padding: 16px 0;
        font-size: 15px;
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .nav-link::after {
        display: none;
    }
    
    /* 모바일에서 메가 드롭다운 숨김 */
    .mega-dropdown {
        display: none;
    }
    
    .dropdown-link {
        padding: 15px 20px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-mobile-toggle {
        display: flex;
    }
    
    .nav-cta {
        margin: 20px 15px;
        padding: 12px 20px !important;
        font-size: 14px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
        width: calc(100% - 30px);
        box-sizing: border-box;
    }
    
    .phone-number {
        font-size: 14px;
    }
    
    .hero {
        height: 80vh;
        min-height: 500px;
    }
    
    /* 모바일에서 퀴메뉴 숨김 */
    .quick-menu {
        display: none;
    }
    
    .quick-menu {
        right: 20px;
        gap: 8px;
    }
    
    .quick-item {
        width: 70px;
        padding: 12px;
    }
    
    .quick-icon {
        font-size: 20px;
    }
    
    .quick-item span:last-child {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .main-nav {
        top: 80px;
        padding: 0 10px;
    }
    
    .nav-container {
        padding: 3px;
    }
    
    .main-nav > ul > li > a {
        padding: 8px 10px;
        font-size: 11px;
    }
    
    .dropdown-full {
        display: none;
    }
    
    .hero {
        height: 100vh;
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-button {
        padding: 15px 35px;
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .quick-menu {
        right: 10px;
    }
    
    .quick-item {
        width: 60px;
        padding: 10px;
    }
    
    .quick-icon {
        font-size: 18px;
    }
    
    .quick-item span:last-child {
        font-size: 10px;
    }
    
    .clinic-circles {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .location-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-container {
        height: 400px;
    }
    
    .cta-banner {
        padding: 60px 20px;
    }
    
    .cta-title {
        font-size: 32px;
    }
    
    .cta-subtitle,
    .cta-description {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
    
    .cta-button {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .footer-content {
        margin-bottom: 20px;
    }
    
    .footer-info {
        text-align: center;
    }
    
    .footer-logo-section {
        justify-content: center;
        margin-bottom: 10px;
    }
    
    .footer-logo-section img {
        height: 45px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
    
    .footer-links {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }
    
    .copyright {
        text-align: center;
    }
}

/* 모바일에서 퀴메뉴 숨김 */
@media (max-width: 768px) {
    .quick-menu {
        display: none !important;
    }
}

/* 전문분야 섹션 애니메이션 */
.clinic-circle-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.clinic-circle-item.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 각 아이템에 딜레이 추가 */
.clinic-circle-item:nth-child(1) { transition-delay: 0.1s; }
.clinic-circle-item:nth-child(2) { transition-delay: 0.2s; }
.clinic-circle-item:nth-child(3) { transition-delay: 0.3s; }
.clinic-circle-item:nth-child(4) { transition-delay: 0.4s; }
.clinic-circle-item:nth-child(5) { transition-delay: 0.5s; }
.clinic-circle-item:nth-child(6) { transition-delay: 0.6s; }
.clinic-circle-item:nth-child(7) { transition-delay: 0.7s; }
.clinic-circle-item:nth-child(8) { transition-delay: 0.8s; }

/* 예약 및 문의 섹션 애니메이션 */
.reservation-section {
    position: relative;
    overflow: hidden;
}

.reservation-info,
.hours-info {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 1s ease, transform 1s ease;
}

.hours-info {
    transform: translateX(50px);
}

.reservation-info.animate-in,
.hours-info.animate-in {
    opacity: 1;
    transform: translateX(0);
}

/* 전화박스 펄스 애니메이션 */
.phone-box {
    position: relative;
    animation: phoneBoxGlow 2s ease-in-out infinite;
}

@keyframes phoneBoxGlow {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }
    50% {
        box-shadow: 0 10px 40px rgba(44, 90, 160, 0.15);
    }
}

/* 전화 아이콘 애니메이션 */
.phone-icon {
    animation: phoneRing 1s ease-in-out infinite;
}

@keyframes phoneRing {
    0%, 100% { transform: rotate(0deg); }
    10%, 30% { transform: rotate(-10deg); }
    20%, 40% { transform: rotate(10deg); }
}

/* 버튼 호버 애니메이션 개선 */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

/* 오시는길 확인하기 버튼 개선 */
.btn-location {
    margin-top: 20px;
    background-color: #f8f9fa;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-location::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(44, 90, 160, 0.1), transparent);
    transition: left 0.6s;
}

.btn-location:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.2);
    background-color: #ffffff;
}

.btn-location:hover::before {
    left: 100%;
}

.btn-location svg {
    transition: transform 0.3s ease;
}

.btn-location:hover svg {
    transform: scale(1.2);
    animation: locationPulse 1s ease infinite;
}

@keyframes locationPulse {
    0%, 100% { transform: scale(1.2); }
    50% { transform: scale(1.4); }
}

/* 시간표 행 애니메이션 */
.hours-row {
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hours-row.animate-in {
    opacity: 1;
    transform: translateX(0);
}

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

/* 섹션 타이틀 애니메이션 */
.section-header {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-header.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* 반응형 디자인에서 애니메이션 조정 */
@media (max-width: 768px) {
    .reservation-info,
    .hours-info {
        transform: translateY(30px);
    }
    
    .reservation-info.animate-in,
    .hours-info.animate-in {
        transform: translateY(0);
    }
}



/* 오시는길 섹션 애니메이션 */
.detail-item {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.detail-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

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

/* 진료시간 안내 노트 */
.hours-note-small {
    font-size: 14px;
    color: #666;
    width: 100%;
    margin-top: 5px;
    font-style: italic;
    display: block;
}

/* 예방접종 클리닉 */
.vaccine-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.vaccine-section .section-desc {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    text-align: center;
    margin-top: 20px;
}

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

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

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

.vaccine-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #e8f4f8 0%, #d1e8f0 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.vaccine-icon i {
    font-size: 36px;
    color: #2c5aa0;
}

.vaccine-item:hover .vaccine-icon {
    background: linear-gradient(135deg, #2c5aa0 0%, #1e4080 100%);
}

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

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

.vaccine-item p {
    font-size: 14px;
    color: #666;
}

/* 수액클리닉 */
.iv-section {
    padding: 100px 0;
    background: white;
}

.iv-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-top: 60px;
}

.iv-text {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.iv-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #555;
}

.highlight-desc {
    font-weight: 600;
    color: #2c5aa0;
    font-size: 20px;
    padding: 20px;
    background: #e8f4f8;
    border-radius: 10px;
    text-align: center;
}

.iv-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.iv-feature {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}

.iv-feature:hover {
    background: #e8f4f8;
    transform: translateY(-5px);
}

.iv-feature i {
    font-size: 40px;
    color: #2c5aa0;
    margin-bottom: 20px;
}

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

.iv-feature p {
    font-size: 14px;
    color: #666;
}

/* 반응형 - 예방접종/수액 클리닉 */
@media (max-width: 1200px) {
    .vaccine-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .vaccine-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .vaccine-item {
        padding: 30px 15px;
    }
    
    .iv-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .iv-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .vaccine-grid {
        grid-template-columns: 1fr;
    }
}

/* 네이버 예약 숨기기 */
.cta-naver,
.quick-item[onclick*="openNaverBooking"] {
    display: none !important;
}

/* 슬라이드 인디케이터 - 데스크탑에서 숨김 */
.slide-hint {
    display: none;
}

@media (max-width: 768px) {
    .slide-hint {
        display: flex;
    }
    
    /* 모바일에서 애니메이션 제거 */
    * {
        -webkit-animation: none !important;
        -moz-animation: none !important;
        -o-animation: none !important;
        -ms-animation: none !important;
        animation: none !important;
    }
    
    /* 스크롤 애니메이션 제거 */
    .section-header,
    .clinic-circle-item,
    .phone-box,
    .hours-table,
    .cta-subtitle,
    .cta-title,
    .cta-description,
    .cta-button,
    .reservation-info,
    .hours-info,
    .hours-row {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
}