:root{
    --main-blue: #142650;
    --light-blue: #29bcbd;
}
a{
    text-decoration: none !important;
}

@font-face {
    font-family: IranSansX;
    src: url("fonts/IRANSansXFaNum-RegularD4.ttf");
    font-display: swap;
}
@font-face {
    font-family: IranSansXBold;
    src: url("fonts/IRANSansXBold.ttf");
    font-display: swap;
}
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@keyframes vibratingPhone {
    0% {
        transform: rotate(0deg);
    }
    20% {
        transform: rotate(10deg);
    }
    40% {
        transform: rotate(-10deg);
    }
    60% {
        transform: rotate(10deg);
    }
    80% {
        transform: rotate(-10deg);
    }
    100% {
        transform: rotate(0deg);
    }
}


.topHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
}

.topLogo {
    width: auto;
}

.logo {
    padding-right: 30px;
    vertical-align: middle;
    float: right;
}

.leftHeader {
    float: left;
    padding-right: 20px;
    padding-left: 20px;
    color: var(--main-blue);
    font-size: 25px;
}

.HeaderArrow {
    float: left;
}

.SocialHeaderIcon {
    text-decoration: none;
    color: var(--main-blue);
    vertical-align: middle;
    font-size: 40px;
}

.VibratingPhone {
    font-size: 34px;
    display: inline-block;
    animation: vibratingPhone 1.5s infinite;
}

.topBanner {
    width: 100%;
    height: auto;
}

.bodyProp {
    direction: rtl;
    font-family: IranSansX, serif;
    box-sizing: border-box;

}

#mainNav {
    font-family: IranSansXBold, serif;
    border-radius: 16px;
    background: var(--main-blue);

}

#mainNav > .navItems {
    list-style: none;
    margin: 0;

}

#mainNav > .navItems > .navItem {
    display: inline-block;
    position: relative;
}

#mainNav > .navItems > .navItem > .navLink {
    display: block;
    padding: 12px 23px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    position: relative;
}

#mainNav > .navItems > .navItem > .navLink::after {
    content: "";
    position: absolute;
    right: 13px;
    left: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    background: var(--light-blue);

    transition: all 0.4s ease;
}

#mainNav > .navItems > .navItem > .navLink:hover::after {
    width: 85%;


}


.lastItem {
    background-color: var(--main-blue);
    float: left;
    border-radius: 16px;
}

.subMenu {
    position: absolute;
    color: white;
    top: 100%;
    right: 0; /* RTL alignment */
    background-color: var(--main-blue);
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(13, 30, 64, 0.18);
    min-width: 200px;
    padding: 8px 0;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    pointer-events: none; /* prevent invisible submenu from catching pointer */
    visibility: hidden; /* hide from pointer/assistive tech until visible */
}

.navItem:hover > .subMenu {
    /* keep same layout (display stays flex) */
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto; /* allow interaction when visible */
    visibility: visible;
}

.subMenu a {
    display: block;
    padding: 10px 16px;
    color: white;
    text-decoration: none;
    font-size: 15px;
    transition: font-size 0.3s;
}

.subMenu a:hover,
.subMenu a:focus {
    font-size: 18px;
    color: var(--light-blue);
    outline: none;
}

.userIcon {
    vertical-align: middle;
    font-size: 15px;
}

.navLogin {
    position: relative;
}

.navLogin:hover {

    background-color: var(--light-blue);
    transition: all 0.3s ease-out;
}

.navLogin:hover::after {
    background-color: var(--main-blue);
}

.navArrowColor {
    color: #fff;
    vertical-align: middle;
    font-size: 12px;
}

.navArrow {

    display: inline-block; /* برای transform لازم است */
    transition: transform 0.4s ease; /* انیمیشن نرم */

}

.navLink:hover .navArrow {
    transform: rotate(-90deg); /* چرخش ۹۰ درجه */
    color: var(--light-blue);
}

.fixedCallBtn {
    position: fixed;
    bottom: 50px;
    left: 50px;
    background-color: var(--main-blue);
    color: #fff;
    padding: 12px 22px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
    z-index: 1000; /* همیشه بالا باشه */
    display: flex;
    align-items: center;
    justify-content: center;

}

.fixedCallBtn:hover {
    background-color: var(--light-blue);
}

.backToTopBtn {
    position: fixed;
    bottom: 100px;
    right: 50px;
    background-color: var(--main-blue);
    color: #fff;
    padding: 12px 10px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 22px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    transition: opacity 0.3s ease, background-color 0.3s;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.backToTopBtn.visible {
    opacity: 1;
    pointer-events: auto;
}

.backToTopBtn:hover {
    background-color: var(--light-blue);
}

.menuSeparator {
    font-size: 24px;
    vertical-align: middle;
    color: var(--light-blue);
}

/* حالت اولیه: شفاف (بنر زیرش دیده میشه) */
#mainNav {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    /* وقتی بالایی، شفاف باشه */
    backdrop-filter: none;
    box-shadow: none;
    transition: background-color 220ms ease, backdrop-filter 220ms ease, box-shadow 220ms ease;
}

/* وقتی صفحه به اندازه threshold اسکرول کرد، این کلاس اضافه میشه و هدر شیشه‌ای میشه */
#mainNav.scrolled {
    background-color: rgba(20, 38, 80, 0.75); /* رنگ پایه‌ی شیشه‌ای */
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 6px 20px rgba(13, 30, 64, 0.25);
}

/* اندازه و مرکز کردن کلی اسلایدر */
.my-blaze {
    max-width: 1100px; /* اندازه دلخواه */
    margin: 0 auto; /* وسط صفحه */
}

/* مطمئن شو که محتوای اسلاید کل ارتفاع رو اشغال کنه */
.my-blaze .blaze-track,
.my-blaze .blaze-track > * {
    height: 100%;
}

/* تصویر داخل اسلاید */
.my-blaze .blaze-slide img {
    width: 60%;
    display: block;
    border-radius: 8px;
    margin: 0 auto;
}

/* کنترل‌ها زیر اسلایدر */
.my-blaze .blaze-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

/* دکمه‌های nav */
.my-blaze .blaze-prev,
.my-blaze .blaze-next {
    background: var(--main-blue);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    font-size: 16px;
}

.hero-slider {
    width: 75%;  /* بهتره full-width باشه */
    min-height: 380px;
    position: relative;
    margin: 10px auto;
}

.hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(70%);
}

.hero-content {
    position: absolute;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    color: white;
    text-align: right;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    font-family: IranSansX, sans-serif;
}

.hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background: var(--light-blue);
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: background 0.3s ease;
}

.hero-btn:hover {
    background: var(--main-blue);
}

/* کنترل‌ها */
.blaze-prev, .blaze-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    font-size: 26px;
    padding: 1px 17px;
    border-radius: 10%;
    cursor: grab;
    transition: background 0.3s;
    font-family: IranSansX, sans-serif;
}

.blaze-prev:hover, .blaze-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.blaze-prev {
    left: 20px;
}

.blaze-next {
    right: 20px;
}

.blaze-pagination {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
}

.orgText {
    margin: 10px auto;
    font-size: 24px;
    color: var(--main-blue);
    text-align: center;
}
.insBoxItem 
{
    width: 100%;
    height: auto;
    background-color: var(--light-blue);
    font-size: 20px;
    color: white;
    text-align: center;
    border-radius: 12px;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
}
.insBoxItem:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}
.icon  {
    width: 80px; /* عرض دلخواه */
    height: 80px; /* ارتفاع دلخواه */
    margin: 12px auto;
    display: block;
    padding: 6px;
    text-align: center;
}
.insBoxDetails{
    display: block;
    font-size: 15px;
    padding-bottom: 10px;
}
.lightFooterLine{
    border-color: rgba(255,255,255,0.2);
}
.footerBackground{
    background-color: var(--main-blue);
}
/* ===== دکمه همبرگری (فقط موبایل) ===== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 10px 20px;
    z-index: 2000;
}

