/* ==================== 유틸리티 클래스 ==================== */
.d-none {
    display: none !important;
}

.hidden {
    display: none !important;
}

/* ==================== 메인 배너 섹션 ==================== */
.banner-section {
    position: relative;
    height: 300px;
    max-width: 1920px;
    margin: 0 auto 2rem;
    overflow: hidden;
    background: #667eea;
    border-radius: 8px;
}

/* 배너 캐러셀 컨테이너 */
.banner-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* 슬라이드 트랙 - transform으로 이동 */
.banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 개별 슬라이드 */
.banner-slide {
    min-width: 100%;
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 배너 링크 */
.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* 이미지 래퍼 */
.banner-image-wrapper {
    display: block;
    width: 100%;
    height: 100%;
}

/* 배너 이미지 */
.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 빈 배너 */
.banner-empty {
    background: #667eea;
}

.banner-empty-content {
    text-align: center;
    color: white;
    padding: 2rem;
}

.banner-empty-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-empty-text {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

.banner-empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-banner-outline {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-banner-outline:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* 이전/다음 버튼 */
.banner-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.banner-btn:hover {
    background: rgba(0, 0, 0, 0.5);
}

.banner-btn-prev {
    left: 15px;
}

.banner-btn-next {
    right: 15px;
}

/* Font Awesome 아이콘 스타일 */
.banner-btn i {
    font-size: 20px;
    color: white;
}

/* 인디케이터 */
.banner-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.banner-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
}

.banner-indicator.active {
    background: white;
    width: 30px;
    border-radius: 5px;
}

/* ==================== 기존 배너 스타일 (호환성) ==================== */

.btn-banner-outline:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
}

.banner-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.banner-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.banner-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.banner-description {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.btn-banner {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
}

.btn-banner:hover {
    background: rgba(255,255,255,0.3);
    color: white;
    text-decoration: none;
}

.banner-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.banner-background-picture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.banner-background-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 배너 오버레이 (어두운 필터) */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
    pointer-events: none;
}

/* 배너 링크 래퍼 */
.banner-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

/* 버튼 스타일 변형 */
.btn-banner-outline {
    display: inline-block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.btn-banner-outline:hover {
    background: white;
    color: #667eea;
    text-decoration: none;
}

/* 캐러셀 인디케이터 (점) */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicators button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-indicators button.active,
.carousel-indicators button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

/* 캐러셀 컨트롤 */
.carousel-control-prev,
.carousel-control-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(8px);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control-prev:active,
.carousel-control-next:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-control-prev {
    left: 1rem;
}

.carousel-control-next {
    right: 1rem;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 16px;
    height: 16px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: invert(1);
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='m5.25 0-.75.75 2.25 2.25h-5.5v1h5.5l-2.25 2.25.75.75 3.5-3.5z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='m5.25 0-.75.75 2.25 2.25h-5.5v1h5.5l-2.25 2.25.75.75 3.5-3.5z'/%3e%3c/svg%3e");
}

/* ==================== 메인 콘텐츠 섹션 ==================== */
.main-content-sections {
    padding: 1.5rem 0 3rem;
    background: #f5f6f7;
    min-height: 60vh;
}

/* 게시판 섹션들을 그리드로 배치 */
.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(600px, 1fr));
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* ==================== 게시판 섹션 기본 스타일 ==================== */
.board-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e9ecef;
    margin-bottom: 1rem;
    height: fit-content;
}

/* ==================== 게시판 헤더 ==================== */
.board-header {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.board-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #212529;
}

.board-title i {
    color: #007bff;
    font-size: 1.3rem;
}

.board-title h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.post-count {
    font-size: 0.9rem;
    color: #6c757d;
    font-weight: 400;
}

/* ==================== 필터 버튼 (소식 섹션용) ==================== */
.board-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

/* ==================== 게시판 콘텐츠 ==================== */
.board-content {
    padding: 0;
}

/* ==================== 게시글 테이블 헤더 ==================== */
.post-list-header {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 80px;
    grid-template-areas: "badge title author date views";
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    font-size: 0.85rem;
    color: #495057;
}

.post-list-header .header-badge { grid-area: badge; text-align: center; }
.post-list-header .header-title { grid-area: title; }
.post-list-header .header-author { grid-area: author; text-align: center; }
.post-list-header .header-date { grid-area: date; text-align: center; }
.post-list-header .header-views { grid-area: views; text-align: center; }

/* ==================== 일반 게시판용 헤더 (PC에서도 숨김) ==================== */
.community-post-list-header {
    display: none; /* PC/모바일 모두 리스트형 레이아웃 사용 */
}

/* ==================== 게시글 아이템 (테이블 행 스타일) ==================== */
.post-item {
    display: grid;
    grid-template-columns: 80px 1fr 120px 100px 80px;
    grid-template-areas: "badge title author date views";
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    background: white;
    transition: background-color 0.2s ease;
}

.post-item:hover {
    background-color: #f8f9fa;
}

.post-item:last-child {
    border-bottom: none;
}

/* ==================== 뉴스 게시글 리스트 (카드형) ==================== */
.news-post-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.news-post-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    background: white;
    transition: all 0.2s ease;
}

.news-post-item:hover {
    background-color: #f8f9fa;
}

.news-post-item:last-child {
    border-bottom: none;
}

.news-content {
    flex: 1;
    min-width: 0;
}

.news-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.news-badge.notice {
    background: #dc3545;
    color: white;
}

.news-badge.event {
    background: #28a745;
    color: white;
}

.news-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.news-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-title a:hover {
    color: #007bff;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #6c757d;
}

.news-author {
    font-weight: 600;
    color: #495057;
}

.news-date {
    color: #9ca3af;
}

.news-views {
    color: #6c757d;
}

.news-thumbnail {
    width: 100px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-thumbnail.no-image {
    background: #f8f9fa;
    color: #999;
}

.news-thumbnail.no-image i {
    font-size: 1.5rem;
}

/* ==================== 커뮤니티 게시글 리스트 (카드형) ==================== */
.community-post-list {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

.community-post-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0.875rem 1.5rem;
    border-bottom: 1px solid #f1f3f4;
    background: white;
    transition: all 0.2s ease;
    position: relative;
}

.community-post-item:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
}

.community-post-item:last-child {
    border-bottom: none;
}

/* 썸네일 영역 - 크기 증가 */
.post-thumbnail {
    width: 120px;
    height: 90px;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e9ecef;
}

.post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.post-thumbnail.no-image {
    background: #f8f9fa;
    color: #999;
}

.post-thumbnail.no-image i {
    font-size: 1.5rem;
}

/* 컨텐츠 영역 */
.post-content {
    flex: 1;
    min-width: 0;
}

.post-title-section {
    margin-bottom: 0.5rem;
}

.community-post-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    max-height: 3em;
}

.community-post-title a {
    color: #212529;
    text-decoration: none;
    display: block;
    transition: color 0.2s ease;
}

.community-post-title a:hover {
    color: #007bff;
}

.comment-count {
    color: #6c757d;
    font-weight: 500;
    margin-left: 0.25rem;
}

/* 메타 정보 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.85rem;
    color: #6c757d;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.post-meta .author-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.post-author {
    font-weight: 600;
    color: #495057;
}

.post-date {
    color: #9ca3af;
    font-size: 0.8rem;
}

.post-stats {
    display: flex;
    gap: 0.75rem;
}

.post-views, .post-likes {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
}

.post-likes.negative {
    color: #dc3545;
}

.post-likes.negative {
    color: #dc3545;
}

.pc-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* 메타 정보 영역 */
.community-post-meta-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #f1f1f1;
}

.community-post-left-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.community-post-right-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* ==================== 게시글 배지 ==================== */
.post-badge {
    grid-area: badge;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    justify-self: center;
}

.post-badge.notice {
    background: #dc3545;
    color: white;
}

.post-badge.event {
    background: #28a745;
    color: white;
}

.post-badge.general {
    background: #6c757d;
    color: white;
}

/* ==================== 게시글 콘텐츠 ==================== */
.post-content {
    grid-area: title;
    min-width: 0;
}

.post-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-title a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.2s ease;
}

.post-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

.post-title .image-icon {
    color: #007bff;
    font-size: 0.8em;
    margin-right: 0.25rem;
}

/* ==================== 게시글 메타 정보 ==================== */
.post-meta {
    display: contents;
}

.post-author {
    grid-area: author;
    font-size: 0.8rem;
    font-weight: 500;
    color: #495057;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post-date {
    grid-area: date;
    font-size: 0.75rem;
    color: #6c757d;
    text-align: center;
    white-space: nowrap;
}

.post-views {
    grid-area: views;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: #6c757d;
}

.post-comments {
    display: none;
}

.post-comments i {
    color: #6c757d;
}

/* ==================== 일반 게시판 요소들 ==================== */
.community-post-number {
    display: none; /* PC 카드형에서는 번호 숨김 */
}

.community-post-content {
    min-width: 0;
    width: 100%;
}

.community-post-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-post-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.community-post-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

.community-post-title .comment-count {
    color: #6c757d;
    font-weight: 500;
    font-size: 0.85em;
    margin-left: 0.25rem;
}

.community-post-title .image-icon {
    color: #007bff;
    font-size: 0.8em;
    margin-right: 0.25rem;
}

.community-post-author {
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.community-post-date {
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
}

.community-post-views {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.community-post-views::before {
    content: "조회 ";
    color: #999;
}

.community-post-likes {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.community-post-likes::before {
    content: "추천 ";
    color: #999;
}

.community-post-likes.negative {
    color: #dc3545;
}

/* ==================== 게시판 푸터 ==================== */
.board-footer {
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    text-align: center;
    padding: 0.75rem 1.5rem;
}

.more-link {
    color: #007bff;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: 1px solid #007bff;
    transition: all 0.2s ease;
    background: transparent;
}

.more-link:hover {
    background: #007bff;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.more-link i {
    font-size: 0.8rem;
}

/* ==================== 빈 게시판 상태 ==================== */
.empty-board {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.empty-board i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.empty-board p {
    font-size: 1rem;
    margin: 0;
    color: #6c757d;
}

/* ==================== 소식 섹션 특별 스타일 ==================== */
.news-section .board-header {
    background: #e3f2fd;
}

.news-section .board-title i {
    color: #1976d2;
}

/* ==================== 필터 빈 상태 ==================== */
.filter-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem 1rem;
    color: #6c757d;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #dee2e6;
    margin: 1rem 0;
}

.filter-empty-state i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
    color: #adb5bd;
}

.filter-empty-state h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.filter-empty-state p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* PC에서는 모바일 전용 요소 숨김 */
.mobile-only {
    display: none;
}

/* ==================== PC용 댓글 영역 (기본) ==================== */
.comment-area {
    width: 32px;
    height: 32px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    flex-shrink: 0;
}

.comment-count {
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.comment-text {
    display: none; /* PC에서는 "댓글" 텍스트 숨김 */
}

/* ==================== 반응형 디자인 ==================== */

/* 대형 화면 (1600px 이상) */
@media (min-width: 1600px) {
    .sections-grid {
        max-width: 1600px;
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 태블릿 (769px - 1199px) */
@media (max-width: 1199px) and (min-width: 769px) {
    .sections-grid {
        grid-template-columns: 1fr;
        max-width: 800px;
    }
    
    .post-thumbnail {
        width: 100px;
        height: 75px;
    }
}

/* 모바일 (768px 이하) */
@media (max-width: 768px) {
    /* 배너 섹션 모바일 최적화 */
    .banner-section {
        height: 250px;
        margin-bottom: 1.5rem;
    }
    
    .banner-title {
        font-size: 1.8rem;
    }
    
    .banner-subtitle {
        font-size: 1rem;
    }
    
    .banner-description {
        font-size: 0.9rem;
    }
    
    /* 모든 테이블 헤더를 모바일에서 완전히 숨김 */
    .post-list-header,
    .community-post-list-header {
        display: none !important;
    }
    
    .main-content-sections {
        padding: 1rem 0 2rem;
    }
    
    .sections-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.75rem;
    }
    
    .board-section {
        margin-bottom: 0;
        border-radius: 8px;
    }
    
    .board-header {
        padding: 1rem 1.25rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .board-title h3 {
        font-size: 1.1rem;
    }
    
    .board-content {
        padding: 0;
    }
    
    .board-footer {
        padding: 0.75rem 1.25rem;
    }
    
    /* 게시글을 카드 형태로 변경 */
    .post-item {
        display: block !important;
        background: white;
        border: 1px solid #e9ecef;
        border-radius: 8px;
        padding: 1rem;
        margin: 0.75rem;
    }
    
    .post-item:last-child {
        border-bottom: 1px solid #e9ecef;
    }
    
    .post-badge {
        display: inline-block;
        margin-bottom: 0.5rem;
    }
    
    .post-content {
        margin-bottom: 0.75rem;
    }
    
    .post-title {
        white-space: normal;
        overflow: visible;
        text-overflow: initial;
        font-size: 1rem;
        font-weight: 600;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }
    
    .post-meta {
        display: flex !important;
        align-items: center;
        gap: 0.75rem;
        flex-wrap: wrap;
    }
    
    .post-author, .post-date, .post-views {
        text-align: left;
        white-space: normal;
    }
    
    .post-views {
        display: inline-block !important;
        font-size: 12px;
        color: #6c757d;
    }
    
    .post-meta-info .post-views {
        font-size: 11px;
        color: #999;
        margin-left: 0.5rem;
    }
    

    
    .post-comments {
        display: flex;
    }
    
    /* 커뮤니티 게시글 모바일 최적화 */
    .community-post-list {
        border-radius: 8px;
    }
    
    .community-post-item {
        padding: 1rem;
        gap: 0.75rem;
        flex-direction: row;
        align-items: flex-start;
        min-height: 120px;
        height: 120px;
        overflow: hidden;
    }
    
    .community-post-item:hover {
        background-color: white;
    }
    
    /* 효율적인 3구간 레이아웃 */
    .efficient-post-item {
        padding: 12px 16px;
        border-bottom: 1px solid #f1f3f4;
        background: white;
    }
    
    .efficient-post-item:hover {
        background-color: #f8f9fa;
    }
    
    .efficient-post-item:last-child {
        border-bottom: none;
    }
    
    .post-layout {
        display: flex;
        align-items: center;
        gap: 12px;
        min-height: 60px;
    }
    
    /* 왼쪽: 메인 컨텐츠 영역 (가변) */
    .content-area {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .post-title {
        margin: 0;
        font-size: 14px;
        font-weight: 400;
        line-height: 1.4;
        color: #333;
        overflow: hidden;
        text-overflow: ellipsis;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        line-clamp: 3;
        max-height: calc(1.4em * 3);
    }
    
    .post-title a {
        color: #333;
        text-decoration: none;
    }
    
    .post-title a:hover {
        color: #0066cc;
    }
    
    .post-meta-info {
        display: flex;
        gap: 8px;
        font-size: 11px;
        color: #666;
    }
    
    .author {
        font-weight: 500;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .date {
        color: #999;
    }
    
    /* 중간: 썸네일 영역 (고정, 있을 때만) */
    .thumbnail-area {
        width: 60px;
        height: 60px;
        border-radius: 6px;
        overflow: hidden;
        background: #f8f9fa;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        border: 1px solid #e9ecef;
    }
    
    .thumbnail-area img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    
    .thumbnail-area.no-image {
        display: none;
    }
    
    /* 모바일: 댓글 영역 (네이버 카페 스타일) */
    .comment-area {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0.5rem;
        flex-shrink: 0;
        min-width: 40px;
        background: transparent;
        border-radius: 0;
    }
    
    .comment-count {
        font-size: 14px;
        font-weight: 600;
        color: #272829;
        line-height: 1;
    }
    
    .comment-text {
        font-size: 11px;
        color: #6c757d;
        margin-top: 2px;
        line-height: 1;
        display: block; /* 모바일에서는 "댓글" 텍스트 표시 */
    }
    
    /* 모바일: 조회수/추천수/댓글수 표시 */
    .post-stats {
        display: flex;
        gap: 0.5rem;
        font-size: 12px;
        color: #6c757d;
        flex-wrap: wrap;
    }
    
    .post-stats .comment-count {
        display: inline-block !important;
        font-size: 12px;
        color: #6c757d;
        margin-left: 0;
    }
    
    /* 뉴스 섹션 모바일 최적화 */
    .news-post-item {
        padding: 1rem;
        gap: 0.75rem;
        min-height: 100px;
        height: 100px;
        overflow: hidden;
    }
    
    .news-content {
        flex: 1;
        max-width: calc(100% - 105px); /* 썸네일 너비(90px) + 여백(15px) */
        min-width: 0;
    }
    
    .news-thumbnail {
        width: 90px !important;
        height: 68px !important;
    }
    
    .news-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .news-post-item .news-title {
        font-size: 0.9rem !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-clamp: 2 !important;
        max-height: 2.8em !important;
        line-height: 1.4 !important;
        white-space: normal !important;
    }
    
    .community-post-item .post-thumbnail {
        width: 90px !important;
        height: 68px !important;
        border-radius: 6px;
    }
    
    .post-content {
        flex: 1;
        max-width: calc(100% - 105px); /* 썸네일 너비(90px) + 여백(15px) */
        min-width: 0;
    }
    
    .community-post-item .community-post-title {
        font-size: 0.9rem !important;
        font-weight: 600;
        line-height: 1.4 !important;
        margin-bottom: 0.5rem;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        line-clamp: 2 !important;
        max-height: 2.8em !important;
        white-space: normal !important;
    }
    
    .post-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
        flex-wrap: wrap;
    }
    
    .post-stats {
        gap: 0.5rem;
    }
    

    
    /* PC 전용 요소 숨김 */
    .pc-only {
        display: none !important;
    }
    
    .mobile-views::before {
        content: "조회 ";
        color: #999;
    }
    
    .mobile-likes::before {
        content: "추천 ";
        color: #999;
    }
    
    .board-filters {
        width: 100%;
        justify-content: flex-start;
    }
    
    .filter-btn {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 480px) {
    .banner-section {
        height: 200px;
    }
    
    .banner-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 0.5rem;
    }
    
    .board-header {
        padding: 0.75rem 1rem;
    }
    
    .board-footer {
        padding: 0.5rem 1rem;
    }
    
    .board-title {
        gap: 0.5rem;
    }
    
    .board-title h3 {
        font-size: 1rem;
    }
    
    .post-item,
    .community-post-item {
        margin: 0.5rem;
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    /* 480px에서는 썸네일 더 작게 */
    .post-thumbnail {
        width: 60px;
        height: 45px;
    }
    
    .post-title,
    .community-post-title {
        font-size: 0.9rem;
    }
    
    .post-meta,
    .community-post-meta {
        font-size: 0.75rem;
        gap: 0.5rem;
    }
}

/* 데이터 속성 기반 배너 색상 시스템 */
[data-text-color="white"] .banner-title,
[data-text-color="white"] .banner-subtitle,
[data-text-color="white"] .banner-description {
    color: white !important;
}

[data-text-color="black"] .banner-title,
[data-text-color="black"] .banner-subtitle,
[data-text-color="black"] .banner-description {
    color: black !important;
}

[data-bg-color="blue"] {
    background-color: #007bff !important;
}

[data-bg-color="red"] {
    background-color: #dc3545 !important;
}

[data-bg-color="green"] {
    background-color: #28a745 !important;
}

[data-bg-color="orange"] {
    background-color: #fd7e14 !important;
}
