/* =====dựng base===== */

:root {
	--color-1: #fff;
	--color-2: #5f5b53;
	--color-3: #171100;
	--color-4: #ffb900;
	--color-5: #e2dfda;

	--bg-color-1: #171100;
	--bg-color-2: #fffcf4;
	--bg-color-3: #ffb900;
	--bg-color-4: #2e2100;

	--font-1: "Sen", serif;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 62.5%;
}

body {
	font-size: 1.6rem;
	font-family: "Poppins", sans-serif;
}

/* =====common===== */

a {
	text-decoration: none;
}

.btn {
	display: inline-block;
	min-width: 118px;
	padding: 0 16px;
	line-height: 50px;
	color: var(--color-1);
	text-align: center;
	font-size: 1.6rem;
	font-weight: 600;
	border-radius: 999px;
	background-color: var(--bg-color-1);
}

.btn:hover {
	cursor: pointer;
	opacity: 0.9;
}

.heading-lv2 {
	color: var(--color-3);
	font-family: Sen;
	font-size: 3.8rem;
	font-weight: 700;
	line-height: 1.26;
	letter-spacing: -0.76px;
}

.main-content {
	width: 1170px;
	max-width: calc(100% - 48px);
	margin: 0 auto;
}

.line-clamp {
	display: -webkit-box;
	-webkit-line-clamp: var(--line-clamp, 1); /* nếu không có biến, default =1 */
	-webkit-box-orient: vertical; /* hướng từ trên xuống */
	overflow: hidden;
}

.line-clamp.line-2 {
	--line-clamp: 2;
}

.break-all {
	word-break: break-all;
}

/* =====header===== */

.header {
	background-color: var(--bg-color-2);
}

.header .body {
	display: flex;
	align-items: center;
	padding: 36px 0 8px;
}

.nav ul {
	display: flex;
}

.nav {
	margin-left: auto;
}

.nav a {
	padding: 0 21px;
	color: var(--color-2);
	position: relative;
}

.nav li.active a,
.nav a:hover {
	color: var(--color-3);
	text-shadow: 1px 0 0 currentColor;
}

.nav li.active a::after {
	position: absolute;
	display: block;
	content: "";
	width: 12px;
	height: 2px;
	background-color: var(--color-3);
	left: 21px;
	bottom: -4px;
}

.header .btn-sign-up {
	min-width: 144px;
}

.header .action {
	padding-left: 49px;
}

header.fixed {
	position: sticky;
	top: -28px;
	z-index: 1;
}

/* ======hero====== */

.hero {
	padding: 57px 0 65px;
	background-color: var(--bg-color-2);
}

.hero .body {
	display: flex;
}

/* hero left */
.hero .media-block {
	position: relative;
	width: 48%;
}

.hero .media-block .img {
	width: 470px;
	height: 685px;
	object-fit: cover;
	border-radius: 20px;
}

.hero .hero-summary {
	width: 270px;
	padding: 24px;
	position: absolute;
	bottom: 48px;
	right: 0;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
}

.hero-summary .item {
	display: flex;
	align-items: center;
}

.hero-summary .item + .item {
	margin-top: 22px;
}

.hero-summary .icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: #fff9e8;
}

.hero-summary .icon2 {
	background-color: #fcefff;
}

.hero-summary .icon3 {
	background-color: #ebeaff;
}

.hero-summary .info {
	margin-left: 16px;
}

.hero-summary .label {
	color: #5f5b53;
	font-size: 1.4rem;
	line-height: 1.86; /* 185.714% */
}

.hero-summary .title {
	color: #171100;
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.66; /* 166.667% */
}

/* hero right */

.hero .content-block {
	width: 52%;
	padding-left: 130px;
	padding-top: 64px;
}

.content-block .heading {
	color: #171100;
	font-family: var(--font-1);
	font-size: 5.8rem;
	font-weight: 700;
	line-height: 1.17; /* 117.241% */
	letter-spacing: -1.16px;
}

.content-block .desc {
	margin-top: 22px;
	color: #5f5b53;
	font-size: 1.8rem;
	line-height: 1.67;
}

.content-block .cta-group {
	margin-top: 38px;
	display: flex;
	align-items: center;
}

.content-block .hero-cta {
	min-width: 180px;
	background-color: var(--bg-color-3);
	font-size: 1.8rem;
	line-height: 64px;
}

.content-block .watch-video {
	margin-left: 28px;
	border: none;
	background: transparent;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.hero .watch-video .icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.07);
}

.hero .watch-video span {
	color: var(--bg-color-1);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.67;
	margin-left: 14px;
}

.hero .desc-recent {
	margin-top: 48px;
}

.hero .stats {
	margin-top: 8px;
}

.hero .stats strong {
	margin-right: 15px;
	color: var(--color-3);
	font-family: var(--font-1);
	font-size: 4.4rem;
	font-weight: 700;
	line-height: 1.23;
}

.hero .stats strong:nth-child(2) {
	margin-left: 28px;
}

/* =====popular===== */
.popular {
	padding: 65px 0;
	margin-top: 135px;
}

/* popular top */
.popular-top {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.popular-top .desc {
	margin-top: 16px;
	width: 458px;
	color: var(--color-2);
	font-size: 1.8rem;
	line-height: 1.67;
}

.popular-top .controls {
	display: flex;
	gap: 18px;
}

.popular-top .control-btn {
	display: flex;
	justify-content: center;
	align-items: center;
	background: transparent;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--bg-color-3);
	color: var(--color-4);
}

.popular-top .control-btn:hover {
	background-color: var(--bg-color-3);
	color: var(--color-1);
	cursor: pointer;
}

/* course list */
.popular .course-list {
	margin-top: 55px;
	display: flex;
	gap: 30px;
}

.popular .course-item {
	flex: 1; /* 3 cột item bằng nhau = 1 */
	border-radius: 12px;
	border: 1px solid var(--color-5);
	background: var(--color-1);
}

.popular .course-item:hover {
	border: 1px solid transparent;
	box-shadow: 0px 18px 36px 0px rgba(0, 0, 0, 0.05);
}

.popular .course-item .thumb {
	width: 100%; /* 100% của cha */
	height: 278px;
	object-fit: cover;
	border-radius: 12px 12px 0px 0px;
}

.popular .course-item .info {
	padding: 16px 22px 22px;
}

.popular .course-item .foot,
.popular .info .rating,
.popular .info .head {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.popular .info .title a {
	color: var(--color-3);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.67;
}

.popular .info .value {
	margin-left: 6px;
	color: var(--color-4);
	font-size: 1.6rem;
	line-height: 1.75;
}

.popular .course-item .desc {
	margin-top: 6px;
	color: #5f5b53;
	font-size: 1.4rem;
	line-height: 1.86;
}

.popular .course-item .foot {
	margin-top: 6px;
}

.popular .course-item .price {
	color: var(--color-3);
	font-size: 1.8rem;
	font-weight: 600;
	line-height: 1.67;
}

.popular .course-item .btn {
	border: none;
}

.popular .course-item .btn:hover {
	color: var(--color-1);
	background-color: var(--bg-color-3);
}

/* ======feedback====== */
.main-content {
}

.feedback {
	margin-top: 135px;
	padding: 96px 0;
	background: #2e2100;
}

.feedback-list {
	display: flex;
	overflow: hidden;
}

.feedback-item {
	width: 100%; /* không bị ép */
	display: flex;
	flex-shrink: 0;
}

.feedback-item .avatar {
	width: 72px;
	height: 72px;
	border-radius: 50%;
	object-fit: cover;
}

.feedback-item .member-name {
	margin-top: 18px;
	color: #f7f7f7;
	font-family: var(--font-1);
	font-size: 2.4rem;
	font-weight: 700;
	line-height: 1.42;
}

.feedback-item .desc {
	margin-top: 4px;
	color: #bfbcb2;
	font-size: 1.4rem;
	line-height: 1.86;
}

.feedback-item .dots {
	margin-top: 28px;
	display: flex;
	gap: 6px;
}

.feedback-item .dots .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #634700;
	cursor: pointer;
}

.feedback-item .dots .dot.active {
	background-color: var(--bg-color-3);
	cursor: default; /* không hiện bàn tay */
}

.feedback-item .content {
	width: 66%;
	margin-left: auto;
}

.feedback-item blockquote {
	color: var(--color-1);
	font-size: 2.6rem;
	font-style: italic;
	line-height: 1.54;
}

/* ======features 1===== */
.features {
	margin-top: 135px;
	padding: 65px 0;
}

.features .body {
	width: 100%;
	display: flex;
	justify-content: space-between;
	/* align-items: center; */
}

.features .images {
	display: flex;
	gap: 30px;
}

.features .images img {
	width: 270px;
	height: 405px;
	object-fit: cover;
	border-radius: 16px;
}

.features .lower {
	margin-top: 34px;
}

.features .content {
	width: 41%;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.features .desc {
	margin-top: 16px;
	color: #5f5b53;
	font-size: 1.6rem;
	line-height: 1.75;
}

.features .cta-btn {
	width: 137px;
	height: 50px;
	margin-top: 32px;
	background-color: var(--bg-color-3);
}

/* ======features 2===== */

.features-2nd {
	margin-top: 70px;
}

.features-2nd .body {
	width: 100%;
	flex-direction: row-reverse;
}

.features-2nd .content {
	width: 49%;
}

.features-2nd .images img {
	width: 470px;
	height: 440px;
}

/* =====blogs===== */
.blogs {
	margin-top: 135px;
	padding: 96px 0;
	background-color: var(--bg-color-2);
}

.blogs .blog-top {
	text-align: center;
}

.blogs .desc {
	margin: 16px auto 0;
	width: 448px;
	margin-top: 16px;
	color: var(--color-2);
	font-size: 16px;
	line-height: 1.75;
}

.blogs .blog-list {
	margin-top: 55px;
	display: flex;
	gap: 30px;
	overflow: hidden;
}

.blogs .item {
	border-radius: 16px;
	background: #fff;
	width: calc(33.33% - 20px);
	flex-shrink: 0;
}

.blogs .item:hover {
	box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
}

.blogs .item .thumb {
	width: 100%;
	height: 250px;
	object-fit: cover;
	border-radius: 16px 16px 0px 0px;
}

.blogs .info {
	margin: 20px 20px 28px;
}

.blogs .date {
	position: relative;
	padding-bottom: 12px;
	display: inline-flex;
	color: var(--color-2);
	font-size: 1.4rem;
	line-height: 1.86;

	align-items: center;
}

.blogs .date::before {
	margin-right: 4px;
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background-color: var(--bg-color-3);
}

.blogs .date::after {
	position: absolute;
	left: 0;
	bottom: 0;
	right: -27px;
	content: "";
	display: inline-block;
	height: 1px;
	border-radius: 999px;
	background-color: #e2dfda;
}

.blogs .title {
	margin-top: 25px;
	color: var(--color-3);
	font-size: 1.6prem;
	font-weight: 600;
	line-height: 1.75;
}

.blogs .btn {
	margin-top: 12px;

	font-size: 14px;
}

.blogs .btn:hover {
	background: var(--bg-color-3);
}

.blogs .dots {
	margin-top: 38px;
	display: flex;
	justify-content: center;
	gap: 6px;
}

.blogs .dots .dot {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-2);
	cursor: pointer;
}

.blogs .dots .dot.active {
	background: var(--bg-color-3);
	cursor: default;
}

/* =====footer===== */
.footer {
	background: var(--bg-color-4);
	padding-top: 96px;
}

.footer .row {
	padding-bottom: 38px;
	border-bottom: 1px solid #59554b;
	display: flex;
}

.footer .column {
	width: 21.6%;
}

.footer .column:first-child {
	width: 35%;
}

.footer .desc {
	margin-top: 18px;
	max-width: 267px;
	color: #bfbcb2;
	font-size: 1.4rem;
	line-height: 1.86;
}

.footer .socials {
	margin-top: 18px;
	display: flex;
	gap: 18px;
}

.footer .title {
	display: inline-block;
	padding-right: 48px;
	padding-bottom: 14px;
	border-bottom: 1px solid #59554b;
	color: var(--color-1);
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.75;
}

.footer .list {
	margin-top: 16px;
}

.footer .list a {
	display: inline-block;
	margin-top: 12px;
	color: #bfbcb2;
	font-size: 1.4rem;
	line-height: 1.86;
}

.footer .list a strong {
	color: #fff;
	font-weight: 600;
}

.footer .copyright {
	padding: 28px 0;
	color: #807d74;
	text-align: center;
	font-size: 1.4rem;
	line-height: 1.86;
}
