/* /assets/css/community.css */
.community-body {
    background: #f6f8fb;
}

.community-wrap {
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 44px 0 80px;
}

.community-wrap--narrow {
    width: min(900px, calc(100% - 40px));
}

.community-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 36px;
    padding: 42px 46px;
    border: 1px solid #dce8e4;
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 12%, rgba(15,159,131,.16), transparent 28%),
        linear-gradient(135deg, #effbf7 0%, #ffffff 72%);
    box-shadow: 0 20px 48px rgba(16,45,38,.08);
}

.community-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: #0f9f83;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .14em;
}

.community-hero h1,
.community-form-head h1,
.community-post-card h1 {
    margin: 0;
    color: #10231f;
    letter-spacing: -.045em;
}

.community-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.18;
}

.community-hero p,
.community-form-head p {
    margin: 18px 0 0;
    color: #64736e;
    line-height: 1.75;
}

.community-primary-btn {
    flex: 0 0 auto;
    min-height: 50px;
    padding: 0 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #0f9f83;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 26px rgba(15,159,131,.24);
}

.community-tabs {
    display: flex;
    gap: 8px;
    margin: 28px 0 22px;
    overflow-x: auto;
    scrollbar-width: none;
}

.community-tabs::-webkit-scrollbar { display: none; }

.community-tabs a {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 17px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe7e4;
    border-radius: 999px;
    background: #fff;
    color: #5c6b66;
    font-size: 14px;
    font-weight: 850;
}

.community-tabs a.active {
    border-color: #0f9f83;
    background: #0f9f83;
    color: #fff;
}

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

.community-board,
.community-side-card,
.community-guide-card,
.community-form-card,
.community-post-card,
.community-comments {
    border: 1px solid #e2e9e7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

.community-board {
    overflow: hidden;
}

.community-board-head {
    padding: 25px 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 1px solid #edf1f0;
}

.community-board-head h2 {
    margin: 0;
    color: #17332c;
    font-size: 23px;
}

.community-board-head p {
    margin: 7px 0 0;
    color: #7a8883;
    font-size: 14px;
}

.community-board-head > strong {
    color: #0f9f83;
    font-size: 14px;
}

.community-row {
    min-height: 82px;
    padding: 17px 22px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    border-bottom: 1px solid #edf1f0;
    transition: background .18s ease;
}

.community-row:hover {
    background: #f8fbfa;
}

.community-row--notice {
    background: #f2faf7;
}

.community-row-category,
.community-row-badge {
    justify-self: start;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f1f5f4;
    color: #61716b;
    font-size: 11px;
    font-weight: 900;
}

.community-row-badge {
    background: #dff7ef;
    color: #0b806b;
}

.community-row-main {
    min-width: 0;
}

.community-row-main > strong {
    display: block;
    overflow: hidden;
    color: #182d28;
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-row-main > strong em {
    margin-left: 5px;
    color: #0f9f83;
    font-size: 12px;
    font-style: normal;
}

.community-row-meta,
.community-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 9px;
    color: #8a9692;
    font-size: 12px;
}

.community-row-stats {
    display: flex;
    gap: 14px;
    color: #8a9692;
    font-size: 12px;
    white-space: nowrap;
}

.community-side {
    display: grid;
    gap: 16px;
}

.community-side-card,
.community-guide-card {
    padding: 22px;
}

.community-side-head {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-bottom: 16px;
    border-bottom: 1px solid #edf1f0;
}

.community-side-head > span {
    font-size: 24px;
}

.community-side-head strong,
.community-side-head small {
    display: block;
}

.community-side-head strong {
    color: #19322c;
}

.community-side-head small {
    margin-top: 3px;
    color: #98a39f;
}

.community-hot-list {
    margin-top: 10px;
}

.community-hot-list a {
    padding: 11px 0;
    display: grid;
    grid-template-columns: 22px minmax(0,1fr) auto;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #f0f3f2;
}

.community-hot-list b {
    color: #0f9f83;
    font-size: 13px;
}

.community-hot-list span {
    overflow: hidden;
    color: #40504b;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.community-hot-list em {
    color: #0f9f83;
    font-size: 11px;
    font-style: normal;
}

.community-side-empty {
    margin: 18px 0 4px;
    color: #98a39f;
    font-size: 13px;
}

.community-guide-card strong {
    color: #19322c;
}

.community-guide-card p {
    margin: 10px 0 16px;
    color: #788680;
    font-size: 13px;
    line-height: 1.7;
}

.community-guide-card a,
.community-text-link,
.community-view-nav a {
    color: #0f9f83;
    font-size: 13px;
    font-weight: 850;
}

.community-search {
    padding: 20px 22px;
    display: grid;
    grid-template-columns: 130px minmax(0,1fr) 76px;
    gap: 8px;
}

.community-search select,
.community-search input,
.community-form-card select,
.community-form-card input[type="text"],
.community-form-card textarea,
.community-comment-form textarea {
    width: 100%;
    border: 1px solid #dce5e2;
    border-radius: 12px;
    background: #fff;
    color: #263d36;
    outline: none;
}

.community-search select,
.community-search input {
    min-height: 44px;
    padding: 0 13px;
}

.community-search button,
.community-form-actions button,
.community-comment-form button {
    border: 0;
    border-radius: 12px;
    background: #12352d;
    color: #fff;
    font-weight: 850;
    cursor: pointer;
}

.community-pagination {
    padding: 22px;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.community-pagination a {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe7e4;
    border-radius: 10px;
    background: #fff;
    color: #64736e;
    font-size: 13px;
    font-weight: 800;
}

.community-pagination a.active {
    border-color: #0f9f83;
    background: #0f9f83;
    color: #fff;
}

.community-empty {
    padding: 68px 24px;
    text-align: center;
}

.community-empty strong {
    display: block;
    color: #334943;
}

.community-empty p {
    margin: 8px 0 0;
    color: #98a39f;
    font-size: 13px;
}

.community-form-head {
    margin-bottom: 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.community-form-head h1 {
    font-size: 36px;
}

.community-form-card {
    padding: 30px;
    display: grid;
    gap: 22px;
}

.community-form-card > label > span {
    display: block;
    margin-bottom: 9px;
    color: #30453f;
    font-size: 13px;
    font-weight: 850;
}

.community-form-card select,
.community-form-card input[type="text"] {
    min-height: 50px;
    padding: 0 14px;
}

.community-form-card textarea,
.community-comment-form textarea {
    padding: 15px;
    resize: vertical;
    line-height: 1.75;
}

.community-check {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    color: #65746f;
    font-size: 13px;
}

.community-check span {
    margin: 0 !important;
}

.community-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
}

.community-form-actions a,
.community-form-actions button {
    min-height: 46px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.community-form-actions a {
    border: 1px solid #dce5e2;
    border-radius: 12px;
    background: #fff;
    color: #65746f;
    font-weight: 850;
}

.community-alert {
    margin-bottom: 16px;
    padding: 15px 18px;
    border-radius: 14px;
}

.community-alert p { margin: 0; font-size: 14px; }
.community-alert p + p { margin-top: 5px; }
.community-alert--error { border: 1px solid #f3c5c5; background: #fff3f3; color: #b33a3a; }
.community-alert--success { border: 1px solid #bfe5d9; background: #effaf6; color: #0b806b; }

.community-view-nav {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
}

.community-post-card {
    overflow: hidden;
}

.community-post-card header {
    padding: 30px 34px 25px;
    border-bottom: 1px solid #edf1f0;
}

.community-post-card header > span {
    color: #0f9f83;
    font-size: 12px;
    font-weight: 900;
}

.community-post-card h1 {
    margin-top: 12px;
    font-size: 31px;
    line-height: 1.35;
}

.community-post-content {
    min-height: 260px;
    padding: 38px 34px 50px;
    color: #30443e;
    font-size: 15px;
    line-height: 1.95;
}

.community-post-card footer {
    padding: 17px 34px;
    display: flex;
    gap: 16px;
    border-top: 1px solid #edf1f0;
    color: #7f8b87;
    font-size: 13px;
}

.community-comments {
    margin-top: 20px;
    padding: 28px;
}

.community-comments-head h2 {
    margin: 0 0 18px;
    color: #1d332d;
    font-size: 21px;
}

.community-comments-head h2 span {
    color: #0f9f83;
}

.community-comment {
    padding: 18px 0;
    border-top: 1px solid #edf1f0;
}

.community-comment--reply {
    margin-left: 28px;
    padding-left: 18px;
    border-left: 3px solid #dff3ed;
}

.community-comment-head {
    display: flex;
    gap: 12px;
    align-items: center;
}

.community-comment-head strong {
    color: #2c423b;
    font-size: 13px;
}

.community-comment-head span {
    color: #9aa4a1;
    font-size: 11px;
}

.community-comment p {
    margin: 10px 0 0;
    color: #53635e;
    font-size: 14px;
    line-height: 1.7;
}

.community-empty--comments {
    padding: 38px 20px;
}

.community-comment-form {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #edf1f0;
}

.community-comment-form > div {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.community-comment-form button {
    min-height: 42px;
    padding: 0 18px;
}

.community-login-box {
    margin-top: 20px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    background: #f6faf8;
}

.community-login-box p {
    margin: 0;
    color: #687771;
    font-size: 13px;
}

.community-login-box a {
    color: #0f9f83;
    font-weight: 900;
}

@media (max-width: 980px) {
    .community-layout {
        grid-template-columns: 1fr;
    }
    .community-side {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 768px) {
    .community-wrap,
    .community-wrap--narrow {
        width: calc(100% - 28px);
        padding: 24px 0 58px;
    }

    .community-hero {
        padding: 30px 24px;
        display: block;
        border-radius: 22px;
    }

    .community-hero h1 {
        font-size: 34px;
    }

    .community-primary-btn {
        margin-top: 24px;
        width: 100%;
    }

    .community-layout,
    .community-side {
        grid-template-columns: 1fr;
    }

    .community-board-head {
        padding: 21px 20px;
    }

    .community-row {
        padding: 16px 18px;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .community-row-category,
    .community-row-badge {
        display: inline-flex;
    }

    .community-row-stats {
        justify-content: flex-end;
    }

    .community-search {
        grid-template-columns: 1fr;
    }

    .community-search button {
        min-height: 44px;
    }

    .community-form-head {
        display: block;
    }

    .community-text-link {
        display: inline-block;
        margin-top: 14px;
    }

    .community-form-card,
    .community-comments {
        padding: 22px 18px;
    }

    .community-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .community-post-card header,
    .community-post-content,
    .community-post-card footer {
        padding-left: 22px;
        padding-right: 22px;
    }

    .community-post-card h1 {
        font-size: 25px;
    }

    .community-post-content {
        min-height: 200px;
    }
}


/* Community operation policy */
.community-policy-box {
    margin-bottom: 18px;
    padding: 20px 22px;
    border: 1px solid #d6e8e2;
    border-radius: 16px;
    background: #f2faf7;
}

.community-policy-box strong {
    display: block;
    color: #12352d;
    font-size: 14px;
}

.community-policy-box p {
    margin: 8px 0 0;
    color: #63746e;
    font-size: 13px;
    line-height: 1.75;
}

.community-form-options {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #f8faf9;
}

.community-check--policy {
    align-items: flex-start;
    color: #53635e;
    line-height: 1.6;
}

.community-check--policy input {
    margin-top: 3px;
}

.community-comment-policy {
    margin: -4px 0 22px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #f7f9f8;
    color: #788680;
    font-size: 12px;
    line-height: 1.65;
}

@media (max-width: 768px) {
    .community-policy-box {
        padding: 18px;
    }

    .community-form-options {
        padding: 15px;
    }
}


/* Community v3 */
.community-top-guide {
    margin: 18px 0 24px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid #dce8e4;
    border-radius: 16px;
    background: #ffffff;
}

.community-top-guide span {
    display: block;
    color: #12352d;
    font-size: 14px;
    font-weight: 900;
}

.community-top-guide p {
    margin: 6px 0 0;
    color: #687771;
    font-size: 13px;
    line-height: 1.7;
}

.community-top-guide a,
.community-policy-box a {
    flex: 0 0 auto;
    color: #0f9f83;
    font-size: 13px;
    font-weight: 900;
}

.community-policy-box a {
    display: inline-block;
    margin-top: 9px;
}

.community-view-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.community-policy-page {
    padding: 34px;
    border: 1px solid #e2e9e7;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15,23,42,.05);
}

.community-policy-page section + section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #edf1f0;
}

.community-policy-page h2 {
    margin: 0;
    color: #17332c;
    font-size: 20px;
}

.community-policy-page p,
.community-policy-page li {
    color: #5e6f69;
    font-size: 14px;
    line-height: 1.85;
}

.community-policy-page p {
    margin: 12px 0 0;
}

.community-policy-page ul {
    margin: 14px 0 0;
    padding-left: 22px;
}

.community-policy-page li + li {
    margin-top: 8px;
}

.community-policy-date {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid #edf1f0;
    color: #89958f;
    font-size: 13px;
    text-align: right;
}

@media (max-width: 768px) {
    .community-top-guide {
        display: block;
        padding: 18px;
    }

    .community-top-guide a {
        display: inline-block;
        margin-top: 12px;
    }

    .community-view-actions {
        gap: 10px;
    }

    .community-policy-page {
        padding: 24px 20px;
    }

    .community-policy-page h2 {
        font-size: 18px;
    }
}
.community-category-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.community-category-row .community-tabs {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
}

.community-write-btn {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    background: #26364f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition:
        background-color .2s ease,
        transform .2s ease;
}

.community-write-btn:hover {
    background: #1d2a3f;
    transform: translateY(-1px);
}
@media (max-width: 768px) {
    .community-category-row {
        gap: 10px;
        margin-bottom: 18px;
    }

    .community-category-row .community-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 8px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .community-category-row .community-tabs::-webkit-scrollbar {
        display: none;
    }

    .community-category-row .community-tabs a {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .community-write-btn {
        min-width: 70px;
        height: 38px;
        padding: 0 14px;
        border-radius: 9px;
        font-size: 13px;
    }
}
.community-tabs {
    margin-bottom: 12px;
}

.community-write-row {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.community-write-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    height: 42px;
    padding: 0 20px;
    border-radius: 10px;
    background: #26364f;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.community-write-btn:hover {
    background: #1d2a3f;
}
@media (max-width: 768px) {
    .community-write-row {
        margin-bottom: 16px;
    }

    .community-write-btn {
        min-width: 72px;
        height: 38px;
        padding: 0 14px;
        font-size: 13px;
    }
}