/*
 * 50플러스지식인 랜딩 페이지 전용 스타일
 * Tailwind CDN 제거 → 정적 CSS (런타임 컴파일 없음)
 * 색상은 전부 CSS 변수 → 커스터마이저에서 --lp-primary 등으로 덮어쓰기 가능
 */

:root {
    --lp-primary: #003874;
    --lp-primary-container: #1a4f95;
    --lp-on-primary: #ffffff;
    --lp-secondary: #505f76;
    --lp-background: #f9f9ff;
    --lp-surface: #f9f9ff;
    --lp-surface-low: #f0f3ff;
    --lp-surface-high: #dee8ff;
    --lp-on-surface: #111c2d;
    --lp-on-surface-variant: #424751;
    --lp-outline: #737782;
    --lp-outline-variant: #c3c6d2;
    --lp-white: #ffffff;
    --lp-footer-bg: #d1d1d1;

    --lp-container-max: 1200px;
    --lp-margin-mobile: 20px;
    --lp-margin-desktop: 40px;
    --lp-section-gap: 80px;
    --lp-gutter: 24px;
    --lp-nav-height: 72px;

    --lp-radius-sm: 0.25rem;
    --lp-radius-md: 0.5rem;
    --lp-radius-lg: 1rem;
}

/* ---------- 기본 ---------- */
.lp-page {
    background-color: var(--lp-background);
    color: var(--lp-on-surface);
    /* 시스템 한글 폰트 스택: 외부 폰트 요청 0 */
    font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
        "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Segoe UI", sans-serif;
    font-size: 18px;
    line-height: 1.6;
    margin: 0;
}
.lp-page *, .lp-page *::before, .lp-page *::after { box-sizing: border-box; }
.lp-page img { max-width: 100%; height: auto; display: block; }
.lp-page a { text-decoration: none; color: inherit; }
.lp-page ul { list-style: none; margin: 0; padding: 0; }
.lp-page h1, .lp-page h2, .lp-page h3, .lp-page h4, .lp-page p { margin: 0; }

.lp-container {
    max-width: var(--lp-container-max);
    margin: 0 auto;
    padding-left: var(--lp-margin-mobile);
    padding-right: var(--lp-margin-mobile);
}

/* 인라인 SVG 아이콘 공통 (아이콘 폰트 대체) */
.lp-ico {
    width: 1.25em; height: 1.25em;
    display: inline-block; vertical-align: middle;
    flex-shrink: 0;
}

/* ---------- 상단 네비게이션 ---------- */
.lp-nav {
    background: var(--lp-surface);
    border-bottom: 1px solid var(--lp-outline-variant);
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    transition: box-shadow .2s ease;
}
.lp-nav.is-scrolled { box-shadow: 0 4px 6px -1px rgba(0,0,0,.1); }
.lp-nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--lp-nav-height);
    max-width: var(--lp-container-max);
    margin: 0 auto;
    padding: 0 var(--lp-margin-mobile);
}
.lp-logo { font-size: 24px; font-weight: 700; color: var(--lp-primary); }
.lp-nav-menu { display: none; }
.lp-nav-menu ul { display: flex; align-items: center; gap: 24px; }
.lp-nav-menu a {
    font-size: 16px; font-weight: 500; letter-spacing: .02em;
    color: var(--lp-on-surface-variant);
    transition: color .2s ease;
}
.lp-nav-menu a:hover { color: var(--lp-primary); }
.lp-nav-mobile-toggle {
    background: none; border: none; cursor: pointer;
    color: var(--lp-primary); font-size: 30px; line-height: 1; padding: 4px;
}
/* 모바일 드롭다운 메뉴 */
.lp-nav-mobile {
    display: none;
    background: var(--lp-surface);
    border-top: 1px solid var(--lp-outline-variant);
    padding: 8px var(--lp-margin-mobile) 16px;
}
.lp-nav-mobile.is-open { display: block; }
.lp-nav-mobile ul { display: flex; flex-direction: column; gap: 4px; }
.lp-nav-mobile a {
    display: block; padding: 12px 8px;
    font-size: 17px; font-weight: 500;
    color: var(--lp-on-surface-variant);
    border-radius: var(--lp-radius-sm);
}
.lp-nav-mobile a:hover { color: var(--lp-primary); background: var(--lp-surface-low); }

/* 관리자 툴바 보정 */
body.admin-bar .lp-nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .lp-nav { top: 46px; } }

.lp-main { padding-top: var(--lp-nav-height); }

/* ---------- 공통 섹션 ---------- */
.lp-section { padding-top: var(--lp-section-gap); padding-bottom: var(--lp-section-gap); }
.lp-section--white { background: var(--lp-white); }
.lp-section--bg { background: var(--lp-background); }
.lp-section--low { background: var(--lp-surface-low); }
.lp-section--primary { background: var(--lp-primary); position: relative; overflow: hidden; }

.lp-h1 { font-size: 34px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; color: var(--lp-primary); }
.lp-h2 { font-size: 28px; line-height: 1.3; font-weight: 700; color: var(--lp-primary); }
.lp-h3 { font-size: 24px; line-height: 1.4; font-weight: 600; color: var(--lp-primary); }
.lp-lead { font-size: 18px; line-height: 1.6; color: var(--lp-on-surface-variant); }
.lp-muted { color: var(--lp-on-surface-variant); }

/* ---------- 히어로 ---------- */
.lp-hero { background: var(--lp-white); overflow: hidden; }
.lp-hero-inner {
    display: flex; flex-direction: column; align-items: center;
    gap: var(--lp-gutter);
    padding-top: var(--lp-section-gap); padding-bottom: var(--lp-section-gap);
}
.lp-hero-text { width: 100%; display: flex; flex-direction: column; gap: 24px; }
.lp-hero-text .lp-lead { max-width: 32rem; }
.lp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 16px 40px;
    background: var(--lp-primary); color: var(--lp-on-primary);
    border-radius: var(--lp-radius-md);
    font-size: 20px; font-weight: 600;
    transition: background .2s ease;
}
.lp-btn:hover { background: var(--lp-primary-container); }
.lp-btn .lp-ico { transition: transform .2s ease; }
.lp-btn:hover .lp-ico { transform: translateX(4px); }
.lp-hero-img-wrap {
    width: 100%;
    border: 1px solid var(--lp-outline-variant);
    background: var(--lp-white);
    border-radius: var(--lp-radius-lg);
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.lp-hero-img-wrap img {
    width: 100%; height: 300px; object-fit: cover;
    border-radius: var(--lp-radius-md);
}

/* ---------- 카테고리 카드 ---------- */
.lp-section-head { text-align: center; margin-bottom: 64px; }
.lp-section-head .lp-h2 { margin-bottom: 16px; }
.lp-underline { width: 64px; height: 4px; background: var(--lp-primary); margin: 0 auto; }
.lp-grid-3 { display: grid; grid-template-columns: 1fr; gap: var(--lp-gutter); }
.lp-card {
    background: var(--lp-white);
    border: 1px solid #E2E8F0;
    border-radius: var(--lp-radius-lg);
    padding: 32px;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    transition: transform .2s ease, box-shadow .2s ease;
}
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.08); }
.lp-card-icon {
    width: 64px; height: 64px;
    background: var(--lp-surface-high); color: var(--lp-primary);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; font-size: 36px;
}
.lp-card-icon .lp-ico { width: 36px; height: 36px; }
.lp-card .lp-h3 { margin-bottom: 12px; }

/* ---------- About(왜 우리인가) ---------- */
.lp-about { display: flex; flex-direction: column; gap: 48px; align-items: center; }
.lp-about-media { width: 100%; }
.lp-about-media-inner {
    position: relative; border-radius: var(--lp-radius-lg); overflow: hidden;
    aspect-ratio: 16/9; box-shadow: 0 10px 15px -3px rgba(0,0,0,.1);
}
.lp-about-media-inner img { width: 100%; height: 100%; object-fit: cover; }
.lp-about-body { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.lp-eyebrow { color: var(--lp-primary); font-size: 16px; font-weight: 500; letter-spacing: .15em; }
.lp-checklist { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
.lp-checklist li { display: flex; align-items: flex-start; gap: 12px; }
.lp-checklist .lp-ico { color: var(--lp-primary); margin-top: 4px; }

/* ---------- 최신 포스트 ---------- */
.lp-posts-head {
    display: flex; flex-direction: column; gap: 12px;
    margin-bottom: 48px;
}
.lp-posts-head .lp-muted { margin-top: 8px; }
.lp-view-all {
    color: var(--lp-primary); font-size: 16px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 4px;
}
.lp-view-all:hover { text-decoration: underline; }
.lp-grid-4 { display: grid; grid-template-columns: 1fr; gap: var(--lp-gutter); }
.lp-post-card {
    background: var(--lp-white);
    border: 1px solid var(--lp-outline-variant);
    border-radius: var(--lp-radius-md);
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex; flex-direction: column;
}
.lp-post-card:hover { transform: translateY(-4px); box-shadow: 0 10px 15px -3px rgba(0,0,0,.08); }
.lp-post-thumb { overflow: hidden; height: 192px; background: var(--lp-surface-high); }
.lp-post-thumb img {
    width: 100%; height: 192px; object-fit: cover;
    transition: transform .5s ease;
}
.lp-post-card:hover .lp-post-thumb img { transform: scale(1.05); }
.lp-post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.lp-post-cat { font-size: 14px; font-weight: 700; color: var(--lp-secondary); margin-bottom: 8px; }
.lp-post-title {
    font-size: 20px; font-weight: 600; line-height: 1.4; margin-bottom: 8px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    color: var(--lp-on-surface);
}
.lp-post-excerpt {
    font-size: 14px; color: var(--lp-on-surface-variant); margin-bottom: 16px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    flex: 1;
}
.lp-post-date { font-size: 14px; color: var(--lp-outline); }

/* ---------- 자유 콘텐츠(빌더/에디터 영역) ---------- */
.lp-content-area { /* the_content() 출력 구역 */ }
.lp-content-area:empty { display: none; }

/* ---------- 최종 CTA ---------- */
.lp-cta-decoration { position: absolute; inset: 0; opacity: .1; pointer-events: none; }
.lp-cta-inner { position: relative; z-index: 10; text-align: center; }
.lp-cta-inner h2 {
    font-size: 34px; font-weight: 700; letter-spacing: -.02em;
    color: var(--lp-on-primary); margin-bottom: 24px;
}
.lp-cta-inner p {
    font-size: 18px; line-height: 1.6;
    color: rgba(255,255,255,.8);
    max-width: 42rem; margin: 0 auto 40px;
}
.lp-cta-buttons { display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.lp-cta-btn-primary, .lp-cta-btn-outline {
    padding: 20px 48px; border-radius: var(--lp-radius-md);
    font-size: 20px; font-weight: 600; transition: all .2s ease;
    display: inline-block;
}
.lp-cta-btn-primary { background: var(--lp-white); color: var(--lp-primary); }
.lp-cta-btn-primary:hover { background: var(--lp-surface-high); }
.lp-cta-btn-outline { border: 2px solid var(--lp-white); color: var(--lp-white); }
.lp-cta-btn-outline:hover { background: rgba(255,255,255,.1); }

/* ---------- 푸터 ---------- */
.lp-footer {
    background: var(--lp-footer-bg); color: var(--lp-on-surface);
    padding: 40px var(--lp-margin-mobile);
}
.lp-footer-inner { max-width: var(--lp-container-max); margin: 0 auto; }
.lp-footer-logo { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; }
.lp-footer-logo-dot { width: 32px; height: 32px; background: #7393e0; border-radius: 50%; }
.lp-footer-logo span { font-weight: 700; font-size: 24px; }
.lp-footer-nav-row {
    display: flex; flex-direction: column; align-items: flex-start;
    gap: 24px; margin-bottom: 24px;
}
.lp-footer-nav { display: flex; flex-wrap: wrap; column-gap: 16px; row-gap: 8px; font-weight: 500; font-size: 17px; }
.lp-footer-nav a:hover { text-decoration: underline; }
.lp-footer-nav .lp-dot { color: #9ca3af; }
.lp-footer-social { display: flex; gap: 8px; }
.lp-footer-social a {
    width: 32px; height: 32px; background: #000; color: #fff;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--lp-radius-sm); font-size: 18px;
}
.lp-footer-divider { border-top: 1px solid #9ca3af; margin-bottom: 24px; }
.lp-footer-details { font-size: 15px; line-height: 1.7; color: #374151; margin-bottom: 16px; }
.lp-footer-details p { margin: 4px 0; }
.lp-footer-copy { font-size: 15px; color: #374151; }

/* ---------- 반응형: 태블릿 이상 ---------- */
@media (min-width: 768px) {
    .lp-container { padding-left: var(--lp-margin-desktop); padding-right: var(--lp-margin-desktop); }
    .lp-nav-inner { padding: 0 var(--lp-margin-desktop); }
    .lp-nav-menu { display: block; }
    .lp-nav-mobile-toggle { display: none; }
    .lp-h1 { font-size: 48px; line-height: 1.2; }
    .lp-h2 { font-size: 32px; }
    .lp-lead { font-size: 20px; }
    .lp-hero-inner { flex-direction: row; }
    .lp-hero-text, .lp-hero-img-wrap { width: 50%; }
    .lp-hero-img-wrap img { height: 400px; }
    .lp-grid-3 { grid-template-columns: repeat(3, 1fr); }
    .lp-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .lp-about { flex-direction: row; gap: var(--lp-section-gap); }
    .lp-about-media, .lp-about-body { width: 50%; }
    .lp-posts-head { flex-direction: row; justify-content: space-between; align-items: flex-end; }
    .lp-cta-inner h2 { font-size: 48px; }
    .lp-cta-inner p { font-size: 20px; }
    .lp-cta-buttons { flex-direction: row; }
    .lp-footer { padding-left: var(--lp-margin-desktop); padding-right: var(--lp-margin-desktop); }
    .lp-footer-nav-row { flex-direction: row; justify-content: space-between; align-items: center; }
}
@media (min-width: 1024px) {
    .lp-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
