:root {
  --mobile-width: 375px;
  --desktop-width: 1440px;

  --primary-bright-red: hsl(12, 88%, 59%);
  --hover: hsl(12, 88%, 75%);
  --shadow: hsl(12, 88%, 80%);
  --primary-dark-blue: hsl(228, 39%, 23%);
  --dark-grayish-blue: hsl(227, 12%, 61%);
  --very-dark-blue: hsl(233, 23%, 13%);
  --very-pale-red: hsl(13, 100%, 96%);
  --very-light-gray: hsl(0, 0%, 98%);

  --fs-body: 16px;
  --fs-header: 54px;
  --fs-subheader: 40px;
  --fs-header-mobile: var(--fs-800);

  --fs-300: 0.8125rem;
  --fs-400: 0.875rem;
  --fs-500: 0.9375rem;
  --fs-600: 1rem;
  --fs-700: 1.875rem;
  --fs-750: 2rem;
  --fs-800: 2.5rem;
  --fs-900: 3.5rem;

  --fs-body: var(--fs-400);
  --fs-primary-heading: var(--fs-800);
  --fs-secondary-heading: var(--fs-700);
  --fs-nav: var(--fs-500);
  --fs-button: var(--fs-300);

  --fw-400: 400;
  --fw-500: 500;
  --fw-700: 700;

  --ff-primary: "Be Vietnam Pro", sans-serif;

  --ff-body: var(--ff-primary);
  --ff-heading: var(--ff-primary);
}

/* utility classes */
.container {
  padding: 20px 100px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}
.bg-footer {
  background-color: var(--very-dark-blue);
}

.flex-basis-40 {
  flex-basis: 45%;
}

.narrow-width {
  width: 70%;
  margin: 10px 0;
  text-align: justify;
}

/* manual styling */
* {
  padding: 0;
  margin: 0;
  font-family: var(--ff-primary);
}
p {
  line-height: 1.5;
  margin: 20px 0;
}
body {
  color: var(--primary-dark-blue);
  overflow-x: hidden;
}
.container h1 {
  font-size: var(--fs-header);
  font-weight: var(--fw-700);
}
.container h2 {
  font-size: var(--fs-subheader);
  font-weight: var(--fw-700);
}
.container h4 {
  font-weight: var(--fw-700);
}
nav ul li {
  list-style: none;
  display: inline-block;
  margin: 0 10px;
}
nav ul li a {
  text-decoration: none;
  color: var(--primary-dark-blue);
  font-weight: var(--fw-700);
}
nav ul li a:hover {
  color: var(--dark-grayish-blue);
}
.illustration {
  width: 100%;
}
.close-icon,
.menu {
  display: none;
}
.btn {
  padding: 10px 30px;
  background-color: var(--primary-bright-red);
  outline: none;
  border: none;
  border-radius: 100vmax;
  color: var(--very-pale-red);
  box-shadow: 0 5px 10px var(--shadow);
  font-weight: var(--fw-700);
  cursor: pointer;
}
.btn:hover {
  background-color: var(--hover);
}
.side-list {
  display: flex;
  flex-direction: column;
}
.title-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.numbers {
  background: var(--primary-bright-red);
  padding: 0.5rem 1rem;
  border-radius: 2rem;
}
/* .title {
  grid-area: "title";
} */
.content {
  padding-left: 4rem;
}

/* .side-list .numbers {
  margin-right: 10px;
  background-color: var(--primary-bright-red);
  color: #fff;
  padding: 5px 14px;
  border-radius: 100vmax;
} */
/* .side-list > div {
  padding-top: 5px;
} */
/* carousel */
.carousel .container {
  display: flex;
  align-items: center;
  flex-direction: column;
}
.carousel-slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 0;
  text-align: center;
}
.card {
  display: none;
}
.card img {
  z-index: 2;
}
.card.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-basis: 45%;
  z-index: 1;
}

.slider-content {
  background-color: var(--very-light-gray);
  margin: -80px 10px 5px 0;
  padding: 100px 40px 10px;
  width: 450px;
  border-radius: 10px;
}
.dots {
  display: flex;
  width: 100px;
  height: 20px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.dot {
  background: transparent;
  border: 2px solid var(--primary-bright-red);
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dot.active {
  background-color: var(--primary-bright-red);
}
/* cta section */
.cta {
  background-color: var(--primary-bright-red);
  padding: 20px 0;
}
.cta .btn {
  background-color: var(--very-pale-red);
  color: var(--primary-bright-red);
  box-shadow: 0 5px 10px var(--primary-bright-red);
}
.cta .btn:hover {
  color: var(--hover);
}
.cta h2 {
  color: var(--very-pale-red);
  font-size: var(--fs-subheader);
}
.cta-wrapper {
  /* width: 199%; */
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px 10px;
  position: relative;
}
.cta-wrapper .cta-btn-div {
  display: flex;
  justify-content: flex-end;
}
footer {
  background-color: var(--very-dark-blue);
  padding: 20px 0;
  color: var(--very-pale-red);
}
footer .container {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  grid-template-rows: 1fr 1fr;
  grid-template-areas:
    "footer-logo footer-nav subscribe"
    "social footer-nav copyright";
  column-gap: 3rem;
  row-gap: auto;
}
footer .social-links {
  /* width: 100%; */
  display: flex;
  justify-content: space-between;
  grid-area: social;
  align-self: self-end;
}
footer .container .social-links a {
  text-decoration: none;
  outline: none;
}
.social-links a img:hover {
  color: var(--primary-bright-red);
}
.secondary-nav-links {
  position: relative;
  /* height: 100%; */
  display: flex;
  justify-content: space-between;
  grid-area: footer-nav;
}
.secondary-nav-links ul {
  display: flex;
  flex-direction: column;
  /* flex-wrap: wrap; */
  padding: 0 10px;
  gap: 30px;
}
.secondary-nav-links ul li {
  display: inline-block;
}

.secondary-nav-links ul li a {
  text-decoration: none;
  color: var(--very-pale-red);
}
.secondary-nav-links ul li a:hover {
  color: var(--primary-bright-red);
}
.subscribe {
  grid-area: subscribe;
}
.subscribe form input {
  background-color: var(--very-pale-red);
  height: 35px;
  outline: none;
  border: none;
  padding-left: 15px;
  border-radius: 100vmax;
  color: var(--primary-bright-red);
}
.subscribe form input:focus {
  border: 1px solid var(--primary-bright-red);
}
.subscribe form button {
  padding: 10px 15px;
  background-color: var(--primary-bright-red);
  outline: none;
  border: none;
  border-radius: 100vmax;
  color: var(--very-pale-red);
  /* box-shadow: 0 5px 10px var(--shadow); */
  font-weight: var(--fw-700);
  margin-left: 5px;
  cursor: pointer;
}
.footer-btn:hover {
  background-color: var(--hover);
}
.footer-logo-wrap {
  grid-area: footer-logo;
}
.copyright {
  grid-area: copyright;
  align-self: self-end;
}
.menu {
  display: none;
}
.element {
  position: absolute;
  top: -300px;
  right: -20px;
  background-color: var(--very-pale-red);
  width: 330px;
  height: 800px;
  border-radius: 100vmax;
  transform: rotate(45deg);
  z-index: -1;
}
.element.left {
  top: 130%;
  left: -300px;
}

/* for mobile screen */
@media (max-width: 48em) {
  html {
    overflow-x: hidden;
  }
  body {
    width: 100%;
    text-align: center;
    overflow-x: hidden;
  }
  .nav-btn {
    display: none;
  }
  header {
    position: relative;
  }
  nav {
    /* position: absolute;
    top: 0;
    right: 0; */
    display: flex;
  }
  nav ul {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    gap: 1.5rem;
    position: absolute;
    top: 70px;
    left: 2.5%;
    width: 95%;
    height: auto;
    padding-block: 20px;
    background: var(--very-light-gray);
    z-index: 4;
    border-radius: 10px;
  }
  nav ul.active {
    display: flex;
  }
  nav .cover {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(rgba(200, 200, 200, 0.6), rgba(0, 0, 0, 0.5));
    z-index: 3;
  }
  nav .cover.active {
    display: flex;
  }

  .close-icon {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 4;
  }
  .close-icon.active {
    display: flex;
  }

  .container {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }
  header .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .container {
    text-align: center;
  }
  h1,
  h2,
  p {
    text-align: center;
  }
  .menu {
    display: block;
  }
  .menu.active {
    display: none;
  }
  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }
  .hero .hero-content {
    text-align: center;
    & h1 {
      font-size: var(--fs-header-mobile);
    }
  }
  .about h2 {
    font-size: var(--fs-header-mobile);
  }
  .about div,
  .hero div {
    width: 85%;
    margin: 0 auto;
  }
  .title-wrap {
    background-color: var(--very-pale-red);
    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
  }
  .content {
    padding-left: 0;
    & p {
      text-align: left;
    }
  }

  .cta-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .carousel-slider {
    flex-direction: column;
  }
  .carousel-slider .flex-basis-40 {
    width: 375%;
  }
  .cta h2 {
    font-size: 30px;
  }
  .cta-wrapper .cta-btn-div {
    display: flex;
    justify-content: center;
  }
  footer {
    width: 100vw;
  }

  footer .container {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 2fr 4fr 2fr 2fr 1fr;
    grid-template-areas:
      "subscribe"
      "nav"
      "social"
      "footer-logo"
      "copyright";
    width: 85%;
    margin: 0 auto;
    /* align-items: center;
    justify-content: space-between; */
  }
  .subscribe {
    grid-area: subscribe;
  }
  .subscribe form {
    width: 100%;
    display: flex;
    & input {
      flex-basis: 90%;
    }
  }
  .social-links {
    grid-area: social;
    display: flex;
    width: 80%;
    margin: 0 auto;
    /* gap: 1rem; */
    justify-content: space-between;
  }
  .social-links a img {
    width: 35px;
    height: 35px;
  }
  .secondary-nav-links {
    max-width: 75%;
    grid-area: nav;
    display: flex;
    gap: 1rem;
    width: 100%;
    height: max-content;
    text-align: left;
    margin: 10px auto 5px;
  }
  .copyright {
    grid-area: copyright;
  }
  .footer-logo-wrap {
    grid-area: footer-logo;
  }
}
