/* Updated Course Wrapper - Single Column Layout with Full Width */
.my_courses .course_wrapper {
	display: flex;
	flex-direction: column !important;
	gap: 20px;
	margin-top: 30px;
	width: 100%;
}
.woocommerce-billing-fields__field-wrapper-email {
	padding: 0px 25px 0px 25px !important;
	position: absolute;
    width: 100%;
    top: 175px;
}
/* Updated Course Box - Full Width Horizontal Card Layout */
.my_courses .course_wrapper .course_box {
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid #e0e8f0;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
	transition: box-shadow 0.3s ease, transform 0.2s ease;
	padding: 20px;
	gap: 20px;
	width: 100%; /* Full width */
	box-sizing: border-box; /* Include padding in width calculation */
}

.my_courses .course_wrapper .course_box:hover {
	box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.15);
	transform: translateY(-2px);
}

/* Course Image Styling */
.my_courses .course_wrapper .course_box img {
	width: 80px;
	height: 80px;
	border-radius: 8px;
	object-fit: cover;
	flex-shrink: 0;
}

/* Course Text Content - Takes available space */
.my_courses .course_wrapper .course_text {
	flex: 1; /* Takes all available space */
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 0;
	min-width: 0; /* Allows text to wrap properly */
}

.my_courses .course_wrapper .course_img {
	width: 80px;
	height: 80px;
	flex-shrink: 0;
}

/* Course Title */
.my_courses .course_wrapper .course_title {
	font-family: Epilogue;
	font-weight: 600;
	font-size: 18px;
	color: #2c5aa0;
	margin: 0;
	line-height: 1.3;
}

/* Course Category Label */
.my_courses .course_wrapper .course_category_label {
	font-size: 12px;
	font-weight: 500;
	color: #6b7280;
	background: #f3f4f6;
	padding: 4px 8px;
	border-radius: 4px;
	display: inline-block;
	width: fit-content;
	margin: 4px 0;
}

/* Course Time/Date Info */
.my_courses .course_wrapper .course_time_date {
	font-weight: 400;
	font-style: italic;
	font-size: 13px;
	color: #6b7280;
	margin: 0;
}

.my_courses .course_wrapper .course_time_date p {
	margin: 0;
}

/* Course Details Container - Fixed width on right side */
.my_courses .course_wrapper .course_details {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	margin-left: auto;
	min-width: 150px; /* Ensures consistent width for action area */
}

.my_courses .course_wrapper .course_details span {
	font-size: 12px;
	color: #6b7280;
	font-style: italic;
}

/* Action Button Styling */
.my_courses .course_wrapper .course_details a {
	text-decoration: none !important;
	font-family: 'Roboto', sans-serif !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	color: #fff !important;
	background: linear-gradient(135deg, #4f89dc 0%, #2c5aa0 100%) !important;
	padding: 10px 20px !important;
	border-radius: 6px !important;
	border: none !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	white-space: nowrap !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.my_courses .course_wrapper .course_details a:hover {
	background: linear-gradient(135deg, #2c5aa0 0%, #1e3d6f 100%) !important;
	transform: translateY(-1px) !important;
	box-shadow: 0px 4px 12px rgba(44, 90, 160, 0.3) !important;
}

/* Progress Box Styling */
.my_courses .course_wrapper .progress_box {
	width: 200px; /* Fixed width for progress section */
	flex-shrink: 0;
}

.my_courses .course_wrapper .progress {
	border-radius: 50px;
	box-shadow: 0px 1px 1.9px 0px #00000040 inset;
	height: 12px !important;
}

.my_courses .course_wrapper .progress-bar {
	border-radius: 50px;
}

.my_courses .course_wrapper .progress_text {
	font-weight: 400;
	font-size: 12px;
	line-height: 30px;
	margin: 0px;
}

/* Course Action Styling - Updated with margin */
.course_action {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	flex-shrink: 0;
	justify-content: center;
	min-width: 150px;
}

.course_action span {
	font-weight: 500;
	font-size: 13px;
	color: #0366C3;
	font-style: italic;
}

.course_action a {
	text-decoration: none !important;
	font-family: 'Roboto', sans-serif !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	color: white !important;
	background: linear-gradient(135deg, #0366C3 0%, #4A90E2 100%) !important;
	display: flex !important;
	align-items: center !important;
	padding: 12px 24px !important;
	border-radius: 8px !important;
	box-shadow: 0 3px 12px rgba(3, 102, 195, 0.3) !important;
	transition: all 0.3s ease !important;
	white-space: nowrap !important;
	margin-right: 5px;
}

.course_action a:hover {
	transform: translateY(-1px) !important;
	box-shadow: 0 5px 20px rgba(3, 102, 195, 0.4) !important;
	background: linear-gradient(135deg, #025aa3 0%, #3d7bc2 100%) !important;
}

/* Container Adjustments */
.my_courses .container {
	max-width: 1440px;
	width: 100%;
	margin: 0 auto;
	padding: 0 20px; /* Add padding for better spacing */
	box-sizing: border-box;
}

/* Responsive Design Updates */
@media screen and (max-width: 1440px) {
	.my_courses .course_wrapper .progress_box {
		width: 180px;
	}
	
	.my_courses .course_wrapper .course_details a {
		padding: 10px 18px !important;
		font-size: 13px !important;
	}
}

@media screen and (max-width: 1024px) {
	.my_courses .course_wrapper .course_box {
		padding: 15px;
		gap: 15px;
	}

	.my_courses .course_wrapper .course_details {
		flex-direction: column;
		gap: 8px;
		align-items: flex-end;
		min-width: 120px;
	}

	.my_courses .course_wrapper .progress_box {
		width: 100%;
	}

	.my_courses .course_wrapper .course_details a {
		padding: 8px 16px !important;
		font-size: 12px !important;
	}
}

@media screen and (max-width: 767px) {
	.my_courses .course_wrapper .course_box {
		flex-direction: column;
		text-align: center;
		gap: 15px;
		padding: 20px;
		width: 100%;
	}

	.my_courses .course_wrapper .course_box img {
		width: 60px;
		height: 60px;
		align-self: center;
	}

	.my_courses .course_wrapper .course_text {
		text-align: center;
		width: 100%;
	}

	.my_courses .course_wrapper .course_details,
	.course_action {
		flex-direction: column;
		align-items: center;
		margin-left: 0;
		gap: 10px;
		width: 100%;
		min-width: auto;
	}

	.my_courses .course_wrapper .course_details a,
	.course_action a {
		width: 100% !important;
		justify-content: center !important;
	}
}

@media screen and (max-width: 540px) {
	.my_courses .course_wrapper .course_box {
		padding: 15px;
	}

	.my_courses .course_wrapper .course_title {
		font-size: 16px;
	}
	
	.my_courses .container {
		padding: 0 15px;
	}
}