#homepage-header {
  position: relative;
  width: 100%;
}

.homepage-header-row {
  display: flex;
  align-items: center;
  gap: 77px;
  margin-top: 200px;
}

.homepage-header-row  h1{
  font-size: 30px;
}

.swiper-button-prev{
  color: var(--secondary);
  transition: all 0.3s ease-in-out;
}

.swiper-button-prev:hover{
  transform: translateX(5px);
  color: #F2F2F2;
}

.swiper-button-next{
  color: var(--secondary);
  transition: all 0.3s ease-in-out;
}

.swiper-button-next:hover{
  transform: translateX(-5px);
  color: #f2f2f2;
}

.swiper-slide {
  font-size: 18px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
}

.homepage-header-row .text-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 30%;
  margin: auto 0 auto auto;
}

.homepage-header-row .header-img {
  width: 50%;
  margin: auto 0 auto auto;
}

#section-our-works {
  width: 80%;
  margin: 259px auto auto auto;
  display: flex;
  align-items: center;
  gap: 100px;
}

#section-our-works .text-container {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

#section-our-functionning {
  width: 80%;
  margin: 259px auto auto auto;
  display: flex;
  align-items: center;
  gap: 100px;
}

#section-our-functionning .text-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.functioning-argument-container {
  background-color: #f8f8f8;
  border-radius: 16px;
  box-shadow: 0px 3px 16px #00000017;
  padding: 70px 40px;
}
.row-title {
  font-size: var(--subtitle-size);
}

.functioning-argument-container {
  height: 100%;
  width: 50%;
}

.functioning-arguments-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-columns: min-content;
  gap: 40px;
  width: 100%;
}

.functioning-argument {
  display: flex;
  align-items: center;
  gap: 20px;
  font-weight: bold;
}

.row-reverse {
  align-items: flex-start;
  height: 312px;
}

#section-engagements {
  margin-top: 400px;
  overflow: hidden;
}

.section-engagements-container {
  display: flex;
  gap: 41px;
}

.section-engagements-container .row {
  display: flex;
  align-items: flex-start;
}

#section-engagements .row .gradiant-container {
  width: 60%;
  z-index: 1;
  background-color: #f8f8f8;
}

#section-engagements .text-container h2 {
  position: relative;
  right: 60px;
  font-size: 4rem;
}

#section-engagements .text-container ul {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 50px;
}

.category {
  width: 35%;
}

#section-eligible-works .section-title {
  font-size: 4rem;
}

#section-eligible-works .button {
  position: relative;
  margin: auto;
}

#section-eligible-works .button .triangle {
  position: absolute;
  right: 10px;
  top: 43%;
  transform: translateY(-50%);
  border-left: 2px solid transparent;
  border-right: 2px solid transparent;
  border-bottom: 2px solid var(--secondary);
  border-width: 10px;
  transform: rotate(90deg);
  transition: 0.3s ease-in-out all;
}

.engagements-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-columns: min-content;
  grid-gap: 70px;
  align-items: flex-start;
  padding: 75px 100px;
}

.engagement {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.engagement-img {
  margin: auto auto auto 0;
}

#section-engagements {
  position: relative;
}

#section-engagements .section-title {
  position: relative;
  margin-bottom: -45px;
  margin-right: 205px;
  display: flex;
  justify-content: flex-end;
  z-index: 2;
}

#section-engagements .white-leaf {
  position: absolute;
  right: -20%;
  top: 5%;
}

#section-engagements .text {
  margin-top: 50px;
}

#section-engagements .text p {
  width: 60%;
}

#section-eligible-works {
  width: 100%;
  margin: 200px auto auto auto;
}

#section-eligible-works .section-subtitle {
  font-size: 20px;
  font-weight: var(--text-weight);
  width: 90%;
  margin: auto;
}

#section-eligible-works .section-title {
  width: 90%;
  margin: auto;
}

.works-swiper {
  margin-top: 100px;
  width: 100%;
  height: 100%;
}

.works-swiper .img-wrapper,
.works .img-wrapper {
  position: relative;
  user-select: none;
}

.works .img-wrapper {
  height: 300px;
  object-fit: cover;
}

.works-swiper .img-wrapper img,
.works .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.works-swiper .img-wrapper .text-container {
  position: absolute;
  bottom: 6%;
  left: 10%;
  opacity: 0;
  transition: 0.3s ease-in-out all;
}

.works .img-wrapper .text-container {
  position: absolute;
  bottom: 6%;
  left: 10%;
  opacity: 1;
  transition: 0.3s ease-in-out all;
}

.works .img-wrapper .text-container > * {
  color: white;
}

.bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 70%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #252155 100%);
  border-radius: 16px;
}

.works-swiper .img-wrapper .text-container p {
  color: white;
}

.works-swiper .img-wrapper:hover > .text-container {
  opacity: 1;
}

#section-our-works h2 {
  font-size: var(--subtitle-size);
}

#section-offers {
  margin-top: 239px;
  background-color: #f8f8f8;
  padding: 100px 0;
}

#section-offers .section-title {
  color: var(--primary);
  text-align: center;
  font-size: 4rem;
}

.works {
  display: none;
}

#footer {
  margin: 0 auto auto auto;
  padding-top: 0;
}

#section-offers .text {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 64px;
}

.partners-type-container {
  display: flex;
  justify-content: center;
  width: 60%;
  margin: auto;
}

.partners-type-container .dollar-wrapper {
  position: relative;
}

.dollar {
  position: absolute;
  left: 75px;
  top: -50px;
}

.partners-type {
  display: flex;
  flex-direction: column;
  gap: 25px;
  text-align: center;
  align-items: center;
  width: 33.3333%;
}

.partner-img {
  width: 122px;
}

.partner-title {
  font-size: 24px;
}

.partner-business {
  width: auto;
}

.partner-details {
  width: 75%;
  font-size: 16px;
  font-weight: 500;
}

@media screen and (max-width: 1435px) {
  #section-advice-functioning .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }
  .line {
    top: 350px;
  }

  .homepage-header-img {
    width: 100%;
  }

  #section-advice-functioning .row .row-img {
    width: 45%;
  }

  .homepage-header-grid .img-wrapper {
    padding-left: 0;
    grid-column: 2 / span 3;
  }

  .text-container {
    width: 100%;
  }
}

@media screen and (max-width: 1396px) {
  .works-swiper .img-wrapper {
    width: auto;
    height: auto;
  }
  /* .swiper{
    display: none;
  } */
  .white-leaf {
    display: none;
  }
  .partners-type {
    width: auto;
  }
  #homepage-header .leaf:nth-of-type(2) {
    left: 45%;
  }
  .partner-details {
    text-align: left;
    width: auto;
  }
  .engagements-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-type-container {
    flex-direction: column;
    gap: 50px;
  }
}

@media screen and (max-width: 1269px) {
  #section-eligible-works .section-title {
    font-size: 72px;
  }

  .line {
    display: none;
  }

  #section-engagements .section-title {
    font-size: 72px;
    margin: 0;
    top: 35px;
    justify-content: flex-start;
  }

  #section-eligible-works .section-subtitle {
    width: 75%;
  }
  #section-advice-functioning .row-reverse {
    flex-direction: column;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 150px;
  }

  .text-container {
    width: 100%;
  }

  .functioning-arguments-grid {
    height: 300px;
  }

  #section-advice-functioning .row .row-img {
    width: 45%;
  }
}

@media screen and (max-width: 1175px) {
  .section-engagements-container .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  #section-engagements .text p {
    width: 80%;
    margin: auto;
  }
}

@media screen and (max-width: 1159px) {
  .functioning-arguments-grid {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 25px;
    padding: 20px;
  }
  .functioning-arguments-grid {
    height: auto;
  }
}

@media screen and (max-width: 1499px) {
  #section-our-works img {
    width: 40%;
  }
}

@media screen and (max-width: 1241px) {
  .section-engagements-container .row {
    flex-direction: column-reverse;
    gap: 59px;
  }
  #section-engagements .row .gradiant-container {
    width: 100%;
  }

  #section-engagements .row .text-container {
    width: 90%;
    margin: auto;
  }
  #section-engagements .text-container h2 {
    position: initial;
  }
}

@media screen and (max-width: 1167px) {
  #section-our-functionning {
    flex-direction: column;
    width: 90%;
    margin: 101px auto auto auto;
  }
  .functioning-argument-container {
    width: 100%;
  }
  .homepage-header-row .header-img {
    width: 80%;
    margin: auto 0 auto auto;
    height: 400px;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
  }
  .functioning-arguments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 75px;
  }
  #section-our-works {
    flex-direction: column-reverse;
  }
  #section-our-works img {
    width: 100%;
  }
  .homepage-header-row {
    flex-direction: column;
  }
  .homepage-header-row .text-container {
    width: 90%;
    margin: auto;
  }
}

@media screen and (max-width: 1082px) {
  .works-swiper {
    display: none;
  }

  #section-eligible-works {
    width: 90%;
    margin: 100px auto auto auto;
  }

  #section-eligible-works .section-subtitle,
  #section-eligible-works .section-title {
    width: 100%;
  }

  .works {
    display: block;
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 100px;
  }
}

@media screen and (max-width: 925px) {
  #section-steps .section-title,
  #section-eligible-works .section-title,
  #section-engagements .text-container h2,
  #section-offers .section-title {
    font-size: 45px;
  }
}

@media screen and (max-width: 795px) {
  #section-offers .text {
    width: 65%;
    margin: auto;
  }
}

@media screen and (max-width: 757px) {
  #section-advice-functioning .row .row-img {
    width: 65%;
  }
  #section-offers .section-title {
    font-size: 35px;
    bottom: 35px;
  }
}

@media screen and (max-width: 677px) {
  #section-engagements .section-title {
    font-size: 48px;
    top: 20px;
  }
  #homepage-header .leaf:first-of-type {
    top: 25%;
  }
  #homepage-header .leaf:nth-last-of-type(2) {
    top: 10%;
  }
}

@media screen and (max-width: 520px) {
  .functioning-arguments-grid {
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 655px) {
  #section-advice-functioning .row .row-img {
    width: 100%;
  }
  .eligible-work-details {
    width: 50%;
  }
}

@media screen and (max-width: 591px) {
  .engagements-container {
    padding: 75px 0;
    width: 80%;
    margin: auto;
    grid-template-columns: repeat(1, 1fr);
  }
}

@media screen and (max-width: 559px) {
  #section-engagements .section-title {
    font-size: 38px;
    top: 15px;
  }
  #section-eligible-works .section-title {
    font-size: 38px;
  }
  #section-eligible-works .section-subtitle {
    width: auto;
  }
  #section-offers .section-title {
    font-size: 28px;
    bottom: 25px;
  }
}

@media screen and (max-width: 529px) {
  .functioning-argument-container {
    width: 100%;
  }
}
