:root {
    --primary-dark: #0f2744;
    --primary-blue: #1a3a6b;
    --accent-blue: #2563eb;
    --accent-light: #e7eff7;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --red-dot: #ef4444;
    --gold: #f59e0b;
    --gradient-primary: linear-gradient(135deg, #0f2744 0%, #1a3a6b 50%, #2563eb 100%);
}
       @font-face {
            font-family: 'IranSans';
            src: url('./lib/IranSans/IRANSans-web.woff') format('woff');
            /* font-weight: 100; */
            font-style: normal;
        }

        @font-face {
            font-family: 'IranSans';
            src: url('./lib/IranSans/IRANSansWeb.eot') format('eot');
            /* font-weight: 300; */
            font-style: normal;
        }
* {
    font-family: 'IranSans', Tahoma, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    background-color: #f8fafc;
    color: var(--text-dark);
    font-size: 12px;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
a:hover { color: var(--accent-blue); }

.top-bar { background: var(--gradient-primary); color: #fff; font-size: 13px; padding: 8px 0; }
.top-bar .date-info { display: flex; align-items: center; gap: 6px; }
.top-bar .date-info i { color: var(--gold); }
.top-bar .top-links { display: flex; align-items: center; gap: 18px; justify-content: flex-end; }
.top-bar .top-links a { color: #cbd5e1; display: flex; align-items: center; gap: 6px; }
.top-bar .top-links a:hover { color: #fff; }

.main-header { background: #fff; border-bottom: 1px solid var(--border-color); }

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.org-logo { display: flex; align-items: center; gap: 12px; }
.org-logo .logo-icon { width: 55px; height: 55px; flex-shrink: 0; }
.org-logo h1 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin: 0; line-height: 1.5; }
.org-logo h1 small { font-size: 11px; color: var(--text-muted); font-weight: 400; display: block; }

.user-login-dropdown { position: relative; flex-shrink: 0; }
.user-login-btn {
    background: var(--gradient-primary);
    border: none;
    color: #fff;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
    white-space: nowrap;
}
.user-login-btn:hover, .user-login-btn.active { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(37, 99, 235, 0.4); }
.user-login-btn .avatar { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,255,255,0.2); display: flex; align-items: center; justify-content: center; font-size: 12px; }
.user-login-btn .arrow { font-size: 10px; transition: transform 0.3s; }
.user-login-btn.active .arrow { transform: rotate(180deg); }

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    min-width: 300px;
    opacity: 0; visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}
.user-dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-menu::before { content: ''; position: absolute; top: -6px; left: 25px; width: 12px; height: 12px; background: #fff; transform: rotate(45deg); }

.dropdown-header-custom { background: var(--gradient-primary); color: #fff; padding: 14px 18px; font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.dropdown-header-custom i { color: var(--gold); }
.dropdown-item-custom { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text-dark); font-size: 13px; border-bottom: 1px solid #f1f5f9; transition: all 0.3s; }
.dropdown-item-custom:last-child { border-bottom: none; }
.dropdown-item-custom:hover { background: #f0f7ff; color: var(--accent-blue); padding-right: 24px; }
.dropdown-item-custom .item-icon { width: 38px; height: 38px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.dropdown-item-custom:nth-child(2) .item-icon { background: #dbeafe; color: #2563eb; }
.dropdown-item-custom:nth-child(3) .item-icon { background: #dcfce7; color: #16a34a; }
.dropdown-item-custom:nth-child(4) .item-icon { background: #fef3c7; color: #d97706; }
.dropdown-item-custom:nth-child(5) .item-icon { background: #fce7f3; color: #db2777; }
.dropdown-item-custom .item-text { flex: 1; }
.dropdown-item-custom .item-text small { display: block; color: var(--text-muted); font-size: 11px; margin-top: 2px; }
.dropdown-item-custom .item-arrow { color: #cbd5e1; font-size: 12px; }
 .main-nav {
        background: #fff;
        border-bottom: 3px solid var(--accent-blue, #2563eb);
        padding: 0;
        position: sticky;
        top: 0;
        z-index: 999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    }

    .hamburger-btn {
        display: none;
        background: none;
        border: none;
        font-size: 24px;
        color: var(--primary-dark, #0f2744);
        padding: 10px;
        cursor: pointer;
    }

    .menu-title {
        color: var(--primary-dark, #0f2744);
        font-weight: bold;
        font-size: 14px;
    }

    .nav-menu {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-wrap: nowrap;
        list-style: none;
        margin: 0;
        padding: 0;
        gap: 5px;
    }

    .main-nav .nav-link {
        color: var(--text-dark, #1e293b);
        padding: 14px 16px;
        font-size: 12px;
        font-weight: 600;
        border-bottom: 3px solid transparent;
        margin-bottom: -3px;
        transition: all 0.3s;
        display: flex;
        align-items: center;
        gap: 6px;
        white-space: nowrap;
        text-decoration: none;
    }

    .main-nav .nav-link:hover,
    .main-nav .nav-link.active {
        color: var(--accent-blue, #2563eb);
        border-bottom-color: var(--accent-blue, #2563eb);
        background: #f0f7ff;
    }

    .main-nav .nav-link i {
        font-size: 13px;
        opacity: 0.7;
    }

    .arrow-icon {
        font-size: 10px !important;
        margin-right: 4px;
    }

    /* ===== ??? ??? ===== */
    .has-mega {
        position: relative;
    }

    .mega-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: #fff;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        border: 1px solid var(--border-color, #e2e8f0);
        border-top: none;
        border-radius: 0 0 8px 8px;
        padding: 20px;
        z-index: 1000;
    }

    .has-mega:hover .mega-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .mega-menu-column h4 {
        font-size: 14px;
        font-weight: 700;
        color: var(--primary-dark, #0f2744);
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 2px solid var(--accent-blue, #2563eb);
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mega-menu-column h4 i {
        color: var(--accent-blue, #2563eb);
    }

    .mega-menu-column ul {
        list-style: none;
        margin: 0;
        padding: 0;
    }

/*    .mega-menu-column li {
       margin-bottom: 8px;
    }*/

    .mega-menu-column a {
        color: var(--text-gray, #64748b);
        text-decoration: none;
        font-size: 10px;
        padding: 6px 0;
        display: block;
        transition: all 0.3s;
        border-right: 2px solid transparent;
        padding-right: 8px;
    }

    .mega-menu-column a:hover {
        color: var(--accent-blue, #2563eb);
        border-right-color: var(--accent-blue, #2563eb);
        padding-right: 12px;
    }

    .mega-menu-close {
        display: none;
        width: 100%;
        padding: 12px;
        background: var(--accent-blue, #2563eb);
        color: #fff;
        border: none;
        border-radius: 6px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 15px;
    }

    /* ===== ???????? ===== */
    @media (max-width: 991.98px) {
        .hamburger-btn {
            display: block;
        }
        
        .nav-menu {
            display: none;
            flex-direction: column;
            width: 100%;
            background: #fff;
            border-top: 1px solid var(--border-color, #e2e8f0);
        }
        
        .nav-menu.show {
            display: flex;
        }

        .nav-item {
            width: 100%;
            border-bottom: 1px solid #f1f5f9;
        }

        .main-nav .nav-link {
            padding: 14px 20px;
            border-bottom: none;
            border-right: 3px solid transparent;
            margin-bottom: 0;
            justify-content: space-between;
            width: 100%;
        }
        
        .main-nav .nav-link:hover,
        .main-nav .nav-link.active {
            border-right-color: var(--accent-blue, #2563eb);
            background: #f0f7ff;
        }

        .mega-menu {
            display: none;
            position: static;
            box-shadow: none;
            border: none;
            border-top: 1px solid #f1f5f9;
            padding: 15px 20px;
            background: #f8fafc;
        }

        .mega-menu.show {
            display: grid;
            grid-template-columns: 1fr;
            gap:15px;
        }

        .mega-menu-column {
            margin-bottom: 15px;
        }

        .mega-menu-close {
            display: block;
        }

        .arrow-icon {
            transition: transform 0.3s;
        }

        .nav-link.active .arrow-icon {
            transform: rotate(180deg);
        }
    }
.hero-section { padding: 25px 0; }
.featured-news { position: relative; border-radius: 16px; overflow: hidden; height: 420px; background: var(--primary-dark); }

.featured-news img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.featured-news .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    padding: 60px 35px 30px;
    color: #fff;
    z-index: 2; 
}
.featured-news .overlay h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.6; }
.featured-news .overlay p { font-size: 12px; opacity: 0.9; margin-bottom: 18px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.featured-news .overlay .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; flex-wrap: wrap; gap: 10px; }
.btn-view-news { background: rgba(255,255,255,0.15); border: 1px solid rgba(255,255,255,0.3); color: #fff; padding: 8px 18px; border-radius: 8px; font-size: 13px; transition: all 0.3s; display: inline-flex; align-items: center; gap: 6px; }
.btn-view-news:hover { background: var(--accent-blue); border-color: var(--accent-blue); color: #fff; }

.sidebar-news { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 15px rgba(0,0,0,0.06); }
.sidebar-news-item { display: flex; align-items: center; padding: 14px; border-bottom: 1px solid #f1f5f9; transition: all 0.3s; gap: 12px; cursor: pointer; }
.sidebar-news-item:hover { background: #f8fafc; padding-right: 20px; }
.sidebar-news-item:last-child { border-bottom: none; }
.sidebar-news-item .news-img { width: 75px; height: 60px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.sidebar-news-item .news-img img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-news-item .news-content { flex: 1; }
.sidebar-news-item .news-content h6 { font-size: 11px; font-weight: 600; margin-bottom: 4px; line-height: 1.6; color: var(--text-dark); }
.sidebar-news-item .news-content .date { font-size: 11px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }
.view-all-link { display: block; padding: 12px 16px; text-align: center; color: var(--accent-blue); font-size: 13px; font-weight: 600; border-top: 1px solid #f1f5f9; transition: all 0.3s; }
.view-all-link:hover { background: #f0f7ff; color: var(--primary-dark); }

.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; padding-bottom: 12px; }
.section-title h3 { font-size: 16px; font-weight: 700; color: var(--primary-dark); margin: 0; }
.section-title .icon { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 16px; }
.section-title .icon.blue { background: #dbeafe; color: var(--accent-blue); }
.section-title .icon.red { background: #fee2e2; color: var(--red-dot); }

.news-card { background: #fff; border-radius: 12px; padding: 16px; margin-bottom: 14px; display: flex; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.3s; border: 1px solid #f1f5f9; }
.news-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-2px); border-color: var(--accent-blue); }
.news-card .card-img { width: 120px; height: 90px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.news-card .card-img img { width: 100%; height: 100%; object-fit: cover; }
.news-card .card-body h6 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.7; color: var(--text-dark); }
.news-card .card-body p { font-size: 12px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-card .card-body .date { font-size: 11px; color: #94a3b8; display: flex; align-items: center; gap: 4px; }


.news-card:nth-child(n+6) { display: none; }

.announcement-item { background: #fff; border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; display: flex; align-items: center; gap: 14px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f1f5f9; transition: all 0.3s; }
.announcement-item:hover { box-shadow: 0 6px 15px rgba(0,0,0,0.08); transform: translateX(-4px); }
.announcement-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red-dot); flex-shrink: 0; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.announcement-item .content h6 { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.6; }
.announcement-item .content .date { font-size: 11px; color: var(--text-muted); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 100px); gap: 10px; margin-bottom: 20px; }
.gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 2; height: 100%; }
.gallery-item { border-radius: 10px; overflow: hidden; position: relative; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.gallery-item:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item .gallery-overlay { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(15, 39, 68, 0.9)); padding: 15px 10px 8px; color: #fff; font-size: 11px; font-weight: 500; display: flex; align-items: center; gap: 5px; opacity: 0; transition: opacity 0.3s ease; }
.gallery-item .gallery-overlay i { color: var(--gold); font-size: 10px; }
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-view-all { display: inline-flex; align-items: center; gap: 8px; background: var(--gradient-primary); color: #fff; padding: 8px 20px; border-radius: 8px; font-size: 12px; font-weight: 600; transition: all 0.3s; }
.gallery-view-all:hover { transform: translateY(-2px); color: #fff; }

.main-footer { background: var(--primary-dark); color: #cbd5e1; }
.footer-top { background: var(--gradient-primary); padding: 40px 0; position: relative; overflow: hidden; }
.footer-top h5 { color: #fff; font-size: 15px; font-weight: 700; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,0.1); display: flex; align-items: center; gap: 8px; }
.footer-top h5 i { color: var(--gold); }
.footer-about p { font-size: 13px; line-height: 1.9; color: #94a3b8; }
.footer-about .read-more { color: var(--accent-light); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; }
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { color: #94a3b8; font-size: 13px; display: flex; align-items: center; gap: 6px; transition: all 0.3s; }
.footer-links ul li a::before { content: '\f104'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px; color: var(--accent-light); transition: transform 0.3s; }
.footer-links ul li a:hover { color: #fff; padding-right: 6px; }
.footer-links ul li a:hover::before { transform: translateX(-4px); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; margin-bottom: 12px; color: #94a3b8; }
.footer-contact li i { color: var(--accent-light); width: 18px; margin-top: 3px; flex-shrink: 0; }
.footer-contact li a { color: #94a3b8; }
.footer-contact li a:hover { color: #fff; }
.footer-bottom { background: #0a1929; padding: 15px 0; font-size: 12px; color: #64748b; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.fade-in { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }


@media (max-width: 991.98px) {
    .org-logo h1 { font-size: 15px; }
    .org-logo .logo-icon { width: 50px; height: 50px; }
    .featured-news { height: 360px; }
    .featured-news .overlay h2 { font-size: 19px; }
    .news-card .card-img { width: 100px; height: 80px; }
}

@media (max-width: 767.98px) {
    .top-bar .top-links { justify-content: flex-start; margin-top: 6px; }
    
    .header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .org-logo { justify-content: center; }
    
    .user-login-dropdown { width: 100%; max-width: 280px; }
    .user-login-btn { width: 100%; justify-content: center; padding: 8px 14px; font-size: 13px; }
    .user-dropdown-menu { left: 50%; transform: translateX(-50%) translateY(-10px); }
    .user-dropdown-menu.show { transform: translateX(-50%) translateY(0); }
    .user-dropdown-menu::before { left: 50%; transform: translateX(-50%) rotate(45deg); }

    .hamburger-btn { display: block !important; }
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: #fff;
        border-top: 1px solid var(--border-color);
    }
    .nav-menu.show { display: flex; }
    /* .main-nav .nav-link {
        padding: 12px 20px;
        border-bottom: 1px solid #f1f5f9;
        border-right: 3px solid transparent;
        margin-bottom: 0;
        justify-content: flex-start;
    } */
    .main-nav .nav-link:hover, .main-nav .nav-link.active {
        border-bottom-color: #f1f5f9;
        border-right-color: var(--accent-blue);
        background: #f0f7ff;
    }
.main-nav .nav-link {
    color: var(--text-dark);
    padding: 14px 12px; 
    font-size: 12px; 
    font-weight: 600;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px; 
    white-space: nowrap;
}

.main-nav .nav-link i {
    font-size: 12px; 
    opacity: 0.7;
}

    .featured-news { height: 300px; }
    .featured-news .overlay { padding: 40px 20px 20px; }
    .featured-news .overlay h2 { font-size: 16px; }
    .featured-news .overlay p { display: none;  }
    
    .news-card { flex-direction: column; padding: 14px; }
    .news-card .card-img { width: 100%; height: 160px; margin-bottom: 10px; }
    .news-card .card-body h6 { font-size: 14px; }
    
    .section-title h3 { font-size: 15px; }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 90px);
        gap: 8px;
    }
    .gallery-grid .gallery-item:first-child { grid-column: span 2; grid-row: span 1; }
    
    .footer-top { padding: 30px 0; }
    .footer-top h5 { font-size: 14px; }
}

@media (max-width: 575.98px) {
    body { font-size: 13px; }
    .top-bar { font-size: 12px; padding: 6px 0; }
    .top-bar .top-links { gap: 10px; }
    .top-bar .top-links a { font-size: 12px; }
    
    .org-logo h1 { font-size: 13px; }
    .org-logo h1 small { font-size: 10px; }
    .org-logo .logo-icon { width: 42px; height: 42px; }
    
    .user-login-btn { padding: 7px 12px; font-size: 12px; }
    .user-login-btn .avatar { width: 22px; height: 22px; }
    
    .featured-news { height: 260px; border-radius: 12px; }
    .featured-news .overlay h2 { font-size: 15px; margin-bottom: 8px; }
    .btn-view-news { padding: 6px 14px; font-size: 12px; }
    
    .sidebar-news-item { padding: 12px; }
    .sidebar-news-item .news-img { width: 65px; height: 50px; }
    .sidebar-news-item .news-content h6 { font-size: 12px; }
    
    .announcement-item { padding: 12px; }
    .announcement-item .content h6 { font-size: 12px; }
    
    .section-title { margin-bottom: 14px; padding-bottom: 10px; }
    .section-title .icon { width: 30px; height: 30px; font-size: 13px; }
    
    .gallery-grid { grid-template-rows: repeat(4, 80px); gap: 6px; }
    .gallery-item .gallery-overlay { font-size: 10px; padding: 10px 8px 6px; }
    
    .footer-bottom .container { flex-direction: column; text-align: center; }
}

@media (max-width: 399.98px) {
    .top-bar .top-links a span { display: none; }
    .org-logo h1 { font-size: 12px; }
    .featured-news { height: 220px; }
    .gallery-grid { grid-template-rows: repeat(4, 70px); }
}

@media (min-width: 1400px) {
    .container { max-width: 1320px; }
    .featured-news { height: 450px; }
    .featured-news .overlay h2 { font-size: 20px; }
}


.nav-item {
    position: relative;
}

.nav-item.has-mega > .nav-link::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    margin-right: 5px;
    transition: transform 0.3s;
}

.nav-item.has-mega:hover > .nav-link::after {
    transform: rotate(180deg);
}

.mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 12px 12px;
    padding: 30px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    border-top: 3px solid var(--accent-blue);
    min-width: 555px;
}

.nav-item.has-mega:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-column h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-menu-column h4 i {
    color: var(--accent-blue);
    font-size: 14px;
}

.mega-menu-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-menu-column ul li {
    margin-bottom: 10px;
}

.mega-menu-column ul li a {
    color: var(--text-muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
    padding: 6px 10px;
    border-radius: 6px;
}

.mega-menu-column ul li a:hover {
    background: #f0f7ff;
    color: var(--accent-blue);
    padding-right: 15px;
}

.mega-menu-column ul li a::before {
    content: '\f104';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 10px;
    color: var(--accent-blue);
    opacity: 0;
    transition: all 0.3s;
}

.mega-menu-column ul li a:hover::before {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .mega-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        border-top: none;
        padding: 15px 20px;
        display: none;
        grid-template-columns: 1fr;
        gap: 15px;
        background: #f8fafc;
        min-width: auto;
    }
    
    .nav-item.has-mega.active .mega-menu {
        display: grid;
    }
    
    .mega-menu-column h4 {
        font-size: 14px;
        margin-bottom: 10px;
        padding-bottom: 8px;
    }
    
    .mega-menu-column ul li a {
        font-size: 12px;
        padding: 5px 8px;
    }
}








.floating-notice {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border: 1px solid #f1f5f9;
    padding: 14px 18px 14px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 360px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: slideInNotice 0.5s ease;
    font-family: 'IranSans', Tahoma, sans-serif;
}

    .floating-notice:hover {
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
        transform: translateY(-3px);
    }

    .floating-notice.hide {
        animation: slideOutNotice 0.3s ease forwards;
    }

@@keyframes slideInNotice {
    from {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@@keyframes slideOutNotice {
    to {
        opacity: 0;
        transform: translateX(-30px) translateY(20px);
    }
}

.notice-close {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #94a3b8;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    padding: 0;
}

    .notice-close:hover {
        background: #ef4444;
        color: #fff;
        border-color: #ef4444;
    }

.notice-icon-wrapper {
    position: relative;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notice-bell {
    font-size: 32px;
    color: #fbbf24;
    animation: ringBell 2s ease-in-out infinite;
}

.notice-info {
    position: absolute;
    bottom: -2px;
    right: -2px;
    font-size: 16px;
    color: #fff;
    background: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
}

@@keyframes ringBell {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30% {
        transform: rotate(-10deg);
    }

    20%, 40% {
        transform: rotate(10deg);
    }

    50% {
        transform: rotate(0);
    }
}

.notice-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    flex: 1;
}

.notice-label {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    display: flex;
    align-items: center;
    gap: 4px;
}

    .notice-label::before {
        content: '';
        width: 6px;
        height: 6px;
        background: #ef4444;
        border-radius: 50%;
        animation: pulse 1.5s ease-in-out infinite;
    }

@@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.notice-title {
    font-size: 13px;
    color: #334155;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@@media (max-width: 767.98px) {
    .floating-notice {
        bottom: 15px;
        left: 15px;
        right: 15px;
        min-width: auto;
        max-width: none;
        padding: 12px 16px 12px 12px;
    }

    .notice-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }
}




@media (max-width: 991.98px) {
    .nav-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, opacity 0.3s ease;
        opacity: 0;
    }

        .nav-menu.show {
            max-height: 2000px; 
            opacity: 1;
        }

    .mega-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease, padding 0.3s ease;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .nav-item.has-mega.active .mega-menu {
        max-height: 1500px;
        padding-top: 15px !important;
        padding-bottom: 15px !important;
    }

    .nav-menu .nav-item {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease;
    }

    .nav-menu.show .nav-item {
        opacity: 1;
        transform: translateX(0);
    }

        .nav-menu.show .nav-item:nth-child(1) {
            transition-delay: 0.05s;
        }

        .nav-menu.show .nav-item:nth-child(2) {
            transition-delay: 0.1s;
        }

        .nav-menu.show .nav-item:nth-child(3) {
            transition-delay: 0.15s;
        }

        .nav-menu.show .nav-item:nth-child(4) {
            transition-delay: 0.2s;
        }

        .nav-menu.show .nav-item:nth-child(5) {
            transition-delay: 0.25s;
        }

        .nav-menu.show .nav-item:nth-child(6) {
            transition-delay: 0.3s;
        }

        .nav-menu.show .nav-item:nth-child(7) {
            transition-delay: 0.35s;
        }

    .mega-menu-close {
        display: block;
        width: 100%;
        padding: 10px;
        background: var(--accent-blue);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        margin-top: 10px;
        font-family: 'IranSans', Tahoma;
        transition: all 0.3s;
    }

        .mega-menu-close:hover {
            background: var(--primary-dark);
        }
}

.main-nav .nav-link.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
    background: #f0f7ff;
}

@media (min-width: 992px) {
    .mega-menu {
        pointer-events: none;
    }

    .nav-item.has-mega:hover .mega-menu,
    .nav-item.has-mega.active .mega-menu {
        pointer-events: auto;
    }
}



/*upto styles*/




