* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
}

/* 모바일에서 스크롤 최적화 */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: manipulation;
        overscroll-behavior: contain;
    }
    
    body {
        scroll-behavior: smooth;
    }
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    cursor: none; /* 기본 커서 숨김 */
    position: relative;
    /* 한국어 텍스트 최적화 */
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* 모든 요소가 컨테이너를 벗어나지 않도록 */
.container, .container-fluid {
    max-width: 100%;
    overflow-x: hidden;
}

/* 이미지가 컨테이너를 벗어나지 않도록 */
img {
    max-width: 100%;
    height: auto;
}

/* 모든 섹션이 뷰포트를 벗어나지 않도록 */
section {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* 모바일에서 컨테이너와 섹션 스크롤 최적화 */
@media (max-width: 767.98px) {
    .container, .container-fluid {
        overflow-x: visible;
    }
    
    section {
        overflow-x: visible;
    }
}

/* 특정 div 요소들이 뷰포트를 벗어나지 않도록 */
.hero-slider, .hero-slide, .hero-content {
    max-width: 100%;
    box-sizing: border-box;
}

/* 커스텀 마우스 커서 - 데스크탑 전용 */
@media (hover: hover) and (pointer: fine) {
    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: #f59e0c;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        transform: translate(-50%, -50%);
    }

    .custom-cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 2px solid #facd93;
        border-radius: 50%;
        pointer-events: none;
        z-index: 9998;
        background: transparent;
        transform: translate(-50%, -50%);
        transition: border-color 0.3s ease;
    }

    .custom-cursor-outline.hover {
        border-color: #3c82f6;
    }
}

/* 모바일에서는 기본 커서 표시 */
@media (hover: none) {
    body {
        cursor: auto !important;
    }
}

/* Header Styles */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
}

.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-brand {
    transition: transform 0.3s ease;
}

/* navbar-brand hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .navbar-brand:hover {
        transform: scale(1.05);
    }
}

.navbar-brand img {
    height: 45px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.navbar-nav .nav-link {
    position: relative;
    color: #333 !important;
    font-weight: 500;
    margin: 0 1rem;
    padding: 0.5rem 0 !important;
    transition: all 0.3s ease;
    text-decoration: none;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #007bff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 2px;
}

/* 네비게이션 hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .navbar-nav .nav-link:hover::after,
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }

    .navbar-nav .nav-link:hover {
        color: #007bff !important;
        transform: translateY(-2px);
    }
}

/* 모바일에서는 active 상태만 표시 */
@media (hover: none) {
    .navbar-nav .nav-link.active::after {
        width: 100%;
    }
}

/* Mobile Menu Toggle */
/* =============================================================================
   모바일 메뉴 시스템 (전체 화면 오버레이)
   ============================================================================= */

/* 모바일 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
    border: none;
    background: transparent;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1001;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.mobile-menu-toggle:focus {
    box-shadow: none;
    outline: none;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* 데스크탑 메뉴 */
.desktop-nav {
    display: block;
}

/* 전체 화면 오버레이 메뉴 */
.mobile-overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    display: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.mobile-overlay-menu.active {
    display: block !important;
    visibility: visible;
    opacity: 1;
    pointer-events: all;
}

.mobile-overlay-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.mobile-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-overlay-menu.active .mobile-overlay-content {
    transform: translate(-50%, -50%) scale(1);
}

.mobile-menu-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: #666;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.mobile-menu-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
    transform: rotate(90deg);
}

.mobile-menu-header {
    text-align: center;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.mobile-menu-logo {
    height: 60px;
    margin-bottom: 1rem;
}

.mobile-menu-title {
    display: none;
}

.mobile-menu-nav {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.mobile-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.mobile-menu-item {
    margin: 0.5rem 0;
    animation: fadeInUp 0.6s ease both;
}

.mobile-menu-item:nth-child(1) { animation-delay: 0.3s; }
.mobile-menu-item:nth-child(2) { animation-delay: 0.4s; }
.mobile-menu-item:nth-child(3) { animation-delay: 0.5s; }
.mobile-menu-item:nth-child(4) { animation-delay: 0.6s; }
.mobile-menu-item:nth-child(5) { animation-delay: 0.7s; }
.mobile-menu-item:nth-child(6) { animation-delay: 0.8s; }

.mobile-menu-link {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    font-family: 'Noto Sans KR', sans-serif;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.mobile-menu-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.mobile-menu-link:hover::before {
    left: 100%;
}

.mobile-menu-link:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(10px);
    color: #007bff;
}

.mobile-menu-link.active {
    background: rgba(0, 123, 255, 0.15);
    color: #007bff;
    font-weight: 600;
}

.mobile-menu-link i {
    margin-right: 1rem;
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
}

/* 진료예약 버튼 - 다른 메뉴와 동일한 스타일 */
.mobile-menu-item.highlight .mobile-menu-link {
    background: transparent;
    color: #333;
    font-weight: 500;
    box-shadow: none;
}

.mobile-menu-item.highlight .mobile-menu-link:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(10px);
    color: #007bff;
    box-shadow: none;
}

.mobile-menu-footer {
    margin-top: 2rem;
    text-align: center;
    animation: fadeInUp 0.6s ease 0.9s both;
}

.mobile-contact-info {
    color: #666;
    font-size: 0.9rem;
}

.mobile-contact-phone,
.mobile-contact-address {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-contact-phone i,
.mobile-contact-address i {
    margin-right: 0.5rem;
}

.mobile-contact-phone a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.mobile-contact-phone a:hover {
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   반응형 모바일 메뉴 스타일
   ============================================================================= */

/* 기본 상태 설정 */
.mobile-menu-toggle {
    display: none;
}

.desktop-nav {
    display: block;
}

.mobile-overlay-menu {
    display: none;
}

/* 데스크탑 - 햄버거 메뉴 숨기기, 일반 메뉴 보이기 */
@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .desktop-nav {
        display: block !important;
    }
    
    .mobile-overlay-menu {
        display: none !important;
    }
}

/* 모바일 - 햄버거 메뉴 보이기, 일반 메뉴 숨기기 */
@media (max-width: 991.98px) {
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .desktop-nav {
        display: none !important;
    }
    
    .mobile-overlay-menu {
        display: block;
    }
    
    /* 모바일 메뉴 최적화 */
    .mobile-overlay-content {
        width: 95%;
        max-width: 350px;
        padding: 1.5rem;
    }
    
    .mobile-menu-header {
        margin-bottom: 1.5rem;
    }
    
    .mobile-menu-logo {
        height: 45px;
    }
    
    .mobile-menu-title {
        font-size: 1.3rem;
    }
    
    .mobile-menu-link {
        font-size: 1rem;
        padding: 0.8rem 1.2rem;
    }
}

/* 작은 모바일 화면 최적화 */
@media (max-width: 480px) {
    .mobile-overlay-content {
        width: 95%;
        max-width: 320px;
        padding: 1rem;
    }
    
    .mobile-menu-header {
        margin-bottom: 1rem;
    }
    
    .mobile-menu-logo {
        height: 35px;
    }
    
    .mobile-menu-title {
        font-size: 1.2rem;
    }
    
    .mobile-menu-link {
        font-size: 0.95rem;
        padding: 0.7rem 1rem;
    }
    
    .mobile-contact-info {
        font-size: 0.85rem;
    }
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 모바일에서 히어로 섹션 스크롤 최적화 */
@media (max-width: 767.98px) {
    .hero-section {
        height: 100dvh; /* 동적 뷰포트 높이 사용 */
        overflow: visible;
        min-height: 500px; /* 최소 높이 보장 */
    }
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 2s ease;
}

@media (min-width: 769px) {
    .hero-slide {
        background-attachment: fixed;
    }
}

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

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    max-width: 800px;
    width: 100%;
    padding: 2rem;
    box-sizing: border-box;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.btn-hero {
    background: #007bff;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    display: inline-block;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.btn-hero-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

/* 버튼 hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .btn-hero:hover {
        background: #0056b3;
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
        color: white;
    }

    .btn-hero-outline:hover {
        background: white;
        color: #333;
        transform: translateY(-2px);
    }
}

/* 모바일에서는 active 상태로 터치 반응 */
@media (hover: none) {
    .btn-hero:active {
        background: #0056b3;
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    }

    .btn-hero-outline:active {
        background: rgba(255, 255, 255, 0.1);
        color: white;
    }
}

.hero-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-container {
    margin-bottom: 2rem;
}

.footer-section {
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #007bff;
}

.footer-brand p {
    color: #ccc;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* social-link hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .social-link:hover {
        background: #0056b3;
        transform: translateY(-3px);
        color: white;
    }
}

.footer-contact h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: white;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

/* contact-item hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .contact-item:hover {
        transform: translateX(5px);
    }
}

.contact-item i {
    font-size: 1.2rem;
    color: #007bff;
    margin-right: 1rem;
    margin-top: 0.2rem;
}

.contact-item span {
    color: #ccc;
    line-height: 1.5;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #ccc;
    margin: 0;
}

.footer-bottom-links {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* footer-bottom-links a hover 효과 - 데스크탑 전용 */
@media (hover: hover) {
    .footer-bottom-links a:hover {
        color: #007bff;
    }
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 한국어 텍스트 줄바꿈 최적화 */
h1, h2, h3, h4, h5, h6 {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

p, .text-content, .description {
    word-break: keep-all;
    overflow-wrap: break-word;
    line-break: strict;
}

/* 모바일에서 텍스트 정렬 최적화 */
@media (max-width: 767.98px) {
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 1rem;
        padding: 0;
    }
    
    p, .text-content, .description {
        line-height: 1.6;
        margin-bottom: 1rem;
        padding: 0;
        font-size: inherit;
    }
    
    .text-center h1, .text-center h2, .text-center h3,
    .text-center h4, .text-center h5, .text-center h6 {
        text-align: center;
        padding: 0;
    }
    
    .text-center p, .text-center .text-content, .text-center .description {
        text-align: center;
        padding: 0;
    }
    
         /* 모바일에서 텍스트 크기 조정 */
     .hero-title {
         line-height: 1.2;
         margin-bottom: 1.5rem;
     }
     
     .hero-subtitle {
         line-height: 1.5;
         margin-bottom: 2rem;
     }
    
         /* 긴 텍스트가 있는 요소들의 여백 최적화 */
     .doctor-message-modern p,
     .feature-description-modern,
     .appointment-subtitle,
     .phone-description {
         padding: 0;
         margin-bottom: 1.25rem;
     }
}

 /* 더 작은 화면에서의 추가 최적화 */
 @media (max-width: 576px) {
     body {
         line-height: 1.6;
     }
    
    h1, h2, h3, h4, h5, h6 {
        line-height: 1.3;
        margin-bottom: 0.8rem;
    }
    
         p, .text-content, .description {
         line-height: 1.6;
         margin-bottom: 1rem;
         font-size: inherit;
     }
    
         /* 텍스트 밀도 조정 */
     .doctor-message-modern p {
         font-size: 1.125rem;
         line-height: 1.8;
         margin-bottom: 1.25rem;
     }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animate {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.6s ease;
}

.fade-in-left.animate {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.6s ease;
}

.fade-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}

/* About Section */
.about-section {
    padding: 120px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

/* PC에서 간단한 배경 처리 및 스크롤바 숨김 */
@media (min-width: 768px) {
    html, body {
        background: #ffffff;
    }
    
    /* 스크롤바 숨기기 (모든 브라우저) */
    ::-webkit-scrollbar {
        display: none;
    }
    
    html {
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
}

.about-section .container {
        position: relative;
    z-index: 2;
    }
    
.section-header {
    margin-bottom: 0;
    text-align: center;
    position: relative;
    padding-bottom: 2rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1.5rem;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-title::after {
    content: '';
        display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    margin: 1.5rem auto;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.section-subtitle {
    font-size: 1.4rem;
    color: #555;
        font-weight: 400;
    margin: 0;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Doctor Card */
.doctor-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e3f2fd;
    position: relative;
    overflow: hidden;
}

.doctor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #0056b3);
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border: 4px solid #ffffff;
}

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

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    border: 3px solid #ffffff;
}

.doctor-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.doctor-title {
    color: #007bff;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    background: rgba(0, 123, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    display: inline-block;
}

/* Doctor Message */
.doctor-message {
    padding: 3rem 0;
    background: linear-gradient(145deg, #f8fbff 0%, #ffffff 100%);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #e3f2fd;
}

.message-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.message-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #0056b3);
    border-radius: 2px;
}

.message-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.highlight-box {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    padding: 2rem;
    border-radius: 20px;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.highlight-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    transform: rotate(45deg);
}

.highlight-text {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.2rem;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Feature Cards */
.feature-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 420px;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

    .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: #007bff;
}

.feature-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

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

.feature-card:hover .feature-image img {
    transform: scale(1.08);
}

.feature-content {
    padding: 2rem 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 220px;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 123, 255, 0.4);
}

.feature-icon i {
    font-size: 1.5rem;
    color: white;
}

.feature-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.feature-description {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 1rem;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 전체 컨테이너 패딩 조정 */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* 히어로 섹션 모바일 최적화 */
    .hero-section {
        width: 100vw;
        max-width: 100%;
    overflow: hidden;
        height: 100vh;
        min-height: 500px;
    }
    
    .hero-slider {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .hero-slide {
        width: 100%;
        max-width: 100%;
        background-attachment: scroll !important;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
    }
    
    .hero-content {
        padding: 1rem;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        line-height: 1.4;
    }
    
    .btn-hero {
        padding: 1rem 2rem;
        font-size: 1.2rem;
        margin: 0.5rem;
        width: 80%;
        max-width: 250px;
    }
    
    .hero-buttons {
    display: flex;
        flex-direction: column;
    align-items: center;
        gap: 1.2rem;
    }
    
    .hero-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .hero-indicator {
        width: 10px;
        height: 10px;
    }
    
    /* About Section - Mobile */
    .about-section {
        padding: 60px 0;
    }
    
    .section-header {
        margin-bottom: 50px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .doctor-card {
        padding: 2rem 1.5rem;
        margin-bottom: 3rem;
        border-radius: 20px;
    }
    
    .doctor-image {
        width: 140px;
        height: 140px;
        margin-bottom: 1.5rem;
    }
    
    .doctor-badge {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    .doctor-name {
        font-size: 1.5rem;
    }
    
    .doctor-title {
    font-size: 1rem;
}

    .doctor-message {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .message-title {
        font-size: 1.8rem;
    }
    
    .message-text {
        font-size: 1.1rem;
    }
    
    .highlight-box {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .highlight-text {
        font-size: 1.1rem;
    }
    
    .feature-card {
        height: 380px;
        margin-bottom: 2rem;
    }
    
    .feature-image {
        height: 180px;
    }
    
    .feature-content {
        padding: 1.5rem;
        height: 200px;
    }
    
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.3rem;
    }
    
    .feature-title {
        font-size: 1.2rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
    
    /* 네비게이션 수정 */
    .navbar-nav .nav-link {
        margin: 0 0.5rem;
        padding: 0.5rem 0;
    font-size: 0.9rem;
}

    .navbar-collapse {
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* 푸터 수정 */
    .footer-bottom-links {
    flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    /* 더 작은 화면 대응 */
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* 작은 모바일에서 진료과목 카드 최적화 */
    .services-grid-section .col-lg-4,
    .services-grid-section .col-md-6 {
        margin-bottom: 3rem;
        padding: 0 0.5rem;
    }
    
    .services-grid-section .interactive-service-card {
        height: 300px;
        margin-bottom: 1.5rem;
    }
    
    /* 작은 모바일에서 영어 제목 아래 여백 */
    .services-grid-section .card-subtitle {
        margin-bottom: 1.5rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    .services-grid-section .card-text-content {
        padding: 1.25rem !important;
        padding-bottom: 2rem !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between !important;
    }
    
    /* 작은 화면에서 진료과목 개수 버튼 적절한 여백 */
    .services-grid-section .item-count {
        margin-bottom: 0.5rem !important;
        margin-top: 0.75rem !important;
    }
    
    /* 카드 높이 조정으로 여백 확보 */
    .services-grid-section .interactive-service-card {
        height: 340px !important;
    }
    
    /* 히어로 섹션 소형 화면 최적화 */
    .hero-section {
        height: 100vh;
        min-height: 450px;
    }
    
    .hero-content {
        padding: 0.75rem;
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .btn-hero {
        padding: 0.9rem 1.5rem;
        font-size: 1.1rem;
        margin: 0.3rem;
        width: 85%;
        max-width: 220px;
        font-weight: 700;
    }
    
    .hero-buttons {
    flex-direction: column;
        gap: 1rem;
    }
    
    .hero-indicators {
        bottom: 0.8rem;
        gap: 0.4rem;
    }
    
    .hero-indicator {
        width: 8px;
        height: 8px;
    }
    
    /* About Section - Small Mobile */
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .doctor-card {
    padding: 1rem;
    }
    
    .doctor-image {
        width: 100px;
        height: 100px;
    }
    
    .doctor-badge {
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .doctor-name {
    font-size: 1.2rem;
}

    .doctor-title {
    font-size: 0.9rem;
    }
    
    .doctor-message {
        padding: 1rem 0;
    }
    
    .message-title {
        font-size: 1.3rem;
    }
    
    .message-text {
        font-size: 0.9rem;
    }
    
    .highlight-box {
        padding: 0.8rem;
    }
    
    .highlight-text {
        font-size: 0.9rem;
    }
    
    .feature-image {
    height: 150px;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .feature-icon {
        width: 45px;
        height: 45px;
    }
    
    .feature-icon i {
        font-size: 1rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.85rem;
    }
    
    /* 푸터 수정 */
    .footer-bottom-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .footer-bottom-links a {
        font-size: 0.9rem;
    }
}

@media (max-width: 375px) {
    /* 매우 작은 화면 대응 */
    .hero-section {
        height: 100vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0.5rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 0.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 1.2rem;
    }
    
    .btn-hero {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
        margin: 0.25rem;
        width: 90%;
        max-width: 200px;
        font-weight: 700;
    }
    
    .hero-buttons {
        gap: 0.8rem;
    }
    
    .hero-indicators {
        bottom: 0.6rem;
        gap: 0.3rem;
    }
    
    .hero-indicator {
        width: 6px;
        height: 6px;
    }
    
    /* About Section - Extra Small Mobile */
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .doctor-card {
        padding: 0.8rem;
    }
    
    .doctor-image {
        width: 80px;
        height: 80px;
    }
    
    .doctor-badge {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
    }
    
    .doctor-name {
        font-size: 1.1rem;
    }
    
    .doctor-title {
        font-size: 0.8rem;
    }
    
    .doctor-message {
        padding: 0.8rem 0;
    }
    
    .message-title {
        font-size: 1.2rem;
    }
    
    .message-text {
        font-size: 0.85rem;
    }
    
    .highlight-box {
        padding: 0.6rem;
    }
    
    .highlight-text {
        font-size: 0.85rem;
    }
    
    .feature-image {
        height: 120px;
    }
    
    .feature-content {
        padding: 0.8rem;
    }
    
    .feature-icon {
        width: 40px;
        height: 40px;
    }
    
    .feature-icon i {
    font-size: 0.9rem;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.8rem;
    }
}

/* =============================================================================
   NEW MODERN ABOUT SECTION STYLES
   ============================================================================= */

/* About Section Container */
.about-section {
    padding: 6rem 0 8rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
    position: relative;
    overflow: hidden;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* 확실한 여백을 위한 컨테이너 설정 */
.about-section .container {
    max-width: 1400px !important;
    padding-left: 2rem !important;
    padding-right: 2rem !important;
}

@media (max-width: 767.98px) {
    .about-section .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Modern Section Header */
.new-section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.new-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.new-section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Modern Doctor Introduction Card */
.doctor-intro-modern {
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    margin: 0 auto !important;
    max-width: 100% !important;
    border: none;
    box-shadow: none;
}

.doctor-image-modern {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.doctor-image-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    z-index: 1;
}

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

.doctor-intro-modern:hover .doctor-image-modern img {
    transform: scale(1.02);
}

.doctor-content-modern {
    padding: 3rem 2rem !important;
    position: relative;
}

/* Bootstrap 보완 - 이미지와 텍스트 사이 간격 확실히 */
@media (min-width: 768px) {
    .doctor-intro-modern .col-md-5 {
        padding-right: 2rem !important;
    }
    
    .doctor-intro-modern .col-md-7 {
        padding-left: 2rem !important;
    }
}

.doctor-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.doctor-label::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, transparent);
}

.doctor-main-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.025em;
}

.doctor-message-modern {
    margin-bottom: 2.5rem;
}

.doctor-message-modern p {
    font-size: 1.125rem;
    color: #475569;
    line-height: 1.8;
    margin-bottom: 1.25rem;
    letter-spacing: 0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.doctor-message-modern p:last-child {
    margin-bottom: 0;
}

.doctor-highlight {
    color: #1e293b !important;
    font-weight: 600 !important;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    padding: 0.75rem 1.25rem 0.75rem 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #6366f1;
    display: block !important;
    margin: 1.5rem 0 !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.1);
}

/* 모바일에서 강조 텍스트 적절한 여백 조정 */
@media (max-width: 767.98px) {
    .doctor-highlight {
        padding-left: 1.75rem !important;
        padding-right: 1.25rem !important;
        margin-left: 0.25rem !important;
        margin-right: 0.25rem !important;
    }
}

/* 모바일 전용 줄바꿈 */
.mobile-br {
    display: none;
}

@media (max-width: 767.98px) {
    .mobile-br {
        display: inline;
    }
}

.doctor-signature {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #f1f5f9;
    position: relative;
}

.doctor-signature::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
}

.doctor-name-modern {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.doctor-position-modern {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
    font-weight: 500;
}

/* Features Header */
.features-header {
    margin-bottom: 0;
    padding: 2rem 0;
}

.features-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.features-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 42rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Features Container - 간소화 */
.about-section .row.g-4 {
    margin: 0 auto;
}

/* Modern Feature Cards */
.modern-feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 420px;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    border: none;
    box-shadow: none;
}

/* 카드 컨테이너 여백 조정으로 카드 너비 확장 */
.about-section .col-lg-3,
.about-section .col-md-6 {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-bottom: 0 !important;
}

/* 모바일에서 카드 여백 최적화 */
@media (max-width: 767.98px) {
    .about-section .col-lg-3,
    .about-section .col-md-6 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    /* 모바일에서 전체 너비 활용 */
    .about-section .col-11,
    .about-section .col-xl-10 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .modern-feature-card {
        margin-bottom: 0;
        padding: 1.5rem;
    }
}

.modern-feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.modern-feature-card:hover::before {
    transform: scaleX(1);
}

.modern-feature-card:hover {
    transform: translateY(-8px);
}

/* Feature Image Header */
.feature-image-header {
    position: relative;
    height: 240px;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
}

.feature-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.modern-feature-card:hover .feature-image-header img {
    transform: scale(1.08);
}

.feature-image-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.modern-feature-card:hover .feature-image-header::before {
        opacity: 1;
}

/* Feature Content Section */
.feature-content-section {
    padding: 2.5rem 1.5rem 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.feature-icon-modern {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4.5rem;
    height: 4.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.8);
    z-index: 2;
    opacity: 0;
}

.modern-feature-card:hover .feature-icon-modern {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.feature-icon-modern i {
    font-size: 2rem;
    color: #6366f1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.modern-feature-card:hover .feature-icon-modern i {
    color: #ffffff;
    transform: scale(1.1);
}

.feature-title-modern {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.feature-description-modern {
    color: #64748b;
    line-height: 1.7;
    margin: 0;
    font-size: 1rem;
    letter-spacing: 0.01em;
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Fade-in Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles for New Design */
@media (max-width: 1199.98px) {
    .about-section .container {
        max-width: 1140px;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .doctor-intro-modern {
        max-width: 1000px;
    }
}

@media (max-width: 991.98px) {
    .about-section {
        padding: 4rem 0 6rem;
    }
    
    .about-section .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .new-section-title {
        font-size: 2.5rem;
    }
    
    .doctor-main-title {
        font-size: 1.75rem;
    }
    
    .features-title {
        font-size: 2.25rem;
    }
    
    .doctor-content-modern {
        padding: 3rem 1.25rem;
    }
    
    .doctor-intro-modern {
        margin: 3rem auto 4rem;
    }
    
    .modern-feature-card {
        margin: 0 0.5rem;
        min-height: 380px;
    }
    
    .feature-image-header {
        height: 180px;
    }
    
    .feature-content-section {
        padding: 2rem 1.5rem 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .about-section {
        padding: 3rem 0 5rem;
    }
    
    .new-section-title {
        font-size: 2rem;
    }
    
    .doctor-main-title {
        font-size: 1.5rem;
    }
    
    .features-title {
        font-size: 1.875rem;
    }
    
    .doctor-content-modern {
        padding: 2.5rem 0.75rem;
    }
    
    .doctor-image-modern {
        height: 300px;
    }
    
    .doctor-intro-modern {
        margin: 2rem auto 3rem;
        border-radius: 0;
    }
    
    .modern-feature-card {
        margin: 0 auto;
        margin-bottom: 1.5rem;
        min-height: 340px;
        max-width: 90%;
    }
    
    .feature-image-header {
        height: 180px;
    }
    
    .feature-content-section {
        padding: 1.5rem 1.25rem 1.25rem;
    }
    
    .features-header {
        margin-bottom: 3rem;
        padding: 0 1rem;
    }
    
    .about-section .row.g-4, 
    .about-section .row.g-5 {
        padding: 0;
    }
}

@media (max-width: 575.98px) {
    .about-section {
        padding: 2.5rem 0 4rem;
    }
    
    .new-section-title {
        font-size: 1.75rem;
    }
    
    .doctor-main-title {
        font-size: 1.25rem;
    }
    
    .features-title {
        font-size: 1.5rem;
    }
    
    .doctor-content-modern {
        padding: 2rem 0.5rem;
    }
    
    .doctor-image-modern {
        height: 250px;
    }
    
    .feature-icon-modern {
        width: 3.5rem;
        height: 3.5rem;
    }
    
    .feature-icon-modern i {
        font-size: 1.75rem;
    }
    
    .modern-feature-card {
        min-height: 320px;
    }
    
    .feature-image-header {
        height: 140px;
    }
    
    .feature-content-section {
        padding: 1.25rem 1rem 1rem;
    }
    
         .features-header {
         padding: 0 0.5rem;
     }
}

/* =============================================================================
   PREMIUM TIMELINE SECTIONS - 프리미엄 레벨 디자인
   ============================================================================= */

/* 치료 과정 안내 섹션 - 프리미엄 배경 */
.timeline-horizontal-section {
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.8) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        linear-gradient(135deg, #f8fafc 0%, #ffffff 60%, #f0f9ff 100%);
}

.timeline-horizontal-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23000" opacity="0.01"/><circle cx="75" cy="75" r="1" fill="%23000" opacity="0.01"/><circle cx="50" cy="10" r="1" fill="%23000" opacity="0.01"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
}

.timeline-section-title {
    font-size: 3.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1e293b 0%, #475569 50%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}

.timeline-section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent);
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.timeline-section-subtitle {
    font-size: 1.375rem;
    color: #475569;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* =============================================================================
   A안: 프리미엄 수평 타임라인 (Premium Horizontal Timeline)
   ============================================================================= */

.horizontal-timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 6rem 2rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1rem;
}

.timeline-line {
    position: absolute;
    top: 140px;
    left: 8%;
    right: 8%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.2) 10%, 
        rgba(99, 102, 241, 0.8) 30%,
        rgba(139, 92, 246, 1) 50%,
        rgba(99, 102, 241, 0.8) 70%,
        rgba(99, 102, 241, 0.2) 90%,
        transparent 100%);
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.2));
}

.timeline-line::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(99, 102, 241, 0.1) 10%, 
        rgba(99, 102, 241, 0.3) 30%,
        rgba(139, 92, 246, 0.4) 50%,
        rgba(99, 102, 241, 0.3) 70%,
        rgba(99, 102, 241, 0.1) 90%,
        transparent 100%);
    filter: blur(3px);
    z-index: -1;
}

.timeline-step {
    position: relative;
    text-align: center;
    z-index: 2;
    flex: 1;
    max-width: 280px;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out forwards;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.2s; }
.timeline-step:nth-child(3) { animation-delay: 0.3s; }
.timeline-step:nth-child(4) { animation-delay: 0.4s; }
.timeline-step:nth-child(5) { animation-delay: 0.5s; }

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

.step-number {
    width: 80px;
    height: 80px;
    background: 
        linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
    border: 4px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    box-shadow: 
        0 0 0 4px rgba(99, 102, 241, 0.1),
        0 15px 35px rgba(99, 102, 241, 0.25),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.step-number::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.6s ease;
    opacity: 0;
}

.timeline-step:hover .step-number {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 0 0 8px rgba(99, 102, 241, 0.15),
        0 25px 50px rgba(99, 102, 241, 0.4),
        0 10px 25px rgba(0, 0, 0, 0.15);
}

.timeline-step:hover .step-number::before {
    opacity: 1;
    transform: rotate(45deg) translate(50%, 50%);
}

.step-content {
    background: 
        linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(20px);
    padding: 0;
    border-radius: 2rem;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 300px;
}

.step-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #a855f7);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.timeline-step:hover .step-content {
    transform: translateY(-15px);
    box-shadow: 
        0 40px 80px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(99, 102, 241, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.timeline-step:hover .step-content::before {
    opacity: 1;
}

/* Step Image Header */
.step-image-header {
    position: relative;
    height: 180px;
    overflow: hidden;
    border-radius: 2rem 2rem 0 0;
    flex-shrink: 0;
}

.step-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.timeline-step:hover .step-image-header img {
    transform: scale(1.08);
}

.step-image-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.1) 0%, 
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.5) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.timeline-step:hover .step-image-header::before {
    opacity: 1;
}

/* Step Text Content */
.step-text-content {
    padding: 2rem 1.5rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.step-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    background: 
        linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.9) 100%);
    backdrop-filter: blur(15px);
    border: 3px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
    z-index: 2;
    opacity: 0;
}

.timeline-step:hover .step-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.15) rotate(5deg);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 15px 40px rgba(99, 102, 241, 0.4);
}

.step-icon i {
    font-size: 2rem;
    color: #6366f1;
    transition: all 0.4s ease;
    position: relative;
    z-index: 2;
}

.timeline-step:hover .step-icon i {
    color: white;
    transform: scale(1.1);
}

.step-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.step-content p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
    margin: 0;
    letter-spacing: 0.01em;
    font-weight: 400;
}





/* =============================================================================
   프리미엄 타임라인 반응형 디자인
   ============================================================================= */

@media (max-width: 1199.98px) {
    .horizontal-timeline {
        max-width: 1200px;
        padding: 5rem 1.5rem 3rem;
        gap: 0.8rem;
    }
    
    .timeline-step {
        max-width: 250px;
    }
}

@media (max-width: 991.98px) {
    .timeline-horizontal-section {
        padding: 6rem 0 8rem;
    }
    
    .timeline-section-title {
        font-size: 2.75rem;
    }
    
    /* 수평 타임라인 반응형 */
    .horizontal-timeline {
        flex-direction: column;
        gap: 4rem;
        padding: 4rem 1rem 2rem;
        align-items: center;
    }
    
    .timeline-line {
        display: none;
    }
    
    .timeline-step {
        max-width: 350px;
        width: 100%;
    }
    
    .step-number {
        width: 70px;
        height: 70px;
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .step-content {
        min-height: 280px;
    }
    
    .step-image-header {
        height: 150px;
    }
    
    .step-text-content {
        padding: 1.5rem 1.25rem 1rem;
    }
}

@media (max-width: 767.98px) {
    .timeline-horizontal-section {
        padding: 4rem 0 6rem;
    }
    
    .timeline-section-title {
        font-size: 2.25rem;
    }
    
    .timeline-section-subtitle {
        font-size: 1.125rem;
        padding: 0 1rem;
    }
    
    /* 수평 타임라인 모바일 */
    .horizontal-timeline {
        gap: 3rem;
        padding: 3rem 0.5rem 1rem;
    }
    
    .timeline-step {
        max-width: 100%;
    }
    
    .step-number {
        width: 65px;
        height: 65px;
        font-size: 1.2rem;
    }
    
    .step-content {
        border-radius: 1.5rem;
        min-height: 260px;
    }
    
    .step-image-header {
        height: 130px;
        border-radius: 1.5rem 1.5rem 0 0;
    }
    
    .step-text-content {
        padding: 1.25rem 1rem 0.75rem;
    }
    
    .step-icon {
        width: 60px;
        height: 60px;
    }
    
    .step-icon i {
        font-size: 1.75rem;
    }
    
    .step-content h4 {
        font-size: 1.3rem;
    }
    
    .step-content p {
        font-size: 1rem;
    }
    

    

}

@media (max-width: 575.98px) {
    .timeline-section-title {
        font-size: 1.875rem;
    }
    
    .timeline-section-subtitle {
        font-size: 1rem;
    }
    
    /* 초소형 화면 최적화 */
    .horizontal-timeline {
        padding: 2rem 0;
        gap: 2.5rem;
    }
    
    .step-content {
        min-height: 240px;
    }
    
    .step-image-header {
        height: 110px;
    }
    
    .step-text-content {
        padding: 1rem 0.75rem 0.5rem;
    }
}

/* =============================================================================
   진료과목 섹션들 - 3가지 스타일 비교
   ============================================================================= */

/* 공통 섹션 스타일 */
.services-tab-section,
.services-grid-section,
.services-accordion-section {
    padding: 8rem 0;
    background: linear-gradient(135deg, #fafbfc 0%, #ffffff 50%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.services-tab-section::before,
.services-grid-section::before,
.services-accordion-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.services-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.services-section-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* =============================================================================
   1순위: 탭 인터페이스 스타일
   ============================================================================= */

.tab-navigation {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
        padding: 1rem;
    border-radius: 1.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.tab-btn {
    background: transparent;
    border: 2px solid rgba(99, 102, 241, 0.2);
    padding: 0.875rem 1.75rem;
    border-radius: 1rem;
        font-size: 1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab-btn:hover,
.tab-btn.active {
    border-color: #6366f1;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.3);
}

.tab-btn:hover::before,
.tab-btn.active::before {
    opacity: 1;
}

.tab-content-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem 2rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 400px;
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.service-tab-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem 1.5rem;
    border-radius: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.service-tab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-tab-card:hover::before {
    transform: scaleX(1);
}

.service-tab-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
}

.service-tab-card .en-name {
    display: block;
    font-size: 0.875rem;
    color: #6366f1;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* =============================================================================
   2순위: 인터랙티브 카드 그리드 스타일
   ============================================================================= */

.interactive-service-card {
    height: 350px;
    perspective: 1000px;
    cursor: pointer;
}

.interactive-service-card .card-front,
.interactive-service-card .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.interactive-service-card .card-front {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    z-index: 2;
    justify-content: flex-start;
    padding: 0;
}

.interactive-service-card .card-back {
    background: linear-gradient(145deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    transform: rotateY(180deg);
}

.interactive-service-card:hover .card-front {
    transform: rotateY(-180deg);
}

.interactive-service-card:hover .card-back {
    transform: rotateY(0deg);
}

/* Card Image Header */
.interactive-service-card .card-image-header {
    position: relative;
    height: 180px;
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem 1.5rem 0 0;
    flex-shrink: 0;
}

.interactive-service-card .card-image-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.interactive-service-card:hover .card-image-header img {
    transform: scale(1.08);
}

.interactive-service-card .card-image-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(
            135deg,
            rgba(99, 102, 241, 0.1) 0%,
            rgba(139, 92, 246, 0.15) 50%,
            rgba(168, 85, 247, 0.1) 100%
        );
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.interactive-service-card:hover .card-image-header::before {
    opacity: 0.6;
}

.interactive-service-card .card-icon {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    /* 기본 상태에서만 보임 */
    pointer-events: auto;
}

.interactive-service-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Card Text Content */
.interactive-service-card .card-text-content {
    padding: 1.5rem;
    text-align: center;
        display: flex;
        flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}

.interactive-service-card .card-icon i {
    font-size: 1.25rem;
    color: #6366f1;
}

.interactive-service-card .card-front h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.interactive-service-card .card-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.interactive-service-card .item-count {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.interactive-service-card .card-back h4 {
    font-size: 1.5rem;
    font-weight: 700;
        margin-bottom: 1.5rem;
    color: white;
}

/* 카드 호버/클릭 시 앞면 아이콘 완전 숨김 */
.interactive-service-card:hover .card-icon,
.interactive-service-card.active .card-icon,
.interactive-service-card.flipped .card-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    z-index: -1 !important;
    transform: scale(0) !important;
}

/* 뒷면이 보일 때 앞면 전체 숨김 */
.interactive-service-card:hover .card-front,
.interactive-service-card.active .card-front,
.interactive-service-card.flipped .card-front {
    pointer-events: none !important;
}

.interactive-service-card:hover .card-front .card-icon,
.interactive-service-card.active .card-front .card-icon,
.interactive-service-card.flipped .card-front .card-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/* 아이콘이 포함된 이미지 헤더도 호버 시 숨김 */
.interactive-service-card:hover .card-image-header .card-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateZ(-1000px) !important;
}

/* 더 강력한 아이콘 제거 */
.interactive-service-card:hover .fas,
.interactive-service-card:hover .fa-cut,
.interactive-service-card:hover .fa-female,
.interactive-service-card:hover .fa-dna,
.interactive-service-card:hover .fa-baby,
.interactive-service-card:hover .fa-stethoscope {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.interactive-service-card .service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 8px;
    /* 리스트 전체 너비 확보 */
    width: 100%;
    box-sizing: border-box;
}

.interactive-service-card .service-list::-webkit-scrollbar {
    width: 4px;
}

.interactive-service-card .service-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.interactive-service-card .service-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.interactive-service-card .service-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.interactive-service-card .service-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.5;
    /* 리스트 항목 기본 너비 통일 */
    display: block;
    width: 100%;
    min-height: 2.5rem;
    box-sizing: border-box;
}

.interactive-service-card .service-list li:last-child {
    border-bottom: none;
}

.interactive-service-card .service-list .service-item-clickable {
    cursor: pointer;
    position: relative;
    padding: 0.75rem 1rem 0.75rem 0.5rem;
    border-radius: 6px;
    margin: 2px 0;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* 리스트 항목 너비 강제 통일 */
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: left;
    background: transparent;
    min-height: 2.8rem;
    /* 텍스트가 짧아도 전체 영역 확보 */
    line-height: 1.4;
    vertical-align: middle;
}

.interactive-service-card .service-list .service-item-clickable:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateX(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    /* 호버 시에도 전체 너비 강제 유지 */
    width: 100% !important;
    display: block !important;
    /* 배경색이 전체 영역에 적용되도록 */
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.1);
}

/* =============================================================================
   3순위: 아코디언 스타일
   ============================================================================= */

.accordion-wrapper {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.accordion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.accordion-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent;
    position: relative;
}

.accordion-header:hover {
    background: rgba(99, 102, 241, 0.05);
}

.accordion-item.active .accordion-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.05));
    border-left: 4px solid #6366f1;
}

.accordion-header i:first-child {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.15));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    color: #6366f1;
    font-size: 1.25rem;
}

.accordion-header h3 {
    flex: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.accordion-header .count {
    color: #64748b;
    font-size: 1rem;
    margin-right: 1rem;
}

.accordion-header .toggle-icon {
    color: #6366f1;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 2rem 2rem 6rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 1rem 2rem 2rem 6rem;
}

.accordion-content .col-md-6 {
        padding: 0.75rem;
    background: rgba(99, 102, 241, 0.03);
    border-radius: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid rgba(99, 102, 241, 0.2);
    font-size: 0.95rem;
    color: #374151;
    transition: all 0.2s ease;
}

.accordion-content .col-md-6:hover {
    background: rgba(99, 102, 241, 0.08);
    border-left-color: #6366f1;
    transform: translateX(5px);
}

/* 반응형 디자인 */
@media (max-width: 991.98px) {
    .services-tab-section,
    .services-grid-section,
    .services-accordion-section {
        padding: 6rem 0;
    }
    
    .services-section-title {
        font-size: 2.25rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        align-items: center;
    }
    
    .tab-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .interactive-service-card {
        height: 320px;
    }
    
    .accordion-content {
        padding-left: 4rem;
    }
    
    .accordion-item.active .accordion-content {
        padding-left: 4rem;
    }
}

@media (max-width: 767.98px) {
    .services-tab-section,
    .services-grid-section,
    .services-accordion-section {
        padding: 4rem 0;
    }
    
    .services-section-title {
        font-size: 1.875rem;
    }
    
    .tab-content-wrapper {
        padding: 2rem 1rem;
    }
    
    .service-tab-card {
        padding: 1.5rem 1rem;
    }
    
    .interactive-service-card {
        height: 280px;
    }
    
    .interactive-service-card .card-front,
    .interactive-service-card .card-back {
        padding: 1.5rem;
    }
    
    /* 모바일에서 진료과목 카드들 사이 넉넉한 여백 추가 */
    .services-grid-section .col-lg-4,
    .services-grid-section .col-md-6 {
        margin-bottom: 3rem;
        padding: 0 0.75rem;
    }
    
    /* 카드 내부 여백도 적절히 조정 */
    .services-grid-section .interactive-service-card {
        margin-bottom: 1.5rem;
    }
    
    /* 카드 내 진료과목 개수 버튼 하단 여백 */
    .services-grid-section .item-count {
        margin-bottom: 1rem;
    }
    
    /* 영어 제목 아래 여백으로 하단 테두리와 분리 */
    .services-grid-section .card-subtitle {
        margin-bottom: 1.75rem !important;
        padding-bottom: 0.5rem !important;
    }
    
    /* 카드 텍스트 영역 적절한 패딩 */
    .services-grid-section .card-text-content {
        padding: 1.5rem !important;
        padding-bottom: 2.25rem !important;
        display: flex;
        flex-direction: column;
        justify-content: space-between !important;
        height: auto;
    }
    
    /* 진료과목 개수 버튼 적절한 여백 */
    .services-grid-section .item-count {
        margin-bottom: 0.75rem !important;
        margin-top: 1rem !important;
    }
    
    /* 일반 모바일에서 카드 높이 여유있게 조정 */
    .services-grid-section .interactive-service-card {
        height: 320px !important;
    }
    
    /* 마지막 행도 충분한 여백 유지 */
    .services-grid-section .row > .col-lg-4:nth-last-child(-n+2),
    .services-grid-section .row > .col-md-6:nth-last-child(-n+2) {
        margin-bottom: 2.5rem;
    }
    
    .accordion-header {
        padding: 1rem 1.5rem;
    }
    
    .accordion-content {
        padding-left: 1.5rem;
    }
    
    .accordion-item.active .accordion-content {
        padding-left: 1.5rem;
    }
    
    .accordion-header h3 {
        font-size: 1.25rem;
    }
    
    .accordion-header i:first-child {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

/* =============================================================================
   Service Modal 스타일
   ============================================================================= */

.service-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
        display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.service-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.modal-container {
    position: relative;
    background: #ffffff;
    border-radius: 1.25rem;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(0.8) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.modal-title h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.detail-section {
    margin-bottom: 2rem;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.detail-section h4 i {
    color: #6366f1;
    font-size: 1.125rem;
}

.detail-content {
    background: #f8fafc;
    border-radius: 1rem;
    padding: 1.5rem;
    border-left: 4px solid #6366f1;
}

.detail-content p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
    color: #475569;
}

.detail-content ul {
    margin: 0;
    padding-left: 1.5rem;
    color: #475569;
}

.detail-content ul li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.modal-footer {
    background: #f8fafc;
    padding: 1.5rem 2rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    border-top: 1px solid #e2e8f0;
}

.btn-consultation {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-consultation:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.btn-close-modal {
    background: #e2e8f0;
    color: #64748b;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-modal:hover {
    background: #cbd5e1;
    color: #475569;
}

/* 모바일 대응 */
@media (max-width: 768px) {
    .modal-container {
        width: 98vw;
        margin: 0.5rem;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-title h3 {
        font-size: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
        max-height: 50vh;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
        gap: 0.75rem;
    }
    
    .btn-consultation,
    .btn-close-modal {
        flex: 1;
        justify-content: center;
    }
}

/* =============================================================================
   MEGA MENU - 완전히 새로운 간단한 구현
   ============================================================================= */

/* 메가 메뉴 컨테이너 */
.mega-menu {
    position: relative;
}

/* 메가 메뉴 드롭다운 - 우선 항상 보이게 */
.mega-menu-dropdown {
    position: absolute;
    top: 100%;
    left: -200px;
    width: 600px;
    background: white;
    border: 3px solid red;
    padding: 20px;
    z-index: 99999;
    display: block;
    margin-top: 5px;
}

/* 메가 메뉴 컬럼 */
.mega-menu-column {
    padding: 0 10px;
}

.mega-menu-title {
    font-size: 14px;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 8px;
    padding-bottom: 5px;
    border-bottom: 1px solid #007bff;
    white-space: nowrap;
}

.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-list a {
    display: block;
    padding: 4px 8px;
    color: #666;
    text-decoration: none;
    font-size: 13px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mega-menu-list a:hover {
    color: #007bff;
    background: #f8f9fa;
    text-decoration: none;
}

/* =============================================================================
   진료 예약 섹션 스타일 (3가지 옵션)
   ============================================================================= */

/* Option 1: CTA 중심형 */
.appointment-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #e3f2fd 100%);
    position: relative;
}

.appointment-cta-card {
    background: white;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e3f2fd;
}

.appointment-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.appointment-title i {
    color: #007bff;
    margin-right: 1rem;
}

.appointment-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    margin-bottom: 3rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.phone-section {
    margin: 3rem 0;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    padding: 1.5rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}

.phone-link i {
    margin-right: 1rem;
    font-size: 2rem;
}

.phone-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 123, 255, 0.4);
    color: white;
    text-decoration: none;
}

.phone-description {
    margin-top: 1rem;
    color: #64748b;
    font-size: 1.1rem;
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.5;
}

.appointment-info {
    margin-top: 4rem;
}

.info-card {
    text-align: center;
    padding: 2rem 1rem;
    background: #f8fafc;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    background: white;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.info-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

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

.info-card li {
    padding: 0.5rem 0;
    color: #64748b;
    font-size: 1rem;
}

.info-card .holiday {
    color: #dc2626;
    font-weight: 500;
}



/* 반응형 디자인 */
@media (max-width: 991.98px) {
    .appointment-cta-card {
        padding: 2rem;
    }
    
    .appointment-title {
        font-size: 2rem;
    }
    
    .phone-link {
        font-size: 2rem;
        padding: 1.2rem 2rem;
    }
}

@media (max-width: 767.98px) {
    .appointment-cta-section {
        padding: 4rem 0;
    }
    
    .appointment-cta-card {
        padding: 1.5rem;
    }
    
    .appointment-title {
        font-size: 1.8rem;
    }
    
    .phone-link {
        font-size: 1.5rem;
        padding: 1rem 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem 1rem;
    }
}

/* =============================================================================
   지도 섹션 - 패럴렉스 효과
   ============================================================================= */

.map-parallax-section {
    position: relative;
    min-height: 80vh;
    padding: 3rem 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-background {
    position: absolute;
    top: -50%;
    left: 0;
    width: 100%;
    height: 150%;
    background: 
        linear-gradient(135deg, 
            rgba(15, 23, 42, 0.8) 0%, 
            rgba(30, 41, 59, 0.7) 30%, 
            rgba(51, 65, 85, 0.6) 70%, 
            rgba(15, 23, 42, 0.8) 100%),
        url('https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?ixlib=rb-4.0.3&auto=format&fit=crop&w=2088&q=80');
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    transform: translateZ(0);
    will-change: transform;
    z-index: 1;
}

.map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 123, 255, 0.05) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(30, 41, 59, 0.1) 100%
    );
    z-index: 2;
}

.map-content-fullwidth {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-header {
    padding: 3rem 2rem 2rem 2rem;
    margin-bottom: 0;
    background: transparent;
}

.map-section-title {
    font-size: 2.75rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 3px rgba(0, 0, 0, 0.5);
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.3;
}

.map-section-subtitle {
    font-size: 1.125rem;
    color: #ffffff;
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.6;
}

.map-container-fullwidth {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem;
}

.google-map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15), 
                0 10px 30px rgba(0, 0, 0, 0.1);
}

/* 지하철 안내 텍스트 */
.subway-info {
    background: transparent;
    padding: 0;
    margin-top: -2rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.subway-text {
    margin: 0;
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
    font-family: 'Noto Sans KR', sans-serif;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.4);
    word-break: keep-all;
    overflow-wrap: break-word;
    line-height: 1.5;
}



/* 진짜 패럴렉스 효과를 위한 배경 설정 */
.parallax-background {
    transition: none; /* 부드러운 패럴렉스를 위해 transition 제거 */
    will-change: transform; /* 성능 최적화 */
}

/* 지도 섹션 반응형 디자인 */
@media (max-width: 1199.98px) {
    .map-header {
        padding: 2.5rem 1.5rem 1.5rem 1.5rem;
    }
    
    .map-container-fullwidth {
        padding: 1.5rem 2rem 2.5rem 2rem;
    }
    
    .google-map {
        min-height: 450px;
    }
    
    .subway-info {
        margin-top: -2rem;
    }
    
    .subway-text {
        font-size: 1rem;
    }
}

@media (max-width: 991.98px) {
    .map-parallax-section {
        padding: 0;
        min-height: 90vh;
    }
    
    .parallax-background {
        background-attachment: scroll;
    }
    
    .map-header {
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .map-container-fullwidth {
        padding: 1.5rem 1.5rem 2rem 1.5rem;
    }
    
    .map-section-title {
        font-size: 2.25rem;
    }
    
    .google-map {
        min-height: 400px;
        border-radius: 15px;
    }
    
    .subway-info {
        margin-top: -2rem;
    }
    
    .subway-text {
        font-size: 1rem;
    }
}

@media (max-width: 767.98px) {
    .map-parallax-section {
        padding: 0;
        min-height: 100vh;
    }
    
    .map-header {
        padding: 1.5rem 1rem 1rem 1rem;
        margin-bottom: 0;
    }
    
    .map-container-fullwidth {
        padding: 1rem 1rem 1.5rem 1rem;
    }
    
    .map-section-title {
        font-size: 1.875rem;
    }
    
    .map-section-subtitle {
        font-size: 1rem;
    }
    
    .google-map {
        min-height: 350px;
        border-radius: 12px;
    }
    
    /* 모바일에서 지하철 텍스트가 지도 바로 아래 보이도록 */
    .subway-info {
        margin-top: 1.5rem !important;
        padding-top: 0.5rem !important;
    }
    
    .subway-text {
        font-size: 0.9rem;
    }
}

/* 스크롤 Top 버튼 스타일 */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #f59e0c;
    color: white;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #e08c00;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    transform: translateY(-3px);
}

.scroll-top-btn:active {
    transform: translateY(1px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.scroll-top-btn i {
    font-size: 20px;
}

@media (max-width: 768px) {
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
}

@media (max-width: 576px) {
    .scroll-top-btn {
        width: 40px;
        height: 40px;
        bottom: 15px;
        right: 15px;
    }
    
    .scroll-top-btn i {
        font-size: 18px;
    }
}