/* Card */
.image-card {
  height: 510px;
  position: relative;
  overflow: hidden;
}

/* Background layer */
.image-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.1);
  transition: transform 0.4s ease;
  z-index: 0;
}

.swiper {
  border-radius: 20px;
  overflow: hidden;
  margin-left:60px;
  margin-right:60px;
  background-color: black;
}

.image-card:hover::before {
  transform: scale(1.01);
}

/* Overlay */
.image-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--overlay-color, rgba(0,0,0,0.35));
  color: #fff;
  padding: 30px;
  mix-blend-mode: multiply;
  transition: background 0.3s ease-in-out;
}
.card-starting-content{
    position: absolute;
    inset: 0;
    z-index: 2;
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}
.image-card__hover-layer{
    position: absolute;
    inset: 0;
    z-index: 5;
    color: #fff;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    transform: scale(0.9);
    transform-origin: bottom; 
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    border-style: solid;
    border-width: 0 0 6px 0;
    border-color: #18437D;
}

/* Title */
.image-card__title {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}
.image-card-p {
    font-family: Arial, sans-serif;
    font-size: 1.1em;
    line-height: 1.3em;
    color: white;
}
.image-card__icon {
  width: 80px;
  height: auto;
  margin-bottom: 14px;
}
/* Hover content */
.image-card__hover {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.5s ease-in-out, max-height 0.7s ease-in-out;
}
.image-card:hover .image-card__overlay {
  background: var(--bg-color, rgba(0,0,0,0.80));
  background: rgba(0,0,0,0.80);
}

.card-link-full{
  display: block;
  text-decoration: none;
}

.image-card:hover .image-card__hover {
  opacity: 1;
  max-height: 510px;
}

.image-card:hover .image-card__hover-layer {
  opacity: 1;
  transform: scale(1);
}
.image-card:hover .card-starting-content {
  opacity: 0;
  transform: translateY(-20px);
}

.card-link-text{
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    color:#18437D;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
}
.card-link-text:hover{
    color: white;
}

.swiper-button-prev,
.swiper-button-next {
  position: absolute !important;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;   /* make sure they are on top */
}
.slider-container{
    position: relative;
}
/*MOBILE*/
.cards-mobile {
  display: none;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.card-mobile-link-area{
    text-decoration: none !important;
}
.card-mobile-item {
  position: relative;
  height: 160px;
  padding: 20px;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
}
.card-icon-mobile {
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  z-index: 10;
}
.card-title-mobile {
  margin: 0;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 1em;
  font-weight: 600;
  text-align: left;
  z-index: 9;
  color: white;
}
/* RESPONSIVE */
@media (max-width: 767px) {
    .slider-container{
        display: none;
    }
    .cards-mobile{
        display: grid;
    }
}