/**
 * Dashboard Styles
 * My Account Dashboard page styling
 * Based on design reference: docs/base html/dashboard.html
 *
 * @package CPECustomizer
 */

/* Dashboard Content Container - Flex center layout */
.wdm-dashboard-content {
	width: 100%;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	
}

/* All direct children share same width and stay centered */
.wdm-dashboard-packages > * {
	width: 100%;
	max-width: 1180px;
}

.wdm-dashboard-courses > * {
	width: 100%;
	max-width: 1180px;
}

/* Ensure dashboard takes full width of content area */
body.woocommerce-account .wdm-dashboard-content {
	width: 100% !important;
}

/* Dashboard Packages Section */
.wdm-dashboard-packages {
	margin-bottom: 40px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* Dashboard Courses Section */
.wdm-dashboard-courses {
	margin-bottom: 40px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.wdm-dashboard-section-title {
	font-size: 30px;
	font-weight: 700;
	font-style: normal;
	margin-bottom: 30px;
	color: #273A49;
	border-bottom: none !important;
	padding-bottom: 0 !important;
}

/* Package Container */
.wdm-dashboard-package-container {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

/* Package Card */
.wdm-dashboard-package-card {
	background: #ffffff;
	border: 1px solid #cecece;
	border-radius: 10px;
	padding: 24px;
	width: 380px;
	min-height: 185px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	font-family: 'Open Sans', sans-serif;
}

/* Course Card with Image */
.wdm-dashboard-courses .wdm-dashboard-package-card {
	width: 380px;
	height: 373px;
	min-height: 373px;
}

.wdm-dashboard-package-card:hover {
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

/* Course Image */
.wdm-dashboard-course-image {
	width: 380px;
	height: 200px;
	margin-bottom: 15px;
	border-radius: 8px;
	overflow: hidden;
}

.wdm-dashboard-courses .wdm-dashboard-course-image {
	width: 380px;
	height: 200px;
	margin-left: -24px;
	margin-right: -24px;
	margin-top: -24px;
	border-radius: 10px 10px 0 0;
}

.wdm-dashboard-course-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Course Instructor */
.wdm-dashboard-course-instructor {
	font-size: 14px;
	color: #666666;
	margin-bottom: 12px;
	font-weight: 400;
	font-family: 'Open Sans', sans-serif;
}

/* Package Content */
.wdm-dashboard-package-content {
	flex: 1;
}

.wdm-dashboard-package-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px 0;
	color: #273A49;
	line-height: 1.5;
}

.wdm-dashboard-package-description {
	font-size: 14px;
	color: #666666;
	font-weight: 400;
	margin: 0;
	min-height: 32px;
	line-height: 24px;
}

/* Package Button */
.wdm-dashboard-package-button {
	background-color: #0257A1;
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	padding: 12px;
	border-radius: 4px;
	font-size: 16px;
	display: block;
	width: 100%;
	border: none;
	cursor: pointer;
	font-family: 'Open Sans', sans-serif;
}

.wdm-dashboard-package-button:hover,
.wdm-dashboard-package-button:focus {
	background-color: #0257A1;
	color: #ffffff;
	text-decoration: none;
}

.wdm-dashboard-package-button:focus {
	outline: 2px solid #00569d;
	outline-offset: 2px;
}

/* Course Button Styling */
.wdm-dashboard-courses .wdm-dashboard-package-button {
	background-color: #ffffff;
	color: #0257A1;
	border: 1px solid #0257A1;
}

.wdm-dashboard-courses .wdm-dashboard-package-button:hover,
.wdm-dashboard-courses .wdm-dashboard-package-button:focus {
	background-color: #ffffff;
	color: #0257A1;
	border-color: #0257A1;
	text-decoration: none;
}

/* View All Button Container */
.wdm-dashboard-view-all-container {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
}

/* View All Button */
.wdm-dashboard-view-all-button {
	width: 133px;
	height: 48px;
	background-color: #0257A1;
	color: #ffffff;
	text-decoration: none;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	border:1px solid #ffffff;
	font-size: 16px;
	transition: background-color 0.2s ease;
}

.wdm-dashboard-view-all-button:hover,
.wdm-dashboard-view-all-button:focus {
	background-color: #00447c;
	color: #ffffff;
	text-decoration: none;
}

.wdm-dashboard-view-all-button:focus {
	outline: 2px solid #00569d;
	outline-offset: 2px;
}

/* No Courses Message */
.wdm-dashboard-no-courses {
	font-size: 16px;
	color: #666666;
	margin: 20px 0;
	padding: 20px;
	text-align: center;
	font-family: 'Open Sans', sans-serif;
}

/* Override account-navigation.css h2 styling for dashboard */
.wdm-dashboard-content .wdm-dashboard-section-title {
	border-bottom: none !important;
	padding-bottom: 0 !important;
	margin-bottom: 30px !important;
}

/* Responsive Design */
@media (max-width: 768px) {
	.wdm-dashboard-package-container {
		flex-direction: column;
	}

	.wdm-dashboard-package-card {
		width: 100%;
		min-width: 100%;
	}
}

@media (max-width: 480px) {
	.wdm-dashboard-section-title {
		font-size: 20px;
		margin-bottom: 20px;
	}

	.wdm-dashboard-package-card {
		padding: 20px;
	}

	.wdm-dashboard-package-title {
		font-size: 16px;
	}
}

@media (max-width: 1612px) {
	.wdm-dashboard-packages > * {
		max-width: 800px;
	}
	.wdm-dashboard-courses > * {
		max-width: 800px;
	}
}

@media (max-width: 1212px) {
	.wdm-dashboard-packages > * {
		max-width: 380px;
	}
	.wdm-dashboard-courses > * {
		max-width: 380px;
	}
}