@charset "utf-8";

/* ==========================================================================
   Design System: Kolive (SaaS Edition)
   Reference: Dio.so / Notion
   Units: REM (Root Em defaults to 16px)
   ========================================================================== */

:root {
    /* 1. Colors (Royal Blue & Slate) */
    --primary: #2563EB;
    /* Blue 600 */
    --primary-hover: #1D4ED8;
    /* Blue 700 */
    --primary-light: #EFF6FF;
    /* Blue 50 */

    --text-main: #0F172A;
    /* Slate 900 */
    --text-sub: #334155;
    /* Slate 700 */
    --text-muted: #64748B;
    /* Slate 500 */

    --bg-page: #F8FAFC;
    /* Slate 50 */
    --bg-card: #FFFFFF;
    /* White */

    --border: #E2E8F0;
    /* Slate 200 */
    --border-hover: #CBD5E1;
    /* Slate 300 */

    --status-success: #10B981;
    --status-warning: #F59E0B;
    --status-error: #EF4444;

    /* 2. Spacing (Base 4px = 0.25rem) */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */

    /* 3. Radius */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */

    /* 4. Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);

    /* 5. Layout */
    --container-width: 75rem;
    /* 1200px */
    --header-height: 4rem;
    /* 64px */
    --sidebar-width: 15rem;
    /* 240px */

    /* 6. Typography */
    --font-sans: 'Pretendard', 'Inter', sans-serif;
}

/* Base */
html {
    font-size: 16px;
    box-sizing: border-box;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    margin: 0;
}

h1,
h2,
h3 {
    font-weight: 700;
    color: var(--text-main);
    margin-top: 0;
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.5rem;
}

/* Mobile Navigation */
.layout-sidebar.active {
    display: block;
    width: 80%;
    max-width: 300px;
    box-shadow: 100px 0 0 rgba(0, 0, 0, 0.5);
    /* Fake backdrop */
}

.mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    padding: 0 var(--space-4);
    position: sticky;
    top: 0;
    z-index: 40;
}

h3 {
    font-size: 1.25rem;
}

p {
    color: var(--text-sub);
}

/* Components */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: var(--space-6);
}

.btn {
    display: inline-flex;
    padding: 0.5rem 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-secondary {
    background: var(--bg-card);
    border-color: var(--border);
    color: var(--text-sub);
}

/* Layout */
.wrapper {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-4);
    width: 100%;
}

.layout-sidebar {
    width: var(--sidebar-width);
    border-right: 1px solid var(--border);
    position: fixed;
    height: 100vh;
    display: none;
    /* Mobile default */
}

@media (min-width: 64rem) {
    .layout-sidebar {
        display: block;
    }

    .layout-main {
        margin-left: var(--sidebar-width);
    }
}

/* PayPal 결제 아이콘 */
.paypal_icon {
    background: #ffc439 !important;
    color: #003087 !important;
    font-weight: bold;
    padding: 8px 16px !important;
    border-radius: 4px;
}

.paypal_icon:hover {
    background: #f0b429 !important;
}

/* Utilities (Tailwind-like) */
.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.gap-2 {
    gap: 0.5rem;
}

.gap-4 {
    gap: 1rem;
}

.gap-6 {
    gap: 1.5rem;
}

@media (min-width: 48rem) {

    /* md */
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 64rem) {

    /* lg */
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.p-4 {
    padding: 1rem;
}

.py-20 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.mt-12 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-6 {
    margin-bottom: 1.5rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-end {
    align-items: flex-end;
}

.gap-2 {
    gap: 0.5rem;
}

.text-center {
    text-align: center;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.font-bold {
    font-weight: 700;
}

.text-gray-500 {
    color: #64748B;
}

.rounded {
    border-radius: 0.25rem;
}

.rounded-full {
    border-radius: 9999px;
}

.aspect-ratio-16\/9 {
    aspect-ratio: 16 / 9;
}

.aspect-ratio-square {
    aspect-ratio: 1 / 1;
}

.hover-lift {
    transition: transform 0.2s;
}

.hover-lift:hover {
    transform: translateY(-4px);
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.badge-outline {
    border: 1px solid var(--border);
    color: var(--text-sub);
}

/* Header Styles (Naver-style) */
.kol-header {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.kol-header-top {
    height: 4rem;
    display: flex;
    align-items: center;
}

.kol-header-top.section-mode {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
}

.kol-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    text-decoration: none;
}

.service-switcher {
    position: relative;
}

.service-switcher .divider {
    color: var(--border);
    font-size: 0.75rem;
}

.service-dropdown-layer {
    position: absolute;
    top: 100%;
    left: 0;
    width: 300px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    margin-top: 0.5rem;
}

.service-dropdown-layer.active {
    display: block;
}

.sch-input-wrap {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid var(--primary);
    border-radius: 9999px;
    padding: 0 1rem;
    width: 400px;
}

.sch-input-wrap input {
    border: none;
    background: transparent;
    padding: 0.5rem 0;
    width: 100%;
    font-weight: 500;
    outline: none;
}

.sch-input-wrap button {
    border: none;
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    font-size: 1.125rem;
}

.kol-header-gnb {
    border-top: 1px solid #f1f5f9;
    height: 3rem;
    display: flex;
    align-items: center;
}

.kol-gnb-item {
    padding: 0 1rem;
}

.kol-gnb-link {
    font-weight: 700;
    color: var(--text-sub);
    text-decoration: none;
    font-size: 0.9375rem;
}

.kol-gnb-link:hover {
    color: var(--primary);
}

.btn-all-services-icon {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-sub);
}

.all-services-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    display: none;
}

.all-services-overlay.active {
    display: block;
}

.overlay-content {
    position: absolute;
    top: 4rem;
    right: 2rem;
    width: 320px;
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

.service-mega-grid h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.service-mega-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-mega-grid li {
    margin-bottom: 0.25rem;
}

.service-mega-grid a {
    text-decoration: none;
    color: var(--text-sub);
    font-size: 0.875rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}