﻿/* ===============================
   Base
================================*/
:root {
    --title-font-color: #ffcc4d;
/*    (229, 243, 194);*/
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Vazirmatn';
    src: url('/fonts/vazirmatn/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}
h1.title, h2.title {
    color: var(--title-font-color)
}
html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: "Vazirmatn","IRANSans", sans-serif;
    margin: 0;
    background-color: #000;
    direction: rtl;
    padding-top: 80px;
}
.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem #258cfb;
}

/* ===============================
   Layout
================================*/
.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
}

.main-content {
    flex: 1;
}

/* ===============================
   Header
================================*/
.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: transparent;
    padding: 10px 0;
    z-index: 9999;
    border-bottom: 2px solid rgba(100,150,200,0.12);  /*Line Under of Header Part*/
    backdrop-filter: blur(8px);
}


    .site-header .navbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 12px;
        padding: 0;
    }

    /* Desktop order:
   auth | menu | logo
*/
    .site-header .auth-links {
        order: 1;
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .site-header .navbar-collapse {
        order: 2;
        display: flex !important;
        justify-content: center;
        flex-grow: 1;
    }

    .site-header .logo {
        order: 3;
        flex-shrink: 0;
        margin-right: 0;
        margin-left: 0;
    }

        .site-header .logo img {
            width: 50px;
            height: 50px;
            object-fit: contain;
            display: block;
        }

/* menu */
.main-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
    align-items: center;
}

    .main-menu .nav-link {
        color: #000;
        padding: 10px 12px;
        border-radius: 10px;
        transition: 0.3s;
    }

        .main-menu .nav-link:hover,
        .main-menu .nav-link:focus {
            color: #d40000;
            background-color: rgba(255, 0, 0, 0.05);
        }

/* dropdown */
.dropdown-menu {
    text-align: right;
    border-radius: 12px;
}

.dropdown-item {
    text-align: right;
}

    .dropdown-item:hover {
        background-color: rgba(255, 0, 0, 0.05);
        color: #d40000;
    }

/* toggler */
.navbar-toggler {
    order: 1;
    border: none;
    box-shadow: none !important;
    padding: 6px 8px;
    display: none;
}

    .navbar-toggler:focus {
        box-shadow: none !important;
    }

/* ===============================
   Footer
================================*/
footer {
    background-color: #222;
    color: #ccc;
    text-align: center;
    padding: 20px;
    margin-top: auto;
}

/* ===============================
   Login/Register Page
================================*/
.login-register-body {
    background: #f8f9fa;
    min-height: 100vh;
}
/* کانتینر اصلی صفحه ورود */
.login-register-page {
    display: flex;
    justify-content: center;
    /* تغییر از center به flex-start برای بالا بردن کارت */
    align-items: flex-start;
    /* ایجاد فاصله از سقف صفحه (مثلاً 5 تا 10 درصد ارتفاع کل) */
    padding-top: 8vh;
    min-height: 100vh;
    width: 100%;
}

/* خودِ باکس فرم */
.login-register-box {
    width: 100%;
    max-width: 450px; /* یا هر سایزی که مد نظرت هست */
    background: rgba(255, 255, 255, 0.9); /* اگر حالت شیشه‌ای می‌خواهی */
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    margin-top: -70px; /* کارت را به سمت بالا می‌کشد */
}
.login-footer {
    position: fixed;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 14px;
    color: #666;
}


    .login-footer .home-link {
        color: #0d6efd;
        text-decoration: none;
        margin-left: 6px;
    }

        .login-footer .home-link:hover {
            text-decoration: underline;
        }

.auth-tabs .nav-link.active {
    background-color: #ffc107 !important; /* زرد لوگو */
    color: #000 !important;
    border-bottom: 3px solid #000;
}



/*.login-register-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-register-box {
    width: 25%;
    min-width: 320px;
    max-width: 420px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}*/

.auth-tabs .nav-link {
    border-radius: 0 !important;
    color: #333;
    font-weight: 500;
}

    .auth-tabs .nav-link.active {
        color: #0d6efd;
        background-color: #fff;
    }

.auth-content {
    background: #fff;
}

/* ===============================
   Tablet & Mobile
================================*/
@media (max-width: 991.98px) {
    .site-header .navbar {
        flex-wrap: nowrap;
    }

    /* order in mobile/tablet:
       toggler | auth | logo
    */
    .navbar-toggler {
        display: block;
        order: 1;
        flex-shrink: 0;
    }

    .site-header .auth-links {
        order: 2;
        margin-right: 0;
        margin-left: 0;
        flex-wrap: nowrap;
    }

    .site-header .logo {
        order: 3;
        margin-right: auto;
    }

        .site-header .logo img {
            width: 42px;
            height: 42px;
        }

    .site-header .navbar-collapse {
        order: 4;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        border-top: 1px solid #ddd;
        padding: 12px 15px;
        z-index: 1000;
        display: none !important;
    }

        .site-header .navbar-collapse.show {
            display: block !important;
        }

    .main-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        width: 100%;
    }

        .main-menu .nav-item {
            width: 100%;
        }

        .main-menu .nav-link {
            width: 100%;
        }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        border: none;
        box-shadow: none;
        padding-right: 12px;
    }

    .auth-links .btn {
        padding-right: 10px;
        padding-left: 10px;
    }
}

/* ===============================
   Small Mobile
================================*/
@media (max-width: 576px) {
    .site-header .navbar {
        gap: 8px;
    }

    .site-header .auth-links {
        gap: 6px;
    }

        .site-header .auth-links .btn {
            font-size: 12px;
            padding: 5px 8px;
        }

    .login-register-box {
        width: 100%;
        min-width: unset;
        max-width: 100%;
    }
}


/* برای زیرمنوهای N-Level */
/* =========================
   Main menu layout
========================= */
.main-menu {
    align-items: center;
    gap: 8px;
}

    .main-menu > .nav-item {
        position: relative;
    }

    .main-menu .nav-link {
        color: #0d6efd;
        font-weight: 500;
        padding: 10px 14px;
    }

        .main-menu .nav-link:hover,
        .main-menu .dropdown-item:hover {
            color: #0a58ca;
        }

/* =========================
   Dropdown base
========================= */
.dropdown-menu {
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 8px 0;
}

    .dropdown-menu li {
        position: relative;
    }

    .dropdown-menu .dropdown-item {
        padding: 10px 16px;
        white-space: nowrap;
    }

/* =========================
   Submenu (level 2+)
========================= */
.dropdown-submenu {
    position: relative;
}

    .dropdown-submenu > .dropdown-menu {
        top: 0;
        right: 100%;
        margin-top: -1px;
        display: none;
    }

    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    /* فلش آیتم‌های دارای زیرمنو */
    .dropdown-submenu > .submenu-toggle::before {
        content: "◀";
        font-size: 10px;
        margin-left: 8px;
        float: left;
        opacity: .7;
    }

/* در دسکتاپ، hover هم کار کند */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
        margin-top: 0;
    }

    .navbar .dropdown-submenu:hover > .dropdown-menu {
        display: block;
    }
}

/* در موبایل زیرمنوها زیر هم باز شوند */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: #fff;
        border-radius: 12px;
        padding: 12px;
        margin-top: 10px;
    }

    .dropdown-menu {
        position: static !important;
        transform: none !important;
        float: none;
        box-shadow: none;
        border: none;
        padding-right: 12px;
        margin-top: 0;
        display: none;
    }

    .dropdown.show > .dropdown-menu,
    .dropdown-submenu.show > .dropdown-menu {
        display: block;
    }

    .dropdown-submenu > .dropdown-menu {
        right: auto;
    }

    .dropdown-submenu > .submenu-toggle::before {
        content: "▼";
    }
}
/*Scroll Up page*/
 
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgb(20, 210, 246);
    color: #fff;
    display: block !important;
    z-index: 999999;
}
    #scrollTopBtn:hover {
        background: #258cfb;
    }


/*بخش فورت و ساب فورت  
  تنظیمات کلی فوتر */
.site-footer {
    background-color: #000; /* کاملاً مشکی مطابق تصویر */
    color: #fff;
    padding: 60px 0 20px 0;
    direction: rtl;
    font-family: 'Tahoma', sans-serif; /* یا فونت پروژه شما */

    position: relative; /* خیلی مهم */
    width: 100%;
    z-index: 1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

    .footer-col h3 {
        font-size: 1.2rem;
        font-weight: bold;
        margin-bottom: 25px;
        border-bottom: none;
    }

    /* استایل لیست‌ها */
    .footer-col ul {
        list-style: none;
        padding: 0;
    }

        .footer-col ul li {
            margin-bottom: 12px;
        }

            .footer-col ul li a {
                color: #ccc;
                text-decoration: none;
                font-size: 0.95rem;
                transition: 0.3s;
                display: flex;
                align-items: center;
            }

                .footer-col ul li a i {
                    color: #ffb400; /* رنگ نارنجی آیکون‌ها */
                    font-size: 0.7rem;
                    margin-left: 8px;
                }

                .footer-col ul li a:hover {
                    color: #ffb400;
                    padding-right: 5px;
                }

/* استایل آیکون‌های شبکه اجتماعی */
.social-icons {
    display: flex;
    justify-content: center; /* وسط‌چین افقی */
    align-items: center; /* وسط‌چین عمودی (اگر ارتفاع ثابت داری) */
    gap: 10px;
    margin-top: 20px;
}

    .social-icons a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 35px;
        height: 35px;
        background: #222;
        color: #fff;
        border-radius: 4px;
        text-decoration: none;
        transition: 0.3s;
    }

        .social-icons a:hover {
            background: #ffb400;
            color: #000;
        }

/* بخش کپی‌رایت */
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #222;
    font-size: 0.85rem;
    color: #888;
}

    .footer-bottom strong {
        color: #fff;
    }

.designer {
    margin-top: 5px;
    color: #ffb400;
}

    .designer a {
        color: #ffb400;
        text-decoration: none;
    }
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
    margin-bottom:16px;
    font-size: 0.95rem;
}

    .footer-item i {
        color: #ffcc4d;
        font-size: 26px;
    }

/*.social-links a {
    color: #fff;
    justify-content: center;*/ /* وسط‌چین افقی */
    /*align-items: center;*/ /* وسط‌چین عمودی (اگر ارتفاع ثابت داری) */
    /*margin-left: 10px;
    font-size: 24px;*/ /* بزرگ‌تر شد */
    /*transition: 0.2s;
}

    .social-links a:hover {
        color: #ffcc4d;
    }*/

.social-links {
    display: flex;
    justify-content: center; /* وسط‌چین افقی */
    align-items: center; /* وسط‌چین عمودی (اگر ارتفاع ثابت داری) */
    gap: 30px; /* فاصله بین آیکون‌ها */
    margin-top: 40px;
}

    /* برای خود آیکون‌ها هم می‌توانی استایل بدهی */
    .social-links a {
        color: #fff; /* یا رنگ دلخواه */
        font-size: 20px; /* اندازه آیکون */
        text-decoration: none;
    }

        .social-links a:hover {
            color: #ffc107; /* رنگ هاور */
        }

.footer-map iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}
/*.footer-map iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 12px;
}*/

/* ساب فوتر (بخش همرنگ Body) */
.sub-footer {
    background-color: #fff; /* همرنگ بک‌گراند Body شما */
    height: 60px; /* ضخامت بخش سفید پایین */
    width: 100%;
}




/*Background*/
.hero-section {
    height: 100vh;
    /* لایه تیره کننده (0.5 یعنی 50 درصد تیره) */
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)), url('../images/Hero-Sec/hero-bg.webp');

    background-size: cover;
    background-position: center;
    background-attachment: scroll; /* تغییر دادیم که با اسکرول بالا برود */
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-text {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    text-shadow: 0 0 8px rgba(0,0,0,0.6);
}

/* تیتر اصلی */
.hero-title {
    color: #ffffff;
    font-size: 3rem;
    font-family: "Vazirmatn";
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 25px;
}

    /* بخش زرد */
    .hero-title .highlight {
        color: #ffcc4d;
        font-weight: 800;
    }

/* متن توضیحی */
.hero-subtext {
    color: #e5e5e5;
    font-size: 1.4rem;
    font-family: "Vazirmatn";
    font-weight: 500;
    line-height: 2.2;
    margin-bottom: 20px;
}

/* نوشته پایانی */
.hero-note {
    color: #d0d0d0;
    font-size: 1.2rem;
}

.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* متن اول بالا سمت چپ */
.hero-title {
    position: absolute;
    top: 440px;
    left: 40px;
    transform: rotate(0deg); /*-45deg*/
    transform-origin: left top;
    color: #fff;
    font-size: 38px;
    font-weight: 700;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}

    /* رنگ KPID */
    .hero-title .highlight {
        color: #ffd000;
    }

/* متن دوم پایین سمت راست */
.hero-subtext {
    position: absolute;
    bottom: 280px;
    right: 40px;
    transform: rotate(0deg); /*-45deg*/
    transform-origin: right bottom;
    color: #fff;
    font-size: 22px;
    max-width: 420px;
    line-height: 1.8;
    text-shadow: 0 0 12px rgba(0,0,0,0.6);
}


/* وسط کردن منو */
.navbar .main-menu {
    margin: 0 auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* رنگ پیش‌فرض آیتم‌های منو */
.main-menu .nav-link {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 400;
    padding: 0.7rem 1rem;
}

/* آیتم خانه (اولین آیتم منو) */
.main-menu li:first-child .nav-link {
    color: #ffcc4d !important;
    font-weight: 600;
}

    /* اگر آیکون داخل خانه باشد */
    .main-menu li:first-child .nav-link i {
        color: #ffcc4d !important;
    }

.main-menu .nav-link:hover {
    color: #ffcc4d !important;
}


.site-header {
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(3px);
}
.navbar-toggler {
    border-color: #ffffff !important;
}

.navbar-toggler-icon {
    filter: brightness(10);
}

/* حالت موبایل */
@media (max-width: 991px) {

    /* منوی همبرگری وقتی باز می‌شود */
    .navbar-collapse.collapse.show {
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 12px;
        padding: 20px;
        margin-top: 12px;
    }

    /* آیتم‌های منو */
    .navbar-collapse .nav-link {
        color: #ffffff !important;
        padding: 12px 0;
        font-size: 1.05rem;
    }

    /* آیتم خانه */
    .navbar-collapse li:first-child .nav-link,
    .navbar-collapse li:first-child .nav-link i {
        color: #ffcc4d !important;
        font-weight: 600;
    }
}


/*حالت دوم برای منوی همبرگری*/

/* ===========================================================
   Mobile Professional Floating Glass Menu
   =========================================================== */
@media (max-width: 991px) {

    /* پنل شناور شیشه‌ای */
    .navbar-collapse.collapse.show {
        background: rgba(0, 0, 0, 0.55) !important;
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border-radius: 18px;
        padding: 25px 22px;
        margin-top: 15px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
        transform: translateY(10px);
        animation: mobileMenuFade 0.35s ease forwards;
    }

    /* انیمیشن افتتاح */
    @keyframes mobileMenuFade {
        from {
            opacity: 0;
            transform: translateY(-10px) scale(0.97);
        }

        to {
            opacity: 1;
            transform: translateY(0) scale(1);
        }
    }

    /* استایل آیتم‌های منو */
    .navbar-collapse .nav-link {
        color: #fff !important;
        padding: 14px 0;
        font-size: 1.15rem;
        font-weight: 400;
        display: flex;
        align-items: center;
        flex-direction: row; /* آیکون سمت راست، متن سمت چپ (برای RTL) */
        gap: 14px; /* فاصله دقیق و کنترل‌شده بین آیکون و متن */

        transition: all 0.25s ease;
    }




 

        /* افکت لمس / هاور آیتم‌ها */
        .navbar-collapse .nav-link:hover {
            color: #ffcc4d !important;
            padding-right: 8px;
        }

    /* جداکننده زیبا بین آیتم‌ها */
    .navbar-collapse .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

        .navbar-collapse .nav-item:last-child {
            border-bottom: 0;
        }

    /* آیتم خانه */
    .navbar-collapse li:first-child .nav-link,
    .navbar-collapse li:first-child .nav-link i {
        color: #ffcc4d !important;
        font-weight: 700;
    }

    /* آیکون‌ها داخل موبایل */
    .navbar-collapse .nav-link i {
        font-size: 1.2rem;
        opacity: 0.9;
    }

    /* راست‌چین زیباتر */
    .navbar-collapse {
        text-align: right;
    }
}
