/**
 * AcademyFlow AI – Public styles.
 */

.afai-catalog,
.afai-course-show,
.afai-learning,
.afai-checkout,
.afai-account {
	font-family: inherit;
	color: #1d2327;
}

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

.afai-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.afai-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
.afai-card-cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	display: block;
}
.afai-card-body {
	padding: 15px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}
.afai-card-title {
	font-size: 18px;
	margin: 0;
	line-height: 1.3;
}
.afai-card-title a {
	color: #1d2327;
	text-decoration: none;
}
.afai-card-meta {
	font-size: 13px;
	color: #646970;
	margin: 0;
}
.afai-card-desc {
	font-size: 14px;
	margin: 0;
	flex: 1;
}
.afai-card-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 10px;
}
.afai-price {
	font-weight: 600;
	color: #2271b1;
}

.afai-btn {
	display: inline-block;
	padding: 8px 16px;
	background: #2271b1;
	color: #fff !important;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.15s ease;
}
.afai-btn:hover {
	background: #135e96;
}
.afai-btn-primary {
	background: #2271b1;
}
.afai-btn-large {
	padding: 12px 24px;
	font-size: 16px;
}

.afai-course-header h1 {
	margin: 0 0 10px;
}
.afai-lead {
	font-size: 18px;
	color: #50575e;
	margin: 0 0 15px;
}
.afai-course-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	font-size: 14px;
	color: #50575e;
	margin-bottom: 20px;
}
.afai-course-cover img,
.afai-course-preview video {
	width: 100%;
	border-radius: 10px;
	max-height: 420px;
	object-fit: cover;
}
.afai-course-program details {
	background: #f6f7f7;
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 10px 15px;
	margin-bottom: 8px;
}
.afai-course-program details summary {
	font-weight: 600;
	cursor: pointer;
}
.afai-course-program details ul {
	margin: 10px 0 0 20px;
}
.afai-course-cta {
	position: sticky;
	top: 20px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 20px;
	margin-top: 20px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}
.afai-price-value {
	font-size: 28px;
	font-weight: 700;
	color: #2271b1;
	margin: 0;
}
.afai-price-compare del {
	color: #8c8f94;
}
.afai-price-free {
	font-size: 24px;
	font-weight: 700;
	color: #00a32a;
	margin: 0;
}

.afai-learning-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 20px;
	margin-top: 20px;
}
@media (max-width: 768px) {
	.afai-learning-layout {
		grid-template-columns: 1fr;
	}
}
.afai-learning-sidebar {
	background: #f6f7f7;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 15px;
	max-height: 70vh;
	overflow-y: auto;
}
.afai-learning-section h3 {
	font-size: 14px;
	margin: 0 0 8px;
}
.afai-learning-section ol {
	margin: 0 0 15px 20px;
	padding: 0;
}
.afai-learning-section li a {
	text-decoration: none;
	color: #50575e;
}
.afai-learning-section li.afai-current a {
	color: #2271b1;
	font-weight: 600;
}
.afai-learning-section li.afai-done a {
	color: #00a32a;
}
.afai-learning-content {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 20px;
}
.afai-video-wrap video {
	width: 100%;
	border-radius: 6px;
}
.afai-lesson-content {
	margin: 20px 0;
	line-height: 1.6;
}
.afai-lesson-complete {
	margin-top: 20px;
}

.afai-progress {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 10px 0;
}
.afai-progress-bar {
	flex: 1;
	background: #e5e7eb;
	border-radius: 4px;
	height: 8px;
	overflow: hidden;
}
.afai-progress-bar span {
	display: block;
	height: 100%;
	background: #2271b1;
	transition: width 0.3s ease;
}
.afai-progress-label {
	font-size: 12px;
	font-weight: 600;
	color: #50575e;
	min-width: 50px;
	text-align: right;
}

.afai-form .afai-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}
.afai-form label {
	display: block;
	margin-bottom: 12px;
	font-weight: 500;
}
.afai-form input[type="text"],
.afai-form input[type="email"],
.afai-form input[type="number"],
.afai-form input[type="url"] {
	width: 100%;
	padding: 8px;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font-size: 14px;
}
.afai-providers {
	border: 1px solid #e5e7eb;
	border-radius: 6px;
	padding: 15px;
	margin-bottom: 15px;
}
.afai-providers legend {
	font-weight: 600;
	padding: 0 6px;
}
.afai-providers label {
	display: inline-flex;
	align-items: center;
	margin-right: 15px;
	font-weight: 400;
}
.afai-terms {
	margin: 15px 0;
	font-size: 14px;
}

.afai-table {
	width: 100%;
	border-collapse: collapse;
}
.afai-table th,
.afai-table td {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 1px solid #e5e7eb;
}
.afai-table th {
	background: #f6f7f7;
	font-weight: 600;
}

.afai-account-section {
	margin: 30px 0;
}
.afai-empty {
	color: #50575e;
	font-style: italic;
}
