@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700;800&display=swap');

/* ========================================
   1. CSS Variables
======================================== */

:root {
    --ink: #20231f;
    --muted: #777d75;
    --line: #e7e9e3;
    --paper: #fbfbf8;
    --green: #d8f36a;
    --forest: #203b2b;
    --white: #fff;

    --serif: Georgia, 'Times New Roman', serif;
}


/* ========================================
   2. Reset & Base
======================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', 'Noto Sans KR', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

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


/* ========================================
   3. Header & Navigation
======================================== */

.topbar {
    height: 78px;
    padding: 0 max(5.5vw, 24px);

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
    background: rgba(251, 251, 248, 0.94);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;

    font-size: 16px;
    letter-spacing: -0.5px;
}

.brand b {
    font-weight: 700;
}

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--forest);
    color: #e3f88c;

    font-family: var(--serif);
    font-size: 19px;
    font-weight: bold;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 30px;

    color: #50564e;
    font-size: 13px;
}

.topbar nav a:hover,
.text-link:hover {
    color: #65812d;
}

.nav-cta {
    padding: 9px 15px;

    border: 1px solid #d8dcd3;
    border-radius: 10px;

    color: var(--ink) !important;
}

.nav-cta span {
    margin-left: 8px;
}


/* ========================================
   4. Hero Section
======================================== */

.hero {
    max-width: 1400px;
    margin: 0 auto;
    padding: 76px 5.5vw 86px;

    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4vw;
    align-items: center;
}

.hero-copy {
    padding: 5px 0;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #75806f;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.1px;
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;

    background: #92b94c;
    box-shadow: 0 0 0 4px #eaf2d8;
}

.hero h1 {
    margin: 24px 0 20px;

    font-size: clamp(44px, 5.1vw, 72px);
    font-weight: 600;
    line-height: 1.19;
    letter-spacing: -3.8px;
}

.hero h1 em,
.closing h2 em {
    color: #688048;

    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -2px;
}

.hero-copy > p {
    max-width: 450px;
    color: #73786f;
    font-size: 15px;
    line-height: 1.95;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 23px;

    margin-top: 29px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    padding: 13px 18px;
    border: 0;
    border-radius: 10px;

    font: 600 13px 'DM Sans', 'Noto Sans KR', sans-serif;

    cursor: pointer;
    transition: transform 0.15s, background 0.15s;
}

.button:hover {
    transform: translateY(-2px);
}

.primary {
    background: var(--forest);
    color: var(--white);
}

.primary:hover {
    background: #31583e;
}

.secondary {
    background: #eff0eb;
}

.light {
    background: #eff8d5;
    color: var(--forest);
}

.text-link {
    font-size: 13px;
    font-weight: 600;
}

.hero-proof {
    display: flex;
    align-items: center;
    gap: 12px;

    margin-top: 45px;

    color: #8a8e85;
    font-size: 11px;
}

.avatar-stack {
    display: flex;
    padding-left: 2px;
}

.avatar-stack span {
    width: 26px;
    height: 26px;
    margin-left: -3px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 2px solid var(--paper);
    border-radius: 50%;

    background: #e8d9c5;
    color: #655747;

    font-size: 10px;
}

.avatar-stack span:nth-child(2) {
    background: #d7e2c4;
}

.avatar-stack span:nth-child(3) {
    background: #e7d9dc;
}


/* ========================================
   5. Hero Image
======================================== */

.hero-art {
    position: relative;
    width: 100%;
    min-width: 0;
    min-height: 400px;

    overflow: hidden;

    border-radius: 20px;
    background: #e9e5d9;

    box-shadow: 0 22px 60px #313c2412;
}

.hero-art > img {
    display: block;

    width: 100%;
    height: 100%;
    min-height: 400px;

    object-fit: cover;
}

.art-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    display: flex;
    justify-content: space-between;

    padding: 16px 20px;

    background: linear-gradient(transparent, #17251b88);
    color: var(--white);

    font-size: 9px;
    letter-spacing: 1.5px;
}


/* ========================================
   6. Books Section
======================================== */

.books-section,
.posts-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
}

.books-section {
    padding-top: 55px;
    border-top: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 26px;
}

.section-heading h2 {
    margin: 8px 0 0;

    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
}

.book-title {
    font-size: 16px;
    font-weight: 600;
}


.section-side {
    color: #92968d;
    font-size: 12px;
}

.book-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.book-pill {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 13px;

    padding: 15px 16px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--white);

    font-size: 13px;

    transition: border-color 0.2s, transform 0.2s;
}

.book-pill:hover {
    border-color: #a8ba8d;
    transform: translateY(-2px);
}

.pill-number {
    color: #9aa18e;
    font-size: 10px;
}

.book-pill > span:nth-child(2) {
    flex: 1;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pill-arrow {
    color: #8b9581;
}


/* ========================================
   7. Latest Posts Section
======================================== */

.posts-section {
    padding-top: 44px;
    padding-bottom: 92px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.post-card {
    min-width: 0;

    display: flex;
    flex-direction: column;

    padding: 22px 22px 17px;

    border: 1px solid var(--line);
    border-radius: 15px;

    background: var(--white);

    transition: box-shadow 0.2s, transform 0.2s;
}

.post-card:hover {
    box-shadow: 0 12px 32px #28351b0a;
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.book-tag {
    display: inline-block;
    max-width: 72%;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    padding: 5px 8px;
    border-radius: 6px;

    background: #f0f4e7;
    color: #536d3e;

    font-size: 10px;
    font-weight: 600;
}

.card-date {
    color: #9a9e96;
    font-size: 10px;
}

.post-card h3 {
    margin: 17px 0 8px;

    font-size: 18px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: -0.5px;
}

.summary {
    min-height: 43px;
    margin: 0 0 15px;

    color: #7e837a;

    font-size: 12px;
    line-height: 1.8;
}

.card-image {
    display: block;
    max-height: 180px;

    overflow: hidden;

    margin-bottom: 14px;
    border-radius: 9px;
}

.card-image img {
    display: block;

    width: 100%;
    height: 180px;

    object-fit: cover;
}

.comment-preview {
    min-height: 82px;

    margin-top: auto;
    padding-top: 12px;

    border-top: 1px solid #eff0ec;
}

.mini-comment {
    display: flex;
    align-items: baseline;
    gap: 7px;

    min-width: 0;
    margin-bottom: 5px;

    font-size: 10px;
    line-height: 1.7;
}

.comment-dot {
    position: relative;
    top: -1px;

    width: 5px;
    height: 5px;
    flex: none;

    border-radius: 50%;
    background: #b7c69d;
}

.comment-author {
    color: #5e6659;
    font-weight: 700;
    white-space: nowrap;
}

.comment-text {
    overflow: hidden;

    color: #878b83;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.empty-comment {
    color: #a3a69f;
    font-size: 11px;
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    gap: 8px;

    margin-top: 10px;
    padding-top: 12px;

    border-top: 1px solid #eff0ec;

    color: #9a9e96;
    font-size: 10px;
}

.card-bottom a {
    color: #59684d;
    font-weight: 600;
}


/* ========================================
   8. Empty State
======================================== */

.empty-state {
    grid-column: 1 / -1;

    padding: 65px 20px;

    border: 1px dashed #d7dbcf;
    border-radius: 16px;

    text-align: center;
}

.empty-symbol {
    color: #83946a;

    font-family: var(--serif);
    font-size: 42px;
}

.empty-state h3 {
    margin: 7px 0;
    font-size: 20px;
}

.empty-state p {
    margin-bottom: 20px;

    color: var(--muted);
    font-size: 13px;
}


/* ========================================
   9. Closing Section
======================================== */

.closing {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin: 0 5.5vw 75px;
    padding: 42px 48px;

    border-radius: 18px;

    background: #263d2e;
    color: var(--white);
}

.closing .eyebrow {
    color: #c1d4ad;
}

.closing h2 {
    margin: 12px 0 0;

    font-size: 32px;
    line-height: 1.35;
    letter-spacing: -1.4px;
}

.closing h2 em {
    color: var(--green);
}

.closing .button {
    white-space: nowrap;
}


/* ========================================
   10. Footer
======================================== */

footer {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 25px 5.5vw;

    border-top: 1px solid var(--line);

    color: #777d73;
    font-size: 11px;
}

.brand-mark.small {
    width: 26px;
    height: 26px;

    border-radius: 8px;

    font-size: 14px;
}

.footer-note {
    margin-left: auto;
    color: #a0a49b;
}


/* ========================================
   11. General Page Layout
======================================== */

.page-intro,
.form-page,
.detail-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 58px 28px 35px;
}

.back-link {
    display: inline-block;
    margin-bottom: 32px;

    color: #7c8377;
    font-size: 12px;
}

.page-intro h1,
.form-page h1,
.detail-page h1 {
    margin: 13px 0;

    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.25;
    letter-spacing: -1.8px;
}

.page-intro p,
.form-lead {
    margin: 0 0 24px;
    color: #7c8278;
}

.page-intro .button {
    margin-top: 5px;
}


/* ========================================
   12. Post Form
======================================== */

.form-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 90px;
}

.form-page h1 {
    margin-top: 14px;
}

.editor-form {
    width: 100%;
    max-width: none;
    margin-top: 30px;
    padding: 28px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: var(--white);
}

.field {
    margin-bottom: 22px;
}

.field label {
    display: block;
    margin-bottom: 8px;

    font-size: 12px;
    font-weight: 700;
}

.field input,
.field textarea,
.field select,
.comment-fields input {
    width: 100%;

    padding: 13px 14px;

    border: 1px solid #e0e4da;
    border-radius: 9px;

    outline: none;

    background: var(--white);
    color: var(--ink);

    font: 13px 'DM Sans', 'Noto Sans KR', sans-serif;
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.comment-fields input:focus {
    border-color: #91a87a;
    box-shadow: 0 0 0 3px #eaf0e2;
}

.field input[type="file"] {
    padding: 10px;
}

.field textarea {
    resize: vertical;
    line-height: 1.8;
}

.field-error {
    margin-top: 6px;
    color: #b53d3d;
    font-size: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;

    margin-top: 28px;
}


/* ========================================
   13. Post Detail
======================================== */

.detail-page {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
    box-sizing: border-box;
}


.detail-meta {
    display: flex;
    align-items: center;
    gap: 12px;

    color: #92968d;
    font-size: 11px;
}

.detail-page h1 {
    margin: 22px 0 15px;
    font-size: clamp(32px, 4vw, 46px);
}

.author-line {
    display: flex;
    align-items: center;
    gap: 9px;

    color: #858a81;
    font-size: 11px;
}

.author-avatar,
.comment-avatar {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8eedc;
    color: #566a43;

    font-weight: 700;
}

.meta-separator {
    color: #c4c7bf;
}

.detail-content {
    margin: 40px 0;

    color: #3c4239;

    font-size: 15px;
    line-height: 2.05;

    white-space: normal;
    overflow-wrap: anywhere;
}

.detail-image {
    margin: 20px 0 35px;
}

.detail-image img {
    width: 100%;
    max-height: 600px;

    border-radius: 12px;

    object-fit: contain;
    background: #f1f1ed;
}

.detail-image figcaption {
    margin-top: 8px;

    color: #9a9e96;
    font-size: 10px;
}

.detail-divider {
    height: 1px;
    margin: 45px 0 35px;

    background: var(--line);
}


/* ========================================
   14. Comments
======================================== */

.count {
    color: #87986d;
}

.comments .section-heading {
    margin-bottom: 25px;
}

.comment-item {
    display: flex;
    gap: 12px;

    padding: 17px 0;

    border-bottom: 1px solid #edeee9;
}

.comment-avatar {
    flex: none;

    background: #f0e9df;
    color: #74614e;
}

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

.comment-head strong {
    font-size: 12px;
}

.comment-head span {
    color: #a0a49b;
    font-size: 10px;
}

.comment-body p {
    margin: 6px 0 0;

    color: #666d62;
    font-size: 13px;

    overflow-wrap: anywhere;
}

.no-comments {
    padding: 20px 0;

    color: #999e94;
    font-size: 12px;
}

.comment-form {
    margin-top: 25px;
    padding: 18px;

    border: 1px solid var(--line);
    border-radius: 12px;

    background: var(--white);
}

.comment-fields {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 10px;

    margin-bottom: 12px;
}

.comment-form .button {
    display: flex;
    margin-left: auto;
}


/* ========================================
   15. Messages
======================================== */

.messages {
    max-width: 1200px;
    margin: 15px auto 0;
    padding: 0 24px;
}

.message {
    padding: 10px 14px;

    border-radius: 8px;

    background: #edf4df;
    color: #4e6639;

    font-size: 12px;
}


/* ========================================
   16. Tablet Responsive
======================================== */

@media (max-width: 900px) {
    .hero {
        gap: 30px;
        padding-top: 55px;
    }

    .hero h1 {
        font-size: 49px;
        letter-spacing: -2.5px;
    }

    .hero-art,
    .hero-art > img {
        min-height: 340px;
    }

    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .book-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .section-side {
        display: none;
    }
}


/* ========================================
   17. Mobile Responsive
======================================== */

@media (max-width: 620px) {
    .topbar {
        height: 66px;
        padding: 0 18px;
    }

    .brand {
        font-size: 14px;
    }

    .topbar nav {
        gap: 12px;
    }

    .topbar nav > a:first-child,
    .topbar nav > a:nth-child(2) {
        display: none;
    }

    .nav-cta {
        padding: 8px 11px;
    }

    .hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 34px;

        padding: 44px 20px 52px;
    }

    .hero h1 {
        margin-top: 20px;

        font-size: 48px;
        letter-spacing: -2.7px;
    }

    .hero-copy > p {
        font-size: 13px;
    }

    .hero-proof {
        margin-top: 28px;
    }

    .hero-art,
    .hero-art > img {
        min-height: 280px;
    }

    .books-section,
    .posts-section {
        padding: 35px 20px 52px;
    }

    .section-heading h2 {
        font-size: 23px;
    }

    .book-pills {
        grid-template-columns: 1fr;
    }

    .book-pill {
        padding: 13px;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-card {
        padding: 20px;
    }

    .closing {
        flex-direction: column;
        align-items: flex-start;

        margin: 0 20px 50px;
        padding: 30px 24px;
    }

    .closing h2 {
        font-size: 28px;
    }

    .footer-note {
        display: none;
    }

    .page-intro,
    .form-page,
    .detail-page {
        padding: 35px 20px 55px;
    }

    .editor-form {
        padding: 20px 16px;
    }

    .detail-page h1 {
        font-size: 34px;
    }

    .detail-content {
        font-size: 14px;
    }

    .comment-fields {
        grid-template-columns: 1fr;
    }

    .comment-form .button {
        width: 100%;
    }
}

/* ========================================
   18. Community Boards
======================================== */

/* 커뮤니티 게시판 영역 */
.community-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
    border-top: 1px solid var(--line);
}

.community-section .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.community-section .section-heading h2 {
    margin: 8px 0 0;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
}

.community-header {
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.community-header h1 {
    margin: 0 0 12px;
    color: var(--forest);
    font-size: 32px;
}

.community-header p {
    color: var(--muted);
    line-height: 1.7;
}

/* 홈페이지의 커뮤니티 게시판 카드 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.community-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    min-height: 150px;
    padding: 28px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    border-color: #a8ba8d;
    box-shadow: 0 12px 32px #28351b0a;
}

.community-icon {
    display: flex;
}

/* 기존 커뮤니티 게시글 목록 스타일 */
.community-post {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.community-post h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.community-post p {
    line-height: 1.8;
    white-space: pre-line;
}

.community-post-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.community-board-empty {
    padding: 50px 0;
    color: var(--muted);
    text-align: center;
}

/* ========================================
   19. Community Post Form
======================================== */

.community-write-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
    box-sizing: border-box;
}

.community-write-description {
    margin: 0 0 32px;
    color: var(--muted);
    line-height: 1.8;
}

.community-write-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.community-write-form .write-field {
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.community-write-form .write-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.community-write-form input[type="text"],
.community-write-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px 16px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.community-write-form textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.8;
}

.community-write-form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.community-write-form .write-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

/* ========================================
   20. Board View Toggle
======================================== */

/* 게시글 수와 보기 메뉴를 같은 줄에 배치 */
.section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.view-toggle-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: var(--forest);
    color: var(--white);
}

/* ========================================
   21. Post Cards: Whole Card Click
======================================== */

.post-card {
    position: relative;
    cursor: pointer;
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* 카드 내부의 제목·이미지·하단 링크를 클릭 가능하게 유지 */
.post-card h3,
.post-card .card-image,
.post-card .card-bottom a {
    position: relative;
    z-index: 2;
}

/* 커뮤니티 카드 이미지 */
.community-post-card .card-image {
    overflow: hidden;
}

.community-post-card .card-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 조회수와 댓글 수 */
.post-stats {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

/* ========================================
   22. Post List: Whole Row Click
======================================== */

.post-list-wrap,
.post-list-wrapper {
    width: 100%;
    overflow-x: auto;
}

.post-list {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.post-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.post-list th,
.post-list td,
.post-list-table th,
.post-list-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.post-list th,
.post-list-table th {
    background: var(--paper);
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.post-list-title {
    width: 48%;
    text-align: left;
}

.post-list-title a,
.post-list td a,
.post-list-table td a {
    color: inherit;
    text-decoration: none;
}

.post-list-title a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.post-list-date {
    white-space: nowrap;
}

.post-list-empty,
.empty-list {
    padding: 32px 12px !important;
    color: var(--muted);
    text-align: center;
}

.empty-list a {
    margin-left: 8px;
    color: var(--forest);
}

/* 리스트 행 전체 클릭 */
.post-list-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.post-list-row:hover {
    background-color: #f0f4e7;
}

.post-list-row:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

/* ========================================
   18. Community Boards
======================================== */

/* 커뮤니티 게시판 영역 */
.community-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
    border-top: 1px solid var(--line);
}

.community-section .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px;
}

.community-section .section-heading h2 {
    margin: 8px 0 0;
    font-size: 27px;
    font-weight: 600;
    letter-spacing: -1px;
}

.community-header {
    padding-bottom: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.community-header h1 {
    margin: 0 0 12px;
    color: var(--forest);
    font-size: 32px;
}

.community-header p {
    color: var(--muted);
    line-height: 1.7;
}

/* 홈페이지의 커뮤니티 게시판 카드 */
.community-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.community-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    min-height: 150px;
    padding: 28px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
    transition: transform 0.2s ease, box-shadow 0.2s ease,
                border-color 0.2s ease;
}

.community-card:hover {
    transform: translateY(-3px);
    border-color: #a8ba8d;
    box-shadow: 0 12px 32px #28351b0a;
}

.community-icon {
    display: flex;
}

/* 기존 커뮤니티 게시글 목록 스타일 */
.community-post {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.community-post h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.community-post p {
    line-height: 1.8;
    white-space: pre-line;
}

.community-post-meta {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: 13px;
}

.community-board-empty {
    padding: 50px 0;
    color: var(--muted);
    text-align: center;
}

/* ========================================
   19. Community Post Form
======================================== */

.community-write-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 5.5vw 74px;
    box-sizing: border-box;
}

.community-write-description {
    margin: 0 0 32px;
    color: var(--muted);
    line-height: 1.8;
}

.community-write-form {
    width: 100%;
    max-width: none;
    box-sizing: border-box;
}

.community-write-form .write-field {
    width: 100%;
    margin-bottom: 24px;
    box-sizing: border-box;
}

.community-write-form .write-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

.community-write-form input[type="text"],
.community-write-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 15px 16px;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

.community-write-form textarea {
    min-height: 280px;
    resize: vertical;
    line-height: 1.8;
}

.community-write-form input[type="file"] {
    display: block;
    width: 100%;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.community-write-form .write-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

/* ========================================
   20. Board View Toggle
======================================== */

/* 게시글 수와 보기 메뉴를 같은 줄에 배치 */
.section-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.view-toggle-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 5px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    white-space: nowrap;
}

.view-toggle-btn:hover,
.view-toggle-btn.active {
    background: var(--forest);
    color: var(--white);
}

/* ========================================
   21. Post Cards: Whole Card Click
======================================== */

.post-card {
    position: relative;
    cursor: pointer;
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}

/* 카드 내부의 제목·이미지·하단 링크를 클릭 가능하게 유지 */
.post-card h3,
.post-card .card-image,
.post-card .card-bottom a {
    position: relative;
    z-index: 2;
}

/* 커뮤니티 카드 이미지 */
.community-post-card .card-image {
    overflow: hidden;
}

.community-post-card .card-image img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

/* 조회수와 댓글 수 */
.post-stats {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
}

/* ========================================
   22. Post List: Whole Row Click
======================================== */

.post-list-wrap,
.post-list-wrapper {
    width: 100%;
    overflow-x: auto;
}

.post-list {
    width: 100%;
    border-collapse: collapse;
    text-align: center;
    font-size: 14px;
}

.post-list-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.post-list th,
.post-list td,
.post-list-table th,
.post-list-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--line);
}

.post-list th,
.post-list-table th {
    background: var(--paper);
    color: var(--muted);
    font-weight: 600;
    white-space: nowrap;
}

.post-list-title {
    width: 48%;
    text-align: left;
}

.post-list-title a,
.post-list td a,
.post-list-table td a {
    color: inherit;
    text-decoration: none;
}

.post-list-title a:hover {
    color: var(--forest);
    text-decoration: underline;
}

.post-list-date {
    white-space: nowrap;
}

.post-list-empty,
.empty-list {
    padding: 32px 12px !important;
    color: var(--muted);
    text-align: center;
}

.empty-list a {
    margin-left: 8px;
    color: var(--forest);
}

/* 리스트 행 전체 클릭 */
.post-list-row {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.post-list-row:hover {
    background-color: #f0f4e7;
}

.post-list-row:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

/* ========================================
   23. Community & Board Responsive
======================================== */

@media (max-width: 900px) {
    .community-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .community-write-section {
        padding-right: 20px;
        padding-left: 20px;
    }

    .community-write-form textarea {
        min-height: 220px;
    }
}

@media (max-width: 620px) {
    .community-section {
        padding: 30px 20px 50px;
    }

    .community-header h1 {
        font-size: 26px;
    }

    .community-section .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .section-tools {
        width: 100%;
        justify-content: space-between;
        gap: 10px;
    }

    .view-toggle-btn {
        padding: 7px 9px;
        font-size: 12px;
    }

    .post-list {
        min-width: 680px;
    }

    .post-list-table {
        min-width: 600px;
    }

    .post-stats {
        font-size: 11px;
    }
}

/* ========================================
   24. Authentication Pages
======================================== */

.auth-page {
    max-width: 1400px;
    min-height: 650px;
    margin: 0 auto;
    padding: 66px 5.5vw 90px;

    display: grid;
    grid-template-columns: 1fr 440px;
    align-items: start;
    gap: 8vw;
}

.auth-heading {
    padding-top: 48px;
}

.auth-heading h1 {
    max-width: 600px;
    margin: 24px 0 18px;

    color: var(--forest);
    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -2.5px;
}

.auth-heading > p {
    max-width: 440px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.9;
}

.auth-panel {
    padding: 32px;

    border: 1px solid var(--line);
    border-radius: 16px;

    background: var(--white);
    box-shadow: 0 16px 45px #28351b08;
}

.auth-panel h2 {
    margin: 0 0 8px;
    color: var(--forest);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.8px;
}

.auth-description {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.8;
}

.google-login-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    width: 100%;
    min-height: 48px;
    margin: 0;

    border: 1px solid var(--line);
    border-radius: 9px;

    background: var(--white);
    color: var(--ink);

    font-size: 13px;
    font-weight: 600;

    transition: background 0.2s, border-color 0.2s;
}

.google-login-button:hover {
    background: var(--paper);
    border-color: #c9d1c0;
}

.google-symbol {
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: #4285f4;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 25px 0;

    color: #92968d;
    font-size: 11px;
    white-space: nowrap;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: var(--line);
}

.auth-form {
    width: 100%;
}

.auth-field {
    margin-bottom: 19px;
}

.auth-field label {
    display: block;
    margin-bottom: 8px;

    color: #454b42;
    font-size: 12px;
    font-weight: 600;
}

.auth-field input,
.auth-field select {
    display: block;
    width: 100%;
    min-height: 45px;
    padding: 11px 12px;

    border: 1px solid #e0e4da;
    border-radius: 8px;

    outline: none;
    background: var(--white);
    color: var(--ink);

    font: 13px 'DM Sans', 'Noto Sans KR', sans-serif;
}

.auth-field input:focus,
.auth-field select:focus {
    border-color: #91a87a;
    box-shadow: 0 0 0 3px #eaf0e2;
}

.auth-field input[type="checkbox"] {
    display: inline-block;
    width: auto;
    min-height: auto;
}

.auth-field-error,
.auth-errors {
    margin: 7px 0 0;
    color: #b53d3d;
    font-size: 12px;
}

.auth-errors {
    margin-bottom: 18px;
}

.auth-help {
    margin-top: 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.auth-help ul {
    padding-left: 18px;
}

.auth-submit {
    width: 100%;
    min-height: 47px;
    margin-top: 4px;
}

.auth-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;

    margin-top: 25px;
    padding-top: 20px;

    border-top: 1px solid #eff0ec;

    color: var(--muted);
    font-size: 12px;
}

.auth-bottom a {
    color: var(--forest);
    font-weight: 700;
}

.auth-bottom a:hover {
    text-decoration: underline;
}

/* 인증 화면 반응형 */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr 400px;
        gap: 35px;
    }

    .auth-heading h1 {
        font-size: 42px;
    }
}

@media (max-width: 700px) {
    .auth-page {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 42px 20px 60px;
    }

    .auth-heading {
        padding-top: 0;
    }

    .auth-heading h1 {
        margin: 17px 0 12px;
        font-size: 36px;
        letter-spacing: -1.5px;
    }

    .auth-heading > p {
        font-size: 13px;
    }

    .auth-panel {
        padding: 26px 22px;
    }
}

/* 댓글 입력창: 전체 폭 사용, 크기 조절 금지 */

.comment-form {
    width: 100%;
}

.comment-form textarea.comment-textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 120px;
    box-sizing: border-box;
    resize: none;
    margin: 0;
}

.pagination {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px auto;
    padding: 0;
    box-sizing: border-box;
    text-align: center;
}

.pagination a,
.pagination .current-page {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
}

main .pagination,
.content .pagination {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 36px auto !important;
    padding: 0 !important;
    box-sizing: border-box;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-actions .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 42px;
    padding: 0 18px;
    font: inherit;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.form-actions form {
    margin: 0;
}