/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --blue-hover: #666ca3;
  --blue: #13183f;
  --text-gray: #83869a;
  --main-orange: #f74780;
  --main-pink: #ffa7c3;
  --white: #ffffff;
  --primary-gradient: linear-gradient(180deg, #ff6f48 0.04%, #f02aa6 100%);
  --secondary-gradient: linear-gradient(180deg, #4851ff 0%, #f02aa6 99.92%);
}

a {
  text-decoration: none;
}

body {
  background: linear-gradient(180deg, #ffffff 0%, #f0f1ff 100%);
}
.header {
  position: absolute;
  height: 50px;
  width: 100%;
  z-index: 100;
  padding: 0 20px;
  margin: auto;
}
.nav {
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding-top: 3rem;
}
.nav,
.nav_item {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: space-between;
}
.nav_logo,
.nav_link,
.button {
  color: #33223d;
}
.nav_logo {
  font-size: 30px;
  font-weight: bold;
}
.nav_item {
  column-gap: 25px;
  font-size: large;
  font-weight: bold;
}
.nav_link:hover {
  color: #000;
}
.button {
  padding: 6px 24px;
  border: 2px solid #000;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
}
.button:active {
  transform: scale(0.98);
}
.welcome-head {
  width: 50%;
  height: 100%;
  padding-top: 15%;
  padding-left: 10%;
  margin: none;
}
.welcome-hed {
  color: var(--blue);
  font-size: 50px;
  line-height: 50px;
  font-weight: 800;
  margin: 2rem;
  margin-top: 2rem;
  margin-bottom: 20px;
}
.wel-para {
  color: var(--text-gray);
  font-size: 16px;
  margin: 2rem;
  line-height: 26px;
  font-weight: 500;
}
.wel-btn {
  display: inline-block;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50px;
  width: 167px;
  height: 56px;
  line-height: 56px;
  font-size: 16px;
  font-weight: 700;
  margin: 24px 2cqmax;
  text-decoration: none;
  text-align: center;
}
.wel-btn:hover{
    background: linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.5)
      ),
      var(--primary-gradient);
    cursor: pointer;
}


.course-card__description {
  color: var(--text-gray);
  font-size: 16px;
  margin: 2rem;
  line-height: 26px;
  font-weight: 500;
}


.intro-btn:hover {
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    var(--primary-gradient);
  cursor: pointer;
}


.intro-card {
  margin: 16px 1rem;
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  font-weight: 800;
  font-size: 24px;
  line-height: 32px;
  height: 120px;
  margin-top: 40px;
}

.course-card {
  padding: 1rem;
  padding-bottom: 0;
  width: 90%;
  margin: 2.5rem auto;
  border-radius: 10px;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.course-card__heading {
  color: var(--blue);
  font-weight: 800;
  font-size: 20px;
  margin-top: -25px;
  margin-bottom: 1rem;
  line-height: 28px;
}

.course-card__logo {
  position: relative;
  top: -45px;
  display: block;
  width: 56px;
}

.course-card__description {
  margin: 0;
}

.course-card__link {
  text-decoration: none;
  margin-top: 1.5rem;
  color: var(--main-orange);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 32px;
  align-self: flex-start;
}

.course-card__link:hover {
  color: var(--main-pink);
}

.footer {
  display: flex;
  align-items: center;
  background-color: var(--blue);
  height: 7rem;
}

.footer-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: #ffffff;
  width: 100%;
}

.footer-button {
  background: var(--secondary-gradient);
  color: #ffffff;
  border-radius: 50px;
  width: 8rem;
  height: 3rem;
  line-height: 3rem; /* vertically center the text */
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
}

.footer-button:hover {
  background: linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.5),
      rgba(255, 255, 255, 0.5)
    ),
    linear-gradient(180deg, #4851ff -54.32%, #f02aa6 100%);
  cursor: pointer;
}

@media (min-width: 576px) {
  .hero-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 70vh;
    background-image: url(./assets/image-hero-tablet.png);
    background-repeat: no-repeat;
    background-position: bottom left;
  }

  .header-button {
    z-index: 1;
  }

  .main-wrapper {
    width: 90%;
    margin: auto;
    margin-bottom: 86px;
  }

  .intro-card {
    margin: 40px 0 0 0;
    padding: 56px 32px;
  }
  .intro-heading {
    font-size: 36px;
  }
  .intro-text {
    /* height: 100vh;
      width: 48%; */

    /* height: 100vh; */
    width: 50%;
    margin-top: 5rem;

    padding-left: 5rem;
    position: relative;
  }

  .intro-image {
    display: none;
  }

  .intro-paragraph,
  .course-card__description {
    font-size: 16px;
    font-weight: 500;
  }

  .course-cards {
    width: 90%;
    height: 930px;
    margin: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(3, 30%);
    gap: 50px 15px;
  }

  .intro-card,
  .course-card {
    width: 100%;
    height: 100%;
    margin-top: 30px;
  }
}

@media (min-width: 992px) {
  .hero-image {
    height: 80vh;
    background-image: url(./assets/image-hero-desktop.png);
    background-position: -18px -180px;
    background-size: auto 120%;
    z-index: -99;
  }

  .intro-heading {
    font-size: 56px;
    line-height: 70px;
  }

  .course-cards {
    width: 95%;
    height: 700px;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: repeat(2, 44%);
    gap: 56px 30px;
    margin-bottom: 140px;
  }
  .intro-text {
    margin-top: 10rem;
    margin-bottom: 10rem;
  }

  .intro-card {
    font-size: 1.8rem;
  }

  .intro-card,
  .course-card {
    width: 100%;
  }

  .footer-wrapper,
  .main-wrapper {
    width: 80%;
    max-width: 1140px;
    margin: auto;
  }
}

/* login / signup form */

.form_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 101;
  background: linear-gradient(180deg, #ae6a1c -54.32%, #f02aa6 100%);
}

.form_close {
  position: absolute;
}

/* Home */
.home {
  position: relative;
  height: 100vh;
  width: 100%;
  background-image: url("./assets/elearning.jpg");
  background-size: cover;
  background-position: center;
}
.home::before {
  content: "";
  position: absolute;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: all 0.5s ease-out;
}
.home.show::before {
  opacity: 1;
  pointer-events: auto;
}
/* From */
.form_container {
  position: fixed;
  max-width: 320px;
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  z-index: 101;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: rgba(0, 0, 0, 0.1);
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease-out;
}
.home.show .form_container {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}
.signup_form {
  display: none;
}
.form_container.active .signup_form {
  display: block;
}
.form_container.active .login_form {
  display: none;
}
.form_close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #0b0217;
  font-size: 22px;
  opacity: 0.7;
  cursor: pointer;
}
.form_container h2 {
  font-size: 22px;
  color: #0b0217;
  text-align: center;
}
.input_box {
  position: relative;
  margin-top: 30px;
  width: 100%;
  height: 40px;
}
.input_box input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  padding: 0 30px;
  color: #333;
  transition: all 0.2s ease;
  border-bottom: 1.5px solid #aaaaaa;
}
.input_box input:focus {
  border-color: #7d2ae8;
}
.input_box i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: #707070;
}
.input_box i.email,
.input_box i.password {
  left: 0;
}
.input_box input:focus ~ i.email,
.input_box input:focus ~ i.password {
  color: #7d2ae8;
}
.input_box i.pw_hide {
  right: 0;
  font-size: 18px;
  cursor: pointer;
}
.option_field {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form_container a {
  color: #7d2ae8;
  font-size: 12px;
}
.form_container a:hover {
  text-decoration: underline;
}
.checkbox {
  display: flex;
  column-gap: 8px;
  white-space: nowrap;
}
.checkbox input {
  accent-color: #7d2ae8;
}
.checkbox label {
  font-size: 12px;
  cursor: pointer;
  user-select: none;
  color: #0b0217;
}
.form_container .button {
  background: #7d2ae8;
  margin-top: 30px;
  width: 100%;
  padding: 10px 0;
  border-radius: 10px;
}
.login_signup {
  font-size: 12px;
  text-align: center;
  margin-top: 15px;
}
