@charset "UTF-8";

:root { --primary-color: #1a0b2e; --accent-color: #d4af37; --bg-light: #f9f9fb; }
html, body { height: 100%; margin: 0; }
body { display: flex; flex-direction: column; font-family: 'Pretendard', sans-serif; padding-top: 90px; }

/* --- 상단 헤더 --- */
header { position: fixed; top: 0; width: 100%; height: 90px; display: flex; align-items: flex-start; justify-content: space-between; background: var(--primary-color); padding: 30px 60px; z-index: 10000; color: white; overflow: hidden; transition: 0.4s ease; }
header:hover { height: 260px; background: rgba(11, 11, 46, 0.98); }
.logo { font-size: 22px; font-weight: 800; color: #fff; text-decoration: none; cursor: pointer; }
.nav-container { display: flex; gap: 60px; }
.nav-column > a { color: white; font-size: 16px; font-weight: 600; text-decoration: none; display: block; margin-bottom: 25px; }
.sub-menu { list-style: none; padding: 0; opacity: 0; transition: 0.3s; }
header:hover .sub-menu { opacity: 1; }
.sub-menu a { color: rgba(255, 255, 255, 0.6); font-size: 14px; text-decoration: none; display: block; margin-bottom: 12px; }

/* --- 사이드바 --- */
.container { flex: 1; display: grid; grid-template-columns: 250px 1fr; max-width: 1300px; margin: 0 auto; width: 100%; gap: 50px; padding: 60px 20px; }
.side-item { padding: 15px 20px; cursor: pointer; border-radius: 8px; color: #777; transition: 0.3s; margin-bottom: 5px; list-style: none; }
.side-item.active { background: var(--primary-color); color: #fff; font-weight: 700; }
.kids-group { overflow: hidden; max-height: 0; transition: max-height 0.4s ease; }
.kids-menu-root:hover .kids-group, .kids-menu-root.is-active .kids-group { max-height: 250px; }
.side-sub-item { padding: 12px 20px 12px 45px; font-size: 14px; color: #999; cursor: pointer; border-radius: 8px; list-style: none; transition: 0.2s; }
.side-sub-item:hover { color: var(--primary-color); background: #f0f0f5; }
.side-sub-item.active { color: var(--primary-color); font-weight: 700; background: #f0f0f5; }

/* --- 게시판 공통 --- */
.board-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.board-table th { border-bottom: 2px solid var(--primary-color); padding: 15px; }
.board-table td { padding: 15px; border-bottom: 1px solid #eee; text-align: center; }
.title-cell { text-align: left !important; cursor: pointer; }
.content-box { background: var(--bg-light); padding: 40px; border-radius: 12px; border: 1px solid #eee; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-weight: 700; margin-bottom: 10px; }
.form-group textarea { width: 100%; height: 400px; padding: 20px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 15px; resize: vertical; }
.form-group input { width: 100%; padding: 15px; border: 1px solid #ddd; border-radius: 8px; box-sizing: border-box; font-size: 15px; }

/* --- 사진 첨부 영역 --- */
.image-upload-box { border: 2px dashed #ccc; padding: 30px; text-align: center; cursor: pointer; border-radius: 10px; background: #fff; }
.image-upload-box:hover { border-color: var(--primary-color); }

/* --- 댓글 영역 스타일 --- */
.comment-section { margin-top: 50px; border-top: 1px solid #eee; padding-top: 30px; }
.comment-unit { padding: 20px 0; border-bottom: 1px solid #f5f5f5; }
.comment-info { margin-bottom: 8px; font-size: 14px; }
.comment-form { margin-top: 25px; display: flex; flex-direction: column; gap: 10px; }
.comment-form textarea { width: 100%; height: 120px; padding: 20px; border: 2px solid #eee; border-radius: 10px; font-size: 15px; resize: none; box-sizing: border-box; transition: 0.3s; }
.comment-form textarea:focus { border-color: var(--primary-color); outline: none; }
.comment-form .btn-main { align-self: flex-end; }

/* --- 학부모 의견란 인라인 수정 --- */
.talk-item { background: #fff; border: 1px solid #eee; padding: 25px; border-radius: 12px; margin-bottom: 15px; }
.talk-date-top { font-size: 12px; color: #bbb; margin-bottom: 8px; }
.talk-content-area { display: flex; align-items: flex-start; gap: 12px; }
.talk-nick { font-weight: 800; color: var(--primary-color); font-size: 16px; white-space: nowrap; }
.talk-text { font-size: 16px; color: #444; line-height: 1.6; flex: 1; }
.edit-inline-area { width: 100%; margin-top: 10px; }
.edit-inline-area textarea { width: 100%; height: 80px; padding: 10px; border: 1px solid var(--primary-color); border-radius: 8px; font-size: 15px; margin-bottom: 8px; }

.quick-write-box { background: #fff; border: 2px solid var(--primary-color); padding: 25px; border-radius: 12px; margin-top: 40px; }
.quick-write-box textarea { width: 100%; height: 120px; padding: 15px; border: 1px solid #ddd; border-radius: 8px; font-size: 15px; resize: none; margin-bottom: 10px; }

/* --- 검색창 하단 --- */
.board-footer { margin-top: 50px; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.pagination span { cursor: pointer; padding: 5px 12px; border: 1px solid #eee; border-radius: 4px; margin: 0 3px; }
.pagination .active { background: var(--primary-color); color: white; }
.search-area { display: flex; gap: 10px; padding: 20px; width: 100%; border-top: 1px solid #eee; justify-content: center; background: #fff; }
.search-area input { width: 320px; padding: 12px; border: 1px solid #ddd; border-radius: 8px; }

.btn-main { background: var(--primary-color); color: #fff; border: none; padding: 12px 30px; border-radius: 6px; cursor: pointer; font-weight: 600; }
.btn-sub { background: #eee; color: #333; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }
.btn-danger { background: #fee; color: #e74c3c; border: none; padding: 8px 15px; border-radius: 5px; cursor: pointer; }
