.has-fade {
  visibility: hidden;
}

@keyframes fade-in {
  from {
    visibility: hidden;
    opacity: 0;
  }
  1% {
    visibility: visible;
    opacity: 0;
  }
  to {
    visibility: visible;
    opacity: 1;
  }
}
.fade-in {
  animation: fade-in 0.3s ease-in-out forwards;
}

@keyframes fade-out {
  from {
    visibility: visible;
    opacity: 1;
  }
  99% {
    visibility: visible;
    opacity: 0;
  }
  to {
    visibility: hidden;
    opacity: 0;
  }
}
.fade-out {
  animation: fade-out 0.3s ease-in-out forwards;
}

html {
  font-size: 100%;
  box-sizing: border-box;
}

*,
*::before {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: "Public Sans", serif;
  font-size: 18px;
  font-weight: 300;
  color: hsl(233, 8%, 62%);
  line-height: 1.3;
  min-height: 200vh;
  overflow-x: hidden;
}
body.noscroll {
  overflow: hidden;
}
@media (min-width: 64em) {
  body {
    font-size: 1.125rem;
  }
}

a,
a:visited,
a:hover {
  text-decoration: none;
}

h1, h2, h3 {
  margin-top: 0;
  font-weight: 300;
  color: hsl(233, 26%, 24%);
  line-height: 1, 15;
}

h1 {
  font-size: 2.31rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 64em) {
  h1 {
    font-size: 3.25rem;
  }
}

p {
  line-height: 1.68rem;
  margin-bottom: 2.25rem;
}

h2 {
  margin-bottom: 1.5625rem;
  font-size: 1.875rem;
  font-weight: 400;
}
@media (min-width: 64em) {
  h2 {
    font-size: 2.25rem;
    margin-bottom: 2.25rem;
  }
}

.flex {
  display: flex;
}
.flex-jc-sb {
  justify-content: space-between;
}
.flex-jc-c {
  justify-content: center;
}
.flex-ai-c {
  align-items: center;
}

.container {
  max-width: 69.375rem;
  margin: 0 auto;
}
.container--py {
  padding-top: 2.25rem;
  padding-bottom: 2.25rem;
}
.container--px {
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}
.container--pt {
  padding-top: 2.25rem;
}
.container--pb {
  padding-bottom: 2.25rem;
}
.container--pr {
  padding-right: 1.5rem;
}
.container--pl {
  padding-left: 1.5rem;
}
.container--pall {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-bottom: 4.375rem;
  padding-top: 4.375rem;
}
@media (min-width: 64em) {
  .container--pall {
    padding-top: 6rem;
    padding-bottom: 3rem;
  }
}

.button,
button {
  display: inline-block;
  padding: 0.875rem 1.875rem;
  color: hsl(0, 0%, 100%);
  background: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
  font-size: 0.875rem;
  border: 0;
  color: hsl(0, 0%, 100%);
  font-weight: 400;
  cursor: pointer;
  border-radius: 50px;
  transition: opacity 0.3s ease-in-out;
}
.button:hover,
button:hover {
  opacity: 0.75;
}

/*! media query start */
@media (max-width: 63.9375em) {
  .hide-for-mobile {
    display: none;
  }
}

@media (min-width: 64em) {
  .hide-for-desktop {
    display: none;
  }
}

/*! media query end */
.copy {
  font-size: 1rem;
  text-align: center;
  color: #000;
  padding: 1rem;
}
.copy a {
  color: hsl(161.13, 100%, 29.6%);
  font-weight: 500;
}
.copy span {
  color: red;
  font-size: 1.35rem;
  padding: 0.4rem;
}

/*! header style */
.header.open .header__toggle > span:first-child {
  transform: rotate(45deg);
}
.header.open .header__toggle > span:nth-child(2) {
  opacity: 0;
}
.header.open .header__toggle > span:last-child {
  transform: rotate(-45deg);
}
.header .overlay {
  background-image: linear-gradient(hsl(233, 26%, 24%), transparent);
  position: fixed;
  top: 0;
  z-index: 100;
  right: 0;
  left: 0;
  bottom: 0;
}
.header nav {
  position: relative;
  padding-top: 1.065rem;
  background-color: white;
  z-index: 101;
  padding-bottom: 1.065rem;
}
.header__logo img {
  width: 8.8125rem;
  height: 1.375rem;
}
.header__toggle > span {
  display: block;
  width: 26px;
  height: 2px;
  background-color: hsl(233, 26%, 24%);
  transition: 0.5s ease-in-out;
  transform-origin: 3px 1px;
  z-index: 1;
}
.header__toggle > span:not(:last-child) {
  margin-bottom: 5px;
}
.header__links {
  padding: 17px 1.5rem;
}
.header__links a {
  font-size: 0.875rem;
  color: hsl(233, 8%, 62%);
  transition: 0.5s ease-in-out;
  transition: color 0.2s ease-in-out;
  position: relative;
}
.header__links a:not(:last-child) {
  margin-right: 32px;
}
.header__links a:hover {
  color: hsl(233, 26%, 24%);
}
.header__links a:hover::before {
  width: 100%;
  opacity: 1;
}
.header__links a::before {
  position: absolute;
  content: "";
  display: block;
  left: 0;
  width: 0;
  right: 0;
  height: 5px;
  bottom: -30px;
  background: linear-gradient(to right, hsl(136, 65%, 51%), hsl(192, 70%, 51%));
  opacity: 0;
  transition: 0.3s ease-in-out;
}
.header__menu {
  background: hsl(0, 0%, 100%);
  padding: 1.625rem;
  margin-top: 1.5rem;
  border-radius: 3px;
  position: absolute;
  width: calc(100% - 3rem);
  left: 50%;
  z-index: 101;
  transform: translateX(-50%);
}
.header__menu a {
  display: block;
  padding: 0.625rem;
  color: hsl(233, 26%, 24%);
  text-align: center;
}

/*! end header style */
/*! hero style */
.hero {
  background-color: hsl(0, 0%, 98%);
}
@media (min-width: 64em) {
  .hero .container {
    display: flex;
    align-items: center;
  }
}
.hero__image {
  position: relative;
  background-image: url("https://mouadbimk.github.io/Landing-page-easy-bank/images/bg-mobile.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  min-height: 17.5rem;
}
@media (min-width: 40em) {
  .hero__image {
    min-height: 25rem;
    background-position: center 60%;
  }
}
@media (min-width: 64em) {
  .hero__image {
    flex: 3;
    order: 2;
    height: 41rem;
    background-image: none;
  }
}
@media (min-width: 64em) {
  .hero__image::before {
    content: "";
    position: absolute;
    height: 100%;
    background-image: url("https://mouadbimk.github.io/Landing-page-easy-bank/images/bg-desktop.svg");
    background-repeat: no-repeat;
    width: 150%;
    background-size: 122%;
    background-position: 0% 83%;
  }
}
.hero__image::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url("https://mouadbimk.github.io/Landing-page-easy-bank/images/image-mockups.png");
  background-size: 93%;
  background-repeat: no-repeat;
  background-position: center bottom;
}
@media (min-width: 40em) {
  .hero__image::after {
    background-size: 52%;
  }
}
@media (min-width: 64em) {
  .hero__image::after {
    width: 120%;
    height: 122%;
    background-size: 94%;
    background-position: center 150%;
    left: 22%;
  }
}
.hero__text {
  text-align: center;
}
@media (min-width: 64em) {
  .hero__text {
    flex: 2;
    order: 1;
    text-align: left;
  }
}

/*! end hero style */
/*! features style*/
.features {
  background-color: hsl(220, 16%, 96%);
  text-align: center;
}
@media (min-width: 64em) {
  .features {
    text-align: left;
  }
}

@media (min-width: 40em) {
  .feature__grid {
    display: flex;
    flex-wrap: wrap;
  }
}
.feature__item {
  padding: 0.9378rem;
}
@media (min-width: 40em) {
  .feature__item {
    flex: 1 0 50%;
  }
}
@media (min-width: 64em) {
  .feature__item {
    flex: 1;
  }
}
.feature__icon {
  margin-bottom: 1.875rem;
}
@media (min-width: 64em) {
  .feature__icon {
    margin-bottom: 2.75rem;
  }
}
.feature__title h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (min-width: 64em) {
  .feature__title h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }
}
.feature__description p {
  font-size: 1rem;
  line-height: 1.5;
}
.feature__intro {
  margin-bottom: 3.75rem;
}
@media (min-width: 64em) {
  .feature__intro {
    max-width: 60%;
  }
}

/*! end features style*/
/*! articles style */
.articles {
  background-color: hsl(0, 0%, 98%);
}

.article__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.875rem;
}
@media (min-width: 40em) {
  .article__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 64em) {
  .article__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.article__text {
  padding: 1.875rem 1.875rem 2.5rem 1.875rem;
  background-color: hsl(0, 0%, 100%);
  color: hsl(233, 8%, 62%);
}
@media (min-width: 40em) {
  .article__text {
    padding: 1.875rem 1.5625rem;
  }
}
.article__item {
  border-radius: 0.3125rem;
  overflow: hidden;
  box-shadow: 0px 3px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease-in-out;
}
.article__item:hover {
  transform: scale(1.05);
}
.article__image {
  height: 12.5rem;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.article__author {
  font-size: 0.625rem;
  margin-bottom: 0.8rem;
}
.article__title {
  font-size: 1.0625rem;
  line-height: 1.2;
  color: hsl(233, 26%, 24%);
  margin-bottom: 0.8rem;
}
.article__title:hover > h3 {
  transition: all 0.18s ease-in-out;
  color: hsl(192, 70%, 51%);
}
.article__description p {
  font-size: 0.8125rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/*! end articles style */
/*! footer style */
.footer {
  background-color: hsl(233, 26%, 24%);
  color: hsl(0, 0%, 100%);
  padding: 2.5rem;
  text-align: center;
}
@media (min-width: 64em) {
  .footer .container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 3fr;
    grid-template-rows: 1fr auto;
    grid-template-areas: "logo links1 links2 cta" "social links1 links2 copyright";
    justify-items: start;
    gap: 1rem;
  }
}
.footer a {
  color: hsl(0, 0%, 100%);
}
.footer__logo {
  display: inline-block;
}
@media (max-width: 63.9375em) {
  .footer__logo {
    margin-bottom: 1.875rem;
  }
}
@media (min-width: 64em) {
  .footer__logo {
    grid-area: logo;
  }
}
@media (max-width: 63.9375em) {
  .footer__social {
    margin-bottom: 1.875rem;
  }
}
@media (min-width: 64em) {
  .footer__social {
    grid-area: social;
    align-self: end;
  }
}
.footer__social a {
  display: inline-block;
  height: 1.25rem;
}
.footer__social a svg path {
  transition: fill 0.2s ease-in-out;
}
.footer__social a:hover svg path {
  fill: hsl(161.13, 70%, 51%);
}
.footer__social a:not(:last-child) {
  margin-right: 1rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9325rem;
}
@media (min-width: 64em) {
  .footer__links {
    align-items: start;
    justify-content: space-between;
  }
}
@media (min-width: 64em) {
  .footer__links.col1 {
    grid-area: links1;
  }
}
.footer__links.col2 {
  margin-bottom: 1.875rem;
}
@media (min-width: 64em) {
  .footer__links.col2 {
    grid-area: links2;
    margin-bottom: 0;
  }
}
.footer__links a {
  transition: all 0.2s ease-in-out;
}
@media (max-width: 63.9375em) {
  .footer__links a {
    line-height: 2.25;
  }
}
.footer__links a:hover {
  color: hsl(161.13, 70%, 51%);
}
@media (min-width: 64em) {
  .footer__cta {
    grid-area: cta;
    justify-self: right;
  }
}
@media (max-width: 63.9375em) {
  .footer__cta a.button {
    margin-bottom: 1.875rem;
  }
}
.footer__copyright {
  font-size: 0.8125rem;
}
@media (min-width: 64em) {
  .footer__copyright {
    grid-area: copyright;
    align-self: end;
    justify-self: end;
    color: hsl(233, 8%, 62%);
    margin-top: 1.5625rem;
  }
}

/*! end footer style *//*# sourceMappingURL=style.css.map */
