﻿/* =========================================================
   UNIVERSITY HOMEPAGE
   JAHAD DANESHGAHI KERMANSHAH
   Reference-based design
   ========================================================= */

:root {
    --navy: #071a3d;
    --navy-2: #0a244d;
    --blue: #0d477d;
    --gold: #f5b800;
    --gold-2: #ffc928;
    --bg: #f5f7fa;
    --white: #ffffff;
    --text: #12213d;
    --muted: #718096;
    --border: #e5e9f0;
    --shadow: 0 10px 35px rgba(7, 26, 61, .09);
    --radius: 18px;
    --container: 1350px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Tahoma, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img,
video {
    max-width: 100%;
}


/* =========================================================
   MAIN
   ========================================================= */

.university-home {
    direction: rtl;
    min-height: 100vh;
    background: linear-gradient(180deg, #ffffff 0, #f6f8fb 55%, #f3f6fa 100%);
}

.uni-container {
    width: min(92%, var(--container));
    margin: 0 auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.uni-header {
    height: 98px;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #edf0f4;
    position: relative;
    z-index: 50;
}

.header-inner {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}


/* BRAND */

.uni-brand {
    order: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 260px;
}

.brand-logo {
    width: 66px;
    height: 66px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--navy);
    line-height: 1;
    position: relative;
    font-weight: 900;
}

    .brand-logo::before,
    .brand-logo::after {
        content: "";
        position: absolute;
        width: 8px;
        height: 8px;
        background: var(--gold);
        border-radius: 50%;
    }

    .brand-logo::before {
        top: 6px;
    }

    .brand-logo::after {
        bottom: 6px;
    }

    .brand-logo span {
        font-size: 19px;
    }

    .brand-logo small {
        margin-top: 4px;
        font-size: 9px;
    }

.brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.35;
}

    .brand-text span {
        font-size: 13px;
        color: var(--navy);
    }

    .brand-text strong {
        font-size: 24px;
        color: var(--navy);
    }

    .brand-text small {
        font-size: 9px;
        color: #9aa4b5;
    }


/* NAV */

.uni-nav {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

    .uni-nav a {
        position: relative;
        color: var(--navy);
        font-size: 13px;
        font-weight: 700;
        padding: 38px 0 34px;
        white-space: nowrap;
        transition: .25s ease;
    }

        .uni-nav a:hover {
            color: var(--blue);
        }

        .uni-nav a.active::after {
            content: "";
            position: absolute;
            bottom: 18px;
            right: 50%;
            transform: translateX(50%);
            width: 30px;
            height: 3px;
            background: var(--gold);
            border-radius: 5px;
        }
/* =====================================================
   DYNAMIC NAVIGATION
===================================================== */

.main-menu {
    order: 2;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    height: 100%;
    min-width: 0;
}

    /* =====================================================
   MAIN MENU ITEMS
===================================================== */

    .main-menu .menu-item {
        position: relative;
        height: 100%;
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

        .main-menu .menu-item > a {
            position: relative;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--navy);
            /* Persian font */
            font-family: "B Mitra", Tahoma, Arial, sans-serif;
            font-size: 14px;
            font-weight: 700;
            /* افزایش فضای افقی منو */
            padding: 38px 10px 34px;
            /* جلوگیری قطعی از دو خط شدن */
            white-space: nowrap;
            text-decoration: none;
            transition: .25s ease;
        }

            .main-menu .menu-item > a:hover {
                color: var(--blue);
            }


        /* =====================================================
   ACTIVE / HOVER UNDERLINE
===================================================== */

        .main-menu .menu-item:hover > a::after {
            content: "";
            position: absolute;
            bottom: 18px;
            right: 50%;
            transform: translateX(50%);
            width: 32px;
            height: 3px;
            background: var(--gold);
            border-radius: 5px;
        }


    /* =====================================================
   SUB MENU
===================================================== */

    .main-menu .submenu {
        position: absolute;
        top: 78px;
        right: 50%;
        transform: translateX(50%) translateY(10px);
        min-width: 220px;
        background: #ffffff;
        border: 1px solid #edf0f4;
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 12px 35px rgba(7, 17, 38, .12);
        opacity: 0;
        visibility: hidden;
        transition: .25s ease;
        z-index: 100;
    }


    /* =====================================================
   SHOW SUBMENU
===================================================== */

    .main-menu .menu-item:hover .submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(50%) translateY(0);
    }


    /* =====================================================
   SUBMENU LINKS
===================================================== */

    .main-menu .submenu a {
        display: block;
        padding: 11px 16px;
        color: var(--navy);
        font-family: "B Mitra", Tahoma, Arial, sans-serif;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        border-radius: 8px;
        /* زیرمنو هم دو خط نشود */
        white-space: nowrap;
        transition: .2s ease;
    }

        .main-menu .submenu a:hover {
            background: #f5f7fa;
            color: var(--blue);
        }


    /* =====================================================
   MULTI LEVEL SUBMENU
===================================================== */

    .main-menu .submenu-item {
        position: relative;
    }


        /* =====================================================
   لینک دارای زیرمنو
===================================================== */

        .main-menu .submenu-item > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 15px;
        }


    /* =====================================================
   فلش زیرمنو
===================================================== */

    .main-menu .submenu-arrow {
        font-size: 16px;
        line-height: 1;
        transition: .2s ease;
    }


    /* =====================================================
   زیرمنوی سطح دوم و بعد از آن
===================================================== */

    .main-menu .submenu-item > .nested-submenu {
        position: absolute;
        top: -8px;
        right: 100%;
        min-width: 220px;
        background: #ffffff;
        border: 1px solid #edf0f4;
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 12px 35px rgba(7, 17, 38, .12);
        opacity: 0;
        visibility: hidden;
        transform: translateX(10px);
        transition: .25s ease;
        z-index: 200;
    }


    /* =====================================================
   نمایش زیرمنوی تو در تو
===================================================== */

    .main-menu .submenu-item:hover > .nested-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }


    /* =====================================================
   آیتم‌های داخل زیرمنو
===================================================== */

    .main-menu .nested-submenu .submenu-item {
        width: 100%;
    }


        /* =====================================================
   لینک‌های داخل زیرمنو
===================================================== */

        .main-menu .nested-submenu .submenu-item > a {
            display: flex;
            width: 100%;
            padding: 11px 16px;
            color: var(--navy);
            font-family: "B Mitra", Tahoma, Arial, sans-serif;
            font-size: 14px;
            font-weight: 600;
            text-decoration: none;
            white-space: nowrap;
            border-radius: 8px;
            transition: .2s ease;
        }

            .main-menu .nested-submenu .submenu-item > a:hover {
                background: #f5f7fa;
                color: var(--blue);
            }
/* =========================================================
   HERO
   ========================================================= */


.uni-hero {
    position: relative;
    width: 100%;
    height: 720px;
    overflow: hidden;
}

.hero-media,
.hero-fallback-image,
.hero-overlay {
    position: absolute;
    inset: 0;
}
    /* =========================================================
   HERO VIDEO - FIT
   ========================================================= */

    .hero-media video {
        width: 100%;
        height: 120%;
        object-fit: cover; /* به جای cover */
        object-position: center;
        display: block;
        background: #071a3d;
    }

.hero-fallback-image {
    background: linear-gradient(90deg, rgba(5,18,42,.08), rgba(4,18,43,.96)), url("https://images.unsplash.com/photo-1562774053-701939374585?auto=format&fit=crop&w=2000&q=85") center / cover no-repeat;
}


/* =========================================================
   HERO OVERLAY - کوتاه‌تر و محدود به سمت راست
   ========================================================= */

.hero-overlay {
    background: linear-gradient( 90deg, rgba(5, 18, 42, 0.00) 30%, rgba(5, 18, 42, 0.08) 45%, rgba(5, 18, 42, 0.35) 68%, rgba(5, 18, 42, 0.78) 100% );
}

.hero-content {
    min-height: 380px;
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.hero-copy {
    width: 52%;
    padding: 35px 20px 40px 50px;
    color: #fff;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--gold-2);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-copy h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.35;
    font-weight: 900;
}

.hero-copy h2 {
    margin: 10px 0 17px;
    font-size: 23px;
    font-weight: 500;
}

    .hero-copy h2 b {
        color: var(--gold);
        margin: 0 7px;
    }

.hero-copy p {
    max-width: 620px;
    margin: 0 0 25px;
    color: #edf3ff;
    font-size: 15px;
    line-height: 2.1;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn {
    min-width: 190px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 800;
    font-size: 14px;
    transition: .25s ease;
}

.btn-gold {
    background: var(--gold-2);
    color: #13203b;
}

    .btn-gold:hover {
        background: #ffd34d;
        transform: translateY(-3px);
        box-shadow: 0 10px 25px rgba(245,184,0,.25);
    }

.btn-outline {
    color: #fff;
    border: 1px solid rgba(255,255,255,.7);
    background: rgba(0,0,0,.08);
}

    .btn-outline:hover {
        background: rgba(255,255,255,.1);
        transform: translateY(-3px);
    }

.hero-dots {
    position: absolute;
    bottom: 20px;
    right: 50%;
    transform: translateX(50%);
    display: flex;
    gap: 10px;
}

    .hero-dots span {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #fff;
        opacity: .85;
    }

        .hero-dots span.active {
            background: var(--gold);
        }


/* =========================================================
   STATS
   ========================================================= */

.stats-section {
    padding-top: 20px;
}

.stats-card {
    min-height: 90px;
    background: #fff;
    border-radius: 17px;
    box-shadow: var(--shadow);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: stretch;
    overflow: hidden;
}

.stat-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 15px;
    position: relative;
}

    .stat-item:not(:last-child)::after {
        content: "";
        position: absolute;
        left: 0;
        top: 22px;
        bottom: 22px;
        width: 1px;
        background: #e8ecf2;
    }

    .stat-item > i {
        font-size: 29px;
        color: var(--navy);
    }

    .stat-item div {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .stat-item strong {
        color: var(--navy);
        font-size: 20px;
    }

    .stat-item span {
        color: var(--muted);
        font-size: 15px;
    }


/* =========================================================
   MAIN GRID
   ========================================================= */

.main-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr) 280px;
    grid-template-areas:
        "news groups admission";
    gap: 16px;
    align-items: stretch;
}

.groups-panel,
.news-panel {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}

.groups-panel {
    grid-area: groups;
}

.news-panel {
    grid-area: news;
}

.admission-card {
    grid-area: admission;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 16px;
}

    .section-heading h2 {
        margin: 0;
        color: var(--navy);
        font-size: 19px;
        font-weight: 900;
    }

    .section-heading span {
        display: block;
        width: 35px;
        height: 3px;
        margin-top: 8px;
        background: var(--gold);
        border-radius: 4px;
    }

    .section-heading > a {
        color: var(--muted);
        font-size: 10px;
        white-space: nowrap;
    }

        .section-heading > a:hover {
            color: var(--navy);
        }


/* =========================================================
   GROUPS
   ========================================================= */

.groups-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.group-card {
    min-width: 0;
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid #edf0f5;
    border-radius: 10px;
    text-align: center;
    padding-bottom: 12px;
    box-shadow: 0 5px 16px rgba(7,26,61,.06);
    transition: .3s ease;
}

    .group-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 14px 30px rgba(7,26,61,.12);
    }

.group-image {
    height: 112px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.image-management {
    background-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=600&q=80");
}

.image-accounting {
    background-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=600&q=80");
}

.image-architecture {
    background-image: url("https://images.unsplash.com/photo-1487958449943-2429e8be8625?auto=format&fit=crop&w=600&q=80");
}

.image-civil {
    background-image: url("https://images.unsplash.com/photo-1473445361085-b9a07f55608b?auto=format&fit=crop&w=600&q=80");
}

.image-computer {
    background-image: url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=600&q=80");
}

.group-icon {
    width: 38px;
    height: 38px;
    margin: -19px auto 6px;
    position: relative;
    z-index: 2;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--navy);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.group-card h3 {
    margin: 0;
    color: var(--navy);
    font-size: 15px;
    font-weight: 900;
}

.group-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 10px;
}
/* =========================================================
   UNIVERSITY - ACADEMIC GROUPS
   ========================================================= */

.departments-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}


/* =========================================================
   GROUP CARD
   ========================================================= */

.department-card {
    position: relative;
    width: 100%;
    height: 245px;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0;
    overflow: hidden;
    border-width: 1px !important;
    border-style: solid !important;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 5px 18px rgba(7, 26, 61, .08);
    transition: transform .3s ease, box-shadow .3s ease;
}


    .department-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(7, 26, 61, .16);
    }


/* =========================================================
   GROUP IMAGE
   ========================================================= */

.department-card-image {
    width: 100%;
    height: 135px;
    flex-shrink: 0;
    overflow: hidden;
    background: #eef2f7;
}


    .department-card-image img {
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        object-fit: cover !important;
        object-position: center !important;
        border-radius: 0 !important;
        display: block;
        transition: transform .4s ease;
    }


.department-card:hover
.department-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   ROUND ICON
   ========================================================= */

.department-card-icon {
    position: absolute;
    top: 112px;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #071a3d;
    color: #ffffff;
    border: 3px solid #ffffff;
    font-size: 18px;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(7, 26, 61, .20);
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.department-card-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 12px 12px;
    text-align: center;
}


    /* =========================================================
   TITLE
   ========================================================= */

    .department-card-content h3 {
        margin: 0 0 7px !important;
        height: auto !important;
        font-size: 17px !important;
        font-weight: 800;
        line-height: 1.6;
        text-align: center;
    }


    /* =========================================================
   DESCRIPTION
   ========================================================= */

    .department-card-content p {
        margin: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        font-size: 14px;
        line-height: 1.6;
        text-align: center;
        opacity: .82;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .departments-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


@media (max-width: 768px) {

    .departments-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .department-card {
        height: 235px;
    }
}


@media (max-width: 480px) {

    .departments-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================
   NEWS
   ========================================================= */
/* =========================================================
   NEWS
   ========================================================= */

.news-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
}


.news-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 10px 4px;
    border-bottom: 1px solid #edf0f4;
    text-decoration: none;
    transition: background-color .25s ease, transform .25s ease;
}


    .news-item:last-child {
        border-bottom: 0;
    }


    .news-item:hover {
        background: #f8fafc;
        border-radius: 8px;
    }


.news-thumb {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}


.news-info {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}


    .news-info h3 {
        margin: 0 0 4px;
        color: var(--navy);
        font-size: 11px;
        font-weight: 700;
        line-height: 1.7;
        /*
       حداکثر دو خط برای عنوان
    */
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        overflow-wrap: anywhere;
    }


.news-summary {
    margin: 0 0 5px;
    color: #66758a;
    font-size: 9px;
    line-height: 1.8;
    /*
       حداکثر سه خط برای خلاصه
    */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    overflow-wrap: anywhere;
}


.news-info small {
    display: block;
    margin-top: 3px;
    color: #98a3b3;
    font-size: 8px;
    line-height: 1.5;
}


/* =========================================================
   NEWS RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .news-item {
        gap: 10px;
        padding: 10px 2px;
    }


    .news-thumb {
        width: 70px;
        height: 70px;
        flex-basis: 70px;
    }


    .news-info h3 {
        font-size: 12px;
        line-height: 1.7;
    }


    .news-summary {
        font-size: 10px;
        line-height: 1.8;
    }


    .news-info small {
        font-size: 9px;
    }
}
/* =========================================================
   ADMISSION
   ========================================================= */

.admission-card {
    min-height: 310px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--navy);
    box-shadow: var(--shadow);
}

.admission-image {
    position: absolute;
    inset: 0;
    background: url("https://images.unsplash.com/photo-1523580846011-d3a5bc25702b?auto=format&fit=crop&w=900&q=85") center / cover no-repeat;
}

.admission-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 180deg, rgba(4,17,38,.35), rgba(4,17,38,.95) );
}

.admission-content {
    position: relative;
    z-index: 2;
    min-height: 310px;
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
}

.admission-icon {
    color: var(--gold);
    font-size: 30px;
    margin-bottom: 12px;
}

.admission-content h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.5;
}

.admission-content p {
    margin: 2px 0 14px;
    font-size: 24px;
    font-weight: 800;
}

.admission-content span {
    color: #dce6f7;
    font-size: 16px;
    line-height: 1.8;
}

.admission-btn {
    width: 100%;
    min-height: 45px;
    margin-top: 22px;
    border: 1px solid var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    transition: .25s ease;
}

    .admission-btn:hover {
        background: var(--gold);
        color: var(--navy);
    }


/* =========================================================
   SERVICES
   ========================================================= */

/* =========================================================
   QUICK SERVICES
   ========================================================= */

.services-section {
    width: 100%;
    margin: 20px 0 35px;
    min-height: 96px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    padding: 6px;
    background: var(--navy);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(7, 26, 61, .14);
    direction: rtl;
}


    /* =========================================================
   SERVICE ITEM
   ========================================================= */

    .services-section .service-item {
        position: relative;
        min-height: 84px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        padding: 12px 18px;
        border-radius: 11px;
        color: #fff;
        text-decoration: none !important;
        background: transparent;
        transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
    }


        /* =========================================================
   SEPARATOR
   ========================================================= */

        .services-section .service-item:not(:last-child)::after {
            content: "";
            position: absolute;
            left: -3px;
            top: 18px;
            bottom: 18px;
            width: 1px;
            background: rgba(255, 255, 255, .12);
        }


        /* =========================================================
   HOVER ITEM
   ========================================================= */

        .services-section .service-item:hover {
            background: rgba(255, 255, 255, .06);
            transform: translateY(-2px);
            box-shadow: 0 5px 16px rgba(0, 0, 0, .10);
        }


        /* =========================================================
   ICON
   ========================================================= */

        .services-section .service-item > i {
            width: 48px;
            height: 48px;
            min-width: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 13px;
            background: rgba(8, 213, 236, .10);
            color: #08d5ec;
            font-size: 23px;
            transition: color .25s ease, background-color .25s ease, transform .25s ease, box-shadow .25s ease;
        }


        /* آیکون هنگام Hover طلایی می‌شود */

        .services-section .service-item:hover > i {
            color: var(--navy);
            background: #f2b705;
            transform: scale(1.06);
            box-shadow: 0 5px 14px rgba(242, 183, 5, .22);
        }


        /* =========================================================
   TEXT
   ========================================================= */

        .services-section .service-item > div {
            min-width: 0;
            text-align: right;
        }

        .services-section .service-item h3 {
            margin: 0 0 5px;
            color: #fff;
            font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
            font-size: 20px !important;
            font-weight: 900 !important;
            line-height: 1.5;
            white-space: nowrap;
            transition: color .25s ease;
        }

        .services-section .service-item p {
            margin: 0;
            color: #b9c7db;
            font-size: 16px;
            line-height: 1.6;
            white-space: nowrap;
            transition: color .25s ease;
        }


        /* متن هنگام Hover طلایی */

        .services-section .service-item:hover h3 {
            color: #f2b705;
        }


        .services-section .service-item:hover p {
            color: #dce5f2;
        }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .services-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


@media (max-width: 650px) {

    .services-section {
        grid-template-columns: 1fr;
        padding: 5px;
    }

        .services-section .service-item {
            min-height: 72px;
        }

            .services-section .service-item:not(:last-child)::after {
                display: none;
            }
}
/* =========================================================
   FOOTER
   ========================================================= */

.uni-footer {
    background: #041126;
    color: #fff;
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

    .footer-inner strong {
        font-size: 15px;
    }

    .footer-inner p {
        margin: 7px 0 0;
        color: #9ba9bf;
        font-size: 11px;
    }

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

    .footer-links a {
        color: #d9e1ee;
        font-size: 11px;
    }

        .footer-links a:hover {
            color: var(--gold);
        }

.footer-copy {
    color: #8290a5;
    font-size: 10px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1250px) {

    .uni-nav {
        gap: 15px;
    }

        .uni-nav a {
            font-size: 11px;
        }

    .uni-brand {
        min-width: 230px;
    }

    .brand-text strong {
        font-size: 20px;
    }

    .main-grid {
        grid-template-columns: 240px minmax(0, 1fr) 240px;
    }
}


@media (max-width: 1050px) {

    .uni-header {
        height: 82px;
    }

    .uni-nav,
    .search-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions {
        margin-right: auto;
    }

    .uni-brand {
        min-width: auto;
    }

    .main-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "groups groups"
            "admission news";
    }

    .groups-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .stats-card {
        grid-template-columns: repeat(3, 1fr);
    }

    .stat-item:nth-child(3)::after {
        display: none;
    }

    .services-section {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 750px) {

    .hero-content {
        min-height: 470px;
    }

    .uni-hero {
        min-height: 470px;
    }

    .hero-copy {
        width: 100%;
        padding: 35px 20px;
        text-align: center;
    }

        .hero-copy p {
            margin-left: auto;
            margin-right: auto;
        }

    .hero-kicker {
        font-size: 14px;
    }

    .hero-copy h1 {
        font-size: 34px;
    }

    .hero-copy h2 {
        font-size: 19px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .notice-title {
        flex-basis: 120px;
    }

    .notice-more {
        display: none;
    }

    .stats-card {
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:nth-child(even)::after {
        display: none;
    }

    .main-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "admission"
            "groups"
            "news";
    }

    .groups-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-item:nth-child(2n)::after {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}


@media (max-width: 480px) {

    .uni-container {
        width: 94%;
    }

    .uni-brand .brand-text span,
    .uni-brand .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 16px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .login-btn {
        padding: 0 11px;
        font-size: 10px;
    }

    .hero-copy h1 {
        font-size: 29px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .stats-card {
        grid-template-columns: 1fr 1fr;
    }

    .stat-item {
        gap: 8px;
        padding: 12px 5px;
    }

        .stat-item > i {
            font-size: 22px;
        }

        .stat-item strong {
            font-size: 15px;
        }

    .groups-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-section {
        grid-template-columns: 1fr;
    }

    .service-item::after {
        display: none !important;
    }
}
/*-------------------------------*/
.uni-hero .hero-content {
    width: 100%;
}

.uni-hero .hero-copy {
    margin-right: 0;
    margin-left: auto;
    text-align: right;
}
/* =========================================================
   تنظیم عرض اصلی صفحه دانشگاه
   ========================================================= */

@media (min-width: 1200px) {

    /* عرض کلی صفحه */
    .uni-container {
        width: 96%;
        max-width: 1550px;
        margin-left: auto;
        margin-right: auto;
    }


    /* =====================================================
       کادر وضعیت / آمار
       ===================================================== */

    .stats-section {
        width: 100%;
        padding-top: 20px;
    }

    .stats-card {
        width: 100%;
        min-height: 105px;
    }


    /* =====================================================
       گرید اصلی پایین صفحه
       ===================================================== */

    .main-grid {
        width: 100%;
        /*
         * قبلاً:
         * 280px | وسط | 280px
         *
         * حالا:
         * 320px | وسط | 320px
         */
        grid-template-columns: 320px minmax(0, 1fr) 320px;
        gap: 18px;
    }


    /* =====================================================
       کادر اخبار
       ===================================================== */

    .news-panel {
        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       کادر پذیرش / سورمه‌ای
       ===================================================== */

    .admission-card {
        width: 100%;
        min-width: 0;
    }


    /* =====================================================
       پنل وسط گروه‌ها
       ===================================================== */

    .groups-panel {
        width: 100%;
        min-width: 0;
    }
}
/* =========================================
   خواناتر شدن اخبار صفحه اصلی
   ========================================= */

.news-list .news-item {
    min-height: 95px;
}

.news-list .news-info {
    padding: 10px 14px;
}

    .news-list .news-info h3 {
        font-size: 13px;
        line-height: 1.9;
        font-weight: 700;
        color: #071b3a;
        margin: 0 0 8px;
    }

    .news-list .news-info small {
        display: block;
        font-size: 10px;
        color: #7a8494;
        font-weight: 500;
    }

.news-list .news-thumb {
    width: 95px;
    min-width: 95px;
    height: 75px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
}
/* محدود کردن ارتفاع لیست اخبار */
.news-list {
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-left: 6px;
}

    /* ظاهر اسکرول */
    .news-list::-webkit-scrollbar {
        width: 6px;
    }

    .news-list::-webkit-scrollbar-thumb {
        background: #c5cbd5;
        border-radius: 10px;
    }

    .news-list::-webkit-scrollbar-track {
        background: transparent;
    }
/* =========================================
   خدمات سریع داخل کارت پذیرش
   ========================================= */

.quick-services {
    width: 100%;
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    /* جلوگیری از بزرگ شدن بیش از حد کارت */
    max-height: 210px;
    overflow-y: auto;
    padding-right: 2px;
}


/* =========================================
   هر خدمت
   ========================================= */

.quick-service {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    text-decoration: none;
    font-size: 24px;
    font-weight: 600;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}


/* =========================================
   آیکون خدمت
   ========================================= */

.quick-service-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 25px;
    line-height: 1;
    border-radius: 8px;
    background: rgba(255, 208, 0, 0.12);
}


/* =========================================
   عنوان خدمت
   ========================================= */
/* =========================================
   خدمات سریع داخل کارت پذیرش
   ========================================= */

.quick-services {
    width: 100%;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    /* ارتفاع محدود نکن */
    max-height: none;
    overflow: visible;
}


/* هر خدمت */

.quick-service {
    width: 100%;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.07);
    color: #718096;
    text-decoration: none;
    font-size: 25px;
    font-weight: 600;
    transition: all 0.25s ease;
}


    /* Emoji */




    /* Hover */

    .quick-service:hover {
        background: rgba(180, 55, 55, 0.15);
        border-color: #ffd000;
        color: #0d477d;
        transform: translateY(-2px);
    }
/* افزایش اندازه فونت کلیدهای خدمات سریع */
.quick-services .quick-service,
.quick-services .quick-service *,
.quick-services .quick-service span {
    font-size: 12px !important;
    font-weight: 700 !important;
}
/* =========================================================
   UNIVERSITY INTRO + VIDEO + STATISTICS
========================================================= */

.university-intro {
    width: 100%;
    margin: 45px 0 60px;
    position: relative;
}


    /* کارت معرفی */

    .university-intro .intro-card {
        width: 100%;
        min-height: 360px;
        display: grid;
        grid-template-columns: 48% 52%;
        align-items: stretch;
        background: linear-gradient( 135deg, #071a3d 0%, #0a244d 55%, #0d477d 100% );
        border-radius: 22px;
        overflow: hidden;
        box-shadow: 0 18px 45px rgba(7, 26, 61, .18);
        position: relative;
    }


    /* ویدئو */

    .university-intro .intro-video {
        min-height: 360px;
        position: relative;
        overflow: hidden;
    }

        .university-intro .intro-video video {
            width: 100%;
            height: 100%;
            min-height: 360px;
            display: block;
            object-fit: cover;
        }


        /* لایه روی ویدئو */

        .university-intro .intro-video::after {
            content: "";
            position: absolute;
            inset: 0;
            background: linear-gradient( 90deg, rgba(7, 26, 61, .05), rgba(7, 26, 61, .25) );
            pointer-events: none;
        }


    /* متن */

    .university-intro .intro-content {
        direction: rtl;
        text-align: right;
        padding: 55px 50px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: #ffffff;
    }


    .university-intro .intro-kicker {
        display: inline-flex;
        align-items: center;
        gap: 9px;
        color: #f5b800;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 14px;
    }


        .university-intro .intro-kicker i {
            font-size: 15px;
        }


    .university-intro .intro-content h2 {
        margin: 0;
        font-size: 29px;
        font-weight: 900;
        color: #ffffff;
        line-height: 1.7;
    }


    .university-intro .intro-line {
        width: 55px;
        height: 4px;
        background: #f5b800;
        border-radius: 10px;
        margin: 10px 0 20px;
    }


    .university-intro .intro-content p {
        margin: 0 0 10px;
        color: rgba(255, 255, 255, .82);
        font-size: 14px;
        line-height: 2.1;
        text-align: justify;
    }


    .university-intro .intro-more {
        align-self: flex-start;
        display: inline-flex;
        align-items: center;
        gap: 9px;
        margin-top: 15px;
        padding: 10px 18px;
        border: 1px solid rgba(245, 184, 0, .65);
        border-radius: 10px;
        color: #f5b800;
        text-decoration: none;
        font-size: 13px;
        font-weight: 800;
        transition: all .25s ease;
    }


        .university-intro .intro-more:hover {
            background: #f5b800;
            color: #071a3d;
            transform: translateY(-2px);
        }


    /* =========================================================
   STATISTICS CARD
========================================================= */

    .university-intro .intro-stats {
        position: relative;
        width: calc(100% - 120px);
        margin: -42px auto 0;
        z-index: 5;
        min-height: 135px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        padding: 22px 30px;
        background: #ffffff;
        border: 1px solid #e5e9f0;
        border-radius: 22px;
        box-shadow: 0 14px 35px rgba(7, 26, 61, .16);
    }


        /* هر آمار */

        .university-intro .intro-stats .stat-item {
            min-height: 85px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 13px;
            position: relative;
            text-align: right;
        }


            /* جداکننده */

            .university-intro .intro-stats .stat-item:not(:last-child)::after {
                content: "";
                position: absolute;
                left: 0;
                top: 15%;
                width: 1px;
                height: 70%;
                background: #e5e9f0;
            }


            /* آیکون */

            .university-intro .intro-stats .stat-item > i {
                width: 55px;
                height: 55px;
                flex-shrink: 0;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 50%;
                background: linear-gradient( 135deg, #071a3d, #0d477d );
                color: #f5b800;
                font-size: 21px;
                box-shadow: 0 5px 14px rgba(7, 26, 61, .18);
            }


            /* عدد */

            .university-intro .intro-stats .stat-item strong {
                display: block;
                color: #f0aa00;
                font-size: 25px;
                font-weight: 900;
                line-height: 1.3;
            }


            /* عنوان */

            .university-intro .intro-stats .stat-item span {
                display: block;
                margin-top: 5px;
                color: #071a3d;
                font-size: 12px;
                font-weight: 800;
            }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 900px) {

    .university-intro .intro-card {
        grid-template-columns: 1fr;
    }

    .university-intro .intro-video {
        min-height: 300px;
    }

        .university-intro .intro-video video {
            min-height: 300px;
        }

    .university-intro .intro-content {
        padding: 35px 30px 45px;
    }

    .university-intro .intro-stats {
        width: calc(100% - 50px);
        grid-template-columns: repeat(2, 1fr);
        margin-top: -30px;
    }

        .university-intro .intro-stats .stat-item:nth-child(2)::after {
            display: none;
        }

        .university-intro .intro-stats .stat-item:nth-child(3)::after {
            display: block;
        }
}


@media (max-width: 600px) {

    .university-intro {
        margin-top: 30px;
    }

        .university-intro .intro-content h2 {
            font-size: 23px;
        }

        .university-intro .intro-content p {
            font-size: 13px;
        }

        .university-intro .intro-stats {
            width: calc(100% - 30px);
            grid-template-columns: 1fr;
            padding: 15px;
        }

            .university-intro .intro-stats .stat-item {
                justify-content: flex-start;
                padding: 12px 10px;
            }

                .university-intro .intro-stats .stat-item::after {
                    display: none !important;
                }
}
/* =========================================================
   MODERN UNIVERSITY FOOTER
========================================================= */

.uni-footer {
    width: 100%;
    margin-top: 60px;
    background: linear-gradient( 135deg, #041126 0%, #071a3d 55%, #08264f 100% );
    color: #ffffff;
    position: relative;
    border-top: 3px solid #f5b800;
    direction: rtl;
}


    /* نوار ظریف بالای فوتر */

    .uni-footer::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 35%;
        height: 3px;
        background: #ffc928;
    }


    /* محتوای اصلی */

    .uni-footer .footer-main {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1.25fr 1fr;
        gap: 45px;
        padding: 55px 0 45px;
    }


    /* ستون ها */

    .uni-footer .footer-column {
        min-width: 0;
    }


    /* =========================================================
   BRAND
========================================================= */

    .uni-footer .footer-brand {
        display: flex;
        align-items: center;
        gap: 15px;
        margin-bottom: 20px;
    }


    .uni-footer .footer-logo {
        width: 65px;
        height: 65px;
        flex-shrink: 0;
        border-radius: 50%;
        border: 2px solid rgba(245, 184, 0, .8);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: rgba(255,255,255,.04);
    }


        .uni-footer .footer-logo img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
        }


        .uni-footer .footer-logo span {
            font-size: 15px;
            font-weight: 900;
            color: #ffffff;
            line-height: 1.1;
        }


        .uni-footer .footer-logo small {
            font-size: 9px;
            color: #f5b800;
            font-weight: 700;
        }


    .uni-footer .footer-brand strong {
        display: block;
        color: #ffffff;
        font-size: 17px;
        font-weight: 900;
        line-height: 1.7;
    }


    .uni-footer .footer-brand span {
        display: block;
        color: #f5b800;
        font-size: 12px;
        font-weight: 700;
    }


    /* توضیحات */

    .uni-footer .footer-description {
        margin: 0;
        max-width: 340px;
        color: rgba(255,255,255,.68);
        font-size: 12px;
        line-height: 2.1;
        text-align: justify;
    }


    /* =========================================================
   TITLES
========================================================= */

    .uni-footer .footer-column h3 {
        margin: 0;
        color: #ffffff;
        font-size: 16px;
        font-weight: 900;
        line-height: 1.7;
    }


    .uni-footer .footer-title-line {
        width: 42px;
        height: 3px;
        margin: 10px 0 18px;
        border-radius: 10px;
        background: #f5b800;
    }


    /* =========================================================
   LINKS
========================================================= */

    .uni-footer .footer-links-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }


        .uni-footer .footer-links-list li {
            margin-bottom: 11px;
        }


        .uni-footer .footer-links-list a {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: rgba(255,255,255,.72);
            text-decoration: none;
            font-size: 12px;
            transition: color .25s ease, transform .25s ease;
        }


            .uni-footer .footer-links-list a i {
                color: #f5b800;
                font-size: 9px;
            }


            .uni-footer .footer-links-list a:hover {
                color: #ffffff;
                transform: translateX(-5px);
            }


    /* =========================================================
   CONTACT
========================================================= */

    .uni-footer .footer-contact-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 17px;
        color: rgba(255,255,255,.72);
        font-size: 12px;
        line-height: 1.9;
    }


        .uni-footer .footer-contact-item i {
            width: 30px;
            height: 30px;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            background: rgba(245,184,0,.10);
            color: #f5b800;
            font-size: 13px;
        }


    /* =========================================================
   SOCIAL
========================================================= */

    .uni-footer .footer-social p {
        margin: 0 0 18px;
        color: rgba(255,255,255,.68);
        font-size: 12px;
        line-height: 2;
    }


    .uni-footer .footer-social-links {
        display: flex;
        align-items: center;
        gap: 9px;
    }


        .uni-footer .footer-social-links a {
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 10px;
            border: 1px solid rgba(255,255,255,.15);
            background: rgba(255,255,255,.05);
            color: #ffffff;
            text-decoration: none;
            font-size: 17px;
            transition: all .25s ease;
        }


            .uni-footer .footer-social-links a:hover {
                background: #f5b800;
                border-color: #f5b800;
                color: #071a3d;
                transform: translateY(-4px);
            }


    /* =========================================================
   BOTTOM
========================================================= */

    .uni-footer .footer-bottom {
        min-height: 65px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        border-top: 1px solid rgba(255,255,255,.10);
        color: rgba(255,255,255,.55);
        font-size: 11px;
    }


    .uni-footer .footer-copyright {
        color: rgba(255,255,255,.65);
        line-height: 1.8;
    }


    .uni-footer .footer-bottom-text {
        color: #f5b800;
        font-weight: 800;
        letter-spacing: .2px;
    }


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .uni-footer .footer-main {
        grid-template-columns: 1.4fr 1fr 1.2fr;
        gap: 35px;
    }

    .uni-footer .footer-social {
        grid-column: span 3;
    }
}


@media (max-width: 750px) {

    .uni-footer .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 25px;
        padding: 40px 0;
    }

    .uni-footer .footer-social {
        grid-column: auto;
    }

    .uni-footer .footer-description {
        max-width: none;
    }

    .uni-footer .footer-bottom {
        padding: 15px 0;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}


@media (max-width: 500px) {

    .uni-footer .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .uni-footer .footer-social {
        grid-column: auto;
    }
}

/* =========================================================
   FINAL HEADER / FONT / NEWS REFINEMENTS - VERSION 2
   ========================================================= */

/* ---------------------------------------------------------
   فونت کلی صفحه
   --------------------------------------------------------- */

.university-home {
    font-family: "B Mitra", Tahoma, Arial, sans-serif;
}

    .university-home h1,
    .university-home h2,
    .university-home h3,
    .university-home h4,
    .university-home h5,
    .university-home h6,
    .university-home p,
    .university-home span,
    .university-home a,
    .university-home button,
    .university-home input,
    .university-home textarea,
    .university-home select,
    .university-home label {
        font-family: "B Mitra", Tahoma, Arial, sans-serif;
    }

        /* Font Awesome باید فونت خودش را حفظ کند */
        .university-home i[class*="fa-"],
        .university-home span[class*="fa-"] {
            font-family: "Font Awesome 6 Free" !important;
        }


/* ---------------------------------------------------------
   HEADER
   --------------------------------------------------------- */

.uni-header {
    height: 108px;
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
    direction: rtl;
    height: 100%;
}

/*
   ترتیب دقیق از راست به چپ:
   لوگو → منو → جستجو → ورود → پرچم
*/

.uni-brand {
    order: 1;
    flex: 0 0 auto;
    min-width: 245px;
    margin-left: 12px;
}

.brand-logo {
    width: 70px;
    height: 70px;
}

.main-menu {
    order: 2;
    flex: 1 1 auto;
    min-width: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

    .main-menu .menu-item {
        flex: 0 0 auto;
    }

        .main-menu .menu-item > a,
        .main-menu .submenu a,
        .main-menu .nested-submenu .submenu-item > a {
            font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
        }

        .main-menu .menu-item > a {
            font-size: 17px;
            font-weight: 700;
            padding: 42px 9px 38px;
            white-space: nowrap;
        }

    .main-menu .submenu {
        top: 86px;
    }

        .main-menu .submenu a,
        .main-menu .nested-submenu .submenu-item > a {
            font-size: 16px;
        }


/* ---------------------------------------------------------
   SEARCH + LOGIN
   --------------------------------------------------------- */

.header-actions {
    order: 3;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 0;
    direction: rtl;
}

.search-btn {
    width: 46px;
    height: 46px;
    min-width: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dfe5ed;
    border-radius: 9px;
    background: #ffffff;
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
    transition: .25s ease;
}

    .search-btn:hover {
        background: #f5f7fa;
        color: var(--blue);
        border-color: #cbd5e1;
    }

.login-btn {
    min-width: 155px;
    min-height: 46px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    border-radius: 9px;
    background: var(--navy);
    color: #ffffff !important;
    font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    text-decoration: none !important;
    box-shadow: 0 5px 14px rgba(7,26,61,.13);
    transition: .25s ease;
}

    .login-btn i {
        font-family: "Font Awesome 6 Free" !important;
        font-size: 16px;
    }

    .login-btn:hover {
        background: var(--blue);
        color: #ffffff !important;
        transform: translateY(-2px);
        box-shadow: 0 8px 18px rgba(7,26,61,.18);
    }


/* ---------------------------------------------------------
   پرچم ایران
   از تصویر واقعی استفاده می‌شود.
   فایل مورد نیاز:
   wwwroot/images/iran-flag.png
   --------------------------------------------------------- */

.header-inner::before {
    content: "";
    order: 4;
    flex: 0 0 74px;
    width: 74px;
    height: 54px;
    background-image: url("/images/iran-flag.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border-radius: 5px;
    filter: drop-shadow(0 4px 8px rgba(7,26,61,.14));
    transform-origin: left center;
    animation: iranFlagWave 2.8s ease-in-out infinite;
}

/* pseudo-element قبلی حذف می‌شود */
.header-inner::after {
    content: none !important;
}

@keyframes iranFlagWave {
    0%, 100% {
        transform: perspective(250px) rotateY(0deg) rotateZ(0deg);
    }

    25% {
        transform: perspective(250px) rotateY(-5deg) rotateZ(.5deg);
    }

    50% {
        transform: perspective(250px) rotateY(6deg) rotateZ(-.5deg);
    }

    75% {
        transform: perspective(250px) rotateY(-4deg) rotateZ(.5deg);
    }
}


/* ---------------------------------------------------------
   NEWS PANEL
   ارتفاع پنل از خود Grid گرفته می‌شود.
   فقط زمانی که فضای پنل پر شود، اسکرول ظاهر می‌شود.
   --------------------------------------------------------- */

.main-grid {
    align-items: stretch;
}

.news-panel {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    overflow: hidden;
}

    .news-panel .section-heading {
        flex: 0 0 auto;
    }

.news-list {
    flex: 1 1 auto;
    min-height: 0;
    /*
       بسیار مهم:
       دیگر max-height ثابت نداریم.
       ارتفاع لیست از فضای باقی‌مانده پنل گرفته می‌شود.
    */
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    padding-left: 6px;
    padding-right: 2px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .news-list .news-item {
        flex: 0 0 auto;
        min-height: 95px;
        padding: 10px 4px;
        margin: 0;
        border-bottom: 1px solid #edf0f4;
        border-radius: 8px;
    }

        .news-list .news-item:last-child {
            border-bottom: 0;
        }

    .news-list .news-info {
        padding: 2px 8px;
        min-width: 0;
    }

        .news-list .news-info h3 {
            margin: 0 0 7px;
            font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
            font-size: 17px;
            font-weight: 800;
            line-height: 1.65;
        }

    .news-list .news-summary {
        margin: 0 0 5px;
        font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.75;
    }

    .news-list .news-info small {
        font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
        font-size: 11px;
        line-height: 1.5;
    }

    .news-list .news-thumb {
        width: 95px;
        min-width: 95px;
        height: 75px;
        border-radius: 10px;
    }

    .news-list::-webkit-scrollbar {
        width: 6px;
    }

    .news-list::-webkit-scrollbar-thumb {
        background: #b8c0cc;
        border-radius: 10px;
    }

    .news-list::-webkit-scrollbar-track {
        background: transparent;
    }


/* ---------------------------------------------------------
   RESPONSIVE HEADER
   --------------------------------------------------------- */

@media (max-width: 1250px) {

    .uni-header {
        height: 102px;
    }

    .uni-brand {
        min-width: 215px;
    }

    .main-menu {
        gap: 7px;
    }

        .main-menu .menu-item > a {
            font-size: 15px;
            padding-left: 6px;
            padding-right: 6px;
        }

    .login-btn {
        min-width: 135px;
        font-size: 14px;
    }

    .header-inner::before {
        flex-basis: 58px;
        width: 58px;
        height: 42px;
    }
}

@media (max-width: 1050px) {

    .uni-header {
        height: 82px;
    }

    .uni-nav,
    .main-menu,
    .search-btn {
        display: none;
    }

    .header-actions {
        margin-right: auto;
    }

    .login-btn {
        min-width: 145px;
        min-height: 42px;
        font-size: 14px;
    }

    .header-inner::before {
        display: none;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
    }

    .news-panel {
        height: auto;
    }
}

@media (max-width: 480px) {

    .uni-header {
        height: 72px;
    }

    .brand-logo {
        width: 52px;
        height: 52px;
    }

    .login-btn {
        min-width: auto;
        min-height: 38px;
        padding: 0 10px;
        font-size: 12px;
    }

    .uni-brand {
        gap: 7px;
    }

    .news-list .news-info h3 {
        font-size: 14px;
    }

    .news-list .news-summary {
        font-size: 12px;
    }
}
/* =========================================================
   NEWS SIDEBAR - MATCH MAIN CARDS HEIGHT
   ========================================================= */

/*
   ارتفاع سایدبار اخبار از ارتفاع ردیف اصلی گرفته می‌شود.
   بنابراین با تغییر ارتفاع کارت‌ها، سایدبار هم تغییر می‌کند.
*/

.main-grid {
    align-items: stretch !important;
}


/* ---------------------------------------------------------
   خود پنل اخبار
   --------------------------------------------------------- */

.news-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    align-self: stretch !important;
}


    /* ---------------------------------------------------------
   عنوان اخبار
   --------------------------------------------------------- */

    .news-panel .section-heading {
        flex: 0 0 auto !important;
    }


    /* ---------------------------------------------------------
   لیست اخبار
   --------------------------------------------------------- */

    .news-panel .news-list {
        flex: 1 1 auto !important;
        min-height: 0 !important;
        height: 0 !important;
        max-height: none !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        padding-left: 6px !important;
        padding-right: 2px !important;
    }


    /* ---------------------------------------------------------
   هر خبر
   --------------------------------------------------------- */

    .news-panel .news-item {
        flex: 0 0 auto !important;
        min-height: 95px;
        margin: 0 !important;
        padding: 10px 4px !important;
        border-bottom: 1px solid #edf0f4;
        border-radius: 8px;
    }


        /* آخرین خبر خط جداکننده نداشته باشد */

        .news-panel .news-item:last-child {
            border-bottom: none;
        }


    /* ---------------------------------------------------------
   عنوان خبر
   --------------------------------------------------------- */

    .news-panel .news-info h3 {
        margin: 0 0 7px;
        font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
        font-size: 17px;
        font-weight: 800;
        line-height: 1.65;
    }


    /* ---------------------------------------------------------
   خلاصه خبر
   --------------------------------------------------------- */

    .news-panel .news-summary {
        margin: 0 0 5px;
        font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.75;
    }


    /* ---------------------------------------------------------
   اسکرول فقط داخل اخبار
   --------------------------------------------------------- */

    .news-panel .news-list::-webkit-scrollbar {
        width: 6px;
    }

    .news-panel .news-list::-webkit-scrollbar-thumb {
        background: #b8c0cc;
        border-radius: 10px;
    }

    .news-panel .news-list::-webkit-scrollbar-track {
        background: transparent;
    }


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 1050px) {

    .news-panel {
        height: auto !important;
        max-height: none !important;
    }

        .news-panel .news-list {
            height: auto !important;
            max-height: 520px !important;
        }
}
/* =========================================================
   NOTICE TICKER - LARGER FONT
   ========================================================= */

/* نوشته ثابت «اطلاعیه‌ها» */
.notice-title {
    font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
}

/* نوشته‌های متحرک */
.notice-item {
    font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
    font-size: 18px !important;
}

/* جداکننده بین اطلاعیه‌ها */
.notice-separator {
    font-size: 19px !important;
}

/* «مشاهده همه» */
.notice-more {
    font-family: "B Mitra", Tahoma, Arial, sans-serif !important;
    font-size: 16px !important;
}
/* =========================================================
   REAL UNIVERSITY LOGO
   حذف لوگوی ساختگی CSS و استفاده از تصویر واقعی
   ========================================================= */

.uni-brand .brand-logo {
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    width: 70px !important;
    height: 70px !important;
    position: relative;
    overflow: visible !important;
}

    /* حذف تزئینات طلایی لوگوی قدیمی */
    .uni-brand .brand-logo::before,
    .uni-brand .brand-logo::after {
        content: none !important;
    }

    /* اگر لوگوی واقعی داخل brand-logo به صورت img باشد */
    .uni-brand .brand-logo img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        border: none !important;
        border-radius: 0 !important;
    }
/* =========================================================
   ADVANTAGES SECTION
   مزایای دانشگاه - کارت‌های رنگی
   ========================================================= */

.advantages-section {
    position: relative;
    padding: 70px 0 60px;
    overflow: hidden;
    /* پس‌زمینه روشن */
    background: linear-gradient( 180deg, rgba(248, 252, 255, 0.96), rgba(238, 247, 255, 0.90) );
}


    /* لایه بسیار ظریف نور در پس‌زمینه */
    .advantages-section::before {
        content: "";
        position: absolute;
        inset: 0;
        background: radial-gradient( circle at 10% 40%, rgba(55, 150, 255, 0.08), transparent 28% ), radial-gradient( circle at 90% 30%, rgba(43, 198, 145, 0.08), transparent 28% );
        pointer-events: none;
    }


    /* کانتینر */
    .advantages-section .uni-container {
        position: relative;
        z-index: 2;
    }


/* =========================================================
   HEADER
   ========================================================= */

.advantages-header {
    text-align: center;
    margin-bottom: 42px;
}


/* برچسب بالای عنوان */

.advantages-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient( 135deg, #2563eb, #1d4ed8 );
    color: #fff;
    font-size: 22px;
    box-shadow: 0 8px 22px rgba(37, 99, 235, 0.25);
    margin-bottom: 12px;
}


    /* در صورتی که متن badge در HTML وجود داشته باشد،
   آن را به شکل عنوان کوچک مخفی نمی‌کنیم */

    .advantages-badge i {
        margin: 0;
    }


/* عنوان اصلی */

.advantages-header h2 {
    margin: 0;
    color: #073b78;
    font-size: 36px;
    font-weight: 900;
    line-height: 1.5;
}


/* توضیح زیر عنوان */

.advantages-header p {
    margin: 10px auto 0;
    max-width: 720px;
    color: #71839b;
    font-size: 22px;
    line-height: 2;
    font-weight: 500;
}


/* =========================================================
   GRID
   ========================================================= */

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}


/* =========================================================
   CARD
   ========================================================= */

.advantage-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 285px;
    padding: 0 22px 24px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 20px;
    border: 1px solid rgba(225, 234, 245, 0.9);
    box-shadow: 0 10px 28px rgba(23, 76, 125, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}


    /* خط رنگی پایین کارت */

    .advantage-item::after {
        content: "";
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        height: 4px;
        background: linear-gradient( 90deg, #2563eb, #38bdf8 );
        transition: height 0.3s ease;
    }


    /* Hover */

    .advantage-item:hover {
        transform: translateY(-9px);
        box-shadow: 0 20px 40px rgba(23, 76, 125, 0.14);
        border-color: rgba(190, 214, 239, 0.9);
    }


        .advantage-item:hover::after {
            height: 6px;
        }


/* =========================================================
   ICON
   ========================================================= */

.advantage-icon {
    width: 82px;
    height: 82px;
    margin-top: -1px;
    margin-bottom: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 34px;
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.13);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}


/* حرکت آیکون */

.advantage-item:hover .advantage-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.16);
}


/* =========================================================
   رنگ‌بندی کارت‌ها
   ========================================================= */

/* کارت اول - صورتی */

.advantage-item:nth-child(1) .advantage-icon {
    background: linear-gradient( 135deg, #ff4f81, #f72568 );
}

.advantage-item:nth-child(1)::after {
    background: #f72568;
}


/* کارت دوم - نارنجی */

.advantage-item:nth-child(2) .advantage-icon {
    background: linear-gradient( 135deg, #ffc247, #ff9200 );
}

.advantage-item:nth-child(2)::after {
    background: #ff9d00;
}


/* کارت سوم - آبی */

.advantage-item:nth-child(3) .advantage-icon {
    background: linear-gradient( 135deg, #4db8ff, #147ee8 );
}

.advantage-item:nth-child(3)::after {
    background: #1599ed;
}


/* کارت چهارم - سبز */

.advantage-item:nth-child(4) .advantage-icon {
    background: linear-gradient( 135deg, #50dca5, #16b978 );
}

.advantage-item:nth-child(4)::after {
    background: #16c982;
}


/* کارت پنجم - بنفش */

.advantage-item:nth-child(5) .advantage-icon {
    background: linear-gradient( 135deg, #9270ff, #5b21e8 );
}

.advantage-item:nth-child(5)::after {
    background: #6738f5;
}


/* =========================================================
   CONTENT
   ========================================================= */

.advantage-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}


    .advantage-content h3 {
        margin: 0 0 12px;
        color: #073b78;
        font-size: 18px;
        font-weight: 800;
        line-height: 1.8;
    }


    .advantage-content p {
        margin: 0;
        color: #71839b;
        font-size: 14px;
        line-height: 2;
        font-weight: 500;
    }


    /* =========================================================
   ARROW
   ========================================================= */

    /*
   اگر در HTML فعلی فلش نداریم،
   با CSS یک فلش کوچک در پایین کارت می‌سازیم.
*/

    .advantage-content::after {
        content: "←";
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        margin-top: auto;
        padding-top: 2px;
        border-radius: 50%;
        background: rgba(37, 99, 235, 0.08);
        color: #2563eb;
        font-size: 22px;
        font-weight: 700;
        transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
    }


.advantage-item:hover .advantage-content::after {
    transform: translateX(-5px);
    background: #2563eb;
    color: #fff;
}


/* =========================================================
   دکمه مشاهده همه مزایا
   ========================================================= */

.advantages-section .advantages-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 34px auto 0;
    padding: 13px 28px;
    border-radius: 50px;
    background: linear-gradient( 135deg, #0b4c91, #06366d );
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(8, 65, 125, 0.20);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}


    .advantages-section .advantages-more:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 30px rgba(8, 65, 125, 0.28);
        color: #fff;
    }


    /* اگر آیکون داخل دکمه باشد */

    .advantages-section .advantages-more i {
        margin-right: 7px;
    }


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1200px) {

    .advantages-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* =========================================================
   TABLET کوچک
   ========================================================= */

@media (max-width: 900px) {

    .advantages-section {
        padding: 55px 0 50px;
    }

    .advantages-header h2 {
        font-size: 30px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 576px) {

    .advantages-section {
        padding: 45px 0 40px;
    }

    .advantages-header {
        margin-bottom: 30px;
    }

        .advantages-header h2 {
            font-size: 26px;
        }

        .advantages-header p {
            padding: 0 15px;
            font-size: 14px;
        }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 0 10px;
    }

    .advantage-item {
        min-height: 260px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .advantage-icon {
        width: 76px;
        height: 76px;
        font-size: 30px;
    }
}
/* =========================================
   اصلاح برچسب «چرا جهاد دانشگاهی؟»
   ========================================= */

.advantages-header .advantages-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 9px 18px !important;
    background: #0b4f8a !important;
    color: #ffffff !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    box-shadow: 0 6px 18px rgba(11, 79, 138, 0.18) !important;
    position: relative !important;
    z-index: 5 !important;
    white-space: nowrap !important;
}

    /* آیکون ستاره */
    .advantages-header .advantages-badge i {
        color: #ffd43b !important;
        font-size: 15px !important;
        position: static !important;
        transform: none !important;
    }

    /* جلوگیری از هر تزئین قدیمی */
    .advantages-header .advantages-badge::before,
    .advantages-header .advantages-badge::after {
        content: none !important;
    }
/* =========================================
   OLD PORTAL BUTTON
   ========================================= */

.old-portal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 15px;
    border: 1px solid #d9e1ea;
    border-radius: 8px;
    background: #f7f9fc;
    color: var(--navy);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

    .old-portal-btn i {
        font-size: 13px;
        color: var(--blue);
    }

    .old-portal-btn:hover {
        background: var(--navy);
        color: #ffffff;
        border-color: var(--navy);
        transform: translateY(-1px);
    }

        .old-portal-btn:hover i {
            color: var(--gold);
        }

/* =========================================
   QUICK SERVICES - TEXT SIZE
   ========================================= */

.quick-services .quick-service {
    font-size: 15px !important;
    font-weight: 700 !important;
}

    .quick-services .quick-service > span:last-child {
        font-size: 15px !important;
        font-weight: 700 !important;
    }

.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: fill;
}
/* =========================================================
   FINAL RESPONSIVE LAYER
   مناسب موبایل، تبلت و لپ‌تاپ
   این بخش در انتهای فایل قرار گرفته تا با CSSهای قبلی تداخل نکند.
   ========================================================= */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.university-home,
.uni-container,
.notice-bar,
.main-grid,
.university-intro,
.services-section,
.advantages-section,
.uni-footer {
    max-width: 100%;
}

    .main-grid > *,
    .header-inner > *,
    .services-section > *,
    .footer-main > *,
    .advantages-grid > * {
        min-width: 0;
    }

/* -------------------------
   لپ‌تاپ‌های متوسط
   ------------------------- */
@media (max-width: 1199px) {

    .uni-container {
        width: 94%;
        max-width: 1200px;
    }

    .uni-header {
        height: 96px;
    }

    .header-inner {
        gap: 16px;
    }

    .uni-brand {
        min-width: 205px;
        gap: 9px;
    }

        .uni-brand .brand-logo {
            width: 64px !important;
            height: 64px !important;
        }

    .brand-text strong {
        font-size: 20px;
    }

    .main-menu {
        gap: 5px;
    }

        .main-menu .menu-item > a {
            padding-left: 5px;
            padding-right: 5px;
            font-size: 13px;
        }

    .header-actions {
        gap: 8px;
    }

    .login-btn,
    .old-portal-btn {
        min-height: 42px;
        padding-left: 11px;
        padding-right: 11px;
        font-size: 12px;
    }

    .main-grid {
        grid-template-columns: 250px minmax(0, 1fr) 250px;
        gap: 14px;
    }

    .groups-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .services-section {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

        .services-section .service-item {
            padding-left: 10px;
            padding-right: 10px;
        }

            .services-section .service-item h3 {
                font-size: 17px !important;
            }

            .services-section .service-item p {
                font-size: 13px;
            }
}

/* -------------------------
   تبلت
   ------------------------- */
@media (max-width: 991px) {

    .uni-container {
        width: 94%;
    }

    /* Header */
    .uni-header {
        height: 82px;
    }

        .uni-header .uni-nav,
        .uni-header .main-menu,
        .uni-header .search-btn {
            display: none !important;
        }

    .header-inner {
        justify-content: space-between;
        gap: 10px;
    }

    .uni-brand {
        min-width: 0;
        flex: 1 1 auto;
    }

        .uni-brand .brand-logo {
            width: 58px !important;
            height: 58px !important;
        }

    .header-actions {
        margin-right: 0;
        margin-left: 0;
        flex: 0 0 auto;
    }

    .old-portal-btn {
        min-height: 40px;
    }

    .login-btn {
        min-width: 125px;
        min-height: 40px;
    }

    /* Hero */
    .uni-hero {
        height: 610px;
        min-height: 610px;
    }

    .hero-media video {
        width: 100%;
        height: 100%;
        object-fit: cover !important;
        object-position: center center;
    }

    .hero-content {
        min-height: 100%;
        align-items: center;
    }

    .hero-copy {
        width: 68%;
        max-width: 720px;
        padding: 35px 25px 45px;
    }

        .hero-copy h1 {
            font-size: clamp(31px, 4.5vw, 43px);
        }

        .hero-copy h2 {
            font-size: 20px;
        }

        .hero-copy p {
            font-size: 14px;
            line-height: 2;
        }

    /* Notice */
    .notice-bar,
    .notice-title,
    .notice-moving,
    .notice-more {
        height: 58px;
    }

    .notice-title {
        flex-basis: 135px;
        font-size: 16px !important;
    }

    .notice-more {
        flex-basis: 125px;
        font-size: 13px !important;
    }

    .notice-item {
        font-size: 16px !important;
    }

    /* Main content */
    .main-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-areas:
            "groups groups"
            "admission news";
        gap: 16px;
    }

    .groups-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .group-image {
        height: 105px;
    }

    .groups-panel,
    .news-panel {
        padding: 15px;
    }

    /* Services */
    .services-section {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .services-section .service-item {
            min-height: 82px;
        }

            .services-section .service-item:nth-child(2n)::after {
                display: none;
            }

    /* Intro */
    .university-intro .intro-card {
        grid-template-columns: 1fr;
    }

    .university-intro .intro-video,
    .university-intro .intro-video video {
        min-height: 300px;
    }

    .university-intro .intro-content {
        padding: 35px 30px 42px;
    }

    .university-intro .intro-stats {
        width: calc(100% - 50px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* Footer */
    .uni-footer .footer-main {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 24px;
    }

    .uni-footer .footer-social {
        grid-column: 1 / -1;
    }
}

/* -------------------------
   موبایل بزرگ
   ------------------------- */
@media (max-width: 767px) {

    .uni-container {
        width: 92%;
    }

    /* Header */
    .uni-header {
        height: 72px;
        border-radius: 0 0 12px 12px;
    }

    .header-inner {
        gap: 8px;
    }

    .uni-brand {
        gap: 8px;
    }

        .uni-brand .brand-logo {
            width: 54px !important;
            height: 54px !important;
        }

    .brand-text strong {
        font-size: 17px;
    }

    .brand-text span,
    .brand-text small {
        display: none;
    }

    .header-actions {
        gap: 7px;
    }

    .login-btn {
        min-width: 112px;
        min-height: 38px;
        padding: 0 9px;
        font-size: 11px;
    }

    .old-portal-btn {
        display: none !important;
    }

    /* Hero */
    .uni-hero {
        height: 540px;
        min-height: 540px;
    }

    .hero-overlay {
        background: linear-gradient( 180deg, rgba(5,18,42,.05) 0%, rgba(5,18,42,.22) 38%, rgba(5,18,42,.82) 100% );
    }

    .hero-content {
        justify-content: center;
        align-items: flex-end;
        padding-bottom: 25px;
    }

    .hero-copy,
    .uni-hero .hero-copy {
        width: 100%;
        max-width: none;
        padding: 25px 10px 15px;
        text-align: center;
        margin: 0 auto;
    }

    .hero-kicker {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .hero-copy h1 {
        font-size: clamp(28px, 7vw, 35px);
        line-height: 1.45;
    }

    .hero-copy h2 {
        margin: 7px 0 12px;
        font-size: 18px;
        line-height: 1.7;
    }

    .hero-copy p {
        max-width: 620px;
        margin: 0 auto 18px;
        font-size: 13px;
        line-height: 1.95;
    }

    .hero-buttons {
        width: 100%;
        justify-content: center;
        gap: 9px;
    }

        .hero-buttons .btn {
            min-width: 0;
            min-height: 46px;
            flex: 1 1 0;
            padding: 0 10px;
            font-size: 13px;
        }

    /* Notice */
    .notice-bar,
    .notice-title,
    .notice-moving,
    .notice-more {
        height: 54px;
    }

    .notice-title {
        flex: 0 0 105px;
        gap: 5px;
        padding: 0 5px;
        font-size: 14px !important;
    }

        .notice-title i {
            font-size: 13px;
        }

    .notice-more {
        display: none !important;
    }

    .notice-item {
        font-size: 15px !important;
    }

    /* Main grid */
    .main-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "groups"
            "admission"
            "news";
        gap: 14px;
        margin-top: 14px;
    }

    .groups-panel,
    .news-panel {
        padding: 14px;
        border-radius: 14px;
    }

    .section-heading {
        gap: 10px;
        margin-bottom: 13px;
    }

        .section-heading h2 {
            font-size: 18px;
        }

    .groups-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }

    .group-card {
        border-radius: 9px;
        padding-bottom: 9px;
    }

    .group-image {
        height: 92px;
    }

    /* Services */
    .services-section {
        grid-template-columns: 1fr;
        gap: 5px;
        margin-top: 15px;
        margin-bottom: 25px;
    }

        .services-section .service-item {
            min-height: 70px;
            justify-content: flex-start;
            padding: 10px 13px;
        }

            .services-section .service-item > i {
                width: 42px;
                height: 42px;
                min-width: 42px;
                font-size: 20px;
            }

            .services-section .service-item h3 {
                font-size: 17px !important;
                white-space: normal;
            }

            .services-section .service-item p {
                font-size: 13px;
                white-space: normal;
            }

    /* Quick services */
    .quick-services {
        margin-top: 20px;
        gap: 8px;
    }

    .quick-service {
        min-height: 48px;
        padding: 8px 11px;
        gap: 9px;
    }

    .quick-service-icon {
        width: 38px;
        height: 38px;
        font-size: 20px;
    }

    /* Intro */
    .university-intro {
        margin: 30px 0 40px;
    }

        .university-intro .intro-card {
            min-height: 0;
            border-radius: 16px;
        }

        .university-intro .intro-video,
        .university-intro .intro-video video {
            min-height: 230px;
        }

        .university-intro .intro-content {
            padding: 28px 20px 34px;
        }

            .university-intro .intro-content h2 {
                font-size: 24px;
                line-height: 1.6;
            }

            .university-intro .intro-content p {
                font-size: 13px;
                line-height: 2;
                text-align: right;
            }

        .university-intro .intro-more {
            align-self: flex-start;
            font-size: 12px;
        }

        .university-intro .intro-stats {
            width: calc(100% - 24px);
            grid-template-columns: repeat(2, minmax(0, 1fr));
            margin-top: -20px;
            padding: 10px;
            border-radius: 15px;
        }

            .university-intro .intro-stats .stat-item {
                min-height: 76px;
                gap: 8px;
                padding: 8px;
            }

                .university-intro .intro-stats .stat-item > i {
                    width: 42px;
                    height: 42px;
                    font-size: 17px;
                }

                .university-intro .intro-stats .stat-item strong {
                    font-size: 19px;
                }

                .university-intro .intro-stats .stat-item span {
                    font-size: 11px;
                }

    /* Advantages */
    .advantages-section {
        padding: 42px 0 38px;
    }

    .advantages-header {
        margin-bottom: 25px;
    }

        .advantages-header h2 {
            font-size: 26px;
            line-height: 1.6;
        }

        .advantages-header p {
            font-size: 13px;
            line-height: 1.9;
        }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 0;
    }

    .advantage-item {
        min-height: 225px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    /* Footer */
    .uni-footer {
        margin-top: 40px;
    }

        .uni-footer .footer-main {
            grid-template-columns: 1fr;
            gap: 28px;
            padding: 38px 0 30px;
        }

        .uni-footer .footer-social {
            grid-column: auto;
        }

        .uni-footer .footer-description {
            max-width: none;
            font-size: 12px;
        }

        .uni-footer .footer-bottom {
            min-height: 0;
            padding: 15px 0;
            flex-direction: column;
            justify-content: center;
            text-align: center;
            gap: 7px;
        }
}

/* -------------------------
   موبایل کوچک
   ------------------------- */
@media (max-width: 479px) {

    .uni-container {
        width: 94%;
    }

    .uni-header {
        height: 66px;
    }

    .uni-brand .brand-logo {
        width: 50px !important;
        height: 50px !important;
    }

    .brand-text strong {
        font-size: 15px;
    }

    .login-btn {
        min-width: auto;
        min-height: 36px;
        padding: 0 8px;
        font-size: 10px;
        gap: 5px;
    }

        .login-btn i {
            font-size: 12px;
        }

    .uni-hero {
        height: 500px;
        min-height: 500px;
    }

    .hero-copy h1 {
        font-size: 27px;
    }

    .hero-copy h2 {
        font-size: 17px;
    }

    .hero-copy p {
        font-size: 12px;
        line-height: 1.9;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

        .hero-buttons .btn {
            width: 100%;
            flex: none;
            min-height: 44px;
        }

    .notice-title {
        flex-basis: 92px;
        font-size: 13px !important;
    }

    .notice-item {
        font-size: 14px !important;
    }

    .groups-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-image {
        height: 88px;
    }

    .university-intro .intro-video,
    .university-intro .intro-video video {
        min-height: 200px;
    }

    .university-intro .intro-content {
        padding: 24px 16px 30px;
    }

    .university-intro .intro-stats {
        grid-template-columns: 1fr;
    }

    .advantage-item {
        min-height: 210px;
        padding: 22px 18px;
    }

    .advantage-icon {
        width: 68px;
        height: 68px;
        font-size: 27px;
    }
}

/* -------------------------
   موبایل خیلی باریک
   ------------------------- */
@media (max-width: 359px) {

    .uni-container {
        width: 96%;
    }

    .uni-brand .brand-logo {
        width: 46px !important;
        height: 46px !important;
    }

    .brand-text strong {
        font-size: 14px;
    }

    .login-btn {
        padding: 0 6px;
        font-size: 9px;
    }

    .uni-hero {
        height: 470px;
        min-height: 470px;
    }

    .hero-copy h1 {
        font-size: 24px;
    }

    .hero-copy h2 {
        font-size: 15px;
    }

    .hero-buttons .btn {
        font-size: 12px;
    }

    .notice-title {
        flex-basis: 82px;
    }

        .notice-title span {
            white-space: normal;
            text-align: center;
            line-height: 1.2;
        }
}

/* پرچم قدیمی هدر همچنان کاملاً غیرفعال باشد */
.uni-header .header-inner::before {
    content: none !important;
    display: none !important;
    width: 0 !important;
    height: 0 !important;
    flex: 0 0 0 !important;
    background-image: none !important;
    animation: none !important;
}

/* نشانگرهای قدیمی Hero حذف شده‌اند */
.hero-dots {
    display: none !important;
}
/* =========================================================
   FIX - FULL SIDEBAR NOTICES
   نمایش کامل اطلاعیه‌ها
========================================================= */

.department-page .sidebar .notice-box {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.department-page .sidebar .notice-list {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.department-page .sidebar .notice-item {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    white-space: normal !important;
    word-break: break-word;
}

/* اطلاعیه‌های دپارتمان */

.department-page .department-page-notices {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

    .department-page .department-page-notices .row {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .department-page .department-page-notices .notice-card {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .department-page .department-page-notices .card-body {
        height: auto !important;
        overflow: visible !important;
    }

    .department-page .department-page-notices .notice-description {
        display: block !important;
        max-height: none !important;
        overflow: visible !important;
        white-space: normal !important;
        -webkit-line-clamp: unset !important;
    }
/* =========================================================
   ADMISSION QUICK SERVICES
   فاصله بیشتر از لینک اطلاعات بیشتر
========================================================= */

.admission-content .quick-services {
    margin-top: 45px;
}
/* =========================================================
   ADVANTAGES - PERSIAN FONT
   فونت خواناتر برای کارت‌های مزایا
========================================================= */

.advantages-section {
    font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
}

    .advantages-section .advantages-badge {
        font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
        font-size: 15px;
        font-weight: 700;
    }

    .advantages-section .advantages-header h2 {
        font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
        font-size: 30px;
        font-weight: 700;
        line-height: 1.7;
    }

    .advantages-section .advantages-header p {
        font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
        font-size: 17px;
        line-height: 1.8;
    }

    .advantages-section .advantage-item h3 {
        font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
        font-size: 19px;
        font-weight: 700;
        line-height: 1.7;
    }

    .advantages-section .advantage-item p {
        font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
        font-size:20px;
        font-weight: 400;
        line-height: 2;
    }

    /* فلش پایین کارت */
    .advantages-section .advantage-content::after {
        font-family: Tahoma, Arial, sans-serif;
    }

/* موبایل */
@media (max-width: 768px) {

    .advantages-section .advantages-header h2 {
        font-size: 25px;
    }

    .advantages-section .advantages-header p {
        font-size: 15px;
    }

    .advantages-section .advantage-item h3 {
        font-size: 18px;
    }

    .advantages-section .advantage-item p {
        font-size: 14px;
    }
}
/* =========================================================
   FIX - ADVANTAGES BADGE
   اصلاح برچسب بالای بخش مزایا
========================================================= */

.advantages-section .advantages-header .advantages-badge {
    position: static !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: auto !important;
    height: auto !important;
    margin: 0 auto 16px !important;
    padding: 7px 16px !important;
    background: #ffffff !important;
    color: var(--blue) !important;
    border: 1px solid #e1e8f2 !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(7, 26, 61, .08) !important;
    font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
    font-size: 15px !important;
    font-weight: 700;
    transform: none !important;
}

    /* ستاره */
    .advantages-section .advantages-header .advantages-badge i {
        color: var(--gold) !important;
        font-size: 14px !important;
        transform: none !important;
    }

    /* حذف هر المان تزئینی قبلی */
    .advantages-section .advantages-header .advantages-badge::before,
    .advantages-section .advantages-header .advantages-badge::after {
        content: none !important;
        display: none !important;
    }
/* =========================================================
   IMPORTANT NOTICES
   اطلاعیه‌های مهم زیر خدمات سریع
========================================================= */

.sidebar-important-notices {
    width: 100%;
    margin-top: 18px;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
    direction: rtl;
}

.sidebar-important-notices-title {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 13px;
    margin-bottom: 8px;
    color: var(--gold);
    font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

    .sidebar-important-notices-title i {
        font-size: 16px;
    }

.sidebar-important-notices-list {
    display: flex;
    flex-direction: column;
}

.sidebar-important-notice-item {
    padding: 12px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbe5f5;
    font-family: "B Mitra", "B Mitra2", Tahoma, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.8;
}

    .sidebar-important-notice-item:last-child {
        border-bottom: none;
    }

    .sidebar-important-notice-item a {
        display: block;
        color: #ffffff;
        text-decoration: none;
        overflow-wrap: anywhere;
        word-break: break-word;
        transition: color .2s ease;
    }

        .sidebar-important-notice-item a:hover {
            color: var(--gold);
        }

    .sidebar-important-notice-item span {
        display: block;
        overflow-wrap: anywhere;
        word-break: break-word;
    }


/* موبایل */
@media (max-width: 768px) {

    .sidebar-important-notices {
        padding: 15px;
        margin-top: 15px;
        border-radius: 15px;
    }

    .sidebar-important-notices-title {
        font-size: 17px;
    }

    .sidebar-important-notice-item {
        font-size: 14px;
        padding: 10px 2px;
    }
}

/* =========================================================
   IMPORTANT NOTICES - FINAL TICKER
   نسخه نهایی نوار اطلاعیه‌ها
   ========================================================= */

.notice-section {
    position: relative;
    z-index: 20;
    width: 100%;
    margin: 0;
    padding: 0;
    direction: rtl;
}


/* ---------------------------------------------------------
   نوار اصلی
   --------------------------------------------------------- */

.notice-bar {
    width: 100%;
    height: 64px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: linear-gradient( 90deg, #083a66 0%, #0a4a78 50%, #083a66 100% );
    color: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 5px 20px rgba(7, 26, 61, .12);
}


/* ---------------------------------------------------------
   عنوان ثابت سمت راست
   --------------------------------------------------------- */

.notice-title {
    flex: 0 0 190px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    background: var(--navy);
    color: var(--gold-2);
    font-family: "B Mitra", Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 5;
}

    .notice-title i {
        font-size: 18px;
    }


/* ---------------------------------------------------------
   محدوده حرکت
   --------------------------------------------------------- */

.notice-moving {
    flex: 1;
    min-width: 0;
    height: 64px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    direction: ltr;
}


/* ---------------------------------------------------------
   مسیر حرکت
   --------------------------------------------------------- */

.notice-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: max-content;
    flex-shrink: 0;
    direction: ltr;
    white-space: nowrap;
    animation: noticeTickerMove 30s linear infinite;
    will-change: transform;
}


/* ---------------------------------------------------------
   هر مجموعه اطلاعیه
   دو گروه کاملاً مشابه هستند.
   همین موضوع باعث حذف فاصله خالی بین دورها می‌شود.
   --------------------------------------------------------- */

.notice-group {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: max-content;
    direction: rtl;
    white-space: nowrap;
    gap: 26px;
    padding-left: 40px;
    padding-right: 40px;
}


/* ---------------------------------------------------------
   متن هر اطلاعیه
   --------------------------------------------------------- */

.notice-item {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: #fff;
    text-decoration: none;
    font-family: "B Mitra", Tahoma, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
    transition: color .2s ease;
}

    .notice-item:hover {
        color: var(--gold-2);
    }


/* ---------------------------------------------------------
   ستاره بین اطلاعیه‌ها
   --------------------------------------------------------- */

.notice-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold-2);
    font-family: Tahoma, Arial, sans-serif;
    font-size: 17px;
    font-weight: 900;
    line-height: 1;
    margin: 0 2px;
}


/* ---------------------------------------------------------
   حرکت کاملاً پیوسته
   --------------------------------------------------------- */

@keyframes noticeTickerMove {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}


/* ---------------------------------------------------------
   توقف هنگام قرار گرفتن موس
   --------------------------------------------------------- */

.notice-moving:hover .notice-track {
    animation-play-state: paused;
}


/* ---------------------------------------------------------
   مشاهده همه اطلاعیه‌ها
   --------------------------------------------------------- */

.notice-more {
    flex: 0 0 160px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    background: var(--navy);
    color: var(--gold-2);
    text-decoration: none;
    font-family: "B Mitra", Tahoma, Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    white-space: nowrap;
    position: relative;
    z-index: 5;
    transition: color .2s ease, background-color .2s ease;
}

    .notice-more:hover {
        color: #fff;
        background: #061632;
    }

    .notice-more i {
        font-size: 14px;
    }


/* =========================================================
   RESPONSIVE
   ========================================================= */


/* ---------------------------------------------------------
   Tablet / Laptop
   --------------------------------------------------------- */

@media (max-width: 1100px) {

    .notice-title {
        flex-basis: 170px;
        font-size: 17px;
    }

    .notice-more {
        flex-basis: 145px;
        font-size: 15px;
    }

    .notice-item {
        font-size: 17px;
    }

    .notice-group {
        gap: 22px;
        padding-left: 30px;
        padding-right: 30px;
    }
}


/* ---------------------------------------------------------
   Tablet
   --------------------------------------------------------- */

@media (max-width: 768px) {

    .notice-bar {
        height: 58px;
    }

    .notice-title {
        flex-basis: 145px;
        height: 58px;
        gap: 6px;
        padding: 0 8px;
        font-size: 15px;
    }

        .notice-title i {
            font-size: 15px;
        }

    .notice-moving {
        height: 58px;
    }

    .notice-more {
        flex-basis: 125px;
        height: 58px;
        padding: 0 7px;
        font-size: 14px;
    }

        .notice-more i {
            font-size: 12px;
        }

    .notice-item {
        font-size: 16px;
    }

    .notice-separator {
        font-size: 15px;
    }

    .notice-group {
        gap: 18px;
        padding-left: 25px;
        padding-right: 25px;
    }
}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 576px) {

    .notice-bar {
        height: 52px;
    }

    .notice-title {
        flex-basis: 105px;
        height: 52px;
        font-size: 13px;
        gap: 5px;
        padding: 0 6px;
    }

        .notice-title i {
            font-size: 13px;
        }

    .notice-moving {
        height: 52px;
    }

    .notice-more {
        flex-basis: 92px;
        height: 52px;
        padding: 0 5px;
        font-size: 12px;
        gap: 4px;
    }

        .notice-more i {
            font-size: 10px;
        }

    .notice-item {
        font-size: 15px;
    }

    .notice-separator {
        font-size: 14px;
    }

    .notice-group {
        gap: 15px;
        padding-left: 20px;
        padding-right: 20px;
    }
}


/* ---------------------------------------------------------
   گوشی خیلی کوچک
   --------------------------------------------------------- */

@media (max-width: 420px) {

    .notice-title {
        flex-basis: 92px;
        font-size: 12px;
    }

        .notice-title i {
            font-size: 12px;
        }

    .notice-more {
        flex-basis: 82px;
        font-size: 11px;
    }

    .notice-item {
        font-size: 14px;
    }

    .notice-group {
        gap: 13px;
        padding-left: 16px;
        padding-right: 16px;
    }
}
/* =========================================================
   FINAL FOOTER FONT REFINEMENT
   خوانایی بهتر متن‌های فوتر
   ========================================================= */

.uni-footer .footer-brand strong {
    font-size: 19px !important;
    line-height: 1.7;
}

.uni-footer .footer-brand span {
    font-size: 14px !important;
}

.uni-footer .footer-description {
    font-size: 15px !important;
    line-height: 2.15 !important;
}

.uni-footer .footer-column h3 {
    font-size: 19px !important;
    line-height: 1.7;
}

.uni-footer .footer-links-list li {
    margin-bottom: 13px;
}

.uni-footer .footer-links-list a {
    font-size: 15px !important;
    line-height: 1.8;
}

.uni-footer .footer-contact-item {
    font-size: 15px !important;
    line-height: 2 !important;
}

.uni-footer .footer-social p {
    font-size: 15px !important;
    line-height: 2.1 !important;
}

.uni-footer .footer-copyright {
    font-size: 13px !important;
    line-height: 1.9 !important;
}

.uni-footer .footer-bottom-text {
    font-size: 14px !important;
}


/* موبایل */
@media (max-width: 750px) {

    .uni-footer .footer-brand strong {
        font-size: 18px !important;
    }

    .uni-footer .footer-description {
        font-size: 15px !important;
    }

    .uni-footer .footer-column h3 {
        font-size: 18px !important;
    }

    .uni-footer .footer-links-list a {
        font-size: 15px !important;
    }

    .uni-footer .footer-contact-item {
        font-size: 15px !important;
    }

    .uni-footer .footer-social p {
        font-size: 15px !important;
    }

    .uni-footer .footer-copyright {
        font-size: 13px !important;
    }
}
/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-btn {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 10px;
    background: var(--navy);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* موبایل و تبلت */
@media (max-width: 1050px) {

    .uni-header .header-inner {
        position: relative;
    }

    .mobile-menu-btn {
        display: inline-flex !important;
        order: 3;
        margin-right: 8px;
    }

    .uni-brand {
        order: 1;
        min-width: 0 !important;
        flex: 1;
    }

    .header-actions {
        order: 2;
        margin-right: auto;
    }

    /* منوی اصلی در حالت عادی مخفی */
    .uni-header .main-menu {
        display: none !important;
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        min-width: 0;
        padding: 12px;
        background: #fff;
        border: 1px solid #e5e9f0;
        border-radius: 14px;
        box-shadow: 0 12px 30px rgba(7, 26, 61, .15);
        z-index: 999;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 4px;
    }

    /* وقتی منو باز است */
    .uni-header.menu-open .main-menu {
        display: flex !important;
    }

    .uni-header .main-menu .menu-item {
        width: 100%;
    }

        .uni-header .main-menu .menu-item > a {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            width: 100%;
            min-height: 46px;
            padding: 10px 14px;
            border-radius: 8px;
            color: var(--navy);
            background: transparent;
            font-size: 14px;
            font-weight: 700;
            text-decoration: none;
        }

            .uni-header .main-menu .menu-item > a:hover {
                background: #f3f6fa;
                color: var(--blue);
            }

    /* زیرمنوها در موبایل */
    .uni-header .main-menu .submenu {
        position: static !important;
        display: block !important;
        width: 100%;
        min-width: 0;
        padding: 4px 10px 8px 0;
        background: #f8fafc;
        border: 0;
        box-shadow: none;
        border-radius: 8px;
    }

        .uni-header .main-menu .submenu .submenu-item {
            width: 100%;
        }

            .uni-header .main-menu .submenu .submenu-item > a {
                display: flex;
                width: 100%;
                min-height: 40px;
                padding: 8px 14px;
                color: #42526b;
                font-size: 13px;
                text-decoration: none;
                border-radius: 7px;
            }

                .uni-header .main-menu .submenu .submenu-item > a:hover {
                    background: #edf2f7;
                    color: var(--blue);
                }

    /* دکمه ورود */
    .uni-header .login-btn {
        min-height: 40px;
        padding: 0 12px;
        font-size: 12px;
    }

    /* پرتال قدیمی */
    .uni-header .old-portal-btn {
        min-height: 40px;
        padding: 0 10px;
        font-size: 11px;
    }

    .uni-header .search-btn {
        display: none !important;
    }
}


/* =========================================================
   موبایل کوچک
   ========================================================= */

@media (max-width: 768px) {

    .uni-header {
        height: 72px;
    }

    .uni-container.header-inner {
        width: 94%;
        gap: 8px;
    }

    .brand-logo {
        width: 52px !important;
        height: 52px !important;
    }

    .brand-text span {
        font-size: 10px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text small {
        font-size: 10px;
    }

    .header-actions {
        gap: 6px;
    }

    .old-portal-btn {
        display: none !important;
    }

    .login-btn {
        min-height: 38px !important;
        padding: 0 9px !important;
        font-size: 11px !important;
    }

    .mobile-menu-btn {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}


/* =========================================================
   موبایل خیلی کوچک
   ========================================================= */

@media (max-width: 480px) {

    .uni-header {
        height: 66px;
    }

    .brand-logo {
        width: 46px !important;
        height: 46px !important;
    }

    .brand-text span,
    .brand-text small {
        display: none;
    }

    .brand-text strong {
        font-size: 12px;
    }

    .login-btn {
        font-size: 10px !important;
        padding: 0 7px !important;
    }

    .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }
}