/* Paleta de Cores */

:root {
  --color-primary: #001b54 !important;
  --color-primary-dark: #fff !important;
  --color-secondary: #2a2a2a !important;
  --color-bg-grey-light: #f7f7f7 !important;
  --color-bg-transparent: #ffffffcf !important;
  --color-border-grey: #ececec !important;
  --color-white: #fff !important;
  --color-black: #000000 !important;
}

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

#card-services {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  background: var(--color-white);
  overflow: hidden;
}

#card-services-2 {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  border-radius: 10px;
  background: var(--color-white);
  height: 330px;
  overflow: hidden;
}

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

#card-services .card-img img,
#card-services-2 .card-img img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  max-height: 210px;
  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: flex-start;
  align-items: center;
  text-align: center;
  color: var(--color-white);
}

#card-services .card-body p,
#card-services-2 .card-body p {
  text-align: justify;
  font-size: 1.05em;
  font-family: revert;
  font-weight: 500 !important;
}

/* 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;
}

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

#card-clients .card-body {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 150px;
  height: auto;
}

#card-clients .card-body .card-img {
  max-width: 150px;
  height: auto;
}

#card-clients .card-img img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

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

/* Clients */

#clients {
  border: 2px solid var(--color-primary);
  background: var(--color-secondary);
}

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

#clients .card .card-body img {
  object-fit: cover;
  max-height: 150px;
  filter: grayscale(100%);
  transform: scale(0.9);
  transition: all 0.4s;
}

#clients .card:hover .card-body img {
  filter: grayscale(0%);
  transform: scale(1);
  transition: all 0.4s;
}

#clients .card:hover {
  border: 2px solid var(--color-primary);
  transition: all 0.4s;
}

/* 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;
}

#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);
}

#card-lawyer .card {
  background: transparent !important;
}

#card-lawyer .card-header {
  width: 250px;
  height: 250px;
  border: 2px solid var(--color-white);
  transition: all 0.4s;
  cursor: pointer;
  overflow: hidden;
}

#card-lawyer .card-header:hover {
  border: 2px solid var(--color-primary);
  transition: all 0.4s;
}
