/* Basic Style */
:root {
  --padding: 0 2rem;
  --padding-horizontal-tertiary: 0 5rem;
  --padding-vertical-primary: 10rem 0;
  --padding-vertical-tertiary: 5rem 0;
  --padding-horizontal-secondary: 0 10rem;
  --margin-horizontal-secondary: 0 10rem;
  --margin-all-primary: 10rem;
  --margin-all-tertiary: 5rem;
  --background-color-primary: hsl(0, 0%, 98%);
  --background-color-secondary: hsl(220, 16%, 96%);
}
html {
  font-size: 62.5%;
}

body {
  font-family: "Public Sans", sans-serif;
  margin: 0;
}

p {
  color: hsl(0, 0%, 60%);
}

span {
  margin: 0.5rem;
}

.container {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color-primary);
}

.btn {
  padding: 10px 30px;
  border-radius: 30px;
  border: none;
  color: white;
  background: linear-gradient(to left, hsl(192, 70%, 51%), hsl(136, 65%, 51%));
  margin: 2rem;
}

.btn:hover {
  filter: grayscale(50%);
  cursor: pointer;
}

.btn__header {
  display: none;
}

@media screen and (min-width: 1024px) {
  /* Basic Styles */
  p {
    color: hsl(0, 0%, 60%);
    font-size: 1.7rem;
    line-height: 1.5;
  }

  h1 {
    font-size: 5rem;
    margin: 0;
  }

  h3 {
    font-size: 2rem;
  }

  .container {
    background-color: hsl(220, 16%, 96%);
  }

  .btn {
    padding: 10px 30px;
    border-radius: 30px;
    border: none;
    color: white;
    background: linear-gradient(
      to left,
      hsl(192, 70%, 51%),
      hsl(136, 65%, 51%)
    );
    margin: 0;
  }

  .btn:hover {
    filter: grayscale(50%);
    cursor: pointer;
  }

  .btn__header {
    display: block;
  }
}

@media screen and (min-width: 768px) {
  /* Basic Styles */
  p {
    color: hsl(0, 0%, 60%);
    font-size: 1rem;
    line-height: 0.5;
  }

  h1 {
    font-size: 3rem;
    margin: 0;
  }

  h3 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 10px 30px;
    border-radius: 30px;
    border: none;
    color: white;
    background: linear-gradient(
      to left,
      hsl(192, 70%, 51%),
      hsl(136, 65%, 51%)
    );
    margin: 0;
  }

  .btn__header {
    display: block;
  }
}

/* List */
.list {
  list-style: none;
  padding-left: 0;
  margin: 2rem;
}

.list .list__item {
  list-style: none;
  margin-bottom: 2rem;
}

@media screen and (min-width: 768px) {
  /* List */
  .list {
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
  }

  .list--inline .list__item {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    margin-right: 1rem;
  }
}

@media screen and (min-width: 1024px) {
  /* List */
  .list {
    margin-bottom: 0;
    list-style: none;
    padding-left: 0;
  }

  .list--inline .list__item {
    list-style: none;
    padding-left: 0;
    display: inline-block;
    margin-right: 2.5rem;
  }
}

/* Links */
.list__item a {
  text-decoration: none;
  color: #000;
}

.list__item a:hover {
  text-decoration: underline;
}

.footer .list__item a {
  color: #fff;
}

@media screen and (min-width: 1024px) {
  /* Links */
  .list__item a {
    text-decoration: none;
    color: #999;
  }

  .list__item a:hover {
    color: #000;
    border-bottom: 3px solid hsl(136, 65%, 51%);
    text-decoration: none;
    padding-bottom: 3rem;
  }
}

@media screen and (min-width: 768px) {
  /* Links */
  .list__item a {
    text-decoration: none;
    color: #999;
  }

  .list__item a:hover {
    color: #000;
    border-bottom: 3px solid hsl(136, 65%, 51%);
    text-decoration: none;
    padding-bottom: 3rem;
  }
}

/* Nextgen */

.nextgen-article {
  display: flex;
  flex-direction: row;
  text-align: center;
  padding-bottom: 6rem;
  margin-top: 5rem;
}

.nextgen__content {
  padding: var(--padding);
}

.nextgen__image {
  display: none;
}

.nextgen {
  position: relative;
  grid-column: 1 / 5;
}

.nextgen__image {
  position: absolute;
  width: 50%;
  left: 60%;
  top: -11%;
  z-index: -1;
  display: block;
}

@media screen and (min-width: 768px) {
  /* Next Gen */
  .nextgen-article {
    background-color: var(--background-color-primary);
    background-image: url(./images/bg-intro-desktop.svg);
    background-position: 230%;
    background-repeat: no-repeat;
    background-size: 80%;
    display: grid;
    grid-template-columns: auto 50%;
    margin-top: 0;
    position: relative;
    padding-left: 5rem;
    padding-bottom: 0;
  }

  .nextgen-article p:first-of-type {
    font-size: 1.5rem;
  }

  .nextgen__content {
    padding-right: 4rem;
    margin: 5rem 0;
    text-align: start;
  }

  .nextgen__image {
    position: absolute;
    width: 50%;
    left: 58%;
    top: -15%;
    display: block;
    z-index: 9;
  }
}

@media screen and (min-width: 1024px) {
  /* Next Gen */
  .nextgen-article {
    background-color: var(--background-color-primary);
    background-image: url(./images/bg-intro-desktop.svg);
    background-position: 230% 60%;
    background-repeat: no-repeat;
    background-size: 80%;
    display: grid;
    grid-template-columns: auto 50%;
    margin-top: 0;
    position: relative;
    padding: 0 0 0 10rem;
  }

  .nextgen-article p:first-of-type {
    font-size: 2rem;
  }

  .nextgen__content {
    padding: 0 8rem 0 0;
    margin: 16rem 0;
    text-align: start;
  }

  .nextgen__image {
    position: absolute;
    width: 50%;
    left: 58%;
    top: -25%;
    display: block;
    z-index: 9;
  }
}

@media screen and (min-width: 1441px) {
  /* Extremly wide screean */
  .nextgen__image {
    position: absolute;
    width: 700px;
    left: 60%;
    top: -25%;
    display: block;
    z-index: 9;
  }
}

.easybank-article {
  text-align: center;
  padding: var(--padding);
  background-color: hsl(220, 16%, 96%);
  padding-bottom: 4rem;
}

.easybank__content {
  margin-top: 4rem;
}

.easybank__svg {
  width: 5rem;
  margin-top: 1rem;
}

.easybank__heading {
  margin: 1.5rem;
}

@media screen and (min-width: 768px) {
  /* Easybank */
  .easybank-article {
    text-align: start;
    display: grid;
    grid-template-columns: repeat(2 50%);
    grid-template-rows: repeat(2 50%);
    margin: 0 5rem;
    padding: var(--padding-vertical-tertiary);
  }

  .easybank__intro p:first-of-type {
    font-size: 1.5rem;
  }

  .easybank__content {
    display: flex;
    grid-column: 1 / 3;
  }

  .easybank__title {
    margin: 0;
  }

  .easybank__card {
    margin-right: 2rem;
  }

  .easybank__heading {
    margin: 1.5rem 0;
  }
}

@media screen and (min-width: 1024px) {
  /* Easybank */
  .easybank-article {
    text-align: start;
    display: grid;
    grid-template-columns: repeat(2 50%);
    grid-template-rows: repeat(2 50%);
    margin: 0 10rem;
    padding: 10rem 0;
  }

  .easybank__intro p:first-of-type {
    font-size: 2rem;
  }

  .easybank__content {
    display: flex;
    grid-column: 1 / 3;
  }

  .easybank__title {
    margin: 0;
  }

  .easybank__card {
    margin-right: 2rem;
  }

  .easybank__heading {
    margin: 1.5rem 0;
  }
}

/* Latest Article */

.latest-article {
  padding: var(--padding);

}

.latest-article__card {
  border-radius: 1rem;
  margin-bottom: 3rem;
  background-color: white;
}

.latest-article__heading {
  text-align: center;
}

.latest-article__image {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  width: 100%;
}

.latest-article__author {
  margin-bottom: 0;
  margin-top: 0;
  font-size: 1rem;
}

.latest-article__title {
  margin-top: 1rem;
}

.latest-article__content {
  padding: 2rem;
}

@media screen and (min-width: 768px) {
  /* Latest Article */

  .latest-article {
    padding-top: 1rem;
    background-color: var(--background-color-primary);
  }

  .latest-article__heading {
    text-align: left;
    margin: var(--margin-all-tertiary);
    margin-bottom: 5rem;
  }

  .latest-article__image {
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
    width: 100%;
    height: 20%;
  }

 

  .latest-article__articles {
    display: flex;
    margin: var(--margin-all-tertiary);
    margin-top: 5rem;
    justify-content: center;
  }

  .latest-article__card {
    width: 15rem;
    margin-right: 2rem;
  }

  .article-image__caption {
    width: 18.8rem;
    font-size: 1rem;
    padding-right: 1rem;
    margin-left: 1rem;
  }

  .article-flex {
    display: flex;
    flex-direction: column;
  }

  .article-header {
    font-size: 3.2rem;
    padding-top: 2rem;
    white-space: nowrap;
    margin-left: 3rem;
  }

  .testimony-img {
    border-radius: 5rem;
    margin-top: 0;
    object-fit: cover;
    width: 34rem;
  }

  .testimony-text {
    margin-left: 0.5rem;
  }

  .text-overlay {
    position: absolute;
    padding-left: 1rem;
    padding-top: 1rem;
  }
}
@media screen and (min-width: 1024px) {
  /* Latest Article */

  .latest-article {
    padding-top: 1rem;
    background-color: var(--background-color-primary);
  }

  .latest-article__heading {
    text-align: left;
    margin: var(--margin-all-primary);
    margin-bottom: 5rem;
  }

  .latest-article__image {
    width: 100%;
    height: 30rem;
  }

  .latest-article__articles {
    display: flex;
    margin: var(--margin-all-primary);
    margin-top: 5rem;
  }

  .latest-article__card {
    height: 100%;
    width: 100%;
  }

  .article-image__caption {
    width: 18.8rem;
    font-size: 1rem;
    padding-right: 1rem;
    margin-left: 1rem;
  }

  .article-flex {
    display: flex;
    flex-direction: column;
  }

  .article-header {
    font-size: 3.2rem;
    padding-top: 2rem;
    white-space: nowrap;
    margin-left: 3rem;
  }

  .testimony-img {
    border-radius: 5rem;
    margin-top: 0;
    object-fit: cover;
    width: 34rem;
  }

  .testimony-text {
    margin-left: 0.5rem;
  }

  .text-overlay {
    position: absolute;
    padding-left: 1rem;
    padding-top: 1rem;
  }
}

/* Footer */
.footer {
  background-color: hsl(233, 26%, 24%);
  text-align: center;
  color: #fff;
  margin-top: 5rem;
  padding: 2rem;
}

.footer__logo {
  margin: 2rem;
}

.footer a {
  color: white;
}

.social-icon {
  font-size: 1rem;
}

.social-icon:hover {
  color:hsl(136, 65%, 51%);
}

.testimony-img {
  height: 15rem;
  margin-top: 0;
  object-fit: cover;
  width: 19rem;
  margin-right: 0.1rem;
}

@media screen and (min-width: 768px) {
  /* Footer */

  .footer-container {
    background-color: hsl(233, 26%, 24%);
    display: grid;
    grid-template-columns: 25% 50% 25%;
    margin: 1rem 5rem;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  .footer__logo {
    padding-bottom: 3rem;
    margin: 0;
    width: 10rem;
  }

  .social-icon {
    width: 1.5rem;
  }

  .list__footer {
    column-count: 2;
    column-gap: 0.5rem;
    text-align: start;
  }

  .list__footer .list {
    margin: 0;
  }
  
  .list__footer .list__item a:hover {
    border-bottom: none;
    color: hsl(136, 65%, 51%);
  }

  .btn__footer {
    display: block;
    margin-bottom: 1.4rem;
  }

  .copyright {
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: end;
  }

  .copyright p {
    margin: 0;
  }
}
@media screen and (min-width: 1024px) {
  /* Footer */
  .footer-container {
    background-color: hsl(233, 26%, 24%);
    display: grid;
    grid-template-columns: 25% 50% 25%;
    margin: 3rem 10rem;
  }

  .logo-container {
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  .footer__logo {
    padding-bottom: 5rem;
    margin: 0;
  }

  .social-icon {
    width: 2.5rem;
  }

  .btn__footer {
    display: block;
    margin-bottom: 1.4rem;
  }

  .copyright {
    text-align: end;
    display: flex;
    flex-direction: column;
    align-items: end;
  }
}

/* Collapsibles */
.collapsible {
  position: relative;
}

.collapsible__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 8rem;
  padding: var(--padding);
  background-color: white;
  position: relative;
  z-index: 99;
}

.collapsible__logo,
.collapsible__close,
.collapsible__hamburger {
  height: 2rem;
}

.collapsible__inline {
  display: none;
}

.collapsible__hamburger {
  display: block;
  width: 2.5rem;
}

.collapsible__close {
  display: none;
}

.collapsible__block {
  background-color: #fff;
  border-radius: 1rem;
  box-shadow: 0 10rem 25rem hsla(0, 0%, 0%, 0.5);
  left: 10%;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding: 1rem;
  position: absolute;
  text-align: center;
  top: 30%;
  transition: all 0.3s;
  width: 75%;
  z-index: 99;
}

.collapsible__bg-mobile {
  width: 100%;
  height: 30rem;
  display: block;
}

.collapsible__image {
  display: block;
  position: absolute;
  width: 100%;
  transform: translate(0%, -95%);
}

.collapsible--expanded .collapsible__hamburger {
  display: none;
}

.collapsible--expanded .collapsible__close {
  display: block;
}

.collapsible--expanded .collapsible__block {
  max-height: 100vh;
  opacity: 1;
}

.collapsible--expanded .collapsible__image {
  display: none;
}

@media screen and (min-width: 768px) {
  /* Collapsibles */

  .collapsible {
    grid-column: 1 / 5;
    z-index: 999;
    background-color: white;
  }

  .collapsible__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
    padding: var(--padding-horizontal-tertiary);
  }

  .collapsible__inline {
    display: block;
  }

  .collapsible__hamburger {
    display: none;
  }

  .collapsible__close {
    display: none;
  }

  .collapsible--expanded .collapsible__close {
    display: none;
  }

  .collapsible__block {
    display: none;
  }

  .collapsible__bg-mobile {
    display: none;
  }

  .collapsible__image {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  /* Collapsibles */

  .collapsible {
    grid-column: 1 / 5;
    z-index: 999;
    background-color: white;
  }

  .collapsible__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 8rem;
    padding: 0 10rem;
  }

  .collapsible__inline {
    display: block;
  }

  .collapsible__hamburger {
    display: none;
  }

  .collapsible__close {
    display: none;
  }

  .collapsible--expanded .collapsible__close {
    display: none;
  }

  .collapsible__block {
    display: none;
  }

  .collapsible__bg-mobile {
    display: none;
  }

  .collapsible__image {
    display: none;
  }
}

/* Typography */
p {
  font-size: 1.4rem;
  line-height: 2;
}

h1 {
  font-size: 4rem;
  margin: 0;
}

h2 {
  font-size: 3.5rem;
  margin-top: 5rem;
}

h1,
h2,
h3,
h4 {
  font-weight: 300;
}

@media screen and (min-width: 768px) {
  /* Typography */
  .list {
    font-size: 1rem;
  }

  .copyright p {
    font-size: 1rem;
  }

 
}

@media screen and (min-width: 1024px) {
  /* Typography */
  
}
