/* font */

/* Vazirmatn */
@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;
}

/* YekanBakhFaNum */
@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('/static/font/YekanBakh_FaNum_Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}


@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('/static/font/YekanBakh_FaNum_Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('/static/font/YekanBakh_FaNum_Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'YekanBakhFaNum';
    src: url('/static/font/YekanBakh_FaNum_Heavy.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* general */
* {
    font-family: 'YekanBakhFaNum', 'Vazirmatn', sans-serif !important;
}

body {
    background-color: #f8f8f8;
}

main {
    padding-top: 96px !important;
}

h1, h2, h3, h4, h5 {
    font-family: 'YekanBakhFaNum', 'Vazirmatn', sans-serif !important;
}

.prose * {
    all: revert !important;
}

.prose table {
    display: table !important;
    width: 100% !important;
    border-collapse: collapse !important;
}

.prose thead {
    display: table-header-group !important;
}

.prose tbody {
    display: table-row-group !important;
}

.prose tr {
    display: table-row !important;
}

.prose th,
.prose td {
    display: table-cell !important;
    border: 1px solid #e5e7eb !important;
    padding: 0.5rem !important;
    vertical-align: top !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: hidden !important;
}

.slider-swiper .swiper-slide {
    width: max-content;
    height: auto;
    border-radius: 3px;
    background-color: white;
    overflow: hidden;
    border: solid 1px rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1),
    0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.slider-swiper .swiper-slide img {
    border-radius: 3px;
}

.slider-swiper .swiper-pagination-bullet {
    background: #e5e7eb !important;
    opacity: 1;
}

.slider-swiper .swiper-pagination-bullet-active {
    background: #213045 !important;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: .25s;
    color: #707070;
}

.slider-nav:hover {
    transform: translateY(-50%) scale(1.08);
    color: #E3BE6D;
}

.slider-nav-prev {
    right: -10px;
}

.slider-nav-next {
    left: -10px;
}

.slider-nav iconify-icon {
    font-size: 30px;
}

@media (max-width: 768px) {
    .slider-nav {
        display: none;
    }
}

.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;
}

.ginlined-content {
    overflow: hidden;
}

/* 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;
    }
}
