

.headerPhoto {
    width: 100%;
    height: 620px;
    position: relative;
    color: white;
    background: rgba(4, 31, 77, 0.65);
}

.headerPhoto::before {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/testarePsihologica.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index: -1;

    background-position: center;
   
}



.nameCompany {
        /* text-transform: capitalize; */
       
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    font-size: 260%;
}



.consultatieButton {
    position: relative;
    background-color: var(--MainColor);
    border: none;
    font-size: 28px;
    color: #FFFFFF;
    
    width:350px;
    text-align: center;
    transition-duration: 0.4s;
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    position: absolute;
    top:20%;
    left: 50%;
    transform: translate(-50%);
    font-size: 100%;
    font-weight: bold;
    border-radius: 10px;
    white-space:nowrap;
    overflow: visible;
    padding: 10px 50px;
  }




  .consultatieButton:hover {
    transform: translate(-50%) scale(1.05);
  }


/* 
  .consultatieButton:after {
    content: "";
    background: #f1f1f1;
    display: block;
    position: absolute;
    padding-top: 300%;
    padding-left: 350%;
    margin-left: -20px !important;
    margin-top: -120%;
    opacity: 0;
    transition: all 0.8s
  }
  
  .consultatieButton:active:after {
    padding: 0;
    margin: 0;
    opacity: 1;
    transition: 0s
  } */

  .new {
      position: absolute;
      top:-20px;
      right: -20px;
      background: var(--SecondColor);
      padding: 10px 15px;
      border-radius: 15px;
      transform: rotate(45deg);
      z-index: 5;
  }

  /* Citat */

  .citat {
      position: absolute;
      bottom: 15%;
      text-align: center;
      left: 39%;
      transform: translate(-39%);
      border-left: 6px solid var(--MainColor);
      font-size: 120%;
      padding: 10px 20px ;
      font-weight: 500;
      font-style: italic;
      transition: 0.5s;  font-family: 'Montserrat', sans-serif;
  }


 

  .citat::before {
    position: absolute;
    content: "”";
    color: rgba(255, 255, 255, 1);
    font-size: 3rem;
    line-height: 0;
    top: 15px;
    left: 0px;
}

  
  .citat:after {
      position: absolute;
      content: "”";
      color: rgba(255, 255, 255, 1);
      font-size: 3rem;
      line-height: 0;
      bottom: -14px;
      right: 30px;
  }
  

    .fbButton{
        position: absolute;
        right: 20px;
        bottom: 20px;
        transform: scale(2);

       
    
    }

    .googleReviews {
      
        width: 50%;
      margin: auto;
    }



   

  .visitCard {
      padding: 30px 0px;
      height: auto;
      background: white;
      display: flex;
      justify-content: space-around;
      position: absolute;
      left: 50%;
      transform: translate(-50%);
      bottom: -60px;
      color: black;
      -webkit-box-shadow: 3px 8px 24px 9px rgba(140,140,140,0.51); 
     box-shadow: 3px 8px 24px 9px rgba(140,140,140,0.51);
      border-bottom: 5px solid var(--SecondColor);
      border-radius: 10px;
  }

  .elem {
      border-right: 1px solid rgb(226, 216, 216);
      padding:10px 60px;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 25%;
   
  }

  .elem:last-child {
    border-right: 0px solid gray;
}

  .main {
        text-align: center;
      color: var(--MainColor);
      font-size: 110%;
  }

.secondary {
    text-align: center;
    color: var(--SecondColor);
   
}


  /* Departamente */

  .informationText {
      font-size: var(--h1Size);
      padding: 100px 0px;
      padding-top: 40px;
      text-align: center;
      position: relative;
  }
  
  .informationText::after {
      content: "";
      height: 4px;
      width: 10%;
      background: var(--MainColor);
      position: absolute;
      left: 50%;
      bottom: 80px;
      border-radius: 15px;
      transform: translate(-50%);
      transition: 0.5s;
  }

  
  .departamenteBigContainer:hover .informationText::after {
    width:20%;

}

.departamenteBigContainer {
    margin-bottom: 80px;
}



.department {
    margin: 0px auto;
    display: flex;  
    justify-content: center;
    gap:20px;
    margin-bottom:20px;
    flex-wrap: wrap;
}

.department .card{
    width: 400px;
    background: rgba(39, 68, 119, 0.65);
    height: 400px;
    position: relative;
    transition: 0.5s;
    overflow: hidden;
    border-radius: 5px;
    cursor: pointer;
}



.card.three {
    width: 540px;
}

.imgDepartament {
    width: 100%;
    height: auto;
}

.card1:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/weapon.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}


.card2:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/truck.jpeg");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card3:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/dirvingLicense.png");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card4:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/exam.jpeg");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card5:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/notecropped.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card6:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/selfImporvment.jpeg");
    background-size: cover;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card7:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/supervizare.png");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card8:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/avizPsihologicAmbarcatiuni.jpg");
    background-size: cover;
    background-position: right;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card9:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/training.jpeg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card10:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/consilierepsihoterapie.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card11:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/onlineConsiliere.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}


.card12:after {
    content: "";
    position: absolute;
    top:0px;
    left:0px;
    background: url("Photos/smurdAviz.jpg");
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    z-index:-1;
    border-radius: 5px;
}

.card:hover {
    background: rgba(21, 76, 172, 0.315);

}

.card:hover .textDep {
    opacity: 0;
}

.viewMore {
    position: absolute;
    background: var(--MainColor);
    padding: 15px 43px;
    border-radius: 10px;
    top:200%;
    left: 50%;
    color: white;
    font-weight: bold;
    transition: 0.5s;
    transform: translateX(-50%);
    cursor: pointer;
}

.viewMore:hover {
    background: var(--SecondColor);
}

.card:hover .viewMore {
    position: absolute;
    top:50%;
    left: 50%;
    transform: translate(-50%, -50%);

}



.textDep {
    position: absolute;
    bottom: 20px;
    left: 0px;
    text-align: center;
    font-size: 140%;
    color: white;
    transition: 0.5s;
    opacity: 1;
    text-transform: uppercase;
    width: 100%;
}



@media screen and (max-width: 1630px) {
    .department .card{
        width: 500px;
        background: rgba(39, 68, 119, 0.65);
        height: 500px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 1550px) {
    .department .card{
        width: 330px;
        background: rgba(39, 68, 119, 0.65);
        height: 330px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}


@media screen and (max-width: 1430px) {
    .department .card{
        width: 390px;
        background: rgba(39, 68, 119, 0.65);
        height: 390px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 1230px) {
    .department .card{
        width: 500px;
        background: rgba(39, 68, 119, 0.65);
        height: 500px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 1230px) {
    .department .card{
        width: 500px;
        background: rgba(39, 68, 119, 0.65);
        height: 500px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}


@media screen and (max-width: 1035px) {
    .department .card{
        width: 450px;
        background: rgba(39, 68, 119, 0.65);
        height: 500px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width:1050px) { 
    .consultatieButton {
        position: relative;
        background-color: var(--MainColor);
        border: none;
        color: #FFFFFF;
        width:350px;
        text-align: center;
        transition-duration: 0.4s;
        text-decoration: none;
        overflow: hidden;
        cursor: pointer;
        position: absolute;
        top:20%;
        left: 50%;
        transform: translate(-50%);
        font-size: 90%;
        border-radius: 10px;
        overflow: visible;
        padding: 10px 20px;
      }
      .nameCompany {
       
     
    position: absolute;
    top:52%;
    left: 50%;
    transform: translate(-50%);
    text-align: center;
    font-size: 250%;
    white-space: nowrap;
}

    .informationText {
        font-size: 230%;
    }

    .citat {
        font-size: 110%;
        left: 24%;
        transform: translate(-24%);
    }
}


@media screen and (max-width: 920px) {
    .department .card{
        width: 390px;
        background: rgba(39, 68, 119, 0.65);
        height: 400px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
    .citat {
        left: 35%;
        transform: translate(-35%);
        font-size: 90%;
    }
}


@media screen and (max-width: 820px) {
    .department .card{
        width:350px;
        background: rgba(39, 68, 119, 0.65);
        height: 400px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }
}

@media screen and (max-width: 720px) {
    .department .card{
        width:300px;
        background: rgba(39, 68, 119, 0.65);
        height:300px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }

 

    .nameCompany {
        font-size: 200%;
        /* white-space: normal; */
    }
    .citat {
        left: 25%;
        transform: translate(-25%);
        font-size: 90%;
    }

    .consultatieButton {
        padding: 10px 50px;
        font-size: 85%;
        width: 300px;
    }

}

@media screen and (max-width: 720px) {
    .department .card{
        width:95%;
        background: rgba(39, 68, 119, 0.65);
        height:350px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }

    .headerPhoto::before {
        content: "";
        position: absolute;
        top:0px;
        left:0px;
        background: url("Photos/testarePsihologica.jpg");
        background-size: cover;
        width: 100%;
        height: 100%;
        z-index: -1;
        background-position: center;
       
    }
}


@media screen and (max-width: 620px) {
    .department .card{
        width:95%;
        background: rgba(39, 68, 119, 0.65);
        height:350px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    }

    .consultatieButton {
        padding: 10px 50px;
        font-size: 80%;
        width: 250px;
    }


    .department {
        padding: 0px;
    }
    .textDep {
        position: absolute;
        bottom: 20px;
        left: 0px;
        text-align: center;
        font-size: 110%;
        color: white;
        transition: 0.5s;
        opacity: 1;
        text-transform: uppercase;
        width: 100%;
    } 
    .nameCompany {
        font-size: 180%;
    }

    .citat {
        font-size: 76%;
    }

    .googleReviews {
        width: 100%;
        margin: unset;
    }
}


@media screen and (max-width: 580px) {
    .department .card{
        width:90%;
        background: rgba(39, 68, 119, 0.65);
        height:350px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    
    }

    

    .textDep {
        position: absolute;
        bottom: 20px;
        left: 0px;
        text-align: center;
        font-size: 110%;
        color: white;
        transition: 0.5s;
        opacity: 1;
        text-transform: uppercase;
        width: 100%;
    } 
    .nameCompany {
        font-size: 150%;
    }

    .new {
        position: absolute;
        top:-20px;
        right: -20px;
        background: var(--SecondColor);
        padding: 7px 13px;
        border-radius: 15px;
        transform: rotate(45deg);
        z-index: 5;
    }
  
}


@media screen and (max-width: 470px) {
    .department .card{
        width:90%;
        background: rgba(39, 68, 119, 0.65);
        height:350px;
        position: relative;
        transition: 0.5s;
        overflow: hidden;
        border-radius: 5px;
        cursor: pointer;
    
    }

    .new {
        position: absolute;
        top:-10px;
        right: -10px;
        background: var(--SecondColor);
        padding: 6px 11px;
        border-radius: 15px;
        transform: rotate(45deg);
        z-index: 5;
    }
    .textDep {
        position: absolute;
        bottom: 20px;
        left: 0px;
        text-align: center;
        font-size: 110%;
        color: white;
        transition: 0.5s;
        opacity: 1;
        text-transform: uppercase;
        width: 100%;
    } 
    .nameCompany {
        font-size: 127%;
        white-space: unset;
        width: 90%;
    }

    .consultatieButton {
        padding: 10px 50px;
        font-size: 80%;
        width: 230px;
    }

    body {
        overflow-x: hidden;
    }
    
}