@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Thin.woff2') format('woff2');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-ExtraLight.woff2') format('woff2');
    font-weight: 200;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Light.woff2') format('woff2');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
}

@font-face {
    font-family: 'Pretendard';
    src: url('pre/Pretendard-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
}

:root {
    --deep-blue: #1a3a5f;
    --white: #ffffff;
    --gray-100: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-500: #64748b;
    --gray-700: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--gray-100);
    color: #0f172a;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.community-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 18px 0;
}

.community-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.community-brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    color: var(--deep-blue);
    text-decoration: none;
}

.community-brand-logo {
    height: 56px;
    width: auto;
    display: block;
}

.community-back {
    color: var(--gray-700);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

.community-main {
    padding: 44px 0 60px;
}

.community-page-title {
    text-align: center;
    color: var(--deep-blue);
    font-size: 44px;
    font-weight: 800;
    margin-bottom: 14px;
}

.community-page-desc {
    text-align: center;
    color: var(--gray-500);
    font-size: 18px;
    margin-bottom: 30px;
}

.community-type-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.community-type-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 28px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.community-type-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.community-type-title {
    color: var(--deep-blue);
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 10px;
}

.community-type-text {
    color: var(--gray-700);
    font-size: 17px;
}

.community-list-wrap {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    overflow: hidden;
}

.community-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: #0f172a;
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-200);
}

.community-list-item:last-child {
    border-bottom: 0;
}

.community-list-thumb {
    width: 140px;
    height: 88px;
    border-radius: 10px;
    object-fit: cover;
    flex: 0 0 auto;
}

.community-list-body {
    min-width: 0;
}

.community-list-item-title {
    font-size: 21px;
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-list-item-meta {
    font-size: 14px;
    color: var(--gray-500);
}

.community-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.community-sidebar {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    padding: 16px;
    position: sticky;
    top: 18px;
}

.community-side-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.community-side-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.community-side-link {
    display: block;
    text-decoration: none;
    color: #1e293b;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
}

.community-side-link.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.community-content {
    min-width: 0;
}

.community-section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 10px;
}

.community-section-desc {
    font-size: 16px;
    color: var(--gray-500);
    margin-bottom: 18px;
}

.community-group-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
}

.community-group-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 12px;
}

.community-detail {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 26px;
}

.community-detail-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--deep-blue);
    margin-bottom: 10px;
}

.community-detail-meta {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.community-detail-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 18px;
}

.community-detail-content {
    font-size: 17px;
    color: #0f172a;
    line-height: 1.8;
    white-space: pre-line;
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }

    .community-brand {
        line-height: 0;
    }

    .community-brand-logo {
        height: 46px;
    }

    .community-main {
        padding: 30px 0 42px;
    }

    .community-page-title {
        font-size: 32px;
    }

    .community-page-desc {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .community-type-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .community-type-card {
        padding: 22px 18px;
    }

    .community-type-title {
        font-size: 24px;
    }

    .community-type-text {
        font-size: 15px;
    }

    .community-list-item-title {
        font-size: 18px;
    }

    .community-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .community-sidebar {
        position: static;
    }

    .community-section-title {
        font-size: 30px;
    }

    .community-group-title {
        font-size: 22px;
    }

    .community-list-item {
        gap: 10px;
        padding: 12px;
    }

    .community-list-thumb {
        width: 92px;
        height: 62px;
        border-radius: 8px;
    }

    .community-detail {
        padding: 18px 14px;
    }

    .community-detail-title {
        font-size: 27px;
    }

    .community-detail-content {
        font-size: 15px;
    }
}
