/* Design System and Font Definitions */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Apply Outfit font to the infopage and home body container */
body.home, body.infopage, .programs-container-wrap {
    font-family: 'Outfit', sans-serif !important;
    background-color: #f8fafc;
}

/* Custom Header Override to align with SimApt branding */
.simapt-header {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.simapt-logo-left img {
    max-height: 48px;
    height: 48px;
    width: auto;
}

.simapt-menus li a {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: #334155 !important;
    transition: color 0.2s ease;
}

.simapt-menus li.active a, .simapt-menus li a:hover {
    color: var(--theme-navy) !important;
}

/* Breadcrumb Styling */
.inner-breadcrumb {
    background-color: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #f1f5f9;
}

.innerbreadcrumbul {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.innerbreadcrumbul li a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
}

.innerbreadcrumbul li a:hover {
    color: var(--theme-navy);
}

.innerbreadcrumbul li:not(:last-child):after {
    content: "/";
    margin-left: 8px;
    color: #cbd5e1;
}

.ingopage-section {
    padding: 30px 0 20px 0;
    background-color: #f8fafc;
    height: auto !important;
    min-height: auto !important;
}

.simapt-program-section {
    padding: 30px 0 20px 0 !important;
    height: auto !important;
}

.programs-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	padding: 20px 0 10px;
}

.program-card {
	background: #ffffff;
	border-radius: 14px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.10), 0 8px 28px rgba(14, 65, 99, 0.12);
	border: 1px solid #b4c8d8;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
	height: 100%;
}

.program-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
	border-color: rgba(39, 211, 0, 0.22);
}

.program-card-header {
	position: relative;
	height: 68px;
	overflow: hidden;
	border-radius: 13px 13px 0 0;
	background: linear-gradient(135deg, var(--theme-navy) 0%, var(--theme-navy-dark) 100%);
	border-bottom: 3px solid var(--theme-gold);
}

.program-image {
	position: absolute;
	top: 0;
	right: 12px;
	left: auto;
	transform: none;
	width: auto;
	max-width: 150px;
	height: 100%;
	object-fit: contain;
	background: transparent;
	transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
	z-index: 1;
}

.program-card:hover .program-image,
.program-card.hover .program-image {
	transform: scale(1.18);
	transform-origin: right center;
	z-index: 3 !important;
}

.status-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	padding: 4px 8px;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 50px;
	color: #fff;
	z-index: 2;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	letter-spacing: 0.5px;
}

.status-badge.enrolled {
	background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.status-badge.completed {
	background: linear-gradient(135deg, #3498db, #2980b9);
}

.status-badge.not-enrolled {
	background: linear-gradient(135deg, #f1c40f, #e67e22);
}

.wishlist-btn {
	position: absolute;
	top: 10px;
	right: 10px;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 50%;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	z-index: 4;
	transition: all 0.2s ease;
}

.wishlist-btn:hover {
	transform: scale(1.1);
	background: #ffffff;
}

.wishlist-btn i {
	font-size: 13px;
	color: #e74c3c;
}

.program-card-header.has-wishlist .program-image {
	right: 48px;
}

.program-card-body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.program-title {
	font-size: 16px;
	font-weight: 700;
	color: var(--theme-navy);
	margin: 0 0 4px 0;
	line-height: 1.3;
	font-family: 'Montserrat', sans-serif;
}

.program-one-liner {
	font-size: 12px;
	color: #666;
	line-height: 1.5;
	margin: 0 0 12px 0;
	height: 36px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.program-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	margin-bottom: 0;
	padding-bottom: 12px;
	border-bottom: 1px dashed #eee;
}

.stat-likes {
	display: flex;
	align-items: center;
	gap: 6px;
}

.stat-likes img {
	width: 16px;
	height: 16px;
}

.stat-likes span {
	font-size: 13px;
	font-weight: 600;
	color: #444;
}

.stat-rating {
	display: flex;
	align-items: center;
	gap: 8px;
}

.stat-rating span.rating1 {
	margin: 0;
}

.stat-rating .avgrating {
	font-size: 13px;
	font-weight: 700;
	color: #f59e0b;
}

.program-desc-container {
	margin-bottom: 5px;
	overflow: hidden;
	transition: max-height 0.3s ease;
}

.program-desc-list {
	padding-left: 18px;
	margin: 0;
	list-style-type: disc;
}

.program-desc-list li {
	font-size: 13px;
	color: #555;
	line-height: 1.6;
	margin-bottom: 5px;
}

.program-desc-list li {
	display: none;
}

.program-desc-list li:nth-child(1),
.program-desc-list li:nth-child(2) {
	display: list-item;
}

.program-desc-container.expanded .program-desc-list li {
	display: list-item;
}

.desc-toggle-btn {
	font-size: 12px;
	font-weight: 700;
	color: var(--theme-navy);
	text-transform: uppercase;
	display: inline-block;
	margin-bottom: 15px;
	letter-spacing: 0.5px;
	text-decoration: none !important;
}

.desc-toggle-btn:hover {
	color: var(--theme-gold);
}

.program-testimonials {
	margin-bottom: 18px;
}

.program-testimonials a {
	font-size: 12px;
	font-weight: 600;
	color: #7f8c8d;
	text-decoration: underline !important;
}

.program-testimonials a:hover {
	color: var(--theme-navy);
}

.program-actions {
	display: flex;
	gap: 8px;
	margin-top: 12px;
}

.program-actions a {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px 12px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	border-radius: 6px;
	text-align: center;
	transition: all 0.3s ease;
	letter-spacing: 0.5px;
	text-decoration: none !important;
}

.program-actions .btn-secondary {
	flex: 1;
	background: #f8f9fa;
	color: #495057 !important;
	border: 1px solid #ced4da;
}

.program-actions .btn-secondary:hover {
	background: #e9ecef;
	color: #212529 !important;
}

.program-actions .btn-primary {
	flex: 1.3;
	background: var(--theme-navy);
	color: #ffffff !important;
	border: 1px solid var(--theme-navy);
	box-shadow: 0 2px 6px rgba(39, 211, 0, 0.2);
}

.program-actions .btn-primary:hover {
	background: var(--theme-gold);
	border-color: var(--theme-gold);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(26, 122, 76, 0.3);
}

/* Tooltip Popup for Program Action Buttons (e.g. Retake Test, Enroll Now) */
.program-actions a.info {
	position: relative;
}

.program-card .information-hover,
.program-actions .information-hover {
	position: absolute;
	top: auto !important;
	bottom: calc(100% + 10px) !important;
	right: 0 !important;
	left: auto !important;
	width: 190px !important;
	background: #1e293b !important;
	color: #ffffff !important;
	padding: 8px 12px !important;
	font-size: 11px !important;
	line-height: 1.45 !important;
	border-radius: 8px !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
	z-index: 9999 !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	font-weight: 500 !important;
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, transform 0.2s ease;
	transform: translateY(4px);
}

.program-card .information-hover:after,
.program-actions .information-hover:after {
	content: '' !important;
	position: absolute !important;
	top: 100% !important;
	bottom: auto !important;
	right: 24px !important;
	left: auto !important;
	border-top: 6px solid #1e293b !important;
	border-right: 6px solid transparent !important;
	border-left: 6px solid transparent !important;
	border-bottom: none !important;
	transform: none !important;
}

.program-card .info:hover .information-hover,
.program-actions .info:hover .information-hover,
.program-actions a.info:hover .information-hover {
	opacity: 1 !important;
	visibility: visible !important;
	transform: translateY(0) !important;
}

@media (max-width: 991px) {
	.programs-grid {
		grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 576px) {
	.programs-grid {
		grid-template-columns: 1fr;
		gap: 18px;
		padding: 10px 0;
	}

	.program-card-header {
		height: 60px;
	}

	.program-image {
		height: 100%;
		top: 0;
		right: 10px;
		max-width: 110px;
	}

	.program-card-body {
		padding: 12px;
	}
	.program-title {
		font-size: 14px;
		margin-bottom: 3px;
	}
	.program-one-liner {
		font-size: 11px;
		margin-bottom: 8px;
		height: auto;
	}

	.program-stats {
		flex-direction: row;
		align-items: center;
		padding-bottom: 8px;
		margin-bottom: 0;
	}
	.stat-likes span, .stat-rating .avgrating {
		font-size: 12px;
	}
	span.rating1 {
		width: 108px;
		margin-right: 4px;
	}

	.program-actions {
		flex-direction: row;
		gap: 6px;
		margin-top: 8px;
	}
	.program-actions a {
		padding: 8px 8px;
		font-size: 10px;
	}

	.mycourses-scoreboard-leaderboard-section {
		padding-bottom: 30px !important;
	}
	.table-responsive table thead th {
		font-size: 11px !important;
		padding: 8px 6px !important;
	}
	.table-responsive table tbody td {
		font-size: 11px !important;
		padding: 8px 6px !important;
	}

	.status-badge {
		font-size: 9px;
		padding: 3px 6px;
	}
}

@media (max-width: 400px) {
	.programs-grid {
		gap: 10px;
	}
	.program-card-body {
		padding: 10px;
	}
	.program-title {
		font-size: 13px;
	}
	.program-actions a {
		padding: 7px 6px;
		font-size: 10px;
		letter-spacing: 0;
	}
}

/* Performance Overview Section */
.performance-analytics-section {
    padding: 36px 0;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px 0;
}

.section-subtitle {
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: #64748b;
    margin: 0 0 28px 0;
}

.overall-points-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01);
}

.points-text h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 4px 0;
}

.points-text p {
    font-family: 'Outfit', sans-serif;
    font-size: 12px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
}

.points-value-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.points-value-wrap img {
    width: 24px;
    height: 24px;
}

.points-value {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--theme-navy);
    line-height: 1;
}

/* Custom Table Design */
.perf-table-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.perf-table {
    width: 100%;
    border-collapse: collapse;
}

.perf-table th {
    background-color: var(--theme-navy);
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 11.5px;
    letter-spacing: 0.5px;
    padding: 14px 18px;
    text-align: left;
    border: none;
}

.perf-table td {
    padding: 16px 18px;
    font-size: 13.5px;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
    background-color: #ffffff;
    vertical-align: middle;
}

.perf-table tr:last-child td {
    border-bottom: none;
}

.perf-table tr:hover td {
    background-color: #f8fafc;
}

/* Progress bar in table */
.table-progress-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 140px;
}

.table-progress-bar {
    flex: 1;
    height: 8px;
    background-color: #e2e8f0;
    border-radius: 99px;
    overflow: hidden;
}

.table-progress-fill {
    height: 100%;
    background-color: #10b981;
    border-radius: 99px;
}

.table-progress-text {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    min-width: 38px;
}

.score-text {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #0f172a;
}

.points-earned-val {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #10b981;
}

/* Action buttons in tables */
.btn-table-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border: 1.5px solid var(--theme-navy);
    color: var(--theme-navy) !important;
    background: transparent;
    transition: all 0.2s ease;
    margin-right: 6px;
    text-decoration: none !important;
}

.btn-table-outline:hover {
    background-color: rgba(39, 211, 0, 0.05);
}

.btn-table-filled {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff !important;
    background-color: var(--theme-navy);
    border: none;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.btn-table-filled:hover {
    background-color: var(--theme-navy-dark);
}

/* Status badging in table */
.table-status-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.table-status-badge.ongoing {
    background-color: #fef3c7;
    color: #d97706;
}

.table-status-badge.completed {
    background-color: #d1fae5;
    color: #059669;
}

.table-status-badge.on-schedule {
    background-color: #d1fae5;
    color: #059669;
}

/* Responsive Table Wrapper */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Sticky Footer and Flex Layout to eliminate trailing white space */
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.wrapper > .ingopage-section,
.wrapper > .simapt-program-section,
.wrapper > .programs-container-wrap {
    flex: 1 0 auto;
}

#footer,
.buiz-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    width: 100% !important;
}


