




/* 기초사항 ==================================================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    color: #212529;
    line-height: 1.6;
    word-break: break-all;
}
a {
    text-decoration: none;
    color: inherit;
}





/* 공통부분 ==================================================================================================== */
.frame {
    max-width: 1000px;
    width: 100%;
    margin:0px auto;
    background-color: white;
    box-shadow: 0 0 10px 2px rgba(0, 0, 0, 0.15);
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
}
.header {
    position: sticky;
    top: 0;
    width: 100%;
    height: 50px;
    background-color: #f2f2f2;
    border-bottom: 1px solid #e9ecef;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
}
.logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.container {
    width: 100%;
    padding: 40px 20px;
    flex: 1;
}
.footer {
    width: 100%;
    height: 100px;
    background-color: #f2f2f2;
    border-top: 1px solid #e9ecef;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto; 
}
.footer p{
    font-size:1rem;
    color: #72787f;
}
@media (max-width: 767px) {
    .logo {
        font-size: 1rem;
    }
    .container {
        padding: 32px 16px;
    }
}
@media (max-width: 499px) {
    .container {
        padding: 24px 12px;
    }
}





/* 첫페이지, 목록 ==================================================================================================== */
.intro-section {
    margin-bottom: 40px;
    padding: 24px;
    background-color: #f2f2f2;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.intro-section h2 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #111;
    word-break: keep-all;
}
.intro-section p {
    color: #495057;
    font-size: 1.1rem;
    word-break: keep-all;
}
@media (max-width: 767px) {
    .intro-section {
        margin-bottom: 32px;
        padding: 20px;
    }
    .intro-section h2 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    .intro-section p {
        font-size: 1rem;
    }
}



.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
}
.card-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}
.card-item {
    display: flex;
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.thumbnail {
    width: 320px;
    aspect-ratio: 16 / 9;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
    background-color: #dee2e6;
}
.card-content {
    width:70%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 16px;
    flex-grow: 1;
}
.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #212529;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}
.card-date {
    font-size: 1rem;
    color: #868e96;
    word-break: keep-all;
}
@media (max-width: 767px) {
    .section-title {
        font-size: 1.2rem;
        margin-bottom: 16px;
    }
    .card-list {
        gap: 12px;
        margin-bottom: 32px;
    }
    .thumbnail {
        width: 40vw;
    }
    .card-content {
        width:unset;
    }
    .card-title {
        font-size: 1rem;
    }
    .card-date {
        font-size: 0.8rem;
    }
}
@media (max-width: 499px) {
    .card-content {
        padding: 6px 10px;
    }
    .card-title {
        font-size: 0.9rem;
    }
    .card-date {
        font-size: 0.7rem;
    }
}



.pagination {
    display: flex;
    gap: 6px;
}
.page-btn {
    border: 1px solid #dee2e6;
    background-color: #ffffff;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    color: #495057;
    transition: background-color 0.2s;
}
.page-btn:hover {
    background-color: #f1f3f5;
}
.page-btn.active {
    background-color: #212529;
    color: #ffffff;
    border-color: #212529;
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}
@media (max-width: 767px) {
    .page-btn {
        padding: 5px 10px;
        font-size: 0.8rem;
    }
}





/* 게시글 ==================================================================================================== */
.post-article {
}
.post-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111111;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: keep-all;
}
.post-date {
    font-size: 1rem;
    color: #868e96;
    word-break: keep-all;
}
.divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 24px 0;
}
@media (max-width: 767px) {
    .post-title {
        font-size: 1.4rem;
    }
    .post-date {
        font-size: 0.9rem;
    }
    .divider {
        margin: 20px 0;
    }
}
@media (max-width: 499px) {
    .post-title {
        font-size: 1.2rem;
    }
    .post-date {
        font-size: 0.8rem;
    }
    .divider {
        margin: 16px 0;
    }
}



.post-body {
}
.post-body p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.5;
    margin-bottom: 1rem;
    word-break: keep-all;
}
.post-body img {
    max-width: 100%;
    height: auto;
    border:1px solid #f3f3f3;
    border-radius: 4px;
    margin-bottom: 0.5rem;
    display: block;
}
@media (max-width: 767px) {
    .post-body p {
        font-size: 0.9rem;
    }
}



.post-footer {
    margin-top: 40px;
}
.btn-back {
    display: inline-block;
    padding: 8px 16px;
    background-color: #212529;
    color: #ffffff;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.2s;
}
.btn-back:hover {
    background-color: #495057;
}
@media (max-width: 767px) {
    .post-footer {
        margin-top: 30px;
    }
    .btn-back {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}



