/* Ajax-Search Results */

#ajax-search-form {
    margin-bottom: 20px;
		margin-top: 5px;
}

@media (max-width: 768px) {
	#ajax-search-form {
		margin: 20px;
	}
}


#ajax-pagination {
    display: flex;
    justify-content: center;
    margin: 20px auto;       /* Ensures the container is treated as a block element */
}

.ajax-search-form-btn, #ajax-search-reset {
/*     border-radius: 5px;
    margin: 22px 0px 0px 0px !important;
    padding: 10px 40px !important; */
	background: #396d7a;
    border-radius: 0;
    padding: 4px 25px;
	margin-top: 25px;
    margin-left: 0 !important;
    margin-right: 0 !important;
	width: auto;
	height: auto;
	border: none;
    color: #fff;
    font-weight: 400;
    font-size: 16px;
	vertical-align: middle;
    line-height: 1.42857143;
    text-align: center;
    white-space: nowrap;
    min-width: auto;
	cursor: pointer;
    text-shadow: none;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);
	
	
}

html[lang="ar"] .ajax-search-form-btn, #ajax-search-reset {
	margin-right: 20px !important;
}

.ajax-search-form-btn:hover, #ajax-search-reset:hover {
    background: #ad7c27 !important;
}

.ajax-form-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* Allows elements to wrap to the next line if needed */
}

.ajax-form-group, .submit-btn, .reset-btn{
/*     margin-right: 15px; */
/*     min-width: 150px;  Prevents elements from shrinking too much */
/*     border-radius: 5px; */
	position: relative;
    padding-right: 15px;
    padding-left: 15px;
}


.ajax-search-header{
	display: inline-block;
    font-weight: 700;
    margin-bottom: 5px;
    max-width: 100%;
    color: #343434;
}


.form-control {
    display: block;
    width: 100%;
    height: 34px;
    padding: 2px 5px;
    font-size: 14px;
    line-height: 1.42857143;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    -webkit-transition: border-colorease-in-out .15s, -webkit-box-shadowease-in-out .15s;
    -o-transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
    transition: border-colorease-in-out .15s, box-shadowease-in-out .15s;
}

.ajax-input-group {
    display: flex;
    align-items: center;
}

.ajax-form-group:last-child {
    margin-right: 0;
}

/* Responsive Styles */
@media (max-width: 550px) {
    .ajax-form-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .ajax-form-group {
        width: 100%;
        margin-bottom: 15px;
    }
    .ajax-form-group:last-child {
        margin-bottom: 0;
    }
    .ajax-input-group {
        width: 100%;
    }
    .ajax-input-group img {
        margin-left: auto;
    }
    .ajax-page-btn {
        font-size: 1em !important;
    }
    .ajax-page-btn.previousnext {
        width: 100px !important;
    }
}

.ajax-post-item {
    display: flex;
    background: #f5f5f5 none;
    padding: 12px 0;
    width: 100%;
    clear: both;
    overflow: hidden;
}

.ajax-post-item:nth-child(2n) {
    background: #e9e9e9 none;
}


.ajax-post-thumbnail, .ajax-project-carousel {
/*   margin-right: 10px;
  width: 25%;
	height: 100%; */
	display: block;
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
    box-sizing: border-box;
    border-spacing: 0px;
    unicode-bidi: isolate;
}

@media (min-width: 992px) {
    .ajax-post-thumbnail {
        width: 16.66666667% !important;
    }
	.ajax-post-content {
        width: 83.33333333% !important;
    }
	
	.ajax-project-carousel {
		width: 25%;
	}
}

@media (min-width: 768px) {
    .ajax-post-thumbnail {
        width: 25%;
    }
	.ajax-post-content {
        width: 75%;
    }
	
	.ajax-project-carousel {
		width: 50%;
	}
}

.ajax-post-thumbnail img, .ajax-project-carousel-slide img {
    margin-bottom: 0;
    width: 100% !important;
    height: auto !important;
    max-width: 100%;
    vertical-align: middle;
    box-sizing: border-box;
}

html[lang="ar"] .ajax-post-thumbnail, .ajax-project-carousel {
	margin-right: 0;
	margin-left: 10px;
}

.ajax-post-content {
    position: relative;
    min-height: 1px;
    padding-right: 15px;
    padding-left: 15px;
}

.ajax-post-title a {
    text-decoration: none !important;
	text-transform: capitalize !important;
	color: #396d7a !important;
}

.ajax-post-title {
    margin-bottom: 10px !important;
	margin-top: 0;
}


.ajax-post-content p {
    margin-bottom: 10px !important;
		font-size: 1.5rem;
}

.ajax-post-excerpt {
    margin: 5px 0;
		
}

.pull-left{
	float: left !important;
}

.pull-right{
	float: right !important;
}

.ajax-post-date {
    color: #6E83AA;
		font-size: 1.5rem;
}

.ajax-read-more-button {
    display: inline-block;
    background: #396d7a;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 14px;
    border: none;
    font-weight: 400;
    padding: 4px 10px !important;
    border-radius: 0;
    white-space: nowrap;
    margin: 0;
    height: auto;
    min-width: auto;
    text-shadow: none;
    line-height: 1.42857143;
}

.ajax-read-more-button:hover{
	text-decoration: underline !important;
	background: #ad7c27;
    color: #fff !important;
}

html[lang="ar"] .ajax-read-more-button {
	margin-left: 0;
	margin-right: auto;
}


.ajax-page-btn {
    background: none no-repeat scroll left top #396d7a;
    border: 1px solid #396d7a;
    border-radius: 0;
    color: #fff;
    filter: none !important;
    float: left;
    font-size: 14px;
    font-weight: 400;
    height: 30px !important;
    line-height: 24px;
    margin: 0 10px 0 0;
    padding: 2px 0;
    position: relative;
    text-align: center;
    text-decoration: none;
    width: 24px;
	cursor: pointer;
}

/* Disabled Buttons */
.ajax-page-btn.disabled {
    color: #777 !important;
    text-decoration: none !important;
    cursor: default !important;
	background: none;
}

/* .ajax-page-btn:hover {
    background: #2b84ff;
		color: #fff
} */

/* .ajax-page-btn.active {
    background: #2b84ff;
		color: #fff
} */

.ajax-page-btn.previous {
	border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
    margin-left: 0;
	width: 10%;
}

html[lang="ar"] .ajax-page-btn.previous{
	border-bottom-left-radius: 0px;
    border-top-left-radius: 0px;
	border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
}

.ajax-page-btn.next {
	border-bottom-right-radius: 4px;
    border-top-right-radius: 4px;
	width: 10%;
}

html[lang="ar"] .ajax-page-btn.next{
	border-bottom-right-radius: 0px;
    border-top-right-radius: 0px;
	border-bottom-left-radius: 4px;
    border-top-left-radius: 4px;
}


@media only screen and (max-width: 768px) {
    .ajax-post-item {
        display: block;
/* 			justify-self: center !important; */
        height: auto !important;
/*         max-height: none !important; */
				margin:3% !important;
    }
    
    .ajax-post-thumbnail, .ajax-project-carousel {
        width: 100%;
        margin-bottom: 10px;
        height: 100% !important;
		margin-right:0px !important;
    }
    
    .ajax-post-thumbnail img {
        width: 100%; 
	}

    .ajax-post-title {
        margin-bottom: 10px; 
		line-height: 1.2 !important;
		font-size: 22px;
    }
	
	.ajax-post-date {
		margin-top: 15px !important;
      margin-bottom: 10px; 	
    }

    .ajax-read-more-button {
        display: block;
        margin-bottom: 10px;
        margin-top: 5px !important;
    }
}
/* End of Ajax-Search Results */