/*TITLU*/

.mtc{
  display:flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap:1rem;
}

.mtc::-webkit-scrollbar{
  /* display:inline;
  width:3px; */
}

/*DETALII MTC*/
.info-details-div-mtc{
    margin: 10px;
    width: 100%;
    max-width: 280px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap:12px;
    padding: 12px 22px;
    background-color: #f0f0f0;
    border-radius: 50px;
    font-weight: 600;
    color: #e065a4;
    box-shadow: 0 6px 20px rgba(224, 101, 164,0.4);
    
}

.info-container-mtc{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.div-detalii-mtc{
  display: flex;
  flex-direction: column;
  align-items: center;
  width:100%;
}
    
.container-mare-mtc {
    height: fit-content;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content:center;
    gap: 2rem;
    margin-bottom:1rem;
    color: #000000;
    top: 5rem;
    flex-wrap: wrap;
}

.button-participare-mtc {
   margin: 10px;
   width: 100%;
   max-width: 600px;
   padding: 14px 50px;
   margin-top: 20px;
   text-align: center;
   border-radius: 50px;
   border-style: none;
   background-color: #ed87bc;
   color: white;
   font-weight: 600;
   font-size: 25px;
   font-family: "Poppins";
   box-shadow: 0 8px 25px rgba(224, 101, 164,0.6);
   transition: all 0.3s ease;
   cursor:pointer;
}


.button-participare-mtc:hover{
    transform: translateY(-3px);
}

.description-mtc{
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display:flex;
    min-width: 300px;
    max-width: 600px;
}


/*CITESTE MAI MULT CARD*/
.citestemaimult-mtc {
    display: none;
    margin-top: 10px;
    font-size: 14px;
}
.card__button-mtc.active-mtc .citestemaimult-mtc{
    display: block;
}

/*CARD*/
.container_mtc {
  display: grid;
  place-items: center;
  /* margin-inline: 1.5rem; */
  /* padding-block: 5rem; */
}

.card__container_mtc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.card__article-mtc {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}

.card__img {
  width: 328px;
  border-radius: 1.5rem;
}

.card__data-mtc {
  width: 280px;
  background-color: var(--albastru-deschis);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsl(var(--glow-hue) 80% 60%);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right: 0;
  margin-inline: auto;
  opacity: 0;
  transition: opacity 1s 1s;
}

.card__description-mtc {
  display: block;
  margin-bottom: .25rem;
}

.card__title-mtc {
  font-weight: 500;
  color: white;
  margin-bottom: .75rem;
}

.card__button-mtc {
  text-decoration: none;
  font-weight: 500;
  color: var(--first-color);
}

.card__button-mtc:hover {
  text-decoration: underline;
}

/* Naming animations in hover */
.card__article-mtc:hover .card__data-mtc {
  animation: show-data 1s forwards;
  opacity: 1;
  transition: opacity .3s;
}

.card__article-mtc:hover {
  animation: remove-overflow 2s forwards;
}

.card__article-mtc:not(:hover) {
  animation: show-overflow 2s forwards;
}

.card__article-mtc:not(:hover) .card__data-mtc {
  animation: remove-data 1s forwards;
}

/* Card animation */
@keyframes show-data {
  50% {
    transform: translateY(-10rem);
  }

  100% {
    transform: translateY(-7rem);
  }
}

@keyframes remove-overflow {
  to {
    overflow: initial;
  }
}

@keyframes remove-data {
  0% {
    transform: translateY(-7rem);
  }

  50% {
    transform: translateY(-10rem);
  }

  100% {
    transform: translateY(.5rem);
  }
}

@keyframes show-overflow {
  0% {
    overflow: initial;
    pointer-events: none;
  }

  50% {
    overflow: hidden;
  }
}


/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 600px) {
  .container_mtc {
    margin-inline: 0.5rem;
  }

  .card__data-mtc {
    width: 250px;
    padding: 1rem;
  }

}

/* For medium devices */
@media screen and (min-width: 600px) {
  .card__container_mtc {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
  .container_mtc {
    margin-inline: 0.5rem;
  }
}
 .card__article-mtc.active-mtc .card__data-mtc{
  color:white;
  inset: 0;
  transform: none !important;
  bottom: auto;
  opacity: 1;
  transition: all 0.6s cubic-bezier(0.22,1,0.36,1);
 }
 .titlu-companie-mtc{
  font-size: 22px;
  margin-bottom: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
 }

.description-mtc {
    background-color: var(--albastru-random);
    color:white;
    font-family: "Figtree";
    width: 80%;
    padding: 2rem;
    font-size: 20px;
    border-radius: 2rem;
    box-shadow: 0.4rem 0.4rem 20px rgba(0, 0, 0, 0.5);
}
/*Container care se misca*/
.container-right-mtc {
    width: 40vw;
    height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem;
    color: #f0f0f0;
    font-weight: 600;
    position: sticky;
    top: 5rem;
}
/*Card mtc*/
.container_mtc{
  display: grid;
  place-items: center;
  margin-inline: 1.5rem;
  /* padding-block: 5rem; */
}
.card__container_mtc{
  /*display: grid;
   grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3.5rem;*/
   display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.card__article-mtc{
    position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.card__img{
  width: 328px;
  border-radius: 1.5rem;
}
.card__data-mtc{
  color:white;
  width: 280px;
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 24px hsla(0, 0%, 0%, .15);
  border-radius: 1rem;
  position: absolute;
  bottom: -9rem;
  left: 0;
  right:0;
  margin-inline: auto;
  opacity: 1;
  transition: opacity 1s 1s;
}
.card__description-mtc{
  display: block;
font-size: var(--small-font-size);
margin-bottom: .25rem;
}
.card__title-mtc{
  font-size: var(--h2-font-size);
  font-weight: 500;
  color: var(--title-color);
  margin-bottom: .75rem;
}
.card__button-mtc{
  text-decoration:  none;
  font-size: var(--small-font-size);
  font-weight: 500;
  color: var(--first-color);
}
.card__button-mtc:hover{
  text-decoration: underline;
}
.card__article-mtc:hover .card__data-mtc{
  animation: show-data 1s forwards;
  opacity: 1;
  transition: .3s;
}
.card__article-mtc:hover{
  animation: remove-overflow 2s forwards;
}

@keyframes show-data {
  50%{
    transform: translateY(-10rem);
  }
  100%{
    transform: translateY(-7rem);
  }
}
@keyframes remove-overflow{
  to{
    overflow: initial;
  }
}
/* continut ascuns initial */
.extra-content-mtc{
  display: none;
  margin-top: 10px;
  font-size: 16px;
  color: white;
  text-align: justify;
}

/* cand cardul este deschis */
.card__article-mtc.active-mtc{
  overflow: visible;
  z-index: 5;
}

.card__article-mtc.active-mtc .card__data-mtc{
  bottom: 0;
  transform: translateY(0);
  width: 100%;
  height: 100%;
  border-radius: 1.5rem;
  opacity: 1;
  transition: all 0.4s ease;
}

/* afiseaza textul mare */
.card__article-mtc.active-mtc .extra-content-mtc{
  display: block;
}
/* text lung ascuns initial */
.extra-content-mtc{
  display: none;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  color: white;
  display: none;
  margin-top: 10px;
  overflow-y: auto;
  max-height: 150px; /* ajusteaza daca vrei */
}

/* cand cardul este activ */
.card__article-mtc.active-mtc .card__description-mtc,
.card__article-mtc.active-mtc .card__title-mtc,
.card__article-mtc.active-mtc .card__button-mtc{
  display: none;
}

.card__article-mtc.active-mtc .extra-content-mtc{
  display: block;
}
/* TEXTUL LUNG - ascuns initial */


/* Cand apesi pe Citește mai mult */
.card__article-mtc.active-mtc .card__data-mtc{
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  transform: translateY(0);
  opacity: 1;
  border-radius: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* ascunde continutul mic */
.card__article-mtc.active-mtc .card__description-mtc,
.card__article-mtc.active-mtc .card__title-mtc,
.card__article-mtc.active-mtc .card__button-mtc{
  display: none;
}

/* afiseaza doar textul lung */
.card__article-mtc.active-mtc .extra-content-mtc{
  display: block;
}

/* For large devices */
@media screen and (min-width: 1120px) {
  /* .container_mtc {
    height: 100vh;
  } */

  .card__container_mtc {
    grid-template-columns: repeat(3, 1fr);
  }

  .card__img {
    width: 348px;
  }

  .card__data-mtc {
    transition: 
    bottom 0.5 cubic-bezier(0.22,1,0.36,1),top 0.5s cubic-bezier(0.22,1,0,36,1),opacity 0.3s ease;
    width: 316px;
    padding-inline: 2.5rem;
    position: absolute;
    bottom: -9rem;
    opacity: 0;
    border-radius: 1.5rem;
    
    
  }
}

/* Tableta */
@media screen and (max-width: 900px) {
  .card__container_mtc {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Telefon */
@media screen and (max-width: 600px) {
  .card__container_mtc {
    grid-template-columns: 1fr;
  }
}

/* ========== Responsive typography =========
@media screen and (min-width: 1120px) {
  :root {
    --h2-font-size: 1.5rem;
    --small-font-size: .875rem;
  }
} */