@charset "utf-8";


/* 기본 배너 스타일 */
.main-banner {
    position: relative;
    width: 100%;
    height: 350px; /* PC 기준 높이 */
    background: url('../img/lou_bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    overflow: hidden;
	margin-bottom:50px;
}

/* 배경을 살짝 어둡게 하여 글자 가독성 높임 (Overlay) */
.main-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.2); /* 이미지에 따라 조절 */
}

.banner-content {
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.banner-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
	color:#fff;
}

.banner-text {
    font-size: 18px;
    line-height: 1.6;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    word-break: keep-all; /* 단어 단위 줄바꿈으로 깔끔하게 유지 */
}

/* 📱 모바일 반응형 (768px 이하) */
@media (max-width: 768px) {
    .main-banner {
        height: 280px; /* 모바일에서 높이 축소 */
    }

    .banner-title {
        font-size: 32px; /* 타이틀 크기 축소 */
        margin-bottom: 15px;
    }

    .banner-text {
        font-size: 15px; /* 본문 크기 축소 */
        line-height: 1.5;
        padding: 0 10px;
    }

    /* 모바일에서 강제 줄바꿈 해제 또는 최적화 */
    .banner-text br {
        display: none; /* 화면이 좁을 땐 브라우저 자동 줄바꿈 사용 */
    }
}


section.edunator {
    padding: 0 0 72px 0;
}

section.edunator .cont {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

section.edunator h3 {
    display: block;
    margin: 0 0 10px 0;
    color: #17393C;
    font-size: 27px;
    font-weight: 700;
}

.board-header {
    display: flex;
    justify-content: space-between; /* 좌우 끝으로 배치 */
    align-items: flex-end;         /* 하단 라인 맞춤 */
    padding-bottom: 10px;
    border-bottom: 2px solid #333; /* 스크린샷의 굵은 실선 */
    margin-bottom: 10px;
}

.board-title {
    font-size: 24px;
    font-weight: bold;
    color: #1a3a4a; /* 스크린샷의 짙은 네이비 색상 */
    margin: 0;
}

.title-more {
    font-size: 14px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 4px; /* 타이틀 글자 하단 라인과 맞추기 위해 조절 */
}

.title-more i {
    font-size: 12px;
}


.board-list {
    list-style: none;
    padding: 0;
    margin: 50px 0;
    border-top: 1px solid #333;
}

.board-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 1px solid #eee;
    background: #fff;
    gap: 15px;
}

/* 1, 2. 카테고리 및 제목 영역 */
.item-main {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0; /* 말줄임 작동을 위한 설정 */
}

.cate {
	min-width:80px;
    background: #f0f0f0;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: #fff;
	text-align:center;
    white-space: nowrap;
}

.subject {
    font-size: 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 제목 말줄임 */
}

/* 3, 4, 5. 답변유무, 날짜, 답변자 정보 영역 */
.item-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: #888;
}

/* 답변유무 스타일 */
.status {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
}
.status-on { background: #e8f5e9; color: #2e7d32; } /* 답변완료: 초록 */
.status-off { background: #ffebee; color: #c62828; } /* 답변대기: 빨강 */

/* 답변자 및 평점 */
.answer-info {
    display: flex;
    align-items: center;
    gap: 5px;
	width: 120px;
}
.answerer { color: #555; font-weight: 500; }
.rating { color: #fbc02d; font-weight: bold; }

/* 모바일 대응 (반응형) */
@media (max-width: 768px) {
    
	.sec00 p {font-size: 20px;}


	.edunator { padding: 20px 20px !important; }

	.board-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .item-main {
        width: 100%;
    }
    
    .item-meta {
        width: 100%;
        justify-content: space-between;
        gap: 5px;
        font-size: 12px;
    }
    
    .subject {
        white-space: normal; /* 모바일에서는 제목 줄바꿈 허용 선택 가능 */
        display: -webkit-box;
        -webkit-line-clamp: 1;
        -webkit-box-orient: vertical;
    }
}

.subject-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.writer {
    font-size: 12px;
    color: #999;
    white-space: nowrap;
    position: relative;
    padding-left: 10px;
}

/* 제목과 질문자명 사이에 구분선(dot) 추가 */
.writer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 2px;
    background: #ccc;
    border-radius: 50%;
}

/* 모바일에서는 질문자명을 제목 아래로 내릴 수 있습니다 */
@media (max-width: 768px) {
    .subject-wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }
    .writer::before { display: none; }
    .writer { padding-left: 0; }
}


/* 목록 */
        .edunator-wrapper {
            max-width: 1250px;
            margin: 0 auto;
        }

        /* --- [추가] 상단 필터 섹션 --- */
        .list-filter-bar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 30px;
            gap: 20px;
        }

        /* 좌측 카테고리 (버튼형) */
        .category-group {
            display: flex;
            gap: 10px;
        }
        .category-tab {
            padding: 10px 22px;
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 700;
            color: #64748b;
            cursor: pointer;
            transition: all 0.2s;
        }
        .category-tab.active {
            background: #334155;
            color: #fff;
            border-color: #334155;
        }

        /* 우측 진행상황 (텍스트 필터형) */
        .status-filter-group {
            display: flex;
            gap: 20px;
        }
        .status-filter {
            font-size: 16px;
            font-weight: 700;
            color: #94a3b8;
            cursor: pointer;
            position: relative;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        .status-filter.active { color: #3b82f6; }
        .status-filter::before {
            content: '';
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: #cbd5e1;
        }
        .status-filter.waiting.active::before { background: #f43f5e; }
        .status-filter.active.processing::before { background: #ca8a04; }
        .status-filter.completed.active::before { background: #10b981; }

        /* [PC] 4열 그리드 고정 */
        .edunator-list {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            margin-bottom: 30px;
        }

        .edunator-list .card-item {
            background: #fff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 24px;
            display: flex;
            flex-direction: column;
            transition: all 0.2s ease-in-out;
            min-width: 0;
            box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        }

        .edunator-list .card-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.15);
            border-color: #3b82f6;
        }

        /* 뱃지 & 상태 스타일 */
        .edunator-list .badge { font-size: 14px; padding: 4px 12px; border-radius: 6px; color: #fff; font-weight: 700; background: #0ea5e9; }
        .edunator-list .status { padding: 4px 12px; border-radius: 8px; font-size: 13px; font-weight: 800; }
        .edunator-list .status.waiting { background-color: #fff1f2; color: #f43f5e; border: 1px solid #ffe4e6; }
        .edunator-list .status.active { background-color: #fefce8; color: #ca8a04; border: 1px solid #fef08a; }
        .edunator-list .status.completed { background-color: #eff6ff; color: #3b82f6; border: 1px solid #dbeafe; }

        /* 제목 (빅폰트) */
        .edunator-list .card-subject { 
            font-size: 19px; 
            font-weight: 800; 
            color: #1e293b; 
            white-space: nowrap; 
            overflow: hidden; 
            text-overflow: ellipsis; 
            margin: 18px 0; 
        }

        .edunator-list .card-stats { display: flex; gap: 12px; font-size: 15px; color: #94a3b8; margin-bottom: 18px; }
        .edunator-list .card-stats b { color: #f43f5e; }

        .edunator-list .card-info { display: flex; justify-content: space-between; padding-top: 15px; border-top: 1px solid #f1f5f9; }
        .edunator-list .writer { font-size: 15px; color: #64748b; font-weight: 700; }
        .edunator-list .date { font-size: 14px; color: #cbd5e1; }

        /* 하단 우측 버튼 */
        .btn-container { display: flex; justify-content: flex-end; margin: 20px 0 40px 0; }

		.btn-container a{
			display: inline-flex;
			align-items: center;
			justify-content: center;
			height: 40px;
			padding: 0 18px;
			font-size: 14px;
			font-weight: 500;
			border-radius: 6px;
			text-decoration: none;
			transition: all 0.2s ease;
		}
        .write-btn {
            background: #81d8df;
			color: #fff;
			border: 1px solid #81d8df;
        }
        .write-btn:hover { background-color: #2563eb; transform: translateY(-2px); }

        /* --- 반응형 설정 --- */
        @media (max-width: 1024px) {
			.edunator-wrapper {padding: 0 20px 20px 20px;}
            .edunator-list { grid-template-columns: repeat(2, 1fr); }
			.list-filter-bar { flex-direction: column; align-items: flex-start; }
            .status-filter-group { justify-content: space-between; padding-top: 15px; }
            .category-group { overflow-x: auto; width: 100%; padding-bottom: 5px; }
            .category-tab { white-space: nowrap; }
			
        }

        @media (max-width: 768px) {
            .list-filter-bar { flex-direction: column; align-items: flex-start; }
            .status-filter-group { justify-content: space-between; padding-top: 15px; }
            .category-group { overflow-x: auto; width: 100%; padding-bottom: 5px; }
            .category-tab { white-space: nowrap; }
        }

        @media (max-width: 640px) {
            body { padding: 15px; }
            .edunator-list { grid-template-columns: 1fr; gap: 15px; }
            .edunator-list .card-subject { font-size: 20px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
            .write-btn { width: 100%; justify-content: center; }
            .status-filter { font-size: 14px; }
        }