/* General */
body {
    font-family: Arial, sans-serif;
    background: #ffffff;
    color: #202124;
    margin: 0;
    padding: 0;
    position: relative;
}

/* Header */
header {
    background: #ffffff;
    position: sticky;
    top: -60px;
    left: 0;
    z-index: 999;
    /* border-bottom: 1px solid #3c4043; */
}

.header{
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 10px 5%;
    position: relative;

}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #202124;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

}


.g1 { color: #4285F4; } /* blue */
.g2 { color: #EA4335; } /* red */
.g3 { color: #FBBC05; } /* yellow */
.g4 { color: #4285F4; } /* blue */
.g5 { color: #34A853; } /* green */
.g6 { color: #EA4335; } /* red */
.profile img {
    max-width: 32px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #5f6368;
}


@media(min-width:1024px){
  .logo{
    position: static;
    transform: none;
  }
  body{
    padding-left: 150px;
  }
  header{
    top: 0;
    border: 0px;
  }
  .header{
    justify-content: space-between;
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    padding: 0 40px;
    background: #ffffff;
    transform: translateX(-150px) translateY(-50%);
  }
  .search-bar{
    position: relative;
    z-index: 2;
  }

  .header::after{
    position: absolute;
    height: 1px;
    background: #dadce0;
    width: 100dvw;
    content: "";
    bottom: -15px;
    left: 0;
  }

  .search-bar{
    border-bottom: 0px solid transparent !important;
  }

}

/* Search Bar */
.search-bar {
    display: flex;
    /* justify-content: center; */
    padding: 15px 5%;
    border-bottom: 1px solid #dadce0;
}

.search-bar input {
    width: 100%;
    max-width: 80dvw;
    padding: 10px 15px;
    padding-left: 40px;
    border-radius: 25px;
    border: 1px solid #dadce0;
    outline: none;
    background: #ffffff;
    color: #202124;
    font-size: 16px;
}

.search-parent{
  position: relative;
  width: 100%;
  max-width: 700px;
}

.search-parent img{
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 0px;
  transform: translateY(-50%);
  height: 25px;
  object-fit: contain;
}

.search-parent svg{
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
  object-fit: contain;
}



/* Tabs */

.tabs-wrapper {
    position: relative;
    padding: 0 5%;
}

.tabs-wrapper::after{
    content: "";
    position: absolute;
    bottom: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: #dadce0;
}


.tabs-wrapper::-webkit-scrollbar {
    display: none;
}



.tabs-container {
    overflow: auto;
}

.tabs-container::-webkit-scrollbar {
    display: none;
}
.tabs {
    display: flex;
    margin-top: 10px;
}


.tabs .tab {
    white-space: nowrap;
    font-size: 16px;
    margin: 5px 15px;
    padding: 10px 0;
    cursor: pointer;
    color: #5f6368;
}

.tabs .tab.active {
    border-bottom: 3px solid #1a73e8;
    font-weight: bold;
}

/* Results */
.results {
    max-width: 700px;
    margin: 20px 0;
    padding: 0 5%;
    overflow-x:auto ;
}



.results-list{

}

.results .info {
    margin-bottom: 10px;
    font-size: 14px;
    color: #9aa0a6;
}

.results .sponsored {
    font-weight: bold;
    margin-bottom: 25px;
    color: #2e2e2e;
    position: relative;
}

.results .sponsored::after{
    content: '';
    position: absolute;
    bottom: -10px;
    background: #e4e6e8;
    width: calc(100% + 10%);
    left: -5%;
    height: 5px;
}

.results-list .result-item:nth-child(1)::after{
  background: none;
}

.results-list .result-item:last-child{
  padding-bottom: 0 !important;
}


/* Result items */
.result-item {
  padding: 15px 0;
    margin-bottom: 25px;
    position: relative;
}

.result-item::after{
  content: '';
  position: absolute;
  top: -15px;
  background: #e4e6e8;
  width: calc(100% + 10%);
  left: -5%;
  height: 10px;
}

@media(min-width:700px){
  .results .sponsored::after{
    display: none;
  }
  .result-item{
    padding-bottom: 0 !important;
  }
  .result-item::after{
    display: none;
  }
}

.result-item-head{
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.result-item-head-content{
    display: flex;
    flex-direction: column;
}

.result-item .url {
    font-size: 14px;
    color: #006621;
    margin-bottom: 2px;
    word-break: break-all;
}

.result-item a {
    display: block;
    text-decoration: none;
    color: #1a0dab;
    font-size: 18px;
    margin-bottom: 5px;
}

.result-item p {
    font-size: 14px;
    color: #4d5156;
    line-height: 1.5;
}

/* Responsive */

.related-searches {
    padding: 24px 5%;
    border-top: 1px solid var(--border);
  }
  
  .related-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 16px;
  }
  
  .service-grid {
    display: flex;
    overflow: auto;
    max-width: 700px;
    gap: 12px;
    margin-bottom: 24px;
  }

  .service-grid::-webkit-scrollbar {
    display: none;
  }
  
  .service-item {
    text-align: center;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .service-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 6px;
    background: #fff;
  }
  
  .suggestion-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 700px;
    width: 100%;
    gap: 12px;
  }
  .service-item span {
    display: -webkit-box;
    -webkit-line-clamp: 3;   /* кількість рядків */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  
  .suggestion-list li {
    display: flex;
    padding: 12px 16px;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    background: #f1f3f4;
    color: #202124;
    border-radius: 8px;
    color: var(--link);
    cursor: pointer;
    -webkit-line-clamp: 2;
    overflow-wrap: break-word;
    font-family: Google Sans, Arial, sans-serif;
    font-size: 16px;
  }

  .suggestion-list li svg{
    width: 16px;
    height: 16px;
    min-width: 16px;
    color:var(--link);
    /* filter: brightness(0) saturate(100%) invert(100%) sepia(93%) saturate(0%) hue-rotate(201deg) brightness(106%) contrast(106%); */
  }
  
  .suggestion-list li:hover {
    text-decoration: underline;
  }
  
  .pagination {
    max-width: 700px;
    padding: 24px 5%;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 16px
  }
  
  .pagination-label {
    display: block;
    text-align: center;
    font-size: 32px;
    color: var(--accent);
    margin-bottom: 8px;
    font-weight: bold;
    letter-spacing: 1px;
  }
  
  .pagination-pages {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
  }
  
  .pagination-pages div {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    background: var(--input-bg);
    border: 1px solid transparent;
  }
  
  .pagination-pages .next {
    font-weight: bold;
    color: var(--accent);
  }
  

  .js-reshafle{
    cursor: pointer;
  }

.g { color: #4285F4; }

.yellow { color: #FBBC05; }

.blue { color: #4285F4; }

.green { color: #34A853; }

.red { color: #EA4335; }