﻿/* =========================================================
   Department.css v3.1 - CLEANED & ISOLATED
   JDE Department System

   Global/conflicting selectors removed or scoped.
   Bootstrap generic classes are intentionally not overridden.
   ========================================================= */

/* =========================================================
   01. ROOT
   ========================================================= */

:root {
    /* -----------------------------------------
       Main Site Colors
       ----------------------------------------- */

    --dept-primary: #082b63;
    --dept-primary-dark: #061b42;
    --dept-primary-light: #14549a;
    --dept-blue: #0d5ea8;
    --dept-blue-light: #eaf4ff;
    --dept-accent: #f5b400;
    --dept-danger: #ef4444;
    --dept-success: #16a34a;
    --dept-info: #0ea5e9;
    /* -----------------------------------------
       Background
       ----------------------------------------- */

    --dept-page-bg: #f4f7fb;
    --dept-white: #ffffff;
    /* -----------------------------------------
       Text
       ----------------------------------------- */

    --dept-title: #082b63;
    --dept-text: #253858;
    --dept-text-light: #64748b;
    --dept-muted: #94a3b8;
    /* -----------------------------------------
       Borders
       ----------------------------------------- */

    --dept-border: #e2e8f0;
    --dept-border-light: #edf2f7;
    /* -----------------------------------------
       Shadows
       ----------------------------------------- */

    --dept-shadow-sm: 0 4px 14px rgba(15, 35, 70, .07);
    --dept-shadow-md: 0 10px 30px rgba(15, 35, 70, .10);
    --dept-shadow-lg: 0 20px 50px rgba(15, 35, 70, .14);
    /* -----------------------------------------
       Radius
       ----------------------------------------- */

    --dept-radius-sm: 12px;
    --dept-radius-md: 18px;
    --dept-radius-lg: 26px;
    --dept-radius-xl: 32px;
    /* -----------------------------------------
       Transition
       ----------------------------------------- */

    --dept-transition: .3s ease;
}


/* =========================================================
   02. RESET
   ========================================================= */

.department-page *,
.department-page *::before,
.department-page *::after {
    box-sizing: border-box;
}

.department-page {
    width: 100%;
    max-width: 1700px;
    margin: 0 auto;
    padding: 30px 25px 80px;
    color: var(--dept-text);
    direction: rtl;
}

    .department-page img {
        display: block;
        max-width: 100%;
    }

    .department-page a {
        text-decoration: none;
    }

    .department-page h1,
    .department-page h2,
    .department-page h3,
    .department-page h4,
    .department-page h5,
    .department-page h6 {
        margin: 0;
    }

    .department-page p {
        margin: 0;
    }
    /* =========================================================
   04. HERO
   ========================================================= */

    .department-page .department-hero {
        position: relative;
        overflow: hidden;
        min-height: 430px;
        border-radius: var(--dept-radius-xl);
        background: linear-gradient( 135deg, #061b42 0%, #082b63 45%, #14549a 100% );
        box-shadow: var(--dept-shadow-lg);
        display: flex;
        align-items: center;
    }


        /* decorative light */

        .department-page .department-hero::before {
            content: "";
            position: absolute;
            width: 500px;
            height: 500px;
            top: -250px;
            left: -150px;
            border-radius: 50%;
            background: radial-gradient( circle, rgba(255,255,255,.16), transparent 65% );
        }


        /* decorative glow */

        .department-page .department-hero::after {
            content: "";
            position: absolute;
            width: 400px;
            height: 400px;
            bottom: -250px;
            right: -150px;
            border-radius: 50%;
            background: radial-gradient( circle, rgba(20,84,154,.55), transparent 70% );
        }


    /* =========================================================
   05. HERO OVERLAY
   ========================================================= */

    .department-page .hero-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient( 90deg, rgba(6,27,66,.10), rgba(6,27,66,.25) );
        pointer-events: none;
    }


    /* =========================================================
   06. HERO CONTENT
   ========================================================= */

    .department-page .hero-content {
        position: relative;
        z-index: 2;
        width: 100%;
        padding: 65px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
    }


    /* =========================================================
   07. HERO TEXT
   ========================================================= */

    .department-page .hero-text {
        flex: 1;
        color: #fff;
        max-width: 720px;
    }

    .department-page .hero-badge {
        display: inline-flex;
        align-items: center;
        padding: 8px 18px;
        margin-bottom: 22px;
        border-radius: 40px;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.18);
        color: #fff;
        font-size: 14px;
        backdrop-filter: blur(10px);
    }


    .department-page .hero-text h1 {
        color: #fff;
        font-size: 48px;
        line-height: 1.35;
        font-weight: 800;
        margin-bottom: 18px;
    }


    .department-page .hero-subtitle {
        color: #dbeafe;
        font-size: 22px;
        margin-bottom: 18px;
    }


    .department-page .hero-text p {
        color: #dbeafe;
        max-width: 650px;
        line-height: 2;
        font-size: 16px;
    }


    /* =========================================================
   08. HERO IMAGE
   ========================================================= */

    .department-page .hero-image {
        flex: 1;
        display: flex;
        justify-content: center;
        align-items: center;
    }


        .department-page .hero-image img {
            width: 100%;
            max-width: 500px;
            max-height: 330px;
            object-fit: contain;
            border-radius: 24px;
            filter: drop-shadow( 0 25px 40px rgba(0,0,0,.30) );
            transition: var(--dept-transition);
        }


            .department-page .hero-image img:hover {
                transform: translateY(-6px) scale(1.02);
            }


    /* =========================================================
   09. HERO BUTTONS
   ========================================================= */

    .department-page .hero-buttons {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 30px;
    }


    .department-page .btn-primary {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 13px 25px;
        border-radius: 12px;
        background: var(--dept-accent);
        color: #16233f;
        font-weight: 700;
        transition: var(--dept-transition);
    }


        .department-page .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(245,180,0,.30);
            color: #16233f;
        }


    .department-page .btn-outline {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        padding: 13px 25px;
        border-radius: 12px;
        color: #fff;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.25);
        transition: var(--dept-transition);
    }


        .department-page .btn-outline:hover {
            background: rgba(255,255,255,.17);
            color: #fff;
            transform: translateY(-3px);
        }


    /* =========================================================
   10. MAIN LAYOUT
   ========================================================= */

    .department-page .department-layout {
        display: grid;
        grid-template-columns: 350px minmax(0,1fr);
        gap: 28px;
        align-items: start;
        margin-top: 30px;
    }


    /* =========================================================
   11. SIDEBAR
   ========================================================= */

    .department-page .sidebar {
        display: flex;
        flex-direction: column;
        gap: 22px;
        min-width: 0;
    }


    /* =========================================================
   12. PROFILE CARD
   ========================================================= */

    .department-page .department-profile-card {
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: var(--dept-radius-lg);
        box-shadow: var(--dept-shadow-md);
        color: var(--dept-text);
        transition: var(--dept-transition);
    }


        .department-page .department-profile-card:hover {
            transform: translateY(-3px);
            box-shadow: var(--dept-shadow-lg);
        }


    .department-page .department-cover {
        width: 100%;
        height: 210px;
        object-fit: cover;
    }


    .department-page .department-profile-content {
        padding: 24px;
    }


        .department-page .department-profile-content h3 {
            color: var(--dept-title);
            font-size: 25px;
            font-weight: 800;
            margin-bottom: 14px;
        }


        .department-page .department-profile-content p {
            color: var(--dept-text-light);
            line-height: 2;
            font-size: 14px;
        }


    /* =========================================================
   13. SIDEBAR BOX
   ========================================================= */

    .department-page .sidebar-box {
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: var(--dept-radius-lg);
        padding: 22px;
        box-shadow: var(--dept-shadow-sm);
        transition: var(--dept-transition);
    }


        .department-page .sidebar-box:hover {
            transform: translateY(-3px);
            box-shadow: var(--dept-shadow-md);
        }


        .department-page .sidebar-box h3 {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 9px;
            color: var(--dept-title);
            font-size: 19px;
            font-weight: 800;
            margin-bottom: 18px;
        }


            .department-page .sidebar-box h3 i {
                color: var(--dept-blue);
            }


    /* =========================================================
   14. MANAGER
   ========================================================= */

    .department-page .manager-section {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--dept-border-light);
    }


    .department-page .manager-photo {
        width: 78px;
        height: 78px;
        border-radius: 50%;
        object-fit: cover;
        border: 4px solid var(--dept-blue);
        box-shadow: var(--dept-shadow-sm);
    }


    .department-page .manager-section h4 {
        color: var(--dept-title);
        font-size: 17px;
        margin-bottom: 5px;
    }


    .department-page .manager-section span {
        color: var(--dept-text-light);
        font-size: 13px;
    }


    /* =========================================================
   15. CONTACT
   ========================================================= */

    .department-page .contact-section {
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--dept-border-light);
    }


        .department-page .contact-section h5 {
            color: var(--dept-title);
            font-size: 17px;
            font-weight: 800;
            margin-bottom: 14px;
        }


        .department-page .contact-section p {
            color: var(--dept-text-light);
            font-size: 13px;
            margin-bottom: 9px;
            line-height: 1.8;
        }


    /* =========================================================
   17. CALENDAR
   ========================================================= */

    .department-page .calendar-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }


    .department-page .calendar-event {
        display: flex;
        align-items: center;
        gap: 13px;
        padding: 11px;
        background: #f8fafc;
        border: 1px solid var(--dept-border-light);
        border-radius: 13px;
        transition: var(--dept-transition);
    }


        .department-page .calendar-event:hover {
            background: var(--dept-blue-light);
            transform: translateX(-4px);
        }


    .department-page .event-date {
        width: 58px;
        min-width: 58px;
        height: 58px;
        border-radius: 13px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-weight: 800;
    }


        .department-page .event-date span {
            font-size: 20px;
            line-height: 1;
        }


        .department-page .event-date small {
            font-size: 11px;
        }


    .department-page .blue {
        background: var(--dept-blue);
    }


    .department-page .green {
        background: var(--dept-success);
    }


    .department-page .yellow {
        background: var(--dept-accent);
        color: #17233e;
    }


    .department-page .red {
        background: var(--dept-danger);
    }


    .department-page .event-info {
        min-width: 0;
        flex: 1;
    }


        .department-page .event-info h5 {
            color: var(--dept-title);
            font-size: 14px;
            margin-bottom: 4px;
        }


        .department-page .event-info span {
            color: var(--dept-text-light);
            font-size: 12px;
            line-height: 1.7;
        }


    /* =========================================================
   18. ADVANTAGES
   ========================================================= */

    .department-page .advantage-item {
        display: flex;
        align-items: center;
        gap: 11px;
        padding: 12px 8px;
        border-bottom: 1px solid var(--dept-border-light);
        transition: var(--dept-transition);
    }


        .department-page .advantage-item:last-child {
            border-bottom: none;
        }


        .department-page .advantage-item:hover {
            transform: translateX(-4px);
        }


        .department-page .advantage-item i {
            width: 25px;
            color: var(--dept-blue);
            text-align: center;
            font-size: 17px;
        }


        .department-page .advantage-item span {
            color: var(--dept-text);
            font-size: 13px;
        }


    /* =========================================================
   19. MAIN CONTENT
   ========================================================= */

    .department-page .main-content {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 28px;
    }


    /* =========================================================
   20. MAIN PANEL
   ========================================================= */

    .department-page .main-panel {
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: var(--dept-radius-lg);
        padding: 30px;
        box-shadow: var(--dept-shadow-sm);
    }


    .department-page .secondary-panel {
        overflow: visible;
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: var(--dept-radius-lg);
        padding: 30px;
        box-shadow: var(--dept-shadow-sm);
    }


    /* =========================================================
   21. SECTION
   ========================================================= */

    .department-page .department-section {
        margin-bottom: 42px;
    }


        .department-page .department-section:last-child {
            margin-bottom: 0;
        }


        .department-page .department-section h2 {
            position: relative;
            color: var(--dept-title);
            text-align: center;
            font-size: 29px;
            font-weight: 800;
            margin-bottom: 30px;
            padding-bottom: 15px;
        }


            .department-page .department-section h2::after {
                content: "";
                position: absolute;
                bottom: 0;
                right: 50%;
                transform: translateX(50%);
                width: 55px;
                height: 4px;
                border-radius: 10px;
                background: var(--dept-accent);
            }


    /* =========================================================
   22. COURSES GRID
   ========================================================= */

    .department-page .courses-grid {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(260px,1fr) );
        gap: 20px;
    }


    /* =========================================================
   23. COURSE CARD
   ========================================================= */

    .department-page .course-card {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 18px;
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: 20px;
        text-align: center;
        box-shadow: var(--dept-shadow-sm);
        transition: var(--dept-transition);
    }


        .department-page .course-card:hover {
            transform: translateY(-7px);
            box-shadow: var(--dept-shadow-md);
            border-color: #cbdff5;
        }


        .department-page .course-card img {
            width: 100%;
            height: 165px;
            object-fit: cover;
            border-radius: 14px;
            margin-bottom: 18px;
        }


        .department-page .course-card h3 {
            color: var(--dept-title);
            font-size: 18px;
            font-weight: 800;
            margin-bottom: 10px;
        }


        .department-page .course-card p {
            color: var(--dept-text-light);
            font-size: 13px;
            line-height: 1.9;
            min-height: 68px;
        }


    /* =========================================================
   24. COURSE META
   ========================================================= */

    .department-page .course-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin: 16px 0;
    }


        .department-page .course-meta .badge {
            background: var(--dept-blue-light);
            color: var(--dept-blue);
            margin: 0;
        }


    .department-page .duration {
        color: var(--dept-text-light);
        font-size: 12px;
    }


    /* =========================================================
   25. COURSE FOOTER
   ========================================================= */

    .department-page .course-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid var(--dept-border-light);
    }


        .department-page .course-footer .price {
            color: var(--dept-primary);
            font-size: 15px;
            font-weight: 800;
        }


        .department-page .course-footer a {
            padding: 8px 14px;
            border-radius: 9px;
            background: var(--dept-primary);
            color: #fff;
            font-size: 12px;
            font-weight: 700;
            transition: var(--dept-transition);
        }


            .department-page .course-footer a:hover {
                background: var(--dept-blue);
                transform: translateY(-2px);
                color: #fff;
            }


    /* =========================================================
   26. TEACHERS GRID
   ========================================================= */

    .department-page .teachers-grid {
        display: grid;
        grid-template-columns: repeat( auto-fit, minmax(240px,1fr) );
        gap: 20px;
    }


    /* =========================================================
   27. TEACHER CARD
   ========================================================= */

    .department-page .teacher-card {
        width: 100%;
        max-width: none;
        margin: 0;
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: 20px;
        text-align: center;
        box-shadow: var(--dept-shadow-sm);
        transition: var(--dept-transition);
    }


        .department-page .teacher-card:hover {
            transform: translateY(-7px);
            box-shadow: var(--dept-shadow-md);
        }


        .department-page .teacher-card img {
            width: 100%;
            height: 250px;
            object-fit: cover;
        }


        .department-page .teacher-card h3 {
            color: var(--dept-title);
            font-size: 19px;
            margin: 17px 0 7px;
            font-weight: 800;
        }


    .department-page .teacher-specialty {
        display: inline-block;
        color: var(--dept-blue);
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 12px;
    }


    .department-page .teacher-bio {
        color: var(--dept-text-light);
        line-height: 1.9;
        font-size: 13px;
        padding: 0 18px;
        min-height: 75px;
    }


    .department-page .teacher-contact {
        margin: 18px;
        padding-top: 14px;
        border-top: 1px solid var(--dept-border-light);
        display: flex;
        flex-direction: column;
        gap: 7px;
        color: var(--dept-text-light);
        font-size: 12px;
    }


    /* =========================================================
   28. DASHBOARD
   ========================================================= */

    .department-page .department-dashboard {
        width: 100%;
    }


        .department-page .department-dashboard .news-card {
            background: #fff;
            border: 1px solid var(--dept-border);
            border-radius: 16px;
            overflow: hidden;
        }


            .department-page .department-dashboard .news-card img {
                width: 100%;
                height: 210px;
                object-fit: cover;
                display: block;
            }


    /* =========================================================
   29. STATISTICS
   ========================================================= */

    .department-page .department-stats {
        display: grid;
        grid-template-columns: repeat( 4, 1fr );
        gap: 18px;
        margin: 35px 0;
    }


    .department-page .stat-box {
        position: relative;
        padding: 25px 15px;
        text-align: center;
        background: #fff;
        border: 1px solid var(--dept-border);
        border-radius: 20px;
        box-shadow: var(--dept-shadow-sm);
        transition: var(--dept-transition);
    }


        .department-page .stat-box:hover {
            transform: translateY(-5px);
            box-shadow: var(--dept-shadow-md);
        }


        .department-page .stat-box h3 {
            color: var(--dept-primary);
            font-size: 32px;
            font-weight: 900;
            margin-bottom: 7px;
        }


        .department-page .stat-box span {
            color: var(--dept-text-light);
            font-size: 13px;
        }


    /* =========================================================
   30. REGISTER
   ========================================================= */

    .department-page .register-banner {
        position: relative;
        overflow: hidden;
        padding: 45px;
        text-align: center;
        border-radius: var(--dept-radius-lg);
        background: linear-gradient( 135deg, #082b63, #14549a );
        box-shadow: var(--dept-shadow-lg);
    }


        .department-page .register-banner::before {
            content: "";
            position: absolute;
            width: 300px;
            height: 300px;
            top: -180px;
            left: -100px;
            border-radius: 50%;
            background: rgba(255,255,255,.08);
        }


        .department-page .register-banner h2 {
            position: relative;
            color: #fff;
            font-size: 30px;
            margin-bottom: 13px;
        }


        .department-page .register-banner p {
            position: relative;
            color: #dbeafe;
            font-size: 15px;
            line-height: 2;
            margin-bottom: 24px;
        }


        .department-page .register-banner .btn-primary {
            position: relative;
        }


    /* =========================================================
   SIDEBAR NOTICES - FINAL
   هماهنگ با تم روشن صفحه دپارتمان
========================================================= */


    /* =========================================================
   1. اطلاعیه‌های بالای Sidebar
========================================================= */

    .department-page .sidebar .notice-box {
        width: 100%;
        margin-top: 22px;
        padding: 18px;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 18px;
        box-shadow: 0 7px 20px rgba(7, 26, 82, .06);
        box-sizing: border-box;
    }


        .department-page .sidebar .notice-box > h3 {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 9px;
            margin: 0 0 15px;
            color: #071a52;
            font-size: 17px;
            font-weight: 800;
            text-align: right;
        }


            .department-page .sidebar .notice-box > h3 i {
                color: #f0b400;
                font-size: 17px;
            }


    /* لیست */

    .department-page .sidebar .notice-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 9px;
    }


    /* هر اطلاعیه */

    .department-page .sidebar .notice-item {
        position: relative;
        width: 100%;
        padding: 11px 13px 11px 10px;
        box-sizing: border-box;
        background: #ffffff;
        color: #344563;
        border: 1px solid #e6ebf2;
        border-right: 3px solid #1343a5;
        border-radius: 11px;
        font-size: 12px;
        line-height: 1.9;
        transition: .25s ease;
    }


        .department-page .sidebar .notice-item:hover {
            background: #f2f6fd;
            border-right-color: #ffc400;
            transform: translateX(-2px);
        }


        /* Badge */

        .department-page .sidebar .notice-item .badge {
            display: inline-flex;
            align-items: center;
            margin-left: 6px;
            padding: 3px 8px;
            border-radius: 15px;
            background: #ffc400;
            color: #071a52;
            font-size: 10px;
            font-weight: 800;
        }


    /* =========================================================
   2. نوار متحرک اطلاعیه
========================================================= */

    .department-page .sidebar .notice-ticker {
        width: 100%;
        margin-top: 12px;
        padding: 8px 10px;
        overflow: hidden;
        white-space: nowrap;
        box-sizing: border-box;
        border-radius: 10px;
        background: linear-gradient( 90deg, #071a52, #0b2f77 );
    }


        .department-page .sidebar .notice-ticker span {
            display: inline-block;
            color: #ffffff;
            font-size: 11px;
            font-weight: 600;
            animation: departmentTicker 22s linear infinite;
        }


    /* =========================================================
   3. بخش اطلاعیه‌های دپارتمان
========================================================= */

    .department-page .sidebar .department-page-notices {
        width: 100%;
        /* خنثی کردن my-5 بوت‌استرپ */
        margin: 26px 0 0 !important;
        padding: 0;
        box-sizing: border-box;
        direction: rtl;
    }


        /* Header */

        .department-page .sidebar .department-page-notices
        .d-flex.justify-content-between {
            position: relative;
            display: block !important;
            margin-bottom: 14px !important;
            padding: 0 0 12px;
            border-bottom: 1px solid #e6ebf2;
        }


            /* خط طلایی */

            .department-page .sidebar .department-page-notices
            .d-flex.justify-content-between::after {
                content: "";
                position: absolute;
                right: 0;
                bottom: -1px;
                width: 55px;
                height: 3px;
                border-radius: 10px;
                background: #ffc400;
            }


        /* عنوان */

        .department-page .sidebar .department-page-notices h3 {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 8px;
            margin: 0 0 4px !important;
            color: #071a52;
            font-size: 18px;
            font-weight: 800;
            line-height: 1.6;
            text-align: right;
        }


            .department-page .sidebar .department-page-notices h3 i {
                color: #1343a5 !important;
                font-size: 16px;
            }


        /* زیر عنوان */

        .department-page .sidebar .department-page-notices
        .text-muted.small {
            color: #8996ad !important;
            font-size: 11px !important;
            line-height: 1.7;
        }


        /* =========================================================
   4. لیست PageNotices
========================================================= */

        .department-page .sidebar .department-page-notices .row {
            margin: 0 !important;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }


        .department-page .sidebar .department-page-notices .col-12 {
            padding: 0 !important;
        }


        /* =========================================================
   5. کارت اطلاعیه
========================================================= */

        .department-page .sidebar .department-page-notices .notice-card {
            position: relative;
            width: 100%;
            margin: 0 !important;
            overflow: hidden;
            background: #ffffff !important;
            border: 1px solid #e2e8f0 !important;
            border-right: 4px solid #1343a5 !important;
            border-radius: 14px !important;
            box-shadow: 0 6px 18px rgba(7,26,82,.06) !important;
            transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
        }


            .department-page .sidebar .department-page-notices
            .notice-card:hover {
                transform: translateY(-2px);
                border-right-color: #ffc400 !important;
                box-shadow: 0 10px 25px rgba(7,26,82,.10) !important;
            }


            /* =========================================================
   6. داخل کارت
========================================================= */

            .department-page .sidebar .department-page-notices
            .notice-card .card-body {
                padding: 14px !important;
                color: #344563;
            }


            /*
   این d-flex مربوط به عنوان + Badge است
   در Sidebar فضای افقی زیادی نداریم،
   بنابراین اجازه می‌دهیم مرتب‌تر بچیند.
*/

            .department-page .sidebar .department-page-notices
            .notice-card .d-flex {
                gap: 8px !important;
                align-items: flex-start !important;
            }


        /* =========================================================
   7. عنوان اطلاعیه
========================================================= */

        .department-page .sidebar .department-page-notices
        .notice-title {
            margin: 0 0 7px !important;
            color: #071a52;
            font-size: 13px !important;
            font-weight: 800;
            line-height: 1.9;
            text-align: right;
            overflow-wrap: anywhere;
        }


        /* =========================================================
   8. توضیحات
========================================================= */

        .department-page .sidebar .department-page-notices
        .notice-description {
            margin: 0 !important;
            color: #66738b;
            font-size: 11.5px;
            line-height: 1.9;
            text-align: right;
            white-space: normal;
            overflow-wrap: anywhere;
            word-break: normal;
            /*
       بیشتر از سه خط نشود
    */

            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 3;
            overflow: hidden;
        }


        /* =========================================================
   9. Badge
========================================================= */

        .department-page .sidebar .department-page-notices
        .notice-badge {
            flex-shrink: 0;
            margin: 0 !important;
            padding: 4px 7px !important;
            border-radius: 10px;
            font-size: 9px !important;
            white-space: nowrap;
        }


        /* =========================================================
   10. تاریخ
========================================================= */

        .department-page .sidebar .department-page-notices
        .notice-date {
            margin-top: 10px !important;
            padding-top: 8px;
            border-top: 1px solid #edf1f6;
            color: #92a0b5;
            font-size: 10px;
            text-align: left;
            direction: ltr;
        }


        /* =========================================================
   11. اگر اطلاعیه زیاد شد
========================================================= */

        .department-page .sidebar .department-page-notices .row {
            max-height: 430px;
            overflow-y: auto;
            overflow-x: hidden;
            padding-left: 4px !important;
            scrollbar-width: thin;
            scrollbar-color: #b5c2d6 transparent;
        }


            /* Chrome / Edge */

            .department-page .sidebar .department-page-notices
            .row::-webkit-scrollbar {
                width: 5px;
            }


            .department-page .sidebar .department-page-notices
            .row::-webkit-scrollbar-track {
                background: transparent;
            }


            .department-page .sidebar .department-page-notices
            .row::-webkit-scrollbar-thumb {
                background: #b5c2d6;
                border-radius: 10px;
            }


        /* =========================================================
   12. فاصله با قسمت مدیر
========================================================= */

        .department-page .sidebar .department-page-notices + .calendar-sidebar,
        .department-page .sidebar .department-page-notices ~ .manager-section {
            margin-top: 24px;
        }


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


    /* =========================================================
   DEPARTMENT DASHBOARD TABS
   Isolated from all other pages
   ========================================================= */

    .department-page .department-dashboard .department-tab-pane {
        display: none;
    }

        .department-page .department-dashboard .department-tab-pane.active {
            display: block;
            width: 100%;
            animation: departmentDashboardFade .45s ease;
        }

@keyframes departmentDashboardFade {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* =========================================================
   FINAL SIDEBAR NOTICE FIX
   فقط مخصوص اطلاعیه‌های Sidebar دپارتمان
========================================================= */

.department-page .sidebar .notice-box {
    width: 100%;
    box-sizing: border-box;
}

    .department-page .sidebar .notice-box .notice-list {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* کارت اطلاعیه */
    .department-page .sidebar .notice-box .notice-item {
        position: relative;
        width: 100%;
        box-sizing: border-box;
        padding: 16px 18px;
        background: rgba(255,255,255,.055);
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 14px;
        color: #263d66;
        font-size: 14px;
        line-height: 1.9;
        transition: all .25s ease;
    }

/* عنوان اطلاعیه‌های بخش PageNotices */
.department-page .sidebar .department-page-notices .notice-card {
    width: 100%;
    box-sizing: border-box;
    background: #ffffff !important;
    border: 1px solid #e3e8f0 !important;
    border-radius: 16px !important;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15,35,75,.08) !important;
}

    /* بدنه کارت */
    .department-page .sidebar .department-page-notices .notice-card .card-body {
        background: #ffffff !important;
        padding: 18px !important;
    }

    /* عنوان اطلاعیه */
    .department-page .sidebar .department-page-notices .notice-card .notice-title {
        display: block;
        margin: 0 0 10px !important;
        padding: 0 !important;
        background: transparent !important;
        color: #0b2f77 !important;
        font-size: 16px !important;
        font-weight: 800 !important;
        line-height: 1.8 !important;
        border: none !important;
        box-shadow: none !important;
    }

    /* توضیحات */
    .department-page .sidebar .department-page-notices
    .notice-card .notice-description {
        margin: 0 !important;
        color: #64748b !important;
        background: transparent !important;
        font-size: 13px !important;
        line-height: 1.9 !important;
    }

    /* تاریخ */
    .department-page .sidebar .department-page-notices
    .notice-card .notice-date {
        padding-top: 10px;
        border-top: 1px solid #edf0f5;
        color: #8a98ad !important;
        font-size: 11px !important;
    }

    /* Badge */
    .department-page .sidebar .department-page-notices
    .notice-card .notice-badge {
        flex-shrink: 0;
        font-size: 11px;
        padding: 5px 9px;
        border-radius: 8px;
    }

    /* Hover */
    .department-page .sidebar .department-page-notices
    .notice-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 28px rgba(15,35,75,.12) !important;
    }


/* =========================================================
   SIDEBAR NOTICE TITLE
   جلوگیری از تداخل با h3 های عمومی
========================================================= */

.department-page .sidebar .notice-box > h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px !important;
    padding: 0 !important;
    background: transparent !important;
    color: #0b2f77 !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    border: none !important;
}


/* =========================================================
   جلوگیری از اعمال رنگ/پس زمینه روی تمام h3 های Sidebar
========================================================= */

.department-page .sidebar .department-page-notices h3,
.department-page .sidebar .department-page-notices h4,
.department-page .sidebar .department-page-notices h5,
.department-page .sidebar .department-page-notices p {
    background: transparent;
}


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

@media (max-width: 768px) {

    .department-page .sidebar .department-page-notices
    .notice-card .card-body {
        padding: 15px !important;
    }

    .department-page .sidebar .department-page-notices
    .notice-card .notice-title {
        font-size: 15px !important;
    }
}
/* =========================================================
   DEPARTMENT PAGE - FINAL RESPONSIVE SYSTEM
   Desktop / Laptop / Tablet / Mobile
   ========================================================= */


/* =========================================================
   LARGE LAPTOP / SMALL DESKTOP
   1200px and below
   ========================================================= */

@media (max-width: 1200px) {

    .department-page {
        max-width: 100%;
        padding-left: 22px;
        padding-right: 22px;
    }

        /* Hero */

        .department-page .hero-content {
            padding: 50px;
            gap: 35px;
        }

        .department-page .hero-text {
            max-width: 600px;
        }

            .department-page .hero-text h1 {
                font-size: 42px;
            }

        .department-page .hero-subtitle {
            font-size: 20px;
        }

        .department-page .hero-image img {
            max-width: 420px;
            max-height: 290px;
        }


        /* Main layout */

        .department-page .department-layout {
            grid-template-columns: 300px minmax(0, 1fr);
            gap: 22px;
        }


        /* Panels */

        .department-page .main-panel,
        .department-page .secondary-panel {
            padding: 25px;
        }


        /* Courses */

        .department-page .courses-grid {
            grid-template-columns: repeat( auto-fit, minmax(230px, 1fr) );
            gap: 18px;
        }


        /* Teachers */

        .department-page .teachers-grid {
            grid-template-columns: repeat( auto-fit, minmax(220px, 1fr) );
            gap: 18px;
        }


        .department-page .teacher-card img {
            height: 230px;
        }


        /* Statistics */

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


/* =========================================================
   TABLET LANDSCAPE
   1024px and below
   ========================================================= */

@media (max-width: 1024px) {

    .department-page {
        padding-top: 25px;
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 60px;
    }


        /* Hero */

        .department-page .department-hero {
            min-height: auto;
        }

        .department-page .hero-content {
            padding: 42px 35px;
            gap: 30px;
        }

        .department-page .hero-text h1 {
            font-size: 38px;
        }

        .department-page .hero-subtitle {
            font-size: 19px;
        }

        .department-page .hero-text p {
            font-size: 15px;
        }

        .department-page .hero-image img {
            max-width: 360px;
            max-height: 260px;
        }


        /* Layout */

        .department-page .department-layout {
            grid-template-columns: 280px minmax(0, 1fr);
            gap: 20px;
        }


        /* Main panels */

        .department-page .main-panel,
        .department-page .secondary-panel {
            padding: 22px;
        }


        /* Section titles */

        .department-page .department-section h2 {
            font-size: 26px;
        }


        /* Course */

        .department-page .course-card {
            padding: 15px;
        }

            .department-page .course-card img {
                height: 150px;
            }


        /* Teacher */

        .department-page .teacher-card img {
            height: 215px;
        }
}


/* =========================================================
   TABLET PORTRAIT
   900px and below
   ========================================================= */

@media (max-width: 900px) {

    .department-page {
        padding-left: 16px;
        padding-right: 16px;
    }


        /* =====================================================
       HERO
       ===================================================== */

        .department-page .department-hero {
            min-height: auto;
        }

        .department-page .hero-content {
            flex-direction: column;
            justify-content: center;
            text-align: center;
            padding: 45px 30px;
            gap: 30px;
        }

        .department-page .hero-text {
            width: 100%;
            max-width: 720px;
        }

        .department-page .hero-badge {
            margin-bottom: 16px;
        }

        .department-page .hero-text h1 {
            font-size: 36px;
        }

        .department-page .hero-subtitle {
            font-size: 19px;
        }

        .department-page .hero-text p {
            margin-left: auto;
            margin-right: auto;
            font-size: 15px;
        }


        .department-page .hero-image {
            width: 100%;
        }

            .department-page .hero-image img {
                width: 100%;
                max-width: 420px;
                max-height: 250px;
            }


        /* Buttons */

        .department-page .hero-buttons {
            justify-content: center;
        }


        /* =====================================================
       MAIN LAYOUT
       Sidebar moves below main content
       ===================================================== */

        .department-page .department-layout {
            grid-template-columns: 1fr;
            gap: 25px;
        }


        .department-page .main-content {
            width: 100%;
            min-width: 0;
            order: 1;
        }

        .department-page .sidebar {
            width: 100%;
            order: 2;
        }


        /* =====================================================
       SIDEBAR
       ===================================================== */

        .department-page .sidebar {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 18px;
            align-items: start;
        }

            .department-page .sidebar > * {
                min-width: 0;
            }


        /* =====================================================
       COURSES
       ===================================================== */

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


        /* =====================================================
       TEACHERS
       ===================================================== */

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


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

        .department-page .department-stats {
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 15px;
        }


        /* =====================================================
       PANELS
       ===================================================== */

        .department-page .main-panel,
        .department-page .secondary-panel {
            width: 100%;
            padding: 22px;
        }
}


/* =========================================================
   MOBILE LARGE
   768px and below
   ========================================================= */

@media (max-width: 768px) {

    .department-page {
        padding: 18px 12px 45px;
    }


        /* =====================================================
       HERO
       ===================================================== */

        .department-page .department-hero {
            border-radius: 22px;
        }

        .department-page .hero-content {
            padding: 35px 20px;
            gap: 22px;
        }

        .department-page .hero-badge {
            font-size: 12px;
            padding: 7px 14px;
        }

        .department-page .hero-text h1 {
            font-size: 30px;
            line-height: 1.45;
            margin-bottom: 12px;
        }

        .department-page .hero-subtitle {
            font-size: 17px;
            line-height: 1.8;
        }

        .department-page .hero-text p {
            font-size: 13px;
            line-height: 2;
        }


        /* Hero image */

        .department-page .hero-image img {
            max-width: 330px;
            max-height: 210px;
        }


        /* Hero buttons */

        .department-page .hero-buttons {
            width: 100%;
            flex-direction: column;
            align-items: stretch;
        }

            .department-page .hero-buttons a {
                width: 100%;
                justify-content: center;
            }


        /* =====================================================
       SIDEBAR
       One column
       ===================================================== */

        .department-page .sidebar {
            grid-template-columns: 1fr;
            gap: 16px;
        }


        /* =====================================================
       PANELS
       ===================================================== */

        .department-page .main-panel,
        .department-page .secondary-panel {
            padding: 18px;
            border-radius: 20px;
        }


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

        .department-page .department-section {
            margin-bottom: 32px;
        }

            .department-page .department-section h2 {
                font-size: 23px;
                margin-bottom: 22px;
                padding-bottom: 12px;
            }


        /* =====================================================
       COURSES
       ===================================================== */

        .department-page .courses-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .department-page .course-card {
            padding: 14px;
            border-radius: 16px;
        }

            .department-page .course-card img {
                height: 190px;
                border-radius: 12px;
            }

            .department-page .course-card h3 {
                font-size: 17px;
            }

            .department-page .course-card p {
                font-size: 12px;
                min-height: auto;
            }


        /* =====================================================
       TEACHERS
       ===================================================== */

        .department-page .teachers-grid {
            grid-template-columns: 1fr;
            gap: 15px;
        }

        .department-page .teacher-card {
            border-radius: 16px;
        }

            .department-page .teacher-card img {
                height: 260px;
            }


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

        .department-page .department-stats {
            grid-template-columns: 1fr;
            gap: 12px;
            margin: 25px 0;
        }

        .department-page .stat-box {
            padding: 20px 15px;
        }

            .department-page .stat-box h3 {
                font-size: 28px;
            }


        /* =====================================================
       REGISTER
       ===================================================== */

        .department-page .register-banner {
            padding: 30px 20px;
            border-radius: 20px;
        }

            .department-page .register-banner h2 {
                font-size: 24px;
                line-height: 1.6;
            }

            .department-page .register-banner p {
                font-size: 13px;
            }


        /* =====================================================
       PAGE NOTICES
       ===================================================== */

        .department-page .sidebar .department-page-notices .row {
            max-height: none;
            overflow: visible;
            padding-left: 0 !important;
        }

        .department-page .sidebar .department-page-notices .notice-card {
            border-radius: 14px !important;
        }

            .department-page .sidebar .department-page-notices
            .notice-card .card-body {
                padding: 15px !important;
            }

            .department-page .sidebar .department-page-notices
            .notice-card .notice-title {
                font-size: 15px !important;
            }

            .department-page .sidebar .department-page-notices
            .notice-card .notice-description {
                font-size: 12px !important;
            }
}


/* =========================================================
   MOBILE SMALL
   576px and below
   ========================================================= */

@media (max-width: 576px) {

    .department-page {
        padding: 12px 9px 35px;
    }


        /* Hero */

        .department-page .department-hero {
            border-radius: 18px;
        }

        .department-page .hero-content {
            padding: 30px 16px;
        }

        .department-page .hero-text h1 {
            font-size: 26px;
        }

        .department-page .hero-subtitle {
            font-size: 16px;
        }

        .department-page .hero-text p {
            font-size: 12px;
            line-height: 2.1;
        }

        .department-page .hero-image img {
            max-width: 280px;
            max-height: 180px;
        }


        /* Badge */

        .department-page .hero-badge {
            font-size: 11px;
            padding: 6px 12px;
        }


        /* Panels */

        .department-page .main-panel,
        .department-page .secondary-panel {
            padding: 15px;
            border-radius: 17px;
        }


        /* Section */

        .department-page .department-section h2 {
            font-size: 21px;
        }


        /* Course image */

        .department-page .course-card img {
            height: 175px;
        }


        /* Teacher image */

        .department-page .teacher-card img {
            height: 230px;
        }


        /* Sidebar */

        .department-page .sidebar .sidebar-box,
        .department-page .sidebar .notice-box {
            padding: 16px;
            border-radius: 16px;
        }


            /* Notice title */

            .department-page .sidebar .notice-box > h3 {
                font-size: 18px !important;
            }


        /* Notice card */

        .department-page .sidebar .department-page-notices
        .notice-card .card-body {
            padding: 14px !important;
        }

        .department-page .sidebar .department-page-notices
        .notice-card .notice-title {
            font-size: 14px !important;
        }

        .department-page .sidebar .department-page-notices
        .notice-card .notice-description {
            font-size: 11.5px !important;
        }


        /* Calendar */

        .department-page .event-date {
            width: 52px;
            min-width: 52px;
            height: 52px;
        }

            .department-page .event-date span {
                font-size: 18px;
            }

        .department-page .event-info h5 {
            font-size: 13px;
        }
}


/* =========================================================
   VERY SMALL MOBILE
   420px and below
   ========================================================= */

@media (max-width: 420px) {

    .department-page {
        padding-left: 7px;
        padding-right: 7px;
    }


        /* Hero */

        .department-page .hero-content {
            padding: 25px 13px;
        }

        .department-page .hero-text h1 {
            font-size: 23px;
        }

        .department-page .hero-subtitle {
            font-size: 14px;
        }

        .department-page .hero-text p {
            font-size: 11.5px;
        }


        .department-page .hero-image img {
            max-width: 240px;
            max-height: 160px;
        }


        /* Main panel */

        .department-page .main-panel,
        .department-page .secondary-panel {
            padding: 13px;
        }


        /* Section title */

        .department-page .department-section h2 {
            font-size: 19px;
        }


        /* Course */

        .department-page .course-card {
            padding: 12px;
        }

            .department-page .course-card img {
                height: 155px;
            }

            .department-page .course-card h3 {
                font-size: 16px;
            }


        /* Teacher */

        .department-page .teacher-card img {
            height: 210px;
        }


        /* Register */

        .department-page .register-banner {
            padding: 25px 15px;
        }

            .department-page .register-banner h2 {
                font-size: 21px;
            }


        /* Notice */

        .department-page .sidebar .notice-box > h3 {
            font-size: 17px !important;
        }

        .department-page .sidebar .department-page-notices
        .notice-card .notice-title {
            font-size: 13px !important;
        }
}
/* =========================================================
   FIX - LONG NOTICE TITLES
   جلوگیری از بیرون‌زدگی عنوان اطلاعیه
========================================================= */

.department-page .department-page-notices .notice-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden !important;
    box-sizing: border-box;
}

    .department-page .department-page-notices .notice-card .card-body {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        overflow: hidden;
    }

    .department-page .department-page-notices .notice-card
    .d-flex {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .department-page .department-page-notices .notice-card
    .flex-grow-1 {
        min-width: 0 !important;
        max-width: 100%;
    }

.department-page .department-page-notices .notice-title {
    width: 100%;
    max-width: 100%;
    margin: 0 0 10px;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
    line-height: 1.9;
}