.carousel {
  /*max-width: 1200px;*/
  margin: 50px auto;
  overflow: hidden; 
  display: block; /* Adjust this */
  position: relative;
  width: 100%; 
}

.carousel-cell {
  width: 25%; /* 4 cards at once */
  height: 400px;
  margin-right: 10px;
  overflow: hidden;
  /*transition: width 0.3s, background-color 0.3s, margin-left 0.3s;*/
  flex-grow: 1 !important;
    transition: flex-grow 0.3s; 
}

.card {
  height: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  /*background-color: #fff;*/
  position: relative;
  transition: background-color 0.3s;
}

.card-content {
  padding: 20px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 60px;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 433px;
}
  
 
.card-left {
  display: block; /* Making it visible by default */
}
.carousel-cell:hover .hover-image {
    opacity: 1;
    margin-top: 0 !important;
    top: 5%;
    left: 10%;
}


.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0); 
  transition: background-color 0.3s;
}

.hover-image {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 238px;
  height: 200px;
  opacity: 0; /* Default to invisible */
  transition: opacity 0.3s;
}

.carousel-cell:hover .card::before {
  background-color: white;
}
.card-right {
  display: none;
}

.carousel-cell:hover {
  width: 51%;
  background-color: #eaeaea;
  /*margin-left: -25%; */
   flex-grow: 2; 
   z-index: 10;
}



.carousel-cell:hover .card-right {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 50%;
  padding: 20px;
  /*background-color: rgba(255, 255, 255, 0.8); */
}

/*.carousel-cell:hover img {*/
/*  opacity: 0.1;*/
/*}*/

button {
  cursor: pointer;
}




/*.carousel-cell .card-content {*/
/*  display: flex; */
/*  justify-content: space-between;*/
/*}*/

.card-left {
  display: block; 
  flex: 1; 
}

.card-right {
  display: block; /* Always visible */
  flex: 1; /* Take available space */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s; /* Transition for opacity */
}

.carousel-cell:hover .card-right {
  opacity: 1; /* Show the right content on hover */
}

.learn-more-btn {
   
    padding: 10px 20px;
    text-decoration: none;
    position: absolute;
    z-index: 2; 
    bottom: 40px; 
    right: 20px;   
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--cello-900, #0D1B2D);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px; 
}
.learn-more-btn svg {
    display: flex;
    width: 24px;
    height: 24px;
    justify-content: center;
    align-items: center;
}
          

.learn-more-btn:hover {
    color: black;
}
.card-left h3 {
    color: var(--neutral-900, #171717);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 24px; /* 150% */
}
.card-left p {
    color: var(--neutral-900, #171717);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 23px;
    font-style: normal;
    font-weight: 600;
    line-height: 32px; 
   width: 268px;
	padding-right: 20px;
}


 p.text{
     opacity: 0;
 }

.carousel-cell:hover p.text {
    opacity: 1;
    width: 309px;
    padding-right: 2%;
    padding-top: 10%;
    height: auto;
	color:#171717;
}
.close-slide {
    display: none; }
/*IPAD*/
@media (max-width: 768px) { 
    .carousel-cell {
    width: 50%;}
.carousel-cell:hover {
    width: 70%;}
}



@media (max-width: 640px) {
  /* Make sure the card fully occupies the viewport */
  .carousel-cell {
    width: 90%;
     height: 400px !important;
     margin-left: 16px;
  }
  .carousel-cell:hover {
    width: 90%;
     height: 400px !important;
     margin-left: 16px;
  }
.carousel-cell.expanded {
    height: auto;
    position: fixed !important;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 90%;
    height: 400px !important;
}



  .carousel-cell.expanded:hover .card {
    height: auto; 
  }

  .close-slide {
    display: block; /* Make the close button always visible on mobile */
  }
  
  .carousel-cell:hover .card-right {
    top: 67%;
    bottom: 0;
    left: 0;
}
 
 .hover-image img {
    height: 186px !important;
    width: 200px;
}


.carousel-cell:hover .hover-image {
    top: 100%;
    left: 1%;
}
.learn-more-btn {
    bottom: -155px;
}


.carousel-cell:hover p.text {
   		width: 251px;
   		font-size: 12px;
    	line-height: 16px;
	
}
	.card-left p {
			font-size: 20px;
			width: 230px;
			line-height: 28px;
			padding-right:0;
	}
.card-content {
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    height: 245px;
}
.close-slide {
    display: none; 
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 10px;
    color: black;
    cursor: pointer;
    z-index: 2; /* Place it on top of other content */
}
.carousel-cell:hover .close-slide {
    display: block;
}


	.card-left h3 {
		font-size: 14px;
		font-style: normal;
		font-weight: 500;
		line-height: 20px;
	}

}



