/* Prepared Acceptance — LearnPress styling (course archive + single course)
 * Built against the real installed LearnPress 4.4.x markup (its modern
 * AJAX-loaded course-list templates, not the legacy content-course.php
 * template files bundled with the plugin — those aren't what actually
 * renders here).
 */

/* shared wrapper */
.lp-archive-courses,
.lp-content-area {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) 24px clamp(56px, 8vw, 96px);
}
.learn-press-breadcrumb {
	display: flex;
	align-items: center;
	gap: 6px;
	list-style: none;
	font-size: 13.5px;
	color: #7c8a78;
	margin-bottom: 18px;
}
.learn-press-breadcrumb li {
	display: flex;
	align-items: center;
	gap: 6px;
}
.learn-press-breadcrumb a {
	color: #5c6159;
	font-weight: 600;
}
.learn-press-breadcrumb a:hover {
	color: #2f4a3a;
}
.learn-press-breadcrumb .lp-icon-angle-right {
	font-size: 11px;
	color: #b9c0b3;
}
.learn-press-courses-header h1,
h1.course-title {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: clamp(30px, 4vw, 44px);
	color: #1f2420;
	margin-bottom: 20px;
}

/* search / sort / layout switch bar */
.lp-courses-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 28px;
}
.lp-courses-bar .search-courses {
	display: flex;
	flex: 1 1 260px;
	border: 1px solid #d8d3c7;
	border-radius: 11px;
	background: #fff;
	overflow: hidden;
}
.lp-courses-bar .search-courses input[type="search"] {
	flex: 1;
	border: none;
	padding: 12px 15px;
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 15px;
	background: transparent;
}
.lp-courses-bar .search-courses input[type="search"]:focus {
	outline: none;
}
.lp-courses-bar .search-courses button {
	border: none;
	background: #ece7dd;
	padding: 0 16px;
	color: #2f4a3a;
	cursor: pointer;
}
.courses-order-by-wrapper select.courses-order-by {
	font-family: 'Hanken Grotesk', sans-serif;
	font-size: 14px;
	padding: 10px 14px;
	border: 1px solid #d8d3c7;
	border-radius: 10px;
	background: #fff;
	color: #3a4138;
}
.switch-layout {
	display: flex;
	border: 1px solid #d8d3c7;
	border-radius: 10px;
	overflow: hidden;
}
.switch-layout .switch-btn {
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	background: #fff;
}
.switch-layout input:checked + .switch-btn {
	background: #e7ede6;
}

/* course cards — grid layout (default) */
ul.learn-press-courses {
	list-style: none;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 20px;
}
ul.learn-press-courses li.course {
	list-style: none;
}
ul.learn-press-courses .course-item {
	background: #fbfaf6;
	border: 1px solid #e4e0d6;
	border-radius: 18px;
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
}
.course-item .course-thumbnail,
.course-item .course-img {
	margin: 0;
}
.course-item .course-thumbnail img,
.course-item .course-img img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	display: block;
	background: #ece7dd;
}
.course-item .course-content {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}
.course-item .wap-course-title {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.25;
	margin-bottom: 8px;
}
.course-item .wap-course-title .course-permalink {
	color: #1f2420;
}
.course-item .wap-course-title .course-permalink:hover {
	color: #2f4a3a;
}
.course-item .course-instructor-category {
	font-size: 13.5px;
	color: #7c8a78;
	margin-bottom: 14px;
}
.course-item .course-instructor-category label {
	font-weight: 400;
}
.course-item .course-instructor-category .instructor-display-name {
	font-weight: 600;
	color: #5c6159;
}
.course-wrap-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	padding-top: 12px;
	margin-top: auto;
	border-top: 1px solid #e4e0d6;
	font-size: 13px;
	color: #7c8a78;
}
.course-wrap-meta .meta-item {
	display: flex;
	align-items: center;
	gap: 5px;
}
.course-info {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 14px;
}
.course-price .course-item-price {
	font-weight: 600;
	font-size: 15px;
	color: #2f4a3a;
}
.course-price .free {
	color: #5a8a5f;
}
.course-readmore a {
	/* LearnPress's own bundled CSS targets this exact ancestor chain
	   (.learn-press-courses .course-content .course-readmore a) at
	   higher specificity than a bare .course-readmore a — !important
	   avoids having to chase every deep selector LP ships. */
	display: inline-flex !important;
	align-items: center;
	white-space: nowrap;
	font-weight: 600 !important;
	font-size: 14.5px !important;
	padding: 10px 20px !important;
	border-radius: 999px !important;
	border: 1px solid #2f4a3a !important;
	background: #2f4a3a !important;
	color: #fbfaf6 !important;
	transition: background .2s;
}
.course-readmore a:hover {
	background: #24382c !important;
}

/* list layout variant — LearnPress's own JS toggles the data-layout
   attribute on click, but never actually swaps the "list"/"grid" class
   (it stays "list" permanently regardless of view), so the attribute
   is the only reliable thing to select on here. */
ul.learn-press-courses[data-layout="list"] {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
ul.learn-press-courses[data-layout="list"] .course-item {
	flex-direction: row;
	align-items: stretch;
}
ul.learn-press-courses[data-layout="list"] .course-thumbnail,
ul.learn-press-courses[data-layout="list"] .course-img {
	flex: 0 0 220px;
}
ul.learn-press-courses[data-layout="list"] .course-thumbnail img,
ul.learn-press-courses[data-layout="list"] .course-img img {
	height: 100%;
	aspect-ratio: auto;
}
ul.learn-press-courses[data-layout="list"] .course-content {
	flex: 1;
}
ul.learn-press-courses[data-layout="list"] .course-wrap-meta {
	margin-top: 12px;
}

/* single course header */
.lp-single-course__header {
	background: #ece7dd;
}
.lp-single-course__header__inner {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) 24px;
}
.lp-single-course__header .course-instructor-category {
	font-size: 15px;
	color: #5c6159;
	margin-bottom: 10px;
}
.lp-single-course__header .instructor-display-name {
	font-weight: 600;
	color: #2f3a30;
}
.lp-single-course-info-one .item-meta {
	font-size: 13.5px;
	color: #7c8a78;
}

.lp-single-course-main {
	max-width: 1180px;
	margin: 0 auto;
	padding: clamp(32px, 5vw, 56px) 24px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(28px, 4vw, 48px);
	align-items: start;
}
@media (max-width: 900px) {
	.lp-single-course-main {
		grid-template-columns: 1fr;
	}
}
.lp-course-description {
	font-size: 16px;
	line-height: 1.7;
	color: #444a42;
}
.learn-press-message.info {
	background: #fbfaf6;
	border: 1px solid #e4e0d6;
	border-left: 4px solid #2f4a3a;
	border-radius: 14px;
	padding: 16px 20px;
	font-size: 15px;
	color: #5c6159;
	margin: 20px 0;
}
.lp-section-instructor > .section-title {
	font-family: 'Newsreader', serif;
	font-weight: 500;
	font-size: 22px;
	margin: 32px 0 16px;
}
.lp-instructor-info {
	display: flex;
	gap: 16px;
	align-items: center;
	background: #fbfaf6;
	border: 1px solid #e4e0d6;
	border-radius: 16px;
	padding: 18px 20px;
}
.lp-instructor-info .instructor-avatar img {
	width: 64px;
	height: 64px;
	border-radius: 999px;
	object-fit: cover;
}
.lp-instructor-info .instructor-display-name {
	font-weight: 600;
	font-size: 16.5px;
	color: #1f2420;
}
.lp-instructor-meta {
	display: flex;
	gap: 14px;
	margin-top: 4px;
	font-size: 13.5px;
	color: #7c8a78;
}

/* sidebar / enroll box */
.lp-single-course-main__right__inner {
	background: #fbfaf6;
	border: 1px solid #e4e0d6;
	border-radius: 20px;
	overflow: hidden;
	position: sticky;
	top: 100px;
}
.lp-single-course-main__right__inner .course-img img {
	width: 100%;
	aspect-ratio: 16/10;
	object-fit: cover;
	display: block;
}
.lp-single-course-main__right__inner > .course-price {
	display: block;
	padding: 20px 22px 0;
	font-family: 'Newsreader', serif;
	font-size: 26px;
	font-weight: 500;
	color: #2f4a3a;
}
.info-metas {
	padding: 16px 22px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.info-meta-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	font-size: 14.5px;
	border-bottom: 1px solid #e4e0d6;
	padding-bottom: 12px;
}
.info-meta-item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}
.info-meta-left {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5c6159;
	font-weight: 600;
}
.info-meta-left i {
	color: #2f4a3a;
}
.info-meta-right {
	color: #1f2420;
}
.course-buttons {
	padding: 0 22px 22px;
}
.course-buttons .lp-button,
form.enroll-course .lp-button {
	display: flex !important;
	width: 100%;
	align-items: center;
	justify-content: center;
	font-family: 'Hanken Grotesk', sans-serif;
	font-weight: 600 !important;
	font-size: 16px !important;
	padding: 15px 30px !important;
	border-radius: 999px !important;
	border: 1px solid #2f4a3a !important;
	background: #2f4a3a !important;
	color: #fbfaf6 !important;
	cursor: pointer;
	transition: background .2s;
}
.course-buttons .lp-button:hover,
form.enroll-course .lp-button:hover {
	background: #24382c !important;
}
.social-swapper.social-share-toggle {
	border-top: 1px solid #e4e0d6;
	padding: 16px 22px;
	font-size: 13.5px;
	color: #7c8a78;
}
.share-toggle-icon {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
}

/* course tabs (used inside curriculum/overview panels where present) */
ul.course-nav-tabs {
	display: flex;
	gap: 8px;
	list-style: none;
	flex-wrap: wrap;
	border-bottom: 1px solid #e4e0d6;
	margin-bottom: 24px;
}
ul.course-nav-tabs li.course-nav label {
	display: inline-block;
	padding: 12px 20px;
	font-weight: 600;
	font-size: 15px;
	color: #5c6159;
	border-bottom: 2px solid transparent;
	cursor: pointer;
}
ul.course-nav-tabs li.course-nav.active label {
	color: #2f4a3a;
	border-bottom-color: #2f4a3a;
}

/* progress bars, wherever LP renders them (profile, in-course) */
.lp-progress-bar,
.progress-bg {
	background: #e7ede6;
	border-radius: 999px;
	height: 8px;
	overflow: hidden;
}
.lp-progress,
.progress-active {
	background: #2f4a3a;
	height: 100%;
}
