/* font */
@font-face {
    font-family: 'Vazirmatn';
    src: url('/static/font/Vazirmatn[wght].woff2') format('woff2 supports variations'),
    url('/static/font/Vazirmatn[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazirmatn RD';
    src: url('/static/font/Vazirmatn-RD[wght].woff2') format('woff2 supports variations'),
    url('/static/font/Vazirmatn-RD[wght].woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

/* general */
* {
    font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif !important;
}

body {
    background-color: #f8f8f8;
}

h1, h2, h3, h4, h5 {
    font-family: 'Vazirmatn', 'Vazirmatn RD', sans-serif !important;
}

[x-cloak] {
    display: none;
}

/* search bar */
.bg-search-input {
    background-color: #f0f2f5;
}

.search::placeholder {
    font-weight: bold;
}

/* swiper */
.hero-swiper {
    height: 50vh;
}

@media (min-width: 768px) {
    .hero-swiper {
        height: 70vh;
    }
}

.logo-swiper .swiper-slide {
    box-shadow: none !important;
}

.hero-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-swiper {
    padding-bottom: 3.5rem !important;
    overflow: visible;
}

.slider-swiper .swiper-slide {
    width: max-content !important;
    height: auto;
    border-radius: 0.75rem;
    background-color: white;
    overflow: hidden;
    border: solid 1px rgba(221, 221, 221, 0.1);
    box-shadow: 0 5px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.71);
}

.slider-swiper .swiper-pagination-bullet {
    background: #e5e7eb !important;
    opacity: 1;
}

.slider-swiper .swiper-pagination-bullet-active {
    background: #213045 !important;
}

.htmx-indicator {
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
    opacity: 1;
    pointer-events: auto;
}

/* animaition */
@keyframes orbit {
    0% {
        transform: translateX(0px) scale(1) translateZ(100px);
        z-index: 20;
        opacity: 1;
    }
    25% {
        transform: translateX(180px) scale(0.7) translateZ(0);
        z-index: 10;
        opacity: 0.8;
    }
    50% {
        transform: translateX(0px) scale(0.4) translateZ(-100px);
        z-index: 5;
        opacity: 0.5;
    }
    75% {
        transform: translateX(-180px) scale(0.7) translateZ(0);
        z-index: 10;
        opacity: 0.8;
    }
    100% {
        transform: translateX(0px) scale(1) translateZ(100px);
        z-index: 20;
        opacity: 1;
    }
}
