/* - Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98 

- Spacing system (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128 */

/* COLORS:
#2f9e44
#2b8a3e
#51cf66
#1e612b
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: "Roboto", sans-serif;
  line-height: 1;
  font-weight: 400;
}

/* ****HERO SECTION**** */
/* /////////////////// */

.hero-section {
  width: 100%;
  height: 36rem;
  background: linear-gradient(to right, #51cf66, #2f9e44);
  display: flex;
  justify-content: center;
  align-items: center;
}

.heading-hero {
  color: #fff;
  font-weight: 600;
  font-size: 8rem;
  letter-spacing: -0.1rem;
}

/* PRODUCT SECTION */
/* ////////////// */

.listProduct {
  margin: 9.6rem auto;
  max-width: 112rem;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 12.8rem;
  row-gap: 6.4rem;
}

.listProduct a:hover,
.listProduct a:active {
  scale: 1.05;
}

.item {
  box-shadow: 0.6rem 0.6rem 1rem rgba(0, 0, 0, 0.5);
  border-radius: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.2rem;
  text-decoration: none;
  transition: all 0.3s;
  background-color: #39b951;
}

.image {
  width: 100%;
  height: 24rem;
  border-top-right-radius: 1.2rem;
  border-top-left-radius: 1.2rem;
}

.list-heading {
  color: #1e612b;
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  font-weight: 500;
  text-align: center;
  padding: 0 0.5rem;
  color: #fff;
}

/* DETAIL SECTION */
/* ////////////// */

.other {
  margin: 4.8rem auto -5.2rem auto;
  font-size: 5.2rem;
  color: #1e612b;
  width: fit-content;
  font-weight: 500;
}

.container {
  max-width: 96rem;
  width: 100%;
  margin: 6.4rem auto;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  background: linear-gradient(to right, #42ae54, #227131);
  padding: 1.6rem;
  border-radius: 2rem;
}

.name {
  /* color: #1e612b; */
  color: #fff;
  font-size: 3.6rem;
  font-weight: 500;
}

.content {
  display: grid;
  grid-template-columns: 42rem 1fr;
  column-gap: 4.8rem;
}

.img {
  border-radius: 1.6rem;
  width: 100%;
  /* height: 36rem; */
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 1);
}

.data_image {
  margin-top: 2.4rem;
  width: 100%;
  justify-self: center;
}

.script {
  font-size: 2rem;
  color: #fff;
  text-align: center;
  line-height: 1.2;
}

/* RESPONSIVE SECTION */
/* ////////////// */

@media (max-width: 78.75em) {
  .listProduct {
    max-width: 96rem;
    /* column-gap: 9.6rem; */
  }

  .image {
    height: 20rem;
  }

  .list-heading {
    font-size: 2rem;
  }
}

@media (max-width: 66.25em) {
  .listProduct {
    max-width: 80rem;
    /* grid-template-columns: repeat(3, 1fr); */
    column-gap: 9.6rem;
  }

  .image {
    height: 18rem;
  }

  .list-heading {
    font-size: 1.8rem;
  }

  .hero-section {
    height: 24rem;
  }

  .heading-hero {
    font-size: 6.4rem;
  }

  .container {
    max-width: 80rem;
  }

  .content {
    grid-template-columns: 32rem 1fr;
    column-gap: 4.2rem;
  }

  .name,
  .other {
    font-size: 2.8rem;
  }
  .script {
    font-size: 1.6rem;
  }
}

@media (max-width: 57em) {
  .listProduct {
    max-width: 72rem;
    /* grid-template-columns: repeat(3, 1fr); */
    column-gap: 9.6rem;
  }

  .image {
    height: 16rem;
  }

  .list-heading {
    font-size: 1.6rem;
  }

  .container {
    max-width: 72rem;
    gap: 2.2rem;
  }

  .content {
    grid-template-columns: 28rem 1fr;
    column-gap: 4.2rem;
  }

  .heading-hero {
    font-size: 5.2rem;
  }

  .name,
  .other {
    font-size: 2.4rem;
  }
}

@media (max-width: 50em) {
  .listProduct {
    max-width: 58rem;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 12.8rem;
  }

  .image {
    height: 18rem;
  }

  .list-heading {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-section {
    height: 20rem;
  }

  .heading-hero {
    font-size: 4.8rem;
  }

  .container {
    max-width: 64rem;
  }

  .content {
    grid-template-columns: 24rem 1fr;
    column-gap: 3.6rem;
  }

  .name,
  .other {
    font-size: 2.2rem;
  }
  .script {
    font-size: 1.4rem;
  }
}

@media (max-width: 44.5em) {
  .listProduct {
    margin: 7.2rem auto;
    max-width: 52rem;
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 12.8rem;
  }

  .image {
    height: 16rem;
  }

  .list-heading {
    font-size: 1.4rem;
  }

  .hero-section {
    height: 18rem;
  }

  .heading-hero {
    text-align: center;
  }

  .container {
    max-width: 48rem;
    gap: 1.8rem;
    margin: 4.8rem auto;
  }

  .img {
    justify-self: center;
    width: 70%;
  }

  .name,
  .other {
    font-size: 2rem;
  }

  .content {
    grid-template-columns: 1fr;
  }
  .script {
    font-size: 1.6rem;
  }
}

@media (max-width: 38em) {
  .listProduct {
    max-width: 48rem;
    /* grid-template-columns: repeat(3, 1fr); */
    column-gap: 11.2rem;
  }

  /* .image {
    height: 22rem;
  } */

  /* .data_image {
    width: 90%;
  } */

  .list-heading {
    font-size: 1.2rem;
  }
}

@media (max-width: 34.5em) {
  .listProduct {
    max-width: 42rem;
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 11.2rem;
  }

  .image {
    height: 14rem;
  }

  /* .list-heading {
    font-size: 1.4rem;
  } */

  .hero-section {
    height: 16rem;
  }

  .heading-hero {
    font-size: 4.8rem;
    text-align: center;
    line-height: 1.4;
  }

  .container {
    max-width: 48rem;
    gap: 1.4rem;
  }

  .name,
  .other {
    font-size: 1.8rem;
  }
  .script {
    font-size: 1.4rem;
  }
}

@media (max-width: 31.4em) {
  .container {
    max-width: 42rem;
  }

  .name,
  .other {
    font-size: 1.6rem;
  }
  .script {
    font-size: 1.2rem;
  }
}

@media (max-width: 28.5em) {
  .listProduct {
    margin: 5.2rem auto;
    max-width: 36rem;
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 6.4rem;
    /* row-gap: 4.8rem; */
  }

  .list-heading {
    font-size: 1.2rem;
  }

  .image {
    height: 12rem;
  }
  .name {
    text-align: center;
    font-size: 2.4rem;
  }

  .other {
    margin-bottom: -2rem;
  }

  .heading-hero {
    font-size: 3.6rem;
  }
}

@media (max-width: 25em) {
  .listProduct {
    /* margin: 5.2rem auto; */
    max-width: 32rem;
    /* grid-template-columns: repeat(2, 1fr); */
    column-gap: 6.4rem;
    /* row-gap: 4.8rem; */
  }

  .list-heading {
    font-size: 1.2rem;
  }

  .image {
    height: 12rem;
  }
}

@media (max-width: 24em) {
  .name {
    text-align: center;
    font-size: 2.2rem;
  }
}
