﻿
.section {
    text-align: center;
    margin: 0 auto;
    padding: 50px 20px;
}
/* Desktop */
.servicegroup-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Tablet */
@media (max-width: 992px) {
    .servicegroup-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile */
@media (max-width: 600px) {
    .servicegroup-grid {
        grid-template-columns: 1fr;
    }
}
.servicegroup-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    padding: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    transition: all .3s ease;
}

    .servicegroup-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 26px rgba(0,0,0,0.12);
    }

    .servicegroup-card img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 12px;
        margin-bottom: 12px;
    }
.service-title {
    font-size: 18px;
    font-weight: 600;
    color: #0077b6;
    text-decoration: none;
    display: block;
    margin-top: 6px;
    transition: color .2s ease;
}

    .service-title:hover {
        color: #005f8e;
    }



/*.swiper-container {
    width: 100%;
    height: auto;
    padding: 50px;

}*/
.dateControl {
    width: 200px !important;
    margin-left: auto;
    margin-right: auto;
}


.mySwiper .swiper-slide {
    width: 60px !important;
    display: flex;
    justify-content: center;
}

.mySwiper {
    padding: 0 50px !important; /* فاصله از چپ و راست */
}
    /* دکمه‌های قبلی/بعدی خارج از محدوده اسلایدر */
    .mySwiper::part(button-next),
    .mySwiper::part(button-prev) {
        top: 50% !important;
        transform: translateY(-50%) !important;
    }

    /* دکمه سمت راست */
    .mySwiper::part(button-next) {
        right: -5px !important; /* فاصله مثبت = بیرون */
    }

    /* دکمه سمت چپ */
    .mySwiper::part(button-prev) {
        left: -5px !important; /* فاصله مثبت = بیرون */
    }

.btnSchedule {
    flex: 0 0 auto;
    min-width: 40px;
    white-space: nowrap;
    border-radius: 8px;
    padding: 5px 15px;
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 60px;
    border: 1px solid rgb(211, 211, 211);
    background-color: #fff;
    color: #000;
}
/*
.employee-swiper .swiper-slide {
    width: 90px !important;
    text-align: center;
}
*/
/* target the internal wrapper exposed via part="wrapper" */
swiper-container::part(wrapper) {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}



.employee-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.employee-name {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

.employee-initial {
    font-size: 22px;
    font-weight: bold;
    color: #555;
}




/* ====== Layout for each slide ====== */
.employee-swiper .swiper-slide {
    /* make each slide a vertical column and center its contents */
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    box-sizing: border-box;
    width: 90px !important; /* keep your desired slide width */
    padding: 6px 4px; /* give some breathing room */
}

/* wrapper to ensure consistent spacing between card and name */
/*.employee-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;*/ /* فاصله بین دایره و نام */
    /*width: 100%;
}*/

/* ====== Circle card (single, canonical definition) ====== */
.employee-card {
    width: 64px; /* یک اندازه واضح و ثابت */
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    border-radius: 50%;
    background: #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    transition: transform .12s ease, border-color .12s ease, background .12s ease;
    box-sizing: border-box;
    border: 3px solid transparent;
}

    /* selected state */
    .employee-card.selected {
        border-color: #0d6efd;
        background: #e6f0ff;
        transform: translateY(-2px);
    }

/* ====== image and initial ====== */
.employee-photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-initial {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 22px;
    font-weight: 700;
    color: #444;
    line-height: 1;
    user-select: none;
}

/* ====== name below the circle ====== */
.employee-name {
    display: block;
    width: 100%;
    text-align: center;
    margin: 0; /* remove default small margins */
    margin-top: 6px;
    font-size: 13px;
    line-height: 1.15; /* کنترل دقیق فاصله عمودی */
    white-space: nowrap; /* اگر نمی‌خواهی خط‌شکن باشد */
    overflow: hidden;
    text-overflow: ellipsis; /* اگر طول زیاد شد کوتاه شود */
}

