/* Simple Cards v2 Module - Grid Layout with Hover Reveal */

#simple-cardsv2 {
  padding: 4vw;
  background-color: #fff;
}

.simple-cardsv2__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 4vw;
}

@media screen and (min-width: 60em) {
  .simple-cardsv2__container {
    padding: 0 2rem;
  }
}

.simple-cardsv2__header {
  text-align: center;
  margin-bottom: 3rem;
}

.simple-cardsv2__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 500;
  color: #162f47;
  margin: 0 0 1rem 0;
  line-height: 1.2;
}

.simple-cardsv2__description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: #555;
  margin: 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.simple-cardsv2__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: stretch;
}

@media screen and (min-width: 48rem) {
  .simple-cardsv2__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

 
	
}

@media screen and (min-width: 64rem) {
  .simple-cardsv2__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

}

.simple-cardsv2__item {
  position: relative;
  display: flex;
  flex-direction: row;
  background-color: #fff;
  overflow: hidden;
  border-bottom: 1px solid #e0e0e0;
  transition: border-color 0.3s ease;
  padding-bottom: 1.5rem;
}

.simple-cardsv2__item:hover {
  border-bottom-color: #2d7aa8;
}

.simple-cardsv2__image {
  width: 115px;
  height: 115px;
  flex-shrink: 0;
  overflow: hidden;
  background-color: #e8e8e8;
  position: relative;
  margin-right: 1.5rem;
  border-radius:4px;
}

.simple-cardsv2__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.simple-cardsv2__item:hover .simple-cardsv2__image img {
  transform: scale(1.05);
}

.simple-cardsv2__content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  position: relative;
  justify-content: center;
}

.simple-cardsv2__card-title {
  font-size: 1.55rem;
  font-weight: 500;
  color: #2d7aa8;
  margin: 0 0 0.75rem 0;
  line-height: 1.3;
  transition: color 0.3s ease, margin 0.3s ease;
  text-align: left;
}

.simple-cardsv2__item:hover .simple-cardsv2__card-title {
  color: #83c6d8;
}

.simple-cardsv2__card-text {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #666;
  margin: 0;
  flex: 1;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.simple-cardsv2__item:hover .simple-cardsv2__card-text {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 1rem;
}

.simple-cardsv2__item:hover .simple-cardsv2__card-title {
 /* margin-top: -1.5rem;
  margin-bottom: 0.75rem;*/
}

.simple-cardsv2__card-text p {
  margin: 0 0 0.75rem 0;
  color: #666;
}

.simple-cardsv2__card-text p:last-child {
  margin-bottom: 0;
}

.simple-cardsv2__link {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: #2d7aa8;
  text-decoration: none;
  margin-top: auto;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease;
}

.simple-cardsv2__item:hover .simple-cardsv2__link {
  opacity: 1;
  max-height: 50px;
  margin-top: 1rem;
}

.simple-cardsv2__link:hover {
  color: #1a5a7a;
  text-decoration: underline;
}
