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

.vh-80 {
	min-height: calc(100vh - 67.5px - 42.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;
}

/* Nút Đăng nhập Google */
.btn-google {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	height: 44px;
	background: #fff;
	border: 1px solid #dadce0;
	border-radius: 4px;
	font-family: "Roboto", sans-serif;
	font-weight: 500;
	color: #3c4043;
	text-decoration: none;
	transition: all .2s ease;
}

.btn-google:hover {
	background: #fff;
	box-shadow: 0 1px 3px rgba(60, 64, 67, .3);
}

.btn-google:active {
	background: #f1f3f4;
}

.google-icon {
	width: 20px;
	height: 20px;
}

[data-bs-theme="dark"] .btn-google {
	background: #202124;        /* Nền tối kiểu Google */
	border-color: #5f6368;      /* Viền xám */
	color: #e8eaed;             /* Chữ sáng */
}

[data-bs-theme="dark"] .btn-google:hover {
	background: #292a2d;        /* Tối hơn chút khi hover */
	box-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

[data-bs-theme="dark"] .btn-google:active {
	background: #171717;
	box-shadow: none;
}

[data-bs-theme="dark"] .btn-google.disabled,
[data-bs-theme="dark"] .btn-google:disabled {
	opacity: 0.7;
	box-shadow: none;
}

/* ===== Màu dùng chung cho homepage ===== */
:root,
[data-bs-theme="light"] {
	--vstep-section-bg: #ffffff;
	--vstep-section-alt-bg: #f8f9fa;
	--vstep-text-muted: #4a5568; /* gần text-gray-700 */
}

[data-bs-theme="dark"] {
	/* Hero tối lại + hơi ngả brand */
	--vstep-section-bg: #050816;      /* nền section chính */
	--vstep-section-alt-bg: #0b1120;  /* section xen kẽ */
	--vstep-text-muted: #e5e7eb;
}

/* Hero banner */
#thongbao {
	background-image: url(/assets/image/banner/luyen-thi-vstep-banner-index-default-1.webp),
	                  url(/assets/image/banner/luyen-thi-vstep-banner-index-default-2.webp);
	background-color: #fdf0e6;
}

[data-bs-theme="dark"] #thongbao {
    background-image: url(/assets/image/banner/luyen-thi-vstep-banner-index-default-dark-1.webp),
                      url(/assets/image/banner/luyen-thi-vstep-banner-index-default-dark-2.webp);
    background-color: #121212;
}

/* ===== Nền các section ===== */
#dichvu,
#phanmem,
#phanhoi {
	background-color: var(--vstep-section-bg);
}

#thanhtuu,
#doitac,
#nhucau {
	background-color: var(--vstep-section-alt-bg);
}

/* ===== Fix các màu text custom ===== */
.text-gray-700,
.text-gray-800 {
	color: var(--vstep-text-muted) !important;
}

/* Ẩn theme toggle sau vài giây */
.theme-toggle-wrapper {
	transition: opacity .6s ease; /* hiệu ứng mượt */
}

.theme-toggle-wrapper.hide-theme-toggle {
	opacity: 0;
	pointer-events: none; /* user không bấm được nữa */
}

/* Promo banner */
.promo-banner {
	background: #fdf0e6;
	border-radius: 24px;
	overflow: hidden;
	position: relative;
}

/* Giảm độ rộng tối đa của modal */
.promo-modal-dialog {
	max-width: 900px;
	margin: 1.75rem auto;
}

.promo-wrapper {
	height: 100%;
}

/* 🎯 Nút đóng: giữ icon mặc định, chỉ chỉnh vị trí + kích thước */
.promo-close {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 5;
	opacity: 0.9;
	transform: scale(1.4);      /* phóng to icon */
	transform-origin: center;
	/* KHÔNG set background, KHÔNG set width/height để khỏi phá Bootstrap */
	border: none;
}

.promo-close:hover {
	opacity: 1;
}

/* Text */
.promo-label {
	font-size: 0.85rem;
	font-weight: bold;
	color: #eb5505;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.promo-title {
	font-size: 1.6rem;
	font-weight: 700;
	color: #222;
}

.promo-list li {
	font-size: 0.95rem;
	margin-bottom: 4px;
}

/* Ảnh bên trái – giữ tỉ lệ, không kéo căng quá */
.promo-img-area img {
	width: 100%;
	height: auto;
	max-height: 430px;
	object-fit: cover;
	display: block;
}

/* 💰 Giá ưu đãi */
.promo-price {
	font-size: 1.2rem;
	font-weight: 600;
	color: #eb5505;
	margin-bottom: 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
}

.price-label {
	font-size: 1rem;
	font-weight: 500;
	color: #444;
}

.new-price {
	font-size: 1.5rem;
	font-weight: 800;
	color: #eb5505;
}

.old-price {
	font-size: 1rem;
	text-decoration: line-through;
	color: #999;
}

/* Mobile chỉnh nhỏ lại + thêm khoảng cách 2 bên */
@media (max-width: 767.98px) {
	.promo-banner {
		border-radius: 16px; /* vẫn bo nhẹ, nhìn “card” hơn */
	}

	.promo-title {
		font-size: 1.35rem;
	}

	.promo-price {
		justify-content: center;
		text-align: center;
	}

	.promo-modal-dialog {
		margin: 1.25rem; /* 👉 thêm khoảng cách với 2 cạnh màn hình */
	}

	/* Ảnh trên mobile cho nhỏ lại cho đỡ chiếm chỗ (nếu sau này bật trên mobile) */
	.promo-img-area img {
		max-height: 260px;
		object-fit: cover;
	}
}
