   :root {
              --light-color: #f8f9fa;
             --dark-color: #212529;
            --border-color: #dee2e6;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }
        .staff-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 100%;
            box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
            position: relative;
            border: none;
        }

        .staff-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
        }

        .staff-img {
            position: relative;
            height: 220px;
            overflow: hidden;
        }

        .staff-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }

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

        .staff-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
        }

        .staff-info {
            padding: 25px 20px;
            position: relative;
        }

        .staff-name {
            color: var(--maincolor);
            font-weight: 700;
            font-size: 1.25rem;
            margin-bottom: 5px;
        }

        .staff-position {
            color: var(--maincolor);
            font-weight: 600;
            font-size: 0.95rem;
            margin-bottom: 15px;
            display: block;
        }

        .staff-details {
            color: #7f8c8d;
            font-size: 0.9rem;
            line-height: 1.6;
            border-top: 1px solid #f0f0f0;
            padding-top: 15px;
            margin-top: 15px;
        }

        .staff-contact {
            display: flex;
            justify-content: center;
            margin-top: 15px;
        }

        .contact-icon {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--light-color);
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 5px;
            color: var(--maincolor);
            transition: all 0.3s ease;
        }

        .contact-icon:hover {
            background: var(--maincolor);
            color: white;
            transform: translateY(-3px);
        }

        .academic-badge {
            position: absolute;
            top: 15px;
            right: 20px;
            background: var(--thirdcolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
            z-index: 99;
        }

        @media (max-width: 768px) {
            .academic-section {
                padding: 25px 15px;
            }

            .section-header h2 {
                font-size: 1.8rem;
            }

            .staff-card {
                margin-bottom: 30px;
            }
        }
/* =============مشاريع التخرج=================== */


        .section-header {
            /* text-align: center; */
            margin-bottom: 50px;
            position: relative;
        }
        .section-header p {
            color: #4a5568;
            font-size: 1.2rem;
            max-width: 800px;
            margin: 30px auto 0;
            line-height: 1.8;
        }

        .project-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 100%;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            border: none;
            margin-bottom: 25px;
        }

        .project-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .project-img {
            position: relative;
            height: 220px;
            overflow: hidden;
        }

        .project-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }

        .project-card:hover .project-img img {
            transform: scale(1.1);
        }

        .project-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 80px;
            background: linear-gradient(to top, rgba(26, 58, 95, 0.9), transparent);
            display: flex;
            align-items: flex-end;
            padding: 15px;
        }

        .project-title {
            color: white;
            font-weight: 700;
            font-size: 1.3rem;
            margin: 0;
            text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
        }

        .project-content {
            padding: 25px;
        }

        .project-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            border-bottom: 1px solid #e2e8f0;
            padding-bottom: 15px;
        }

        .project-students {
            color: var(--maincolor);
            font-weight: 600;
        }

        .project-year {
            background: var(--thirdcolor);
            color: white;
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
        }

        .project-description {
            color: #4a5568;
            font-size: 0.95rem;
            line-height: 1.8;
            margin-bottom: 25px;
            /* min-height: 120px; */
        }

        .project-supervisor {
            background: var(--light-color);
            padding: 12px 15px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            border-left: 4px solid var(--secondcolor);
        }

        .supervisor-icon {
            background: var(--secondcolor);
            color: white;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 10px;
            flex-shrink: 0;
        }

        .supervisor-info h5 {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0;
            color: var(--dark-color);
        }

        .supervisor-info p {
            font-size: 0.85rem;
            margin: 3px 0 0;
            color: #718096;
        }

        .project-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--thirdcolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
            z-index: 10;
        }

        .view-project {
            display: block;
            text-align: center;
            background: var(--maincolor);
            color: white;
            padding: 10px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            margin-top: 15px;
        }

        .view-project:hover {
            background: var(--secondcolor);
            color:white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(45, 125, 154, 0.4);
        }

        .view-all {
            text-align: center;
            margin-top: 40px;
        }

        .view-all-btn {
            display: inline-block;
            background: var(--maincolor);
            color: white;
            padding: 12px 35px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: 2px solid var(--maincolor);
        }

        .view-all-btn:hover {
            background: transparent;
            color: var(--maincolor);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(26, 58, 95, 0.2);
        }

        @media (max-width: 992px) {
            .projects-section {
                padding: 30px;
            }

            .section-header h2 {
                font-size: 1.9rem;
            }

            .project-card {
                margin-bottom: 30px;
            }
        }

        @media (max-width: 768px) {
            .projects-section {
                padding: 25px 15px;
                border-radius: 15px;
            }

            .section-header h2 {
                font-size: 1.7rem;
            }

            .section-header p {
                font-size: 1rem;
            }
        }
/* الكتب المكتبة الالكترونية */

        .book-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            height: 100%;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
            position: relative;
            margin-bottom: 25px;
            border: none;
            border-top: 4px solid var(--secondcolor);
        }

        .book-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
        }

        .book-cover {
            height: 300px;
            overflow: hidden;
            position: relative;
            background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .book-cover img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
            transition: all 0.5s ease;
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
            border-radius: 5px;
        }

        .book-card:hover .book-cover img {
            transform: scale(1.05);
        }

        .book-badge {
            position: absolute;
            top: 20px;
            left: 20px;
            background: var(--thirdcolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
            z-index: 10;
        }

        .book-info {
            padding: 25px;
        }

        .book-title {
            color: var(--maincolor);
            font-weight: 800;
            font-size: 1.4rem;
            margin-bottom: 10px;
            min-height: 70px;
        }

        .book-author {
            color: var(--maincolor);
            font-weight: 600;
            margin-bottom: 15px;
            display: block;
            font-size: 1.1rem;
        }

        .book-meta {
            display: flex;
            justify-content: space-between;
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }

        .book-year {
            color: #6c757d;
            font-weight: 600;
        }

        .book-pages {
            color: #6c757d;
            font-weight: 600;
        }

        .book-description {
            color: #495057;
            font-size: 1rem;
            line-height: 1.7;
            margin-bottom: 25px;
            /* min-height: 50px; */
            height: 65px;
        }

        .book-actions {
            display: flex;
            gap: 5px;
        }

        .view-book {
            flex: 1;
            text-align: center;
            background: var(--maincolor);
            color: white;
            padding: 10px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .view-book:hover {
            background: var(--secondcolor);
            color:white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(45, 125, 154, 0.4);
        }

        .download-book {
            flex: 1;
            text-align: center;
            background: var(--thirdcolor);
            color: white;
            padding: 10px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
        }

        .download-book:hover {
            /* background: #c9a227; */
            opacity: .9;
            transform: translateY(-3px);
            color:white;
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
        }

        .view-all-books {
            text-align: center;
            margin-top: 40px;
        }

        .view-all-btn {
            display: inline-block;
            background: var(--maincolor);
            color: white;
            padding: 14px 40px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 700;
            font-size: 1.1rem;
            transition: all 0.3s ease;
            border: 2px solid var(--maincolor);
        }

        .view-all-btn:hover {
            background: transparent;
            color: var(--maincolor);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(26, 58, 95, 0.2);
        }

        .book-category {
            display: flex;
            justify-content: center;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 30px;
        }

        .category-btn {
            background: white;
            border: 2px solid var(--maincolor);
            color: var(--maincolor);
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .category-btn:hover,
        .category-btn.active {
            background: var(--maincolor);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
        }

        @media (max-width: 992px) {
            .books-section {
                padding: 30px;
            }

            .section-header h2 {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .books-section {
                padding: 25px 15px;
            }

            .section-header h2 {
                font-size: 1.7rem;
            }

            .section-header p {
                font-size: 1rem;
            }

            .book-actions {
                flex-direction: column;
            }
        }
/* ===========end book============================== */
/* =============start majors التخصصات==================================== */
        .specialty-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            height: 100%;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            margin-bottom: 25px;
            position: relative;
        }

        .specialty-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .specialty-header {
            height: 250px;
            position: relative;
            padding: 20px;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
        }

        .specialty-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.3));
            z-index: 1;
        }

        .specialty-img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: all 0.5s ease;
        }

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

        /* .specialty-icon {
            font-size: 2.5rem;
            margin-bottom: 15px;
            color: var(--thirdcolor);
            position: relative;
            z-index: 2;
        } */

        .specialty-title {
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: white;
            position: relative;
            z-index: 2;
        }

        .specialty-description {
            opacity: 0.9;
            font-size: 1rem;
            /* min-height: 50px; */
            color: white;
            position: relative;
            z-index: 2;
        }

        .specialty-body {
            padding: 20px;
                height: 8rem;
    overflow: hidden;
        }

        .program-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            transition: all 0.3s ease;
        }

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

        .program-item:hover {
            background: #f8f9fa;
            transform: translateX(-5px);
        }

        .program-name {
            font-weight: 600;
            font-size: 1.1rem;
            color: var(--maincolor);
        }

        .program-duration {
            background: var(--light-color);
            color: var(--dark-color);
            padding: 3px 12px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
        }

        .btn-details {
            background: var(--maincolor);
            color: white;
            padding: 10px 20px;
            border-radius: 5px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            display: block;
            border: 2px solid var(--maincolor);
            font-size: 1rem;
        }

        .btn-details:hover {
            background: transparent;
            color: var(--maincolor);
            transform: translateY(-3px);
        }

        .specialty-footer {
            padding: 0 25px 25px;
            text-align: center;
        }

        .specialty-badge {
            position: absolute;
            top: 15px;
            left: 15px;
            background: var(--thirdcolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
            z-index: 3;
        }

        @media (max-width: 992px) {
            .academic-header {
                padding: 80px 0 40px;
            }

            .academic-title {
                font-size: 2.2rem;
            }

            .academic-subtitle {
                font-size: 1.1rem;
            }
        }

        @media (max-width: 768px) {
            .academic-title {
                font-size: 1.8rem;
            }
        }

        .department-filter {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 30px;
            justify-content: center;
        }

        .filter-btn {
            background: white;
            border: 2px solid var(--maincolor);
            color: var(--maincolor);
            padding: 8px 20px;
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
        }

        .filter-btn:hover,
        .filter-btn.active {
            background: var(--maincolor);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
        }

        .academic-footer {
            background: var(--dark-color);
            color: white;
            padding: 40px 0;
            margin-top: 50px;
            text-align: center;
        }
/* =================end major============================== */
/* ================start program========================== */


        .program-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            transition: all 0.3s ease;
            margin-bottom: 25px;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            border-left: 5px solid var(--thirdcolor);
        }

        .program-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .program-header {
            background: var(--maincolor);
            color: white;
            padding: 25px;
            position: relative;
        }

        .program-title {
            font-weight: 800;
            font-size: 1.5rem;
            margin-bottom: 10px;
        }

        .program-degree {
            opacity: 0.9;
            font-size: 1rem;
        }
        .program-body {
            padding: 25px;
        }

        .program-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid #eee;
        }

        .meta-item {
            display: flex;
            align-items: center;
        }

        .meta-icon {
            background: var(--light-color);
            color: var(--maincolor);
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-left: 15px;
            flex-shrink: 0;
            font-size: 1.2rem;
        }

        .meta-content h4 {
            font-size: 0.95rem;
            font-weight: 600;
            margin: 0;
            color: var(--dark-color);
        }

        .meta-content p {
            font-size: 1rem;
            margin: 5px 0 0;
            font-weight: 700;
            color: var(--maincolor);
        }

        .program-objectives {
            margin-bottom: 25px;
        }

        .program-objectives h4 {
            color: var(--maincolor);
            font-weight: 700;
            margin-bottom: 15px;
        }

        .program-objectives ul {
            padding-right: 20px;
        }

        .program-objectives li {
            margin-bottom: 10px;
            position: relative;
            padding-right: 15px;
        }

        .program-objectives li:before {
            content: "";
            position: absolute;
            right: 0;
            top: 8px;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: var(--secondcolor);
        }

        .program-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 15px;
        }
        .btn-details i {
            margin-left: 8px;
        }

        .program-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
        }

        .program-tag {
            background: var(--light-color);
            color: var(--maincolor);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            border: 1px solid #ddd;
        }

        .academic-footer {
            background: var(--dark-color);
            color: white;
            padding: 40px 0;
            margin-top: 50px;
            text-align: center;
        }



        @media (max-width: 768px) {


            .program-footer {
                flex-direction: column;
                align-items: flex-start;
            }
        }

        .program-stats {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
            background: var(--light-color);
            padding: 15px;
            border-radius: 10px;
        }

        .stat-item {
            display: flex;
            align-items: center;
        }

        .stat-value {
            font-size: 1.2rem;
            font-weight: 800;
            color: var(--maincolor);
            margin-left: 10px;
        }

        .stat-label {
            color: #6c757d;
            font-size: 0.9rem;
        }
/* ==============end program========================== */
/* ===========start stuyplan====================== */
.studyplan
{
    overflow-x: auto;
}
.studyplan table th{
    background-color: var(--maincolor);
    color:white;
}
.studyplan table th.bg-unit{
    background-color: var(--secondcolor);
    /* color:white; */
}
.border-top-3 {
    border-top: 3px solid #dee2e6 !important;
}

    .table-custom thead th {
        /* background-color: #2c3e50; */
        color: #fff;
        vertical-align: middle;
    }

    .level-header {
        background-color: #ecf0f1;
        border-top: 4px solid #34495e;
    }

    .semester-header {
        background-color: #f9f9f9;
        font-weight: 600;
        border-top: 2px solid #bdc3c7;
    }

    .semester-total {
        background-color: #f0f8ff;
        font-weight: bold;
    }

    .table-footer {
        background-color: #e8eaf6;
    }

    .bg-unit {
        background-color: #f1f1f1;
        font-weight: 500;
    }

    .badge-course-type {
        font-size: 0.85rem;
        background-color: #95a5a6;
    }

#planHeader {
    display: none;
}

@media print {
    #planHeader {
        display: block !important;
    }
}
/* ==============end studyplan=========================== */
/* محتوى الصفحات الرئيسية مش كله استخدمته */
        :root {
            --primary: #003366;
            --secondary: #8c1d40;
            --accent: #ffc72c;
            --light: #f8f9fa;
            --dark: #212529;
        }

        /* .hero-section {

            height: 60vh;
            position: relative;
            border-radius: 0 0 20px 20px;
            overflow: hidden;
            margin-bottom: .3rem;
        } */

        .hero-overlay {
            background: rgba(0, 102, 61, 0.55);
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            padding: 2rem;
        }

        .hero-content {
            max-width: 700px;
            color: white;
        }


        .card {
            border-radius: 12px;
            overflow: hidden;
            border: none;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            margin-bottom: 25px;
            /* height: 100%; */
        }

        .card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 25px rgba(0,0,0,0.15);
        }

        .card-img-top {
            height: 200px;
            object-fit: cover;
        }

        .sidebar-card {
            border-left: 4px solid var(--secondcolor);
        }

        .sidebar-card .card-header {
            background-color: white;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            font-weight: 700;
            color: var(--primary);
        }

        .sidebar-link {
            display: block;
            padding: 12px 20px;
            color: #555;
            text-decoration: none;
            border-bottom: 1px solid rgba(0,0,0,0.05);
            transition: all 0.3s;
        }

        .sidebar-link:hover {
            background-color: rgba(0, 51, 102, 0.05);
            color: var(--primary);
            padding-right: 25px;
        }

        .sidebar-link i {
            margin-left: 10px;
            color: var(--accent);
        }

        /* .gallery-item {
            border-radius: 10px;
            overflow: hidden;
            margin-bottom: 20px;
            height: 250px;
            position: relative;
        } */

        /* .gallery-item img {
            height: 100%;
            width: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        } */

        /* .gallery-item:hover img {
            transform: scale(1.05);
        } */

        .video-container {
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 25px rgba(0,0,0,0.15);
            background: #000;
        }


 .service-image {
            width: 100%;
            max-width: 450px;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 7px 20px rgba(0, 0, 0, 0.15);
            transition: transform 0.5s ease;
            margin-bottom: 25px;
            justify-self: center;

        }

        .service-image img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }

        .service-image:hover {
            transform: translateY(-10px);
        }

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

        @media (max-width: 767px) {


            .hero-section {
                height: 50vh;
            }
        }
/* نهاية محتوى الصفحات الرئيسية */
/* ========================= */
.breadcrumbs-modern {
    padding: 10px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    /* margin-bottom: 30px; */
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
    /* margin-top: 75px; */
}

.breadcrumbs-modern .breadcrumb-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.breadcrumbs-modern h2 {
    color: #2c3e50;
    font-weight: 700;
    margin: 0;
    font-size: 1.8rem;
    padding: 5px 0;
    position: relative;
    display: inline-block;
}

.breadcrumbs-modern h2:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--thirdcolor);
    border-radius: 3px;
}

.breadcrumbs-modern .breadcrumb-nav {
    display: flex;
    align-items: center;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.breadcrumbs-modern .breadcrumb-nav ol {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    align-items: center;
}

.breadcrumbs-modern .breadcrumb-nav li {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.breadcrumbs-modern .breadcrumb-nav li a {
    text-decoration: none;
    color: var(--fontcolor);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 5px;
}

.breadcrumbs-modern .breadcrumb-nav li a:hover {
    color: var(--maincolor);
    background: rgba(52, 219, 108, 0.1);
}

.breadcrumbs-modern .breadcrumb-nav li:not(:last-child):after {
    content: '\f105';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    margin: 0 10px;
    color: #adb5bd;
    font-size: 0.9rem;
}

.breadcrumbs-modern .breadcrumb-nav li:last-child {
    font-weight: 600;
    color: #2c3e50;
    padding: 5px 12px;
    background: rgba(44, 62, 80, 0.05);
    border-radius: 5px;
}

.breadcrumbs-modern .breadcrumb-nav li a i {
    margin-left: 8px;
    font-size: 0.9rem;
}
/* الكود الأساسي يبقى كما هو، التعديلات ضمن Media Query */
@media (max-width: 768px) {
    .breadcrumbs-modern .breadcrumb-container {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 10px; /* تقليل الحواف الجانبية */
    }

    .breadcrumbs-modern {
        padding: 15px 5px;
        margin-top: 30px;
        border-radius: 0; /* لتفادي الشكل الغريب في هواتف ذات عرض صغير */
    }

    .breadcrumbs-modern .breadcrumb-nav {
        margin-top: 10px;
        width: 100%;
        padding: 8px 10px; /* تقليل الحواف الداخلية */
        border-radius: 10px;
        overflow-x: auto; /* في حال كان العرض أكبر من الشاشة */
    }

    .breadcrumbs-modern .breadcrumb-nav ol {
        flex-wrap: nowrap; /* منع التفاف العناصر */
    }

    .breadcrumbs-modern .breadcrumb-nav li {
        font-size: 0.85rem;
    }

    .breadcrumbs-modern h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .breadcrumbs-modern h2:after {
        width: 35px;
        height: 2px;
    }
}
/* ========================== */
/* تفاصيل الخبر */
        .news-detail-wrapper {
            --border-color: #dee2e6;
            --shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
        }



        .news-detail-wrapper .header-section {
            background: linear-gradient(135deg, var(--maincolor), var(--secondcolor));
            color: white;
            padding: 100px 0 50px;
            position: relative;
            overflow: hidden;
        }

        .news-detail-wrapper .header-section::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,100" fill="rgba(255,255,255,0.05)"/></svg>');
            background-size: cover;
        }

        .news-detail-wrapper .section-title {
            position: relative;
            margin-bottom: 50px;
            text-align: center;
            border: 0;
        }

        .news-detail-wrapper .section-title h2 {
            font-weight: 700;
            color: var(--maincolor);
            position: relative;
            display: inline-block;
            padding-bottom: 15px;
            margin-bottom: 20px;
        }

        .news-detail-wrapper .section-title h2::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: var(--thirdcolor);
            border-radius: 2px;
        }



        /* Main Article Styling */
        .news-detail-wrapper .main-article {
            background: white;
            border-radius: 12px;
            box-shadow: var(--shadow);
            overflow: hidden;
            transition: var(--transition);
            margin-top: -80px;
            position: relative;
            z-index: 10;
        }

        .news-detail-wrapper .main-article:hover {
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            transform: translateY(-5px);
        }

        .news-detail-wrapper .main-article img {
            width: 100%;
            height: 450px;
            object-fit: cover;
            border-top-left-radius: 12px;
            border-top-right-radius: 12px;
            transition: var(--transition);
        }

        .news-detail-wrapper .main-article:hover img {
            transform: scale(1.02);
        }

        .news-detail-wrapper .article-content {
            padding: 30px;
        }

        .news-detail-wrapper .article-content h4 {
            font-weight: 700;
            color: var(--maincolor);
            margin-bottom: 20px;
            font-size: 1.8rem;
            position: relative;
            padding-bottom: 15px;
        }

        .news-detail-wrapper .article-content h4::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 60px;
            height: 3px;
            background: var(--thirdcolor);
        }

        .news-detail-wrapper .meta-top {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            padding: 15px 0;
            border-top: 1px dashed var(--border-color);
            border-bottom: 1px dashed var(--border-color);
            margin-bottom: 25px;
        }

        .news-detail-wrapper .meta-top ul {
            padding: 0;
            margin: 0;
            list-style: none;
            display: flex;
            gap: 20px;
        }

        .news-detail-wrapper .meta-top ul li {
            display: flex;
            align-items: center;
            gap: 8px;
            color: #6c757d;
            font-size: 0.95rem;
        }

        .news-detail-wrapper .meta-top ul li i {
            color: var(--secondcolor);
        }
/* مشاركة للتواصل الاجتماعي */
        .share-buttons {
            display: flex;
            gap: 10px;
        }

         .share-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f0f2f5;
            color: var(--secondcolor);
            transition: var(--transition);
        }

        .share-btn:hover {
            background: var(--secondcolor);
            color: white;
            transform: translateY(-3px);
        }

        .news-detail-wrapper .article-text {
            line-height: 1.9;
            font-size: 1.1rem;
            color: #444;
        }

        .news-detail-wrapper .article-text p {
            margin-bottom: 20px;
        }

        /* Recent News Section */
        .news-detail-wrapper .recent-news {
            padding: 80px 0 60px;
        }

        .news-detail-wrapper .news-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .news-detail-wrapper .news-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }

        .news-detail-wrapper .news-img {
            height: 220px;
            overflow: hidden;
        }

        .news-detail-wrapper .news-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .news-detail-wrapper .news-card:hover .news-img img {
            transform: scale(1.1);
        }

        .news-detail-wrapper .card-body {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .news-detail-wrapper .card-body h4 {
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--maincolor);
            transition: var(--transition);
            font-size: 1.2rem !important;
            line-height: 2rem;
        }


        .news-detail-wrapper .news-card:hover .card-body h4 {
            color: var(--thirdcolor);
        }

        .news-detail-wrapper .card-text {
            color: #666;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .news-detail-wrapper .read-more {
            color: var(--secondcolor);
            font-weight: 600;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }

        .news-detail-wrapper .read-more:hover {
            color: var(--thirdcolor);
            gap: 12px;
        }

        .news-detail-wrapper .read-more i {
            transition: var(--transition);
        }

        .news-detail-wrapper .read-more:hover i {
            transform: translateX(5px);
        }

        .news-detail-wrapper .news-date {
            display: inline-block;
            background: var(--maincolor);
            color: white;
            padding: 5px 15px;
            border-radius: 30px;
            font-size: 0.85rem;
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .news-detail-wrapper .main-article img {
                height: 350px;
            }
        }

        @media (max-width: 768px) {
            .news-detail-wrapper .main-article {
                margin-top: -40px;
            }

            .news-detail-wrapper .main-article img {
                height: 300px;
            }

            .news-detail-wrapper .meta-top {
                flex-direction: column;
                align-items: flex-start;
                gap: 15px;
            }

            .news-detail-wrapper .header-section {
                padding: 80px 0 30px;
            }
        }

/* نهاية تفاصيل الخبر */
/* تفاصيل المقاله */
       :root {



        }
        .article-detail-wrapper {
            padding: 60px 0;
        }

        /* Article Header */
        .article-header {
            position: relative;
            margin-bottom: 40px;
            overflow: hidden;
            border-radius: 12px;
            box-shadow: var(--shadow);
        }

        .article-header img {
            width: 100%;
            height: 500px;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .article-header:hover img {
            transform: scale(1.03);
        }

        .article-header-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            padding: 40px 30px 30px;
            color: white;
        }

        .article-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: white;
            line-height: 1.3;
        }

        .article-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.85);
        }

        .meta-item {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .meta-item i {
            color: var(--thirdcolor);
        }

        /* Article Content */
        .article-content {
            background: white;
            border-radius: 12px;
            padding: 40px;
            box-shadow: var(--shadow);
            margin-bottom: 40px;
        }

        .article-body {
            font-size: 1.1rem;
            line-height: 1.9;
            color: #444;
        }

        .article-body p {
            margin-bottom: 25px;
        }

        /* Sidebar */
        .sidebar {
            position: sticky;
            top: 30px;
        }

        .sidebar-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 25px;
            font-weight: 700;
            color: var(--maincolor);
            font-size: 1.5rem;
        }

        .sidebar-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 60px;
            height: 3px;
            background: var(--thirdcolor);
        }

        .recent-article {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
            padding-bottom: 20px;
            border-bottom: 1px solid var(--border-color);
            transition: var(--transition);
        }

        .recent-article:hover {
            transform: translateX(-5px);
        }

        .recent-article:last-child {
            margin-bottom: 0;
            padding-bottom: 0;
            border-bottom: none;
        }

        .recent-article img {
            width: 100px;
            height: 80px;
            object-fit: cover;
            border-radius: 8px;
            flex-shrink: 0;
        }

        .recent-content {
            flex-grow: 1;
        }

        .recent-title {
            font-size: 1.1rem;
            font-weight: 600;
            margin-bottom: 8px;
            color: var(--maincolor);
            transition: var(--transition);
        }

        .recent-article:hover .recent-title {
            color: var(--thirdcolor);
        }

        .recent-date {
            font-size: 0.9rem;
            color: #6c757d;
            display: flex;
            align-items: center;
            gap: 5px;
        }

        .article-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid var(--border-color);
        }

        .tag {
            background: #f0f4f8;
            color: var(--secondcolor);
            padding: 5px 15px;
            border-radius: 30px;
            font-size: 0.9rem;
            transition: var(--transition);
        }

        .tag:hover {
            background: var(--secondcolor);
            color: white;
        }

        /* Social Share */
        .social-share {
            display: flex;
            gap: 15px;
            margin-top: 30px;
            padding-top: 30px;
            border-top: 1px solid var(--border-color);
        }


        /* Responsive adjustments */
        @media (max-width: 992px) {
            .article-header img {
                height: 400px;
            }

            .article-title {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .article-header img {
                height: 350px;
            }

            .article-title {
                font-size: 1.8rem;
            }

            .article-content {
                padding: 30px 20px;
            }

            .recent-article {
                flex-direction: column;
            }

            .recent-article img {
                width: 100%;
                height: 180px;
            }
        }

        @media (max-width: 576px) {
            .article-header img {
                height: 300px;
            }

            .article-header-overlay {
                padding: 30px 20px 20px;
            }

            .article-title {
                font-size: 1.6rem;
            }

            .article-meta {
                flex-direction: column;
                gap: 10px;
            }
        }
/* نهاية تفاصيل المقاله */
/* صفحة كل المقالات */
        .articles-page-wrapper {
            padding: 0px 0 60px;
        }


        /* Article Cards */
        .article-card {
            background: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
            margin-bottom: 30px;
        }

        .article-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
        }

        .article-img {
            height: 250px;
            overflow: hidden;
        }

        .article-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .article-card:hover .article-img img {
            transform: scale(1.1);
        }

        .article-body {
            padding: 25px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .article-title {
            font-size: 1.4rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--maincolor);
            transition: var(--transition);
        }

        .article-card:hover .article-title {
            color: var(--thirdcolor);
        }

         .articles-page-wrapper .article-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-bottom: 15px;
            color: #6c757d;
            font-size: 0.9rem;
        }



        .article-excerpt {
            color: #555;
            margin-bottom: 20px;
            flex-grow: 1;
        }

        .articles-page-wrapper .read-more {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--secondcolor);
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            align-self: flex-start;
            padding: 8px 20px;
            /* border: 1px solid var(--border-color); */
            border-radius: 30px;
            justify-content: flex-end;
        }

         .articles-page-wrapper .read-more:hover {
            background: var(--secondcolor);
            color: white;
            border-color: var(--secondcolor);
            gap: 12px;
        }

         .articles-page-wrapper .read-more i {
            transition: var(--transition);
        }

         .articles-page-wrapper .read-more:hover i {
            transform: translateX(5px);
        }

        /* Sidebar */
        .sidebar {
            position: sticky;
            top: 30px;
        }

        .sidebar-title {
            position: relative;
            padding-bottom: 15px;
            margin-bottom: 25px;
            font-weight: 700;
            color: var(--maincolor);
            font-size: 1.5rem;
        }

        .sidebar-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 60px;
            height: 3px;
            background: var(--thirdcolor);
        }


        /* Pagination */
        .pagination-wrapper {
            margin-top: 40px;
            display: flex;
            justify-content: center;
        }

        .pagination .page-item .page-link {
            color: var(--maincolor);
            border: none;
            margin: 0 5px;
            border-radius: 50%;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: var(--transition);
        }

        .pagination .page-item.active .page-link {
            background: var(--maincolor);
            color: white;
        }

        .pagination .page-item:not(.active) .page-link:hover {
            background: #f0f4f8;
        }

        .pagination .page-item .page-link i {
            font-size: 0.8rem;
        }

        /* Search Box */
        .search-box {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        .search-form {
            position: relative;
        }

        .search-input {
            width: 100%;
            padding: 12px 20px;
            padding-right: 50px;
            border: 1px solid var(--border-color);
            border-radius: 30px;
            font-size: 1rem;
            transition: var(--transition);
        }

        .search-input:focus {
            border-color: var(--secondcolor);
            box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
            outline: none;
        }

        .search-btn {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--secondcolor);
            font-size: 1.2rem;
            cursor: pointer;
            transition: var(--transition);
        }

        .search-btn:hover {
            color: var(--thirdcolor);
        }

        /* Categories */
        .categories-box {
            background: white;
            border-radius: 12px;
            padding: 25px;
            box-shadow: var(--shadow);
            margin-bottom: 30px;
        }

        .categories-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .categories-list li {
            padding: 12px 0;
            border-bottom: 1px solid var(--border-color);
        }

        .categories-list li:last-child {
            border-bottom: none;
        }

        .categories-list a {
            display: flex;
            justify-content: space-between;
            text-decoration: none;
            color: var(--dark-color);
            transition: var(--transition);
        }

        .categories-list a:hover {
            color: var(--thirdcolor);
        }

        .categories-list a span {
            background: #f0f4f8;
            color: var(--secondcolor);
            padding: 2px 10px;
            border-radius: 30px;
            font-size: 0.85rem;
        }

        /* Responsive adjustments */
        @media (max-width: 992px) {
            .article-img {
                height: 220px;
            }
        }



        @media (max-width: 576px) {


            .article-img {
                height: 250px;
            }
        }
/* نهاية صفحة كل المقالات */
/* صفحة الاقسام او الرابط الرئيسي  */
     /* Service Card Design */
        .service-card {
            background: white;
            border-radius: 16px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
            margin-bottom: 20px;
            position: relative;
            border: 1px solid rgba(44, 90, 160, 0.1);
        }

        .service-card:hover {
            transform: translateY(-15px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
            border-color: rgba(44, 90, 160, 0.2);
        }

        .service-img {
            height: 240px;
            overflow: hidden;
            position: relative;
        }

        .service-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: var(--transition);
        }

        .service-card:hover .service-img img {
            transform: scale(1.08);
        }

        .service-img::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(to top, rgba(26, 58, 108, 0.7), transparent);
            opacity: 0;
            transition: var(--transition);
            z-index: 1;
        }

        .service-card:hover .service-img::before {
            opacity: 1;
        }

        .view-btn {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) scale(0.8);
            background: var(--thirdcolor);
            color: white;
            width: 50px;
            height: 50px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transition: var(--transition);
            z-index: 2;
        }

        .service-card:hover .view-btn {
            opacity: 1;
            transform: translate(-50%, -50%) scale(1);
        }

        .service-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .service-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 15px;
            color: var(--maincolor);
            transition: var(--transition);
            text-align: center;
        }

        .service-card:hover .service-title {
            color: var(--thirdcolor);
        }

        .service-description {
            color: #555;
            text-align: center;
            margin-bottom: 10px;
            flex-grow: 1;
        }





        /* Responsive adjustments */
        @media (max-width: 992px) {
            .service-img {
                height: 200px;
            }

        }

        @media (max-width: 768px) {
            .services-section {
                padding: 70px 0;
            }

            .service-img {
                height: 250px;
            }
        }
/* نهاية صفحة الاقسام او الرابط الرئيسي */
/* ًصفحة السيرة الذاتيه لعضو هيئة التدرسي teacher */


        .teacher .t-header {
            background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
            color: white;
            padding: 50px 0 150px 0;
            text-align: center;
            position: relative;
            overflow: hidden;
            margin-top: 0;
        }


        .faculty-title {
            font-weight: 800;
            font-size: 3rem;
            margin-bottom: 15px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .faculty-subtitle {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
            text-align: center;
        }


        .faculty-main-image {
            width: 220px;
            height: 220px;
            border-radius: 50%;
            overflow: hidden;
            border: 5px solid white;
            margin: -130px auto 30px;
            position: relative;
            z-index: 40;
            box-shadow: 0 15px 30px rgba(0,0,0,0.2);
        }

        .faculty-main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .faculty-section {
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            padding: 50px;
            margin-bottom: 50px;
        }


        .faculty-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 40px;
        }

        .meta-card {
            background: var(--light-color);
            border-radius: 15px;
            padding: 25px;
            flex: 1;
            min-width: 250px;
            border-left: 5px solid var(--secondcolor);
            transition: all 0.3s ease;
        }

        .meta-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        }

        .meta-card h4 {
            font-size: 1.1rem;
            color: var(--maincolor);
            margin-bottom: 15px;
        }

        .meta-card p {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 0;
            color: var(--dark-color);
        }

        .faculty-contact {
            display: flex;
            justify-content: center;
            margin-top: 15px;
            gap: 15px;
        }

        .contact-icon {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--light-color);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--maincolor);
            transition: all 0.3s ease;
            font-size: 1.3rem;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        }

        .contact-icon:hover {
            background: var(--secondcolor);
            color: white;
            transform: translateY(-5px);
        }

        .timeline {
            position: relative;
            margin: 40px 0;
        }

        .timeline::before {
            content: '';
            position: absolute;
            top: 0;
            bottom: 0;
            width: 4px;
            background: var(--secondcolor);
            left: 50%;
            transform: translateX(-50%);
        }

        .timeline-item {
            position: relative;
            margin-bottom: 50px;
            width: 80%;
        }

        .timeline-item:nth-child(odd) {
            margin-right: auto;
        }

        .timeline-item:nth-child(even) {
            margin-left: auto;
        }

        .timeline-content {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.08);
            position: relative;
        }

        .timeline-content::before {
            content: '';
            position: absolute;
            top: 30px;
            width: 20px;
            height: 20px;
            background: var(--secondcolor);
            border-radius: 50%;
        }

        .timeline-item:nth-child(odd) .timeline-content::before {
            right: -60px;
        }

        .timeline-item:nth-child(even) .timeline-content::before {
            left: -60px;
        }

        .timeline-date {
            background: var(--maincolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            font-weight: 600;
            display: inline-block;
            margin-bottom: 15px;
        }

        .publication-item {
            padding: 20px;
            border-radius: 15px;
            background: white;
            box-shadow: 0 5px 15px rgba(0,0,0,0.05);
            margin-bottom: 20px;
            transition: all 0.3s ease;
            border-left: 4px solid var(--secondcolor);
        }

        .publication-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        }

        .publication-title {
            color: var(--maincolor);
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 10px;
        }

        .publication-meta {
            color: #7f8c8d;
            font-size: 0.9rem;
            margin-bottom: 10px;
        }

        .badge-pill {
            background: var(--thirdcolor);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.85rem;
            font-weight: 600;
            display: inline-block;
            margin: 0 5px 5px 0;
            box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
        }

        .courses-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
            margin-top: 30px;
        }

        .course-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
        }

        .course-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .course-header {
            background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
            color: white;
            padding: 20px;
            text-align: center;
        }

        .course-code {
            font-size: 0.9rem;
            opacity: 0.8;
        }

        .course-title {
            font-weight: 700;
            font-size: 1.3rem;
            margin: 10px 0;
        }

        .course-body {
            padding: 20px;
        }

        .course-meta {
            display: flex;
            justify-content: space-between;
            margin-top: 15px;
            padding-top: 15px;
            border-top: 1px solid #eee;
        }

        .back-to-faculty {
            display: inline-flex;
            align-items: center;
            color: white;
            font-weight: 700;
            text-decoration: none;
            margin-bottom: 30px;
            background: rgba(255,255,255,0.2);
            padding: 10px 25px;
            border-radius: 30px;
            transition: all 0.3s ease;
        }

        .back-to-faculty:hover {
            background: rgba(255,255,255,0.3);
            transform: translateX(-5px);
        }

        .back-to-faculty i {
            margin-left: 8px;
        }



        @media (max-width: 992px) {
            .timeline::before {
                left: 30px;
            }

            .timeline-item {
                width: 90%;
                padding-left: 70px;
            }

            .timeline-content::before {
                left: -50px !important;
            }
        }

        @media (max-width: 768px) {
           /* .teacher .t-header {
                padding: 100px 0 40px;
            } */

            .faculty-title {
                font-size: 2.2rem;
            }

            .faculty-subtitle {
                font-size: 1.1rem;
            }

            .faculty-section {
                padding: 30px;
            }

            .faculty-main-image {
                width: 180px;
                height: 180px;
                margin-top: -100px;
            }
        }
/* نهاية تصميم صفحة السيرة الذاتية لعضو هيئة التدريس teacher */
/* صفحة تفاصيل الكتاب book */
        :root {
            /* --maincolor: #2c3e50; */
            /* --secondcolor: #3498db; */
            /*--thirdcolor: #e74c3c;
            --light-color: #ecf0f1;
            --dark-color: #2c3e50; */
            --thirdcolor-color: #d4af37;
        }


        .book-header {
            background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
            color: white;
            padding: 60px 0 60px;
            text-align: center;
            position: relative;
            overflow: hidden;
        }



       .book_details .book-title {
            font-weight: 800;
            font-size: 2.8rem;
            margin-bottom: 110px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
            color:white;
        }

        /* .book-subtitle {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 10px auto;
            opacity: 0.9;
            margin-bottom: 100px;
            text-align: center;
        } */



        .book-main-image {
            width: 260px;
            height: 360px;
            border-radius: 10px;
            overflow: hidden;
            border: 5px solid white;
            margin: -160px auto 30px;
            position: relative;
            z-index: 10;
            box-shadow: 0 20px 40px rgba(0,0,0,0.2);
        }

        .book-main-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .book-section {
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            padding: 50px;
            margin-bottom: 50px;
        }


        .book_details .book-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 40px;
        }


        .book-content {
            line-height: 1.9;
            font-size: 1.1rem;
            color: #444;
        }

        .book-content h4 {
            color: var(--maincolor);
            margin: 30px 0 15px;
            font-weight: 700;
        }

        .book-content ul {
            padding-right: 20px;
        }
        .book-content li {
            margin-bottom: 10px;
        }
        .book-actions {
            display: flex;
            gap: 20px;
            margin-top: 30px;
        }
        .book-btn {
            display: flex;
            align-items: center;
            background: var(--maincolor);
            color: white;
            padding: 15px 35px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .book-btn:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            color:white;
        }

        /* .btn-primary {
            background: var(--maincolor);
        } */

        /* .btn-secondary {
            background: var(--secondcolor);
        } */

        .btn-gold {
            background: var(--thirdcolor-color);
        }

        .book-btn i {
            margin-left: 10px;
            font-size: 1.2rem;
        }

        .related-books {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 25px;
            margin-top: 40px;
        }

        .related-book {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 8px 20px rgba(0,0,0,0.08);
            transition: all 0.3s ease;
            border-top: 4px solid var(--thirdcolor-color);
        }

        .related-book:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .related-cover {
            height: 220px;
            overflow: hidden;
            background: #f8f9fa;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .related-cover img {
            max-height: 100%;
            max-width: 100%;
            object-fit: cover;
            border-radius: 5px;
        }

        .related-info {
            padding: 20px;
        }

        .related-title {
            color: var(--maincolor);
            font-weight: 700;
            font-size: 1.2rem;
            margin-bottom: 5px;
            min-height: 60px;
        }

        .related-author {
            color: var(--secondcolor);
            font-size: 0.95rem;
        }

        .book-footer {
            background: var(--dark-color);
            color: white;
            padding: 40px 0;
            margin-top: 50px;
            text-align: center;
        }

        @media (max-width: 992px) {
            .book-header {
                padding: 100px 0 40px;
            }

            .book-title {
                font-size: 2.2rem;
            }

            .book-subtitle {
                font-size: 1.1rem;
            }

            .book-main-image {
                width: 220px;
                height: 300px;
                margin-top: -130px;
            }

            .book-actions {
                flex-direction: column;
            }
        }

        @media (max-width: 768px) {
            .book-section {
                padding: 30px;
            }

            .book-main-image {
                width: 200px;
                height: 280px;
                margin-top: -110px;
            }
        }

        .rating-stars {
            color: var(--thirdcolor-color);
            font-size: 1.5rem;
            margin: 15px 0;
        }

        .chapter-item {
            padding: 15px;
            border-radius: 10px;
            background: #f8f9fa;
            margin-bottom: 10px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: all 0.3s ease;
        }

        .chapter-item:hover {
            background: #e9ecef;
            transform: translateX(-5px);
        }

        .chapter-number {
            background: var(--secondcolor);
            color: white;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex-shrink: 0;
            margin-left: 15px;
        }
/* نهاية تفاصيل الكتاب */
/* تصميم صفحة تفاصيل مشروع تخرج project */

        .project-header {
            background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
            color: white;
            padding: 10px 0 10px;
            text-align: center;
            margin-bottom: 20px;
            position: relative;
            overflow: hidden;
        }

        .project-header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
            opacity: 0.1;
        }

        .project-header .project-title {
            font-weight: 700;
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-shadow: 0 2px 4px rgba(0,0,0,0.3);
        }

        .project-subtitle {
            font-size: 1.4rem;
            max-width: 800px;
            margin: 0 auto;
            opacity: 0.9;
        }

        .project-tag {
            background: rgba(255,255,255,0.15);
            padding: 5px 20px;
            border-radius: 30px;
            font-size: 0.9rem;
            display: inline-block;
            margin: 0 5px;
        }

        .project-main-image {
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0,0,0,0.2);
            margin-bottom: 50px;
            border: 5px solid white;
        }

        .project-main-image img {
            width: 100%;
            height: 500px;
            object-fit: cover;
        }

        .project-section {
            background: white;
            border-radius: 20px;
            box-shadow: 0 15px 40px rgba(0,0,0,0.08);
            padding: 50px;
            margin-bottom: 50px;
        }



        .project-meta {
            display: flex;
            flex-wrap: wrap;
            gap: 25px;
            margin-bottom: 40px;
        }
        .students-list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .students-list li {
            padding: 10px 0;
            border-bottom: 1px solid #eee;
            display: flex;
            align-items: center;
        }

        .students-list li:last-child {
            border-bottom: none;
        }

        .student-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            overflow: hidden;
            margin-left: 15px;
        }

        .student-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .tech-badge {
            background: var(--light-color);
            color: var(--maincolor);
            padding: 10px 20px;
            border-radius: 30px;
            margin: 8px;
            display: inline-block;
            font-weight: 700;
            border: 1px solid #ddd;
            transition: all 0.3s ease;
        }

        .tech-badge:hover {
            background: var(--maincolor);
            color: white;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(26, 58, 95, 0.2);
        }

        .gallery-item {
            border-radius: 15px;
            overflow: hidden;
            margin-bottom: 25px;
            height: 250px;
            box-shadow: 0 10px 20px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0,0,0,0.15);
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .gallery-item:hover img {
            transform: scale(1.1);
        }

        .project-links {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin-top: 30px;
        }

        .project-link {
            display: flex;
            align-items: center;
            background: var(--maincolor);
            color: white;
            padding: 15px 30px;
            border-radius: 10px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.3s ease;
            box-shadow: 0 5px 15px rgba(26, 58, 95, 0.3);
        }

        .project-link:hover {
            background: var(--secondcolor);
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(45, 125, 154, 0.4);
            color: white;
        }

        .project-link i {
            margin-left: 10px;
            font-size: 1.2rem;
        }


        .achievement-badge {
            background: var(--thirdcolor);
            color: white;
            padding: 8px 20px;
            border-radius: 30px;
            font-size: 0.9rem;
            font-weight: 700;
            display: inline-block;
            margin: 0 10px 15px 0;
            box-shadow: 0 4px 10px rgba(230, 57, 70, 0.3);
        }
        @media (max-width: 768px) {
            .project-header {
                padding: 80px 0 40px;
            }

            .project-header .project-title {
                font-size: 2.2rem;
            }

            .project-subtitle {
                font-size: 1.1rem;
            }

            .project-section {
                padding: 30px;
            }

            .project-main-image img {
                height: 350px;
            }
        }
/* نهاية تصميم صفحة تفاصيل مشروع تخرج */
/* تصميم صفحة جميع البرامج */
        .academic-programs-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            max-width: 1300px;
            margin: 0 auto;
        }

        .academic-program-card {
            background: white;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            z-index: 1;
        }
.academic-program-card img
{
    height: 230px;
    width: 100%;
    object-fit: cover;
}
        .academic-program-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
        }



        .academic-program-content {
            padding: 25px;
        }

        .academic-program-title {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: #2c3e50;
            position: relative;
            padding-bottom: 10px;
        }

        .academic-program-title::after {
            content: "";
            position: absolute;
            bottom: 0;
            right: 0;
            width: 50px;
            height: 3px;
            background:var(--thirdcolor);
            border-radius: 2px;
        }

        /* .academic-program-description {
            color: #7f8c8d;
            line-height: 1.7;
            margin-bottom: 25px;
            min-height: 50px;
        } */

        .academic-program-details {
            display: flex;
            justify-content: space-between;
            margin-top: 5px;
            border-top: 1px solid #eee;
            padding-top: 20px;
            color: #7f8c8d;
            font-size: 0.95rem;
        }

        .academic-program-duration {
            display: flex;
            align-items: center;
            gap: 8px;
        }
.container-readmore
{
    justify-content: flex-end;
}
        .academic-program-link {
            display: inline-block;
            background: linear-gradient(90deg, var(--secondcolor), #2c3e50);
            color: white;
            text-decoration: none;
            padding: 10px 20px;
            border-radius: 10px;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
            margin-top:15px;

        }

        .academic-program-link::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 0%;
            height: 100%;
            background: linear-gradient(90deg, #2c3e50, var(--secondcolor));
            transition: all 0.4s ease;
            z-index: -1;
        }

        .academic-program-link:hover::before {
            width: 100%;
        }

        .academic-program-link:hover {
            box-shadow: 0 5px 20px rgba(52, 152, 219, 0.4);
            color:white;
        }



        /* تصميم متجاوب */
        @media (max-width: 768px) {
            .academic-header h2 {
                font-size: 2.2rem;
            }

            .academic-program-icon {
                height: 150px;
                font-size: 3rem;
            }
        }

        @media (max-width: 480px) {
            .academic-header h2 {
                font-size: 1.8rem;
            }

            .academic-header p {
                font-size: 1rem;
            }

            .academic-programs-grid {
                grid-template-columns: 1fr;
            }
        }
/* نهاية تصميم صفحة جميع البرامج */
/*  تصميم صفحات العمادات  */
/* :root {

    --background-color: #f5f7fa;
    --text-color: #333;
  }

body {
    background-color: var(--background-color);
    color: var(--text-color);
  }

.btn-primary {
    background-color: var(--maincolor);
    border-color: var(--maincolor);
  }

.btn-warning {
    background-color: var(--secondcolor);
    border-color: var(--secondcolor);
  }


.deanship-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}
.deanship-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.deanship-logo img {
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.btn-detail {
 margin-left: .5rem !important;
} */

/* تنسيقات الفعاليات والأخبار في صفحة العمادة  */

.event-img {
  height: 180px;
  object-fit: contain;
}

.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.icon-main {
  color: var(--maincolor); /* اللون الرئيسي للأيقونة */
}


/* البحث */

.object-fit-cover {
    object-fit: cover;
}
.shadow-text {
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.7);
}

.journal-card {
        transition: transform 0.4s ease, box-shadow 0.4s ease;
        border-radius: 1rem;
}

.journal-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.journal-card img {
        transition: transform 0.6s ease;
}

.journal-card:hover img {
        transform: scale(1.08);
}

.journal-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.25));
        transition: background 0.4s ease;
}

.journal-card:hover .journal-overlay {
        background: linear-gradient(to bottom, rgba(0,0,0,0.8), rgba(0,0,0,0.4));
}

.journal-title {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
        transform: translateY(0);
        transition: transform 0.3s ease, opacity 0.3s ease;
}

.journal-card:hover .journal-title {
        transform: translateY(-3px);
        opacity: 0.95;
}



.journal-btn {
        background: linear-gradient(135deg, #0d6efd, #0b5ed7);
        transition: background 0.3s ease, transform 0.2s ease;
}

.journal-btn:hover {
        background: linear-gradient(135deg, #0b5ed7, #094db5);
        transform: scale(1.03);
}




.research-page .hero-section {
  background: linear-gradient(to bottom right, #eef4ff, #ffffff);
}

.research-page .stat-box {
  background: #fff;
  transition: all 0.3s ease;
}
.research-page .stat-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
}

.research-page .search-section {
  background: #fafafa;
}

.research-page .papers-section {
  background: #fff;
}

.research-page .paper-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.research-page .paper-card:hover {
  box-shadow: 0 0.5rem 1rem rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.research-page .cta-section {
  background: #f8f9fa;
}

.card-title {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: unset !important;
}



.hover-card {
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.icon-circle {
    width: 70px;
    height: 70px;
    background-color: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

/* نهاية تصميم صفحات العمادات */
/* تصميم صفحة العمادات التحسين */
:root {

    --gradient-primary: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    --gradient-dark: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-section {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    margin-top: 60px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stat-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid transparent !important;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.stat-card:nth-child(1) {
    border-top-color: var(--maincolor) !important;
}
.stat-card:nth-child(2) {
    border-top-color: var(--thirdcolor) !important;
}
.stat-card:nth-child(3) {
    border-top-color: var(--warning-color) !important;
}

.deanship-card {
    transition: all 0.3s ease;
    border-radius: 16px;
}

.deanship-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1) !important;
}

.deanship-image {
    height: 200px;
}

.deanship-main-img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.deanship-card:hover .deanship-main-img {
    transform: scale(1.05);
}

.deanship-overlay {
    background: var(--gradient-dark);
    opacity: 0.3;
}

.deanship-logo img {
    transition: transform 0.3s ease;
}

.deanship-card:hover .deanship-logo img {
    transform: scale(1.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}





.hover-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .display-5 {
        font-size: 2.2rem;
    }

    .lead {
        font-size: 1.1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .deanship-image {
        height: 180px;
    }


}

@media (max-width: 576px) {
    .deanship-card .btn {
        font-size: 0.9rem;
        padding: 0.5rem;
    }

    .deanship-info p {
        font-size: 0.9rem;
    }
}

/* نهاية تصميم صفحة العمادات */
/* تصميم صفحعة تفاصيل عمادة */
:root {


    --light-gold: #f0e6d2;
    --light-gray: #f8f9fa;
    --dark-gray: #2d3748;
    --success-green: #10b981;
    --warning-orange: #f59e0b;
}



/* تحسينات العنوان الرئيسي */
.deanship-header {
    /* background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%); */
    position: relative;
    overflow: hidden;
    margin-top: 70px;
      background-repeat: no-repeat;
      object-fit: cover;
      background-size: cover;
}

.deanship-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color:var(--dark-gray);
    opacity: .3;
}

.deanship-header .container {
    position: relative;
    z-index: 2;
}

.header-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.academic-badge1 {
    background: var(--thirdcolor);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    font-weight: 500;
    padding: .5rem;
}

.academic-badge1:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* بطاقة معلومات العميد المحسنة */
.dean-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: none;
    border-left: 4px solid var(--thirdcolor);
    border-radius: 12px;
    overflow: hidden;
}

.dean-avatar {
    width: 80px;
    height: 80px;
    border: 3px solid var(--thirdcolor);
    padding: 3px;
    background: white;
}

.dean-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.dean-contact-item i {
    color: var(--secondcolor);
    width: 20px;
}

/* تحسينات التبويبات */
.nav-pills-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 15px;
    margin-bottom: 30px;
}

.nav-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.nav-pills .nav-link {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 600;
    color: var(--dark-gray);
    border: 1px solid #e5e7eb;
    background: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link.active {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    color: white;
    border-color: var(--secondcolor);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.2);
}

/* تصميم محتوى التبويبات */
.tab-content {
    padding: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* بطاقات الفعاليات والأخبار */
.academic-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    background: white;
}

.academic-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.card-img-container {
    height: 200px;
    overflow: hidden;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.academic-card:hover .card-img-container img {
    transform: scale(1.05);
}

.card-date-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--thirdcolor);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* .card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.card-title {
    color: var(--maincolor);
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.card-text {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
} */

/* تصميم القوائم */
.enhanced-list-group {
    border: none;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    padding: 16px 20px;
    transition: all 0.3s ease;
    background: white;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f8fafc;
    padding-right: 25px;
}

.service-item, .regulation-item, .achievement-item, .member-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.download-btn {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 86, 219, 0.3);
}

/* التنبيهات المحسنة */
.enhanced-alert {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: none;
    border-left: 4px solid var(--secondcolor);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 15px;
}

/* الهيكل التنظيمي */
.org-chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px dashed #e5e7eb;
}

.org-chart-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* استراتيجية العمادة */
.strategy-card {
    background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
    border: none;
    border-left: 4px solid var(--warning-orange);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .deanship-header {
        padding: 3rem 0 !important;
    }

    .nav-pills {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-pills .nav-link {
        text-align: center;
        justify-content: center;
        padding: 12px;
    }

    .dean-info-card .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .dean-info-card .me-3 {
        margin-right: 0 !important;
        margin-bottom: 15px;
    }

    .header-actions {
        flex-direction: column;
        align-items: center;
    }

    .academic-badge1 {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .card-img-container {
        height: 160px;
    }

    .tab-content {
        padding: 15px;
    }

    .list-group-item {
        padding: 12px 15px;
    }
}

/* تأثيرات الرسوم المتحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}



/* تحسينات إضافية */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--thirdcolor), transparent);
    margin: 30px 0;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #94a3b8;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}
/* نهاية تصميم صفحة تفاصيل عمادة */
/* تصميم صفحة تفاصيل الادارة */


/* خريطة الموقع */
.breadcrumb-nav {
    background: #f8fafc;
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.breadcrumb-nav .breadcrumb-item a {
    color: var(--secondcolor);
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-nav .breadcrumb-item a:hover {
    color: var(--maincolor);
}

/* تحسينات الصورة الرئيسية */
.department-header-image {
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    /* margin-top: 30px; */
}

.department-header-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

/* شعار العمادة في الصورة */
.deanship-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* بطاقة معلومات الإدارة */
.department-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    border: 1px solid rgba(10, 36, 114, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.department-header {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    padding: 30px;
    color: white;
    position: relative;
    overflow: hidden;
}

.department-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.department-header-content {
    position: relative;
    z-index: 2;
}

.department-badge {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    font-weight: 600;
}

/* محتوى البطاقة */
.info-list-item {
    display: flex;
    align-items: flex-start;
    padding: 20px;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.info-list-item:last-child {
    border-bottom: none;
}

.info-list-item:hover {
    background: #f8fafc;
    padding-right: 25px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(10, 36, 114, 0.1) 0%, rgba(26, 86, 219, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 1.2rem;
    color: var(--secondcolor);
}

.info-content {
    flex-grow: 1;
}

.info-label {
    display: block;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.info-value {
    display: block;
    color: var(--dark-gray);
    font-weight: 600;
    font-size: 1.1rem;
}

/* بطاقة العمادة التابعة */
.deanship-card {
    background: white;
    border-radius: 16px;
    border: 2px solid #f1f5f9;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
}

.deanship-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondcolor);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.deanship-logo {
    width: 80px;
    height: 80px;
    border: 3px solid var(--thirdcolor);
    padding: 3px;
    background: white;
}

/* أزرار التنقل */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.action-btn {
    flex: 1;
    min-width: 150px;
    padding: 15px 25px;
    border-radius: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-btn i {
    font-size: 1.2rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--secondcolor) 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(26, 86, 219, 0.3);
}

.btn-outline {
    background: white;
    color: var(--maincolor);
    border: 2px solid var(--secondcolor);
}

.btn-outline:hover {
    background: var(--maincolor);
    color: white;
    transform: translateY(-3px);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: white;
    border: none;
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

/* قسم الوصف */
.description-section {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(10, 36, 114, 0.1);
}

.description-title {
    color: var(--maincolor);
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--light-gold);
    position: relative;
}

.description-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 80px;
    height: 2px;
    background: var(--thirdcolor);
}

.description-content {
    color: #4b5563;
    line-height: 1.8;
    font-size: 1.1rem;
}

/* إحصائيات الإدارة */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.stat-card {
    background: white;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: var(--secondcolor);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, rgba(10, 36, 114, 0.1) 0%, rgba(26, 86, 219, 0.1) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--secondcolor);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--maincolor);
    margin-bottom: 5px;
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .department-header-image {
        height: 300px;
    }

    .department-header {
        padding: 20px;
    }

    .info-list-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }

    .info-icon {
        margin-left: 0;
        margin-bottom: 15px;
    }

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

    .action-btn {
        width: 100%;
    }

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

    .description-section {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .department-header-image {
        height: 250px;
    }

    .deanship-badge {
        flex-direction: column;
        text-align: center;
        padding: 10px;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* تأثيرات الرسوم المتحركة */


.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-delay-1 {
    animation-delay: 0.2s;
}

.animate-delay-2 {
    animation-delay: 0.4s;
}



/* تفاصيل إضافية */
.additional-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    padding: 25px;
    border-left: 4px solid var(--secondcolor);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-item-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.info-item-icon i {
    color: var(--secondcolor);
}
/* نهاية تصميم صفحة تفاصيل ادراة */
/* تصميم صفحة جميع الادارات التابعة للعمادة */
 .hover-lift {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .hover-lift:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
    }
    .icon-main {
        color: var(--thirdcolor);
        width: 20px;
        text-align: center;
    }
    .card-img-top {
        transition: transform 0.5s ease;
    }
    .card:hover .card-img-top {
        transform: scale(1.05);
    }
    .overflow-hidden {
        overflow: hidden;
    }
    /* نهاية التصميم التابع لصفحة جميع الادرات التابعة للعمادة */
/* تصميم صفحة المباني */
 :root {
            --border-radius: 12px;
            --transition: all 0.3s ease;
        }

#buildings .btn-primary
{
    border-radius: 0;
}
        .page-header {
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }

        .page-header h1 {
            background: linear-gradient(90deg, var(--maincolor), var(--thirdcolor));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .map-container {
            height: 500px;
            width: 100%;
            border-radius: var(--border-radius);
            overflow: hidden;
        }

        .leaflet-container {
            font-family: 'Tajawal', sans-serif;
        }

        .category-card {
            background: white;
            border-radius: var(--border-radius);
            padding: 2rem;
            text-align: center;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            transition: var(--transition);
            height: 100%;
            position: relative;
            cursor: pointer;
            border: 1px solid transparent;
        }

        .category-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
            border-color: var(--maincolor);
        }

        .category-card:hover .category-icon {
            background: var(--maincolor);
            color: white;
            transform: rotate(10deg) scale(1.1);
        }

        .category-icon {
            width: 80px;
            height: 80px;
            background: rgba(13, 110, 253, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto;
            font-size: 2rem;
            color: var(--maincolor);
            transition: var(--transition);
        }

        .table th {
            font-weight: 700;
            color: var(--dark-color);
            border-bottom-width: 2px;
        }

        .table-hover tbody tr:hover {
            background-color: rgba(13, 110, 253, 0.05);
            transform: translateX(5px);
            transition: var(--transition);
        }


        .map-marker {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 1.2rem;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
            cursor: pointer;
            transition: var(--transition);
            border: 2px solid white;
        }

        .map-marker:hover {
            transform: scale(1.2) rotate(15deg);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
        }

        .marker-1 { background: linear-gradient(135deg, var(--maincolor), #0a58ca); }
        .marker-2 { background: linear-gradient(135deg, var(--thirdcolor), #146c43); }
        .marker-3 { background: linear-gradient(135deg, var(--thirdcolor), #e0a800); }
        .marker-4 { background: linear-gradient(135deg, var(--info-color), #0aa2c0); }
        .marker-default { background: linear-gradient(135deg, #6c757d, #495057); }

        @media (max-width: 768px) {
            .page-header h1 {
                font-size: 2rem;
            }
            .map-container {
                height: 350px;
            }
        }

        .fade-in {
            animation: fadeIn 0.5s ease-in-out;
        }

        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .building-facility {
            display: inline-block;
            background: rgba(13, 110, 253, 0.1);
            color: var(--maincolor);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.85rem;
            margin: 0.2rem;
            border: 1px solid rgba(13, 110, 253, 0.2);
            transition: var(--transition);
        }

        .building-facility:hover {
            background: var(--maincolor);
            color: white;
            transform: translateY(-2px);
        }

        .building-image {
            height: 200px;
            object-fit: cover;
            border-radius: var(--border-radius);
        }

        .badge-type-1 { background-color: var(--maincolor); }
        .badge-type-2 { background-color: var(--thirdcolor); }
        .badge-type-3 { background-color: var(--thirdcolor); }
        .badge-type-4 { background-color: var(--info-color); }
        .badge-type-default { background-color: var(--secondcolor); }
/* نهاية تصميم صفحة المباني */
/* تصميم صفحة تفاصيل مبنى */
/* تخصيصات خاصة بصفحة تفاصيل المبنى */

.building-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.building-hero-image img {
    transition: transform 0.5s;
}

.building-hero-image:hover img {
    transform: scale(1.05);
}

.year-badge {
    z-index: 1;
}

/* بطاقة المعلومات */
.info-item {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    transition: all 0.3s;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.info-label {
    display: block;
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-value {
    display: block;
    color: #212529;
    font-size: 1.1rem;
    font-weight: 600;
}

/* وصف المبنى */
.description-content {
    line-height: 1.8;
    font-size: 1.05rem;
    color: #495057;
}

.description-content p {
    margin-bottom: 1rem;
}

/* بطاقات المرافق */
.facility-card {
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.facility-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

.hover-shadow {
    transition: box-shadow 0.3s;
}

.hover-shadow:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.facility-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--maincolor) 0%, var(--thirdcolor) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
/* الأزرار */
.share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    transform: scale(1.1);
}

/* بطاقات المباني المشابهة */
.related-building-card {
    transition: all 0.3s;
}

.related-building-card:hover {
    border-color: #4a6cf7;
}

/* المرشحات */
#facility-filters .btn {
    border-radius: 25px;
    padding: 8px 20px;
    transition: all 0.3s;
}

#facility-filters .btn.active {
    box-shadow: 0 4px 15px rgba(74, 108, 247, 0.3);
}

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


    .building-hero-image {
        max-width: 300px;
        margin: 0 auto;
    }

    .info-item {
        padding: 12px;
    }

    #facility-filters .btn {
        padding: 6px 15px;
        font-size: 0.9rem;
    }
}

/* أنيميشن للبطاقات */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.facility-item {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.facility-item:nth-child(1) { animation-delay: 0.1s; }
.facility-item:nth-child(2) { animation-delay: 0.2s; }
.facility-item:nth-child(3) { animation-delay: 0.3s; }
.facility-item:nth-child(4) { animation-delay: 0.4s; }
.facility-item:nth-child(5) { animation-delay: 0.5s; }
.facility-item:nth-child(6) { animation-delay: 0.6s; }
/* نهاية تصميم صفحة تفاصيل مبنى */

