* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  text-decoration: none;
  list-style: none;
  color: black;
}

:root {
  --color-Ellipse-1: #c8aad3;
  --color-Ellipse-2: #799dcb;
  --color-Ellipse-3: #7c38bd;
  --color-Ellipse-4: #bd6df2;
  --color-Ellipse-5: #a696c7;
}

body {
  background-color: #291a77;
}

/* main */

.container-main {
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
  background-image: url("../images/SpicaSol/background.svg");
  background-size: cover;
  background-repeat: no-repeat;
}

/* 1 */

.container-main-1 {
  max-width: 1440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 50px;
  padding: 120px 100px;
}

.container-main-1 > h1 {
  font-size: 48px;
  font-weight: 700;
  color: white;
}

.container-main-1 > p {
  width: 70%;
  font-size: 20px;
  font-weight: 500;
  color: white;
  line-height: 1.7;
}

/* 2 */
.container-main-2 {
  max-width: 1440px;
  width: 100%;
  padding: 0 100px;
  height: fit-content;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;

  margin-bottom: 180px;
}

.container-main-2-card-mobile {
  display: none;
}

.container-main-2-card {
  height: fit-content;
  width: fit-content;
  position: relative;
}

.container-main-2-card-detail {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: absolute;
  left: 32px;
  bottom: 32px;
  z-index: 10;
}

.container-main-2-card-detail > img {
  width: 70px;
}
.container-main-2-card-detail span > h1 {
  font-size: 36px;
  font-weight: bold;
  color: white;
}
.container-main-2-card-detail span > h2 {
  font-size: 21px;
  font-weight: 400;
  color: white;
  white-space: nowrap;
}

.container-main-2-card:hover .container-main-2-card-detail span > h1 {
  text-decoration: underline;
}
.container-main-2-card:hover .container-main-2-card-detail span > h2 {
  text-decoration: underline;
}

.container-main-2-card-detail2 {
  display: flex;
  flex-direction: column;
  justify-content: right;
  align-items: end;
  gap: 15px;
  position: absolute;
  right: 32px;
  top: 32px;
}

.container-main-2-card-detail2 > h1 {
  color: white;
  font-size: 18px;
  font-weight: 400;
  padding: 8px 16px;
  border: 1px solid white;
  border-radius: 5px;
}

.container-main-2-card > img {
  width: 1240px;
  border-radius: 15px;
  transition: 0s;
}

.container-main-2-card > img:hover {
  outline: 0.5px solid rgb(131, 143, 255);
  transition: 0.1s;
}

/* 3 */

.container-main-3 {
  max-width: 1440px;
  height: 535px;
  width: 100%;
  padding: 0 100px;

  background-image: url("../images/Case-Studies/Group\ 1171275104.svg");
  background-size: 1000px;
  background-position: right;
  background-repeat: no-repeat;
  overflow: hidden;
}

.container-main-3 h1 {
  color: white;
  font-size: 48px;
  font-weight: 700;
  width: 730px;
  margin-bottom: 40px;
}

.container-main-3 p {
  color: white;
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 52px;
}

.container-main-3 button {
  color: white;
  padding: 10px 26px;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 400;
  background-color: var(--color-Ellipse-4);
  transition: 0.5s;
}

.container-main-3 button:hover {
  cursor: pointer;
  background-color: #bd6df2a8;
}

@media screen and (max-width: 1440px) {
  .container-main {
    margin-top: 6.94vw;
  }

  /* 1 */
  .container-main-1 {
    gap: 3.47vw;
    padding: 8.33vw 6.94vw;
  }

  .container-main-1 > h1 {
    font-size: 3.33vw;
  }

  .container-main-1 > p {
    font-size: 1.39vw;
  }

  /* 2 */
  .container-main-2 {
    max-width: 1440px;
    width: 100%;
    padding: 0 6.944vw;
    gap: 2.778vw;
    margin-bottom: 12.5vw;
  }

  .container-main-2-card-detail {
    gap: 1.389vw;
    left: 2.222vw;
    bottom: 2.222vw;
  }

  .container-main-2-card-detail > img {
    width: 4.861vw;
  }

  .container-main-2-card-detail span > h1 {
    font-size: 2.5vw;
  }

  .container-main-2-card-detail span > h2 {
    font-size: 1.458vw;
  }

  .container-main-2-card-detail2 {
    gap: 1.04vw;
    right: 2.22vw;
    top: 2.22vw;
  }

  .container-main-2-card-detail2 > h1 {
    font-size: 1.25vw;
    padding: 0.56vw 1.11vw;
    border: 0.07vw solid white;
    border-radius: 0.35vw;
  }

  .container-main-2-card > img {
    width: 86.111vw;
    border-radius: 1.042vw;
  }

  .container-main-2-card > img:hover {
    outline: 0.035vw solid rgb(131, 143, 255);
  }

  /* 3 */

  .container-main-3 {
    height: 37.15vw;
    padding: 0 6.94vw;
    background-size: 69.44vw;
  }

  .container-main-3 h1 {
    font-size: 3.33vw;
    width: 50.69vw;
    margin-bottom: 2.78vw;
  }

  .container-main-3 p {
    font-size: 1.25vw;
    margin-bottom: 3.61vw;
  }

  .container-main-3 button {
    padding: 0.69vw 1.81vw;
    border-radius: 0.49vw;
    font-size: 1.25vw;
  }
}

@media screen and (max-width: 501px) {
  /* 1 */
  .container-main-1 {
    gap: 5.59vw;
    padding-bottom: 15.97vw;
    padding-top: 15.97vw;
  }

  .container-main-1 > h1 {
    font-size: 6.39vw;
    font-weight: 700;
    color: white;
  }

  .container-main-1 > p {
    width: 100%;
    font-size: 3.99vw;
    font-weight: 500;
    color: white;
    line-height: 1.8;
  }

  /* 2 */

  .container-main-2 {
    display: flex;
    flex-direction: column;
    margin-bottom: 29.94vw;
    gap: 10.98vw;
  }

  .container-main-2-card {
    display: none;
  }

  .container-main-2-card-mobile {
    display: flex;
    flex-direction: column;
    position: relative;
  }

  .container-main-2-card-mobile > img {
    width: 100%;
    display: block;
  }

  .container-main-2-card-mobile > h1 {
    width: 100%;
    font-size: 3.5vw;
    font-weight: 400;
    color: white;
    margin-top: 3.99vw;
    line-height: 1.5;
  }

  .container-main-2-card-mobile-detail {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
  }

  .mobile-detail-1 {
    position: absolute;
    right: 5%;
    top: 3.99vw;
    display: flex;
    flex-direction: column;
    justify-content: right;
    align-items: end;
    gap: 1.99vw;
  }

  .mobile-detail-1 > h1 {
    color: white;
    font-size: 3.59vw;
    font-weight: 400;
    padding: 1.2vw 2vw;
    border: 1px solid white;
    border-radius: 1vw;
  }

  .mobile-detail-2 {
    position: absolute;
    top: 63.87vw;
    left: 3.99vw;
    display: flex;
    align-items: center;
    gap: 2.99vw;
  }

  .mobile-detail-2 > h1 {
    color: white;
    font-size: 4.79vw;
  }

  .mobile-detail-2 > img {
    width: 16vw;
  }

  /* 3 */
  .container-main-3 {
    height: fit-content;
    width: 100%;

    background: unset;
    overflow: hidden;

    padding-top: 15.97vw;
    padding-bottom: 15.97vw;
  }

  .container-main-3 h1 {
    width: 100%;
    font-size: 6.39vw;
    margin-bottom: 6.39vw;
    line-height: 1.8;
  }

  .container-main-3 p {
    font-size: 3.99vw;
    margin-bottom: 30vw;
    line-height: 1.8;
  }

  .container-main-3 a {
    width: 100%;
    color: white;
    padding: 2.99vw 22vw;
    border-radius: 1.4vw;
    font-size: 3.59vw;
    font-weight: 500;
    background-color: #bd6df2;
  }
}
