.section-community {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.filter-form-community {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-form-community select,
.filter-form-community input[type="text"] {
    padding: 6px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.filter-form-community button {
    padding: 6px 14px;
    font-size: 14px;
    background: #006400;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.card-grid-community {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.card-community {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s;
}

.card-community:hover {
    transform: translateY(-4px);
}

.thumb-community {
    background-size: contain;
    background-position: center;

}

/* 비율 구분 */
.thumb-community.ratio-a4 {
    aspect-ratio: 3 / 4;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    /* 세로형 A4 */
}

.thumb-community.ratio-4-3 {
    aspect-ratio: 4 / 3;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    /* 일반 사진 비율 */
}

.card-body-community {
    padding: 12px;
}

.category-community {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.title-community {
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.date-community {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}

a.card-community-link {
    text-decoration: none;
    color: inherit;
}

.pagination-community {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination-community a {
    padding: 6px 12px;
    border: 1px solid #ccc;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination-community a.active {
    background: #333;
    color: #fff;
    font-weight: bold;
    pointer-events: none;
}

.view-wrap {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.view-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.view-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.view-thumb {
    width: 100%;
    max-height: 1000px;
    object-fit: contain;
    margin-bottom: 20px;
}

.view-content {
    font-size: 16px;
    line-height: 1.8;
}

.search-form-deptnews {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-input-deptnews {
    padding: 10px 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
    width: 240px;
    transition: all 0.2s ease;
}

.search-input-deptnews:focus {
    outline: none;
    border-color: #006400;
    box-shadow: 0 0 0 2px rgba(0, 100, 0, 0.15);
}

.search-button-deptnews {
    padding: 10px 18px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button-deptnews:hover {
    background-color: #004f00;
}

.view-back-button-wrap {
    margin-top: 40px;
    text-align: center;
}

.view-back-button {
    display: inline-block;
    background-color: #006400;
    color: #fff;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.view-back-button:hover {
    background-color: #004d00;
}