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

/* Lançamentos */

.card {
  border-radius: 0 !important;
}

.card-releases {
  width: 100%;
  height: 280px;
  background-color: var(--color-white);
  border: none;
  border-radius: 0 !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  box-sizing: border-box;
  text-align: center;
  pointer-events: none;
  transition: transform 0.3s ease;
}

.card-releases-body {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex-grow: 1;
  width: 100%;
}

.card-releases-img {
  padding: 5px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-releases-img img {
  max-height: 100%;
  object-fit: contain;
  max-width: 100%;
}

.card-releases-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.card-releases-info p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
  color: var(--color-secondary);
}

.card-releases-info .fw-bold {
  min-height: 38px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  text-align: center;
}

.card-releases-info .text-secondary:not(.fw-bold) {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Principles */

#card-principle .card {
  background: none;
  border: none;
}

#card-principle .card .card-body {
  background: var(--color-tertiary);
}

#card-principle .card .card-body .card-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 130px;
}

#card-principle .card .card-body .title-principles {
  font-size: clamp(1.5rem, 2.8vw, 50px);
  font-weight: bold;
}

#card-principle .card .card-body .sub-title-principles {
  font-weight: bold;
}

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

#card-principle .card .card-icon img {
  max-height: 100px;
}

/* Differences */

#card-differences .card {
  background: none;
  border: none;
}

#card-differences .card-body .card-text {
  margin: 0;
}

#card-differences .card .card-body {
  text-align: center;
  min-height: 100px;
  background: none !important;
}

#card-differences .card .card-body p {
  min-height: 150px;
  max-height: 150px;
  overflow-y: auto;
  font-size: initial !important;
}

#card-differences .card .card-body h4 {
  font-weight: 600;
}

#card-differences .card img {
  max-height: 70px;
}

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

/* Cards suppliers */

#card-supplier {
  overflow: hidden;
  cursor: pointer;
  border: none;
  background-color: var(--color-white);
}

#card-supplier .card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 0 !important;
}

#card-supplier .card-body {
  padding: 1rem;
}

#card-supplier .card-title {
  font-weight: 600;
  font-size: 1.1rem;
  color: #222;
}

#card-supplier p {
  font-size: 0.875rem;
  color: #555;
  margin-bottom: 0.25rem;
}

.no-suppliers-message {
  padding: 2rem 1rem;
  margin: 2rem auto;
  max-width: 400px;
  border: 1px solid #ddd;
  background-color: #f9f9f9;
  color: #555;
  font-size: 1.2rem;
  text-align: center;
  border-radius: 0.5rem;
  font-weight: 500;
}
