:root {
    --home-primary: #2d5bff;
    --home-primary-dark: #1e40af;
    --home-accent: #e0245e;
    --home-page-bg: #f5f6f8;
    --home-bg: #ffffff;
    --home-text: #1c1f24;
    --home-text-muted: #5b6270;
    --home-border: #e4e6eb;
    --home-shadow: 0 10px 30px rgba(31, 41, 55, 0.08);
    --home-service-new: #059669;
}

@media (prefers-color-scheme: dark) {
    :root {
        --home-primary: #6f8bff;
        --home-primary-dark: #4c6fff;
        --home-accent: #ff5c8a;
        --home-page-bg: #14161a;
        --home-bg: #1b1e24;
        --home-text: #eef0f4;
        --home-text-muted: #9aa1ad;
        --home-border: #2a2d34;
        --home-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
        --home-service-new: #34d399;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
    background: var(--home-page-bg);
    color: var(--home-text);
    line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

.home-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--home-bg);
    border-bottom: 1px solid var(--home-border);
}

.home-header-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.home-logo {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--home-text);
}

.home-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.home-nav a {
    margin-left: 20px;
    font-size: 0.95rem;
    color: var(--home-text-muted);
}

.home-nav a:hover { color: var(--home-primary); }

.home-nav-user {
    margin-left: 20px;
    font-size: 0.92rem;
    color: var(--home-text-muted);
}

.home-nav-login {
    margin-left: 12px !important;
    padding: 7px 18px;
    border-radius: 999px;
    background: var(--home-primary);
    color: #fff !important;
    font-weight: 600;
}

.home-hero {
    max-width: 1080px;
    margin: 24px auto 0;
    padding: 0 24px;
}

.home-hero-inner {
    padding: 40px 28px;
    border-radius: 28px;
    background: linear-gradient(180deg, var(--home-bg), var(--home-page-bg));
    box-shadow: var(--home-shadow);
    text-align: center;
}

.home-hero-eyebrow {
    margin: 0 0 10px;
    font-size: 0.92rem;
    color: var(--home-text-muted);
}

.home-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 4vw, 2.4rem);
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.home-hero-actions {
    margin-top: 6px;
}

.home-hero-cta {
    display: inline-flex;
    align-items: center;
    padding: 12px 26px;
    border-radius: 16px;
    background: var(--home-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.home-hero-cta:hover { background: var(--home-primary-dark); }

.home-hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.home-hero-stat {
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--home-bg);
    border: 1px solid var(--home-border);
    font-size: 0.85rem;
    color: var(--home-text-muted);
}

.home-hero-stat strong {
    color: var(--home-text);
}

.home-content-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 32px 24px 64px;
}

.home-category-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.home-category-tabs a {
    padding: 7px 15px;
    border: 1px solid var(--home-border);
    border-radius: 999px;
    background: var(--home-bg);
    font-size: 0.86rem;
    color: var(--home-text-muted);
}

.home-category-tabs a.active {
    background: var(--home-primary);
    border-color: var(--home-primary);
    color: #fff;
}

.home-write-link {
    margin-left: auto;
    color: var(--home-primary) !important;
    border-color: var(--home-primary) !important;
}

.home-section {
    margin: 0 0 44px;
}

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.home-section-header-text h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.home-section-header-text p {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--home-text-muted);
}

.home-section h2 {
    margin: 0;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}

.home-more-link {
    font-size: 0.88rem;
    color: var(--home-primary);
    white-space: nowrap;
}

.home-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

@media (max-width: 900px) {
    .home-services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .home-services-grid { grid-template-columns: 1fr; }
}

.home-service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
    background: var(--home-bg);
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.home-service-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(31, 41, 55, 0.14);
}

.home-service-card-image-wrap {
    position: relative;
    display: block;
}

.home-service-card-image {
    display: block;
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.home-service-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--home-primary);
    font-size: 0.74rem;
    font-weight: 700;
}

.home-service-badge-standalone {
    position: static;
    display: inline-block;
}

.home-service-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 20px 0;
}

.home-service-badge-corner {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 11px;
    border-radius: 999px;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
}

.home-service-badge-corner-standalone {
    position: static;
}

.home-service-badge-hot {
    background: var(--home-accent);
}

.home-service-badge-new {
    background: var(--home-service-new);
}

.home-service-card h3,
.home-service-card > p {
    margin-left: 20px;
    margin-right: 20px;
}

.home-service-card h3 {
    margin-top: 18px;
    margin-bottom: 8px;
    font-size: 1.08rem;
    letter-spacing: -0.02em;
}

.home-service-card > p {
    margin-top: 0;
    margin-bottom: 0;
    color: var(--home-text-muted);
    font-size: 0.9rem;
}

.home-service-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px 20px;
}

.home-service-card-meta-text {
    font-size: 0.78rem;
    color: var(--home-text-muted);
}

.home-service-card-cta {
    flex: 0 0 auto;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--home-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
}

.home-post-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 16px;
    overflow: hidden;
    background: var(--home-bg);
    box-shadow: var(--home-shadow);
    border: 1px solid var(--home-border);
}

.home-post-table th, .home-post-table td {
    text-align: left;
    padding: 13px 18px;
    border-bottom: 1px solid var(--home-border);
    font-size: 0.9rem;
}

.home-post-table tr:last-child td { border-bottom: none; }

.home-post-table th {
    color: var(--home-text-muted);
    font-weight: 600;
}

.home-post-table a:hover { color: var(--home-primary); }

.home-col-category, .home-col-writer, .home-col-date, .home-col-views {
    white-space: nowrap;
    color: var(--home-text-muted);
    font-size: 0.85rem;
}

.home-empty {
    color: var(--home-text-muted);
}

.home-footer {
    text-align: center;
    padding: 32px 24px;
    color: var(--home-text-muted);
    font-size: 0.85rem;
}
