.solutions-tab-container {
  	margin: 2.25rem auto;
}

/* Primary Tabs */
.solutions-tabs-nav {
	max-width: 83.33%;
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	padding: 0.55rem 0.45rem;
	margin: 0 auto 2.5rem;
	background: #fff;
	border-radius: 999px;
	background-image: linear-gradient(rgb(255, 255, 255) 0%, rgb(245, 245, 245) 100%);
	box-shadow: rgba(0, 0, 0, 0.23) 0px 0.6px 1.79px -1.19px, rgba(0, 0, 0, 0.21) 0px 1.81px 5.43px -2.38px, rgba(0, 0, 0, 0.17) 0px 4.79px 14.36px -3.56px, rgba(0, 0, 0, 0.01) 0px 15px 45px -4.75px;
	-webkit-overflow-scrolling: touch;
}

.solutions-tabs-nav::-webkit-scrollbar { display: none; }
.solutions-tab-item {
	flex: 0 0 auto;
	padding: 0.75rem 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	border-radius: 999px;
	/*  border:0.08rem solid rgba(0, 0, 0, 0.03); */
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.1s ease-in-out, box-shadow 0.1s ease-in-out;
	transform-origin: center center;
	color: #003249;
	font-weight: 600;
}

.solutions-tab-item:hover {
	border-radius: 999px;
	background: #E5F7FA;
	transform: scale(0.97);
	box-shadow:
    inset 0 1px 1px rgba(0, 0, 0, 0.03),
    inset 0 1px 1px rgba(0, 0, 0, 0.02),
    /* A very subtle outer edge highlight so it still “pops” on the container */
    0 1px 0 rgba(255, 255, 255, 0.2);
}

.solutions-tab-item.active {
	/* Make the background a solid white (or very light gray) so the inset shadow is visible */
	background: #fff;
	/* Inset shadows to simulate a pressed/concave look */
	box-shadow:
	inset 0 2px 1px rgba(0, 0, 0, 0.07),
	inset 0 1px 1px rgba(0, 0, 0, 0.04),
	/* A very subtle outer edge highlight so it still “pops” on the container */
	0 1px 0 rgba(255, 255, 255, 0.4);
	color: #033249;
	transform: scale(0.97);
}

/* Content */
.solutions-tabs-content {
  	/* margin-top: 3rem; */
}

.solutions-tab-pane {
  	display: none;
}

.solutions-tab-pane.active {
  	display: block;
}

/* Sub-tabs Nav */
.solutions-sub-tabs-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

  /* hide all sub-tab panes by default */
.solutions-sub-tab-pane {
  	display: none;
}

/* only show the one with “.active” */
.solutions-sub-tab-pane.active {
  	display: block;
}

.solutions-sub-tab-item {
    background: transparent;
    padding: 0.75rem 1rem 0.75rem 0;
    border-radius: 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s, scale 0.3s;
    border-bottom-width: 0px;
    border-left-width: 1px;
    border-right-width: 0px;
    border-style: solid;
    border-top-width: 0px;
    border-color:  #D1F1EF;
}
  
.solutions-sub-tab-item h3 {
    font-weight:500 !important;
    padding-left: 1rem;
    color: #0E1326;
}

.solutions-sub-tab-item:not(.active) h3 {
    /* color: #9ba1a8; */
   color:rgba(45, 50, 71, 0.97);
}

.solutions-sub-tab-item p {
    margin: 0.25rem 0 0;
    padding-left: 1rem;
    display: none;
}

.solutions-sub-tab-item:hover {
    background: color(display-p3 0.387 0.834 0.715 / 08%)
}

.solutions-sub-tab-item:hover h3 {
 	font-weight:500 !important;
}
 
.solutions-sub-tab-item.active {
	/* background: color(display-p3 0.932 0.948 0.977 / 100%);
	box-shadow: rgba(0, 0, 0, 0.13) 0px 0.6px 1.79px -1.19px, rgba(0, 0, 0, 0.11) 0px 1.81px 3.43px -1.38px, rgba(0, 0, 0, 0.07) 0px 2.79px 8.36px -1.56px, rgba(0, 0, 0, 0.01) 0px 5px 25px -4.75px;
	border-radius: 0.5rem; */
	border-bottom-width: 0px;
	border-color:  #0E1326;
	border-left-width: 1px;
	border-right-width: 0px;
	border-style: solid;
	border-top-width: 0px;
	background: color(display-p3 0.932 0.948 0.977 / 47%);
	padding-top:1.5rem;
	padding-bottom:1.5rem;
 }

.solutions-sub-tab-item.active h3,
.solutions-sub-tab-item.active p {
	margin:0;
}

.solutions-sub-tab-item.active p {
    display: block;
}

.rivel-solutions-tab::before {
  content: "";
  display: inline-block;
  width: 1em;
  height: 1em;
  margin-right: 0.095rem;
  opacity: 0.6;
  vertical-align: middle;
  background: url('/assets/img/brand/rvl-icon-mc-i.png') no-repeat center/contain;
}

.rivel-solutions-tab.active::before {
	opacity: 1;
}





/* Added by Megan for new column layout */

.r-solutions {
	display: flex;
	justify-content: center;
	gap: 30px;
}


.solutions-card {
  background-color: color(display-p3 0.387 0.834 0.715 / 12%);
  border-radius: 1.25rem;
  padding: 1.75rem 1.75rem 0 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; 
  overflow: hidden;
}

.solutions-card h3 {
	min-height: 2.5em;
}

.solutions-card h3 span {
	font-weight:300;
	display: block;
}

/*
.solutions-card p {
	min-height: 7em;
}*/

.solutions-card .card-image-container img {
	height: 184px;
	max-height:190px;
}

.solutions-container {
  border-radius: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1; 
  overflow: hidden;
}

@media (max-width: 768px) {
  .r-solutions {
    flex-direction: column;    
    gap: 20px;                 
  }
  .solutions-card {
    padding: 1rem 1rem 0 1rem;    
  }
  .solutions-title {
    font-size: 1.25rem;      
  }
}

/* END MEGAN ADDED */

	
@media (min-width: 768px) {
	
	.solutions-tab-pane h2 {
		max-width:54%;
	}

	/* make the nav + content row use space-between */
	.solutions-tab-pane > .d-flex.flex-md-row {
    	justify-content: space-between;
  	}

  	/* 45% width for the sub-tab nav */
  	.solutions-sub-tabs-nav {
    	flex: 0 0 47.5%;
		max-width: 47.5%;
  	}

  	.solutions-sub-tabs-content {
		flex: 0 0 47.5%;
		max-width: 47.5%;
		height: 370px;      /* fixes container height */
		position: relative; /* for its children */
		overflow: hidden;   /* crop any overflow */
		border-radius: 20px;
		background: linear-gradient(
		  135deg,
		  rgba(230, 250, 248, 1) 0%,
		  rgba(247, 247, 247, 1) 100%
		    );
	}

	/* fill the square with the active pane */
	.solutions-sub-tab-pane {
	    height: 100%;
  	}

  	/* control the image exactly to avoid jumps */
  	.solutions-image-container {
  		display: flex;
  		align-items: end;
  		justify-content: center;
  		height: 100%;
  	}
  	
  	.solutions-image-container img {
  		height: auto;
		max-height: 440px;
		width: 100%;
		max-width: 570px;
	    object-fit: cover;  /* crop if needed */
	    border-radius: 12px 12px 0 0 ;
	    border:2px transparent;
	    border-top:0;
	    box-shadow: rgba(0, 0, 0, 0.23) 0px -0.6px 1.79px -1.19px, rgba(0, 0, 0, 0.21) 0px -1.81px 5.43px -2.38px, rgba(0, 0, 0, 0.17) 0px -4.79px 14.36px -3.56px, rgba(0, 0, 0, 0.01) 0px -15px 45px -4.75px;
  	}
  	
  	.scroll-cue {
	  	visibility: hidden;
  	}
  	
}

	
@media (max-width: 767.98px) {
	
	.solutions-tab-pane.active .tab-pill {
		font-size: 0.75rem;
	}
	
	.solutions-tab-item:not(.active) {
		background: #E5F7FA;
	}
	
	
	
    .solutions-tabs-nav { 
	    justify-content: start; max-width: 100%;
	    margin-bottom: 2.5rem;
	}
	
    .solutions-sub-tabs-nav {
		flex-direction: row;
		overflow-x: auto;
		gap: 0.75rem;
		padding-bottom: 0.5rem;
		-webkit-overflow-scrolling: touch;
    }
    
    .solutions-sub-tabs-nav::-webkit-scrollbar { display: none; }
    
    .solutions-sub-tab-item {
		flex: 0 0 auto;
		white-space: nowrap;
		display: flex;
		flex-direction: column;
    }
    
  .solutions-tabs-content .solutions-tab-pane {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  .solutions-tabs-content .solutions-tab-pane.active {
    display: flex !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    flex-direction: column;
  }
  
  .solutions-sub-tabs-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .solutions-sub-tab-item {
    flex: 0 0 100%;         /* each item takes full row */
    white-space: normal;    /* allow wrapping */
    padding: 0.5rem 0;          /* give it a bit more breathing room */
  }

  .solutions-sub-tab-item h3,
  .solutions-sub-tab-item p {
    white-space: normal;
    overflow-wrap: break-word;
  }

  /* make sure only the active pane shows */
  .solutions-tabs-content .solutions-tab-pane {
    display: none !important;
  }
  .solutions-tabs-content .solutions-tab-pane.active {
    display: block !important;
  }
  
  
  /* and then your image/container tweaks */
  .solutions-image-container {
    margin-top: 1rem;
  }
  
    .solutions-tabs-wrapper {
	  position: relative;
	  
	}
	
	.scroll-cue {
		visibility: visible;
	  position: absolute;
	  right: -12%;
	  transform: translateX(-50%);
	  bottom: -1.5rem;        /* tweak to sit just below your pill */
	  font-size: 0.75rem;
	  opacity: 1;
	  animation: cue-slide 2s ease-in-out infinite;
	}
	
	/* very subtle side-to-side “breathe” */
	@keyframes cue-slide {
	  0%,100%   { transform: translateX(-50%) translateX(0)    scale(1); }
	  50%       { transform: translateX(-50%) translateX(4px) scale(1.05); }
	}
}