/* Loba Subscriptions — frontend */

/* ── Page title ─────────────────────────────────────────────────── */
.loba-courses-title {
	margin-bottom: 24px;
}

.loba-no-courses,
.loba-empty {
	color: #888;
	font-size: 0.9em;
	padding: 12px 0;
}

/* ── Accordion card (outer — one per subscription) ──────────────── */
.loba-card {
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	margin-bottom: 20px;
	overflow: hidden;
}

.loba-card__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	background: #fff;
	transition: background 0.15s;
}

.loba-card__header::-webkit-details-marker { display: none; }
.loba-card__header::marker { display: none; }

.loba-card__header:hover {
	background: #f8f8f8;
}

.loba-card__title {
	font-size: 1.05em;
	font-weight: 600;
	color: #1a1a1a;
}

.loba-card__meta {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

.loba-card__expiry {
	font-size: 0.82em;
	color: #777;
}

/* Chevron arrow */
.loba-card__chevron,
.loba-item__chevron {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-right: 2px solid #999;
	border-bottom: 2px solid #999;
	transform: rotate(45deg);
	transition: transform 0.2s;
	flex-shrink: 0;
}

.loba-card[open] > .loba-card__header .loba-card__chevron,
.loba-item[open] > .loba-item__row .loba-item__chevron {
	transform: rotate(-135deg);
}

/* Card body */
.loba-card__body {
	padding: 0 20px 20px;
	background: #fff;
}

/* ── Content section (Videos / PDF) ─────────────────────────────── */
.loba-content-section {
	margin-top: 16px;
}

.loba-content-section + .loba-content-section {
	margin-top: 24px;
}

.loba-section-label {
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #999;
	margin: 0 0 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #efefef;
}

/* ── Item row ────────────────────────────────────────────────────── */
.loba-item {
	border-bottom: 1px solid #f2f2f2;
}

.loba-item:last-child {
	border-bottom: none;
}

.loba-item__row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 0;
	cursor: pointer;
	list-style: none;
}

/* Remove default marker from video accordion */
.loba-item--video > .loba-item__row::-webkit-details-marker { display: none; }
.loba-item--video > .loba-item__row::marker { display: none; }

/* PDF row isn't a <summary> so cursor default */
.loba-item--pdf .loba-item__row {
	cursor: default;
}

/* Type badge */
.loba-item__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.68em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	padding: 3px 7px;
	border-radius: 3px;
	flex-shrink: 0;
	min-width: 44px;
}

.loba-item__badge--video {
	background: #e8f0fe;
	color: #1a56db;
}

.loba-item__badge--pdf {
	background: #fde8e8;
	color: #c81e1e;
}

.loba-item__name {
	flex: 1;
	font-size: 0.93em;
	color: #222;
}

.loba-item__download {
	font-size: 0.82em;
	color: #555;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 3px;
	padding: 3px 10px;
	flex-shrink: 0;
	transition: border-color 0.15s, color 0.15s;
}

.loba-item__download:hover {
	border-color: #999;
	color: #111;
}

/* ── Video embed (inside item accordion) ────────────────────────── */
.loba-item__embed {
	padding-bottom: 14px;
}

.loba-item__embed iframe {
	display: block;
	width: 100% !important;
	aspect-ratio: 16 / 9;
	height: auto !important;
	border: 0;
	border-radius: 4px;
}

/* Fallback for browsers without aspect-ratio */
@supports not (aspect-ratio: 16/9) {
	.loba-item__embed {
		position: relative;
		padding-top: 56.25%;
		overflow: hidden;
	}
	.loba-item__embed iframe {
		position: absolute !important;
		top: 0 !important;
		left: 0 !important;
		height: 100% !important;
	}
}
