/* File: css/custom-search-page-styles.css */

.custom-search-page-wrapper {
  /* padding: 3.25rem 2.5rem 2.1857rem 2.5rem; */
	padding-top: 3.25rem;
	padding-bottom: 8.6875rem;
}

.inner-padding {
  padding: 2rem 7rem;
}

.desktop-margin {
  margin-left: 13.5rem;
}

#custom-search-page-form {
/*   display: flex;
  padding: 1.5rem 2.5rem;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
  align-self: stretch; */
}

.custom-search-form-group {
/*   display: flex;
  align-items: center;
  align-self: stretch;
  height: 2.8125rem;
  border-bottom: solid 1px #D6D6D6; */
}

#custom-search-page-input {
/*   border: none;
  color: var(--Color-Content-Secondary, #363636);
  margin-left: 20px; */
}

html[lang="ar"] #custom-search-page-input {
/*   margin-left: unset;
  margin-right: 20px; */
}

#custom-search-page-input::placeholder {
/*   color: var(--Color-Content-Tertiary, #6B6B6B); */
}

#custom-search-page-input:focus {
  /* color: #F86142; height: 4.5rem; */
}

#search-form-closing-btn {
/*   cursor: pointer;
  display: flex;
  padding: 16px 24px;
  align-items: center;
  gap: 8px;
  border-radius: var(--Radii-Full, 1000px);
  border: 2px solid var(--Color-Content-Buttons-Outline-Idle, #0D0D0D);
  margin-left: auto; */
/* 	display: inline-block !important; */
}

html[lang="ar"] #search-form-closing-btn {
/*   margin-left: unset;
  margin-right: auto; */
}

.custom-search-summary {
    margin-top: 20px;
}

#loading-results-container,
#empty-result-container {
	color: var(--Color-Content-Secondary, #363636);
    display: flex;
    align-items: center;
    gap: 1rem;
}

#loading-results-container img {
  width: 2rem;
  height: 2rem;
}

.custom-search-previous-searches-header {
  color: var(--Color-Content-Tertiary, #6B6B6B);
  margin-bottom: 1.5rem;
}

#previous-searches-tags {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
	padding:0;
}

.previous-search-tag {
  display: flex;
  padding: var(--Spacing-M, 16px) var(--Spacing-XL, 24px);
  align-items: center;
  gap: 8px;
  border-radius: var(--Radii-Full, 1000px);
  background: var(--Color-Buttons-Background-Secondary-Idle, #F4F4F4);
  color: var(--Color-Content-Secondary, #363636);
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  width: auto;
  max-width: 100%;
}

.previous-search-tag .remove-search {
  width: 24px;
  height: 24px;
  aspect-ratio: 1/1;
  cursor: pointer;
	display:flex;
}
@media(max-width:768px){
	.previous-search-tag{
		gap:5.160px;
	}
.previous-search-tag .remove-search {
  width: 16px;
  height: 16px;
 }
	#previous-searches-tags{
		gap:0.6451875rem;
	}
}

.custom-search-page-quick-links-header {
  color: var(--Color-Content-Tertiary, #6B6B6B);
}

.quick-links-list {
  list-style: none;
  padding-left: 0;
}

html[lang="ar"] .quick-links-list {
  padding-right: 0;
}

.quick-link-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  margin-bottom: 1rem;
}

.quick-link-item span {
  color: var(--Color-Content-Secondary, #363636);
  margin: 0 2.5rem;
}

.quick-link-item img {
  width: 5.5rem;
  height: 4.5rem;
  border-radius: var(--Corner-Full, 1000px);
  background: #E2E2E2;
  flex-shrink: 0;
}

.quick-link-content {
  display: flex;
	text-decoration: none;
	max-width: 90%;
}

.quick-link-content span {
	/** white-space: nowrap;      /* force text to stay in one line */
	overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    max-width: 100%;
    align-self: center;
    max-height: calc(2 *var(--Type-Header-Header-4-Lineheight) * var(--Type-Header-Header-4-Size));
}

.quick-links-read-more-link {
/*   display: flex;
  padding: 11px 16px;
  height: 44px;
  align-items: center;
  gap: 8px;
  border-radius: var(--Radii-Full, 1000px);
  border: 2px solid var(--Color-Content-Buttons-Outline-Idle, #0D0D0D); */
	margin-left: auto;
}

html[lang="ar"] .quick-links-read-more-link {
	margin-left: unset;
	margin-right: auto;
}

.quick-links-read-more-link svg {
/*   width: 24px;
  height: 24px;
  aspect-ratio: 1/1; */
}

/** Search Result container **/

#custom-search-page-results {
  padding: 0 7rem;
}

.custom-search-results-number {
  color: var(--Color-Content-Tertiary, #6B6B6B);
  padding-bottom: 1rem;
}

.post-type-tabs {
  display: flex;
  padding: 2.5rem 0;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  align-self: stretch;
}

.post-type-tab {
  display: flex;
  padding: var(--Spacing-M, 16px) var(--Spacing-XL, 24px);
  align-items: center;
  gap: 8px;
  border-radius: var(--Radii-Full, 1000px);
  background: var(--Color-Buttons-Background-Secondary-Idle, #F4F4F4);
  border: none;
  color: #0D0D0D;
  font-size: 20px;
  font-style: normal;
  font-weight: 500;
  line-height: 30px;
  white-space: nowrap;
  width: auto;
  max-width: 100%;
}

.post-type-tab.active {
  background: var(--Color-Buttons-Background-Primary-Idle, #03231B);
  color: var(--Color-Content-Buttons-Primary-Idle, #FFF);
}

.search-result-item {
  border-bottom: 1px solid #ddd;
  padding: 15px 0;
}

.search-result-item.last-post {
  border: none !important;
}

.search-result-item-flex-1 {
  display: flex;
/*   justify-content: space-between; */
  align-items: center;
}

.search-result-item img {
  object-fit: fill;
  width: 11rem;
  height: 8rem;
  border-radius: var(--Radii-XL, 2rem);
  margin-right: 2.5rem;
}

html[lang="ar"] .search-result-item img {
  margin-right: 0;
  margin-left: 2.5rem;
}

.custom-search-post-type,
.custom-search-post-date {
  color: var(--Color-Content-Tertiary, #6B6B6B);
}

.search-result-info h3 {
/*   height: 28px; */
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;
  overflow: hidden;
  color: var(--Color-Content-Primary, #0D0D0D);
  text-overflow: ellipsis;
}

.custom-search-excerpt {
/*   height: 56px; */
  flex: 1 0 0;
  overflow: hidden;
  color: var(--Color-Content-Tertiary, #6B6B6B);
  text-overflow: ellipsis;
}

.search-result-info .custom-search-post-tags span {
  background: #f2f2f2;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  font-size: 13px;
}

html[lang="ar"] .custom-search-read-more {
  right: unset;
  left: 0;
}

.custom-search-post-tags {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  align-self: stretch;
  margin-bottom: 1.0625rem;
	width: 79.66%;
	padding: 0;
}
@media(max-width:48rem){
	width: 100%;
}

.search-result-item-flex-2 {
	width: 79.66%;
}

.custom-search-post-tag {
  display: flex;
  padding: 10px 16px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  border-radius: 60px;
  border: 1px solid var(--Text-tertiary, #C0C0C0);
  background: var(--BG-primary, #FFF);
  white-space: nowrap;
  width: auto;
  max-width: 100%;
}

#custom-search-page-pagination {
  display: flex;
  overflow: hidden;
}

.prev-next-container,
.pages-buttons-container {
  display: flex;
  gap: 13px;
}
@media(max-width:48rem){
	.prev-next-container,
	.pages-buttons-container {
	  gap: 8px;
	}
}

.pages-buttons-container {
  margin-left: auto;
}

html[lang="ar"] .pages-buttons-container {
  margin-left: 0;
  margin-right: auto;
}

.ajax-page-btn {
	cursor: pointer;
}
/* .ajax-page-btn {
  display: flex;
  width: 62px;
  padding: var(--Spacing-M, 16px) var(--Spacing-XL, 24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 90px;
  background: #F4F4F4;
  border: none;
} */

/* .previousnext {
  background: #fff;
  border-radius: var(--Radii-Full, 1000px);
  border: 2px solid var(--Color-Border-Secondary, #363636);
} */

/* .ajax-page-btn.active,
.ajax-page-btn:hover {
  background-color: #222C28;
  color: #fff;
} */

/* .previousnext.active,
.previousnext:hover {
  background-color: #EA5A14;
  color: #fff;
  border: none;
}

.previousnext:hover svg path {
  stroke: white;
}

.ajax-page-btn.disabled {
  cursor: not-allowed;
} */



/** mobile CSS **/

@media (max-width: 768px) {
	.custom-search-wraper {
		padding: 0;
	}
  #custom-search-page-input {
    font-size: 20px;
  }

  .custom-search-read-more {
    border-radius: none;
    background: none;
  }

  #custom-search-page-form,
  #custom-search-page-results {
    padding: 0;
  }

  #custom-search-page-form {
    padding-bottom: 0.75rem;
  }

  .inner-padding {
    padding: 0.875rem 0;
  }

  .custom-search-page-wrapper {
    padding: 20px;
  }

  .custom-search-form-group {
    padding-bottom: 0.75rem;
  }

  .previous-search-tag {
    font-size: 0.75rem;
    padding: 0.625rem;
  }

  .remove-search svg {
    width: 15px;
    height: 15px;
  }

  .quick-links-list {
    margin: 0;
  }

  .quick-links-list img {
    width: 3.75rem;
    height: 3rem;
    border-radius: 750px;
  }

  .quick-links-read-more-link {
    display: block;
    padding: 0;
    border: none;
    border-radius: 0;
  }

	.quick-link-item {
	margin-right: 1.25rem;
	}

  .quick-link-item span {
    margin: 0 0.625rem;
    color: var(--Color-Content-Secondary, #363636);
  }

  #search-form-closing-btn {
    padding: 12px 18px;
  }

  #search-form-closing-btn svg {
    width: 16px;
    height: 16px;
  }

  .post-type-tabs {
    padding: 1.875rem 0;
  }

  .post-type-tab {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 400;
  }

  .search-result-item img {
    width: 4rem;
    height: 3.5rem;
    margin-right: 1rem;
  }

  .custom-search-post-type,
  .custom-search-post-date {
    font-size: 0.75rem;
  }

  .search-result-info h3 {
    font-size: 1rem;
    height: 41px;
  }

  .custom-search-excerpt {
    font-size: 0.875rem;
    height: 35px;
  }

  .custom-search-post-tag {
    padding: 8px 12px;
    color: var(--Text-primary, #26251A);
  }

  .ajax-page-btn {
    width: 2.25rem;
    padding: 4px 13px;
  }

  .ajax-page-btn svg {
    width: 15px;
    height: 15px;
  }
}
