

:root {
    --main-bg: #ffffff;
    --main-color: #007bff;
    --main-color-middle: #6fb3fc;
    --main-color-light: #bfdefc;
    --secondary-color: #04a093;
    --secondary-color-middle: #05b5a6;
    --secondary-color-light: #06ceba;
    --text-color: #333;
    --text-color-gray: #777777;
    --bg-color-gray: #EFEFEF;
    --hover-color: #e0e0e0;
    --gray-light: #e0e0e0;
    --border-color: #e0e0e0;
}
a{
    text-decoration: none;
    color: #6d6d6d;
}
h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
}
/* اندازه پیش‌فرض (موبایل کوچک‌تر از 576px) */
h1 { font-size: 1.4rem; }
h2 { font-size: 1.0rem; }
h3 { font-size: 1.0rem; }
h4 { font-size: 1.0rem; }
h5 { font-size: 1.0rem; }
h6 { font-size: 0.9rem; }
body {
    background-color: var(--main-bg);
    color: var(--text-color);
    font-family: 'iransans', sans-serif;
    font-size: 0.95em;
}
footer {
    background: transparent;   /* حذف رنگ پس‌زمینه */
    color: var(--text-color);  /* رنگ متن هماهنگ با متن اصلی */
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid #ccc; /* خط خاکستری بالا */
}
.bg-white {
    background: #ffffff !important;
}
.bg-gray{
    background: var(--bg-color-gray) !important;
}
.text-color-gray-light {
    color : var(--text-color-gray) !important;
}
.text-main-color {
    color: var(--main-color);
}
.header-logo {
    width: 40px;
    height: 40px;
}
.image-on-top {
    margin-top: 0px !important;
    max-width: 56%;
    text-align: center;
}
.hero-box {
    box-shadow: 0 4px 9px rgba(0,0,0,0.2);
    padding: 1rem;
    border-radius: 1rem;
    margin: 2rem 0;
    background: #fff;
}

.package-box {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 9px rgba(0,0,0,0.2);
    transition: transform .2s;
}

.package-box:hover {
    transform: translateY(-5px);
}

.package-header {
    background: var(--main-color);
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-weight: bold;
}
.package-body {
    padding: 1rem;
    text-align: center;
}

.text-justify {
  text-align: justify;
}

.card {
    border: 1px solid #ededed;
    border-radius: 1rem;
}
.border {
    border: 1px solid var(--border-color) !important;
    border-radius: 1rem;
}
.card img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}
.img-30 {
    max-width: 30px !important;
}
.img-40 {
    max-width: 40px !important;
}
.img-50 {
    max-width: 50px !important;
}
.img-70 {
    max-width: 70px !important;
}
.img-100 {
    max-width: 100px !important;
}
.img-150 {
    max-width: 150px !important;
}
.category-item {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #ffffff;
    margin: auto;
    transition: background 0.3s;
    width: 100%;
}

.link {
    position: relative;
    overflow: hidden;
    transition: 1.0s;
    border-radius: 10px;
}

.link::before {
    content: "";
    position: absolute;
    inset: 0; /* یعنی top/right/bottom/left = 0 */
    background: linear-gradient(120deg, transparent, rgba(0,123,255,0.15), transparent);
    transform: translateX(-100%);
    transition: transform 1.0s ease;
}

.link:hover::before {
    transform: translateX(100%);
}

.img-colored {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: brightness(0) saturate(100%)
    invert(32%) sepia(87%) saturate(2100%)
    hue-rotate(198deg) brightness(95%) contrast(95%);
}

.hilight-section {
    padding-top: 56px;
    padding-bottom: 56px;
    background: #f5f8fc;
}
.btn-gradient {
    position: relative;
    overflow: hidden; /* تا gradient از دکمه بیرون نزند */
    background: linear-gradient(90deg, var(--main-color), var(--main-color-middle));
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.9em;
    cursor: pointer;
    transition: transform 0.2s, color 0.3s;
}

.btn-gradient::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 200%;
    top: -50%;
    left: -10%;
    background: linear-gradient(45deg, #007bff, #00ffcc, #007bff);
    transform: rotate(0deg);
    border-radius: 12px;
    opacity: 0;
    z-index: 0;
    transition: opacity 0.3s;
    animation: rotateBg 3s linear infinite;
}

.btn-gradient:hover {
    transform: scale(1.05);
    color: #ffffff !important;
}

.btn-gradient:hover::before {
    opacity: 0.3;
}

/* متن روی دکمه بالاتر از pseudo-element */
.btn-gradient > * {
    position: relative;
    z-index: 1;
}

/* انیمیشن چرخش gradient */
@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-white {
    background: #ffffff !important;
    padding: 0px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    font-size: 0.9em;
}
.btn-white:hover {
    color: var(--text-color);
    transform: scale(1.05);
}
.number-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--main-color);
    color: #fff;
    font-weight: bold;
    font-size: 1rem;
}
.my-toast{
    left: 50%;
    position: fixed;
    transform: translate(-50%, -80%);
    z-index: 9999;
}
.toast-body {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;       /* اجازه نده چیزی بره خط بعد */
}
.toast-message {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.toast-message a {
    white-space: nowrap;     /* متن دکمه هرگز نشکنه */
}
.fs-7{
    font-size: 0.95em;
}
.fs-8{
    font-size: 0.85em;
}
.fs-9{
    font-size: 0.75em;
}
.fs-10{
    font-size: 0.65em !important;
}
.link-hover:hover{
    color: var(--main-color);
}
.border-bottom-dashed {
    border-bottom: 1px dashed #8c8c8c;
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 1.0rem !important;
}

.section-title::before,
.section-title::after {
    content: "";
    flex: 1;
    border-bottom: 2px dashed var(--gray-light);
    margin: 0 1rem;
}
.section-title span {
    background: linear-gradient(90deg, var(--main-color), var(--main-color-middle), #FFFFFF, var(--secondary-color));
    background-size: 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientMove 5s linear infinite;
}
@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#mobileNav {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    background: #e8e8e8;
    position: relative;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: visible;
    display: flex;
    justify-content: space-around;
}

#mobileNav .nav-item {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

#mobileNav .nav-item.active {
    z-index: 2;
}

#mobileNav .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #495057;
    font-size: 0.85rem;
    text-decoration: none;
    transition: 0.3s;
}

#mobileNav .nav-link span {
    white-space: nowrap;         /* نذار متن بشکنه */
    overflow: hidden;            /* اگر طولانی بود، ببره بیرون */
    font-size: 0.7rem;           /* کمی کوچک‌تر برای دوکلمه‌ای‌ها */
    display: block;              /* کنترل‌پذیرتر بشه */
    text-align: center;
}

/* آیتم فعال */
#mobileNav .nav-item.active .nav-link {
    color: white;
    transform: translateY(-32px);
}

/* دایره‌ی پس‌زمینه (follow) */
#mobileNav .follow {
    position: absolute;
    top: -41px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid #fff;
    background: var(--main-color);
    transition: 0.3s;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0; /* زیر آیتم فعال */
}

/* انحنای کناری */
#mobileNav .follow::before,
#mobileNav .follow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 25px;
    background: transparent;
}

#mobileNav .follow::before {
    left: -26px;
    box-shadow: 1px -10px 0 0 #fff;
    border-top-right-radius: 25px;
}

#mobileNav .follow::after {
    right: -26px;
    box-shadow: -1px -10px 0 0 #fff;
    border-top-left-radius: 25px;
}

.bg-gradient-2 {
    background: linear-gradient(90deg, var(--main-color), var(--main-color-middle));
    color: #FFFFFF;
}

/* dropup منوی خدمات */
.nav-item.dropup .dropdown-menu {
    bottom: 100%;
    top: auto;
    border-radius: 12px 12px 0 0;
}

#desktopNav .nav-link.active  {
    color: var(--main-color) !important;
}

/* انیمیشن‌های fade + slide — بهتر است این را در CSS اصلی قرار بدی */
.page-transition {
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform: translateX(0);
    opacity: 1;
    /* position: relative;  */ /* اگر لازم باشه */
}

/* خروج (محتوا می‌رود و محو می‌شود) */
.page-slide-out-right { transform: translateX(50px); opacity: 0; }
.page-slide-out-left  { transform: translateX(-50px); opacity: 0; }

/* حالت اولیه برای ورود (شروع off-screen و opacity:0) */
.page-slide-in-right  { transform: translateX(50px); opacity: 0; }
.page-slide-in-left   { transform: translateX(-50px); opacity: 0; }

/* حالت فعال (در وسط صفحه و قابل دید) */
.page-slide-active { transform: translateX(0); opacity: 1; }

.accordion-body{
    font-size: 0.9em !important;
    color: var(--text-color-gray);
}
.blog-title {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-title::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--secondary-color);
}
.icon-circle {
    color: var(--main-color);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    background-color: var(--main-color-light);
    text-align: center;
}
.title-hover {
    transition: color 0.65s ease;
}
.title-hover:hover {
    color: var(--secondary-color) !important;
}
.text-rtl {
    direction: rtl !important;
}
.text-ltr {
    direction: ltr !important;
}
/* برای تبلت (576px تا 992px) */
@media (min-width: 576px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.0rem; }
    h3 { font-size: 1.0rem; }
    h4 { font-size: 1.0rem; }
    .section-title {
        font-size: 1.4rem !important;
    }
    .image-on-top {
        margin-top: 0px !important;
    }
}

/* برای دسکتاپ (بزرگ‌تر از 992px) */
@media (min-width: 992px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.0rem; }
    h3 { font-size: 1.0rem; }
    h4 { font-size: 1.0rem; }
    .section-title {
        font-size: 1.7rem !important;
    }
    .image-on-top {
        margin-top: -40px !important;
    }
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: 80px;
    }

    #mobileNav {
        padding-bottom: env(safe-area-inset-bottom);
    }
}