/* ==========================================================
   كلية التقنية الصناعية - مصراتة
   Main Theme Stylesheet
   نسخة موحدة بدون تكرار
   ========================================================== */

/* ==========================================================
   1. المتغيرات العامة
   ========================================================== */
:root {
    --primary: #E65100;
    --primary-light: #FF9800;
    --primary-hover: #BF360C;

    --dark: #121212;
    --gray-dark: #1E1E1E;
    --gray-medium: #757575;
    --gray-light: #F4F5F7;

    --white: #FFFFFF;
    --border-color: #E0E0E0;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 18px;

    --shadow-sm: 0 4px 12px rgba(0, 0, 0, .05);
    --shadow-md: 0 6px 18px rgba(0, 0, 0, .07);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, .10);

    --container-width: 1200px;
}

/* ==========================================================
   2. Reset / Base
   ========================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;

    background: var(--gray-light);
    color: var(--dark);

    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

img {
    max-width: 100%;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

/* ==========================================================
   3. عناصر عامة قابلة لإعادة الاستخدام
   ========================================================== */

#main-content {
    width: 100%;
    flex: 1;
}

.page-content {
    width: 100%;
    min-height: 500px;
    padding: 60px 5%;
}

.section-title {
    position: relative;
    display: inline-block;
    margin: 0 0 25px;

    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.4;
}

.section-title::after {
    content: '';
    position: absolute;
    right: 20%;
    bottom: -10px;
    width: 60%;
    height: 4px;

    background: var(--primary);
    border-radius: 4px;
}

[dir="ltr"] .section-title::after {
    right: auto;
    left: 20%;
}

/* تاريخ إعلانات قاعدة البيانات */
.db-ad-date {
    display: block;
    margin-top: 12px;
    opacity: .8;
    font-size: .78rem;
}

/* ==========================================================
   4. التمرير الأفقي
   ========================================================== */
.horizontal-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 15px 5px 25px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, .05);
    border-radius: 10px;
}

.horizontal-scroll::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.scroll-container-wrapper {
    position: relative;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    z-index: 10;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);

    cursor: pointer;
    box-shadow: 0 4px 12px rgba(230, 81, 0, .35);
    font-size: 1.1rem;

    transition: background-color .25s ease, transform .25s ease;
}

.scroll-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-50%) scale(1.08);
}

.scroll-btn.left {
    left: -10px;
}

.scroll-btn.right {
    right: -10px;
}

/* ==========================================================
   5. Top Bar
   ========================================================== */
.top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 8px 5%;

    background: var(--dark);
    color: var(--white);
    border-bottom: 2px solid var(--primary);

    font-size: .85rem;
}

.top-bar-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.top-bar-info span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    padding: 6px 14px;

    border: 0;
    border-radius: 5px;
    background: var(--primary);
    color: var(--white);

    cursor: pointer;
    font-weight: 700;

    transition: background-color .25s ease;
}

.lang-btn:hover {
    background: var(--primary-hover);
}

/* ==========================================================
   6. Header / Navigation / Logo
   ========================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: var(--white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .08);
}

.nav-container {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    padding: 12px 5%;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-emblem {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;
}

.college-logo {
    width: 58px;
    height: 58px;
    display: block;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.3;
}

.logo-title {
    color: var(--dark);
    font-size: 19px;
    font-weight: 800;
}

.logo-subtitle {
    margin-top: 2px;
    color: var(--gray-medium);
    font-size: 12px;
    font-weight: 600;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    display: block;
    padding: 8px 12px;
    border-radius: 6px;

    color: var(--dark);
    font-size: .95rem;
    font-weight: 700;

    transition: color .2s ease, background-color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    background: rgba(230, 81, 0, .08);
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: var(--dark);
    cursor: pointer;
    font-size: 1.6rem;
}

/* ==========================================================
   7. News
   ========================================================== */
.news-section {
    padding: 20px 5%;
    background: #FAFAFA;
    text-align: center;
}

.news-card {
    position: relative;

    min-width: 320px;
    max-width: 350px;
    flex-shrink: 0;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);

    text-align: right;

    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

[dir="ltr"] .news-card {
    text-align: left;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: rgba(230, 81, 0, .3);
    box-shadow: 0 12px 30px rgba(230, 81, 0, .15);
}

.news-img-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.news-img-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .5s ease;
}

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

.news-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .1), rgba(0, 0, 0, .5));
}

.news-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;

    padding: 4px 12px;

    background: var(--primary);
    color: var(--white);
    border-radius: 20px;

    box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
    font-size: .75rem;
    font-weight: 700;
}

[dir="ltr"] .news-category-badge {
    right: auto;
    left: 15px;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;

    margin-bottom: 10px;

    color: var(--gray-medium);
    font-size: .78rem;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 22px;
}

.news-content h3 {
    margin: 0 0 12px;
    color: var(--dark);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.4;
}

.news-content p {
    flex-grow: 1;
    margin: 0 0 20px;
    color: #666;
    font-size: .88rem;
    line-height: 1.6;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;

    padding: 8px 16px;

    background: rgba(230, 81, 0, .08);
    color: var(--primary);
    border-radius: 8px;

    font-size: .88rem;
    font-weight: 700;

    transition: background-color .25s ease, color .25s ease;
}

.news-card:hover .read-more-btn {
    background: var(--primary);
    color: var(--white);
}

.news-card:hover .read-more-btn i {
    transform: translateX(-4px);
}

[dir="ltr"] .news-card:hover .read-more-btn i {
    transform: translateX(4px);
}

/* ==========================================================
   8. Announcements
   ========================================================== */
.announcements-section {
    position: relative;
    padding: 50px 5%;

    background:
        linear-gradient(rgba(18, 18, 18, .92), rgba(30, 30, 30, .94)),
        url('https://images.unsplash.com/photo-1581092160607-ee22621dd758?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;

    color: var(--white);
    text-align: center;
}

.announcement-card {
    position: relative;

    min-width: 290px;
    max-width: 310px;
    flex-shrink: 0;

    padding: 22px;

    background: rgba(255, 255, 255, .96);
    color: var(--dark);

    border-top: 5px solid var(--primary);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .25);

    text-align: right;
}

[dir="ltr"] .announcement-card {
    text-align: left;
}

.announcement-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    margin-bottom: 10px;
    padding: 3px 10px;

    background: rgba(230, 81, 0, .12);
    color: var(--primary);
    border-radius: 20px;

    font-size: .8rem;
    font-weight: 700;
}

.announcement-card h3 {
    margin: 0 0 10px;
    color: var(--dark);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.announcement-card p {
    margin: 0;
    color: #424242;
    font-size: .88rem;
    line-height: 1.6;
}

/* ==========================================================
   9. Stats
   ========================================================== */
.stats-bar {
    padding: 40px 5%;
    background: var(--dark);
    color: var(--white);
    border-top: 4px solid var(--primary);
    border-bottom: 4px solid var(--primary);
}

.stats-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.stat-card {
    flex: 1 1 200px;
    max-width: 250px;
    padding: 15px;

    background: var(--gray-dark);
    border: 1px solid #2C2C2C;
    border-radius: var(--radius-sm);

    text-align: center;
}

.stat-card i {
    margin-bottom: 10px;
    color: var(--primary);
    font-size: 2.4rem;
}

.stat-number {
    margin-bottom: 4px;
    color: var(--white);
    font-size: 2.2rem;
    font-weight: 800;
}

.stat-label {
    color: #B5B5B5;
    font-size: .95rem;
    font-weight: 600;
}

/* ==========================================================
   10. Labs
   ========================================================== */
.labs-section {
    padding: 50px 5%;
    background: var(--white);
    text-align: center;
}

.lab-card {
    min-width: 280px;
    max-width: 300px;
    flex-shrink: 0;

    overflow: hidden;

    background: var(--gray-light);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);

    text-align: right;
}

[dir="ltr"] .lab-card {
    text-align: left;
}

.lab-img-container {
    width: 100%;
    height: 170px;
    overflow: hidden;
}

.lab-img-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.lab-info {
    padding: 18px;
}

.lab-info h3 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.lab-info p {
    margin: 0;
    color: var(--gray-medium);
    font-size: .88rem;
    line-height: 1.5;
}

/* ==========================================================
   11. Faculty
   ========================================================== */
.faculty-section {
    padding: 50px 5%;
    background: var(--gray-light);
    text-align: center;
}

.faculty-card {
    min-width: 260px;
    max-width: 270px;
    flex-shrink: 0;

    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

    transition: transform .25s ease, border-color .25s ease;
}

.faculty-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.faculty-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.faculty-img-container img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.faculty-info {
    padding: 18px;
    text-align: right;
}

[dir="ltr"] .faculty-info {
    text-align: left;
}

.faculty-info h3 {
    margin: 0 0 4px;
    color: var(--dark);
    font-size: 1.1rem;
    font-weight: 700;
}

.faculty-role {
    margin-bottom: 6px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
}

.faculty-dept {
    margin-bottom: 10px;
    color: var(--gray-medium);
    font-size: .82rem;
}

.faculty-social {
    display: flex;
    gap: 10px;
}

.faculty-social a {
    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--dark);
    color: var(--white);
    border-radius: 50%;
    font-size: .8rem;

    transition: background-color .2s ease;
}

.faculty-social a:hover {
    background: var(--primary);
}

/* ==========================================================
   12. Quick Links
   صور أو أيقونات - تظهر التسمية عند المرور
   ========================================================== */
 
 

/* ==========================================================
   13. Systems Sidebar / Drawer
   ========================================================== */
.systems-toggle-btn {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1001;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 22px;

    border: 0;
    border-radius: 50px;
    background: var(--primary);
    color: var(--white);

    box-shadow: 0 6px 20px rgba(230, 81, 0, .4);

    cursor: pointer;
    font-size: .95rem;
    font-weight: 700;

    transition: background-color .25s ease, transform .25s ease;
}

[dir="ltr"] .systems-toggle-btn {
    right: auto;
    left: 30px;
}

.systems-toggle-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.06);
}

.systems-drawer-overlay {
    position: fixed;
    inset: 0;
    z-index: 1002;

    display: none;

    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(3px);
}

.systems-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    z-index: 1003;

    width: 320px;
    height: 100%;

    display: flex;
    flex-direction: column;

    background: var(--white);
    box-shadow: -5px 0 25px rgba(0, 0, 0, .2);

    transition: right .35s ease;
}

[dir="ltr"] .systems-drawer {
    right: auto;
    left: -350px;
    transition: left .35s ease;
}

.systems-drawer.open {
    right: 0;
}

[dir="ltr"] .systems-drawer.open {
    right: auto;
    left: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;

    padding: 20px;

    background: var(--dark);
    color: var(--white);
    border-bottom: 4px solid var(--primary);
}

.drawer-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 0;
    font-size: 1.1rem;
}

.close-drawer-btn {
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--white);
    cursor: pointer;
    font-size: 1.3rem;
}

.close-drawer-btn:hover {
    color: var(--primary);
}

.drawer-systems-list {
    display: flex;
    flex-direction: column;
    gap: 12px;

    padding: 20px 15px;
    overflow-y: auto;

    list-style: none;
}

.drawer-systems-list li a {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px;

    background: var(--gray-light);
    color: var(--dark);

    border: 1px solid var(--border-color);
    border-radius: 10px;

    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease;
}

.drawer-systems-list li a i {
    width: 25px;
    color: var(--primary);
    text-align: center;
    font-size: 1.4rem;
}

.drawer-systems-list li a div strong {
    display: block;
    margin-bottom: 2px;
    font-size: .95rem;
}

.drawer-systems-list li a div small {
    display: block;
    color: var(--gray-medium);
    font-size: .78rem;
}

.drawer-systems-list li a:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    transform: translateX(-5px);
}

[dir="ltr"] .drawer-systems-list li a:hover {
    transform: translateX(5px);
}

.drawer-systems-list li a:hover i,
.drawer-systems-list li a:hover small {
    color: var(--white);
}

/* ==========================================================
   14. Footer
   ========================================================== */
footer {
    margin-top: auto;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 35px;

    padding: 50px 5%;
}

.footer-col {
    flex: 1 1 250px;
}

.footer-col h4 {
    position: relative;

    margin: 0 0 18px;
    padding-bottom: 6px;

    color: var(--primary);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;

    width: 40px;
    height: 2px;

    background: var(--primary);
}

[dir="ltr"] .footer-col h4::after {
    right: auto;
    left: 0;
}

.footer-col p,
.footer-col li {
    color: #BBB;
    font-size: .88rem;
    line-height: 1.7;
}

.footer-col p {
    margin: 0 0 8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding: 16px;

    background: var(--gray-dark);
    color: var(--gray-medium);
    border-top: 1px solid #222;

    text-align: center;
    font-size: .85rem;
}

/* ==========================================================
   15. صفحات About / Departments - الهيكل المشترك
   ========================================================== */
.about-page {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 45px 20px 75px;
}

.about-layout {
    display: grid;
    grid-template-columns: 315px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* قائمة About */
.about-menu {
    position: sticky;
    top: 95px;

    overflow: hidden;

    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.about-menu-header {
    position: relative;

    display: flex;
    align-items: center;
    gap: 14px;

    padding: 22px 20px;

    background: linear-gradient(135deg, #151515, #242424);
    color: var(--white);
    border-bottom: 4px solid var(--primary);
}

.about-menu-header::after {
    content: '';
    position: absolute;
    right: 20px;
    bottom: -4px;

    width: 65px;
    height: 4px;

    background: var(--primary-light);
    border-radius: 5px;
}

.about-menu-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 152, 0, .14);
    color: var(--primary-light);
    border: 1px solid rgba(255, 152, 0, .25);
    border-radius: 12px;

    font-size: 1.25rem;
}

.about-menu-header h2 {
    margin: 0 0 3px;
    font-size: 1.02rem;
    font-weight: 800;
}

.about-menu-header span {
    color: #aaa;
    font-size: .72rem;
}

.about-menu-list {
    padding: 14px;
}

.about-menu-item {
    position: relative;

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 58px;
    margin-bottom: 8px;
    padding: 9px 12px;

    overflow: hidden;

    background: #FAFAFA;
    color: var(--dark);
    border: 1px solid #EEEEEE;
    border-radius: 12px;

    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.about-menu-item:last-child {
    margin-bottom: 0;
}

.about-menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;

    width: 4px;

    background: var(--primary);
    transform: scaleY(0);
    transform-origin: center;

    transition: transform .25s ease;
}

.about-menu-item-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(230, 81, 0, .08);
    color: var(--primary);
    border-radius: 9px;

    font-size: .65rem;

    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}

.about-menu-item-title {
    flex: 1;
    color: #333;
    font-size: .86rem;
    font-weight: 700;
    line-height: 1.55;
    transition: color .25s ease;
}

.about-menu-item:hover {
    background: rgba(230, 81, 0, .055);
    border-color: rgba(230, 81, 0, .22);
    transform: translateX(-5px);
    box-shadow: 0 5px 14px rgba(230, 81, 0, .08);
}

.about-menu-item:hover::before,
.about-menu-item.active::before {
    transform: scaleY(1);
}

.about-menu-item:hover .about-menu-item-icon {
    background: var(--primary);
    color: var(--white);
    transform: translateX(-2px);
}

.about-menu-item:hover .about-menu-item-title {
    color: var(--primary);
}

.about-menu-item.active {
    background: linear-gradient(135deg, var(--primary), #D84315);
    border-color: var(--primary);
    color: var(--white);
    transform: translateX(-3px);
    box-shadow: 0 7px 18px rgba(230, 81, 0, .22);
}

.about-menu-item.active::before {
    background: var(--white);
}

.about-menu-item.active .about-menu-item-icon {
    background: rgba(255, 255, 255, .18);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, .20);
}

.about-menu-item.active .about-menu-item-title {
    color: var(--white);
}

.about-empty-menu {
    padding: 25px 15px;
    color: var(--gray-medium);
    text-align: center;
    font-size: .84rem;
}

/* محتوى About */
.about-content {
    position: relative;

    min-width: 0;
    overflow: hidden;

    padding: 40px 45px;

    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.about-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background: linear-gradient(to left, var(--primary), var(--primary-light), transparent);
}

.about-content-header {
    padding-top: 5px;
    text-align: center;
}

.about-content-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    margin-bottom: 15px;
    padding: 6px 14px;

    background: rgba(230, 81, 0, .08);
    color: var(--primary);
    border: 1px solid rgba(230, 81, 0, .12);
    border-radius: 30px;

    font-size: .76rem;
    font-weight: 700;
}

.about-content-header h2,
.content-heading h2 {
    margin: 0 auto;
    color: var(--dark);
    font-weight: 800;
    line-height: 1.5;
}

.about-content-header h2 {
    max-width: 800px;
    font-size: 1.65rem;
}

.about-content-divider {
    position: relative;
    width: 100%;
    height: 1px;
    margin: 28px 0 32px;
    background: var(--border-color);
}

.about-content-divider::after {
    content: '';
    position: absolute;
    top: -2px;
    right: 50%;

    width: 85px;
    height: 4px;

    transform: translateX(50%);

    background: linear-gradient(to right, var(--primary-light), var(--primary));
    border-radius: 5px;
}

.about-text {
    color: #444;
    font-size: .98rem;
    line-height: 2.15;
    text-align: justify;
    overflow-wrap: break-word;
}

.about-text br + br {
    display: block;
    content: '';
    margin-top: 10px;
}

.about-no-content,
.empty-content {
    padding: 70px 20px;
    color: var(--gray-medium);
    text-align: center;
}

.about-no-content-icon,
.empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    color: var(--primary);
}

.about-no-content-icon {
    width: 75px;
    height: 75px;

    background: var(--gray-light);
    border-radius: 50%;
    font-size: 1.9rem;
}

.about-no-content h2,
.empty-content h2 {
    margin: 0 0 8px;
    color: var(--dark);
    font-size: 1.3rem;
}

.about-no-content p,
.empty-content p {
    margin: 0;
    font-size: .88rem;
}

.empty-icon {
    font-size: 45px;
}

/* ==========================================================
   16. Departments - نفس قالب About
   ========================================================== */
.department-menu-item {
    border-bottom: 1px solid #eee;
}

.department-link {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 15px 14px;

    color: #333;
    font-weight: 700;

    transition: background-color .25s ease, color .25s ease;
}

.department-link:hover {
    background: #FFF3E8;
    color: var(--primary);
}

.department-link.active {
    background: var(--primary);
    color: var(--white);
}

.department-number {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #eee;
    color: #555;
    border-radius: 50%;

    font-size: 13px;
}

.department-link.active .department-number {
    background: rgba(255, 255, 255, .2);
    color: var(--white);
}

.department-name {
    flex: 1;
    line-height: 1.6;
}

.department-arrow {
    font-size: 24px;
    line-height: 1;
}

.division-list {
    padding: 6px 12px 10px;
    background: var(--white);
}

.division-link {
    display: flex;
    align-items: center;
    gap: 7px;

    padding: 9px 8px 9px 20px;

    color: #666;
    border-radius: 7px;

    font-size: 14px;

    transition: background-color .2s ease, color .2s ease, padding .2s ease;
}

.division-link:hover {
    padding-right: 14px;
    background: #FFF3E8;
    color: var(--primary);
}

.division-bullet {
    color: var(--primary);
    font-size: 18px;
}

.content-heading {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.content-icon {
    width: 55px;
    height: 55px;
    flex: 0 0 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFF3E8;
    color: var(--primary);
    border-radius: 12px;

    font-size: 25px;
}

.content-heading h2 {
    margin: 0;
    font-size: 27px;
}

.heading-line {
    width: 90px;
    height: 4px;
    margin-top: 10px;

    background: var(--primary);
    border-radius: 10px;
}

.department-description {
    margin-bottom: 35px;
    padding: 20px 25px;

    background: #FAFAFA;
    color: #444;
    border-right: 4px solid var(--primary);
    border-radius: 8px;

    font-size: 16px;
    line-height: 2.1;
    text-align: justify;
    white-space: normal;
}

.divisions-section {
    margin-top: 30px;
}

.divisions-title {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 20px;
    padding-bottom: 12px;

    border-bottom: 1px solid #eee;
}

.divisions-title h3 {
    margin: 0;
    color: var(--dark);
    font-size: 21px;
}

.title-icon {
    color: var(--primary);
    font-size: 25px;
}

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

.division-card {
    display: flex;
    align-items: center;
    gap: 15px;

    padding: 17px;

    background: var(--white);
    color: inherit;
    border: 1px solid #E8E8E8;
    border-radius: 12px;

    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.division-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

.division-card-number {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #FFF3E8;
    color: var(--primary);
    border-radius: 10px;

    font-weight: 700;
}

.division-card-content {
    flex: 1;
    min-width: 0;
}

.division-card-content h4 {
    margin: 0 0 6px;
    color: #333;
    font-size: 16px;
    line-height: 1.6;
}

.division-card-content span {
    color: #999;
    font-size: 12px;
}

.division-card-content b {
    color: var(--primary);
}

.no-divisions {
    grid-column: 1 / -1;

    padding: 25px;

    background: #FAFAFA;
    color: #888;
    border-radius: 10px;

    text-align: center;
}

/* ==========================================================
   17. LTR
   ========================================================== */
[dir="ltr"] .about-layout {
    grid-template-columns: minmax(0, 1fr) 315px;
}

[dir="ltr"] .about-menu {
    grid-column: 2;
}

[dir="ltr"] .about-content {
    grid-column: 1;
}

[dir="ltr"] .about-menu-item::before {
    right: auto;
    left: 0;
}

[dir="ltr"] .about-menu-item:hover {
    transform: translateX(5px);
}

[dir="ltr"] .about-menu-item.active {
    transform: translateX(3px);
}

[dir="ltr"] .about-menu-header::after {
    right: auto;
    left: 20px;
}

[dir="ltr"] .department-description {
    border-right: 0;
    border-left: 4px solid var(--primary);
}

[dir="ltr"] .division-link {
    padding-right: 8px;
    padding-left: 20px;
}

[dir="ltr"] .division-link:hover {
    padding-left: 14px;
}

[dir="ltr"] .about-text {
    text-align: left;
}

/* ==========================================================
   18. Responsive - مرة واحدة فقط
   ========================================================== */
@media (max-width: 1000px) {
    .nav-links {
        gap: 4px;
    }

    .nav-links a {
        padding: 8px 9px;
        font-size: .9rem;
    }

    .about-layout,
    [dir="ltr"] .about-layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 20px;
    }

    .about-content {
        padding: 35px 30px;
    }

    .about-content-header h2 {
        font-size: 1.45rem;
    }
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        display: none;
        flex-direction: column;
        align-items: stretch;

        padding: 20px 0;

        background: var(--white);
        box-shadow: 0 8px 16px rgba(0, 0, 0, .15);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 4px 15px;
        text-align: center;
    }

    .nav-links a {
        width: 100%;
    }

    .nav-container {
        position: relative;
    }

    .scroll-btn {
        display: none;
    }

    .systems-toggle-btn {
        right: 20px;
        bottom: 20px;
        padding: 12px 18px;
    }

    [dir="ltr"] .systems-toggle-btn {
        right: auto;
        left: 20px;
    }

    .about-page {
        padding: 35px 4% 60px;
    }

    .about-layout,
    [dir="ltr"] .about-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-menu,
    [dir="ltr"] .about-menu {
        position: static;
        grid-column: auto;
    }

    .about-content,
    [dir="ltr"] .about-content {
        grid-column: auto;
    }

    .about-menu-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .about-menu-item {
        min-height: 56px;
        margin-bottom: 0;
    }

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

    .content-heading h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .top-bar {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .top-bar-info {
        justify-content: center;
        gap: 10px 18px;
    }

    .lang-btn {
        align-self: center;
    }

    .logo-emblem,
    .college-logo {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    .logo-title {
        font-size: 16px;
    }

    .logo-subtitle {
        font-size: 10px;
    }

    .brand-logo {
        gap: 10px;
    }

    .page-content {
        padding: 40px 4%;
    }
}

@media (max-width: 600px) {
    .news-section,
    .labs-section,
    .faculty-section,
    .announcements-section {
        padding-right: 15px;
        padding-left: 15px;
    }

    .news-card {
        min-width: 285px;
        max-width: 310px;
    }

    .quick-links {
        padding: 25px 10px;
    }

    .links-container {
        gap: 12px;
    }

    .link-box {
        width: 90;
        height: 70px;
    }

    .link-box img {
        width: 52px;
        height: 52px;
    }

    .link-box > i {
        font-size: 28px;
    }

    .link-box span {
        max-width: 180px;
        font-size: 11px;
    }




.link-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    padding:10px;
    
}

.link-box i {
    font-size: 32px;
    line-height: 1;
}

.link-box h6 {
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    text-align: center;
 }
    .about-menu-list {
        display: flex;
        flex-direction: column;
        gap: 7px;
    }

    .about-menu-item {
        width: 100%;
        margin-bottom: 0;
    }

    .about-content {
        padding: 28px 20px;
    }

    .about-content-header h2 {
        font-size: 1.25rem;
    }

    .about-content-divider {
        margin: 23px 0 25px;
    }

    .about-text {
        font-size: .9rem;
        line-height: 1.95;
        text-align: right;
    }

    [dir="ltr"] .about-text {
        text-align: left;
    }

    .about-page {
        margin-top: 0;
        padding: 20px 10px 50px;
    }

    .department-description {
        padding: 15px;
        font-size: 15px;
        line-height: 1.9;
    }

    .department-link {
        padding: 13px 10px;
    }

    .content-icon {
        width: 45px;
        height: 45px;
        flex-basis: 45px;
        font-size: 20px;
    }

    .content-heading h2 {
        font-size: 20px;
    }

    .systems-drawer {
        width: min(320px, 88vw);
    }
}

@media (max-width: 550px) {
    .page-heading {
        gap: 12px;
        margin-bottom: 25px;
    }

    .page-heading-icon {
        width: 50px;
        height: 50px;
        border-radius: 13px;
        font-size: 1.2rem;
    }

    .page-heading .section-title {
        font-size: 1.45rem;
    }

    .page-heading p {
        font-size: .75rem;
    }
}

/* ==========================================================
   19. تقليل الحركة لمن يفضل ذلك
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
 
/* =========================================================
   SOCIAL LINKS - الشريط العلوي
========================================================= */

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* روابط التواصل */

.social-link {
    width: 32px;
    height: 32px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,.08);

    color: #fff;

    text-decoration: none;

    font-size: 14px;

    transition:
        background-color .25s ease,
        color .25s ease,
        transform .25s ease;
}


/* Facebook */

.social-link:hover {
    background: var(--primary);
    color: #fff;

    transform: translateY(-2px);
}


/* البريد */

.email-link {
    display: flex;
    align-items: center;
    gap: 7px;

    color: #fff;

    text-decoration: none;

    font-size: .82rem;

    margin-right: 8px;

    transition: color .25s ease;
}

.email-link i {
    color: var(--primary-light);
}

.email-link:hover {
    color: var(--primary-light);
}


/* الهاتف */

@media (max-width: 700px) {

    .top-bar {
        padding: 7px 4%;
    }

    .top-bar-info {
        gap: 7px;
    }

    .social-link {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .email-link span {
        display: none;
    }

    .email-link {
        width: 30px;
        height: 30px;

        justify-content: center;

        margin-right: 0;

        background: rgba(255,255,255,.08);

        border-radius: 50%;
    }

}
 
