/*************************************************************
 * SEARCH RESULTS PAGE — IAI
 * -----------------------------------------------------------
 * Matches the structure of search.php and partials/search/*
 * No border-radius, clean layout, no external frameworks.
 *************************************************************/

/* -----------------------------------------------------------
   HERO
----------------------------------------------------------- */
.neo-search-wrapper {
  display: none !important;
}
.search-hero {
  padding: 8rem 0 40px;
}

.search-hero .search-title {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #000;
}

.search-hero .search-title span {
  color: #0050ff;
}

.search-hero .search-total-count {
    font-size: 3rem;
    margin-top: 0;
    color: #000;
    text-align: center;
    margin-bottom: 0;
}

/* -----------------------------------------------------------
   TABS
----------------------------------------------------------- */
.search-tabs {
  margin-top: 35px;
}

.search-tabs-list {
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
  list-style: none;
  border-bottom: 0;
  justify-content: center;
}

.search-tab-item a {
  display: inline-block;
  padding: 10px 4px 14px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.4rem;
  border-bottom: 3px solid transparent;
}

.search-tab-item.is-active a {
  border-bottom-color: #0050ff;
  color: #0050ff;
}

/* -----------------------------------------------------------
   RESULTS WRAPPER
----------------------------------------------------------- */
.search-results-section {
  padding: 40px 0 80px;
}

.search-results-list{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.search-result-card{
  border-bottom:1px solid #e6e6e6;
  padding-bottom:16px;
}

.search-result-card-inner{
  display:grid;
  grid-template-columns: 180px 1fr;
  gap:20px;
  align-items:start;
}

.search-result-thumb a{
  display:block;
}

.search-result-thumb-img{
  width:100%;
  height:120px;
  object-fit:cover;
  display:block;
  border:1px solid #e6e6e6;
}

.search-result-meta{
  margin-bottom:6px;
}


.search-result-item{
  position: relative;
}

.search-result-link-overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:block;
}

.search-result-item a,
.search-result-item button,
.search-result-item input,
.search-result-item textarea,
.search-result-item select{
  position: relative;
  z-index: 3;
}

.search-result-type{
  font-size:0.85rem;
  opacity:0.75;
}

.search-result-title{
  margin:0 0 8px;
}

.search-result-excerpt p{
  margin:0;
}

/* Standard row style (product/news/press) */
.search-result {
	position: relative;
	border-bottom: 1px solid #e6e6e6;
	padding-bottom: 0;
}

/* animated blue line */
.search-result::after {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	bottom: -1px;               /* sits over the existing border */
	height: 2px;
	width: 0;
	background: var(--global-color-blue);
	transition: width 0.35s ease;
}

/* hover animation */
.search-result:hover::after {
	width: 100%;
}




.search-result:last-child {

}

.search-result-inner {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

/* LEFT SECTION (Title + excerpt) */
.search-result-main {
  width: 75%;
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 50px;
}

.search-result-title {
  font-size: 20px;
  font-weight: 600;
  margin-inline-end: auto;
  width: 25%;
}

.search-result-title a {
  color: #0050ff;
  text-decoration: none;
}

.search-result-title a:hover {
  text-decoration: underline;
}

.search-result-excerpt {
    font-size: 1.2rem;
    line-height: 1.45;
    margin-top: 10px;
    color: #000;
    width: 60%;
}

/* -----------------------------------------------------------
   META (news + press)
----------------------------------------------------------- */
.search-result-meta {
  margin: 5px 0 12px;
  font-size: 14px;
  color: #777;
  display: none;
  width: 80%;
}

/* -----------------------------------------------------------
   DOMAINS (PRODUCT ONLY)
----------------------------------------------------------- */
.search-result-domains {
  display: flex;
  flex-direction: row;
  gap: 25px;
  min-width: 150px;
  color: blue;
}

.search-domain-item {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-direction: column;
}

.search-domain-item span.search-domain-icon {
  width: 40px;
  height: 40px;
  display: block;
  background-size: 40px;
}
.search-domain-label {
      font-size: 1.3rem;
  font-weight: 500;
  color: #000;
}

/* -----------------------------------------------------------
   NO RESULTS
----------------------------------------------------------- */
.search-no-results {
  padding: 40px 0;
  text-align: center;
  color: #666;
  font-size: 18px;
}

/* -----------------------------------------------------------
   PAGINATION
----------------------------------------------------------- */
.search-pagination {
  margin-top: 50px;
  text-align: center;
}

.search-pagination ul.page-numbers {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 12px;
}

.search-pagination a.page-numbers,
.search-pagination span.page-numbers {
  padding: 8px 14px;
  text-decoration: none;
  color: #0050ff;
  border: 1px solid #ccc;
  font-weight: 500;
}

.search-pagination span.current {
  background: #0050ff;
  color: #fff;
  border-color: #0050ff;
}

/* -----------------------------------------------------------
   RESPONSIVE
----------------------------------------------------------- */
@media (max-width: 900px) {
  .search-result-inner {
    flex-direction: column;
  }

  .search-result-main {
    width: 100%;
  }

  .search-result-domains {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
  }

  .search-domain-item {
    flex: 0 0 auto;
  }
}

@media (max-width: 600px) {
  .search-tabs-list {
    gap: 16px;
    flex-wrap: wrap;
  }

  .search-tab-item a {
    font-size: 14px;
    padding-bottom: 10px;
  }

  .search-result-title {
    font-size: 18px;
  }

  .search-result-excerpt {
    font-size: 14px;
  }
}

/* END OF RESULT STYLES */
/* ----------------------------------------------------------- */

/* START OF SEARCH WIDGET STYLES */
/* ----------------------------------------------------------- */



div#search-modal {
  position: fixed;
  height: auto;
  width: 100%;
  z-index: 9999;
  background-color: var(--global-color-blue);
  top: 0;
  display: none;
  padding: 10vh 0;
}
button.search-modal-close {
  position: absolute;
  inset-inline-end: 10px;
  font-size: 5rem;
  font-weight: 100;
  top: 5px;
  height: 50px;
  padding: 0;
  line-height: 0;
}
div#search-modal .container {
  max-width: var(--content-width);
  margin-inline: auto;
  padding-inline: 16px;
  background-color: transparent;
}

.search-modal-content h2 {
  color: #fff;
  margin-bottom: 2rem;
}
.search-modal-content h3 {
  color: #fff;
  margin: 40px 0 25px;
  font-size: 1.8rem;
}
input.search-field {
  width: 75%;
  border-radius: 30px !important;
  padding-block: 10px 10px !important; padding-inline: 65px 25px !important;
  color: var(--global-color-blue) !important;
  font-weight: 500;
}

button.search-submit {
  color: var(--blue);
  position: absolute;
  inset-inline-start: 0;
  background: transparent;
}
button.search-modal-close:hover,
button.search-submit:hover {
  background: transparent;
}
form.search-form {
  position: relative;
}
.search-field::placeholder {
  color: #0050ff;
  font-weight: 500;
}
.popular-search-terms ul {
  display: flex;
  list-style-type: none;
  margin: 0 0 10px;
  gap: 10px;
  max-width: 35%;
  flex-wrap: wrap;
}

.popular-search-terms ul li a {
  color: #fff;
  border: 1px solid;
  padding: 3px 10px;
  display: block;
  font-size: 85%;
}
.popular-search-terms ul li {
  margin-bottom: 0;
}
div#search-modal-results {
  display: flex;
}
div.search-modal-col {
  width: calc(25% - 20px);
}

div#search-modal-results {
  display: flex;
  justify-content: space-between;
  max-width: 80%;
}
#search-modal-results.is-loading:before {
  content: "Loading…";
  position: absolute;
  color: #fff;
  opacity: 0;
  animation: fadePulse 1.2s infinite ease-in-out;
}

@keyframes fadePulse {
  0% {
    opacity: 0.2;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0.2;
  }
}
.modal-search-no-results {
  margin-top: 40px;
  color: #fff;
}
article.modal-search-item {
  color: #fff;
  border-bottom: 1px dotted;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
}

article.modal-search-item h4 {
  color: #fff;
  font-size: 1.4rem;
  width: calc(100% - 110px);
  line-height: 1.2;
  margin-bottom: 0;
  text-transform: lowercase;
}

article.modal-search-item h4::first-letter {
	text-transform: uppercase;
}

p.modal-search-excerpt {
  display: none;
}

.modal-search-thumb img {
  width: 71px;
  height: 71px;
  object-fit: fill;
}

article.modal-search-item a {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
article.modal-search-item a:hover {
  opacity: 0.8;
}

/* END OF SEARCH WIDGET STYLES */
/* ----------------------------------------------------------- */
/* START OF 404 page */
/* ----------------------------------------------------------- */
.error404 .site-content,
.error404 .container {
  width: auto;
  max-width: none;
}
.error404 .header-navigation .neo-search-wrapper {
  display: none;
}
section.error404 {
  background-image: url(../images/404_banner.jpg);
  width: 100%;
  height: calc(100vh - 64px);
  position: relative;
  top: 64px;
  background-size: cover;
  background-attachment: fixed;
}
.rel-container {
  max-width: var(--content-width);
  margin: 0 auto;
}
.massage-404 h1,
.massage-404 h2,
.massage-404 p {
  color: #fff;
}
.massage-404 h1 {
  font-size: 10rem;
  font-family: "Rajdhani";
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0;
}
.massage-404 h2 {
  font-size: 3rem;
  line-height: 1;
}
a.button-404 {
  background: #fff;
  padding: 20px 40px;
  font-weight: 500;
}
.massage-404-wrapper {
  position: absolute;
  width: 60%;
  top: 0;
  bottom: 0;
  margin: auto;
  height: fit-content;
  inset-inline-start: 0;
  inset-inline-end: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.neo-404 .neo-search-wrapper {
  position: relative;
  top: 0;
  inset-inline-end: 0;
}
.neo-404 .neo-search-wrapper .neo-search {
  font-size: 25px;
  width: 250px;
  height: 250px;
}
.neo-search:hover {
  background-color: #000 !important;
}
/* ----------------------------------------------------------- */
/* END OF 404 page */
/* ----------------------------------------------------------- */
/* START OF CONTACT PAGE */
/* ----------------------------------------------------------- */
section.contact-wrapper {
  background-color: var(--global-color-blue);
  background-image: url(../images/Isolation_Mode.png);
  color: #fff;
  padding: 10vh 0;
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 15%;
}
:where([dir="rtl"]) section.contact-wrapper {
  background-image: url(../images/Isolation_Mode-rtl.png);
  background-position: center left;
}
.contact-breadcrumbs p#breadcrumbs a {
  color: #fff;
}
.page-template-page-contact div#content {
  padding-bottom: 0;
}
.page-template-page-contact div#content h2 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 0;
}
section.contact-wrapper .entry-content {
  max-width: 90%;
  margin: 0 auto;
  padding: 0 20px;
}
.page-template-page-contact .gform_heading {
  line-height: 1.2;
}
section.contact-wrapper .entry-content h6 {
  color: #fff;
  line-height: 1.2;
}

section.contact-wrapper .entry-content h6 a {
  color: #fff;
  text-decoration: underline;
}
section.contact-wrapper .floating-label {
  color: #fff !important;
}
section.contact-wrapper
  #gform_wrapper_2
  .ginput_container.has-floating-label
  input {
  color: #fff !important;
}
section.contact-wrapper #gform_wrapper_2 .gform_footer {
  display: flex;
  justify-content: flex-start;
  margin-top: 0;
  padding-top: 10px;
}
section.contact-wrapper form#gform_2 {
  max-width: 55%;
}
section.contact-wrapper #gform_submit_button_2 {
  position: relative;
  background: #fff;
  color: var(--blue);
  border: none;
  padding: 12px 40px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 0;
}
section.contact-wrapper #gform_submit_button_2:hover {
  background: #fff;
}
section.contact-wrapper #gform_wrapper_2 .validation_message {
  color: #fff !important;
}

/* ----------------------------------------------------------- */
/* media queries */
/* ----------------------------------------------------------- */
@media (max-width: 900px) {
  section.contact-wrapper form#gform_2,
  section.contact-wrapper .entry-content {
    max-width: 100%;
  }
  section.contact-wrapper {
    background-color: var(--global-color-blue);
    background-image: url(../images/Isolation_Mode.png);
    color: #fff;
    padding: 5vh 0;
    background-repeat: no-repeat;
    background-position: 100% 30%;
    background-size: 27%;
  }
  :where([dir="rtl"]) section.contact-wrapper {
    background-position: 0% 30%;
  }
}

/* hide globe decoration on mobile */
@media (max-width: 768px) {
  section.contact-wrapper,
  :where([dir="rtl"]) section.contact-wrapper {
    background-image: none;
  }
}


@media (max-width: 768px) {
	    .search-modal-content h2 {
			font-size: 1.5rem;
			padding: 1rem;
		}
		
		.search-modal-content input.search-field {
			width: 100%;
	    }
		
		div#search-modal-results {
			display: flex;
			justify-content: space-between;
			max-width: 100%;
			flex-direction: column;
		}
		
		div.search-modal-col {
			width: 100%;
		}
		
		
		  .search-modal-content {
			max-height: 100dvh; /* dynamic viewport height (iOS-safe) */
			overflow: hidden;  /* prevent double scroll */
			display: flex;
			flex-direction: column;
		  }

		  .search-modal-results {
			flex: 1 1 auto;
			overflow-y: auto;
			-webkit-overflow-scrolling: touch; /* smooth iOS scrolling */
		  }		
	
		.popular-search-terms ul
		 {
			display: flex;
			list-style-type: none;
			margin: 0 0 10px;
			gap: 15px;
			max-width: max-content;
			flex-wrap: wrap;
			flex-direction: row;
		}	
		
		article.modal-search-item h4 {
			font-size: 100%;
			width: calc(100% - 110px);
			line-height: 1.2;
			margin-bottom: 0;
		}	

		.search-modal-content h3 {
			color: #fff;
			margin: 24px 0 25px;
			font-size: 100%;
		}		
		
		.modal-search-thumb img {
			width: 50%;
			height: auto;
			object-fit: fill;
		}		
	
		img:is([sizes=auto i],[sizes^="auto," i]) {
			contain-intrinsic-size: auto 18rem;
		}	
		
		
		article.modal-search-item a:hover {
			opacity: 1;
		}		
	
	
	
	
	
}
