@charset "UTF-8";

@import
	url('https://fonts.googleapis.com/css2?family=Kanit&display=swap');

body {
	font-family: 'Kanit', sans-serif;
	margin: 0;
	padding-top: 100px;
	overflow-x: hidden;
	background-color: #ffffff;
}

.main-title {
	color: #aa1818;
	border-bottom: 1px solid #ddd;
	padding-bottom: 10px;
	margin-bottom: 20px;
	font-weight: bold;
}

.search-container {
	margin-top: 30px;
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 20px;
}

.search-container h3 {
	text-align: left;
	color: #2c3e50;
	font-weight: 600;
}

.filter-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: #212529;
	margin-bottom: 12px;
	padding-left: 10px;
	border-left: 3px solid #aa1818;
}

.filter-section {
	background-color: #ffffff;
	padding: 18px 20px;
	margin-bottom: 15px;
	border-radius: 8px;
	border: 1px solid #e9ecef;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.2s ease;
}

.filter-section:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-color: #dee2e6;
}

.project-list {
	margin-top: 10px;
}

.project-card {
	background: linear-gradient(135deg, #fff9f0 0%, #fdf5e6 100%);
	border-radius: 12px;
	border: 1px solid #e8dcc8;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	overflow: hidden;
}

.project-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
	border-color: #d4c4a8;
}

.project-card .card-body {
	padding: 20px;
}

.project-card .row {
	align-items: center;
}

.project-card .col-md-9 {
	padding-right: 20px;
}

.project-card .col-md-3 {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
}

.project-card .card-title {
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 6px;
	line-height: 1.3;
}

.project-card .card-title:first-of-type {
	color: #2c3e50;
}

.project-card .card-title:nth-of-type(2) {
	color: #5a6c7d;
	font-size: 15px;
}

.project-card .card-text {
	font-size: 14px;
	color: #5a6c7d;
	margin-bottom: 5px;
	line-height: 1.4;
}

.project-card .btn-primary {
	background-color: #0d6efd;
	border-color: #0d6efd;
	color: #ffffff;
	padding: 8px 20px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(13, 110, 253, 0.3);
	white-space: nowrap;
}

.project-card .btn-primary:hover {
	background-color: #0b5ed7;
	border-color: #0a58ca;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(13, 110, 253, 0.4);
}

.search-box {
	border-radius: 25px;
	padding-right: 40px;
}

.search-icon {
	position: absolute;
	right: 15px;
	top: 10px;
	color: #999;
}

/* ===== Sidebar Header ===== */
.filter-heading-main {
	font-size: 1.05rem;
	font-weight: 600;
	color: #ffffff;
	background: linear-gradient(135deg, #aa1818 0%, #8b1313 100%);
	margin: -25px -20px 20px -20px;
	padding: 16px 20px;
	border-radius: 10px 10px 0 0;
	margin-bottom: 20px;
	display: flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(170, 24, 24, 0.3);
	white-space: nowrap;
}

.filter-heading-main i {
	font-size: 1.1rem;
	color: #ffffff;
}

/* ===== Main Wrapper ===== */
.main-wrapper {
	width: 100%;
	margin: 0;
	padding: 0;
}

.main-wrapper .row {
	margin: 0;
}

.main-wrapper .col-md-3 {
	max-width: 300px;
	flex: 0 0 300px;
}

.main-wrapper .col-md-9 {
	flex: 1;
	max-width: calc(100% - 300px);
}

/* ===== Sidebar Styling ===== */
.sidebar-wrapper {
	background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
	padding: 25px 20px;
	padding-right: 14px;
	border-right: 1px solid #d0d0d0;
	box-shadow: 2px 0 12px rgba(0, 0, 0, 0.1);
	height: fit-content;
	min-height: calc(100vh - 100px);
	position: sticky;
	top: 100px;
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	width: 300px;
}

/* Form Controls */
.filter-section .form-select {
	border: 1px solid #ced4da;
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.9rem;
	transition: all 0.2s ease;
	background-color: #ffffff;
	cursor: pointer;
	color: #212529;
}

.filter-section .form-select:hover {
	border-color: #aa1818;
}

.filter-section .form-select:focus {
	border-color: #aa1818;
	box-shadow: 0 0 0 0.2rem rgba(170, 24, 24, 0.2);
	outline: none;
}

/* Checkboxes & Radio */
.filter-section .form-check {
	padding: 8px 12px;
	margin-bottom: 6px;
	border-radius: 6px;
	transition: all 0.2s ease;
}

.filter-section .form-check:hover {
	background-color: #f0f0f0;
}

.filter-section .form-check-input {
	width: 18px;
	height: 18px;
	margin-top: 2px;
	cursor: pointer;
	border: 2px solid #ced4da;
	transition: all 0.2s ease;
}

.filter-section .form-check-input:hover {
	border-color: #aa1818;
}

.filter-section .form-check-input:checked {
	background-color: #aa1818;
	border-color: #aa1818;
}

.filter-section .form-check-input:focus {
	border-color: #aa1818;
	box-shadow: 0 0 0 0.2rem rgba(170, 24, 24, 0.2);
}

.filter-section .form-check-label {
	font-size: 0.9rem;
	color: #212529;
	cursor: pointer;
	margin-left: 8px;
	user-select: none;
}

/* Year Range Selects */
.filter-section .row .col-6 .form-select {
	font-size: 0.85rem;
	padding: 8px 10px;
}

/* Scrollbar สำหรับ Sidebar */
.sidebar-wrapper::-webkit-scrollbar {
	width: 6px;
}

.sidebar-wrapper::-webkit-scrollbar-track {
	background: #d0d0d0;
	border-radius: 10px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb {
	background: #999999;
	border-radius: 10px;
}

.sidebar-wrapper::-webkit-scrollbar-thumb:hover {
	background: #777777;
}

.step-number {
	min-width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 1.1rem;
	margin-right: 15px;
	flex-shrink: 0;
}

.step-content {
	flex: 1;
	padding-top: 5px;
}

.step-item {
	padding: 15px;
	border-radius: 8px;
	background-color: #f8f9fa;
	transition: all 0.3s ease;
}

.step-item:hover {
	background-color: #e9ecef;
	transform: translateX(5px);
}

.modal-content {
	border: none;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
	border-top-left-radius: 15px;
	border-top-right-radius: 15px;
	padding: 20px 25px;
}

.modal-body {
	padding: 30px 25px;
}

/* Responsive */
@media ( max-width : 768px) {
	.main-wrapper .col-md-3 {
		max-width: 100%;
		flex: 0 0 100%;
	}
	.main-wrapper .col-md-9 {
		max-width: 100%;
	}
	.sidebar-wrapper {
		width: 100%;
		margin-bottom: 30px;
		position: relative;
		top: 0;
		max-height: none;
		min-height: auto;
		border-right: none;
		border-bottom: 1px solid #d0d0d0;
	}
	.filter-section {
		padding: 15px;
	}
	.filter-heading-main {
		font-size: 1rem;
	}
}