

.div {
    border-radius: 25px;
    background-color: #fff;
    display: flex;
    /* padding-right: 60px; Remove this line */
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

.img-text-container {
    overflow: hidden;
    position: relative;
    width: 90%;
    margin-left: 5%;
    border-radius: 15px;
}

.img {
    position: absolute;
    inset: 0;
    object-fit: fill;
    width: 50%;
    height: 100%;
    display: block;
}

.span {
    position: relative;
    background: linear-gradient(
      100deg,
      rgba(67, 68, 94, 0) 0.12%,
      #303040 43.92%,
      #161617 98.67%
    );

    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: end;
    padding: 50px 72px 50px 80px;
}

@media (max-width: 991px) {
    .span {
        max-width: 100%;
        padding: 0 20px;
    }
    .div {
        /* padding-right: 20px; Remove this line */
    }
    .div-3 {
        max-width: 100%;
    }
    .span-2 {
        flex-wrap: wrap;
        margin-top: 40px;
    }
    .span-3 {
        white-space: initial;
    }

    .img {
        position: absolute;
        inset: 0;
        object-fit: cover;
        width: 100%;
        height: 100%;
        display: block;
    }

    .social-icons {
        margin-right: 12%;
    }


    .span {
        position: relative;
        background: linear-gradient(
          180deg,
          rgba(67, 68, 94, 0) 0.12%,
          #303040 43.92%,
          #161617 98.67%
        );

        display: flex;
        width: 100%;
        flex-direction: column;
        align-items: end;
        padding: 50px 72px 50px 80px;
    }
}

@media screen and (max-width: 768px) {
    .tab-header {
        font-size: 25px !important;
    }

    .tab-description {
        font-size: 15px !important;
    }

    .span-2 {
        width: 170px !important;
        display: block !important;
        margin: 0px !important;
    }
}
  .div-3 {
    color: #fff;
    margin-top: 31px;
    max-width: 708px;
    font: 500 20px/25px Montserrat, sans-serif;
  }

  .span-2 {
    align-self: center;
    display:flex;
    width: 436px;
    max-width: 100%;
    gap: 20px;
    margin: 5% 0% 0% 20%;
  }

  .active-link-btn {
      color: white;
    border-radius: 30px;
    border: 2px solid #6262d5;
      /*transition: all 0.3s ease;*/
    flex-grow: 1;
    padding: 13px 20px;
    font: 500 20px/35px Montserrat, sans-serif;
      cursor: pointer;
  }

.active-link-btn:hover {
    color: white;
    /*background: radial-gradient(160.03% 130.6% at 79.96% 21.53%, #404099 0%, #39395F 100%);*/
    border-radius: 30px;
    border: 2px solid #6262d5;
    flex-grow: 1;
    padding: 13px 20px;
    font: 500 20px/35px Montserrat, sans-serif;
    cursor: pointer;
}
  .inactive-link-btn{
    border: 2px solid transparent;
    color: #d4d4f7;
    align-self: center;
    margin: auto 0;
    padding: 13px 20px;
    font: 500 20px/35px Montserrat, sans-serif;
      cursor: pointer;
  }


.tab-description{
    line-height: 35px;
}


.tab-header{
    font-weight: 700;
    font-size: 40px;
    line-height: 48.7599983215332px;
    color: rgba(255, 255, 255, 1);

}