.main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25;
  /*height: 100vh;*/
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
}

.main > div > h1 {
  color: #3d4042;
}

.main > div > h1 > span {
  color: #4ea37b;
}

.main-txt > p{
  color: #3D4042;
}

.btns-grid-container {
  display: grid;
}

.btns-grid-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f7f7f7;
  border-radius: 10px;
  font-weight: 700;
}

.btns-grid-flex {
  display: flex;
  align-items: center;
}

.btns-grid-flex > h2 {
  color: #3D4042;
  font-weight: 700;
}

.btns-content {
  display: none;
}

.btns-content.open {
  display: flex;
  flex-direction: column;
  font-weight: 300;
  line-height: 1.5;
  background-color: #f7f7f7;
  border-bottom-right-radius: 10px;
  border-bottom-left-radius: 10px;
}

.btns-content > p {
  color: #3d4042;
}

.btns-grid-title.open {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.btns-grid-title.open {
  cursor: default;
}

.thehub {
  display: flex;
  flex-direction: column;
  /*justify-content: space-between;*/
  text-align: center;
}

.thehub > div:first-child {
  display: flex;
  flex-direction: column;
  /*height: 100%;*/
}

.thehub > div:first-child > h2 > span {
  color: #5ab18f;
}

/*
.thehub > div:first-child > p {
  font-size: clamp(0.875rem, 1.071rem + 1.297vw, 1.1rem);
  line-height: 1.3;
}
*/

.discover, .discover2 {
  color: #3d4042;
  background-color: #5ab18f;
  font-weight: 600;
  letter-spacing: 0.96px;
  transition: all 300ms ease-in;
  text-align: center;
}

.discover:hover, .discover:visited{
  text-decoration: none;
}

@media (min-width: 992px) {
  .main {
    padding: 0px 50px;
    align-self: center;
  }
  .main > div:first-child {
    max-width: 50%;
  }
  .main > div > h1{
    margin-bottom: 50px;
  }
  .main-txt > p{
    font-size: clamp(1.125rem, 0.724rem + 0.647vw, 1.5rem);
    line-height: 1.5;
  }
  .main > div:last-child {
    align-self: center;
    position: absolute;
    bottom: 20px;
  }
  .main > div > a > img{
    max-width: 16px;
  }
  .main > div > a {
    height: auto;
    animation: MoveUpDown 2s linear infinite;
    position: absolute;
    bottom: 20px;
		left: 0;
		right: 0;
  }
	@keyframes MoveUpDown {
		0%, 100% {
		  bottom: 20px;
		}
		50% {
		  bottom: 1px;
		}
	}
  .btns-grid-container {
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    padding: 100px 50px;
  }
  .btns-grid-flex {
    gap: 30px;
  }
  .btns-grid-flex > img {
    width: 35px;
  }
  .btns-grid-title > img {
    width: 20px;
  }
  .btns-grid-title{
    padding: 25px 20px;
  }
  .btns-grid-flex > h2 {
    font-size: clamp(1.125rem, 0.858rem + 0.431vw, 1.375rem);
    letter-spacing: 0.96px;
  }
  .btns-grid-title:hover, .btns-grid-title .open:hover {
    cursor: pointer;
  }
  .btns-content.open {
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 35px;
    padding-bottom: 50px;
  }
  .btns-content > p {
    font-size: clamp(1rem, 0.866rem + 0.216vw, 1.125rem);
    letter-spacing: 0.48px;
  }
  .thehub {
    display: flex;
    height: 100vh;
    background-color: #fefefe;
    flex-direction: row;
    /*justify-content: center;*/
    text-align: right;
    max-width: 100%;
  }
  .thehub > div:first-child > h2 {
    font-size: clamp(1.625rem, -3.319rem + 7.974vw, 6.25rem);
  }
  .thehub > div:first-child {
    justify-content: center;
    width: 50%;
  }
  .thehub > div:first-child > p {
    font-size: clamp(1.25rem, 0.582rem + 1.078vw, 1.875rem);
    line-height: 1.3;
    margin-top: 30px;
  }
  .thehub > div:last-child {
    width: 50%;
    display: flex;
    align-self:center;
    /*justify-self: flex-end;*/
  }
  .discover {
    display: table;
    /*float: right;*/
    align-self: flex-end;
    border-radius: 15px;
    padding: 20px 0px;
    width: 240px;
    margin-top: 60px;
    font-size: clamp(1rem, 0.866rem + 0.216vw, 1.125rem);
  }
  .discover2{
    display: none;
  }
}

@media(max-width:991px){
  .main {
    padding: 50px 20px;
  }
  .main > div > h1{
    margin-bottom: 30px;
  }
  .main-txt > p{
    font-size: 18px;
    line-height: 1.5;
  }
  .main > div:last-child {
    align-self: center;
    position: absolute;
    bottom: 39px;
  }
  .main > div > a > img{
    max-width: 12px;
    height: auto;
  }
  .main > div > a {
    height: auto;
    animation: MoveUpDown 2s linear infinite;
    position: absolute;
    bottom: 20px;
		left: 0;
		right: 0;
  }
	@keyframes MoveUpDown {
		0%, 100% {
		  bottom: 20px;
		}
		50% {
		  bottom: 1px;
		}
	}
  .btns-grid-container {
    grid-template-columns: 1fr;
    padding: 60px 20px;
    gap: 25px;
  }
  .btns-grid-title{
    padding: 15px 20px;
  }
  .btns-grid-flex > h2 {
    font-size: 16px;
    letter-spacing: 0.96px;
  }
  .btns-grid-flex > img {
    width: 20px;
  }
  .btns-grid-title > img {
    width: 16px;
  }
  .btns-grid-flex {
    gap: 15px;
  }
  .btns-content.open {
    padding-top: 15px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 30px;
  }
  .btns-content > p {
    font-size: 15px;
    letter-spacing: 0.42px;
  }
  .thehub > div:first-child {
    align-self: center;
  }
  .thehub > div:first-child > h2 {
    font-size: 30px;
  }
  .thehub > div:first-child > p {
    font-size: 19px;
    line-height: 1.3;
    margin-top: 20px;
    margin-bottom: 20px;
  }
  .thehub > div:last-child{
    position: relative;
    display: block;
  }
  .discover {
    display: none;
  }
  .discover2{
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    bottom:120px;
    padding: 19px 35px;
    width: 200px;
    border-radius: 10px;
    margin-top: 40px;
    font-size: 14px;
  }
}

@media(min-width:768px){
  .mobile{
    display: none !important;
  }
  .main{
    background-image: url('../img/servicii-d.jpg');
    background-position: center;
  }
}

@media(max-width:767px){
  .desktop{
    display: none !important;
  }
  .main{
    background-image: url('../img/servicii-m.jpg');
    background-position: right;
  }
}
