/* ============================================================
   TRAINING MODULE — FUTURE ACADEMY
   ============================================================ */
/* ---- Sticky Sidebar ---- */
.t-sidebar-sticky {
	position: sticky;
	top: 80px;
}
/* ---- Hero ---- */
.t-hero {
	padding: 20px 0;
	display: flex;
	align-items: center;
	gap: 24px
}

.t-hero__cap {
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: linear-gradient(135deg, #ec3b45, #d4202b);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 6px 14px rgba(225, 35, 46, .28);
	color: var(--bs-white);
	font-size: 1.4rem;
}

.t-hero__stats {
	margin-left: auto;
	display: flex;
	gap: 0;
	padding: 0;
	background: var(--bs-white);
	border: 1px solid #edeff2;
	border-radius: 12px;
	overflow: hidden
}

.t-hero__stats>div {
	padding: 14px 22px;
	border-left: 1px solid #edeff2
}

.t-hero__stats>div:first-child {
	border-left: none
}

.t-stat__num {
	font-size: 1.45rem;
	font-weight: 800;
	color: var(--red);
	line-height: 1.1
}

.t-stat__lbl {
	font-size: .78rem;
	color: #6c717b;
	font-weight: 500;
	margin-top: 2px
}

/* ---- Categories Carousel ---- */
.t-cats-carousel .owl-nav {
	position: static;
	display: flex;
	justify-content: space-between;
	pointer-events: none;
	position: absolute;
	top: 40%;
	left: -5px;
	right: -5px;
	transform: translateY(-50%)
}

.t-cats-carousel .owl-prev,
.t-cats-carousel .owl-next {
	width: 30px;
	height: 30px;
	font-size: 20px !important;
	top: auto;
	transform: none;
	padding: 0 !important;
	pointer-events: all;
	border: 1px solid var(--bs-gray-100) !important;
}

.t-cats-carousel .owl-prev {
	left: -8px;
}
.t-cats-carousel .owl-next {
	right: -8px;
}

.t-cat {
	border: 1px solid #edeff2;
	border-radius: 13px;
	padding: 14px 6px 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	text-align: center;
	transition: .15s;
	cursor: pointer;
}

.t-cat:hover {
	border-color: #dce0e5;
	background: #f8f9fb;
}

.t-cat.active {
	border-color: var(--red);
	background: #fdf2f3
}

.t-cat__ic {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.3rem;
}

.t-cat__no {
	font-size: .72rem;
	font-weight: 800;
	color: #3b4049
}

.t-cat__lbl {
	font-size: .68rem;
	font-weight: 600;
	color: #5b606b;
	line-height: 1.25;
	min-height: 2.5em;
	display: flex;
	align-items: center
}

/* ---- Filters ---- */
.t-filters {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap
}

.t-select {
	height: 38px;
	border: 1px solid #e6e8ec;
	border-radius: 9px;
	background: var(--bs-white);
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 0 12px;
	font-size: .82rem;
	color: #5b606b;
	font-weight: 500;
	white-space: nowrap;
	cursor: pointer;
}

.t-select select {
	border: none;
	outline: none;
	background: transparent;
	font-family: inherit;
	font-size: .82rem;
	color: #5b606b;
	font-weight: 500;
	cursor: pointer
}

.t-search-mini {
	flex: 1;
	max-width: 260px;
	height: 38px;
	border: 1px solid #e6e8ec;
	border-radius: 9px;
	background: var(--bs-white);
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
}

.t-search-mini input {
	border: none;
	outline: none;
	background: none;
	font-family: inherit;
	font-size: .82rem;
	flex: 1;
	color: #20242e
}

.t-search-mini input::placeholder {
	color: #a9aeb7
}

.t-toggle {
	display: flex;
	border: 1px solid #e6e8ec;
	border-radius: 9px;
	overflow: hidden;
	height: 38px
}

.t-toggle label {
	width: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa0ab;
	background: var(--bs-white);
	cursor: pointer;
	font-size: 1.1rem;
	margin: 0
}

.t-toggle input[type="radio"] {
	display: none
}

.t-toggle input[type="radio"]:checked+label {
	background: var(--red);
	color: var(--bs-white)
}

/* ---- Course Cards ---- */
.t-courses {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px
}

.t-course {
	background: var(--bs-white);
	border: 1px solid #edeff2;
	border-radius: 14px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 1px 3px rgba(20, 24, 35, .05);
	cursor: pointer;
	transition: .2s;
}

.t-course:hover {
	box-shadow: 0 4px 14px rgba(20, 24, 35, .08);
	transform: translateY(-2px)
}

.t-thumb {
	position: relative;
	aspect-ratio: 16/10;
	overflow: hidden;
	background: #1a1a2e
}

.t-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.t-thumb__badge {
	position: absolute;
	top: 9px;
	left: 9px;
	z-index: 2;
	background: #19a85a;
	color: var(--bs-white);
	font-size: .6rem;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
}

.t-thumb__badge--done {
	background: #1a6fdb;
}

.t-thumb__fav {
	position: absolute;
	top: 9px;
	right: 9px;
	z-index: 2;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--bs-white);
	display: flex;
	align-items: center;
	justify-content: center;
}

.t-thumb__fav i {
	font-size: .85rem;
	color: var(--red)
}

.t-thumb__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 2;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .92);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
	opacity: 0;
	transition: .2s;
}

.t-course:hover .t-thumb__play {
	opacity: 1
}

.t-thumb__play i {
	font-size: 1.2rem;
	color: var(--red);
	margin-left: 2px
}

.t-course__body {
	padding: 12px 14px 14px;
	display: flex;
	flex-direction: column;
	flex: 1
}

.t-course__title {
	font-size: .88rem;
	font-weight: 700;
	color: #2b2f37;
	line-height: 1.3;
	min-height: 2.4em;
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.t-course__row {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 10px
}

.t-course__av {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #e9ebef;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 22px
}

.t-course__av i {
	font-size: .8rem;
	color: #9aa0ab
}

.t-course__teacher {
	font-size: .74rem;
	color: #5b606b;
	font-weight: 500;
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis
}

.t-course__rate {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: .74rem;
	font-weight: 700;
	color: #3b4049
}

.t-course__rate i {
	font-size: .8rem;
	color: #F3B63F
}

.t-course__meta {
	display: flex;
	justify-content: space-between;
	gap: 4px;
	padding: 9px 0;
	border-top: 1px solid #edeff2;
	border-bottom: 1px solid #edeff2;
	margin-bottom: 10px;
}

.t-meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	text-align: center;
	flex: 1
}

.t-meta__v {
	display: flex;
	align-items: center;
	gap: 3px;
	font-size: .7rem;
	font-weight: 700;
	color: #3b4049
}

.t-meta__v i {
	font-size: .8rem;
	color: #9aa0ab
}

.t-meta__l {
	font-size: .56rem;
	color: #9aa0ab
}

.t-course__btns {
	display: flex;
	gap: 7px;
	margin-bottom: 10px
}

.t-btn {
	height: 32px;
	border-radius: 8px;
	font-size: .73rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	border: none;
	cursor: pointer;
	transition: .15s
}

.t-btn--red {
	background: linear-gradient(180deg, #e83a44, #d4202b);
	color: var(--bs-white);
	box-shadow: 0 3px 8px rgba(225, 35, 46, .22)
}

.t-btn--red:hover {
	opacity: .9
}

.t-btn--ghost {
	background: var(--bs-white);
	border: 1px solid #e6e8ec;
	color: #5b606b
}

.t-btn--ghost:hover {
	border-color: #ccc
}

/* ---- Learning Path / Roadmap ---- */
.t-see-all {
	font-size: .8rem;
	font-weight: 600;
	color: var(--red);
	text-decoration: none;
	display: flex;
	align-items: center;
	gap: 2px
}

.t-see-all:hover {
	text-decoration: underline;
	color: var(--red)
}

.t-roadmap-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px
}

.t-roadmap-card {
	border-radius: 12px;
	overflow: hidden;
	background: var(--bs-white);
	border: 1px solid #edeff2;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s, transform .2s;
	position: relative;
	min-height: 120px
}

.t-roadmap-card:hover {
	box-shadow: 0 6px 20px rgba(0,0,0,.1);
	transform: translateY(-2px);
	color: inherit
}

.t-roadmap-card__img {
	height: 80px;
	width: 100%
}

.t-roadmap-card__body {
	padding: 10px 12px 12px;
	display: flex;
	flex-direction: column;
	gap: 4px
}

.t-roadmap-card__title {
	font-size: .82rem;
	font-weight: 700;
	line-height: 1.35;
	color: #1a1d23
}

.t-roadmap-card__link {
	font-size: .72rem;
	color: var(--red);
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 2px
}

.t-roadmap-card__count {
	font-size: .7rem;
	color: #8a8f9b;
	font-weight: 500;
	margin-top: 2px
}

.t-progress-line {
	margin-top: auto
}

.t-bar {
	height: 5px;
	border-radius: 5px;
	background: #eef0f3;
	overflow: hidden
}

.t-bar i {
	display: block;
	height: 100%;
	border-radius: 5px;
	background: linear-gradient(90deg, #ec3b45, #d4202b)
}

.t-progress-line .t-pct {
	font-size: .62rem;
	color: #9aa0ab;
	font-weight: 600;
	margin-top: 4px;
	text-align: right;
	display: block
}

/* ---- Right Panel ---- */
.t-panel {
	padding: 18px
}

.t-panel__title {
	font-size: 1rem;
	font-weight: 800;
	color: #2b2f37
}

.t-ring-wrap {
	display: flex;
	align-items: center;
	gap: 16px
}

.t-ring {
	position: relative;
	width: 100px;
	height: 100px;
	flex: 0 0 100px
}

.t-ring svg {
	width: 100px;
	height: 100px;
	transform: rotate(-90deg)
}

.t-ring__center {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center
}

.t-ring__pct {
	font-size: 1.4rem;
	font-weight: 800;
	color: #2b2f37;
	line-height: 1
}

.t-ring__lbl {
	font-size: .62rem;
	color: #8a8f99;
	font-weight: 500;
	margin-top: 1px
}

.t-pstat {
	display: flex;
	align-items: baseline;
	gap: 6px;
	margin-bottom: 8px
}

.t-pstat__num {
	font-size: 1.1rem;
	font-weight: 800;
	color: #2b2f37;
	line-height: 1
}

.t-pstat__lbl {
	font-size: .7rem;
	color: #8a8f99;
	font-weight: 500
}

/* ---- Learning Path ---- */
.t-lp__bar {
	height: 6px;
	border-radius: 6px;
	background: #eef0f3;
	overflow: hidden;
	margin-bottom: 14px
}

.t-lp__bar i {
	display: block;
	height: 100%;
	background: linear-gradient(90deg, #ec3b45, #d4202b);
	border-radius: 6px
}

.t-timeline {
	display: flex;
	flex-direction: column
}

.t-tl {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	position: relative;
	padding-bottom: 14px
}

.t-tl:last-child {
	padding-bottom: 0
}

.t-tl__line {
	position: absolute;
	left: 11px;
	top: 24px;
	bottom: -2px;
	width: 2px;
	background: #e9ebef
}

.t-tl:last-child .t-tl__line {
	display: none
}

.t-tl__ic {
	width: 23px;
	height: 23px;
	border-radius: 50%;
	flex: 0 0 23px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1
}

.t-tl__ic i {
	font-size: .7rem
}

.t-tl--done .t-tl__ic {
	background: #22B364;
	color: var(--bs-white)
}

.t-tl--doing .t-tl__ic {
	background: var(--bs-white);
	border: 2px solid #F2A73B
}

.t-tl--doing .t-tl__ic::after {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #F2A73B
}

.t-tl--lock .t-tl__ic {
	background: #f0f1f4;
	color: #b3b7bf
}

.t-tl__txt {
	font-size: .74rem;
	font-weight: 600;
	color: #41464f;
	padding-top: 3px
}

.t-tl--lock .t-tl__txt {
	color: #b3b7bf
}

/* ---- Events ---- */
.t-event {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	margin-bottom: 12px
}

.t-event:last-child {
	margin-bottom: 0
}

.t-event__thumb {
	width: 50px;
	height: 50px;
	flex: 0 0 50px;
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
}

.t-event__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.t-event__t {
	font-size: .76rem;
	font-weight: 700;
	color: #2b2f37;
	line-height: 1.3
}

.t-event__d {
	font-size: .64rem;
	color: #9aa0ab;
	margin-top: 2px
}

.t-event__reg {
	flex: 0 0 auto;
	align-self: flex-start;
	font-size: .58rem;
	font-weight: 700;
	color: #a4710f;
	background: #fbeccb;
	padding: 3px 8px;
	border-radius: 6px;
	white-space: nowrap;
}

/* ---- Features Bar ---- */
.t-features {
	background: linear-gradient(180deg, #fdeef0, #fdf3f4);
	border: 1px solid #f7dde1;
	border-radius: 16px;
	padding: 18px 20px;
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 16px;
}

.t-feature {
	display: flex;
	align-items: center;
	gap: 12px
}

.t-feature__ic {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	flex: 0 0 44px;
	background: var(--bs-white);
	border: 1.5px solid #f3c9cd;
	color: var(--red);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
}

.t-feature__t {
	font-size: .8rem;
	font-weight: 700;
	color: #2b2f37;
	margin-bottom: 1px
}

.t-feature__p {
	font-size: .66rem;
	color: #7c818b;
	line-height: 1.3
}

/* ---- Modal Lesson List ---- */
.t-video-area iframe,
.t-video-area video {
	border-radius: 8px
}

.t-lesson-item {
	cursor: pointer;
	transition: .1s;
	font-size: .82rem
}

.t-lesson-item:hover {
	background: #f8f9fb
}

.t-lesson-item.active {
	background: #fdf2f3
}

.t-lesson-ic {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	flex: 0 0 24px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f0f1f4;
	color: #9aa0ab;
	font-size: .7rem;
}

.t-lesson-ic.done {
	background: #22B364;
	color: var(--bs-white)
}

.t-lesson-title {
	font-size: .8rem;
	font-weight: 600;
	color: #3b4049;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* ---- Responsive ---- */
@media (max-width:1320px) {
	.t-courses {
		grid-template-columns: repeat(3, 1fr)
	}
}

@media (max-width:1100px) {
	.t-hero {
		flex-direction: column;
		align-items: flex-start
	}

	.t-hero__stats {
		margin-left: 0;
		padding-left: 0;
		flex-wrap: wrap;
		gap: 20px
	}
}

@media (max-width:900px) {
	.t-courses {
		grid-template-columns: repeat(2, 1fr)
	}

	.t-features {
		grid-template-columns: repeat(2, 1fr)
	}
}

@media (max-width:576px) {
	.t-courses {
		grid-template-columns: 1fr
	}

	.t-features {
		grid-template-columns: 1fr
	}
}