/* 큐코딩 */
.board-wrap.coding {
    --board-main: #1f4fa3;
    --board-soft: #edf3fa;
    --board-line: #1f4fa3;
}

/* 메타영수 */
.board-wrap.meta {
    --board-main: var(--color-academy-main);
    --board-soft: var(--color-academy-bg);
    --board-line: var(--color-academy-main);
}
.page-visual {
	height: 260px;
	background: #e9edf6;
	display: flex;
	align-items: center;
}

.b_inner {
	width: 1180px;
	max-width: calc(100% - 40px);
	margin: 0 auto;
}

.page-visual .label {
	font-size: 15px;
	color: #777;
	margin-bottom: 8px;
	letter-spacing: .02em;
}

.page-visual h1 {
	margin: 0;
	font-size: 42px;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.tabs {
	border-bottom: 1px solid #e5e5e5;
}

.tabs .inner {
	display: flex;
	gap: 42px;
}

.tabs a {
	position: relative;
	padding: 20px 0;
	color: #666;
	text-decoration: none;
	font-size: 16px;
}

.tabs a.active {
	color: #111;
	font-weight: 600;
}

.tabs a.active::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 100%;
	height: 2px;
	background: #111;
}

.board-wrap {
	padding: 72px 0 90px;
}

.board-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 28px;
}

.board-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.04em;
}

.search {
	display: flex;
	align-items: center;
	border-bottom: 1px solid #222;
	width: 280px;
}

.search input {
	flex: 1;
	height: 42px;
	border: 0;
	outline: 0;
	font-size: 14px;
}

.search button {
	border: 0;
	background: transparent;
	cursor: pointer;
	font-size: 14px;
	color: #222;
	padding: 0 0 0 12px;
}

.board-list {
	border-top: 2px solid var(--board-line);
}

.board-item {
	display: grid;
	padding: 30px 0;
	border-bottom: 1px solid #e8e8e8;
	text-decoration: none;
	color: inherit;
	transition: background .18s ease;
	grid-template-columns: 180px 1fr 40px;
	gap: 28px;
	align-items: center;
}

.board-item:hover {
	background: #fafafa;
}

.thumb {
	width: 180px;
	height: 100px;
	flex-shrink: 0;
	overflow: hidden;
	border-radius: 8px;
}

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

.board-text {
	min-width: 0;
	padding: 4px 20px 2px 0;
	display: flex;
	flex-direction: column;
}

.board-title-row {
	display: flex;
	justify-content: space-between;
	gap: 24px;
	align-items: flex-start;
}

.board-title {
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.04em;
	font-size: 22px;
	line-height: 1.45;
}

.arrow {
	font-size: 24px;
	line-height: 1;
	color: #aaa;
	margin-top: 2px;
}

.board-desc {
	margin: 14px 0 0;
	font-size: 16px;
	line-height: 1.65;
	color: #666;
}

.board-date {
	margin-top: auto;
	padding-top: 26px;
	font-size: 14px;
	color: #888;
}

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

.pagination a {
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #777;
	text-decoration: none;
	font-size: 14px;
}

.pagination a.active {
	color: var(--board-line);
	font-weight: 700;
	border-bottom: 2px solid var(--board-line);
}

@media ( max-width : 768px) {
	.page-visual {
		height: 210px;
	}
	.page-visual h1 {
		font-size: 34px;
	}
	.tabs .b_inner {
		gap: 28px;
		overflow-x: auto;
	}
	.board-wrap {
		padding: 52px 0 70px;
	}
	.board-head {
		display: block;
	}
	.search {
		width: 100%;
		margin-top: 22px;
	}
	.board-item {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 26px 0;
	}
	.thumb {
		width: 100%;
	}
	.board-text {
		padding-right: 0;
	}
	.board-title {
		font-size: 20px;
	}
	.board-desc {
		font-size: 15px;
	}
}

.board-wrap {
	padding: 72px 0 90px;
}

.b_inner {
	width: 1180px;
	max-width: calc(100% - 40px);
	margin: 0 auto;
}

.board-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 28px;
}

.board-head h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
}
.board-search {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 570px;
    height: 56px;
    padding: 0 4px;
    border: 0;
    border-bottom: 2px solid #222;
    border-radius: 0;
    background: transparent;
    box-sizing: border-box;
}

/* 검색 조건 */
.board-search select {
    flex-shrink: 0;
    width: 125px;
    height: 100%;
    padding: 0 28px 0 4px;

    border: 0;
    outline: 0;
    background-color: transparent;

    color: #222;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 제목+내용과 입력창 사이 선 */
.board-search .search-divider {
    flex-shrink: 0;
    width: 1px;
    height: 20px;
    margin: 0 20px 0 8px;
    background-color: #d9d9d9;
}

/* 검색어 입력창 */
.board-search input {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0;

    border: 0;
    outline: 0;
    background: transparent;

    color: #222;
    font-size: 16px;
}

.board-search input::placeholder {
    color: #999;
}

/* 검색 버튼 */
.board-search button {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;
    margin-left: 12px;
    padding: 0;

    border: 0;
    background: transparent;
    cursor: pointer;
}

/* 돋보기 */
.board-search button svg {
    width: 23px;
    height: 23px;

    fill: none;
    stroke: #222;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.board-search:focus-within {
    border-bottom-color: #000;
}


.board-item {
	display: grid;
	grid-template-columns: 180px 1fr 100px;
	gap: 30px;
	align-items: center;
	padding: 28px 14px;
	border-bottom: 1px solid #e8e8e8;
	text-decoration: none;
	color: inherit;
}

.board-thumb {
	width: 180px;
	height: 100px;
	overflow: hidden;
	background: #f2f2f2;
}

.board-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.board-title {
	margin: 0;
	font-size: 22px;
	line-height: 1.4;
	font-weight: 700;
	word-break: keep-all;
}

.board-meta {
	margin-top: 16px;
	display: flex;
	gap: 14px;
	font-size: 14.5px;
	color: #888;
}

.board-arrow {
	font-size: 15px;
	color: var(--board-main);
}

.board-item:hover {
	background: var(--board-soft);
}

.board-item:hover .board-title {
	color: var(--board-main);
}

@media ( max-width : 768px) {
	.board-head {
		display: block;
	}
	.board-search {
		width: 100%;
		margin-top: 20px;
	}
	.board-item {
		grid-template-columns: 120px 1fr;
		gap: 18px;
	}
	.board-thumb {
		width: 120px;
		height: 75px;
	}
	.board-arrow {
		display: none;
	}
	.board-title {
		font-size: 18px;
	}
}

/* 상단 검색 영역과 대칭을 이루는 라인 */
.top-bar {
	border-top: 2px solid #000000;
	margin-bottom: 30px;
}

/* 제목 영역 */
.post-header {
	padding-bottom: 20px;
	border-bottom: 1px solid #e0e0e0;
}

.post-title {
	font-size: 28px;
	font-weight: 700;
	color: #000000;
	margin-bottom: 15px;
	line-height: 1.4;
}

.post-meta {
	display: flex;
	gap: 20px;
	font-size: 14px;
	color: #8c8c8c;
}

.meta-item {
	display: flex;
	align-items: center;
}

/* 본문 영역 */
.post-content {
	padding: 40px 0;
	font-size: 16px;
	line-height: 1.8;
	color: #444444;
	border-bottom: 1px solid #e0e0e0;
}

.post-content img {
	max-width: 100%;
	height: auto;
	margin-bottom: 30px;
	border-radius: 4px;
}

.post-content p {
	margin-bottom: 20px;
}

.post-content .highlight-box {
	background-color: #f9f9f9;
	padding: 20px;
	border-left: 4px solid #333333;
	margin: 30px 0;
}

/* 하단 버튼 및 네비게이션 */
.post-footer {
	margin-top: 30px;
}

.btn-list {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 24px;
	font-size: 15px;
	font-weight: 500;
	color: #333333;
	background-color: #ffffff;
	border: 1px solid #cccccc;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s ease;
	margin-bottom: 40px;
}

.btn-list:hover {
	background-color: #f5f5f5;
	border-color: #8c8c8c;
}

/* 이전글 / 다음글 이동 */
.prev-next-nav {
	border-top: 1px solid #e0e0e0;
	border-bottom: 1px solid #e0e0e0;
}

.nav-item {
	display: flex;
	padding: 15px 10px;
	font-size: 14px;
	text-decoration: none;
	color: #333333;
}

.nav-item:not(:last-child) {
	border-bottom: 1px solid #f0f0f0;
}

.nav-label {
	width: 80px;
	color: #8c8c8c;
	font-weight: 500;
}

.nav-title {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.nav-item:hover .nav-title {
	text-decoration: underline;
}

@media (max-width: 768px) {
    .board-head {
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
    }

    .board-search {
        max-width: none;
    }

    .board-search select {
        width: 100px;
        font-size: 14px;
    }

    .board-search .search-divider {
        margin: 0 12px;
    }

    .board-search input {
        font-size: 14px;
    }
}