/* Courses Section Styles */
.courses-section {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 100px 0;
	position: relative;
}

/* Header Styles */
.courses-header {
	text-align: center;
	margin-bottom: 70px;
}

.courses-main-title {
	font-size: 4rem;
	font-weight: 800;
	color: #1a2332;
	margin-bottom: 20px;
	letter-spacing: -1.5px;
}

.courses-accent-line {
	width: 120px;
	height: 6px;
	background: linear-gradient(90deg, #ff6b6b, #ffa500);
	margin: 25px auto;
	border-radius: 3px;
	display: block;
}

.courses-subtitle {
	font-size: 1.4rem;
	color: #5a6c7d;
	max-width: 750px;
	margin: 0 auto;
	line-height: 1.7;
}

/* Category Header */
.courses-category-wrapper {
	margin-bottom: 70px;
}

.courses-pg-section {
	margin-top: 90px;
}

.courses-category-header {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	margin-bottom: 50px;
	padding-bottom: 25px;
	border-bottom: 4px solid #ff6b6b;
}

.courses-category-icon {
	font-size: 3rem;
	min-width: 50px;
}

.courses-category-header h3 {
	font-size: 2.8rem;
	font-weight: 700;
	color: #1a2332;
	margin: 0;
}

.courses-pg-section .courses-category-header {
	border-bottom: 4px solid #2563eb;
}

/* Card Wrapper */
.courses-card-wrapper {
	margin-bottom: 35px;
}

/* Course Card */
.courses-card {
	background: white;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	border-top: 8px solid #ff6b6b;
}

.courses-pg-section .courses-card {
	border-top: 8px solid #2563eb;
}

.courses-card:hover {
	transform: translateY(-15px) scale(1.02);
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.courses-card-icon {
	background: linear-gradient(135deg, #f5f7fa 0%, #e8eef7 100%);
	padding: 30px 20px;
	text-align: center;
	font-size: 3.5rem;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.courses-pg-section .courses-card-icon {
	background: linear-gradient(135deg, #f0f5ff 0%, #e0e7ff 100%);
}

/* Card Content */
.courses-card-content {
	padding: 25px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.courses-code {
	font-size: 2rem;
	font-weight: 700;
	color: #ff6b6b;
	text-transform: uppercase;
	letter-spacing: 2px;
	margin-bottom: 10px;
}

.courses-pg-section .courses-code {
	color: #2563eb;
}

.courses-name {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a2332;
	margin-bottom: 15px;
	line-height: 1.3;
}

/* Badge */
.courses-badge {
	display: inline-block;
	padding: 8px 16px;
	border-radius: 25px;
	font-size: 0.95rem;
	font-weight: 600;
	margin-bottom: 15px;
	width: fit-content;
}

.courses-badge-ug {
	background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	color: #0369a1;
}

.courses-badge-pg {
	background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
	color: #1e40af;
}

/* Duration */
.courses-duration {
	display: inline-block;
	background: linear-gradient(135deg, #fff4e6 0%, #ffe4b5 100%);
	color: #ea580c;
	padding: 8px 16px;
	border-radius: 25px;
	font-size: 1rem;
	font-weight: 600;
	margin-bottom: 20px;
}

/* Scrolling Subjects Container */
.courses-scroll-container {
	background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
	border: 3px solid #e2e8f0;
	border-radius: 15px;
	padding: 20px;
	height: 200px;
	overflow: hidden;
	position: relative;
	margin-top: auto;
	box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.courses-scroll-container::before,
.courses-scroll-container::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	height: 50px;
	z-index: 2;
	pointer-events: none;
}

.courses-scroll-container::before {
	top: 0;
	background: linear-gradient(to bottom, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.courses-scroll-container::after {
	bottom: 0;
	background: linear-gradient(to top, #f8fafc 0%, rgba(248, 250, 252, 0) 100%);
}

.courses-scroll-content {
	animation: scrollUp 20s linear infinite;
	padding: 0 10px;
}

.courses-scroll-content:hover {
	animation-play-state: paused;
}

@keyframes scrollUp {
	0% {
		transform: translateY(0);
	}
	100% {
		transform: translateY(-50%);
	}
}

.courses-list {
	list-style: none;
	padding: 0;
	margin: 0;
	
}

.courses-list li {
	padding: 12px 16px;
	margin-bottom: 12px;
background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
	border-radius: 10px;
	font-size: 1rem;
	color: #334155;
	font-weight: 500;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	border-left: 5px solid #ff6b6b;
}

.courses-pg-section .courses-list li {
	border-left: 5px solid #2563eb;
}

.courses-list li:hover {
	transform: translateX(10px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
	background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.courses-list li strong {
	color: #ff6b6b;
	font-weight: 700;
}

.courses-pg-section .courses-list li strong {
	color: #2563eb;
}

/* Responsive */
@media (max-width: 991px) {
	.courses-main-title {
		font-size: 3.2rem;
	}

	.courses-subtitle {
		font-size: 1.25rem;
	}

	.courses-category-header h3 {
		font-size: 2.3rem;
	}

	.courses-name {
		font-size: 1.6rem;
	}
}

@media (max-width: 768px) {
	.courses-section {
		padding: 70px 0;
	}

	.courses-main-title {
		font-size: 2.5rem;
	}

	.courses-subtitle {
		font-size: 1.15rem;
	}

	.courses-category-header h3 {
		font-size: 1.9rem;
	}

	.courses-category-icon {
		font-size: 2.3rem;
	}

	.courses-name {
		font-size: 1.4rem;
	}

	.courses-card-icon {
		font-size: 3.8rem;
		min-height: 140px;
		padding: 35px 20px;
	}

	.courses-card-content {
		padding: 28px;
	}

	.courses-header {
		margin-bottom: 50px;
	}

	.courses-category-wrapper {
		margin-bottom: 50px;
	}

	.courses-pg-section {
		margin-top: 60px;
	}

	.courses-scroll-container {
		height: 210px;
		padding: 20px;
	}

	.courses-list li {
		font-size: 1.05rem;
		padding: 12px 15px;
	}
}

@media (max-width: 576px) {
	.courses-main-title {
		font-size: 2rem;
	}

	.courses-subtitle {
		font-size: 1.05rem;
	}

	.courses-category-header {
		flex-direction: column;
		gap: 10px;
	}

	.courses-category-header h3 {
		font-size: 1.6rem;
	}

	.courses-card-icon {
		font-size: 3.2rem;
		min-height: 120px;
	}

	.courses-name {
		font-size: 1.25rem;
	}

	.courses-scroll-container {
		height: 190px;
	}
}

/* Animation */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(40px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.courses-card-wrapper {
	animation: fadeInUp 0.7s ease-out;
}

.courses-grid-ug .courses-card-wrapper:nth-child(1) { animation-delay: 0.1s; }
.courses-grid-ug .courses-card-wrapper:nth-child(2) { animation-delay: 0.2s; }
.courses-grid-ug .courses-card-wrapper:nth-child(3) { animation-delay: 0.3s; }
.courses-grid-ug .courses-card-wrapper:nth-child(4) { animation-delay: 0.4s; }
.courses-grid-ug .courses-card-wrapper:nth-child(5) { animation-delay: 0.5s; }

.courses-grid-pg .courses-card-wrapper:nth-child(1) { animation-delay: 0.6s; }