:root {
    --main-bg: #ffffff;
    --bs-primary: #014830;
    --main-color: #014830;
    --main-color-middle: #014b32;
    --main-color-light: #036846;
    --main-color-light-2: #B6E30C;
    --main-color-rgb: 1, 72, 48;
    --main-color-middle-rgb: 1, 75, 50;
    --main-color-light-rgb: 3, 104, 70;
    --secondary-color-dark: #c28f00;
    --secondary-color-middle: #FFD700;
    --secondary-color-light: #ffe5a6;

    --hz-zoom: 1.03;
    --hb-blur: 1px;
    --img-border-radius: 1rem;
}
/**{
    outline: 1px solid rgba(0,0,0,0.09);
}*/
a{
    text-decoration: none;
    color: #6d6d6d;
}
a:hover {
    color: var(--secondary-color-dark);
}
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; }
hr {
    color: var(--gray-600);
}
body {
    background-color: var(--main-bg);
    color: var(--gray-900);
    font-family: 'iransans', sans-serif;
    font-size: 0.95em;
}

footer {
    color: #FFFFFF;
    padding: 1rem 0;
    text-align: center;
    margin-top: 2rem;
    position: relative;
}
.navbar-glass {
    position: fixed;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1300px;

    z-index: 1030;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(235, 235, 235, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
}
.form-check-input {
    border-color: var(--gray-500);
}

.form-check-input:checked {
    background-color: var(--main-color) !important;
    border-color: var(--main-color) !important;
}

.form-check-input:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 .25rem rgba(1, 72, 48, 0.25);
}

.form-check-input:checked:focus {
    box-shadow: 0 0 0 .25rem rgba(1, 72, 48, 0.3);
}

.form-check-input1:indeterminate {
    background-color: var(--main-color);
    border-color: var(--main-color);
}

.side-nav-categories {
    position: relative;
    background-color: #fff;
    border: 1px solid #eee;
    box-shadow: 0 5px 0 rgba(200,200,200,.2);
    padding-top: 20px; /* برای اینکه محتوا با عنوان تداخل نکند */
    border-radius: 6px;
}

.category-title {
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    padding: 12px 25px 10px 25px;
    position: absolute;
    display: inline-block;
    letter-spacing: 0.5px;
    background: var(--main-color);
    top: -12px;
    right: -10px;
    border-top-right-radius: 5px;
    border-top-left-radius: 5px;
    width: 80%;
}

.category-title:after {
    content: "";
    height: 1px;
    width: 1px;
    border-style: solid;
    border-width: 5px;
    position: absolute;
    bottom: -10px;
    right: 0;
    border-color: var(--main-color)  transparent transparent var(--main-color);
}

.circle-pagination .page-item .page-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 5px;
    margin: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
}

.circle-pagination .page-item.active .page-link {
    background-color: var(--main-color);
    border-color: var(--main-color);
    color: #fff;
}

.circle-pagination .page-item.disabled .page-link {
    opacity: .4;
}

.hr-dashed {
    border-top: 1px dashed var(--gray-900);
}
.bg-footer{
    background-image: url("../img/bg_footer.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.back-to-top {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: #fff;
    color: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}
.text-secondary-color {
    color : var(--secondary-color-dark) !important;
}
.color-secondary-middle {
    color : var(--secondary-color-middle) !important;
}
.text-gradient-color {
    background: linear-gradient(180deg, var(--main-color), var(--main-color-light-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.bg-gradient-color {
    background: linear-gradient(180deg, var(--main-color), var(--main-color-light-2));
    -webkit-background-clip: content;
    -webkit-text-fill-color: transparent;
}
.bg-main-color {
    background-color: var(--main-color) !important;
}
.bg-secondary-color {
    background-color: var(--secondary-color-dark) !important;
    background: var(--secondary-color-dark) !important;
}
.logo-circle,
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}
.icon-circle-30 {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.icon-circle-100 {
    width: 90px;
    height: 90px;
    border-radius: 50%;
}
.logo-img {
    width: 75%;
    height: 75%;
    object-fit: contain;
}
.more-btn {
    cursor: pointer;
}
.offcanvas {
    transition: transform .7s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.offcanvas-backdrop.show {
    opacity: .6;
    transition: opacity .7s ease !important;
}
.bg-white {
    background: #ffffff !important;
}
.box-gray {
    background: var(--gray-200) !important;
}
.text-main-color {
    color: var(--main-color) !important;
}
.filter-btn {
    color: var(--main-color) !important;
    border: 1px solid var(--main-color) !important;
    background-color: transparent !important;
}
.header-logo {
    width: 40px;
    height: 40px;
}
.title {
    font-size: 1.0rem !important;
}
.text-desc {
    color: var(--gray-700);
}
.image-on-top {
    margin-top: 0px !important;
    max-width: 56%;
    text-align: center;
}
.hero-box {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    border-radius: 1rem;
    margin: 2rem 0;
    background: #fff;
}

/* تصویر اصلی */
.image-cover {
    object-fit: cover;
    width: 100%;
    height: 180px;
    display: block;
    filter: brightness(0.9);
    opacity: 0.3;
    transition: opacity 0.3s;
}
.image-cover:hover {
     opacity: 0.5;
}
.flex-text-line-3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 3;
}
.flex-text-line-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 2;
}
.flex-text-line-1 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    -webkit-line-clamp: 1;
}

.content-wrapper {
    overflow: hidden;
    max-height: 180px; /* ارتفاع محدود اولیه */
    transition: max-height 0.5s ease;
}

.content-wrapper.open {
    max-height: 2000px; /* ارتفاع بالا برای حالت باز */
}

.fade-overlay {
    position: absolute;
    bottom: 40px; /* بالاتر از دکمه */
    left: 0;
    right: 0;
    height: 60px;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    transition: opacity 0.5s ease;
}

.fade-overlay.hide {
    opacity: 0;
}

/* دکمه */
.btn-more {
    color: #014830;
}
.btn-more:hover {
    color: var(--secondary-color-dark);
}


/* افکت محو بالا و پایین */
.gradient-overlay-top,
.gradient-overlay-bottom {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 1;
    pointer-events: none;
}

.gradient-overlay-top {
    top: 0;
    height: 30%;
    background: linear-gradient(180deg, #fff, rgba(255,255,255,0));
}

.gradient-overlay-bottom {
    bottom: 0;
    height: 30%;
    background: linear-gradient(0deg, #fff, rgba(255,255,255,0));
}

/* متن روی تصویر */
.banner-text {
    position: absolute;
    top: 50%;
    right: 8%;
    transform: translateY(-50%);
    z-index: 2;
    text-align: right;
    max-width: 40%;
}

.package-box {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    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 var(--gray-300);
    border-radius: 1rem;
}
.card-title2 {
  line-height: 1.875rem !important;
}
/*
.card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
*/

.card-title {
    line-height: 1.4em;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

@keyframes scrollText {
    0% {
        transform: translateX(0%);
        opacity: 1;
    }
    46% {
        transform: translateX(150%);
        opacity: 1;
    }
    48% {
        transform: translateX(150%);
        opacity: 0;
        display: none;
    }
    50% {
        transform: translateX(-100%);
        opacity: 0;
        display: none;
    }
    54% {
        transform: translateX(-100%);
        opacity: 1;
        display: block;
    }
    100% {
        transform: translateX(0%);
        opacity: 1;
        display: block;
    }
}


.border-my {
    border: 1px solid var(--gray-300) !important;
    border-radius: 1rem;
}
.card .content-box img {
    width: 100%;
    /*aspect-ratio: 4 / 3;  */
    object-fit: cover;
    border-top-left-radius: 1rem;
    border-top-right-radius: 1rem;
}
.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%;
}
.text-typing {
    font-family: "iransans";
    color: #f1e728;
    display: inline-block;
    min-height: 2em;
}
.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;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    transition: transform 0.2s, color 0.3s, box-shadow 0.3s ease-out;
}

.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(var(--hz-zoom, 1.05));
    color: #ffffff !important;
}

.btn-gradient:hover::before {
    opacity: 0.3;
}

.btn-hover-slide {
    position: relative;
    overflow: hidden;
    padding-right: 30px !important;
    padding-left: 30px !important;
    background: linear-gradient(90deg, var(--main-color), var(--main-color-middle));
    color: #fff;
}

.btn-hover-slide span {
    position: relative;
    left: 0;
    transition: left 0.2s ease-in-out;
}

.btn-hover-slide i {
    position: absolute;
    right: -30px;
    top: 0;
    width: 30px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    transition: right 0.2s ease-in-out;
}

.btn-hover-slide:hover span {
    left: -12px;
    color: #FFFFFF;
}

.btn-hover-slide:hover i {
    right: 0;
    color: #FFFFFF;
}
.circle-ripple {
    animation: ripple 0.7s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
}

@keyframes ripple {
    0% {
        box-shadow:
                0 0 0 0 rgba(var(--main-color-rgb), 0.3),
                0 0 0 12px rgba(var(--main-color-rgb), 0.3),
                0 0 0 20px rgba(var(--main-color-rgb), 0.3);
    }

    100% {
        box-shadow:
                0 0 0 12px rgba(var(--main-color-rgb), 0.3),
                0 0 0 20px rgba(var(--main-color-rgb), 0.3),
                0 0 0 28px rgba(var(--main-color-rgb), 0);
    }
}
.input-group-text i{
    color: var(--gray-700);
}
.anim-hover-scale {
    transition: transform 0.2s, color 0.3s, box-shadow 0.3s ease-out;
}

.anim-hover-scale:hover {
    transform: scale(var(--hz-zoom, 1.05));
}

/* متن روی دکمه بالاتر از 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(--gray-800);
    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;
}

.fs-7{
    font-size: 0.9em;
}
.fs-8{
    font-size: 0.8em;
}

#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,
footer .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,
footer .follow::before,
footer .follow::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 25px;
    height: 25px;
    background: transparent;
}

#mobileNav .follow::before,
footer .follow::before{
    left: -26px;
    box-shadow: 1px -10px 0 0 #fff;
    border-top-right-radius: 25px;
}

#mobileNav .follow::after,
footer .follow::after{
    right: -26px;
    box-shadow: -1px -10px 0 0 #fff;
    border-top-left-radius: 25px;
}

/* dropup منوی خدمات */
.nav-item.dropup .dropdown-menu {
    bottom: 100%;
    top: auto;
    border-radius: 12px 12px 0 0;
}

#desktopNav .nav-link {
    position: relative;
    color: #333; /* رنگ پیش‌فرض متن */
    padding-bottom: 4px;
    transition: color 0.3s ease;
}

/* خط زیر منو (در حالت عادی مخفی) */
#desktopNav .nav-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 80%;
    height: 1.5px;
    background-color: var(--main-color);
    transition: transform 0.4s ease;
    border-radius: 2px;
}

/* افکت هنگام هاور */
#desktopNav .nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* رنگ لینک هنگام هاور */
#desktopNav .nav-link:hover {
    color: var(--main-color);
}

/* حالت فعال (بدون نیاز به هاور) */
#desktopNav .nav-link.active {
    color: var(--main-color) !important;
}
.side-nav-categories .list-group-item a {
    display: flex;
    justify-content: space-between;  /* متن راست - فلش چپ */
    align-items: center;
    color: var(--gray-700);
    transition: color .3s ease, background-color .3s ease;
}

/* آیکون فلش */
.side-nav-categories .list-group-item a::after {
    font-family: bootstrap-icons;
    content: "\F12C"; /* bi-arrow-left-short */
    font-size: 1.1rem;
    opacity: 0.6;
    transition: opacity .3s ease, transform .3s ease;
}

/* وضعیت Active */
.side-nav-categories .list-group-item a.active {
    color: var(--main-color) !important;
}
.side-nav-categories .list-group-item a.active::after {
    opacity: 1;
}

/* Hover */
.side-nav-categories .list-group-item:hover a {
    background: var(--main-color-light) !important;
    color: #fff !important;
}
.side-nav-categories .list-group-item:hover a::after {
    opacity: 1;
    transform: translateX(-3px);  /* انیمیشن کوچک برای حس بهتر */
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "\f284";
  font-family: "bootstrap-icons" !important;
  display: inline-block;
  font-size: 12px;
  color: #ff637d;
  padding-left: 8px;
  padding-right: -4px;
  top: 0;
  vertical-align: middle;
}
.article {
    line-height: 1.3rem;
}
.article .img {
    display: block;
    max-width: 80%;
    object-fit: cover;
    margin: 8px auto 20px auto;
    border-radius: 8px;
}
.mag-related-post {
  background-color: #fff;
  display: flex;
  width: 100%;
  clear: both;
  padding: 15px 15px;
  border-radius: 5px;
  margin: 16px auto;
  position: relative;
  overflow: hidden;
  align-items: center;
}
.mag-related-post-thumbnail {
  display: flex;
  width: 120px;
  height: auto;
  overflow: hidden;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 50px;
  position: relative;
}
.mag-related-post-content {
  width: calc(100% - 180px);
}
.mag-related-post-section-label{
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 45px;
  background-color: var(--main-color);
  box-sizing: border-box;
  display: flex;
  align-content: center;
  justify-content: center;
}
.mag-related-post-section-label-inner {
  transform: translateY(-50%) rotate(270deg);
  position: absolute;
  width: 90px;
  align-items: center;
  height: 20px;
  font-size: 14px;
  color: #fff;
  transform-origin: center;
  top: 50%;
  display: flex;
  align-content: center;
  justify-content: center;
}
/*.list-group-item .active:before {
    font-family: bootstrap-icons !important;
    content: "\f26b";
    padding-left: 5px;
}*/

.nav-link.active i {
    color: var(--main-color) !important;
    /*background: linear-gradient(180deg, var(--main-color), var(--main-color-light-2)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;*/
}
#mobileOffcanvas .nav-item.active {
    color: var(--main-color) !important;
}
#mobileOffcanvas .nav-item.active.border-bottom {
    border-color: var(--main-color) !important;
}

#desktopNav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.border-bottom-dashed {
    border-bottom: 1px dashed var(--main-color);
    padding-bottom: 0.5rem;
}

.border-bottom-dashed-light {
    border-bottom: 1px dashed var(--secondary-color-light);
}

/* انیمیشن‌های 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(--gray-700);
}

/* تنظیم کلی تب‌ها */
.custom-tabs {
    border: none !important;
    display: flex;
    justify-content: start;
    position: relative;
    gap: 10px;
}

.custom-tabs .nav-link {
    border: none;
    background: transparent;
    color: #555;
    font-weight: 500;
    padding: 10px 20px;
    position: relative;
    transition: color 0.3s ease;
    border-radius: 5px;
}

/* افکت خط متحرک زیر تب فعال */
.custom-tabs .nav-link::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--main-color);
    border-radius: 3px;
    transform: translateX(-50%);
    transition: all 0.35s ease;
}

/* تب فعال */
.custom-tabs .nav-link.active {
    color: var(--main-color);
}

/* خط تب فعال */
.custom-tabs .nav-link.active::after {
    width: 100%;
}

/* افکت hover (اختیاری) */
.custom-tabs .nav-link:hover {
    color: var(--main-color);
}

/** Custom grid select option **/
.custom-select .btn {
    font-size: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: box-shadow 0.2s ease;
}

.custom-select .btn:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

.custom-select .dropdown-menu {
    border: none;
    padding: 0.5rem;
    opacity: 0;
    transform: translateY(-8px);
    visibility: hidden;
    transition: all 0.25s ease-in-out;
    background: transparent !important;
}

.custom-select .dropdown-menu.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.card-item {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    box-shadow: var(--bs-box-shadow-sm);
    background-color: #fff;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.card-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--bs-box-shadow);
}

.form-check-input {
    flex-shrink: 0;
}

.blur-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(var(--hb-blur));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    pointer-events: none; /* اجازه کلیک روی لینک */
}

/* Phone themplate */
.phone-wrapper {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    aspect-ratio: 15/26;
}

/* تصویر قاب موبایل */
.phone-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    z-index: 2;
    pointer-events: none;
}

/* ناحیه نمایش (صفحه گوشی) */
.phone-content {
    position: absolute;
    top: 7px;
    left: 5%;
    width: 90%;
    height: 97%;
    overflow: hidden;
    z-index: 1;
    border-radius: 35px;
}

/* عکس داخل صفحه */
.phone-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* افکت زوم هنگام هاور */
.phone-content:hover .phone-img-top {
    transform: scale(1.05);
    filter: blur(1px);
}

.video-toggle i {
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    pointer-events: none;
}

.insta-user-profile img {
    width: 35px !important;
    height: 35px !important;
}
.video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.phone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.video-toggle {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 0;
    background: transparent;
    z-index: 2;
    cursor: pointer;
}

.minimize-video {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    z-index: 3;
    cursor: pointer;
}




/* آیکون وسط تصویر */
.icon-badge {
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    pointer-events: none;
}

/* کانتینر */
.hover-zoom {
    position: relative;
    overflow: hidden;
    display: block; /* یا inline-block بسته به نیاز */
}

/* تصویر */
.hover-zoom img {
    display: block;
    width: 100%;
    transition: transform 0.45s ease, filter 0.45s ease, opacity 0.45s ease;
    transform-origin: center center;
    will-change: transform, filter;
    position: relative;    /* مهم: برای ایجاد stacking context محلی */
    z-index: 1;            /* پایین‌تر از badge */
}

/* آیکون/بج پلی */
.hover-zoom .icon-badge {
    z-index: 10;
    pointer-events: auto;
}

/* حالت هاور: زوم + بلور */
.hover-zoom:hover img {
    transform: scale(var(--hz-zoom, 1.05));
    filter: blur(var(--hb-blur, 1px));
}

/* اگر بخواهی آیکون هنگام هاور هم کمی fade-in یا scale شود */
.hover-zoom:hover .icon-badge {
    transform: translateY(0); /* یا scale(1.02) */
    transition: transform 0.35s ease, opacity 0.35s ease;
    opacity: 1;
}

.mt-n5 {
    margin-top: -0.6rem !important;
}
.service-phone {
    color: #ffffff;
}
.service-box {
    background-color: #f4f4f4;
    position: relative;
}
.service-box-banner {
    left: 5%;
    pointer-events: none;
    position: absolute;
    top: -66px;
    user-select: none;
    width: 300px;
    height: 235px;
    z-index: 1;
    transition: all 0.3s ease;
}
.service-box-number {
    letter-spacing: 3px;
}

.anim-link,
.anim-link-secondary{
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 0.4s ease;
    padding-bottom: 0.5rem;
}

.anim-link::after,
.anim-link-secondary::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    width: 80%;
    height: 2px;
    transition: transform 0.4s ease;
    border-radius: 2px;
}

.anim-link::after {
    background-color: var(--main-color);
}
.anim-link-secondary::after {
    background-color: var(--secondary-color-dark);
}
.anim-link:hover {
    color: var(--main-color) !important;
}
.anim-link-secondary:hover {
    color: var(--secondary-color-dark) !important;
}

.anim-link:hover::after,
.anim-link-secondary:hover::after {
    transform: translateX(-50%) scaleX(1);
}
.border-main-color {
    border-color: var(--main-color) !important;
}

.advisor-box {
    background: #FFFFFF;
    border-radius: 12px;
    padding: 12px;
    position: relative;
}

.advisor-striped {
    /*background: repeating-linear-gradient(
            135deg,
            #fafafa 0,
            #fafafa 5px,
            rgba(1, 72, 48, 0.1) 5px,
            rgba(1, 72, 48, 0.1) 20px
    );*/
    background-color: var(--main-color);
    border-radius: 12px;
    padding: 12px;
}

.entry-title {
    display: -ms-flexbox;
    display: box;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    list-style: none;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -ms-flex-pack: justify;
    justify-content: space-between;
    -ms-flex-align: center;
    align-items: center;
    border-bottom: 1px solid var(--gray-300);
    line-height: 1;
    margin-bottom: 10px;
}

.entry-title h1 {
    border-bottom: 2px solid var(--main-color);
    position: relative;
    padding-bottom: 10px;
    bottom: -1px;
    max-width: 100%;
    min-width: 0;
    line-height: 1.5;
    text-align: justify;
}


/* انیمیشن ظاهر شدن دکمه شناور */
#floatingAdvisor {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    opacity: 0;
    transform: scale(0);
    z-index: 1050;
    transition: all 0.5s;
}

#floatingAdvisor.show {
    opacity: 1;
    transform: scale(1);
}

#floatingAdvisor.hide {
    opacity: 0;
    transform: scale(0);
}

/* متن روی دکمه شناور */
#floatingAdvisor .advisor-label {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-weight: bold;
    font-size: 0.8rem;
    white-space: nowrap;
    text-shadow: 1px 0px 4px rgba(0,0,0,1);
}

.share-toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,.85);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  pointer-events: none;
  transition: opacity .3s;
  z-index: 99999;
}

.footer-address {
    line-height: 1.875rem !important;
    margin: 1.125rem 0;
}

.footer-certificate {
    height: 68px;
    width: 68px;
}

.mb-6{
    margin-bottom:4rem!important
}
.bg-contact-us {
    background: linear-gradient(-90deg, var(--main-color), #def7e5, #def7e5);
    -webkit-background-clip: content;
    color: #FFFFFF;
}
#mainContent p,h2{
  line-height: 1.875rem !important;}
.rotate-arrow {
    transition: transform 0.35s ease;
}

.rotate-arrow.open {
    transform: rotate(-90deg);
}
.loader-12 {
    position: relative;
    width: 64px;
    height: 64px;
}
.loader-12 i {
    position: absolute;
    inset: 0;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
    opacity: 0.8;
    animation: loading-ripple 1.6s ease-out infinite;
}
.loader-12 i:nth-child(2) {
    animation-delay: 0.4s;
    opacity: 0.5;
}
.loader-12 i:nth-child(3) {
    animation-delay: 0.8s;
    opacity: 0.3;
}
@keyframes loading-ripple {
    from {
        transform: scale(0.15);
        opacity: 0.9;
    }
    to {
        transform: scale(1);
        opacity: 0;
    }
}

.navbar {
    position: relative;
    width: 100%;
    z-index: 1500;
    display: flex;
    justify-content: center;
    transform: translateY(0);
}
.navbar.scrolled {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translate(-50%, 10px); /* کمی پایین‌تر از بالا */
    width: fit-content; /* فقط اندازه محتوا */
    background-color: rgba(255, 255, 255, 0.15); /* شیشه‌ای */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 10px;
    padding: 0.5rem 2rem;
}
.navbar.scrolled #desktopNav .nav-link:not(.active) span,
.navbar.scrolled #desktopNav .nav-link:not(.active) i {
    color: #000000 !important;
}
.bottom-tabs {
    background-color: rgba(255, 255, 255, 0.3); /* شیشه‌ای */
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #848484;
    border-radius: 10px;
}
.bottom-tabs .nav-link.active {
    border-bottom: 2px solid var(--main-color);
    border-radius: 3px;
    font-weight: bold;
}
.bottom-tabs .nav-link.active{
    color: var(--main-color) !important;
}
.bottom-tabs .nav-link:not(.active) span,
.bottom-tabs .nav-link:not(.active) i{
    color: #000000 !important;
}

/* برای گوشی */
@media (max-width: 576px) {
    h1 { font-size: 1.4rem; }
    h2 { font-size: 1.0rem; }
    h3 { font-size: 1.0rem; }
    h4 { font-size: 1.0rem; }
    .image-on-top {
        margin-top: 0px !important;
    }
    .mt-n5 {
        margin-top: -0.2rem !important;
    }
    .service-box {
        overflow: visible; /* اجازه بده از بالا/پایین بیرون بزند ولی نه افقی */
    }
    .article-img {
        height: 250px !important;
    }
    .card-title {
        text-align: justify;
    }
}

/* برای تبلت (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; }
    .image-on-top {
        margin-top: 0px !important;
    }
    .mt-n5 {
        margin-top: -0.2rem !important;
    }
    .article-img {
        height: 150px !important;
    }
    .card-title {
        text-align: justify;
    }

    .card-title:hover span {
        display: inline-block;
        animation: scrollText 6s linear infinite;
    }

    .card-title span {
        transform: translateX(0);
        transition: transform 0.3s ease;
    }
}

/* برای دسکتاپ (بزرگ‌تر از 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; }
    /*body {
        padding-top: 80px;
    }*/
    .image-on-top {
        margin-top: -40px !important;
    }
    .article-img {
        height: 150px !important;
    }
    .card-title {
        white-space: nowrap;
    }
}
@media (max-width: 991.98px) {
    /*body {
        padding-bottom: 80px;
    }*/

    .gradient-overlay-top {
        height: 0%;
    }
    .gradient-overlay-bottom {
        height: 25%;
    }

    .banner-text {
        transform: translateY(-50%);
        max-width: 80%;
    }

    .banner-text h1 {
        font-size: 1.2rem !important;
    }

    .banner-text p {
        font-size: 0.9rem !important;
    }
    #mobileNav {
        padding-bottom: env(safe-area-inset-bottom);
    }
    .service-box-banner {
        position: absolute;
        left: 5%;
        top: 50%;
        transform: translateX(-10%);
        top: -20%; /* کمی از بالا بیرون بزند */
        max-width: 33%; /* یک‌سوم عرض کارت */
        height: auto;
        z-index: 1;
    }
}
