/* --- MAIN GRID LAYOUT --- */
.custom-amelia-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	width: 100%;
}

.custom-amelia-card {
	flex: 1 1 calc(33.333% - 14px); 
	border-radius: 12px;
	padding: 30px 24px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.custom-amelia-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

/* Alternating Colors for Grid Cards */
.custom-amelia-card:nth-child(odd) {
	background-color: #d3ebf6;
}
.custom-amelia-card:nth-child(even) {
	background-color: #e7f5f9;
}

/* Card Header (Image + Title) */
.custom-amelia-card-header {
	display: flex;
	align-items: center;
	gap: 15px;
}

.custom-amelia-grid-img {
	width: 65px;
	height: 65px;
	border-radius: 50% !important;
	object-fit: cover;
	background-color: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	flex-shrink: 0;
}

.custom-amelia-title {
	color: #00344C;
	font-size: 22px;
	font-weight: 600;
	margin: 0;
	padding: 0;
	border: none;
}

.custom-amelia-desc {
	color: #66696E;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
	margin: 0;
}

/* Read More Link styling */
.custom-amelia-readmore {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #66696E;
	font-size: 16px;
	margin-top: auto; /* Pushes the button to the bottom of the card */
}

/* Mobile Adjustments for Main Grid */
@media (max-width: 768px) {
	.custom-amelia-card {
		flex: 1 1 100%;
	}
}

/* --- POPUP / MODAL STYLES --- */
.amelia-cat-modal-overlay {
	display: none;
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 99999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.amelia-cat-modal-content {
	background-color: #def0f7;
	border-radius: 12px;
	width: 100%;
	max-width: 900px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 40px;
	position: relative;
	box-sizing: border-box;
}


.amelia-modal-close {
	position: absolute;
	top: 20px;
	right: 25px;
	font-size: 28px;
	cursor: pointer;
	color: #00344C;
	line-height: 1;
}

/* Modal Header (Image + Title) */
.amelia-modal-header {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 30px;
}

.amelia-modal-img {
	width: 100px;
	height: 100px;
	border-radius: 50% !important;
	object-fit: cover;
	background-color: #fff;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.amelia-modal-title {
	color: #00344C;
	font-size: 28px;
	font-weight: 600;
	margin: 0;
}

.amelia-modal-subtitle {
	color: #00344C;
	font-size: 18px;
	font-weight: 600;
	margin: 0 0 15px 0;
}

.amelia-modal-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
	margin-bottom: 40px;
}

/* Service Item Formatting inside Modal */
.amelia-modal-service-pill {
	color: #383838;
	padding: 15px 20px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 300;
	text-align: left;
}

/* Alternating backgrounds for the service pills */
.amelia-modal-service-pill:nth-child(odd) {
	background-color: #e6f5f9;
}
.amelia-modal-service-pill:nth-child(even) {
	background-color: #f1fcff;
}

.amelia-modal-book-btn {
	display: block;
	width: 100%;
	background-color: #279bc3;
	color: #ffffff !important;
	text-align: center;
	padding: 18px 0;
	border-radius: 8px;
	font-size: 18px;
	font-weight: 600;
	text-decoration: none !important;
	transition: background 0.2s;
}

.amelia-modal-book-btn:hover {
	background-color: #1e81a5;
}

@media (max-width: 768px) {
	.amelia-modal-services-grid {
		grid-template-columns: 1fr;
	}
	.amelia-cat-modal-content {
		padding: 25px;
	}
}
