/* ! General CSS */
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
:root {
  --primary-color: rgba(43, 99, 217, 1);
  --secondary-color: rgba(21, 27, 40, 1);
  --text-color: rgba(39, 45, 55, 1);
  --hintText_color: rgba(95, 109, 126, 1);
  --nav-bg: rgba(248, 249, 251, 1);
  --navBorder-color: rgba(234, 235, 240, 1);
  --input-bg: rgba(46, 53, 69, 1);
  font-family: Inter;
}
.w-100 {
  width: 100%;
}
.container {
  width: 90%;
  margin: auto;
}
.d-flex {
  display: flex;
  flex-wrap: wrap;
}
.space-between {
  justify-content: space-between;
}
.align-centre {
  align-items: center;
}

/* start hero-section */

.hero {
  background-color: var(--nav-bg);
}
.nav-bar {
  border-bottom: 0.0625rem solid var(--navBorder-color);
  position: relative;
}
.nav-bar > .container {
  padding-block: 1rem;
}
.nav-bar i {
  color: var(--text-color);
}
.nav-list-items,
.nav-buttons {
  display: none;
}
/* === DROP-DOWN BASE STYLES === */
.drop-downs {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background-color: var(--nav-bg);
  z-index: 1000;
}

/* === ACTIVE CLASS TO SHOW DROP-DOWN === */
.drop-downs.show {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

/* === DROP-DOWN LINKS === */
.drop-downs a {
  text-align: center;
  display: block;
  padding: 1rem;
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  letter-spacing: 0px;
  cursor: pointer;
  position: relative;
}

/* === UNDERLINE ANIMATION ON HOVER === */
.drop-downs a::after {
  content: "";
  position: absolute;
  left: 40%;
  right: 40%;
  bottom: 0.5rem;
  height: 2px;
  background-color: rgba(67, 126, 247, 1);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease;
}

.drop-downs a:hover::after {
  transform: scaleX(1);
}
.drop-downs a:hover {
  color: rgba(67, 126, 247, 1);
}
.hero__header {
  padding-block: 1.875rem;
}
.hero__header > .container {
  text-align: center;
}
.hero__header h1 {
  font-weight: 600;
  margin: auto;
  font-size: 2.25rem;
  width: 80%;
  line-height: 2.75rem;
  letter-spacing: -0.125rem;
  color: var(--text-color);
}
.hero__header span {
  display: block;
  font-weight: 600;
  margin-bottom: 2rem;
  font-size: 0.875rem;
  color: rgba(67, 126, 247, 1);
  line-height: 1.25rem;
  letter-spacing: -0.0063rem;
}

/* end hero-section */
/* start blog */
.blog {
  padding-block: 3rem;
}
.blog_item_header,
.blog-item {
  margin-bottom: 2rem;
}
.blog-img img,
.item-img img {
  height: 11.5625rem;
  object-fit: cover;
  border-radius: 0.9375rem;
  -webkit-border-radius: 0.9375rem;
  -moz-border-radius: 0.9375rem;
  -ms-border-radius: 0.9375rem;
  -o-border-radius: 0.9375rem;
}
.blog-img,
.item-img {
  margin-bottom: 1.5rem;
}
.blog_item_header h2,
.blog-item-info h2 {
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.75rem;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}
.blog_item_header p,
.blog-item-info p {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.5rem;
  color: var(--hintText_color);
  margin-bottom: 1rem;
  letter-spacing: -0.0063rem;
}
.blog_item_header span,
.blog-item-info span {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--hintText_color);
  line-height: 1.25rem;
}
/* end blog */
/* start subscribe */
.subscribe {
  background-color: var(--primary-color);
}
.subscribe > .container {
  padding-block: 1rem;
}
.subscribe-info h2 {
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 2.25rem;
  letter-spacing: -0.0313rem;
  margin-bottom: 1rem;
  color: white;
}
.subscribe-info p {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0063rem;
  color: rgba(177, 204, 251, 1);
  margin-bottom: 1.5rem;
}
.subscribe-submit form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.subscribe-submit input {
  padding: 0.9375rem 0.625rem;
  border: none;
  outline: none;
  border-radius: 0.3125rem;
  -webkit-border-radius: 0.3125rem;
  -moz-border-radius: 0.3125rem;
  -ms-border-radius: 0.3125rem;
  -o-border-radius: 0.3125rem;
  margin-bottom: 1rem;
}
.subscribe-submit input::placeholder {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  letter-spacing: -0.0063rem;
  color: var(--hintText_color);
}
.subscribe-submit button {
  background-color: rgba(67, 126, 247, 1);
  padding: 1.25rem 0;
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  border: none;
  border-radius: 0.3125rem;
  -webkit-border-radius: 0.3125rem;
  -moz-border-radius: 0.3125rem;
  -ms-border-radius: 0.3125rem;
  -o-border-radius: 0.3125rem;
}
.subscribe-submit > span {
  display: none;
}
/* end subscribe */
/* start blog-posts */
.blog-posts > .container {
  padding-block: 2rem;
}
.blog-posts h2 {
  font-weight: 700;
  color: var(--text-color);
  font-size: 1.5rem;
  line-height: 2rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.blog-post {
  margin-bottom: 2rem;
}
.blog-img {
  margin-bottom: 1rem;
}
.post-img > img {
  height: 13.1875rem;
  object-fit: cover;
  border-radius: 0.625rem;
  -webkit-border-radius: 0.625rem;
  -moz-border-radius: 0.625rem;
  -ms-border-radius: 0.625rem;
  -o-border-radius: 0.625rem;
}
.blog-post span {
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--hintText_color);
  line-height: 1.25rem;
  letter-spacing: -0.0063rem;
  margin-bottom: 0.5rem;
}
.blog-post h3 {
  font-weight: 600;
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.75rem;
}
.post-btn a {
  color: rgba(67, 126, 247, 1);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
}
.post-btn a i {
  margin-left: 0.375rem;
}
/* end blog-posts */
/* start register */
.register {
  background-color: var(--primary-color);
}
.register span {
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.25rem;
  letter-spacing: -0.0063rem;
  color: white;
  text-align: center;
  margin: auto;
  display: block;
  margin-bottom: 0.5rem;
}
.register h2 {
  font-weight: 600;
  font-size: 1.75rem;
  line-height: 2.25rem;
  text-align: center;
  color: white;
  margin-bottom: 1rem;
}
.register-btns {
  display: flex;
  flex-direction: column;
}
.register-sign {
  background-color: white;
  padding-block: 1.25rem;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: rgba(67, 126, 247, 1);
  border-radius: 0.375rem;
  -webkit-border-radius: 0.375rem;
  -moz-border-radius: 0.375rem;
  -ms-border-radius: 0.375rem;
  -o-border-radius: 0.375rem;
  margin-bottom: 1rem;
}
.register-login {
  background-color: rgba(67, 126, 247, 1);
  box-shadow: 0px 1px 2px 0px rgba(16, 24, 40, 0.04);

  padding-block: 1.25rem;
  border: none;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  color: white;
  border-radius: 0.375rem;
  -webkit-border-radius: 0.375rem;
  -moz-border-radius: 0.375rem;
  -ms-border-radius: 0.375rem;
  -o-border-radius: 0.375rem;
}
.register > .container {
  padding-block: 2rem;
}
/* end register */
/* start footer */
footer {
  background-color: var(--secondary-color);
  padding-block: 2rem;
}
.footer-img {
  margin-bottom: 1rem;
}
.footer-head p,
.resources > ul > li > a,
.choose-us > ul > li > a,
.company > ul > li > a {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0063rem;
  color: rgba(165, 172, 186, 1);
  margin-bottom: 1rem;
}
.footer-head {
  margin-bottom: 3.25rem;
  grid-column: 1 / -1;
}
.footer-form form {
  display: flex;
  align-items: flex-start;
}
.footer-form > form > input {
  width: 70%;
  padding: 1.25rem 0.625rem;
  border: none;
  outline: none;
  background-color: var(--input-bg);
  border-radius: 0.3125rem 0 0 0.3125rem;
  -webkit-border-radius: 0.3125rem 0 0 0.3125rem;
  -moz-border-radius: 0.3125rem 0 0 0.3125rem;
  -ms-border-radius: 0.3125rem 0 0 0.3125rem;
  -o-border-radius: 0.3125rem 0 0 0.3125rem;
}
.footer-form > form > input::placeholder {
  font-weight: 400;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  letter-spacing: -0.0063rem;
  color: var(--hintText_color);
}
.footer-form > form > button {
  width: 30%;
  padding-block: 16px;
  background-color: rgba(67, 126, 247, 1);
  color: white;
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.375rem;
  border: none;
  border-radius: 0 0.3125rem 0.3125rem 0;
  -webkit-border-radius: 0 0.3125rem 0.3125rem 0;
  -moz-border-radius: 0 0.3125rem 0.3125rem 0;
  -ms-border-radius: 0 0.3125rem 0.3125rem 0;
  -o-border-radius: 0 0.3125rem 0.3125rem 0;
}
.resources h3,
.choose-us h3,
.company h3 {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.5rem;
  letter-spacing: -0.0063rem;
  color: white;
  width: 100%;
  margin-bottom: 1.5rem;
}
.resources ul li,
.choose-us ul li,
.company ul li {
  margin-bottom: 0.75rem;
}
.footer-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  position: relative;
}
.resources,
.choose-us,
.company {
  margin-bottom: 1.5rem;
  align-self: stretch;
}
.footer-bottom {
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.25rem;
  text-align: center;
  letter-spacing: -0.0063rem;
  color: var(--hintText_color);
  margin-top: 1.5rem;
}

.footer-top::after {
  content: "";
  position: absolute;
  top: 99.9%;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--hintText_color);
}
/* end footer */
@media (min-width: 426px) and (max-width: 1023px) {
  /* start header */
  .hero__header {
    padding-block: 5.5rem;
  }
  .hero__header h1 {
    width: 50%;
  }
  .hero__header span {
    margin-bottom: 0;
  }
  /* end header */
  /* start blog */

  .blog-items {
    margin-block: 3rem;
  }
  .blog-img img {
    height: 18.6875rem;
  }
  .blog-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.0313rem;
  }
  .item-img {
    width: 30%;
  }
  .item-img img {
    height: 118px;
  }
  .blog-item-info {
    width: 67%;
  }
  .blog_item_header h2,
  .blog-item-info h2 {
    font-size: 1.375rem;
    line-height: 1.875rem;
  }
  .blog_item_header h2 {
    margin-bottom: 0.75rem;
  }
  .blog-item-info p,
  .blog_item_header p {
    width: 80%;
  }
  .blog-item-info p {
    line-height: 1.5rem;
    height: 3rem;
    overflow: hidden;
  }
  /* end blog */
  /* start subscribe */
  .subscribe-info h2 {
    width: 90%;
    font-size: 2rem;
    line-height: 2.625rem;
    letter-spacing: -0.0625rem;
  }
  .subscribe-info p {
    width: 75%;
    letter-spacing: -0.0063rem;
    margin-bottom: 2rem;
  }
  .subscribe-submit > form {
    flex-direction: row;
    align-items: flex-start;
  }
  .subscribe-submit input {
    width: 70%;
    border-radius: 0.3125rem 0 0 0.3125rem;
    -webkit-border-radius: 0.3125rem 0 0 0.3125rem;
    -moz-border-radius: 0.3125rem 0 0 0.3125rem;
    -ms-border-radius: 0.3125rem 0 0 0.3125rem;
    -o-border-radius: 0.3125rem 0 0 0.3125rem;
  }
  .subscribe-submit button {
    padding: 0.7188rem 0.9375rem;
    background-color: rgba(67, 126, 247, 1);
    border-radius: 0 0.3125rem 0.3125rem 0;
    -webkit-border-radius: 0 0.3125rem 0.3125rem 0;
    -moz-border-radius: 0 0.3125rem 0.3125rem 0;
    -ms-border-radius: 0 0.3125rem 0.3125rem 0;
    -o-border-radius: 0 0.3125rem 0.3125rem 0;
  }
  .subscribe-submit > span {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 20px;
    letter-spacing: -0.0063rem;
    color: rgba(177, 204, 251, 1);
  }
  /* end subscribe */
  /* start blog-posts */
  .posts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .blog-post {
    width: 48%;
  }
  .blog-posts h2 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 2rem;
  }
  .post-img img {
    height: 17.8125rem;
  }
  .blog-post h3 {
    font-size: 1.375rem;
    line-height: 1.875rem;
  }
  .blog-posts > .container {
    padding-block: 3rem;
  }
  .blog-post {
    margin-bottom: 6rem;
  }
  .deleted-post {
    display: none;
  }
  .post-p {
    height: 4.2rem;
    width: 90%;
    overflow: hidden;
  }
  /* end blog-posts */
  /* start register */
  .register h2 {
    font-size: 2rem;
    line-height: 2.625rem;
    margin-bottom: 2rem;
  }
  .register-btns {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: baseline;
  }
  .register-login,
  .register-sign {
    padding: 0.625rem 0.9375rem;
    margin-right: 1rem;
  }
  .register > .container {
    padding-block: 2.5rem;
  }
  /* end register */
  /* start footer */
  .footer-head {
    width: 98%;
  }
  .footer-form > form > button {
    width: 15%;
  }
  .footer-top {
    grid-template-columns: repeat(3, 1fr);
  }
  .resources {
    grid-column: 2;
  }
  .company {
    grid-row: 2;
    grid-column: 1;
  }
  footer {
    padding-block: 2.5rem;
  }
  .footer-bottom {
    margin-top: 2rem;
  }
  /* end footer */
}

@media (min-width: 1024px) {
  /* start header */
  .nav-list-items {
    display: flex;
  }
  .nav-list-items li {
    padding-inline: 0.625rem;
  }
  .nav-buttons {
    display: flex;
  }
  #nav_menu {
    display: none;
  }
  .nav-list-items li {
    text-align: center;

    padding: 1rem;

    position: relative;
  }
  .drop-downs a {
    display: none;
  }
  .hero__header {
    opacity: 1;
  }
  .nav-list-items li a {
    color: var(--text-color);
    display: block;
    font-weight: 600;
    font-size: 0.9375rem;

    line-height: 1.375rem;
    letter-spacing: 0px;
  }
  .nav-list-items li a > i {
    margin-left: 0.625rem;
  }
  .nav-list-items li a:hover {
    color: rgba(67, 126, 247, 1);
  }
  .nav-list-items li a:hover i {
    color: rgba(67, 126, 247, 1);
  }
  .nav-list-items li :hover::after {
    content: "";
    position: absolute;
    top: 95%;
    bottom: 0;
    left: 10%;
    right: 10%;
    background-color: rgba(67, 126, 247, 1);
  }
  .nav-signup {
    color: rgba(67, 126, 247, 1);
    background-color: transparent;
    padding: 0.625rem;
    margin-left: 0.625rem;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.375rem;
    letter-spacing: 0;
    cursor: pointer;
  }
  .nav-login {
    color: white;
    background-color: var(--primary-color);
    padding: 0.625rem;
    border: 0.0625rem solid transparent;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.9375rem;
    line-height: 1.375rem;
    letter-spacing: 0;
    border-radius: 0.375rem;
    -webkit-border-radius: 0.375rem;
    -moz-border-radius: 0.375rem;
    -ms-border-radius: 0.375rem;
    -o-border-radius: 0.375rem;
  }
  .hero__header h1 {
    width: 30%;
  }
  .hero__header span {
    margin-bottom: 1rem;
  }
  /* end header */
  .switch {
    display: grid;
  }
  /* start blog */

  .blog-items {
    padding-top: 4rem;
    order: 2;
  }
  .blog-items > .container {
    display: flex;
    justify-content: space-between;
  }
  .blog_item_header {
    width: 50%;
  }
  .blog_item_header h2,
  .blog-item-info h2 {
    font-size: 1.375rem;
    line-height: 1.875rem;
  }
  .blog_item_header h2 {
    margin-bottom: 1rem;
  }
  .blog-item-info p,
  .blog_item_header p {
    width: 80%;
    margin-bottom: 0.3125rem;
  }
  .blog-item-info p {
    line-height: 1.5rem;
    height: 3rem;
    overflow: hidden;
  }

  .blog-list_items {
    width: 48%;
  }
  .blog-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
  }
  .item-img {
    width: 30%;
  }
  .blog-item-info {
    width: 67%;
  }
  .item-img img {
    height: 7.375rem;
  }
  .blog-img img {
    height: 13.125rem;
  }
  /* end blog */
  /* start subscribe */
  .subscribe > .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-block: 4rem;
  }
  .subscribe-info {
    width: 55%;
  }
  .subscribe-submit {
    width: 35%;
  }
  .subscribe-info h2 {
    font-size: 2rem;
    line-height: 2.625rem;
    letter-spacing: -0.0625rem;
  }
  .subscribe-info p {
    letter-spacing: -0.0063rem;
    margin-bottom: 1.5rem;
  }
  .subscribe-submit > form {
    flex-direction: row;
    align-items: flex-start;
  }
  .subscribe-submit input {
    width: 80%;
    border-radius: 0.3125rem 0 0 0.3125rem;
    -webkit-border-radius: 0.3125rem 0 0 0.3125rem;
    -moz-border-radius: 0.3125rem 0 0 0.3125rem;
    -ms-border-radius: 0.3125rem 0 0 0.3125rem;
    -o-border-radius: 0.3125rem 0 0 0.3125rem;
  }
  .subscribe-submit button {
    padding: 0.7188rem 0.9375rem;
    background-color: rgba(67, 126, 247, 1);
    border-radius: 0 0.3125rem 0.3125rem 0;
    -webkit-border-radius: 0 0.3125rem 0.3125rem 0;
    -moz-border-radius: 0 0.3125rem 0.3125rem 0;
    -ms-border-radius: 0 0.3125rem 0.3125rem 0;
    -o-border-radius: 0 0.3125rem 0.3125rem 0;
  }
  .subscribe-submit > span {
    font-weight: 400;
    font-size: 0.875rem;
    line-height: 20px;
    letter-spacing: -0.0063rem;
    color: rgba(177, 204, 251, 1);
  }
  .subscribe {
    order: 1;
  }

  /* end subscribe */
  /* start blog-posts */
  .posts-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .blog-post {
    width: 32%;
  }
  .blog-posts h2 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
  }
  .blog-posts > .container > h2::after {
    content: "";
    position: absolute;
    top: 90%;
    right: 44.3%;
    left: 43.5%;
    bottom: 0;
    transform: translateY(1.125rem);
    background-color: rgba(217, 217, 217, 1);
    -webkit-transform: translateY(1.125rem);
    -moz-transform: translateY(1.125rem);
    -ms-transform: translateY(1.125rem);
    -o-transform: translateY(1.125rem);
  }
  .posts-list {
    margin-top: 2.5625rem;
  }
  .post-img img {
    height: 17.8125rem;
  }
  .blog-post h3 {
    font-size: 1.375rem;
    line-height: 1.875rem;
  }
  .blog-post {
    margin-bottom: 3rem;
  }
  .post-p {
    height: 4.2rem;
    width: 85%;
    overflow: hidden;
  }
  .blog-posts > .container {
    padding-block: 4rem;
  }
  /* end blog-posts */
  /* start register */
  .register h2 {
    font-size: 2rem;
    line-height: 2.625rem;
    width: 70%;
    margin: auto;
    margin-bottom: 2rem;
  }
  .register-btns {
    flex-direction: row;
    justify-content: center;
  }
  .register-login {
    display: none;
  }
  .register-sign {
    padding: 0.625rem 0.9375rem;
  }
  .register > .container {
    padding-block: 64;
  }
  /* end register */
  /* start footer  */
  .footer-top {
    grid-template-columns: repeat(5, 1fr);
  }
  .footer-head {
    width: 80%;
    grid-column: 1/3;
  }
  .choose-us {
    grid-column: 3;
  }
  .resources {
    grid-row: 1;
    grid-column: 4;
  }
  .company {
    grid-row: 1;
    grid-column: 5;
  }
  footer {
    padding-block: 4rem;
  }
  .footer-bottom {
    margin-top: 2rem;
  }
  /* end footer */
}
