* { box-sizing: border-box; }
html, body {
    margin: 0; padding: 0;
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, #f6fafe 0%, #ffffff 60%);
    color: #2c3e50;
    line-height: 1.55;
}
.container { max-width: 980px; margin: 0 auto; padding: 0 20px; }

/* ============ Hero ============ */
.hero {
    background: linear-gradient(135deg, #2c5282 0%, #4299e1 100%);
    color: #fff;
    padding: 60px 20px 50px;
    text-align: center;
}
.hero-inner { max-width: 720px; margin: 0 auto; }
.hero-title {
    font-size: 38px;
    font-weight: 700;
    letter-spacing: 0.01em;
    margin: 0 0 10px;
}
.tagline {
    font-size: 17px;
    opacity: 0.9;
    margin: 0 0 28px;
}
.hero-search {
    display: flex;
    gap: 8px;
    background: #fff;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.18);
    max-width: 560px;
    margin: 0 auto;
}
.hero-search input[type=search] {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 16px;
    outline: none;
    color: #2c3e50;
}
.hero-search button {
    padding: 12px 28px;
    background: #2c5282;
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}
.hero-search button:hover { background: #1a365d; }
.hero-tip {
    font-size: 13px;
    opacity: 0.85;
    margin: 16px 0 0;
}

/* ============ Service cards ============ */
.services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: -30px 0 30px;
    position: relative;
    z-index: 5;
}
@media (max-width: 640px) {
    .services { grid-template-columns: 1fr; }
}
.service-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 28px;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: center;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.12);
}
.service-icon { font-size: 48px; margin-bottom: 12px; }
.service-title {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
}
.service-count {
    font-size: 30px;
    font-weight: 800;
    color: #2c5282;
    margin: 4px 0;
}
.service-pharmacy .service-count { color: #38a169; }
.service-desc {
    margin: 6px 0 14px;
    font-size: 14px;
    color: #6b7c8b;
}
.service-cta {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: #2c5282;
}
.service-pharmacy .service-cta { color: #38a169; }

/* ============ Quick links ============ */
.quick-links { margin: 40px 0; }
.quick-links h2 {
    font-size: 18px;
    margin: 0 0 14px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.quick-grid a {
    display: block;
    padding: 14px 18px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-size: 15px;
    transition: all 0.15s ease;
}
.quick-grid a:hover {
    border-color: #4299e1;
    background: #ebf5ff;
    color: #2c5282;
}

/* ============ Intro ============ */
.intro {
    margin: 50px 0;
    padding: 24px;
    background: #f8f9fb;
    border-radius: 10px;
}
.intro h2 { margin: 0 0 8px; font-size: 18px; }
.intro p { margin: 0; color: #4a5568; }

/* ============ Footer (병원/약국과 통일) ============ */
.footer {
    background: #f7fafc;
    color: #6b7c8b;
    padding: 40px 24px;
    margin-top: 60px;
    border-top: 1px solid #e2e8f0;
}
.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.footer-company { margin-bottom: 20px; }
.footer-company h3 {
    color: #2d3748;
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px;
}
.footer-info {
    line-height: 1.7;
    font-size: 13px;
    color: #6b7c8b;
    margin-bottom: 20px;
}
.footer-links {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-link {
    color: #6b7c8b;
    text-decoration: none;
    font-size: 13px;
    padding: 0 12px;
    border-right: 1px solid #e2e8f0;
    cursor: pointer;
    transition: color 0.2s;
}
.footer-link:last-child { border-right: none; }
.footer-link:hover { color: #2c5282; }
.footer-copyright {
    padding-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #a0aec0;
    border-top: 1px solid #edf2f7;
}
.footer-copyright a { color: #6b7c8b; text-decoration: none; }
.footer-copyright a:hover { color: #2c5282; }

/* ============ Search results ============ */
.search-header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 20px;
}
.search-header-inner {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
}
.brand-small {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    color: #2c5282;
}
.header-search {
    flex: 1;
    display: flex;
    gap: 8px;
    max-width: 500px;
}
.header-search input[type=search] {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 15px;
}
.header-search button {
    padding: 10px 16px;
    background: #2c5282;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.result-page h1 { font-size: 24px; margin: 30px 0 6px; }
.result-hint { color: #6b7c8b; margin-bottom: 24px; }
.result-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
@media (max-width: 720px) {
    .result-columns { grid-template-columns: 1fr; }
}
.result-col {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
}
.result-col h2 { font-size: 17px; margin: 0 0 14px; }
.result-col h2 .count {
    font-size: 13px;
    color: #6b7c8b;
    font-weight: normal;
    margin-left: 6px;
}
.result-list { list-style: none; padding: 0; margin: 0; }
.result-list li { padding: 10px 0; border-bottom: 1px solid #f0f4f8; }
.result-list li:last-child { border-bottom: none; }
.result-list a { text-decoration: none; color: inherit; display: block; }
.result-list a:hover { color: #2c5282; }
.result-name {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    font-size: 15px;
}
.result-meta {
    display: block;
    font-size: 13px;
    color: #6b7c8b;
    margin-top: 2px;
}
.more-link {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    color: #2c5282;
    font-weight: 600;
    text-decoration: none;
}
.empty {
    color: #a0aec0;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}
