* {
  box-sizing: border-box;
}

:root {
  --font-heading: "Sen", sans-serif;
  --primary-color: #ffb900;
}

html {
  font-size: 62.5%;
}

/* Khôi phục cỡ chữ mặc định */
body {
  font-size: 1.6 rem;
  font-family: "Poppins", sans-serif;
}

/* ================Common================= */
a {
  text-decoration: none;
}

.heading-lv2 {
  color: #171100;
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.27; /* 126.316% */
  letter-spacing: -0.76px;
}

.btn {
  color: #fff;
  display: inline-block;
  text-align: center;
  font-size: 1.6rem;
  padding: 0px 16px;
  background: #171100;
  border-radius: 999px;
  font-weight: 600;
  line-height: 50px;
  min-width: 118px;
  margin-top: 15px;
}

.btn:hover {
  opacity: 1;
  cursor: pointer;
}

.main-content {
  width: 1170px;
  max-width: calc(100% - 48px);
  margin-left: auto;
  margin-right: auto;
}

.line-camp {
  display: -webkit-box;
  -webkit-line-clamp: var(--line-clamp, 1);
  line-clamp: var(--line-clamp, 1);
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.line-camp.line-2 {
  --line-clamp: 2;
}

.break-all {
  word-break: break-all;
}

/* ===============Header================== */
.header {
  background-color: #fffcf4;
  position: relative;
}

.header.fixed {
  position: sticky;
  top: -28px;
  z-index: 1;
}

.header .body {
  display: flex;
  align-items: center;
  padding: 36px 0px 8px;
}

.nav {
  margin-left: auto;
}

.nav ul {
  display: flex;
}

.nav a {
  color: #5f5b53;
  text-align: center;

  /* Loại vì đã có trong thẻ body */
  /* font-family: Poppins; */

  /* Quy đổi sang rem vì mặc định đang quy đổi */
  font-size: 1.6rem;

  /* Mặc định trình duyệt đã có */
  /* font-style: normal;
  font-weight: 400; */

  /* Vì nav chỉ có vì chữ nên ko cần */
  /* line-height: 28px;  */ /* 175% */

  /* Dùng padding để khi người dùng di chuột qua sẽ tương tác luôn với trang web */
  /* background-color: blue; */
  padding: 8px 21px;
  position: relative;
}

.nav li .active a,
.nav a:hover {
  color: #171100;
  /* font-weight: 600; */
  text-shadow: 1px 0 1px currentColor;
}

.nav li .active a::after {
  position: absolute;
  left: 6px;
  bottom: 6px;
  content: "";
  width: 12px;
  height: 2px;
  background: #171100;
  border-radius: 1px;
  display: block;
}

.header .btn-sign-up {
  min-width: 114px;
}

.header .action {
  margin-left: 49px;
}

/* ======================Hero================== */
.hero {
  padding: 56px 0 65px;
  background: #fffcf4;
}

.hero .body {
  display: flex;
}

/* Hero left */
.hero .media-block {
  width: 48%;
  position: relative;
}

.hero .content-block {
  width: 52%;
}

.hero .media-block .img {
  width: 470px;
  height: 685px;
  object-fit: cover;
  border-radius: 20px;
}

.hero .hero-sumary {
  position: absolute;
  bottom: 48px;
  right: 0px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
  width: 270px;
  height: 244px;
  flex-shrink: 0;
  padding: 24px;
}

.hero-sumary .item {
  display: flex;
}

.hero-sumary .item + .item {
  margin-top: 22px;
  align-items: center;
}

.hero-sumary .icon {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.hero-sumary .icon2 {
  background-color: #fcefff;
}

.hero-sumary .icon3 {
  background-color: #ebeaff;
}

.hero-sumary .info {
  margin-left: 16px;
}

.hero-sumary .label {
  color: #5f5b53;
  font-size: 1.4rem;
  line-height: 186%;
}

.hero-sumary .title {
  color: #171100;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.67; /* 166.667% */
}

/* Hero right */
.hero .content-block {
  width: 52%;
  padding-left: 130px;
  padding-top: 65px;
}

.hero .heading {
  color: #171100;
  font-family: var(--font-heading);
  font-size: 5.8rem;
  font-weight: 700;
  line-height: 1.17; /* 117.241% */
  letter-spacing: -1.16px;
}

.hero .desc {
  margin-top: 22px;
  color: #5f5b53;
  font-size: 1.8rem;
  line-height: 1.67; /* 166.667% */
}

.hero .cta-group {
  margin-top: 38px;
  display: flex;
  align-items: center;
}

.hero-cta {
  min-width: 180px;
  line-height: 64px;
  background-color: var(--primary-color);
}

.hero .watch-video {
  border: none;
  background-color: transparent;
  display: flex;
  margin-left: 28px;
  align-items: center;
  cursor: pointer;
}

.hero .watch-video .icon {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 30px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.07);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .watch-video span {
  color: #171100;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.67; /* 166.667% */
  margin-left: 14px;
}

.hero .desc-recent {
  margin-top: 48px;
}

.hero .stats {
  margin-top: 15px;
  display: flex;
  align-items: center;
}

.hero .stats strong {
  margin-right: 15px;
  color: #171100;
  font-family: var(--font-heading);
  font-size: 4.4rem;
  font-weight: 700;
  line-height: 1.23; /* 122.727% */
}

.hero .stats strong:nth-child(2) {
  margin-left: 28px;
}

/* ================= Partners =====================*/
.partners {
  margin-top: 65px;
  text-align: center;
}

.partners .desc {
  font-size: 1.6rem;
  color: #5f5b53;
  margin-bottom: 25px;
  opacity: 0.8;
}

.partners .list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.partners .partner-logo {
  font-size: 2.4rem;
  font-weight: 700;
  color: #e2dfda;
  font-family: var(--font-heading);
  user-select: none;
  transition: 0.3s;
}

.partners .partner-logo:hover {
  color: var(--primary-color);
  transform: translateY(-2px);
}

body.dark-mode .partners .partner-logo {
  color: #444;
}

body.dark-mode .partners .partner-logo:hover {
  color: var(--primary-color);
}

/* ================= Popular =====================*/
.popular {
  padding: 65px;
  margin-top: 135px;
}

.popular-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popular-top .desc {
  margin-top: 16px;
  width: 458px;
  color: #5f5b53;
  font-size: 1.8rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.67; /* 166.667% */
}

.popular-top .control {
  display: flex;
  gap: 18px;
}

.popular-top .control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.popular-top .control-btn:hover {
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

.popular .course-list {
  margin-top: 55px;
  display: flex;
  gap: 30px;
}

.popular .course-item {
  flex: 1;
  border-radius: 12px;
  border: 1px solid #e2dfda;
  background: #fff;
}

.popular .course-item:hover {
  border-radius: 12px;
  background: #fff;
  box-shadow: 0px 18px 36px 0px rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
}

.popular .course-item .thumb {
  width: 100%;
  border-radius: 12px 12px 0px 0px;
  height: 278px;
  object-fit: cover;
}

.popular .course-item .info {
  padding: 16px 22px 22px;
}

.popular .course-item .rating,
.popular .course-item .head,
.popular .course-item .foot {
  display: flex;
}

.popular .course-item .head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.popular .course-item .title a {
  color: #171100;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.67; /* 166.667% */
}

.popular .rating .value {
  margin-left: 6px;
  color: #fea31b;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.75; /* 175% */
}

.popular .course-item .desc {
  margin-top: 6px;
  color: #5f5b53;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.85; /* 185.714% */
}

.popular .course-item .foot {
  margin-top: 12px;
}

.popular .course-item .foot .price {
  color: #171100;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.67; /* 166.667% */
  margin-right: 140px;
}

.popular .course-item .btn-book {
  border: none;
}

.popular .course-item .btn-book:hover {
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
}

/* ================= Feedback ===================== */
.feedback {
  margin-top: 135px;
  padding: 96px 0;
  background: #2e2100;
}

.feedback-list {
  display: flex;
  overflow: hidden;
}

.feedback-item {
  width: 100%;
  display: flex;
  flex-shrink: 0;
}

.feedback-item .avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.feedback-item .info .member-name {
  margin-top: 18px;
  color: #f7f7f7;
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.42;
}

.feedback-item .info .desc {
  margin-top: 4px;
  color: #bfbcb2;
  font-size: 1.4rem;
  line-height: 1.86;
}

.feedback-item .dots {
  gap: 6px;
  display: flex;
  margin-top: 28px;
}

.feedback-item .dot {
  height: 6px;
  width: 6px;
  border-radius: 50%;
  background: #634700;
  cursor: pointer;
}

.feedback-item .dot.active {
  background: var(--primary-color);
  cursor: default;
}

.feedback-item .content {
  width: 66%;
  margin-left: auto;
}

.feedback-item blockquote {
  color: #fff;
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1.54;
}

/* ================= Features 1 ===================== */
.features {
  margin-top: 135px;
  padding: 65px 0;
}

.features .body {
  display: flex;
  justify-content: space-between;
}

.features .images {
  display: flex;
  gap: 30px;
}

.features .images img {
  width: 270px;
  height: 405px;
  object-fit: cover;
  border-radius: 16px;
}

.features .lower {
  margin-top: 35px;
}

.features .content {
  width: 40%;
  flex-direction: column;
  justify-content: center;
}

.features .desc {
  margin-top: 16px;
  color: #5f5b53;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.75; /* 175% */
}

.features .cta-btn {
  width: 137px;
  height: 50px;
  flex-shrink: 0;
  background-color: var(--primary-color);
}

/* ================= Features 2 ===================== */
.features-2nd {
  margin-top: 70px;
}

.features-2nd .body {
  flex-direction: row-reverse;
}

.features-2nd .content {
  width: 49%;
}

.features-2nd .images img {
  width: 470px;
  height: 440px;
}

.features-2nd .content .desc {
  margin-bottom: 32px;
}

/* ================= Blogs ===================== */
.blogs {
  margin-top: 135px;
  padding: 96px 0;
  background: #fffcf4;
}

.blogs .blog-top {
  text-align: center;
}

.blogs .blog-top .desc {
  width: 448px;
  margin: 16px auto 0;
  color: #696262;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.75; /* 175% */
}

.blogs .blog-list {
  display: flex;
  margin-top: 55px;
  gap: 30px;
  overflow: hidden;
}

.blogs .item {
  width: calc(33.33% - 20px);
  border-radius: 16px;
  background: #fff;
  flex-shrink: 0;
}

.blogs .item:hover {
  box-shadow: 0px 16px 32px 0px rgba(0, 0, 0, 0.05);
}

.blogs .item .thumb {
  width: 370px;
  height: 250px;
  flex-shrink: 0;
  width: 100%;
  border-radius: 16px 16px 0px 0px;
  object-fit: cover;
}

.blogs .item .info {
  padding: 20px 20px 28px;
}

.blogs .item .date {
  color: #5f5b53;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.85; /* 185.714% */
  align-items: center;
  position: relative;
  display: inline-flex;
  padding-bottom: 12px;
}

.blogs .item .date::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-color);
  margin-right: 4px;
}

.blogs .item .date::after {
  content: "";
  display: inline-block;
  width: 160px;
  height: 1px;
  flex-shrink: 0;
  border-radius: 0.5px;
  background: #e2dfda;
  position: absolute;
  left: 0;
  bottom: 0;
  right: -27px;
}

.blogs .item .title {
  color: #171100;
  margin-top: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.75; /* 175% */
}

.blogs .item .btn {
  margin-top: 12px;
  font-size: 1.4rem;
}

.blogs .item .btn:hover {
  background-color: var(--primary-color);
}

.blogs .dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-top: 38px;
}

.blogs .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #5f5b53;
  cursor: pointer;
}

.blogs .dot.active {
  background: var(--primary-color);
  cursor: default;
}

/* Footer */
footer {
  background: #2e2100;
  padding: 96px 135px 0;
}

.footer .row {
  padding-bottom: 38px;
  border-bottom: 1px solid #59554b;
  display: flex;
}

.footer .row .column {
  width: 21.6%;
}

.footer .row .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 {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.footer .title {
  padding-bottom: 14px;
  padding-right: 48px;
  display: inline-block;
  border-bottom: 1px solid #59554b;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.75;
}

.footer .list {
  margin-top: 28px;
}

.footer .list a {
  display: inline-block;
  color: #bfbcb2;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.85; /* 185.714% */
  margin-bottom: 12px;
}

/* ... existing content ... */

/* ================ Animation Keyframes ================= */
@keyframes floating {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-15px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* ================= FAQ ===================== */
.faq {
  margin-top: 135px;
  padding: 65px 0;
}

.faq .test {
  max-width: 500px;
  margin: 0 auto 55px;
  text-align: center;
}

.faq .test .desc {
  margin-top: 16px;
  color: #5f5b53;
  font-size: 1.6rem;
  line-height: 1.75;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid #e2dfda;
  padding: 24px 0;
}

.faq-item .question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-item .question h3 {
  color: #171100;
  font-size: 1.8rem;
  font-weight: 600;
}

.faq-item .question svg {
  transition: 0.3s;
}

.faq-item.active .question svg {
  transform: rotate(180deg);
}

.faq-item .answer {
  margin-top: 14px;
  color: #5f5b53;
  font-size: 1.6rem;
  line-height: 1.75;
  display: none;
}

/* ================= Newsletter ===================== */
.newsletter {
  margin-top: 135px;
  padding: 76px 0 88px;
  background-color: var(--primary-color);
  text-align: center;
}

.newsletter .body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.newsletter .info {
  text-align: left;
  width: 45%;
}

.newsletter .heading-lv2 {
  color: #fff;
}

.newsletter .desc {
  margin-top: 12px;
  color: #fff;
  font-size: 1.6rem;
  line-height: 1.75;
}

.newsletter .form {
  display: flex;
  width: 50%;
}

.newsletter .form input {
  flex: 1;
  height: 60px;
  border-radius: 99px;
  border: none;
  outline: none;
  padding: 0 24px;
  font-family: inherit;
  font-size: 1.6rem;
}

.newsletter .form .btn {
  height: 60px;
  margin-top: 0;
  margin-left: -60px;
  background: #171100;
  color: #fff;
  min-width: 130px;
  border: none;
  cursor: pointer;
  line-height: 60px;
}

.newsletter .form .btn:hover {
  opacity: 0.9;
}

/* ================= Back to Top ===================== */
.back-to-top {
  position: fixed;
  right: 30px;
  bottom: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 99;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-5px);
}

/* ================= Preloader ===================== */
#preloader {
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fffcf4;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e2dfda;
  border-top: 5px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Áp dụng nhẹ nhàng cho ảnh chính nếu muốn, hoặc chỉ icon */

/* Chỉ áp dụng cho các icon nhỏ trong thẻ tóm tắt */
.hero-sumary .item .icon {
  animation: floating 3s ease-in-out infinite;
}
.hero-sumary .item:nth-child(2) .icon {
  animation-delay: 0.5s;
}
.hero-sumary .item:nth-child(3) .icon {
  animation-delay: 1s;
}

/* ================ Modern Hover Effects ================= */
/* Nút bấm: Scale nhẹ và bóng đổ khi hover */
.btn,
.hero .watch-video {
  transition: transform 0.3s ease, box-shadow 0.3s ease,
    background-color 0.3s ease, color 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 185, 0, 0.4);
}

/* Thẻ khóa học và Blog: Nổi lên khi hover */
.popular .course-item,
.blogs .item {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.popular .course-item:hover,
.blogs .item:hover {
  transform: translateY(-10px);
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

/* Ảnh trong card zoom nhẹ khi hover card (nếu muốn, tuỳ chọn) */
.popular .course-item .thumb,
.blogs .item .thumb {
  transition: transform 0.5s ease;
}
.popular .course-item:hover .thumb,
.blogs .item:hover .thumb {
  transform: scale(
    1.05
  ); /* Cần overflow hidden ở thẻ cha nếu muốn ảnh không tràn */
}
/* Cần set overflow hidden cho thẻ chứa ảnh để hiệu ứng zoom đẹp hơn */
.popular .course-item > a,
.blogs .item > a {
  display: block;
  overflow: hidden;
  border-radius: 12px 12px 0 0; /* Khớp với border-radius của ảnh */
}
.blogs .item > a {
  border-radius: 16px 16px 0 0;
}

/* Smooth Scrolling cho toàn trang */
html {
  scroll-behavior: smooth;
}

/* Header mờ hoặc có bóng khi cuộn */
.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  background-color: rgba(255, 252, 244, 0.95); /* Làm mờ nhẹ background */
  backdrop-filter: blur(10px);
}

.footer .list strong {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.85; /* 185.714% */
}

.footer .copyright {
  padding: 28px 0;
  color: #807d74;
  text-align: center;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.85; /* 185.714% */
}

/* ================= Pricing ===================== */
.pricing {
  background-color: #f9f9f9;
  padding: 86px 0;
  margin-top: 135px;
}

.pricing-top {
  margin-bottom: 55px;
}

.pricing-top .desc {
  font-size: 1.8rem;
  color: #5f5b53;
  margin-top: 16px;
  line-height: 1.67;
}

.pricing-list {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
}

.pricing-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  width: 370px;
  border: 1px solid #e2dfda;
  display: flex;
  flex-direction: column;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.pricing-card:hover {
  box-shadow: 0px 20px 40px rgba(0, 0, 0, 0.08);
  transform: translateY(-10px);
  border-color: transparent;
}

.pricing-card.popular-card {
  border-color: var(--primary-color);
  box-shadow: 0px 20px 40px rgba(255, 185, 0, 0.15);
}

.pricing-card .badge {
  position: absolute;
  top: 18px;
  right: -32px;
  background: var(--primary-color);
  color: #fff;
  padding: 5px 40px;
  font-size: 1.2rem;
  font-weight: 600;
  transform: rotate(45deg);
  text-transform: uppercase;
}

.pricing-card .name {
  color: #171100;
  font-size: 2.2rem;
  font-weight: 600;
}

.pricing-card .price {
  color: #171100;
  font-size: 4.8rem;
  font-weight: 700;
  margin-top: 18px;
}

.pricing-card .price span {
  font-size: 1.6rem;
  color: #5f5b53;
  font-weight: 400;
}

.pricing-card .features-list {
  margin: 30px 0;
}

.pricing-card .features-list li {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  color: #5f5b53;
  margin-bottom: 18px;
}

.pricing-card .features-list li img {
  margin-right: 12px;
  width: 20px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

.pricing-card .btn-outline {
  background: transparent;
  border: 1px solid #171100;
  color: #171100;
}

.pricing-card .btn-outline:hover {
  background: #171100;
  color: #fff;
}

.pricing-card .btn-primary {
  background: var(--primary-color);
  color: #171100;
}

/* ================= Course Tabs ===================== */
.course-tabs {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
}

.course-tabs .tab-btn {
  padding: 12px 28px;
  border-radius: 30px;
  border: 1px solid #e2dfda;
  background: transparent;
  font-size: 1.6rem;
  color: #5f5b53;
  cursor: pointer;
  transition: 0.3s;
  font-family: inherit;
  font-weight: 500;
}

.course-tabs .tab-btn:hover,
.course-tabs .tab-btn.active {
  background: #171100;
  color: #fff;
  border-color: #171100;
}

.course-item.hidden {
  display: none;
}

/* ================= Responsive ================= */
.toggle-menu {
  display: none;
  margin-left: 20px;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 9;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

@media screen and (max-width: 991.98px) {
  .main-content {
    max-width: calc(100% - 32px);
  }

  /* Hero */
  .hero .body {
    flex-direction: column;
  }

  .hero .media-block,
  .hero .content-block {
    width: 100%;
  }

  .hero .content-block {
    padding-left: 0;
    padding-top: 30px;
  }

  .hero .media-block .img {
    width: 100%;
    height: auto;
  }

  .hero .hero-sumary {
    position: relative;
    bottom: auto;
    right: auto;
    width: 100%;
    height: auto;
    margin-top: -100px;
    background: #fff;
    padding: 20px;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
  }

  .hero-sumary .item + .item {
    margin-top: 0;
    margin-left: 20px;
  }

  /* Features */
  .features .body {
    flex-direction: column;
  }

  .features .images,
  .features .content {
    width: 100%;
  }

  .features .content {
    margin-top: 30px;
  }

  .features .images img {
    width: 100%;
  }

  /* Features 2nd */
  .features-2nd .body {
    flex-direction: column;
  }

  .features-2nd .images img {
    width: 100%;
    height: auto;
  }
}

@media screen and (max-width: 767.98px) {
  /* Header & Nav */
  .toggle-menu {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 10;
    padding: 40px 20px;
    transform: translateX(100%);
    transition: 0.3s;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav ul {
    flex-direction: column;
  }

  .nav a {
    display: block;
    padding: 15px 0;
    text-align: left;
  }

  .header .action {
    display: none;
  }

  /* Hero */
  .hero .hero-sumary {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
  }

  .hero-sumary .item + .item {
    margin-left: 0;
    margin-top: 20px;
  }

  .hero .heading {
    font-size: 4.2rem;
  }

  .hero .stats strong {
    font-size: 3.2rem;
  }

  /* Popular */
  .popular {
    padding: 40px 0;
    margin-top: 60px;
  }

  .popular-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .popular-top .desc {
    width: 100%;
  }

  .popular-top .control {
    margin-top: 20px;
  }

  .popular .course-list {
    flex-direction: column;
    margin-top: 30px;
  }

  .popular .course-item .foot .price {
    margin-right: auto;
  }

  /* Feedback */
  .feedback {
    margin-top: 60px;
    padding: 40px 0;
  }

  .feedback-item {
    flex-direction: column;
  }

  .feedback-item .content {
    width: 100%;
    margin-left: 0;
    margin-top: 20px;
  }

  .feedback-item blockquote {
    font-size: 1.8rem;
  }

  /* Features */
  .features {
    margin-top: 60px;
  }

  .features .images {
    flex-direction: column;
  }

  .features .images img {
    height: auto;
  }

  /* Blogs */
  .blogs {
    margin-top: 60px;
    padding: 40px 0;
  }

  .blogs .blog-list {
    flex-direction: column;
  }

  .blogs .item {
    width: 100%;
  }

  .blogs .blog-top .desc {
    width: 100%;
  }

  /* Footer */
  footer {
    padding: 40px 20px 0;
  }

  .footer .row {
    flex-direction: column;
  }

  .footer .row .column,
  .footer .row .column:first-child {
    width: 100%;
    margin-bottom: 30px;
  }
}

/* ================= Video Modal ================= */
.modal-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.modal-video.show {
  opacity: 1;
  visibility: visible;
}

.modal-video-inner {
  width: 80%;
  max-width: 900px;
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  transform: scale(0.8);
  transition: 0.3s;
}

.modal-video.show .modal-video-inner {
  transform: scale(1);
}

.modal-iframe {
  width: 100%;
  height: 100%;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: -40px;
  color: #fff;
  font-size: 40px;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
}

/* ================= Dark Mode ================= */
body.dark-mode {
  background-color: #1a1a1a;
  color: #e0e0e0;
}

body.dark-mode .header,
body.dark-mode .hero,
body.dark-mode .features,
body.dark-mode .blogs,
body.dark-mode .popular .course-item,
body.dark-mode .pricing-card,
body.dark-mode .faq-item,
body.dark-mode #preloader {
  background-color: #1a1a1a;
  border-color: #333;
}

body.dark-mode .hero .heading,
body.dark-mode .heading-lv2,
body.dark-mode .popular .course-item .title a,
body.dark-mode .pricing-card .name,
body.dark-mode .pricing-card .price,
body.dark-mode .faq-item .question h3,
body.dark-mode .blogs .item .title {
  color: #fff;
}

body.dark-mode .desc,
body.dark-mode .hero .stats strong,
body.dark-mode .popular .course-item .desc,
body.dark-mode .feedback-item .info .desc,
body.dark-mode .footer .desc,
body.dark-mode .pricing-card .features-list li,
body.dark-mode .faq-item .answer {
  color: #b0b0b0;
}

body.dark-mode .course-tabs .tab-btn {
  color: #b0b0b0;
  border-color: #444;
}

body.dark-mode .pricing,
body.dark-mode .blogs .item,
body.dark-mode .footer {
  background-color: #242424;
}

body.dark-mode .faq-item .question svg path {
  stroke: #fff;
}
body.dark-mode .toggle-menu path {
  stroke: #fff;
}

/* Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: 15px;
  color: #171100;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
}

.theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

body.dark-mode .theme-toggle {
  color: #fff;
}

body.dark-mode .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
}

.theme-toggle .moon-icon {
  display: none;
}

body.dark-mode .theme-toggle .sun-icon {
  display: none;
}

body.dark-mode .theme-toggle .moon-icon {
  display: block;
}

/* ================= Preloader ================= */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fffcf4;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-hidden {
  opacity: 0;
  visibility: hidden;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e2dfda;
  border-top: 4px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================= Final Responsive Polish ================= */
@media screen and (max-width: 991.98px) {
  /* Pricing Section Tablet */
  .pricing-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  
  .pricing-card {
    width: calc(50% - 20px);
    flex-shrink: 0;
  }
}

@media screen and (max-width: 767.98px) {
  /* Mobile Spacing Reductions */
  .hero, .features, .popular, .feedback, .pricing, .blogs, .faq, .newsletter {
    margin-top: 60px !important;
    padding: 40px 0 !important;
  }

  .heading-lv2 {
    font-size: 3.2rem;
  }

  /* Pricing Mobile */
  .pricing-card {
    width: 100%;
  }
  
  /* Footer Mobile */
  footer {
    padding: 40px 20px 0 !important;
  }
  
  .footer .row {
    flex-direction: column;
  }
  
  .footer .row .column {
    width: 100% !important;
    margin-bottom: 25px;
  }

  /* Promo Bar Mobile */
  .promo-bar {
    font-size: 1.2rem;
    padding: 10px 30px 10px 15px;
    text-align: left;
  }
  .promo-bar .promo-close {
    right: 5px;
  }
}
