.header-wrapper {
  display: flex;
  width: 100%;
  height: 496px;
  background-image: url("../img/bg-banner-2.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.header-wrapper .inner {
  display: flex;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.container {
  width: 1170px;
  max-width: 100%;
  min-height: 100px;
  margin: 0 auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 40px;
}

.header-container {
  display: flex;
  flex-direction: column;
}

.header-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--white);
  gap: 10px;
}

.nav {
  display: flex;
}

.nav li {
  position: relative;
}

.nav > li > a {
  display: inline-block;
  padding: 20px;
  text-decoration: none;
  color: var(--white);
  text-transform: uppercase;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.nav li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: rotateX(0deg);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s 0s;
}
/* submenu */

.submenu {
  opacity: 0;
  visibility: hidden;
  top: 58px;
  left: 0;
  position: absolute;
  min-width: 220px;
  background-color: var(--white);
  transform: rotateX(-90deg);
  transform-origin: top center;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    visibility 0s 0.4s;
}

.submenu::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 100%;
  top: -20px;
  left: 0;
}

.submenu a {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 25px;
  text-decoration: none;
  color: #0009;
  border-bottom: 1px solid #0000000d;
  width: 100%;
  transition:
    color ease-in-out 0.3s,
    background-color ease-in-out 0.3s;
}

.submenu a span {
  text-transform: capitalize;
  transform: translateX(0px);
  transition: transform ease-in-out 0.3s;
}

.submenu a:hover {
  color: var(--white);
  background-color: var(--primary);
}

.submenu a:hover span {
  transform: translateX(10px);
}

.action-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  position: relative;
}

label.action-btn {
  cursor: pointer;
}

.header-search-box {
  position: absolute;
  top: 40px;
  right: 28px;
  height: 55px;
  width: 280px;
  background-color: var(--white);
  padding: 5px;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0.3s;
}

.header-search-box input {
  flex: 1;
  border: 1px solid #ececec;
  outline: none;
  color: #333;
  padding: 0 15px;
}

.header-search-box button {
  width: 50px;
  background-color: var(--primary);
  color: var(--white);
}

#search-toggle:checked ~ .header-search-box {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    visibility 0s 0s;
}

.action-btn {
  font-size: 2rem;
  color: var(--white);
}

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

.breadcrumb {
  display: flex;
  font-family: var(--heading-font);
  font-size: 1.5rem;
  color: #fffc;
}

.breadcrumb a {
  text-decoration: none;
  color: #fffc;
  transition: color ease-in-out 0.3s;
}

.breadcrumb a:hover {
  color: var(--secondary);
}

.breadcrumb li + li::before {
  content: "/";
  padding: 0 8px;
}

/* Start Main */

.main {
  margin-top: 110px;
}

.main .inner {
  display: flex;
  gap: 30px;
}

/* Start Sidebar */
.sidebar {
  width: 270px;
}

.search-form {
  display: flex;
  align-items: center;
  height: 43px;
  border: 1px solid #00000017;
  border-radius: 20px;
  overflow: hidden;
}

.search-input {
  flex: 1;
  outline: none;
  border: none;
  padding-left: 20px;
}

.search-input:not(:placeholder-shown) + .search-btn {
  color: #333;
}

.search-btn {
  padding: 0 20px;
  align-self: stretch;
  color: #00000080;
}

.menu-title {
  margin-top: 30px;
  color: #222;
  font-size: 1.6rem;
}

.menu {
  margin-top: 30px;
  border: 1px solid #0000000d;
}

.menu li + li {
  border-top: 1px solid #0000000d;
}

.menu a {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 25px;
  color: #000000b3;
  text-decoration: none;
  translate: 0;
  transition:
    color ease 0.3s,
    translate linear 0.3s;
}

.menu a:hover {
  color: var(--secondary);
  translate: 10px;
}

/* Start Main Content */
.main-content {
  flex: 1;
}

.topics {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.topics a {
  display: inline-block;
  height: 30px;
  line-height: 30px;
  border-radius: 15px;
  text-decoration: none;
  padding: 0px 14px;
  transition:
    color ease-in-out 0.3s,
    background-color ease-in-out 0.3s;
}

.topics .active a,
.topics a:hover {
  background-color: var(--secondary);
  color: var(--white);
}

.courses-list {
  display: flex;
  flex-wrap: wrap;
  margin-top: 60px;
  gap: 30px;
}

.course-item {
  display: flex;
  flex-direction: column;
  width: calc((100% - 60px) / 3);
  border: 1px solid #0000000d;
}

.course-item .thumb-wrapper {
  display: block;
  aspect-ratio: 1/0.8;
  overflow: hidden;
  position: relative;
}

.thumb-wrapper.badge-ribbon::after {
  content: "\e0b7";
  font-family: "Font Awesome 7 Free";
  font-weight: 600;
  position: absolute;
  top: -56px;
  right: -66px;
  font-size: 2.4rem;
  color: var(--white);
  background-color: var(--primary);
  width: 140px;
  height: 100px;
  transform: rotate(35deg);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.course-item .course-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale ease-in-out 0.6s;
}

.course-item:hover .course-thumb {
  scale: 1.05;
}

.course-item .course-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 0 10px;
  height: 30px;
  line-height: 30px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 1.2rem;
  border-radius: 15px;
}

.course-item .course-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
}

.course-item .course-title a {
  font-size: 1.8rem;
  color: #464646;
  text-decoration: none;
  transition: color ease-in-out 0.3s;
}

.course-item:hover .course-title a {
  color: var(--primary);
}

.course-item .course-desc {
  margin: 20px 0;
}

.course-item .course-bottom {
  display: flex;
  align-items: center;
  margin-top: auto;
  gap: 15px;
  color: #0009;
}

.course-item .course-bottom div {
  display: flex;
  gap: 10px;
  align-items: center;
}

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

.course-item .course-btn {
  height: 32px;
  min-width: 66px;
  padding: 0 8px;
  margin-left: auto;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 30px;
  text-decoration: none;
  line-height: 32px;
  text-align: center;
  position: relative;
  transition: translate ease-in-out 0.3s;
}

.course-item .course-btn::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 10px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  opacity: 0;
  transition:
    opacity ease-in-out 0.3s,
    width ease-in-out 0.3s,
    bottom ease-in-out 0.3s;
}

.course-item .course-btn:hover {
  translate: 0 -10px;
}

.course-item .course-btn:hover::after {
  opacity: 1;
  width: 90%;
  bottom: -14px;
}

.course-item .active {
  color: var(--white);
  background-color: var(--secondary);
}

.pagination {
  display: flex;
  gap: 8px;
  margin-top: 60px;
}

.page-link {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  font-weight: 600;
  border: 1px solid #00000033;
  color: #0000004d;
  border-radius: 8px;
  text-decoration: none;
  transition:
    color ease-in-out 0.3s,
    border-color ease-in-out 0.3s;
}

.page-link:hover,
.page-link.active {
  border-color: var(--secondary);
  color: var(--secondary);
}

.page-link.btn {
  width: 60px;
  font-size: 16px;
  margin-left: 10px;
  text-transform: uppercase;
  color: var(--white);
  background-color: var(--secondary);
}

.footer {
  background-color: black;
  padding: 80px 0 160px 0;
  margin-top: 100px;
}

.footer .inner {
  display: flex;
  gap: 15px;
}

.footer-logo {
  flex: 1;
}

.footer-logo a {
  display: inline-block;
}

.footer-logo img {
  display: block;
  max-width: 100%;
}

.footer-logo p {
  margin-top: 20px;
  line-height: 1.6;
  font-size: 1.5rem;
  color: #fff9;
}

.footer-apps {
  display: flex;
  gap: 22px;
  margin-top: 20px;
}

.footer-apps a {
  display: block;
}

.footer-apps img {
  display: block;
}

.footer-menu {
  flex: 2;
  display: flex;
  gap: 15px;
}

.footer-menu .menu-list {
  flex: 1;
}

.menu-list h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 8px;
}

.menu-list ul {
  margin-top: 24px;
}

.menu-list li {
  margin-top: 14px;
}

.menu-list ul a {
  text-decoration: none;
  color: #fff9;
  transition: color ease-in-out 0.3s;
}

.menu-list ul a:hover {
  color: var(--primary);
}

.footer-email {
  flex: 1;
}

.footer-email h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-top: 8px;
}

.footer-email p {
  margin-top: 24px;
  line-height: 1.6;
  font-size: 1.5rem;
  color: #fff9;
}

.footer-email input {
  width: 100%;
  margin-top: 24px;
  height: 40px;
  background-color: #272727;
  border: none;
  outline: none;
  color: var(--white);
  border-radius: 20px;
  padding: 0 20px;
}

.footer-email button {
  width: 100px;
  height: 40px;
  margin-top: 10px;
  color: var(--white);
  background-color: var(--primary);
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color ease-in-out 0.3s;
}

.footer-email button::after {
  content: "";
  position: absolute;
  inset: 0;
  scale: 0;
  z-index: -1;
  border-radius: 30px;
  background-color: var(--white);
  transition: scale 0.3s ease-in-out;
}

.footer-email button:hover::after {
  scale: 1;
}

.footer-email button:hover {
  color: var(--primary);
}

.move-top {
  display: block;
  width: 40px;
  height: 40px;
  background-color: var(--primary);
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.move-top i {
  color: var(--white);
  font-size: 2rem;
  width: 100%;
  height: 100%;
  line-height: 40px;
  text-align: center;
}
