/* boeun_hospitals.html 에서 추출한 페이지 전용 스타일
   원래 <style> 블록 5개를 문서 순서 그대로 이어붙였다.
   순서가 캐스케이드이므로 규칙 순서를 바꾸면 안 된다. */

/* ── 블록 1/5 ── */
* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        html {
            overflow-x: clip;
            max-width: 100vw;
        }

        body {
            font-family: 'Noto Sans KR', Arial, sans-serif;
            line-height: 1.8;
            color: #333;
            background: #f8f9fa;
            max-width: 100vw;
            overflow-x: clip;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            overflow-x: hidden;
        }

        /* 요약 페이지 버튼 */
        .summary-btn {
            position: fixed;
            top: 60px;
            right: 10px;
            background: #e74c3c;
            color: white;
            border: none;
            padding: 10px 15px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
            transition: all 0.3s ease;
        }

        .summary-btn:hover {
            background: #c0392b;
            transform: translateY(-2px);
        }

        /* 요약 페이지 모달 */
.summary-modal {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(0,0,0,0.8);
   /* display: none; */
   opacity: 0;
   visibility: hidden;
   transform: scale(0.8);
   transition: all 0.3s ease;
   z-index: 2000;
   overflow-y: auto;
}
.summary-modal.active {
   opacity: 1;
   visibility: visible;
   transform: scale(1);
}
.summary-content {
   background: white;
   margin: 20px;
   padding: 20px;
   border-radius: 15px;
   max-width: 600px;
   margin: 20px auto;
   position: relative;
   transition: transform 0.3s ease;
}
.summary-modal.active .summary-content {
   transform: translate(0, 0) scale(1);
}
.summary-close {
   position: absolute;
   top: 10px;
   right: 15px;
   background: none;
   border: none;
   font-size: 24px;
   cursor: pointer;
   color: #666;
}

        /* 고정 전화 버튼 */
        .fixed-phone-btn {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 60px;
            height: 60px;
            background: #e74c3c;
            border: none;
            border-radius: 50%;
            color: white;
            font-size: 24px;
            cursor: pointer;
            z-index: 1000;
            box-shadow: 0 4px 20px rgba(231, 76, 60, 0.4);
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .fixed-phone-btn:hover {
            background: #c0392b;
            transform: scale(1.1);
            box-shadow: 0 6px 25px rgba(231, 76, 60, 0.6);
        }

        /* Header - 높이 줄임 */
        header {
            background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            cursor: pointer;
        }

        .logo-icon {
            width: 40px;
            height: 40px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            color: #e74c3c;
        }

        .logo h1 {
            font-size: 1.5rem;
            font-weight: 700;
            margin: 0;
        }

        .phone-number {
            font-size: 1.5rem;
            font-weight: 900;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
        }

        /* Navigation - 높이 줄임 */
        .breadcrumb {
            background: white;
            padding: 8px 0;
            border-bottom: 1px solid #e9ecef;
        }

        .breadcrumb a {
            color: #6c757d;
            text-decoration: none;
            margin-right: 10px;
        }

        .breadcrumb a:hover {
            color: #e74c3c;
        }

        .breadcrumb span {
            color: #e74c3c;
            font-weight: 600;
        }

        /* Hero Section - 높이 줄임 */
        .page-hero {
            background: linear-gradient(135deg, #2c5530 0%, #27ae60 100%);
            color: white;
            padding: 20px 0;
            text-align: center;
        }

        .page-hero h1 {
            font-size: 2.2rem;
            font-weight: 800;
            margin-bottom: 10px;
        }

        .page-hero p {
            font-size: 1rem;
            max-width: 800px;
            margin: 0 auto 15px;
        }

        .hero-features {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
            margin-top: 15px;
        }

        .hero-feature {
            background: rgba(255,255,255,0.1);
            padding: 6px 12px;
            border-radius: 15px;
            backdrop-filter: blur(10px);
            font-size: 0.85rem;
        }

        /* Quick Info Section - 높이 줄임 */
        .quick-info {
            background: white;
            padding: 25px 0;
        }

        .section-title {
            text-align: center;
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .area-specialty {
            background: linear-gradient(135deg, #e8f5e8 0%, #d5f4d5 100%);
            border-left: 5px solid #27ae60;
            padding: 15px;
            margin: 15px 0;
            border-radius: 10px;
        }

        .area-specialty h3 {
            color: #27ae60;
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        .specialty-list {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 10px;
            margin-top: 10px;
        }

        .specialty-item {
            background: white;
            padding: 10px;
            border-radius: 8px;
            border-left: 3px solid #27ae60;
        }

        .info-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 15px;
            margin-top: 20px;
        }

        .info-card {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            box-shadow: 0 3px 15px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

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

        .info-icon {
            width: 50px;
            height: 50px;
            background: #27ae60;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.2rem;
            color: white;
        }

        .info-card h3 {
            font-size: 1.1rem;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .info-card p {
            color: #666;
            line-height: 1.6;
        }

        /* Services Section - 높이 줄임 */
        .services-section {
            background: #f8f9fa;
            padding: 30px 0;
        }

        .section-subtitle {
            text-align: center;
            font-size: 1rem;
            color: #666;
            margin-bottom: 25px;
        }

        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 20px;
            margin-top: 25px;
        }

        .service-card {
            background: white;
            padding: 20px;
            border-radius: 15px;
            text-align: center;
            transition: all 0.3s ease;
            border: 1px solid #e9ecef;
            cursor: pointer;
        }

        .service-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
            background: white;
        }

        .service-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #27ae60, #2ecc71);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 15px;
            font-size: 1.5rem;
            color: white;
        }

        .service-card h3 {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 10px;
            color: #2c3e50;
        }

        .service-card p {
            color: #666;
            line-height: 1.6;
            margin-bottom: 15px;
        }

        .service-features {
            display: flex;
            justify-content: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .feature-tag {
            background: #e8f5e8;
            color: #27ae60;
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 500;
        }

        /* FAQ Section - 높이 줄임 */
        .faq-section {
            background: white;
            padding: 30px 0;
        }

        .faq-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 15px;
            margin-top: 20px;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
        }

        .faq-item {
    background: #667eea; /* 히어로와 같은 보라색 */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

    .faq-question {
    background: #667eea; /* 히어로와 같은 보라색 */
    color: white;
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #5a6fd8; /* 호버 시 더 진한 보라색 */
}

        .faq-question::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 300;
    transition: transform 0.3s ease;
    color: white;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

    .faq-answer {
    padding: 0;
    max-height: 15px; /* 기존 25px에서 축소 */
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-answer.active {
        padding: 6px 8px; /* 더욱 축소 */
        max-height: 100px; /* 더욱 축소 */
    }

.faq-answer p {
        font-size: 0.9rem; /* 기존 0.85rem에서 더 축소 */
        line-height: 1.5; /* 기존 1.5에서 더 축소 */
    }

        /* Hospital Section - 높이 줄임 */
        .hospitals-section {
            background: #f8f9fa;
            padding: 30px 0;
        }

        .hospitals-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 20px;
            margin-top: 20px;
            justify-items: center;
        }

        .hospital-card {
            background: white;
            border-radius: 15px;
            padding: 15px;
            box-shadow: 0 5px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            width: 100%;
            max-width: 400px;
        }

        .hospital-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
        }

        .hospital-header {
            display: flex;
            align-items: center;
            margin-bottom: 15px;
        }

        .hospital-type {
            background: #27ae60;
            color: white;
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 600;
            margin-right: 10px;
        }

        .hospital-card h3 {
            font-size: 1.2rem;
            color: #2c3e50;
            margin: 8px 0;
            font-weight: 700;
        }

        .hospital-info {
            margin: 10px 0;
        }

        .info-item {
            display: flex;
            align-items: center;
            margin-bottom: 6px;
            color: #555;
            font-size: 0.9rem;
        }

        .info-icon-small {
            width: 20px;
            margin-right: 12px;
            color: #27ae60;
        }

        .hospital-actions {
            display: flex;
            gap: 8px;
            margin-top: 12px;
        }

        .btn {
            padding: 8px 16px;
            border-radius: 20px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            font-size: 0.8rem;
            flex: 1;
            text-align: center;
        }

        .btn-primary {
            background: #27ae60;
            color: white;
        }

        .btn-primary:hover {
            background: #229954;
            transform: translateY(-2px);
        }

        .btn-secondary {
            background: #ecf0f1;
            color: #2c3e50;
        }

        .btn-secondary:hover {
            background: #bdc3c7;
        }

        /* Emergency Banner - 높이 줄임 */
        .emergency-banner {
            background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
            color: white;
            padding: 15px;
            border-radius: 15px;
            margin: 20px 0;
            text-align: center;
        }

        .emergency-banner h4 {
            margin-bottom: 8px;
            font-size: 1.1rem;
        }

        /* Contact CTA - 높이 줄임 */
        .contact-cta {
            background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
            color: white;
            padding: 30px 0;
            text-align: center;
        }

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

        .cta-phone {
            font-size: 2rem;
            font-weight: 900;
            margin: 15px 0;
            color: #27ae60;
        }

        .cta-button {
            display: inline-block;
            background: #27ae60;
            color: white;
            padding: 15px 35px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            margin-top: 15px;
            transition: all 0.3s ease;
        }

        .cta-button:hover {
            background: #229954;
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
        }

        /* 네이버 블로그 고정 버튼 */
        .fixed-blog-btn {
            position: fixed;
            bottom: 20px;
            left: 20px;
            width: 60px;
            height: 60px;
            background: linear-gradient(135deg, #03C75A, #00B04F);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            font-size: 20px;
            box-shadow: 0 4px 12px rgba(3, 199, 90, 0.4);
            z-index: 1000;
            transition: all 0.3s ease;
        }

        .fixed-blog-btn:hover {
            transform: scale(1.1);
            box-shadow: 0 6px 20px rgba(3, 199, 90, 0.6);
            color: white;
        }

        /* Responsive */
        @media (max-width: 768px) {
            html, body {
                overflow-x: clip;
                max-width: 100vw;
            }
            
            .container {
                max-width: 100%;
                overflow-x: hidden;
                padding: 0 15px;
            }

            .summary-btn {
                top: 60px;
                right: 10px;
                padding: 8px 12px;
                font-size: 11px;
            }

            .summary-content {
                margin: 10px;
                padding: 15px;
            }

            .fixed-phone-btn {
                width: 55px;
                height: 55px;
                bottom: 15px;
                right: 15px;
                font-size: 20px;
            }

            .fixed-blog-btn {
                width: 50px;
                height: 50px;
                font-size: 18px;
            }

            .page-hero h1 {
                font-size: 1.8rem;
            }

            .hero-features {
                flex-direction: column;
                align-items: center;
            }

            .hospitals-grid {
                grid-template-columns: 1fr;
                padding: 0 10px;
                gap: 15px;
            }
/* 여기에 hospital-card 스타일을 추가하세요 */
    .hospital-card {
        max-width: none; /* max-width 제거 */
        width: 100%;
        margin: 0;
        padding: 12px;
        box-sizing: border-box; /* 이것도 추가 */
    }
}

            .hospital-card h3 {
                font-size: 1.1rem;
                margin: 6px 0;
            }

            .hospital-info {
                margin: 8px 0;
            }

            .info-item {
                margin-bottom: 4px;
                font-size: 0.85rem;
            }

            .hospital-actions {
                margin-top: 10px;
                gap: 6px;
                flex-direction: column;
            }

            .btn {
                padding: 6px 12px;
                font-size: 0.75rem;
            }

            .cta-phone {
                font-size: 1.8rem;
            }

            /* 모바일에서 섹션 간격 더 줄이기 */
            .quick-info,
            .services-section,
            .faq-section,
            .hospitals-section,
            .contact-cta {
                padding: 20px 0;
            }

            .page-hero {
                padding: 20px 0;
            }
        }

        @keyframes pulse {
            0% { transform: scale(1); }
            50% { transform: scale(1.05); }
            100% { transform: scale(1); }
        }

        @keyframes bounce {
            0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
            40% { transform: translateY(-10px); }
            60% { transform: translateY(-5px); }
        }

        /* 추가 모바일 최적화 */
        @media (max-width: 480px) {
            .summary-content {
                margin: 5px;
                padding: 10px;
            }
            
            .summary-content h2 {
                font-size: 1.5rem;
            }
            
            .page-hero h1 {
                font-size: 1.8rem;
            }
            
            .section-title {
                font-size: 1.6rem;
            }
            
            .logo h1 {
                font-size: 1.3rem;
            }
            
            .phone-number {
                font-size: 1.3rem;
            }

            .cta-phone {
                font-size: 1.8rem;
            }
        }

/* ── 블록 2/5 ── */
.page-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 32px 0;
    text-align: center;
}

.page-hero .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.page-hero p {
    font-size: 1.2rem;
    margin: 0 0 30px 0;
    line-height: 1.5;
    opacity: 0.95;
}

.hero-features {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.hero-feature {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
}

/* 모바일 컴팩트 스타일 */
@media (max-width: 768px) {
    .page-hero {
        padding: 15px 0;
    }
    
    .page-hero .container {
        padding: 0 15px;
    }
    
    .page-hero h1 {
        font-size: 1.3rem;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }
    
    .page-hero p {
        font-size: 0.85rem;
        margin: 0 0 12px 0;
        line-height: 1.3;
    }
    
    .hero-features {
        gap: 6px;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .hero-feature {
        padding: 4px 6px;
        font-size: 0.65rem;
        border-radius: 10px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}
    /* 충주 기준 컴팩트 모바일 스타일 */
@media (max-width: 768px) {
    html, body {
        overflow-x: clip;
        max-width: 100vw;
    }
    
    .container {
        max-width: 100%;
        overflow-x: hidden;
        padding: 0 15px;
    }

    .page-hero {
        padding: 15px 0;
    }
    
    .page-hero .container {
        padding: 0 15px;
    }
    
    .page-hero h1 {
        font-size: 1.3rem;
        margin: 0 0 8px 0;
        line-height: 1.2;
    }
    
    .page-hero p {
        font-size: 0.9rem;
        margin: 0 0 12px 0;
        line-height: 1.3;
    }
    
    .hero-features {
        gap: 6px;
        max-width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
    }
    
    .hero-feature {
        padding: 4px 6px;
        font-size: 0.65rem;
        border-radius: 10px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .service-card {
        padding: 8px;
        min-height: auto;
    }
    
    .service-card h3 {
        font-size: 0.85rem;
        margin: 0 0 4px 0;
        line-height: 1.2;
    }
    
    .service-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-icon {
        font-size: 1.3rem;
        margin-bottom: 4px;
        width: 40px;
        height: 40px;
    }
    
    .service-features {
        gap: 2px;
        flex-wrap: wrap;
    }
    
    .feature-tag {
        font-size: 0.6rem;
        padding: 2px 4px;
        border-radius: 8px;
    }
}

/* 아주 작은 화면 (360px 이하) */
@media (max-width: 360px) {
    .main-accordion-header {
        padding: 6px 12px; /* 더욱 축소 */
    }
    
    .main-accordion-header .section-title {
        font-size: 0.9rem; /* 더욱 축소 */
        margin-bottom: 1px;
    }
    
    .main-accordion-header .section-subtitle {
        font-size: 0.9rem; /* 모바일에서 더 축소 */
    }
    
    .faq-question {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
    
    .service-card, .hospital-card {
        padding: 8px;
    }
}

/* 서브 아코디언 스타일 */
.sub-accordion-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sub-accordion-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.sub-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #667eea; /* 테두리 색상 수정 */
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.sub-accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #5a6fd8; /* 호버 시 테두리 색상 */
}

.sub-accordion-header.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 활성화 시 보라색 */
    color: white;
}

.sub-accordion-icon {
    font-size: 1.1rem; /* 기존 1.3rem에서 축소 */
    margin-right: 10px; /* 기존 12px에서 축소 */
}

.sub-accordion-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 0.95rem; /* 기존 1.1rem에서 축소 */
    font-weight: 600;
    color: #2c3e50;
}

.sub-accordion-header.active h3 {
    color: white;
}

.sub-toggle-btn {
    font-size: 1.1rem; /* 기존 1.3rem에서 축소 */
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #667eea;
}

.sub-accordion-header.active .sub-toggle-btn {
    transform: rotate(45deg);
    color: white;
}

.sub-accordion-content {
    max-height: 0; /* 기존 30px이나 다른 값에서 0으로! */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
    padding: 0 20px;
}

.sub-accordion-content.active {
    max-height: 1000px; /* 기존 1500px에서 축소 */
    padding: 15px; /* 기존 20px에서 축소 */
}

/* 이중 아코디언 스타일 통일 */
.main-accordion {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* 메인 아코디언 헤더 색상 변경 */
.main-accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); /* 보라계열로 변경 */
    color: white; /* 글자색을 흰색으로 변경 */
    padding: 15px 20px; /* 기존 30px 40px에서 절반으로 축소 */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.main-accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%); /* 호버시도 보라계열 */
    transform: translateY(-2px);
}
    .header-content-accordion {
    flex-grow: 1;
}

/* 서브 아코디언 색상도 변경 */
.sub-accordion-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid ##E6E6FA; /* 테두리 색상 변경 */
    padding: 8px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.sub-accordion-header:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: #c0b0c0; /* 호버 시 테두리 색상 변경 */
}

.sub-accordion-header.active {
    background: linear-gradient(135deg, #e6e6fa 0%, #d8bfd8 100%); /* 활성화 시 배경색 변경 */
    color: #333; /* 글자색을 어둡게 변경 */
}

.sub-toggle-btn {
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    color: #667eea;
}

.sub-accordion-header.active .sub-toggle-btn {
    transform: rotate(45deg);
    color: white;
}

.sub-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
    padding: 0 20px;
    border-top: 2px solid #667eea;
}

.sub-accordion-content.active {
    max-height: 1500px;
    padding: 20px;
}

/* 모든 아코디언을 기본적으로 조금씩 열어놓기 */
.main-accordion-content {
    max-height: 50px; /* 기본적으로 조금 열려있음 */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
    padding: 0 30px;
}

.main-accordion-content.active {
    max-height: 2000px;
    padding: 30px;
}

/* 서브 아코디언도 기본적으로 조금씩 열어놓기 */
.sub-accordion-content {
    max-height: 30px; /* 기본적으로 조금 열려있음 */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
    padding: 0 20px;
    border-top: 2px solid #667eea;
}

.sub-accordion-content.active {
    max-height: 1500px;
    padding: 20px;
}

/* 모바일에서 컴팩트한 크기 */
@media (max-width: 768px) {
    .main-accordion-header {
        padding: 5px 8px !important; /* 값을 절반으로 줄임 */
    }
    
    .main-accordion-header .section-title {
        font-size: 1.2rem; /* 모바일에서 더 축소 */
        margin-bottom: 2px;
    }
    
    .main-accordion-header .section-subtitle {
        margin: 0;
        font-size: 0.9rem; /* 데스크톱 크기 */
        color: rgba(255,255,255,0.9);
    }
    
    .main-toggle-btn {
        margin: 5px 0 0 0;
        font-size: 1.2rem; /* 모바일에서 축소 */
    }
    
    .main-accordion-content {
        padding: 0 5px !important; /* 추가 */
    }
    
    .main-accordion-content.active {
        padding: 5px !important; /* 추가 */
    }
    .quick-info, .services-section, .faq-section, .hospitals-section {
        padding: 15px 0 !important;
    }
    /* 이 한 줄만 추가! */
    footer {
        padding: 8px 0 !important;
    }
}
    
    /* 서브 아코디언 모바일 스타일 */
    .sub-accordion-header {
        padding: 5px 8px; /* 더욱 축소 */
    }
    
    .sub-accordion-icon {
        font-size: 1rem; /* 기존 1.1rem에서 축소 */
        margin-right: 6px; /* 기존 8px에서 축소 */
    }
    
    .sub-accordion-header h3 {
        font-size: 0.75rem; /* 더욱 축소 */
    }
}
    
    .sub-toggle-btn {
        font-size: 1rem; /* 기존 1.1rem에서 축소 */
    }
    
    .sub-accordion-content {
        padding: 0 10px; /* 기존 12px에서 축소 */
        max-height: 10px; /* 기존 15px에서 더 축소 */
    }
    
    .sub-accordion-content.active {
        padding: 8px 10px; /* 기존 10px 12px에서 더 축소 */
    }
    
    .sub-accordion-content p {
        font-size: 0.95rem; /* 기존 0.8rem에서 더 축소 */
        line-height: 1.5; /* 기존 1.4에서 축소 */
        margin-bottom: 15px; /* 기존 10px에서 축소 */
    }
    
    .specialty-list {
        grid-template-columns: 1fr 1fr;
        gap: 4px; /* 기존 6px에서 축소 */
    }
    
    .specialty-item {
        padding: 6px; /* 기존 8px에서 축소 */
        font-size: 0.7rem; /* 기존 0.75rem에서 축소 */
    }
    
    .specialty-item strong {
        font-size: 0.75rem; /* 기존 0.8rem에서 축소 */
        margin-bottom: 1px; /* 기존 2px에서 축소 */
    }
}

/* ── 블록 3/5 ── */
.accordion-container {
    max-width: 1000px;
    margin: 0 auto;
}

.accordion-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
}

.accordion-header .accordion-icon {
    font-size: 1.5rem;
    margin-right: 15px;
}

.accordion-header h3 {
    margin: 0;
    flex-grow: 1;
    font-size: 1.2rem;
    font-weight: 600;
}

.accordion-header .toggle-btn {
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.accordion-header.active .toggle-btn {
    transform: rotate(45deg);
}

.accordion-content {
    opacity: 1;
    visibility: visible;
    max-height: 40px; /* 기본적으로 조금 열려있음 */
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    padding: 10px 25px; /* 기본 패딩 */
    border-top: 3px solid #667eea;
}
.accordion-content.active {
    opacity: 1;
    visibility: visible;
    max-height: 600px;
    padding: 25px;
}

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

.accordion-content p {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #333;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.detail-item {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.detail-item strong {
    color: #667eea;
    display: block;
    margin-bottom: 5px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .accordion-header {
        padding: 12px 15px;
    }
    
    .accordion-header h3 {
        font-size: 1rem;
    }
    
    .accordion-header .accordion-icon {
        font-size: 1.2rem;
        margin-right: 10px;
    }
    
    .accordion-content {
        padding: 15px;
    }
    
    .accordion-content p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .detail-list {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .detail-item {
        padding: 10px;
        font-size: 0.8rem;
    }
    
    .detail-item strong {
        font-size: 0.85rem;
        margin-bottom: 3px;
    }
}

/* ── 블록 4/5 ── */
.main-accordion {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-accordion-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.main-accordion-header:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-2px);
}

.header-content {
    flex-grow: 1;
}

.main-accordion-header .section-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.main-accordion-header .section-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.main-toggle-btn {
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.main-accordion-header.active .main-toggle-btn {
    transform: rotate(45deg);
}

.main-accordion-content {
    max-height: 0; /* 30px → 0으로! */
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    background: white;
    padding: 0 20px;
}

.main-accordion-content.active {
    max-height: 1500px; /* 기존 2000px에서 축소 */
    padding: 20px; /* 기존 30px에서 축소 */
}
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* 기존 350px에서 축소 */
    gap: 15px; /* 기존 25px에서 축소 */
    margin-bottom: 20px; /* 기존 30px에서 축소 */
}

.service-card {
    background: white;
    border-radius: 15px;
    padding: 15px; /* 기존 25px에서 축소 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

.service-card h3 {
    margin: 0 0 8px 0; /* 기존 15px에서 축소 */
    font-size: 1.1rem; /* 기존 1.3rem에서 축소 */
    color: #333;
    font-weight: 600;
}

.service-card p {
    color: #666;
    line-height: 1.4; /* 기존 1.6에서 축소 */
    margin-bottom: 12px; /* 기존 20px에서 축소 */
    font-size: 0.85rem; /* 폰트 크기 축소 */
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

@media (max-width: 768px) {
    .main-accordion-header {
        padding: 8px 12px; /* 기존 20px 25px에서 절반으로 축소 */
    }
}
    
    .main-accordion-header .section-title {
        font-size: 1.1rem; /* 모바일에서 더 축소 */
        margin-bottom: 2px;
    }

    .main-accordion-header .section-subtitle {  /* 이 부분을 새로 추가 */
        font-size: 0.8rem !important;
        margin: 0 !important;
    }
    
    .main-toggle-btn {
        margin: 3px 0 0 0;
        font-size: 1.1rem; /* 모바일에서 축소 */
    }
    
    .main-accordion-content {
        padding: 20px;
    }
    
    .services-grid {
        gap: 8px;
        grid-template-columns: 1fr 1fr;
    }
    
    .service-card {
        padding: 10px; /* 모바일에서 더 축소 */
    }
    
    .service-card h3 {
        font-size: 0.9rem;
        margin: 0 0 4px 0;
    }
    
    .service-card p {
        font-size: 0.7rem;
        line-height: 1.2;
        margin-bottom: 6px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .service-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }
    
    .service-features {
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* ── 블록 5/5 ── */
.main-accordion {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.main-accordion-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    position: relative;
}

.main-accordion-header:hover {
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
    transform: translateY(-2px);
}

.header-content {
    flex-grow: 1;
}

.main-accordion-header .section-title {
    margin: 0 0 10px 0;
    font-size: 2rem;
    font-weight: 700;
    color: white;
}

.main-accordion-header .section-subtitle {
    margin: 0;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
}

.main-toggle-btn {
    font-size: 2rem;
    font-weight: bold;
    transition: transform 0.3s ease;
    margin-left: 20px;
}

.main-accordion-header.active .main-toggle-btn {
    transform: rotate(45deg);
}

.main-accordion-content {
   /* display: none; */
   opacity: 0;
   visibility: hidden;
   max-height: 0;
   overflow: hidden;
   transition: all 0.4s ease;
   background: #f8f9fa;
   padding: 30px;
}
.main-accordion-content.active {
   opacity: 1;
   visibility: visible;
   max-height: 800px;
}

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

.hospitals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 기존 320px에서 축소 */
    gap: 15px; /* 기존 25px에서 축소 */
    margin-bottom: 20px; /* 기존 30px에서 축소 */
}

.hospital-card {
    background: white;
    border-radius: 15px;
    padding: 15px; /* 기존 25px에서 축소 */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid #e9ecef;
    position: relative;
    overflow: hidden;
}

.hospital-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.hospital-card:hover::before {
    left: 100%;
}

.hospital-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

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

.hospital-type {
    background: #27ae60;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.hospital-general {
    border-color: #f39c12;
}

.hospital-type-general {
    background: #f39c12;
}

.hospital-mental {
    border-color: #9b59b6;
}

.hospital-type-mental {
    background: #9b59b6;
}

.hospital-recommended {
    border-color: #e74c3c;
}

.hospital-type-recommended {
    background: #e74c3c;
}

.hospital-card h3 {
    margin: 0 0 12px 0; /* 기존 20px에서 축소 */
    font-size: 1.2rem; /* 기존 1.4rem에서 축소 */
    color: #2c3e50;
    font-weight: 600;
}

.hospital-info {
    margin-bottom: 12px; /* 기존 20px에서 축소 */
}

.info-item {
    display: flex;
    align-items: center;
    margin-bottom: 6px; /* 기존 10px에서 축소 */
    color: #555;
    font-size: 0.8rem; /* 폰트 크기 축소 */
}

.info-icon-small {
    margin-right: 8px;
    font-size: 1rem;
}

.hospital-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background: #7f8c8d;
    transform: translateY(-2px);
}

.emergency-banner {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
}

.emergency-banner h4 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    font-weight: 600;
}

.emergency-banner p {
    margin: 0;
    line-height: 1.6;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .main-accordion-header {
        padding: 20px 25px;
        flex-direction: column;
        text-align: center;
    }
    
    .main-accordion-header .section-title {
        font-size: 1.5rem;
    }
    
    .main-toggle-btn {
        margin: 15px 0 0 0;
    }
    
    .main-accordion-content {
        padding: 15px;
    }
    
    .hospitals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .hospital-card {
        padding: 10px; /* 모바일에서 더 축소 */
    }
    
    .hospital-card h3 {
        font-size: 0.9rem;
        margin: 0 0 8px 0;
    }
    
    .hospital-type {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
    
    .info-item {
        margin-bottom: 4px;
        font-size: 0.75rem;
    }
    
    .info-icon-small {
        font-size: 0.85rem;
        margin-right: 6px;
    }
    
    .hospital-info {
        margin-bottom: 8px;
    }
    
    .hospital-actions {
        flex-direction: column;
        gap: 4px;
    }
    
    .btn {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
    
    .emergency-banner {
        padding: 15px;
        margin-top: 15px;
    }
    
    .emergency-banner h4 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .emergency-banner p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
}