@font-face {
    font-family: 'Shabnam';
    src: url('../fonts/Shabnam.ttf');
}

body,
button {
    font-family: 'Shabnam';
    background-color: #F5F3EE;
}

a {
    text-decoration: none;
}

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

.height-200px {
    height: 200px !important;
}

.space-20vh {
    margin-top: 20vh;
}

/* Scroll Custom */

*:hover::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}


::-webkit-scrollbar-thumb {
    background: #888;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.bgc-brown {
    background-color: #EAE7E7;
}

/* footer.bgc-brown {
    background-color: #561C24;
} */

.text-main-color {
    color: #561C24;
    font-weight: bolder;
}

.carousel-item img {
    width: 100% !important;
    height: auto !important;
}

img#logo {
    width: 80px;
}

.join-us-button {
    position: absolute;
    top: 75%;
    right: 18%;
    background-color: #ffffffd5;
    border: none;
    width: 240px;
    height: 60px;
    border-radius: 30px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: black;
    font-weight: bold;
    font-size: 14pt;
    display: flex;
    align-items: center;
    justify-content: center;
}

.join-us-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.9);
    color: black;
}

.course-item {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* همه کارت‌ها هم‌قد می‌شن */
    background-color: #561C24;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 10px solid transparent;
    background-clip: padding-box;
    position: relative;
    border-radius: 0 50px 0 50px;
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.15);
}

.course-item:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 20px 20px rgba(230, 4, 4, 0.15);
}

.course-item .course-image img {
    width: 100%;
    /* height: 200px; */
    border-radius: 0 40px 0 50px;
}

.course-item h6 {
    min-height: 50px;
    /* ارتفاع ثابت برای عنوان */
    display: flex;
    align-items: center;
    /* وسط‌چین عمودی */
    justify-content: center;
}

.course-item a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.course-item .py-3 {
    margin-top: auto;
    /* بخش متن همیشه پایین کارت می‌چسبد */
}

.lead {
    color: #aaa;
}

.wrapper {
    margin: 10vh
}

.card {
    height: 450px;
    border: none;
    transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
    overflow: hidden;
    border-radius: 20px;
    min-height: 450px;
    box-shadow: 0 0 12px 0 rgba(0, 0, 0, 0.2);

    @media (max-width: 768px) {
        min-height: 350px;
    }

    @media (max-width: 420px) {
        min-height: 300px;
    }

    &.card-has-bg {
        transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);
        background-size: 120%;
        background-repeat: no-repeat;
        background-position: center center;

        &:before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            left: 0;
            background: inherit;
            -webkit-filter: grayscale(1);
            -moz-filter: grayscale(100%);
            -ms-filter: grayscale(100%);
            -o-filter: grayscale(100%);
            filter: grayscale(100%);
        }

        &:hover {
            transform: scale(0.98);
            box-shadow: 0 0 5px -2px rgba(0, 0, 0, 0.3);
            background-size: 130%;
            transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);

            .card-img-overlay {
                transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
                /* background: rgb(255, 186, 33);
                background: linear-gradient(0deg, rgba(255, 186, 33, 0.5) 0%, rgba(255, 186, 33, 1) 100%); */
            }
        }
    }

    .card-footer {
        background: none;
        border-top: none;

        .media {
            img {
                border: solid 3px rgba(255, 255, 255, 0.3);
            }
        }
    }

    .card-title {
        font-weight: 800
    }

    .card-meta {
        color: rgba(0, 0, 0, 0.3);
        text-transform: uppercase;
        font-weight: 500;
        letter-spacing: 2px;
    }

    .card-body {
        transition: all 500ms cubic-bezier(0.19, 1, 0.22, 1);


    }

    &:hover {
        .card-body {
            margin-top: 30px;
            transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
        }

        cursor: pointer;
        transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
    }

    .card-img-overlay {
        transition: all 800ms cubic-bezier(0.19, 1, 0.22, 1);
        background: rgb(86, 28, 36);
        background: linear-gradient(0deg, rgba(97, 38, 47, 0.379) 0%, rgb(155, 96, 106) 100%);
    }
}

.shop-cat button {
    border: 2px solid #FF4D00;
    width: 120px;
    height: 38px;
    border-radius: 30px;
}

.shop-item {
    background-color: #fff;
    margin: 0;
    padding: 5px;
    box-sizing: border-box;
    border: 10px solid transparent;
    background-clip: padding-box;
    position: relative;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.shop-item-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.shop-item .shop-item-body h5 {
    background-color: #ffcab7;
    padding: 3px 6px;
    border-radius: 15px;
    font-size: 12pt;
}

.shop-item .shop-item-body a {
    border: 2px solid #443636;
    padding: 5px 20px;
    color: #FF4D00;
    border-radius: 15px;
}

.social-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #561C24;
    color: white;
    border: 1px solid white;
    font-size: 16pt;
    border-radius: 50%;
}

.call-btn a {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: #561C24;
    color: white;
    border: 1px solid white;
    font-size: 16pt;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: pointer;
}

.call-btn:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 3px;
}


.call-btn2 a {
    position: fixed;
    bottom: 85px;
    right: 30px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    color: white;
    border: 1px solid white;
    font-size: 16pt;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    cursor: pointer;
}

.whatsapp-color {
    color: #25d366 !important;
    font-size: 14pt;
}

.call-btn2:focus {
    outline: 3px solid rgba(0, 123, 255, 0.3);
    outline-offset: 3px;
}

.accounting-form input {
    text-align: right;
    padding: 5px 10px;
    border: 1px solid #443636;
    border-radius: 12px;
    width: 70%;
    height: 40px;
}

.accounting-form input:focus {
    border: 2px solid #443636;
    outline: none;
}

.accounting-form button {
    width: 150px;
}

tr,
th,
td {
    border: 1px solid black;
}

th {
    padding: 10px 15px;
}

td {
    padding: 30px 20px;
}

.action-shop {
    background-color: red;
    color: white;
    padding: 15px;
    border-radius: 50%;
}

.action-shop:hover {
    color: white;
}

.navbar-nav .nav-link {
    position: relative;
    text-decoration: none;
    /* حذف underline پیش‌فرض */
}

ul.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    /* ضخامت خط */
    background-color: #561C24;
    color: #561C24 !important;
    /* رنگ خط */
    transition: width 0.3s ease;
}

ul.navbar-nav .nav-link:hover {
    color: #561C24 !important;
}

ul.navbar-nav .nav-link:hover::after {
    width: 100%;
}

li.nav-item a.nav-link:focus {
    color: #561C24 !important;
}

@media screen and (max-width: 480px) {
    th {
        padding: 10px 5px;
    }

    td {
        padding: 20px 10px;
    }

    .course-item h6 {
        font-size: 11pt;
    }
}


/* حالت sidebar در موبایل */
@media (max-width: 991px) {
    .sidebar {
        position: fixed;
        top: 0;
        right: -260px;
        /* ابتدا خارج از صفحه */
        width: 260px;
        height: 100vh;
        background-color: #ffffff;
        /* رنگ قهوه‌ای navbar */
        transition: right 0.4s ease;
        padding: 1.5rem;
        z-index: 1050;
        overflow-y: auto;
    }

    /* ابتدا عرض سایدبار و transition را مشخص می‌کنیم */
    .sidebar {
        /* transition: transform 0.3s ease-in-out; */
        transform: translateX(0);
        /* در ابتدا مخفی است */
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1050;
        background-color: #fff;
        /* رنگ دلخواه */
        overflow-y: auto;
    }

    /* وقتی باز شد */
    .sidebar.show {
        transform: translateX(0);
    }

    .sidebar.show {
        right: 0;
        /* نمایش از سمت راست */
    }

    #navbarColor02 {
        height: 100vh !important;
        /* جلوگیری از پرش ارتفاع */
        overflow-y: auto;
    }

    .btn-close {
        position: absolute;
        top: 10px;
        left: 15px;
    }

    body.sidebar-open {
        overflow: hidden;
        /* جلوگیری از اسکرول در پس‌زمینه */
    }
}

#our-customers .logo-slider {
    padding: 30px 0;
    /* background: #f9f9f9; */
}

#our-customers .swiper-slide img {
    width: 150px;
    height: auto;
    /* filter: grayscale(100%); */
    transition: filter 0.3s ease;
    cursor: grab;
}

#our-customers .swiper-slide img:hover {
    filter: grayscale(0%);
}

.swiper-button-next,
.swiper-button-prev {
    color: #444;
}

.phone-box {
    border: 3px dotted #561C24;
    padding: 10px;
    text-align: center;
}

.phone-box-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phone-box-title p {
    margin: 0 !important;
}

.phone-box-form form input {
    width: 60%;
    height: 40px;
    border: none;
    border: 3px solid #561C24;
    border-radius: 0 40px 40px 0;
    padding: 10px;
}

.phone-box-form form button {
    width: 30%;
    height: 40px;
    border: none;
    background-color: #561C24;
    color: #fff;
    border-radius: 40px 0 0 40px;
}


.color-main-head {
    color: #561C24;
    font-size: 14pt;
}

.counter-item h5 {
    font-size: 24pt;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
}

.counter-item p {
    font-size: 11pt;
    text-align: center;
}

.testimonial-card {
    max-width: 600px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.testimonial-text {
    color: #555;
    font-style: italic;
    line-height: 1.8;
}

.stars i {
    color: #ffc107;
    font-size: 1.2rem;
    margin: 0 2px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    padding: 10px;
}

@media (max-width: 576px) {
    .testimonial-card {
        padding: 1.5rem;
        border-radius: 15px;
    }
}

/* Contact Page  */
.address-box {
    border: 3px #561C24 double;
    padding: 10px 20px;
    border-radius: 30px 0 30px 0;
}

iframe {
    width: 100%;
}

@media (max-width: 768px) {
    iframe {
        width: 100%;
        height: auto;
    }

    .dropdown-item {
        white-space: normal !important;
        word-wrap: break-word;
    }
}

.contact-us-way {
    border-bottom: 3px #561C24 solid;
    padding: 15px 5px 10px 0;
}

/* قرار دادن ساب‌منو کنار هم */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu .dropdown-menu {
    top: 0;
    right: 100%;
    /* چون زبان راست‌چین است */
    margin-top: 0;
}

.team-card {
    width: 250px;
    padding: 10px 0 20px 0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.team-card .avatar {
    width: 200px;
    height: 150px;
    /* نسبت 3x4 */
    /* object-fit: cover; */
    border-radius: 8px;
    margin-bottom: 15px;
}

.team-card .name {
    font-size: 1.1rem;
    margin: 8px 0 4px;
    font-weight: 600;
}

.team-card .role {
    font-size: 0.9rem;
    color: #555;
}