html, body {
    margin: 0;
    padding: 0;
    background: #f8fafc;
    color: #111827;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.site-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
}

.site-nav-link {
    font-size: 0.95rem;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
}

.site-nav-link:hover {
    color: #111827;
}

.term-wrap {
    max-width: 760px;
}

.term-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 28px 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e5e7eb;
}

.term-card-badge {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    background: #eff6ff;
    color: #2563eb;
}

.term-card-title {
    margin: 0 0 24px;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
}

.term-item {
    padding: 16px 0;
    border-top: 1px solid #eef2f7;
}

.term-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.term-label {
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #6b7280;
}

.term-value {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #111827;
    word-break: keep-all;
}

.term-value.strong {
    font-weight: 700;
}

.summary-box {
    margin-top: 8px;
    padding: 18px;
    border: 0;
    border-radius: 18px;
    background: #f8fbff;
}

.summary-text {
    font-weight: 800;
    color: #1d4ed8;
}

.seo-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 24px 22px;
}

.seo-title {
    margin: 0 0 12px;
    font-size: 1.2rem;
    font-weight: 800;
}

.seo-text {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.8;
    color: #374151;
}

.site-footer {
    background: #ffffff;
}

.footer-text {
    font-size: 0.92rem;
    color: #6b7280;
}

@media (max-width: 991px) {
    .site-header .container {
        overflow-x: auto;
    }

    .site-header nav {
        white-space: nowrap;
    }
}

@media (max-width: 767px) {
    .term-page {
        padding-top: 24px !important;
        padding-bottom: 40px !important;
    }

    .term-card {
        border-radius: 20px;
        padding: 22px 18px;
    }

    .term-card-title {
        font-size: 1.65rem;
    }

    .term-value {
        font-size: 1rem;
        line-height: 1.65;
    }

    .seo-section {
        border-radius: 18px;
        padding: 20px 18px;
    }
}

/* ============================= */
/* 공통 섹션 타이틀 */
/* ============================= */
.section-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================= */
/* 관련 용어 */
/* ============================= */
.related-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 18px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.related-link:hover {
    background: #e2e8f0;
    color: #111827;
}

/* ============================= */
/* FAQ */
/* ============================= */
.faq-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 18px;
}

.faq-item {
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.faq-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.faq-question {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.faq-answer {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ============================= */
/* SEO 텍스트 */
/* ============================= */
.seo-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px 18px;
}

.seo-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

.seo-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

/* ============================= */
/* 카테고리 색상 (추가) */
/* ============================= */
.category-it .term-card-badge {
    background: #eff6ff;
    color: #2563eb;
}

.category-startup .term-card-badge {
    background: #f0fdf4;
    color: #16a34a;
}

.category-marketing .term-card-badge {
    background: #faf5ff;
    color: #9333ea;
}

.category-finance .term-card-badge {
    background: #f0fdfa;
    color: #0f766e;
}

/* ============================= */
/* 모바일 미세 조정 */
/* ============================= */
@media (max-width: 767px) {

    .related-section,
    .faq-section,
    .seo-section {
        border-radius: 16px;
        padding: 18px 14px;
    }

    .section-title {
        font-size: 1.05rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer,
    .seo-text {
        font-size: 0.9rem;
    }
}

/* ============================= */
/* 공통 섹션 */
/* ============================= */
.section-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

/* ============================= */
/* SEO */
/* ============================= */
.seo-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 22px 18px;
}

.seo-title {
    margin: 0 0 10px;
    font-size: 1.15rem;
    font-weight: 800;
}

.seo-text {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.75;
    color: #374151;
}

/* ============================= */
/* FAQ */
/* ============================= */
.faq-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 16px 18px;
}

.faq-toggle-btn {
    width: 100%;
    border: 0;
    background: transparent;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    font-size: 1rem;
    font-weight: 800;
    color: #111827;
}

.faq-toggle-btn:focus {
    outline: none;
    box-shadow: none;
}

.faq-toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
    color: #6b7280;
}

.faq-list {
    margin-top: 4px;
}

.faq-item {
    padding: 14px 0;
    border-top: 1px solid #eef2f7;
}

.faq-item:first-child {
    border-top: 0;
    padding-top: 0;
}

.faq-question {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.faq-answer {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
}

/* ============================= */
/* 관련 용어 */
/* ============================= */
.related-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 20px 18px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.related-link {
    display: inline-block;
    padding: 7px 12px;
    border-radius: 999px;
    background: #f1f5f9;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.related-link:hover {
    background: #e2e8f0;
    color: #111827;
}

/* ============================= */
/* 카테고리 컬러 */
/* ============================= */
.category-it .term-card-badge {
    background: #eff6ff;
    color: #2563eb;
}

.category-startup .term-card-badge {
    background: #f0fdf4;
    color: #16a34a;
}

.category-marketing .term-card-badge {
    background: #faf5ff;
    color: #9333ea;
}

.category-finance .term-card-badge {
    background: #f0fdfa;
    color: #0f766e;
}

/* ============================= */
/* 모바일 */
/* ============================= */
@media (max-width: 767px) {
    .seo-section,
    .faq-section,
    .related-section {
        border-radius: 16px;
        padding: 18px 14px;
    }

    .section-title,
    .seo-title {
        font-size: 1.05rem;
    }

    .faq-question {
        font-size: 0.95rem;
    }

    .faq-answer,
    .seo-text {
        font-size: 0.9rem;
    }
}

.faq-toggle-icon.is-open {
    transform: translateY(-1px);
}

.collapse {
    transition: none !important;
}

.collapsing {
    transition: height 0.2s ease;
}

.collapse > .faq-list {
    margin-top: 0 !important;
}

.faq-section {
    padding: 16px 18px;
}

.term-card-title-sub {
    font-size: 0.82em;
    font-weight: 700;
    color: #6b7280;
}

.search-box {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 9999;

    display: flex;
    align-items: flex-start;
    justify-content: center;
	padding-top: 100px;
}

.search-overlay-content {
    position: relative;
    width: 90%;
    max-width: 500px;
}

.search-input {
    width: 100%;
    font-size: 1.2rem;
    padding: 14px 16px;
    border-radius: 8px;
}

.search-close {
    position: absolute;
    top: -40px;
    right: 0;
    font-size: 28px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
}

.search-input::placeholder {
    color: #aaa;
}

.search-input::-webkit-input-placeholder {
    color: #aaa;
}

.search-input:-ms-input-placeholder {
    color: #aaa;
}

.search-results {
    background: #fff;
    border-radius: 8px;
    margin-top: 8px;
    overflow: hidden;

    max-height: 400px;      /* 👈 높이 제한 */
    overflow-y: auto;       /* 👈 스크롤 */
}

.search-item {
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f5f5f5;
}

.search-item-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.search-item-sub {
    font-size: 0.8rem;
    color: #888;
}

.navbar-brand {
    color: #007bff !important;
    font-weight: 700;
}

.nav-search-btn {
    color: #007bff !important;
    border: 1px solid #007bff;
    border-radius: 20px;
    padding: 6px 14px;
    font-weight: 700;
}

.nav-search-btn:active {
    background: #007bff;
    color: #fff !important;
}