/* commu_intro_style.css */
/* 커뮤팜 요약 페이지의 summary-title은 그리드 레이아웃을 사용하지 않으므로, 기본 스타일로 되돌립니다. */
.summary-post-list li a {
    display: flex; /* flexbox 레이아웃으로 변경 */
    align-items: center;
    overflow: hidden; /* 자식 요소가 넘치지 않도록 */
}
.commupharm-page .summary-post-list .summary-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 커뮤팜 요약 페이지의 댓글 수/게시물 수 스타일 */
.commupharm-page .summary-post-list .summary-comment-count {
    color: #6c5ce7; /* 커뮤팜 대표색 */
    margin-left: auto; /* 오른쪽 끝으로 밀어냄 */
    padding-left: 10px;
}

/* 커뮤니티 검색 폼 스타일 */
.community-search-form {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}
.community-search-form input {
    flex-grow: 1;
    padding: 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}
.community-search-form input:focus {
    border-color: #6c5ce7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.community-search-form button {
    padding: 10px 20px;
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.2s;
}
.community-search-form button:hover {
    opacity: 0.9;
}

/* --- 요약 페이지 공통 스타일 (commu_style.css에서 이동) --- */
.summary-container {
    padding-top: 20px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 3열 -> 2열로 변경 */
    gap: 30px;
}

.summary-section {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s, transform 0.3s;
}

.summary-section:hover {
    box-shadow: 0 4px 20px rgba(108, 92, 231, 0.15);
    transform: translateY(-2px);
}

.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e8e4ff;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.summary-header h2 {
    margin: 0;
    font-size: 18px;
    color: #6c5ce7; /* 커뮤팜 대표 색상 */
    font-weight: 600;
}

.summary-post-list {
    list-style: none;
    padding: 0;
    min-height: 230px; /* 10개 -> 7개 분량으로 높이 조정 */
    margin: 0;
}

.summary-post-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f3f5;
}
.summary-post-list li:last-child {
    border-bottom: none;
}
.summary-post-list li a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    overflow: hidden;
}
.summary-post-list li a:hover .summary-title {
    text-decoration: underline;
}
.summary-post-list .summary-category {
    color: #868e96;
    margin-right: 8px;
    flex-shrink: 0;
}
.summary-post-list .no-posts {
    color: #adb5bd;
    font-size: 14px;
    text-align: center;
    padding: 20px 0;
}

/* --- 소개 페이지 하단 섹션 (commu_style.css에서 이동) --- */


.intro-section {
    background-color: #fff;
    border: none;
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.intro-section h2 {
    font-size: 18px;
    color: #343a40;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 10px;
}

.commupharm-intro p {
    font-size: 15px;
    line-height: 1.8;
    color: #495057;
}

.features-intro p {
    font-size: 15px;
    line-height: 1.7;
    color: #495057;
    margin: 0;
}

/* --- 커뮤니티 검색 결과 페이지 스타일 --- */
.search-result-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 700px;
}
.search-result-list li {
    border-bottom: 1px solid #e9ecef;
}
.search-result-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    text-decoration: none;
    color: #343a40;
    transition: background-color 0.2s;
}
.search-result-list li a:hover {
    background-color: #f8f9fa;
}
.result-board-name { font-weight: 600; }
.result-board-type { font-size: 13px; color: #fff; background-color: #6c5ce7; padding: 3px 8px; border-radius: 10px; }

/* --- 아코디언 스타일 --- */
.accordion {
    width: 100%;
}
.accordion-item {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}
.accordion-header {
    background-color: #f8f9fa;
    color: #495057;
    cursor: pointer;
    padding: 15px 20px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s;
}
.accordion-header:hover, .accordion-header.active {
    background-color: #e9ecef;
}
.accordion-content {
    padding: 0 20px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .commu-intro-layout {
        grid-template-columns: 1fr; /* 모바일에서는 1단으로 변경 */
    }
}