.vh-90 {
	min-height: calc(100vh - 67.5px);
}

@media (min-width: 992px) {
	.bg-between {
		background-position: 0, 100%;
		background-repeat: no-repeat;
		background-size: auto 100%; 
	}
}
@media (max-width: 991.98px) {
	.bg-between {
		background-image: none !important;
	}
}

/* Welcome page */
#contact-buttons {
	position: fixed;
	bottom: 20px;
	right: 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	z-index: 1000;
}
.contact-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: #fff;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-btn svg {
	width: 24px;
	height: 24px;
}
.contact-btn:hover {
	transform: scale(1.1);
	box-shadow: 0 6px 8px rgba(0, 0, 0, 0.2);
}

[data-bs-theme=light] .bg-brand {
	background-color: #fef4ea;
}

/* Màu chủ đạo cho văn bản */
.color-brand {
	color: #ff6600 !important;
}

/* Nút chính (solid button) */
.btn-brand {
	color: #ffffff;
	background-color: #ff6600;
	border: 1px solid #ff6600;
	transition: all 0.3s ease;
}

.btn-brand:hover {
	color: #ffffff;
	background-color: #e65c00;
	border-color: #e65c00;
}

/* Nút viền */
.btn-outline-brand {
	color: #ff6600;
	border: 1px solid #ff6600;
	background-color: transparent;
	transition: all 0.3s ease;
}

.btn-outline-brand:hover {
	color: #ffffff;
	background-color: #ff6600;
	border-color: #ff6600;
}

/* Nút dạng link */
.btn-link-brand {
	color: #ff6600;
	border: none;
	background-color: transparent;
	cursor: pointer;
	transition: color 0.3s ease;
}

.btn-link-brand:hover,
.btn-link-brand:focus {
	color: #e65c00;
	text-decoration: none;
}

.theme-toggle .btn {
	transition: all 0.3s ease;
	border: none;
}
.theme-toggle .btn.active {
	background-color: var(--bs-primary);
	color: #fff;
}
.theme-toggle .btn i {
	font-size: 1rem;
}

.contact-info li {
	list-style: none;
	margin-bottom: 0.75rem;
	font-size: 16px;
}

/*Practice*/
#offcanvasTranscript,
#offcanvasTranslation {
	width: 100%;
	max-width: none;
}
@media (min-width: 992px) {
	#offcanvasTranscript,
	#offcanvasTranslation {
		width: 70% !important;
		max-width: 700px;
	}
}
.question-block {
	background-color: #f9f9f9;
	border-radius: 6px;
	padding: 1rem;
}
.letter {
	border-left: 4px solid #007bff;
	padding-left: 10px;
	margin-top: 10px;
	font-style: italic;
}
#mindmap { position: relative; }
#connections { pointer-events: none; }
.node { border-radius: 8px; min-width: 120px; }
/*connection {
	border: 2px solid;
	color: #2c7be5;
}*/
del.text-danger {
	font-weight: bold;
}
span.text-success {
	font-weight: bold;
}

/* EXAM */
@-webkit-keyframes danger-time {
	0% { color: #FF0000; } 
	100% { color: #fff;  } 
}
@-moz-keyframes danger-time { 
	0% { color: #FF0000;  } 
	100% { color: #fff;  } 
}
@-o-keyframes danger-time { 
	0% { color: #FF0000; } 
	100% { color: #fff;  } 
}
@keyframes danger-time { 
	0% { color: #FF0000;  } 
	100% { color: #fff;  } 
}
.danger-time {
	-webkit-animation: danger-time 700ms infinite;
	-moz-animation: danger-time 700ms infinite; 
	-o-animation: danger-time 700ms infinite; 
	animation: danger-time 700ms infinite;
}

.progress-part {
	background-color: var(--bs-primary-bg-subtle);
	color: var(--bs-primary);
}

.progress-part.active {
	background-color: RGBA(var(--bs-warning-rgb), var(--bs-bg-opacity, 1)) !important;
	color: #283e59 !important;
}

.mc-audio-player {
	display: block;
	width: 100%;
	height: 40px;
	min-width: 210px;
	line-height: 40px;
	background: #590263 linear-gradient(transparent,rgba(0,0,0,.35));
	color: #fff;
	font-weight: 600;
	position: relative;
}
.mc-play {
	position: absolute;
	line-height: 37px;
	height: 35px;
	cursor: pointer;
	font-size: 24px;
	top: 2px;
	left: 10px;
	border-right: solid 1px #ccc;
	width: 35px;
}
.mc-currenttime {
	position: absolute;
	left: 55px;
	line-height: 38px;
	height: 40px;
	top: 0;
	font-size: 23px;
}
.mc-progress-bar {
	position: absolute;
	top: 6px;
	right: 90px;
	left: 130px;
	margin-bottom: 20px;
	margin-top: 9px;
	height: 10px;
	background-color: #000;
}
.mc-progress {
	position: absolute;
	height: 10px;
	background-color: #eee;
}
.mc-duration {
	position: absolute;
	right: 10px;
	line-height: 38px;
	height: 40px;
	top: 0;
	font-size: 23px;
}

.transcript-box {
	transition: all 0.3s ease;
}
#top-bar,
#bottom-bar {
	z-index: 1030;
	box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.05);
	background-color: #fff;
}
#bottom-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
}
.content-part { display: none; }
.content-part.active { display: block; }
.part-btn.active { font-weight: bold; border-width: 2px; }
#all-parts {
	padding-bottom: 100px; /* fallback nếu JS chưa load kịp */
}

/* Header bài viết */
.post-header {
	margin-bottom: 2rem;
}

.post-share-header {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-share-text {
	white-space: nowrap;
}

@media (max-width: 768px) {
	.post-share-header {
		margin-top: 0.5rem;
	}
}

.post-title {
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.post-description {
	margin-bottom: 1rem;
}

.post-date {
	margin-bottom: 1.5rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.post-date i {
	font-size: 1rem;
}

.post-thumbnail {
	margin-bottom: 0;
	border-radius: 0.5rem;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	width: 100%;
	height: auto;
}

/* Nội dung bài viết */
.section-title {
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
	font-weight: 700;
	line-height: 1.3;
}

.section-subtitle {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

/* Nội dung văn bản */
.section-content p {
	margin-bottom: 1rem;
	line-height: 1.7;
}

.section-content ul {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.section-content ul li {
	margin-bottom: 0.5rem;
	line-height: 1.6;
}

/* Bảng */
.section-content table {
	width: 100%;
	margin-bottom: 2rem;
	border-collapse: collapse;
}

.section-content th,
.section-content td {
	padding: 0.75rem;
	text-align: center;
	border: 1px solid #dee2e6;
}

.section-content thead th {
	background-color: #f8f9fa;
	font-weight: 600;
}

/* Các nút */
.section-content .btn {
	margin-top: 1rem;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
}

/* Bài viết liên quan */
.related-posts {
	margin-top: 3rem;
}

.related-posts .section-title {
	margin-bottom: 2rem;
	font-weight: 700;
}

.related-posts .card {
	transition: transform 0.3s, box-shadow 0.3s;
}

.related-posts .card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.related-thumbnail {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.related-title {
	font-weight: 600;
	margin: 0;
	line-height: 1.4;
	min-height: 48px;
}

.related-title a {
	text-decoration: none;
}

.related-title a:hover {
	text-decoration: underline;
}

/* Breadcrumbs */
.breadcrumbs {
	font-size: 0.9rem;
	margin-bottom: 1rem;
}

.breadcrumbs a {
	text-decoration: none;
}

.breadcrumbs a:hover {
	text-decoration: underline;
}

/* Tags */
.post-tags {
	margin-top: 2rem;
	font-size: 0.95rem;
}

.post-tags a {
	display: inline-block;
	text-decoration: none;
	padding: 0.4rem 0.8rem;
	border-radius: 999px;
	margin: 0 0.25rem 0.5rem 0;
	font-size: 0.9rem;
}

/* Share buttons style */
.post-share-text {
	font-size: 0.95rem;
}

.post-share-btn {
	width: 40px;
	height: 40px;
	background: none;
	border: 1px solid #ddd;
	border-radius: 50%;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
	cursor: pointer;
}

.post-share-btn svg {
	width: 20px;
	height: 20px;
	transition: color 0.3s, transform 0.3s;
}

.post-share-btn:hover {
	transform: scale(1.05);
}

.register-link {
	transition: color 0.3s, text-decoration 0.3s;
}

.register-link:hover {
	text-decoration: underline;
}