/* ============================================================
   dept_card_tab 최신글 스킨 — style.css
   대경대학교 보라/금색 디자인 시스템에 맞춘 탭 스타일
   ============================================================ */

	/* ----------------------------------------------------------
	   탭 래퍼
	   ---------------------------------------------------------- */
	.dept-tab-wrap {
		width: 100%;
	}

	/* ----------------------------------------------------------
	   탭 버튼 그룹
	   ---------------------------------------------------------- */
	.dept-tab-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 12px;
		margin-bottom: 28px;
		flex-wrap: wrap;
	}

	.dept-tab-btns {
		display: flex;
		gap: 8px;
		margin-bottom: 28px;
		justify-content: center;
		flex-wrap: wrap;
	}

	/* 탭 버튼 기본 */
	.dept-tab-btn {
		display: inline-flex;
		align-items: center;
		gap: 8px;
		padding: 10px 26px;
		border: 1.5px solid rgba(255, 255, 255, 0.25);
		border-radius: 50px;
		background: rgba(255, 255, 255, 0.07);
		color: rgba(255, 255, 255, 0.6);
		font-size: 14px;
		font-weight: 500;
		letter-spacing: 0.03em;
		cursor: pointer;
		transition: all 0.28s ease;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
		position: relative;
		overflow: hidden;
	}

	.dept-tab-btn::before {
		content: '';
		position: absolute;
		inset: 0;
		background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 60%);
		opacity: 0;
		transition: opacity 0.28s;
	}

	.dept-tab-btn:hover {
		border-color: rgba(255, 255, 255, 0.5);
		color: rgba(255, 255, 255, 0.9);
		background: rgba(255, 255, 255, 0.12);
	}

	.dept-tab-btn:hover::before {
		opacity: 1;
	}

	/* 탭 버튼 활성 상태 — 금색 강조 */
	.dept-tab-btn--active {
		border-color: var(--gold, #c9a227);
		background: rgba(201, 162, 39, 0.15);
		color: var(--gold, #c9a227);
		font-weight: 700;
		box-shadow:
			0 0 0 1px rgba(201, 162, 39, 0.3),
			0 4px 20px rgba(201, 162, 39, 0.2);
	}

	.dept-tab-btn--active::before {
		opacity: 1;
		background: linear-gradient(135deg, rgba(201,162,39,0.12) 0%, transparent 60%);
	}

	/* 탭 버튼 도트 인디케이터 */
	.dept-tab-btn__dot {
		width: 6px;
		height: 6px;
		border-radius: 50%;
		background: currentColor;
		flex-shrink: 0;
		transition: transform 0.28s ease;
	}

	.dept-tab-btn--active .dept-tab-btn__dot {
		transform: scale(1.4);
		box-shadow: 0 0 6px currentColor;
	}

	/* ----------------------------------------------------------
	   전체보기 버튼
	   ---------------------------------------------------------- */
	.dept-more-btn {
		display: inline-flex;
		align-items: center;
		gap: 6px;
		padding: 9px 20px;
		border: 1.5px solid rgba(255,255,255,0.3);
		border-radius: 50px;
		background: rgba(255,255,255,0.06);
		color: rgba(255,255,255,0.7);
		font-size: 13px;
		font-weight: 500;
		letter-spacing: 0.04em;
		text-decoration: none;
		white-space: nowrap;
		transition: all 0.26s ease;
		backdrop-filter: blur(6px);
		-webkit-backdrop-filter: blur(6px);
	}
	.dept-more-btn:hover {
		border-color: var(--gold, #c9a227);
		color: var(--gold, #c9a227);
		background: rgba(201,162,39,0.1);
		text-decoration: none;
	}
	.dept-more-btn svg { transition: transform 0.22s ease; flex-shrink: 0; }
	.dept-more-btn:hover svg { transform: translateX(3px); }

	/* ----------------------------------------------------------
	   탭 패널
	   ---------------------------------------------------------- */
	.dept-tab-panel {
		display: none;
	}
	.dept-tab-panel--active {
		display: block;
		animation: deptFadeIn 0.35s ease forwards;
	}

	@keyframes deptFadeIn {
		from {
			opacity: 0;
			transform: translateY(12px);
		}
		to {
			opacity: 1;
			transform: translateY(0);
		}
	}
	
	@media (max-width: 768px) {

    .dept-tab-header {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .dept-tab-btns {
        justify-content: center;
    }

    .dept-more-btn {
        font-size: 12px;
        color: rgba(255,255,255,0.55);
        border: 1px solid rgba(255,255,255,0.2);
        border-radius: 20px;
        padding: 5px 14px;
        letter-spacing: 0.04em;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        transition: color 0.2s, border-color 0.2s;
    }

    .dept-more-btn:hover {
        color: #fff;
        border-color: rgba(255,255,255,0.5);
    }

}

/* ----------------------------------------------------------
   아이콘 / 공통 유틸
   ---------------------------------------------------------- */
.dept-card-empty {
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    padding: 48px 0;
    width: 100%;
    font-size: 14px;
    letter-spacing: 0.05em;
}

.new_icon {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #e53e3e;
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.5;
}

.hot_icon {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #dd6b20;
    color: #fff;
    border-radius: 3px;
    padding: 1px 5px;
    margin-left: 4px;
    vertical-align: middle;
    line-height: 1.5;
}

.sound_only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* ----------------------------------------------------------
   반응형
   ---------------------------------------------------------- */
@media (max-width: 480px) {
    .dept-tab-btn {
        padding: 9px 18px;
        font-size: 13px;
    }
}
