h2 {
    font-size: var(--base-h2-font-size);
    color: var(--base-text-color);
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    align-items: start;
}

.main {
    flex: 1;
    padding: var(--base-size-x3) var(--base-size-x10) var(--base-size-x10) var(--base-size-x10);
    background: linear-gradient(180deg, var(--base-background-color) 40%, var(--base-color-light-orange) 70%);
}
@media (max-width: 650px) {
    .main { padding-bottom: 110px; }
    .search-bar-bottom { background: var(--base-color-white); box-shadow: 0 6px 24px #90580522; }
}

/*filter*/
.filterMenu {
    padding: var(--base-size-x2) 0;
}

.FilterSelect {
    padding: var(--base-padding-even);
    color: var(--base-text-color);
    font-size: var(--base-body-font-size);
    background: var(--base-background-color);
    border: solid 0.3px var(--base-color-grey);
    border-radius: var(--base-border-radius-x3);
    margin-right: var(--base-size);
    margin-bottom: var(--base-size);
    cursor: pointer;

    /* Default style арилгах */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Custom dropdown arrow */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right var(--base-size) center;
    background-size: var(--base-size-x3);
    padding-right: var(--base-size-x4);
}

/* Option */
.FilterSelect option {
    background: var(--base-background-color);
    color: var(--base-text-color);
    font-size: var(--base-body-font-size);
    padding: var(--base-padding-even);
    border-radius: var(--base-border-radius-x2);
}

html[data-theme="dark"] .FilterSelect {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f1eeee'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
}

/* Select focus үед */
.FilterSelect:focus {
    outline: none;
    border-color: var(--base-primary-color);
    box-shadow: 0 0 5px var(--base-primary-color);
}

#filterButton {
    background-color: var(--base-color-orange);
    font-weight: normal;
    cursor: pointer;
    color: var(--base-on-accent);
    border: solid 0.3px var(--base-color-grey);
}


.FilterSelect:hover {
    background: var(--base-color-light-orange);
    border-color: var(--base-color-light-orange);
    box-shadow: #000000 0.1rem 0.1rem 0.3rem;
    transition: 0.3s;
}

.select-selected:after {
    position: absolute;
    content: "";
    top: 14px;
    right: 10px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #fff transparent transparent transparent;
}

.price {
    width: 100%;
}


/*search result*/
.container {
    padding: var(--base-size-x2) 0;
}

.tutors-box {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 22%));
    grid-template-rows: auto;
    justify-content: space-between;
    align-items: stretch;
    flex-wrap: wrap;
    justify-items: stretch;
    align-items: stretch;
}

.tutors-box a {
    width: 100%;
    height: 100%;
    color: var(--base-text-color);
    align-items: stretch;
}

.tutorCard {
    display: flex;
    flex-direction: column;
    gap: var(--base-size);
    align-items: stretch;
    height: 100%;
    width: 100%;
}

.tutorImage {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: var(--base-border-radius-x2);
    aspect-ratio: 1 / 1;
}

.tutorImage img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--base-transition);
}

.tutors-box a:hover {
    .tutorImage img {
        scale: 1.05;
    }
}

.tutorCard h3 {
    font-size: var(--base-h4-font-size);
    padding: 0 var(--base-size-x2);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutorCard p {
    padding: 0 var(--base-size-x2);
    font-size: var(--base-caption-font-size);
    display: flex;
    align-items: center;
    gap: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tutorCard span {
    font-size: var(--base-caption-font-size);
}

.tutorDescription {
    
}

#starsNumber {
    font-weight: var(--base-bold-font-weight);
}

@media (max-width: 900px) {
    .tutors-box {
        grid-template-columns: repeat(2, minmax(0, 46%));
        gap: var(--base-size-x2);
        grid-template-rows: auto;
    }
}

@media (max-width:500px) {
    .filterMenu {
        font-size: xx-small;
    }
}

@media (max-width: 470px) {
    .main {
        padding: 0 var(--base-size-x2) var(--base-size-x4);
    }
}
