.milestone-wrap {
  width: 100%;
  display: flex;
  flex-wrap: nowrap; /* ensures single row */
  gap: 1rem;
  padding: 1rem 0;
  align-items: flex-start;
 /*
border: 1px solid #fa0a10;
*/
}

.milestone-intro {
  flex: 0 0 20%;
  max-width: 20%;
  text-align: right;
}

.milestone-intro h5 {
  margin: 80px 0 5px;
  line-height: 1.6;
  font-size: 1.2rem;
  font-weight: 600;
  color: #5b57a6;
}

.milestone-cards {
  flex: 0 0 77%;
  max-width: 77%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));	
overflow: hidden !important;
}

.milestone-cards .tiles {
	display: flex;
	transition: transform 0.5s ease;
	gap: 30px;
	padding: 1rem 8px;
}

.milestone-cards .tile {
  flex: 0 0 auto;
  width: 300px; /* or whatever fixed width you want */
   background: #fff !important;
  border-radius: 10px;
border: 1px solid #dfdfdf;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.milestone-card {
  flex-grow: 1;
  display: flex !important;
  flex-direction: column;
  height: 100%;
}

.thumbnail img {
  width: 100%;
  height: auto;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  border-radius: 10px 10px 0 0;
  margin-bottom: 1rem;
  padding: 0;
}

.milestone-info {
  flex-grow: 1;
  padding: 10px 0;
  text-align: center;
}

.milestone-info .title h4 {
  font-size: 1.7rem;
 font-weight: 600;
  color: #5b57a6;

}
.milestone-info .place{
  font-size: 1rem;
  color: #757575;
}

.milestone-icons {
	width: 50%;
  margin: 0 auto; 
 margin-top: 30px;
padding: 15px 0 5px;
  display: flex;
  justify-content: center;
  gap: 12px;
 border-top: 1px solid #dfdfdf;
text-align: center;
}

.milestone-details-btn,
.btn-details {
  background-color: #dcdcdc;
  color: #5b57a6;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  font-weight: bold;
  border-radius: 0 0 10px 10px;
  transition: background 0.3s, color 0.3s;
  cursor: pointer;
 border-top: 2px solid #bebebe;
}

.milestone-details-btn:hover,
.btn-details:hover {
  background: #f0556c;
  color: #ffffff;
}
#nav-buttons {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
  margin-left: auto;
  gap: .5rem;
}

.milestone-nav .nav {
	height: 32px;
	width: 32px;
	border-radius: 5px;
	padding: 3px;
	margin: 0;
	margin-right: 0.5rem;
	background-color: #f0556c;
	cursor: pointer;
}

.milestone-nav .nav:hover {
	background-color: #ed3336;
	}
	
#nav-buttons .icon{
  background-color: #ffffff;
}


@media (max-width: 600px) {
	  .milestone-wrap {
	    flex-direction: column;
	  }
	
	  .milestone-intro {
	    max-width: 100%;
	    width: 100%;
	    text-align: center;
	    padding: 1rem 0;
	  }

	  .milestone-cards {
		max-width: 100%;
		width: 100%;
		padding: 1rem;
		gap: 1rem;
	  }

	.milestone-intro h5{
		margin: 10px 5px;
		font-size: 1.2rem;
		line-height: 1;
		text-align: center;
	  }
	.milestone-intro h5 br {
	    display: none;
	  }
	.milestone-cards .tile {
	  flex: 0 0 100%; /* full width for mobile */
	}
	#nav-buttons {
	    margin-top: 1rem;
	    text-align: center;
	  }
}
