/* Courses Offered Carousel — assets/css/courses-carousel.css */

.courses-offered-section {
	padding: 80px 0;
	background: #ffffff;
}

.courses-offered-container {
	max-width: 1320px;
	margin: 0 auto;
	padding: 0 24px;
}

.courses-offered-header {
	margin-bottom: 40px;
}
.courses-nav-btn {
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    opacity: 1 !important;
}
.courses-nav-btn:hover {
    background: transparent;
}
.courses-nav-btn svg {
    width: 20px;
    height: 20px;
}
.courses-offered-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	font-weight: 600;
	color: #1a2544;
	margin-bottom: 14px;
}

.eyebrow-diamond {
	width: 9px;
	height: 9px;
	background: #e0702b;
	transform: rotate(45deg);
	display: inline-block;
}

.courses-offered-heading-row {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 24px;
}

.courses-offered-heading {
	font-size: 42px;
	line-height: 1.15;
	font-weight: 700;
	color: #16203e;
	margin: 0;
	max-width: 640px;
}

.courses-offered-nav {
	display: flex;
	gap: 12px;
	flex-shrink: 0;
	margin-top: 12px;
}

.courses-nav-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid #d8dce3;
	background: #fff;
	color: #16203e;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.courses-nav-btn:hover {
	background: #16203e;
	border-color: #16203e;
	color: #fff;
}

.courses-nav-btn.swiper-button-disabled {
	opacity: 0.35;
	cursor: default;
}

.courses-offered-subtext {
	font-size: 17px;
	color: #6b7280;
	margin: 18px 0 0;
}

/* Swiper */
.courses-offered-swiper {
	overflow: hidden;
	padding: 4px;
}

.courses-offered-swiper .swiper-slide {
	height: auto;
}

/* Card */
.course-card {
	position: relative;
	height: 440px;
	border-radius: 4px;
	overflow: hidden;
	background-size: cover;
	background-position: center;
	cursor: pointer;
	isolation: isolate;
}

.course-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(15, 23, 42, 0.92) 0%,
		rgba(15, 23, 42, 0.55) 45%,
		rgba(15, 23, 42, 0.15) 100%
	);
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 1;
}

.course-card:hover .course-card-overlay {
	opacity: 1;
}

.course-card-content {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 24px;
}

.course-badge {
	display: inline-flex;
	padding: 20px;
    align-items: center;
	width: fit-content;
	border-radius: 2px;
	overflow: hidden;
	transition: transform 0.35s ease;
	width: 100%;
    gap: 26px;
}

.course-badge-code {
	background: #16203e;
	color: #fff;
	font-weight: 700;
	font-size: 28px;
    padding: 8px 10px;
	display: flex;
	align-items: center;
	height: fit-content;
	    text-transform: uppercase;
	line-height: 100%;
}

.course-badge-title {
	color: #fff;
    font-weight: 500;
    font-size: 17px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    max-width: 190px;
}

.course-description {
	color: #e5e8f0;
	font-size: 15px;
	line-height: 1.55;
	margin: 16px 0 0;
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, opacity 0.3s ease 0.05s, margin 0.35s ease;
}

.course-card:hover .course-description {
	max-height: 220px;
	opacity: 1;
}

/* Responsive */
@media (max-width: 991px) {
	.courses-offered-heading {
		font-size: 32px;
	}
	.course-card {
		height: 400px;
	}
}

@media (max-width: 600px) {
	.courses-offered-heading-row {
		flex-direction: column;
	}
	.courses-offered-heading {
		font-size: 28px;
	}
	.course-card {
		height: 380px;
	}
}
