/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Child theme for GeneratePress
 Author:       Your Name
 Author URI:   https://yourwebsite.com
 Template:     generatepress
 Version:      1.0
*/

/* Add your custom CSS below */

/*fiters wraper css */
.filters-wrapper {
    display: flex;
    gap: 20px;
	flex-wrap: wrap;
}

select {
    width: 100%
}

/* Wrapper using flexbox */
.posts-loop-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 30px; /* space between items */
	margin: 40px 0;
}

/* Each post item */
.post-loop-item {
	flex: 1 1 calc(33.333% - 30px); /* 3 per row with gap */
	max-width: calc(33.333% - 30px);
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

/* Hover effect */
.post-loop-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Image container */
.post-image-container {
	width: 100%;
	aspect-ratio: 16/9; /* keeps image ratio consistent */
	overflow: hidden;
}

.post-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.post-loop-item:hover .post-image-container img {
	transform: scale(1.05);
}

/* Title */
.post-title {
	font-size: 20px;
	font-weight: 600;
	color: #007b83; /* teal like screenshot */
	margin: 20px 20px 10px;
	line-height: 1.4;
	transition: color 0.3s ease;
}

/* .post-title:hover {
	color: #004f56;
} */

/* Description */
.description-post {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin: 0 20px 20px;
  flex-grow: 1;

  display: -webkit-box;
  -webkit-line-clamp: 3;   /* show only 3 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* Link button */
.post-link-address {
	display: inline-block;
	margin: 0 20px 20px;
	color: #007b83;
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: all 0.3s ease;
	width: fit-content;
}

.post-link-address:hover {
	border-bottom: 1px solid #007b83;
}

span.dots {
    color: #29b1cc;
}
.pagination-navigation {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
}

.ss_search_btn{
	background: #0073aa;
	color: #fff;
	border: none;
	padding: 8px 14px;
	border-radius: 6px;
	cursor: pointer;
}
.ss_search_reset{
	background: #777;
	color: #fff;
	padding: 9.25px 15px;
	border-radius: 6px;
	text-decoration: none;
}
.ss_search_input{
	padding: 8px;
	width: 65%;
	max-width: 400px;
	margin-right: 10px;
}
.ss_search_option{
	padding: 8px;
	width: 200px;
	margin-right: 10px;
}
.ss-rehab-search-bar{
	margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
	.post-loop-item {
		flex: 1 1 calc(50% - 30px);
		max-width: calc(50% - 30px);
	}
}

@media (max-width: 768px) {
	.filters-wrapper {
		flex-direction: column;
	}
	.post-loop-item {
		flex: 1 1 100%;
		max-width: 100%;
	}
	.ss-rehab-filter {
		flex-direction: column;
		align-items: stretch;
	}
	.ss_search_option,
	.ss_search_input{
		width: 100%;
		margin-top: 15px;
	}
	.ss_search_btn{
		margin-top: 15px;
	}
	.ss_search_reset{
		margin-top: 15px;
	}
}