/* Department Detail Page Styles */
body {
	font-family: 'Noto Sans Thai', sans-serif;
	background-color: #f8f9fa;
	line-height: 1.6;
}

.page-header {
	position: relative;
	overflow: hidden;
	border-radius: 0 0 20px 20px;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	margin-bottom: 2rem;
}

.page-header img {
	width: 100%;
	height: 300px;
	object-fit: cover;
}

.department-title {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 2rem;
	border-radius: 20px;
	text-align: center;
	margin-bottom: 2rem;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.department-title h1 {
	margin: 0;
	font-weight: 600;
	text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.content-card {
	background: white;
	border-radius: 20px;
	padding: 2rem;
	margin-bottom: 2rem;
	box-shadow: 0 5px 20px rgba(0,0,0,0.08);
	border: 1px solid #e9ecef;
}

.nav-pills .nav-link {
	border-radius: 25px;
	margin: 0 5px 10px 5px;
	font-weight: 500;
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.nav-pills .nav-link.active {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-pills .nav-link:hover:not(.active) {
	background-color: #f8f9fa;
	border-color: #667eea;
	transform: translateY(-2px);
}

.person-card {
	background: white;
	border-radius: 15px;
	padding: 1rem;
	margin-bottom: 1rem;
	text-align: center;
	transition: all 0.3s ease;
	box-shadow: 0 3px 15px rgba(0,0,0,0.08);
	border: 1px solid #e9ecef;
}

.person-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.person-card img {
	border-radius: 10px;
	transition: all 0.3s ease;
	border: 3px solid #f8f9fa;
}

.person-card:hover img {
	transform: scale(1.05);
	border-color: #667eea;
}

.head-card {
	background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
	border-radius: 20px;
	color: white;
	box-shadow: 0 10px 30px rgba(23, 162, 184, 0.3);
	border: none;
}

.social-btn {
	border-radius: 15px;
	font-weight: 500;
	transition: all 0.3s ease;
	margin-bottom: 0.5rem;
	padding: 0.75rem;
}

.social-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.section-title {
	font-family: 'db_helvethaica_x65_med', 'Noto Sans Thai', sans-serif;
	font-weight: 600;
	color: #495057;
	margin-bottom: 1.5rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid #667eea;
	position: relative;
}

.section-title:before {
	content: '';
	position: absolute;
	bottom: -3px;
	left: 0;
	width: 50px;
	height: 3px;
	background: #764ba2;
}

.major-card {
	position: relative;
	overflow: hidden;
	border-radius: 15px;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
	margin-bottom: 1.5rem;
}

.major-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.major-card img {
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.major-card:hover img {
	transform: scale(1.1);
}

.major-overlay {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(0,0,0,0.4);
	padding: 15px 20px;
	border-radius: 10px;
	backdrop-filter: blur(5px);
}

.video-wrapper {
	position: relative;
	padding-bottom: 56.25%;
	height: 0;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.video-card {
	background: white;
	border-radius: 15px;
	padding: 1rem;
	margin-bottom: 1rem;
	box-shadow: 0 3px 15px rgba(0,0,0,0.08);
	transition: all 0.3s ease;
}

.video-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.breadcrumb {
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(10px);
	border-radius: 15px;
	padding: 1rem;
	margin-bottom: 1rem;
}

.breadcrumb-item + .breadcrumb-item::before {
	content: "›";
	font-size: 1.2em;
	color: #6c757d;
}

/* Centered text overlay */
.centered {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.department-title {
		padding: 1.5rem;
	}
	
	.content-card {
		padding: 1.5rem;
	}
	
	.page-header img {
		height: 200px;
	}
}
