@font-face {
    font-family: 'IranSans';
    src: url('/assets/fonts/iran/IRANSansXFaNum-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IranYekan';
    src: url('/assets/fonts/iranyekan/IRANYekan[@mimvid]-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Peyda';
    src: url('/assets/fonts/peyda/Peyda-Medium[@mimvid].woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'anjoman';
    src: url('/assets/fonts/anjoman/Anjoman-Medium[@mimvid].woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --primary: #f26419;
    --primary-dark: #d4550f;
    --primary-light: #fff3ed;
    --primary-hover: #e05a12;
    --dark: #1a1a2e;
    --dark-light: #2d2d44;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-500: #adb5bd;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --gray-50: #fdfdfe;
    --white: #ffffff;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-family: 'Peyda' !important;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Peyda' !important;
    direction: rtl;
    color: var(--gray-800);
    background-color: var(--gray-100);
    line-height: 1.7;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6, p, a, span, div, li, label, button, input, textarea, select {
    font-family: 'Peyda' !important;
}

a {
    text-decoration: none !important;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
}

.Vue-Toastification__toast-body {
    font-family: 'Peyda' !important;
}

/* ===============================
   Typography
=============================== */
.section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 400;
    line-height: 1.6;
}

/* ===============================
   Buttons
=============================== */
.btn {
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.75rem;
    transition: all var(--transition-base);
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 300px;
    height: 300px;
}

.btn-orange,
.bg-orange {
    background-color: var(--primary) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(242, 100, 25, 0.3);
}

.btn-orange:hover,
.bg-orange:hover {
    background-color: var(--primary-dark) !important;
    box-shadow: 0 6px 20px rgba(242, 100, 25, 0.4);
    transform: translateY(-1px);
}

.btn-orange:active,
.bg-orange:active {
    transform: translateY(0);
}

.btn-outline-orange {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline-orange:hover {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(242, 100, 25, 0.3);
    transform: translateY(-1px);
}

.btn-white {
    background-color: var(--white);
    color: var(--gray-800);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.45rem 1.25rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 0.85rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* ===============================
   Cards
=============================== */
.card {
    border: none;
    border-radius: var(--radius-xl);
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    overflow: hidden;
}

.hover-card {
    transition: all var(--transition-base) !important;
}

.hover-card:hover {
    box-shadow: var(--shadow-card-hover) !important;
    transform: translateY(-4px);
}

.card-img-top {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* ===============================
   Forms
=============================== */
.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-300);
    padding: 0.7rem 1rem;
    font-size: 0.95rem;
    transition: all var(--transition-base);
    background-color: var(--white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(242, 100, 25, 0.1) !important;
    outline: none !important;
}

.form-control::placeholder {
    color: var(--gray-500);
}

.form-label {
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15) !important;
}

/* ===============================
   Badges
=============================== */
.badge {
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.badge-orange {
    background-color: var(--primary-light) !important;
    color: var(--primary) !important;
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.badge-pill {
    border-radius: 50rem !important;
}

/* ===============================
   Navigation
=============================== */
.navbar {
    padding: 0.75rem 0;
    transition: all var(--transition-base);
    border: none;
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary) !important;
}

.nav-link {
    color: var(--gray-700) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--gray-800);
}

.navbar-toggler:focus {
    box-shadow: none !important;
}

/* ===============================
   Accordion
=============================== */
.accordion-item {
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-md) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.accordion-button {
    border-radius: var(--radius-md) !important;
    font-weight: 600;
    color: var(--gray-800);
    padding: 1rem 1.25rem;
    background-color: var(--white);
    transition: all var(--transition-base);
}

.accordion-button::after {
    margin-right: auto !important;
    margin-left: unset !important;
    transition: transform var(--transition-base);
}

.accordion-button:not(.collapsed) {
    background-color: var(--primary) !important;
    color: white !important;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(242, 100, 25, 0.15) !important;
}

.accordion-body {
    padding: 1rem 1.25rem;
    color: var(--gray-700);
    line-height: 1.8;
}

/* ===============================
   Dropdown
=============================== */
.dropdown-menu {
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 0.5rem;
    margin-top: 0.5rem;
}

.dropdown-item {
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--primary);
}

.dropdown-toggle::after {
    content: " " !important;
    display: none !important;
}

/* ===============================
   Menu Items
=============================== */
.menu-item {
    position: relative;
    display: inline-block;
    font-size: 0.92rem;
    color: var(--gray-700) !important;
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 500;
}

.menu-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-base);
}

.menu-item:hover {
    color: var(--primary) !important;
}

.menu-item:hover::after {
    width: 100%;
}

/* ===============================
   Tabs
=============================== */
.tab-btn {
    background-color: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem;
    font-weight: 600;
    transition: all var(--transition-base);
}

.tab-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary);
}

.active-tab {
    color: var(--white) !important;
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(242, 100, 25, 0.3);
}

/* ===============================
   Swiper
=============================== */
.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-pagination-bullet-active {
    background: var(--primary) !important;
}

/* ===============================
   Colors
=============================== */
.text-orange {
    color: var(--primary) !important;
}

.text-gray {
    color: var(--gray-600) !important;
}

.text-dark-custom {
    color: var(--dark) !important;
}

.bg-primary-light {
    background-color: var(--primary-light) !important;
}

/* ===============================
   Utilities
=============================== */
.text-right {
    text-align: right !important;
}

.text-left {
    text-align: left !important;
}

.text-center {
    text-align: center !important;
}

.text-justify {
    text-align: justify !important;
}

.active {
    color: var(--primary) !important;
    position: relative;
    display: inline-block;
    text-decoration: none;
    transition: color var(--transition-base);
}

.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transition: width var(--transition-base);
}

/* ===============================
   Dividers
=============================== */
.section-divider {
    width: 50px;
    height: 5px;
    border-radius: 3px;
    background-color: var(--primary);
    margin-bottom: 1rem;
}

.section-divider-secondary {
    width: 35px;
    height: 3px;
    border-radius: 2px;
    background-color: #ffd1b8;
}

/* ===============================
   Images
=============================== */
.img-premium {
    border-radius: var(--radius-lg);
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.img-premium:hover {
    transform: scale(1.03);
}

.img-zoom {
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.img-zoom img {
    transition: transform var(--transition-slow);
}

.img-zoom:hover img {
    transform: scale(1.08);
}

/* ===============================
   Loading Overlay
=============================== */
.loading-overlay {
    background-color: var(--white);
    width: 100%;
    height: 100%;
    z-index: 10000;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    top: 0;
    animation: fadeOut 1s ease forwards;
    animation-delay: 1.5s;
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--primary);
    border-width: 0.25em;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* ===============================
   Animations
=============================== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInUp {
    animation: slideInUp 0.6s ease forwards;
}

/* ===============================
   Scrollbar
=============================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}

/* ===============================
   OTP Input
=============================== */
.otp-input {
    padding: 0.7rem;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    border: 1.5px solid var(--gray-300);
    text-align: center;
    font-size: 1.2rem;
    margin: 0 6px;
    transition: all var(--transition-base);
    font-family: 'Peyda' !important;
}

.otp-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(242, 100, 25, 0.12);
}

/* ===============================
   Multiselect Override
=============================== */
.multiselect__option--highlight::after,
.multiselect__option--selected::after,
.multiselect__option--selected.multiselect__option--highlight::after {
    display: none !important;
}

.multiselect__option--highlight {
    background: var(--primary) !important;
    color: #fff !important;
}

.multiselect__option--selected {
    background: var(--primary-dark) !important;
    color: #fff !important;
    font-weight: 500;
}

.multiselect,
.multiselect__content-wrapper,
.multiselect__content,
.multiselect__option,
.multiselect__single,
.multiselect__input,
.multiselect__placeholder {
    direction: rtl;
    text-align: right;
    border-radius: var(--radius-md);
}

.multiselect__select {
    right: auto;
    left: 12px;
}

/* ===============================
   Form Check RTL
=============================== */
.form-check .form-check-input {
    float: right;
    margin-left: 0.5em;
}

/* ===============================
   Modals
=============================== */
.modal-content {
    border: none;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: 1.25rem 1.5rem;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* ===============================
   List Marker
=============================== */
li::marker {
    color: var(--primary) !important;
}

/* ===============================
   Utilities - Margin & Padding
=============================== */
.mb-safe {
    margin-bottom: 5rem;
}

/* ===============================
   Responsive
=============================== */
@media all and (max-width: 1023px) {
    .d-none-mobile {
        display: none !important;
    }

    .display-m-none {
        display: none !important;
    }

    .h-m-5 {
        height: 5rem !important;
    }

    .h-m-unset {
        height: unset !important;
    }

    .fo-m-5 {
        font-size: .5rem !important;
    }

    .h-m-30 {
        height: 30vh !important;
    }

    .otp-input {
        width: 42px !important;
        height: 42px !important;
    }

    .section-title {
        font-size: 1.4rem;
    }
}

@media all and (max-width: 575px) {
    .btn {
        padding: 0.55rem 1.25rem;
        font-size: 0.88rem;
    }

    .section-title {
        font-size: 1.25rem;
    }
}
