.elc-ielts-btn {
	display: inline-block;
	background: #4B8EDE;
	color: #fff;
	padding: 8px 18px;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	border: none;
	cursor: pointer;
}

.elc-ielts-btn:hover {
	background: #4B8EDE;
	color: #fff;
}

/* Tab "Chấm Writing" trong Cổng giáo viên - table/card wp-admin gốc không có style ở frontend, tự bọc CSS riêng. */
.elc-ielts-grading-notice {
	background: #dcfce7;
	color: #166534;
	border: 1px solid #86efac;
	border-radius: 8px;
	padding: 10px 14px;
	margin-bottom: 16px;
	font-weight: 600;
}

.elc-ielts-grading .wp-list-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}

.elc-ielts-grading .wp-list-table th,
.elc-ielts-grading .wp-list-table td {
	text-align: left;
	padding: 10px 8px;
	border-bottom: 1px solid #e5e7eb;
}

.elc-ielts-grading .wp-list-table th {
	color: #6b7280;
	font-size: 12px;
	text-transform: uppercase;
}

.elc-ielts-grading .card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
}

.elc-ielts-grading .form-table th {
	text-align: left;
	padding: 10px 0;
	vertical-align: top;
	width: 140px;
}

.elc-ielts-grading .form-table td {
	padding: 10px 0;
}

.elc-ielts-grading textarea.large-text,
.elc-ielts-grading select#elc-band {
	width: 100%;
	max-width: 500px;
	padding: 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	font-family: inherit;
}

.elc-ielts-grading-submit {
	margin-top: 12px;
}

.elc-ielts-btn-outline {
	background: #fff;
	color: #4B8EDE;
	border: 1px solid #4B8EDE;
}

.elc-ielts-btn-back {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	color: #4B8EDE;
	text-decoration: none;
	align-self: flex-start;
	margin-top: -8px;
	margin-bottom: -30px;
	line-height: 1.2;
	padding: 0;
	background: none;
	border: none;
	border-radius: 0;
}

.elc-ielts-btn-back:hover {
	color: #4B8EDE;
	text-decoration: underline;
	background: none;
}

.elc-ielts-btn-outline:hover {
	background: #EBF7FF;
	color: #4B8EDE;
}

/* Catalog - trang danh sách gói IELTS */

.elc-ielts-catalog-layout {
	display: flex;
	align-items: flex-start;
	gap: 24px;
	max-width: 1600px;
	width: 100%;
	margin: 0 auto;
	box-sizing: border-box;
}

.elc-ielts-catalog {
	font-family: 'Inter', sans-serif;
	flex: 1;
	min-width: 0;
}

/* Cột trái: xếp dọc bộ lọc thẻ + khung gamification trong CÙNG 1 cột 220px -
   flex-basis/sticky chuyển hết ra wrapper này, .elc-ielts-catalog-filter bên
   trong chỉ còn là 1 khối con (tự giãn full width theo mặc định của flex-column). */
.elc-ielts-catalog-left-stack {
	flex: 0 0 220px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	position: sticky;
	top: 24px;
}

.elc-ielts-catalog-filter {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	padding: 18px 20px;
	font-family: 'Inter', sans-serif;
}

.elc-ielts-catalog-filter-title {
	margin: 0 0 12px;
	font-size: 16px;
	font-weight: 700;
}

.elc-ielts-catalog-filter-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	padding: 6px 0;
	cursor: pointer;
}

.elc-ielts-catalog-filter-count {
	margin-left: auto;
	color: #9ca3af;
	font-size: 12px;
}

#elc-ielts-catalog-results.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

.elc-ielts-catalog-empty {
	color: #6b7280;
	padding: 24px 0;
}

.elc-ielts-catalog-pagination {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 24px;
}

.elc-ielts-catalog-page-btn {
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #fff;
	color: #4b5563;
	font-family: inherit;
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
}

.elc-ielts-catalog-page-btn:hover {
	border-color: #4B8EDE;
	color: #4B8EDE;
}

.elc-ielts-catalog-page-btn.active {
	background: #4B8EDE;
	border-color: #4B8EDE;
	color: #fff;
}

@media (max-width: 1024px) {
	.elc-ielts-catalog-layout {
		flex-direction: column;
	}

	.elc-ielts-catalog-left-stack {
		flex-basis: auto;
		width: 100%;
		position: static;
	}
}

.elc-ielts-catalog-group {
	background: #EBF7FF;
	border-radius: 18px;
	padding: 20px 24px;
	margin-bottom: 28px;
}

.elc-ielts-catalog-heading {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 16px;
}

.elc-ielts-catalog-row {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 14px;
}

.elc-ielts-catalog-row--5 {
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1180px) {
	.elc-ielts-catalog-row--5 { grid-template-columns: repeat(3, 1fr); }
}

/* Combo + Phổ biến nhất + Mới nhất - full width, đứng TRÊN toàn bộ bố cục sidebar+lưới bên dưới. */
.elc-ielts-catalog-top {
	max-width: 1600px;
	margin: 0 auto;
	box-sizing: border-box;
}

.elc-ielts-catalog-highlight {
	margin-bottom: 28px;
}

@media (max-width: 900px) {
	.elc-ielts-catalog-row {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.elc-ielts-catalog-row {
		grid-template-columns: 1fr;
	}
}

.elc-ielts-catalog-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.elc-ielts-catalog-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.elc-ielts-catalog-thumb {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	background: #f3f4f6;
	overflow: hidden;
}

.elc-ielts-catalog-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.elc-ielts-catalog-thumb-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	font-size: 40px;
}

.elc-ielts-catalog-card-body {
	padding: 14px 16px 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.elc-ielts-catalog-card-title {
	font-weight: 700;
	color: #1f2937;
	text-decoration: none;
	font-size: 15px;
	line-height: 1.4;
}

.elc-ielts-catalog-card:hover .elc-ielts-catalog-card-title {
	color: #4B8EDE;
}

.elc-ielts-price {
	font-weight: 600;
	color: #1f2937;
}

.elc-ielts-price del {
	color: #9ca3af;
	font-weight: 400;
	margin-right: 6px;
}

.elc-ielts-price ins {
	text-decoration: none;
	color: #dc2626;
}

.elc-ielts-price-free {
	color: #16a34a;
}

.elc-ielts-catalog-card .elc-ielts-btn {
	text-align: center;
	padding: 8px 12px;
	font-size: 14px;
}

/* Hàng tiêu đề + nút "Xem thêm" (VD: "🎯 Luyện Đề Miễn Phí") */
.elc-ielts-catalog-heading-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.elc-ielts-catalog-heading-row .elc-ielts-catalog-heading {
	margin: 0 0 16px;
}

.elc-ielts-catalog-heading-row .elc-ielts-btn {
	margin-bottom: 16px;
	padding: 6px 16px;
	font-size: 13px;
	white-space: nowrap;
}

/* Card Bộ đề miễn phí - thay ảnh bìa bằng dải nhãn kỹ năng vì Bộ đề không có ảnh riêng. */
.elc-ielts-test-card-skill {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	aspect-ratio: 16 / 7;
	font-weight: 700;
	font-size: 14px;
	color: #fff;
}

.elc-ielts-test-card-skill--reading {
	background: linear-gradient(120deg, #4B8EDE, #4B8EDE);
}

.elc-ielts-test-card-skill--listening {
	background: linear-gradient(120deg, #4B8EDE, #4B8EDE);
}

.elc-ielts-test-card-skill--writing {
	background: linear-gradient(120deg, #d97706, #f59e0b);
}

.elc-ielts-test-card .elc-ielts-catalog-card-title {
	display: block;
}

/* Banner combo "Toàn bộ gói IELTS" - tương tự yearpass bên Vocab/Sách */
.elc-ielts-catalog-yearpass {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	background: linear-gradient(120deg, #4B8EDE, #4B8EDE);
	color: #fff;
	border-radius: 18px;
	padding: 20px 28px;
	margin-bottom: 20px;
}

.elc-ielts-catalog-yearpass-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elc-ielts-catalog-yearpass-info strong {
	font-size: 18px;
}

.elc-ielts-catalog-yearpass .elc-ielts-price {
	color: #EBF7FF;
}

.elc-ielts-catalog-yearpass .elc-ielts-btn {
	background: #fff;
	color: #4B8EDE;
}

.elc-ielts-combo-options {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.elc-ielts-combo-option {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 12px;
	padding: 10px 16px;
	min-width: 110px;
}

.elc-ielts-combo-option-label {
	font-weight: 700;
	font-size: 14px;
}

.elc-ielts-combo-option-price {
	font-size: 13px;
	color: #EBF7FF;
}

.elc-ielts-combo-option-price del {
	color: rgba(224, 231, 255, 0.6);
}

.elc-ielts-combo-option .elc-ielts-btn {
	padding: 5px 18px;
	font-size: 13px;
}

/* Nhãn tuỳ chỉnh đè góc ảnh bìa (VD: Hot, Mới) */
.elc-ielts-badge-ribbon {
	position: absolute;
	top: 12px;
	left: 0;
	z-index: 2;
	background: #dc2626;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 14px 4px 12px;
	border-radius: 0 6px 6px 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Trang chi tiết gói */

.elc-ielts-course {
	font-family: 'Inter', sans-serif;
	max-width: 1280px;
	margin: 0 auto;
}

/* ===== Lưới 2 cột - GIỐNG HỆT cấu trúc .elc-sach-book-layout / .elc-vocab-course-layout:
   cột trái cố định 300px (ảnh bìa + giá/CTA riêng 1 khung), cột phải co giãn
   (mô tả rồi tới các khung Bộ đề/Bài lẻ/Writing) - để đồng bộ hoàn toàn với
   Sách/Từ vựng thay vì 1 cột dọc như bản cũ. ===== */
.elc-ielts-course-layout {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 28px;
	align-items: start;
}

@media (max-width: 900px) {
	.elc-ielts-course-layout {
		grid-template-columns: 1fr;
	}
}

.elc-ielts-course-right {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.elc-ielts-hero-left {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.elc-ielts-hero-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	align-self: start;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: -8px;
}

.elc-ielts-hero-thumb {
	position: relative;
}

.elc-ielts-hero-thumb img {
	width: 100%;
	display: block;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.elc-ielts-hero-thumb-ph {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	font-size: 56px;
	background: #f3f4f6;
}

.elc-ielts-hero-card-body {
	padding: 18px 20px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.elc-ielts-btn-big {
	display: block;
	text-align: center;
	padding: 12px 20px;
	font-size: 15px;
}

/* ===== Khung gamification toàn hệ thống (catalog + trang 1 gói) - cùng khung
   bo góc Mac OS 18px/shadow .08 với .elc-ielts-hero-card. ===== */
.elc-ielts-gamification-box {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 18px 20px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
}

.elc-ielts-gamification-box h3 {
	margin: 0 0 14px;
	font-size: 16px;
}

.elc-ielts-gamification-box ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.elc-ielts-gamification-box li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	min-width: 0;
}

.elc-ielts-medal-img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex-shrink: 0;
}

.elc-ielts-medal-fallback {
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #EBF7FF;
	color: #4B8EDE;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 13px;
}

.elc-ielts-top-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elc-ielts-top-count {
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
}

.elc-ielts-streak-line {
	font-size: 13px;
	color: #4b5563;
	line-height: 1.6;
}

.elc-ielts-streak-divider {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px solid #f3f4f6;
}

/* Bảng xếp hạng từ vựng dùng chung với ELC Vocab. */
.elc-ielts-course .elc-vocab-top-students,
.elc-ielts-catalog-left-stack .elc-vocab-top-students {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 20px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.elc-ielts-course .elc-vocab-top-students h3,
.elc-ielts-catalog-left-stack .elc-vocab-top-students h3 {
	margin: 0 0 14px;
	font-size: 16px;
	line-height: 1.4;
	color: #4B8EDE;
	font-weight: 800;
}

.elc-ielts-course .elc-vocab-top-students ol,
.elc-ielts-catalog-left-stack .elc-vocab-top-students ol {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.elc-ielts-course .elc-vocab-top-students li,
.elc-ielts-catalog-left-stack .elc-vocab-top-students li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	min-width: 0;
}

.elc-ielts-course .elc-vocab-top-rank,
.elc-ielts-catalog-left-stack .elc-vocab-top-rank {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	flex-shrink: 0;
	border-radius: 50%;
	background: #EBF7FF;
	color: #4B8EDE;
	font-size: 12px;
	font-weight: 700;
}

.elc-ielts-course .elc-vocab-top-name,
.elc-ielts-catalog-left-stack .elc-vocab-top-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elc-ielts-course .elc-vocab-top-students li:nth-child(-n+3) .elc-vocab-top-name,
.elc-ielts-catalog-left-stack .elc-vocab-top-students li:nth-child(-n+3) .elc-vocab-top-name {
	color: #ec4899;
	font-weight: 800;
}

.elc-ielts-course .elc-vocab-top-count,
.elc-ielts-catalog-left-stack .elc-vocab-top-count {
	color: #6b7280;
	font-size: 12px;
	font-weight: 600;
}

.elc-ielts-hero-tags {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 10px;
}

.elc-ielts-hero-tag {
	background: #EBF7FF;
	color: #4B8EDE;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 4px 12px;
}

.elc-ielts-hero-title {
	font-size: 30px;
	margin: 0 0 14px;
}

.elc-ielts-hero-desc {
	color: #374151;
	line-height: 1.7;
}

.elc-ielts-hero-desc > *:first-child {
	margin-top: 0;
}

.elc-ielts-hero-desc > *:last-child {
	margin-bottom: 0;
}

/* ===== Khung mô tả (cột phải) - đồng bộ khung bo góc Mac OS với
   .elc-ielts-course-section-group và với trang Sách (.elc-sach-hero-right),
   padding lớn hơn khung danh sách vì đây là khối "hero" của cột phải. ===== */
.elc-ielts-course-description {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 28px 32px;
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	margin-top: -8px;
}

.elc-ielts-course-section {
	margin-bottom: 28px;
}

.elc-ielts-course-section h2 {
	font-size: 20px;
	margin-bottom: 12px;
}

.elc-ielts-course-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.elc-ielts-course-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	padding: 14px 18px;
}

.elc-ielts-course-row-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.elc-ielts-muted {
	color: #6b7280;
	font-size: 13px;
}

.elc-ielts-locked {
	color: #9ca3af;
	font-size: 13px;
	font-weight: 600;
}

/* ===== Khung nhóm section kiểu macOS bo góc (copy từ elc-sach) ===== */

.elc-ielts-course-section-group {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	padding: 20px 24px;
}

.elc-ielts-section-group-title {
	margin: 0 0 16px;
	font-size: 20px;
}

.elc-ielts-course-section-group .elc-ielts-course-section {
	margin-bottom: 20px;
}

.elc-ielts-course-section-group .elc-ielts-course-section:last-child {
	margin-bottom: 0;
}

.elc-ielts-course-section-group .elc-ielts-course-section h2 {
	font-size: 16px;
	margin: 0 0 10px;
	color: #374151;
}

.elc-ielts-course-section-group .elc-ielts-course-list {
	gap: 8px;
}

.elc-ielts-course-section-group .elc-ielts-course-row {
	background: #f9fafb;
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	padding: 12px 16px;
	transition: box-shadow 0.15s ease;
}

.elc-ielts-course-section-group .elc-ielts-course-row:hover {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.elc-ielts-course-section-group .elc-ielts-course-row-info strong {
	font-size: 14px;
}

.elc-ielts-btn-group {
	display: flex;
	gap: 8px;
	flex-shrink: 0;
}

/* ===== Trang "Kết quả Speaking" - bố cục 2 cột kiểu Mac OS 30/70 (cùng token bo góc/border/shadow với .elc-ielts-hero-card/.elc-ielts-course-description) ===== */

.elc-ielts-results-page {
	max-width: 1400px;
	margin: 0 auto;
	padding: 24px 16px;
}

.elc-ielts-results-layout {
	display: grid;
	grid-template-columns: 30% 1fr;
	gap: 24px;
	align-items: start;
	margin-top: 20px;
}

.elc-ielts-results-side,
.elc-ielts-results-main {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 18px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
	box-sizing: border-box;
	padding: 20px;
}

.elc-ielts-results-side {
	position: sticky;
	top: 20px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
}

.elc-ielts-results-pkg {
	margin-bottom: 6px;
}

.elc-ielts-results-pkg summary {
	font-weight: 700;
	font-size: 15px;
	padding: 10px 8px;
	cursor: pointer;
	border-radius: 10px;
	list-style: none;
}

.elc-ielts-results-pkg summary::-webkit-details-marker {
	display: none;
}

.elc-ielts-results-pkg summary:hover {
	background: #f9fafb;
}

.elc-ielts-results-link {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 10px 14px;
	margin: 2px 0 2px 8px;
	border-radius: 10px;
	text-decoration: none;
	color: #1f2937;
	position: relative;
}

.elc-ielts-results-link:hover {
	background: #f9fafb;
}

.elc-ielts-results-link.active {
	background: #EBF7FF;
	color: #4B8EDE;
}

.elc-ielts-results-link-title {
	font-weight: 600;
	font-size: 14px;
}

.elc-ielts-results-link-meta {
	font-size: 12px;
	color: #6b7280;
}

.elc-ielts-results-status {
	position: absolute;
	right: 10px;
	top: 10px;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 8px;
	border-radius: 999px;
	background: #f3f4f6;
	color: #6b7280;
}

.elc-ielts-status-graded {
	background: #dcfce7;
	color: #15803d;
}

.elc-ielts-status-grading {
	background: #fef9c3;
	color: #92400e;
}

.elc-ielts-status-grade_failed {
	background: #fee2e2;
	color: #b91c1c;
}

.elc-ielts-results-bandgrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin-bottom: 16px;
}

.elc-ielts-results-bandbox {
	background: #f9fafb;
	border-radius: 12px;
	padding: 12px 16px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.elc-ielts-results-bandbox span {
	font-size: 13px;
	color: #6b7280;
}

.elc-ielts-results-bandbox strong {
	font-size: 20px;
	color: #4B8EDE;
}

.elc-ielts-results-overall {
	font-size: 18px;
	margin-bottom: 16px;
}

.elc-ielts-results-overall strong {
	color: #4B8EDE;
}

.elc-ielts-results-feedback {
	background: #f9fafb;
	border-radius: 14px;
	padding: 16px 18px;
	line-height: 1.7;
	margin-bottom: 20px;
}

.elc-ielts-results-subheading {
	font-size: 16px;
	margin: 24px 0 12px;
}

.elc-ielts-results-answer {
	border: 1px solid #f3f4f6;
	border-radius: 12px;
	padding: 14px 16px;
	margin-bottom: 12px;
}

.elc-ielts-results-answer-prompt {
	font-size: 14px;
	margin: 0 0 10px;
}

.elc-ielts-results-answer audio {
	width: 100%;
	max-width: 420px;
	height: 36px;
}

.elc-ielts-results-retention-note {
	font-size: 13px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
	padding: 8px 14px;
	margin-top: 12px;
}

@media (max-width: 900px) {
	.elc-ielts-results-layout {
		grid-template-columns: 1fr;
	}
	.elc-ielts-results-side {
		position: static;
		max-height: none;
	}
}

/* Trang chi tiết khóa IELTS dùng cùng hệ chữ và button token với ELC Vocab. */
.elc-ielts-course {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	color: #172033;
}
.elc-ielts-course .elc-ielts-hero-title {
	font: 700 30px/1.3 'Lora', Georgia, serif;
}
.elc-ielts-course .elc-ielts-hero-desc {
	font: 400 18px/1.7 'Lora', Georgia, serif;
	color: #374151;
}
.elc-ielts-course .elc-ielts-section-group-title {
	font: 700 20px/1.3 'Lora', Georgia, serif;
}
.elc-ielts-course .elc-ielts-course-section-group .elc-ielts-course-section h2,
.elc-ielts-course .elc-ielts-course-row-info strong {
	font-family: 'Lora', Georgia, serif;
	font-size: 16px;
	font-weight: 400;
}
.elc-ielts-course .elc-ielts-course-section-group .elc-ielts-course-section h2 {
	font-weight: 700;
}
.elc-ielts-course .elc-ielts-muted {
	font: 400 14px/1.45 'Lora', Georgia, serif;
}
.elc-ielts-course .elc-ielts-btn {
	display: inline-flex;
	min-height: 40px;
	align-items: center;
	justify-content: center;
	padding: 9px 18px;
	border: 1px solid #4B8EDE;
	border-radius: 11px;
	background: #4B8EDE;
	box-shadow: 0 1px 2px rgba(16, 24, 40, .08);
	font: 600 14px/1.25 'Lora', Georgia, serif;
	color: #fff;
}
.elc-ielts-course .elc-ielts-btn-outline {
	border-color: #cbd2dc;
	background: #fff;
	color: #4B8EDE;
}
.elc-ielts-course .elc-ielts-course-section-group .elc-ielts-btn {
	min-height: 36px;
	padding: 8px 15px;
}
.elc-ielts-course .elc-ielts-btn-big {
	width: 100%;
	min-height: 48px;
	padding: 12px 20px;
	border-radius: 12px;
	font-size: 15px;
}


/* ===== Thu vien goi IELTS (copy style tu ELC Sach: hero/search/continue/ranking/categories/browser) ===== */
.elc-ielts-continue-reading {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 12px;
	margin-bottom: 32px;
}

@media (max-width: 900px) {
	.elc-ielts-continue-reading {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.elc-ielts-continue-reading {
		grid-template-columns: repeat(2, 1fr);
	}
}

.elc-ielts-continue-card {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	padding: 10px;
	border-radius: 10px;
	transition: background-color 0.15s ease, transform 0.15s ease;
}

.elc-ielts-continue-card:hover {
	background: #EBF7FF;
	transform: translateY(-2px);
}

.elc-ielts-continue-cover {
	width: 48px;
	height: 64px;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.elc-ielts-continue-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #EBF7FF;
	font-size: 20px;
}

.elc-ielts-continue-text {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.elc-ielts-continue-title {
	font-size: 14px;
	font-weight: 600;
	color: #1f2937;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elc-ielts-popular {
	margin-bottom: 32px;
}

.elc-ielts-popular-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.elc-ielts-popular-heading {
	font-size: 20px;
	font-weight: 700;
	color: #1f2937;
	margin: 0;
}

.elc-ielts-popular-shuffle {
	background: none;
	border: none;
	color: #4B8EDE;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	padding: 6px 10px;
	border-radius: 8px;
	transition: background-color 0.15s ease;
}

.elc-ielts-popular-shuffle:hover {
	background: #EBF7FF;
}

.elc-ielts-popular-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 160px));
	gap: 16px;
	justify-content: start;
}

@media (max-width: 900px) {
	.elc-ielts-popular-grid {
		grid-template-columns: repeat(3, minmax(0, 140px));
	}
}

@media (max-width: 560px) {
	.elc-ielts-popular-grid {
		grid-template-columns: repeat(2, minmax(0, 140px));
	}
}

.elc-ielts-popular-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.elc-ielts-popular-card:hover {
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
}

.elc-ielts-popular-cover {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	display: block;
	background: #EBF7FF;
}

.elc-ielts-popular-cover-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 32px;
}

.elc-ielts-popular-title {
	font-size: 13px;
	font-weight: 600;
	color: #1f2937;
	padding: 8px 10px 2px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.elc-ielts-popular-sub {
	font-size: 11px;
	color: #6b7280;
	padding: 0 10px 10px;
}

.elc-ielts-continue-progress {
	font-size: 12px;
	color: #6b7280;
}

/* ===== Thanh tìm kiếm sách kiểu WeRead/macOS (shortcode [elc_sach_search]) =====
   Selector viết dư bậc (.elc-ielts-search-box form... + [type="text"]) CỐ Ý để
   thắng CSS input mặc định của theme Blocksy - trước đây rule 1 class bị theme
   đè mất border-radius/padding nên icon kính lúp đè lên chữ placeholder. */
.elc-ielts-search-box {
	max-width: 480px;
	margin: 0 auto 32px;
}

.elc-ielts-search-box form.elc-ielts-search-box-form {
	position: relative;
	display: flex;
	align-items: center;
	margin: 0;
}

.elc-ielts-search-box form.elc-ielts-search-box-form svg {
	position: absolute;
	left: 18px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	color: #9ca3af;
	pointer-events: none;
	z-index: 1;
}

.elc-ielts-search-box form.elc-ielts-search-box-form input[type="text"] {
	width: 100%;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.4;
	color: #1f2937;
	background: #f0f1f3;
	border: none;
	border-radius: 999px;
	padding: 13px 20px 13px 50px;
	outline: none;
	box-shadow: none;
	transition: background 0.15s ease, box-shadow 0.15s ease;
}

.elc-ielts-search-box form.elc-ielts-search-box-form input[type="text"]::placeholder {
	color: #9ca3af;
}

.elc-ielts-search-box form.elc-ielts-search-box-form input[type="text"]:focus {
	background: #fff;
	border: none;
	box-shadow: 0 0 0 3px rgba(75, 142, 222, 0.15), 0 1px 6px rgba(0, 0, 0, 0.08);
}

.elc-ielts-catalog-card.elc-ielts-search-hidden {
	display: none !important;
}

/* Stoody Reading library — WeRead-inspired catalogue, reader logic untouched. */
body:has(.elc-ielts-library) { background: #f5f7fa; }
body:has(.elc-ielts-library) .entry-header,
body:has(.elc-ielts-library) .page-title,
body:has(.elc-ielts-library) [class*="mobile-cart"],
body:has(.elc-ielts-library) [class*="book-cart"] { display: none !important; }
.elc-ielts-library, .elc-ielts-library * { box-sizing: border-box; }
.elc-ielts-library {
	--ielts-blue: #4b8ede; --ielts-pale: #ebf7ff; --ielts-ink: #17233b; --ielts-muted: #6d7a90;
    width: 78%; max-width: 1500px; margin: 22px auto 72px;
	font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ielts-ink);
}
.elc-ielts-library-hero {
	padding: 34px 20px 36px; text-align: center; border: 0; border-radius: 0; background: transparent;
}
.elc-ielts-library-brand { display: flex; min-height: 52px; align-items: center; justify-content: center; }
.elc-ielts-library-brand-text { color: #111827; font: 800 32px/1.15 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; letter-spacing: -.025em; }
.elc-ielts-library-logo { display: block; width: auto; max-width: min(300px,75vw); height: auto; max-height: 68px; object-fit: contain; }
.elc-ielts-library .elc-ielts-search-box { width: min(740px, 100%); max-width: none; margin: 26px auto 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
.elc-ielts-library .elc-ielts-search-box form.elc-ielts-search-box-form {
	height: 54px; padding: 0; border: 0; border-radius: 999px; background: #fff; box-shadow: none;
}
.elc-ielts-library .elc-ielts-search-box form.elc-ielts-search-box-form input[type="text"] {
	height: 54px; margin: 0; padding: 0 24px 0 52px; border: 0 !important; border-radius: 999px !important;
	background: transparent !important; box-shadow: none !important; font: 500 15px/1.2 Inter,sans-serif;
}
.elc-ielts-library .elc-ielts-search-box form.elc-ielts-search-box-form input[type="text"]:focus { background: transparent !important; box-shadow: none !important; }
.elc-ielts-library .elc-ielts-catalog-yearpass { margin: 22px 0 0; }
.elc-ielts-library-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.elc-ielts-library-section-head h2 { margin: 0; font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.02em; }
.elc-ielts-library-section-head > a { flex: none; font-size: 14px; font-weight: 700; color: var(--ielts-blue); }
.elc-ielts-library-continue, .elc-ielts-ranking, .elc-ielts-categories, .elc-ielts-library-subpage { margin-top: 30px; }
.elc-ielts-library .elc-ielts-continue-reading { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.elc-ielts-library .elc-ielts-continue-card { min-height: 112px; padding: 16px; border: 1px solid #e4eaf1; border-radius: 16px; background: #fff; box-shadow: none; }
.elc-ielts-library .elc-ielts-continue-card:hover { transform: translateY(-2px); border-color: #bfd8f5; box-shadow: 0 12px 30px rgba(40,71,107,.09); }
.elc-ielts-ranking-stack { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; gap: 20px 24px; margin-top: 30px; }
.elc-ielts-ranking { margin: 0; padding: 24px; border: 1px solid #e3e9f0; border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(30,55,85,.055); }
.elc-ielts-ranking-title-content { min-width: 0; }
.elc-ielts-ranking-title-content > :first-child { margin-top: 0; }
.elc-ielts-ranking-title-content > :last-child { margin-bottom: 0; }
.elc-ielts-ranking .elc-ielts-ranking-title-content h2 { margin: 0; font-size: 17px; line-height: 1.5; }
.elc-ielts-ranking-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.elc-ielts-ranking-card {
	display: grid; grid-template-columns: 28px 54px minmax(0,1fr); align-items: center; gap: 10px; min-width: 0;
	padding: 13px 0; border-top: 1px solid #edf0f4; color: inherit; text-decoration: none;
}
.elc-ielts-ranking-card:nth-child(-n+2) { border-top: 0; }
.elc-ielts-ranking-number { font-size: 17px; font-weight: 800; color: var(--ielts-blue); }
.elc-ielts-ranking-cover { display: flex; width: 54px; height: 72px; align-items: center; justify-content: center; overflow: hidden; border-radius: 5px; background: var(--ielts-pale); box-shadow: 0 5px 14px rgba(31,52,77,.12); }
.elc-ielts-ranking-cover img { width: 100%; height: 100%; object-fit: cover; }
.elc-ielts-ranking-placeholder { font: 800 22px/1 Georgia,serif; color: var(--ielts-blue); }
.elc-ielts-ranking-copy { display: flex; min-width: 0; flex-direction: column; gap: 3px; }
.elc-ielts-ranking-copy strong, .elc-ielts-ranking-copy span, .elc-ielts-ranking-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-ranking-copy strong { font-size: 14px; transition: color .18s ease; }
.elc-ielts-ranking-copy span, .elc-ielts-ranking-copy small { font-size: 12px; color: var(--ielts-muted); }
.elc-ielts-ranking-card:hover .elc-ielts-ranking-copy strong { color: var(--ielts-blue); }
.elc-ielts-categories { padding: 28px; border-radius: 20px; background: #eef2f6; }
.elc-ielts-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.elc-ielts-category-card { display: flex; align-items: center; gap: 14px; min-height: 96px; padding: 16px; border: 1px solid #e0e7ef; border-radius: 14px; background: #fff; color: inherit; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.elc-ielts-category-card:hover { transform: translateY(-2px); border-color: #bcd7f5; box-shadow: 0 12px 28px rgba(40,71,107,.08); }
.elc-ielts-category-mark { display: grid; width: 52px; height: 64px; flex: none; place-items: center; border-radius: 8px 12px 12px 8px; background: linear-gradient(145deg,#4b8ede,#78afe9); font: 800 22px/1 Georgia,serif; color: #fff; }
.elc-ielts-category-card > span:last-child { display: flex; min-width: 0; flex-direction: column; gap: 5px; }
.elc-ielts-category-card strong { font-size: 15px; }
.elc-ielts-category-card small { font-size: 12px; color: var(--ielts-muted); }
.elc-ielts-library-subpage { padding: 26px; border: 1px solid #e3e9f0; border-radius: 20px; background: #fff; }
.elc-ielts-library-back { display: inline-flex; margin-bottom: 22px; font-size: 14px; font-weight: 700; color: var(--ielts-blue); }
.elc-ielts-library .elc-ielts-catalog-row { grid-template-columns: repeat(5,minmax(0,1fr)); }
.elc-ielts-library .elc-ielts-search-hidden { display: none !important; }
.elc-ielts-library *, .elc-ielts-library *::before, .elc-ielts-library *::after { animation: none !important; }
@media (max-width: 1024px) {
	.elc-ielts-ranking-stack { grid-template-columns: 1fr; }
	.elc-ielts-ranking-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.elc-ielts-library .elc-ielts-continue-reading, .elc-ielts-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
	.elc-ielts-library .elc-ielts-catalog-row { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 640px) {
	.elc-ielts-library { width: min(100% - 24px,1240px); margin-top: 12px; }
	.elc-ielts-library-hero { padding: 24px 10px 28px; }
	.elc-ielts-library-brand-text { font-size: 27px; }
	.elc-ielts-ranking { padding: 18px; }
	.elc-ielts-ranking-grid, .elc-ielts-library .elc-ielts-continue-reading, .elc-ielts-category-grid { grid-template-columns: 1fr; }
	.elc-ielts-ranking-card:nth-child(2) { border-top: 1px solid #edf0f4; }
	.elc-ielts-categories { padding: 20px; }
	.elc-ielts-library .elc-ielts-catalog-row { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

/* Lớp tìm kiếm thư viện độc lập, không tải lại/lọc trang Sách phía sau. */
body.elc-ielts-library-search-open { overflow: hidden !important; }

/* Gợi ý ngẫu nhiên kiểu WeRead: bìa lớn, tác giả rõ, đổi nhóm không tải trang. */
.elc-ielts-random { margin: 34px 0 42px; }
.elc-ielts-random .elc-ielts-library-section-head { margin-bottom: 18px; }
.elc-ielts-random-refresh {
	padding: 0; border: 0; background: transparent; box-shadow: none; color: #4b8ede;
	font: 600 14px/1.4 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; cursor: pointer;
}
.elc-ielts-random-refresh:hover { color: #2f78ca; background: transparent; transform: none; }
.elc-ielts-random-refresh:disabled { opacity: .55; cursor: wait; }
.elc-ielts-random-toolbar { display: flex; justify-content: flex-end; margin-bottom: 18px; }
.elc-ielts-random-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; transition: opacity .16s ease; }
.elc-ielts-random-grid.is-loading { opacity: .46; }
.elc-ielts-random-card {
	display: flex; min-width: 0; min-height: 350px; align-items: center; flex-direction: column; justify-content: center;
	padding: 30px 18px 26px; border-radius: 12px; background: #fff; color: #17233b; text-align: center; text-decoration: none;
}
.elc-ielts-random-cover {
	display: grid; width: 112px; height: 164px; place-items: center; overflow: hidden; margin-bottom: 24px; border-radius: 3px;
	background: #ebf7ff; color: #4b8ede; font: 800 30px/1 Georgia,serif; box-shadow: 0 7px 22px rgba(35,55,80,.1);
}
.elc-ielts-random-cover img { width: 100%; height: 100%; object-fit: cover; }
.elc-ielts-random-card strong { max-width: 100%; overflow: hidden; font: 600 16px/1.45 Inter,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-random-author { max-width: 100%; overflow: hidden; margin-top: 9px; color: #7a8799; font: 400 14px/1.4 Inter,sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-random-card:hover { color: #4b8ede; transform: translateY(-2px); }
@media (max-width: 900px) { .elc-ielts-random-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 520px) {
	.elc-ielts-random-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
	.elc-ielts-random-card { min-height: 270px; padding: 22px 10px 20px; }
	.elc-ielts-random-cover { width: 88px; height: 130px; margin-bottom: 18px; }
}

.elc-ielts-library-search-overlay[hidden] { display: none !important; }
.elc-ielts-library-search-overlay {
	position: fixed; inset: 0; z-index: 2147483000; overflow-y: auto; padding: clamp(90px,16vh,180px) 20px 60px;
	background: #f0f1f3; opacity: 0; transition: opacity .16s ease;
	font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color: #17233b;
}
.elc-ielts-library-search-overlay.is-open { opacity: 1; }
.elc-ielts-library-search-shell { width: min(740px,100%); margin: 0 auto; }
.elc-ielts-library-search-topbar { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 16px; align-items: center; margin-bottom: 22px; }
.elc-ielts-library-search-back {
	display: grid; width: 52px; height: 52px; padding: 0; place-items: center; border: 0; border-radius: 50%;
	background: #fff; color: #8793a4; box-shadow: none; font: 300 36px/1 Inter,sans-serif; cursor: pointer;
}
.elc-ielts-library-search-back:hover { background: #fff; color: #4b8ede; transform: none; }
.elc-ielts-library-search-form {
	display: grid; height: 54px; grid-template-columns: 42px minmax(0,1fr) 44px; align-items: center;
	margin: 0; padding: 0 9px 0 14px; border-radius: 999px; background: #fff;
}
.elc-ielts-library-search-form > svg, .elc-ielts-library-search-form button svg {
	width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.elc-ielts-library-search-form > svg { justify-self: center; color: #8a96a7; }
.elc-ielts-library-search-form input[type="search"] {
	width: 100%; height: 52px; margin: 0; padding: 0; border: 0 !important; border-radius: 0 !important;
	background: transparent !important; box-shadow: none !important; outline: 0; color: #17233b; font: 500 16px/1 Inter,sans-serif;
}
.elc-ielts-library-search-form input[type="search"]::-webkit-search-cancel-button { display: none; }
.elc-ielts-library-search-form button {
	display: grid; width: 36px; height: 36px; padding: 0; place-items: center; justify-self: end; border: 0; border-radius: 50%;
	background: #f5f6f8; color: #8a96a7; box-shadow: none; cursor: pointer;
}
.elc-ielts-library-search-form button:hover { background: #ebf7ff; color: #4b8ede; transform: none; }
.elc-ielts-library-search-card { overflow: hidden; border: 0; border-radius: 14px; background: #fff; box-shadow: none; }
.elc-ielts-library-search-label { padding: 22px 20px 10px; font-size: 14px; color: #607087; }
.elc-ielts-library-search-status { padding: 8px 20px 16px; font-size: 13px; color: #8a96a7; }
.elc-ielts-library-search-results { transition: opacity .12s ease; }
.elc-ielts-library-search-results.is-loading { opacity: .45; }
.elc-ielts-search-result {
	display: grid; min-height: 132px; grid-template-columns: 74px minmax(0,1fr) 24px; gap: 16px; align-items: center;
	margin: 0 20px; padding: 14px 0; border-top: 1px solid #e7e9ed; color: inherit; text-decoration: none;
}
.elc-ielts-search-result:first-child { border-top: 0; }
.elc-ielts-search-result-cover {
	display: grid; width: 72px; height: 104px; place-items: center; overflow: hidden; border-radius: 4px;
	background: #ebf7ff; color: #4b8ede; font: 800 25px/1 Georgia,serif; box-shadow: 0 4px 12px rgba(31,52,77,.1);
}
.elc-ielts-search-result-cover img { width: 100%; height: 100%; object-fit: cover; }
.elc-ielts-search-result-copy { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.elc-ielts-search-result-copy strong { overflow: hidden; color: #367fcf; font-size: 16px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-search-result-copy span { overflow: hidden; color: #7a8799; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-search-result-arrow { color: #b3bbc6; font-size: 24px; }
.elc-ielts-search-result:hover .elc-ielts-search-result-copy strong { color: #246ebf; }
.elc-ielts-search-empty { display: flex; min-height: 220px; align-items: center; justify-content: center; flex-direction: column; gap: 8px; padding: 36px; text-align: center; }
.elc-ielts-search-empty strong { font-size: 17px; }
.elc-ielts-search-empty span { color: #8793a4; font-size: 14px; }
@media (max-width: 640px) {
	.elc-ielts-library-search-overlay { padding: 24px 12px 40px; }
	.elc-ielts-library-search-topbar { grid-template-columns: 44px minmax(0,1fr); gap: 10px; }
	.elc-ielts-library-search-back { width: 44px; height: 44px; font-size: 31px; }
	.elc-ielts-library-search-form { height: 48px; grid-template-columns: 34px minmax(0,1fr) 38px; }
	.elc-ielts-library-search-form input[type="search"] { height: 46px; font-size: 15px; }
	.elc-ielts-search-result { min-height: 112px; grid-template-columns: 58px minmax(0,1fr) 16px; gap: 12px; margin: 0 14px; }
	.elc-ielts-search-result-cover { width: 56px; height: 82px; }
	.elc-ielts-search-result-copy strong { font-size: 14px; }
	.elc-ielts-search-result-copy span { font-size: 12px; }
}

/* One destination for rankings and categories: category rail + book results. */
.elc-ielts-library-browser {
	display: grid; width: min(1320px,calc(100% - 40px)); grid-template-columns: 310px minmax(0,1fr);
	overflow: hidden; margin: 28px auto 48px; border-radius: 18px; background: #fff;
	color: #17233b; font-family: Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.elc-ielts-library-sidebar {
	padding: 26px 18px 34px; border-right: 1px solid #e5e9ef; background: #fbfcfd;
}
.elc-ielts-library-sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.elc-ielts-library-sidebar h3 {
	margin: 22px 12px 8px; color: #8793a4; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.elc-ielts-library-sidebar-link {
	display: flex; min-height: 44px; align-items: center; justify-content: flex-start; gap: 12px;
	padding: 12px 14px; border-radius: 9px; color: #3d485a; font-size: 14px; font-weight: 700; line-height: 1.45; text-decoration: none;
}
.elc-ielts-library-sidebar-link:hover { background: #ebf7ff; color: #367fcf; }
.elc-ielts-library-sidebar-link.is-active { background: #4b8ede; color: #fff; }
.elc-ielts-library-category-link { min-height: 44px; }
.elc-ielts-library-category-link .elc-ielts-category-mark { width: 46px; height: 64px; flex: 0 0 46px; overflow: hidden; border-radius: 4px; }
.elc-ielts-library-category-link .elc-ielts-category-mark img { width: 100%; height: 100%; object-fit: cover; }
.elc-ielts-library-category-copy { display: flex; min-width: 0; flex-direction: column; gap: 4px; }
.elc-ielts-library-category-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-library-category-copy small { font-size: 12px; font-weight: 500; opacity: .72; }
.elc-ielts-library-browser-content { min-width: 0; padding: 28px 42px 48px; }
.elc-ielts-library-back {
	display: inline-flex; margin-bottom: 18px; color: #4b8ede; font-size: 14px; font-weight: 700; text-decoration: none;
}
.elc-ielts-library-browser-results > h2 { margin: 0 0 8px; color: #17233b; font-size: 28px; line-height: 1.3; }
.elc-ielts-library-browser-results.is-loading { opacity: .48; pointer-events: none; }
.elc-ielts-library-book-list { display: flex; flex-direction: column; }
.elc-ielts-library-book-row {
	display: grid; min-width: 0; grid-template-columns: 34px 100px minmax(0,1fr); gap: 24px; align-items: center;
	padding: 24px 18px; border-top: 1px solid #e5e9ef; border-radius: 10px; color: #17233b; text-decoration: none;
}
.elc-ielts-library-book-row:first-child { border-top: 0; }
.elc-ielts-library-book-rank { color: #65748a; font-size: 18px; text-align: center; }
.elc-ielts-library-book-cover {
	display: grid; width: 100px; height: 142px; place-items: center; overflow: hidden; border-radius: 4px;
	background: #ebf7ff; color: #4b8ede; font: 800 28px/1 Georgia,serif; box-shadow: 0 7px 20px rgba(31,52,77,.1);
}
.elc-ielts-library-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.elc-ielts-library-book-copy { display: flex; min-width: 0; flex-direction: column; gap: 8px; }
.elc-ielts-library-book-copy strong { overflow: hidden; font-size: 18px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.elc-ielts-library-book-copy span { color: #607087; font-size: 14px; }
.elc-ielts-library-book-copy small {
	display: -webkit-box; overflow: hidden; color: #8793a4; font-size: 14px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.elc-ielts-library-book-row:hover { background: #f3f5f7; }
.elc-ielts-library-book-row:hover .elc-ielts-library-book-copy strong { color: #367fcf; }
.elc-ielts-library-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 28px; }
.elc-ielts-library-page-btn { min-width: 38px; height: 38px; padding: 0 11px; border: 1px solid #dce3eb; border-radius: 8px; background: #fff; color: #3d485a; cursor: pointer; font: 700 14px/1 Inter,sans-serif; }
.elc-ielts-library-page-btn:hover { border-color: #4b8ede; color: #4b8ede; }
.elc-ielts-library-page-btn.is-active { border-color: #4b8ede; background: #4b8ede; color: #fff; }
.elc-ielts-library-book-empty { padding: 70px 20px; color: #8793a4; text-align: center; }
@media (max-width: 760px) {
	.elc-ielts-library-browser { width: calc(100% - 20px); grid-template-columns: 1fr; margin-top: 16px; }
	.elc-ielts-library-sidebar { padding: 16px; border-right: 0; border-bottom: 1px solid #e5e9ef; }
	.elc-ielts-library-sidebar nav { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
	.elc-ielts-library-sidebar h3 { grid-column: 1 / -1; }
	.elc-ielts-library-browser-content { padding: 24px 18px 36px; }
	.elc-ielts-library-book-row { grid-template-columns: 24px 76px minmax(0,1fr); gap: 13px; padding: 18px 0; }
	.elc-ielts-library-book-cover { width: 76px; height: 108px; }
	.elc-ielts-library-book-copy strong { font-size: 15px; }
	.elc-ielts-library-book-copy span, .elc-ielts-library-book-copy small { font-size: 12px; }
}
