@import url('./colors.css');

.card p {
  color: var(--color-secondary);
  font-size: initial;
}

.card-services {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 300px;
  height: 420px;
  border-radius: 10px;
  background: var(--color-white);
  transition: all 0.4s;
  overflow: hidden;
}

.card-services-2 {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 280px;
  height: 310px;
  border-radius: 10px;
  background: var(--color-white);
  transition: all 0.4s;
  overflow: hidden;
}

.card-services .card-img,
.card-services-2 .card-img {
  min-height: 180px;
  max-height: 180px;
}

.card-services .card-img img,
.card-services-2 .card-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 180px;
  border-bottom-right-radius: 60%;
  border-bottom: 5px solid var(--color-primary);
}

.card-services .card-body,
.card-services-2 .card-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--color-white);
}

.card-services .card-body .title,
.card-services-2 .card-body .title {
  color: var(--color-primary);
  text-align: center;
  font-weight: 400 !important;
  font-size: 1.3rem;
  font-family: 'Oswald', sans-serif;
}

.card-services .card-body p,
.card-services-2 .card-body p {
  min-height: 100px;
  text-align: center;
  font-size: 1.05em;
  font-family: revert;
  font-weight: 500 !important;
  overflow: hidden;
}

.card-services:hover,
.card-services-2:hover {
  transform: translateY(-10px);
  transition: all 0.4s;
}

/* Card projects */

#card-projects {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-black-transparent);
  width: 400px;
  height: 250px;
}

/* Card clients */

.card-clients {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--color-white);
  width: 300px;
  height: 150px;
  border: 2px solid var(--color-secondary) !important;
  transition: all 0.4s;
  overflow: hidden;
}

.card-clients:hover {
  border: 2px solid var(--color-primary) !important;
}

.card-clients .card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
}

.card-clients .card-img {
  width: 100%;
  height: 100%;
}

.card-clients .card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(100%) brightness(100%);
  transition: filter 0.3s ease;
}

.card-clients:hover .card-img img {
  filter: grayscale(0%) contrast(1) brightness(1);
}

/* Página de clientes */

.clients {
  border: 2px solid var(--color-primary);
  background: var(--color-bg-grey);
}

.clients .card {
  max-width: 289px;
  min-width: 289px;
  min-height: 180px;
  max-height: 180px;
  border: 2px solid transparent;
  transition: all 0.4s;
}

.clients .card .client-image-container {
  max-width: 289px;
  height: 200px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.clients .card .client-image-container img {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  transform: scale(1);
  transition: all 0.4s;
}

.clients .card:hover .client-image-container img {
  filter: grayscale(0%);
}

/* Principles */

.card-about .card {
  background: none;
  border: none;
}

.card-about .card-body .card-text {
  margin: 0;
}

.card-about .card .card-body {
  background: var(--color-bg-grey-light);
}

.card-about .card .card-body p {
  text-align: justify;
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
  font-size: initial !important;
}

.card-about .card .card_icon img {
  max-height: 100px;
}

/* Cards Blog */

.blog .card {
  max-height: 280px;
  min-height: 280px;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  background: var(--color-white);
  overflow: hidden;
  box-shadow: 5px 5px 16px -4px rgba(0, 0, 0, 0.397);
}

.blog .card .card-image {
  width: 100%;
  min-width: 300px;
  max-width: 300px;
}

.blog .card .card-body {
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: content !important;
  align-items: flex-start;
}

.blog .card .card-body {
  width: 100%;
  flex: content !important;
}

.blog .card .card-body .title p {
  font-size: 22px !important;
  color: var(--color-primary);
}

.blog .card .date {
  position: absolute;
  top: 10px;
  left: 10px;
  font-size: 15px;
  color: var(--color-white);
}

.blog .card .card-body .desc p {
  text-align: justify;
  color: var(--color-secondary);
  font-size: 16px !important;
}

/* Testimonial */

.testimonial .card {
  border: none;
  background: var(--color-white);
}

.testimonial .card .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: 150px;
  border-radius: 100%;
  border: 2px solid var(--color-primary);
  background: var(--color-bg-grey-light);
  overflow: hidden;
}

.testimonial .card p {
  color: var(--color-secondary);
  text-align: justify !important;
}
