/**
 * ملف التنسيقات الرئيسي لثيم عمادة البحث العلمي - جامعة شندي
 * Shendi Research Theme Main Stylesheet
 */

/* 1. Variables & Design Tokens */
:root {
    --shendi-primary: #0b2545;
    --shendi-primary-dark: #06172c;
    --shendi-primary-light: #134074;
    --shendi-secondary: #0099ff;
    --shendi-secondary-dark: #0077c8;
    --shendi-accent: #d4af37;
    --shendi-accent-light: #f59e0b;
    --shendi-bg: #f8fafc;
    --shendi-surface: #ffffff;
    --shendi-surface-2: #f1f5f9;
    --shendi-border: #e2e8f0;
    --shendi-text: #1e293b;
    --shendi-text-muted: #64748b;
    --shendi-text-light: #94a3b8;
    --shendi-success: #10b981;
    --shendi-warning: #f59e0b;
    --shendi-danger: #ef4444;
    --shendi-font-main: 'Cairo', 'Tajawal', sans-serif;
    --shendi-shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shendi-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shendi-shadow-lg: 0 10px 25px -5px rgba(11,37,69,0.12), 0 8px 10px -6px rgba(11,37,69,0.08);
    --shendi-shadow-xl: 0 20px 30px -10px rgba(11,37,69,0.2);
    --shendi-radius-sm: 6px;
    --shendi-radius-md: 12px;
    --shendi-radius-lg: 20px;
    --shendi-radius-xl: 30px;
    --shendi-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode Support */
body.shendi-dark-mode {
    --shendi-bg: #090e17;
    --shendi-surface: #111827;
    --shendi-surface-2: #1e293b;
    --shendi-border: #334155;
    --shendi-text: #f1f5f9;
    --shendi-text-muted: #94a3b8;
    --shendi-text-light: #64748b;
    --shendi-shadow-lg: 0 10px 25px -5px rgba(0,0,0,0.5);
}

/* 2. Global Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--shendi-bg);
    color: var(--shendi-text);
    font-family: var(--shendi-font-main);
    direction: rtl;
    text-align: right;
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* ==========================================================================
   TYPOGRAPHY & HEADINGS HIERARCHY (نظام الخطوط والعناوين H1 - H5)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--shendi-font-main);
    line-height: 1.35;
    margin-top: 0;
    margin-bottom: 0.5em;
    font-weight: 800;
    color: var(--shendi-primary);
    transition: color 0.3s ease;
}

/* العنوان الرئيسي الأول H1 */
h1 {
    font-size: clamp(28px, 4vw, 38px);
    font-weight: 900;
    color: var(--shendi-heading-h1, #0b2545);
    letter-spacing: -0.5px;
    line-height: 1.25;
}

/* العنوان الرئيسي الثاني H2 */
h2 {
    font-size: clamp(24px, 3.2vw, 30px);
    font-weight: 800;
    color: var(--shendi-heading-h2, #0b2545);
    line-height: 1.3;
}

/* العناوين الفرعية للبطاقات والكتل H3 */
h3 {
    font-size: clamp(19px, 2.5vw, 23px);
    font-weight: 800;
    color: var(--shendi-heading-h3, #134074);
    line-height: 1.4;
}

/* العناوين الفرعية والمجموعات H4 */
h4 {
    font-size: clamp(17px, 2vw, 19px);
    font-weight: 750;
    color: var(--shendi-heading-h4, #134074);
    line-height: 1.45;
}

/* عناوين الحقول والتفاصيل H5 */
h5 {
    font-size: 16px;
    font-weight: 700;
    color: var(--shendi-heading-h5, #334155);
    line-height: 1.5;
}

/* العناوين الصغرى والشارات H6 */
h6 {
    font-size: 14px;
    font-weight: 700;
    color: var(--shendi-heading-h6, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ألوان العناوين في الوضع الليلي (Dark Mode) */
body.shendi-dark-mode h1 {
    color: #ffffff !important;
}

body.shendi-dark-mode h2 {
    color: #f8fafc !important;
}

body.shendi-dark-mode h3 {
    color: #f1f5f9 !important;
}

body.shendi-dark-mode h4 {
    color: #e2e8f0 !important;
}

body.shendi-dark-mode h5 {
    color: #cbd5e1 !important;
}

body.shendi-dark-mode h6 {
    color: #94a3b8 !important;
}

a {
    color: var(--shendi-secondary);
    text-decoration: none;
    transition: var(--shendi-transition);
}

a:hover {
    color: var(--shendi-primary-light);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.shendi-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 3. Topbar & News Ticker */
.shendi-topbar {
    background-color: var(--shendi-primary-dark);
    color: #e2e8f0;
    font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.shendi-topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    gap: 15px;
}

.shendi-ticker-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow: hidden;
}

.shendi-ticker-badge {
    background: linear-gradient(135deg, var(--shendi-accent), #b8860b);
    color: #0b2545;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: var(--shendi-radius-sm);
    font-size: 12px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.shendi-ticker-content {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
}

.shendi-ticker-items {
    display: inline-block;
    animation: shendiTicker 25s linear infinite;
}

.shendi-ticker-wrap:hover .shendi-ticker-items {
    animation-play-state: paused;
}

.shendi-ticker-item {
    display: inline-block;
    margin-left: 40px;
    color: #cbd5e1;
}

.shendi-ticker-item a {
    color: #f1f5f9;
}

.shendi-ticker-item a:hover {
    color: var(--shendi-accent);
}

@keyframes shendiTicker {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.shendi-topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
}

/* Topbar Nav Menu */
.shendi-topbar-nav {
    display: inline-flex;
    align-items: center;
}

.shendi-topbar-menu-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 16px;
}

.shendi-topbar-menu-list li {
    margin: 0;
    padding: 0;
}

.shendi-topbar-menu-list li a {
    color: #cbd5e1;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--shendi-transition);
    padding: 3px 8px;
    border-radius: var(--shendi-radius-sm);
    background: rgba(255,255,255,0.05);
}

.shendi-topbar-menu-list li a:hover {
    color: #ffffff;
    background: var(--shendi-secondary);
}

.shendi-social-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shendi-social-links a {
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    font-size: 13px;
    transition: var(--shendi-transition);
}

.shendi-social-links a:hover {
    background: var(--shendi-secondary);
    color: #ffffff;
    transform: translateY(-2px);
}

.theme-mode-toggle {
    cursor: pointer;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: var(--shendi-transition);
}

.theme-mode-toggle:hover {
    background: rgba(255,255,255,0.2);
}

/* 4. Main Navbar */
.shendi-main-header {
    background: var(--shendi-surface);
    box-shadow: var(--shendi-shadow-md);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--shendi-transition);
}

.shendi-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
}

.shendi-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.shendi-brand-logos {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shendi-brand-logo {
    height: 70px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.shendi-univ-crest {
    height: 58px;
    width: auto;
    border-left: 2px solid var(--shendi-border);
    padding-left: 10px;
}

.shendi-brand-text h1 {
    font-size: 19px;
    font-weight: 800;
    color: var(--shendi-primary);
    line-height: 1.2;
    margin: 0;
}

body.shendi-dark-mode .shendi-brand-text h1 {
    color: #f8fafc;
}

.shendi-brand-text p {
    font-size: 12px;
    color: var(--shendi-text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.shendi-nav-menu {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.shendi-nav-item,
.shendi-nav-menu > li {
    position: relative;
    list-style: none;
}

.shendi-nav-link,
.shendi-nav-menu > li > a {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    color: var(--shendi-text);
    font-weight: 700;
    font-size: 14.5px;
    border-radius: var(--shendi-radius-sm);
    transition: var(--shendi-transition);
    text-decoration: none;
}

.shendi-nav-menu > li.menu-item-has-children > a::after {
    content: "▾";
    font-size: 11px;
    opacity: 0.7;
    margin-right: 4px;
}

.shendi-nav-link:hover,
.shendi-nav-item.active > .shendi-nav-link,
.shendi-nav-menu > li:hover > a,
.shendi-nav-menu > li.current-menu-item > a {
    color: var(--shendi-secondary);
    background: var(--shendi-surface-2);
}

/* Dropdown Menu & WP Sub-Menu */
.shendi-dropdown-menu,
.shendi-nav-menu ul.sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--shendi-surface);
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 4px 6px rgba(0, 0, 0, 0.04);
    border-radius: var(--shendi-radius-md);
    border: 1.5px solid var(--shendi-border);
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.shendi-nav-item:hover > .shendi-dropdown-menu,
.shendi-nav-menu li:hover > ul.sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.shendi-dropdown-menu li,
.shendi-nav-menu ul.sub-menu li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}

.shendi-dropdown-menu li a,
.shendi-nav-menu ul.sub-menu li a {
    display: block;
    padding: 10px 18px;
    color: var(--shendi-text);
    font-size: 13.5px;
    font-weight: 600;
    transition: var(--shendi-transition);
    text-decoration: none;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.shendi-dropdown-menu li:last-child a,
.shendi-nav-menu ul.sub-menu li:last-child a {
    border-bottom: none;
}

.shendi-dropdown-menu li a:hover,
.shendi-nav-menu ul.sub-menu li a:hover {
    background: var(--shendi-surface-2);
    color: var(--shendi-secondary);
    padding-right: 22px;
}

.shendi-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shendi-btn-apply {
    background: linear-gradient(135deg, var(--shendi-primary), var(--shendi-primary-light));
    color: #ffffff !important;
    padding: 10px 20px;
    border-radius: var(--shendi-radius-md);
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(11,37,69,0.25);
    border: 1px solid var(--shendi-accent);
    position: relative;
    overflow: hidden;
}

.shendi-btn-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11,37,69,0.35);
    background: linear-gradient(135deg, var(--shendi-primary-light), var(--shendi-secondary));
}

.shendi-search-toggle {
    background: var(--shendi-surface-2);
    border: 1px solid var(--shendi-border);
    color: var(--shendi-text);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--shendi-transition);
}

.shendi-search-toggle:hover {
    background: var(--shendi-secondary);
    color: #fff;
    border-color: var(--shendi-secondary);
}

.shendi-mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--shendi-text);
    cursor: pointer;
}

/* 5. Top Announcement Banner */
.shendi-top-alert {
    background: linear-gradient(90deg, #b45309, #d97706);
    color: #ffffff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
}

.shendi-top-alert a {
    color: #fef08a;
    text-decoration: underline;
    margin-right: 10px;
}

/* 6. Hero Section */
.shendi-hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(11,37,69,0.94), rgba(6,23,44,0.92)), url('../images/hero-bg.jpg') center/cover no-repeat;
    color: #ffffff;
    padding: 90px 0 130px;
    overflow: hidden;
}

.shendi-hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(212,175,55,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.shendi-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 50px;
    position: relative;
    z-index: 2;
}

.shendi-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212,175,55,0.2);
    border: 1px solid var(--shendi-accent);
    color: var(--shendi-accent);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
}

.shendi-hero-title {
    font-size: 42px;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 20px;
    color: #ffffff;
}

.shendi-hero-title span {
    color: var(--shendi-accent);
    background: linear-gradient(135deg, #ffd700, #d4af37);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shendi-hero-desc {
    font-size: 18px;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 35px;
    max-width: 600px;
}

.shendi-hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.shendi-hero-buttons a,
.shendi-hero-buttons .shendi-btn-primary,
.shendi-hero-buttons .shendi-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 800;
    padding: 15px 32px;
    border-radius: var(--shendi-radius-md);
    text-decoration: none;
    line-height: 1.4;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.shendi-hero-buttons .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

/* زر التقديم الذهبي في الهيرو */
.shendi-hero-buttons .shendi-btn-primary {
    background: linear-gradient(135deg, #ffd700 0%, #d4af37 100%);
    color: #0b2545 !important;
    border: 1.5px solid #ffd700;
    box-shadow: 0 4px 18px rgba(212, 175, 55, 0.4);
}

.shendi-hero-buttons .shendi-btn-primary:hover {
    background: #ffffff;
    color: #0b2545 !important;
    border-color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.35);
}

/* زر دليل المجلات العلمية الزجاجي الأنيق في الهيرو */
.shendi-hero-buttons .shendi-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
}

.shendi-hero-buttons .shendi-btn-secondary:hover {
    background: linear-gradient(135deg, #0099ff 0%, #0077c8 100%);
    color: #ffffff !important;
    border-color: #0099ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 153, 255, 0.5);
}

/* ==========================================================================
   BUTTONS SYSTEM (نظام الأزرار الأكاديمي المتطور)
   ========================================================================== */
.button,
button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.shendi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    padding: 12px 24px;
    border-radius: var(--shendi-radius-md);
    border: 1.5px solid transparent;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: var(--shendi-transition);
    position: relative;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
}

.button:active,
.shendi-btn:active {
    transform: scale(0.97);
}

.button:focus-visible,
.shendi-btn:focus-visible {
    outline: 3px solid rgba(0, 153, 255, 0.45);
    outline-offset: 2px;
}

/* 1. زر التمييز الذهبي الأكاديمي (Primary Gold) */
.shendi-btn-primary {
    background: linear-gradient(135deg, var(--shendi-accent) 0%, #b8860b 100%);
    color: #0b2545 !important;
    font-weight: 800;
    padding: 14px 30px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.shendi-btn-primary:hover {
    background: linear-gradient(135deg, #ffd700 0%, var(--shendi-accent) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.5);
    color: #06172c !important;
}

/* 2. زر الكحلي الملكي (Navy Button) */
.shendi-btn-navy,
.shendi-btn-apply {
    background: linear-gradient(135deg, var(--shendi-primary) 0%, var(--shendi-primary-light) 100%);
    color: #ffffff !important;
    border: 1.5px solid var(--shendi-accent);
    box-shadow: 0 4px 15px rgba(11, 37, 69, 0.3);
}

.shendi-btn-navy:hover,
.shendi-btn-apply:hover {
    background: linear-gradient(135deg, var(--shendi-primary-light) 0%, var(--shendi-secondary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(11, 37, 69, 0.45);
    border-color: #ffd700;
}

/* 3. الزر الثانوي (Secondary / Outline / Glass) */
.button.button-secondary,
.shendi-btn-secondary {
    background: var(--shendi-surface);
    color: var(--shendi-primary) !important;
    border: 1.5px solid var(--shendi-border);
    box-shadow: var(--shendi-shadow-sm);
    font-weight: 700;
}

body.shendi-dark-mode .button.button-secondary,
body.shendi-dark-mode .shendi-btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5f9 !important;
    border-color: rgba(255, 255, 255, 0.18);
}

.button.button-secondary:hover,
.shendi-btn-secondary:hover {
    background: var(--shendi-primary);
    color: #ffffff !important;
    border-color: var(--shendi-primary);
    transform: translateY(-2px);
    box-shadow: var(--shendi-shadow-md);
}

/* في الأقسام الداكنة مثل CTA */
.shendi-section .shendi-btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.shendi-section .shendi-btn-secondary:hover {
    background: #0099ff;
    color: #ffffff !important;
    border-color: #0099ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.4);
}

/* 4. الزر الأزرق النيلي (Secondary Blue) */
.shendi-btn-blue,
.shendi-btn-apply-sm {
    background: linear-gradient(135deg, var(--shendi-secondary) 0%, var(--shendi-secondary-dark) 100%);
    color: #ffffff !important;
    font-size: 13.5px;
    padding: 9px 18px;
    border-radius: var(--shendi-radius-sm);
    box-shadow: 0 3px 10px rgba(0, 153, 255, 0.25);
}

.shendi-btn-apply-sm:hover,
.shendi-btn-blue:hover {
    background: linear-gradient(135deg, #2563eb 0%, var(--shendi-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 153, 255, 0.4);
}

/* 5. زر التحديد والفلاتر (Filter Buttons) */
.shendi-filter-btn {
    background: var(--shendi-surface);
    color: var(--shendi-text);
    border: 1.5px solid var(--shendi-border);
    padding: 8px 22px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shendi-shadow-sm);
}

.shendi-filter-btn:hover {
    border-color: var(--shendi-secondary);
    color: var(--shendi-secondary);
}

.shendi-filter-btn.active {
    background: var(--shendi-primary);
    color: #ffffff !important;
    border-color: var(--shendi-primary);
    box-shadow: 0 4px 12px rgba(11, 37, 69, 0.25);
}

/* 6. أحجام الأزرار (Button Sizes) */
.shendi-btn-sm {
    padding: 7px 14px;
    font-size: 13px;
    border-radius: var(--shendi-radius-sm);
}

.shendi-btn-lg {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--shendi-radius-lg);
}

.shendi-btn-block {
    width: 100%;
    display: flex;
}

/* 7. حالة التحميل والتعطيل (Disabled & Loading States) */
.button:disabled,
.shendi-btn:disabled,
.button.disabled,
.shendi-btn.disabled {
    opacity: 0.65;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

.shendi-btn-loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: shendiSpin 0.75s linear infinite;
}

@keyframes shendiSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   INPUTS & FORM CONTROLS (حقول الإدخال والنماذج المتطورة)
   ========================================================================== */

.shendi-apply-card,
.shendi-form-container {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-xl);
    padding: 40px;
    box-shadow: var(--shendi-shadow-lg);
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    transition: var(--shendi-transition);
}

.shendi-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 24px;
}

.shendi-form-full {
    grid-column: 1 / -1;
}

.shendi-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: relative;
}

.shendi-form-group label {
    font-weight: 700;
    font-size: 14.5px;
    color: var(--shendi-text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.shendi-form-required {
    color: #ef4444;
    font-weight: 800;
    font-size: 15px;
}

/* حقول النصوص والإدخال الموحدة */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea,
.shendi-form-control {
    width: 100%;
    padding: 13px 18px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--shendi-text);
    background-color: var(--shendi-bg);
    border: 1.5px solid var(--shendi-border);
    border-radius: var(--shendi-radius-md);
    transition: all 0.25s ease-in-out;
    outline: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

/* حالة التركيز (Focus State) */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus,
.shendi-form-control:focus {
    border-color: var(--shendi-secondary);
    background-color: var(--shendi-surface);
    box-shadow: 0 0 0 4px rgba(0, 153, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* نصوص التلميح داخل الحقول (Placeholders) */
::placeholder {
    color: var(--shendi-text-light);
    opacity: 1;
    font-weight: 400;
    font-size: 14px;
}

/* القوائم المنسدلة المخصصة (Custom Select) */
select,
select.shendi-form-control {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 14px center;
    background-size: 16px 16px;
    padding-left: 42px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

select option {
    background: var(--shendi-surface);
    color: var(--shendi-text);
    padding: 10px;
}

/* النصوص الطويلة (Textarea) */
textarea,
textarea.shendi-form-control {
    min-height: 130px;
    resize: vertical;
    line-height: 1.8;
}

/* حقل التاريخ (Date Input) */
input[type="date"] {
    cursor: pointer;
    font-family: inherit;
}

/* حقل البحث (Search Form) */
.search-form {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.search-form input[type="search"] {
    padding-left: 50px;
    border-radius: 30px;
}

.search-form button,
.search-form input[type="submit"] {
    position: absolute;
    left: 4px;
    top: 4px;
    bottom: 4px;
    padding: 8px 18px;
    border-radius: 30px;
}

/* منطقة سحب وإفلات الملفات (File Upload Dropzone) */
.shendi-file-dropzone {
    border: 2px dashed var(--shendi-border);
    padding: 35px 25px;
    text-align: center;
    border-radius: var(--shendi-radius-lg);
    background: var(--shendi-surface-2);
    cursor: pointer;
    transition: var(--shendi-transition);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.shendi-file-dropzone:hover,
.shendi-file-dropzone.dragover {
    border-color: var(--shendi-secondary);
    background: rgba(0, 153, 255, 0.05);
    transform: translateY(-2px);
}

.shendi-file-dropzone .dashicons {
    font-size: 42px;
    width: 42px;
    height: 42px;
    color: var(--shendi-secondary);
    transition: transform 0.3s ease;
}

.shendi-file-dropzone:hover .dashicons {
    transform: translateY(-4px) scale(1.1);
}

/* صناديق الاختيار وأزرار الراديو (Checkboxes & Radios) */
input[type="checkbox"],
input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--shendi-border);
    border-radius: 5px;
    background: var(--shendi-surface);
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    margin-left: 8px;
    vertical-align: middle;
    transition: var(--shendi-transition);
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="checkbox"]:checked {
    background: var(--shendi-secondary);
    border-color: var(--shendi-secondary);
}

input[type="checkbox"]:checked::before {
    content: "✓";
    font-size: 13px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
}

input[type="radio"]:checked {
    border-color: var(--shendi-secondary);
}

input[type="radio"]:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--shendi-secondary);
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: 2px solid var(--shendi-secondary);
    outline-offset: 2px;
}

/* رسائل التنبيه والتغذية الراجعة للنماذج (Form Alerts & Feedback) */
.shendi-alert {
    padding: 16px 22px;
    border-radius: var(--shendi-radius-md);
    margin-bottom: 25px;
    font-size: 14.5px;
    line-height: 1.7;
    border: 1px solid transparent;
    display: flex;
    flex-direction: column;
    gap: 6px;
    animation: shendiFadeIn 0.3s ease-in-out;
}

.shendi-alert-success {
    background: #f0fdf4;
    color: #166534;
    border-color: #86efac;
}

.shendi-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fca5a5;
}

.shendi-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-color: #fde68a;
}

.shendi-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}

@keyframes shendiFadeIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* نصوص الملاحظات المساعدة (Form Hints & Errors) */
.shendi-form-hint {
    font-size: 12.5px;
    color: var(--shendi-text-muted);
    margin-top: 2px;
}

.shendi-form-error {
    font-size: 12.5px;
    color: #ef4444;
    font-weight: 600;
    margin-top: 2px;
}

/* حالة الحقل غير الصحيح والصحيح (Validation States) */
.is-invalid,
.shendi-form-control.is-invalid {
    border-color: #ef4444 !important;
    background-color: #fff5f5 !important;
}

.is-invalid:focus,
.shendi-form-control.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15) !important;
}

.is-valid,
.shendi-form-control.is-valid {
    border-color: #10b981 !important;
}

/* دارك مود للنماذج والمدخلات (Dark Mode Form Adaptations) */
body.shendi-dark-mode input[type="text"],
body.shendi-dark-mode input[type="email"],
body.shendi-dark-mode input[type="url"],
body.shendi-dark-mode input[type="password"],
body.shendi-dark-mode input[type="search"],
body.shendi-dark-mode input[type="number"],
body.shendi-dark-mode input[type="tel"],
body.shendi-dark-mode input[type="date"],
body.shendi-dark-mode select,
body.shendi-dark-mode textarea,
body.shendi-dark-mode .shendi-form-control {
    background-color: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

body.shendi-dark-mode input:focus,
body.shendi-dark-mode select:focus,
body.shendi-dark-mode textarea:focus,
body.shendi-dark-mode .shendi-form-control:focus {
    background-color: #0f172a;
    border-color: var(--shendi-secondary);
}

body.shendi-dark-mode .shendi-file-dropzone {
    background-color: #1e293b;
    border-color: #334155;
}

body.shendi-dark-mode .shendi-alert-success {
    background: rgba(22, 101, 52, 0.2);
    color: #86efac;
    border-color: #166534;
}

/* ==========================================================================
   SECTIONS & ACADEMIC GRID COMPONENTS (الأقسام والشبكات الأكاديمية)
   ========================================================================== */

/* 1. العامة والأقسام (General Section Styles) */
.shendi-section {
    padding: 80px 0;
    position: relative;
}

.shendi-section-header {
    text-align: center;
    max-width: 820px;
    margin: 0 auto 50px;
}

.shendi-section-subtitle {
    display: inline-block;
    font-size: 13.5px;
    font-weight: 800;
    color: var(--shendi-secondary);
    background: rgba(0, 153, 255, 0.08);
    padding: 5px 18px;
    border-radius: 30px;
    margin-bottom: 12px;
}

.shendi-section-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--shendi-primary);
    margin-bottom: 12px;
    line-height: 1.3;
}

body.shendi-dark-mode .shendi-section-title {
    color: #ffffff;
}

.shendi-section-desc {
    font-size: 16px;
    color: var(--shendi-text-muted);
    line-height: 1.8;
    margin: 0;
}

/* 2. بطاقة الخدمات العائمة في الهيرو (Hero Quick Links Card) */
.shendi-hero-card {
    background: rgba(11, 37, 69, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(212, 175, 55, 0.3);
    border-radius: var(--shendi-radius-xl);
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

.shendi-hero-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    padding-bottom: 15px;
    margin-bottom: 18px;
}

.shendi-hero-card-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    margin: 0;
}

.shendi-quick-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.shendi-quick-links-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--shendi-radius-md);
    color: #e2e8f0;
    font-size: 14px;
    font-weight: 600;
    transition: var(--shendi-transition);
}

.shendi-quick-links-list li a:hover {
    background: rgba(0, 153, 255, 0.2);
    border-color: var(--shendi-accent);
    color: #ffffff;
    transform: translateX(-5px);
}

/* 3. شريط العدادات والإحصائيات (Stats Counters) */
.shendi-stats-section {
    background: transparent;
    padding: 0;
    margin-top: -45px;
    position: relative;
    z-index: 10;
}

.shendi-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-xl);
    padding: 30px;
    box-shadow: var(--shendi-shadow-xl);
}

.shendi-stat-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
    border-left: 1px solid var(--shendi-border);
}

.shendi-stat-card:last-child {
    border-left: none;
}

.shendi-stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 153, 255, 0.12), rgba(11, 37, 69, 0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--shendi-secondary);
    font-size: 30px;
    flex-shrink: 0;
}

.shendi-stat-info h3,
.stat-count {
    font-size: 32px;
    font-weight: 900;
    color: var(--shendi-primary);
    margin: 0 0 4px;
    line-height: 1;
}

body.shendi-dark-mode .shendi-stat-info h3,
body.shendi-dark-mode .stat-count {
    color: #ffffff;
}

.shendi-stat-info p {
    font-size: 13.5px;
    color: var(--shendi-text-muted);
    font-weight: 600;
    margin: 0;
}

/* 4. قسم كلمة عميد البحث العلمي (Dean's Section) */
.shendi-dean-section {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-xl);
    padding: 45px;
    box-shadow: var(--shendi-shadow-lg);
    position: relative;
    overflow: hidden;
}

.shendi-dean-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: linear-gradient(to bottom, var(--shendi-accent), var(--shendi-secondary));
}

.shendi-dean-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 45px;
    align-items: center;
}

.shendi-dean-photo-wrap {
    text-align: center;
    position: relative;
}

.shendi-dean-photo {
    width: 100%;
    max-width: 270px;
    height: 330px;
    object-fit: cover;
    border-radius: var(--shendi-radius-lg);
    border: 4px solid var(--shendi-surface);
    box-shadow: var(--shendi-shadow-lg);
}

.shendi-dean-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--shendi-primary);
    margin: 8px 0 18px;
}

body.shendi-dark-mode .shendi-dean-content h2 {
    color: #ffffff;
}

.shendi-dean-quote {
    font-size: 16px;
    line-height: 2;
    color: var(--shendi-text);
    margin-bottom: 25px;
    padding: 22px;
    background: var(--shendi-surface-2);
    border-radius: var(--shendi-radius-md);
    border-right: 4px solid var(--shendi-secondary);
}

.shendi-dean-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    border-top: 1px solid var(--shendi-border);
    padding-top: 20px;
}

.shendi-dean-meta h4 {
    font-size: 18px;
    font-weight: 800;
    color: var(--shendi-primary);
    margin: 0 0 4px;
}

body.shendi-dark-mode .shendi-dean-meta h4 {
    color: #ffffff;
}

.shendi-dean-meta span {
    font-size: 13.5px;
    color: var(--shendi-text-muted);
    font-weight: 600;
}

/* 5. المشروعات البحثية (Research Projects Grid & Cards) */
.shendi-projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shendi-project-card {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-lg);
    padding: 30px;
    box-shadow: var(--shendi-shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--shendi-transition);
    position: relative;
}

.shendi-project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shendi-shadow-xl);
    border-color: var(--shendi-secondary);
}

.shendi-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.shendi-status-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.shendi-status-open {
    background: #dcfce7;
    color: #166534;
}

.shendi-status-ongoing {
    background: #fef9c3;
    color: #854d0e;
}

.shendi-status-completed {
    background: #dbeafe;
    color: #1e40af;
}

.shendi-status-closed {
    background: #fee2e2;
    color: #991b1b;
}

.shendi-project-title {
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 12px;
    line-height: 1.45;
}

.shendi-project-title a {
    color: var(--shendi-primary);
}

body.shendi-dark-mode .shendi-project-title a {
    color: #f1f5f9;
}

.shendi-project-title a:hover {
    color: var(--shendi-secondary);
}

.shendi-project-desc {
    font-size: 14px;
    color: var(--shendi-text-muted);
    line-height: 1.7;
    margin-bottom: 20px;
}

.shendi-project-details {
    background: var(--shendi-surface-2);
    padding: 14px 18px;
    border-radius: var(--shendi-radius-md);
    font-size: 13px;
    color: var(--shendi-text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.shendi-project-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* 6. المجلات العلمية (Scientific Journals Grid & Cards) */
.shendi-journals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shendi-journal-card {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-lg);
    overflow: hidden;
    box-shadow: var(--shendi-shadow-md);
    transition: var(--shendi-transition);
    display: flex;
    flex-direction: column;
}

.shendi-journal-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shendi-shadow-xl);
}

.shendi-journal-cover {
    background: linear-gradient(135deg, #0b2545, #134074);
    padding: 30px 25px;
    color: #ffffff;
    text-align: center;
    position: relative;
}

.shendi-journal-issn-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.25);
    border: 1px solid var(--shendi-accent);
    color: var(--shendi-accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.shendi-journal-body {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.shendi-indexing-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 15px 0;
}

.shendi-index-tag {
    font-size: 11.5px;
    background: var(--shendi-surface-2);
    border: 1px solid var(--shendi-border);
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    color: var(--shendi-primary);
}

body.shendi-dark-mode .shendi-index-tag {
    color: #93c5fd;
}

/* 7. الأخبار والفعاليات (News & Events) */
.shendi-news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.shendi-news-card {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-lg);
    overflow: hidden;
    box-shadow: var(--shendi-shadow-md);
    transition: var(--shendi-transition);
    display: flex;
    flex-direction: column;
}

.shendi-news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shendi-shadow-xl);
}

.shendi-news-thumb {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.shendi-news-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.shendi-news-date {
    font-size: 12.5px;
    color: var(--shendi-secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.shendi-news-title {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.45;
    margin: 0 0 10px;
}

.shendi-news-title a {
    color: var(--shendi-primary);
}

body.shendi-dark-mode .shendi-news-title a {
    color: #f1f5f9;
}

.shendi-news-title a:hover {
    color: var(--shendi-secondary);
}

.shendi-news-excerpt {
    font-size: 14px;
    color: var(--shendi-text-muted);
    line-height: 1.7;
    margin-bottom: 15px;
}

.shendi-news-link {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shendi-secondary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 8. ترويسات الصفحات ومسار التنقل (Page Header & Breadcrumbs) */
.shendi-page-header {
    background: linear-gradient(135deg, #0b2545, #134074);
    color: #ffffff;
    padding: 55px 0;
    text-align: center;
    position: relative;
}

.shendi-breadcrumbs {
    font-size: 13.5px;
    color: #cbd5e1;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shendi-breadcrumbs a {
    color: #94a3b8;
    transition: var(--shendi-transition);
}

.shendi-breadcrumbs a:hover {
    color: #ffffff;
}

/* 9. الأقسام واللوائح (Departments & Regulations) */
.shendi-departments-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.shendi-dept-card {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-lg);
    padding: 30px;
    box-shadow: var(--shendi-shadow-md);
    transition: var(--shendi-transition);
}

.shendi-dept-card:hover {
    transform: translateY(-5px);
    border-color: var(--shendi-secondary);
}

.shendi-regulations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.shendi-regulation-item {
    background: var(--shendi-surface);
    border: 1px solid var(--shendi-border);
    border-radius: var(--shendi-radius-md);
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--shendi-transition);
}

.shendi-regulation-item:hover {
    border-color: var(--shendi-secondary);
    transform: translateX(-5px);
}

/* 10. زر الصعود للأعلى (Back to Top) */
.shendi-back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--shendi-primary);
    color: #ffffff;
    border: 2px solid var(--shendi-accent);
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: var(--shendi-shadow-lg);
    transition: var(--shendi-transition);
    font-size: 22px;
}

.shendi-back-to-top:hover {
    background: var(--shendi-secondary);
    transform: translateY(-4px);
}

/* 14. Footer */
.shendi-main-footer {
    background: #06172c;
    color: #cbd5e1;
    padding-top: 70px;
    border-top: 3px solid var(--shendi-accent);
}

.shendi-footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.shendi-footer-col h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.shendi-footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 3px;
    background: var(--shendi-accent);
    border-radius: 2px;
}

.shendi-footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.shendi-footer-links li a {
    color: #94a3b8;
    font-size: 14px;
    transition: var(--shendi-transition);
}

.shendi-footer-links li a:hover {
    color: var(--shendi-accent);
    padding-right: 6px;
}

.shendi-footer-copyright {
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: #64748b;
}

.shendi-footer-copyright strong {
    color: #cbd5e1;
}

/* 15. Responsive Breakpoints */
@media (max-width: 1024px) {
    .shendi-hero-grid {
        grid-template-columns: 1fr;
    }
    .shendi-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shendi-projects-grid,
    .shendi-journals-grid,
    .shendi-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .shendi-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .shendi-topbar {
        display: none;
    }
    .shendi-nav-menu {
        display: none;
    }
    .shendi-mobile-toggle {
        display: block;
    }
    .shendi-mobile-lang-wrap {
        display: inline-flex !important;
        align-items: center;
    }
    .shendi-mobile-lang-wrap .shendi-lang-btn {
        background: var(--shendi-surface-2, #f1f5f9);
        color: var(--shendi-text, #0f172a);
        border: 1px solid var(--shendi-border, #cbd5e1);
    }
    body.shendi-dark-mode .shendi-mobile-lang-wrap .shendi-lang-btn {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }
    .shendi-stats-grid {
        grid-template-columns: 1fr;
    }
    .shendi-dean-grid {
        grid-template-columns: 1fr;
    }
    .shendi-projects-grid,
    .shendi-journals-grid,
    .shendi-news-grid {
        grid-template-columns: 1fr;
    }
    .shendi-footer-grid {
        grid-template-columns: 1fr;
    }
    .shendi-form-grid {
        grid-template-columns: 1fr;
    }
    .shendi-hero-title {
        font-size: 28px;
    }
}

/* ==========================================================================
   16. MULTILINGUAL & AUTO-TRANSLATION SYSTEM (نظام اللغات والترجمة الآلية)
   ========================================================================== */

/* إخفاء إطارات جوجل ترانسليت الافتراضية لمنع تشويه الترويسة */
.goog-te-banner-frame.skiptranslate,
iframe.skiptranslate,
#goog-gt-tt,
.goog-te-balloon-frame {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

body {
    top: 0px !important;
    position: static !important;
}

.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* محول اللغات في الترويسة والشريط العلوي */
.shendi-lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    font-family: inherit;
    z-index: 105;
}

.shendi-lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    white-space: nowrap;
    outline: none;
}

.shendi-lang-btn:hover,
.shendi-lang-switcher.is-open .shendi-lang-btn {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--shendi-accent);
    color: #ffd700;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.3);
}

.shendi-lang-current-flag {
    font-size: 15px;
    line-height: 1;
}

.shendi-lang-arrow {
    font-size: 14px;
    width: 14px;
    height: 14px;
    transition: transform 0.25s ease;
}

.shendi-lang-switcher.is-open .shendi-lang-arrow {
    transform: rotate(180deg);
}

/* القائمة المنسدلة للغات */
.shendi-lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 180px;
    background: var(--shendi-surface, #ffffff);
    border: 1px solid var(--shendi-border, #e2e8f0);
    border-radius: var(--shendi-radius-md, 12px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    padding: 6px;
    margin: 0;
    list-style: none;
    display: none;
    flex-direction: column;
    gap: 4px;
    z-index: 1000;
    animation: shendiFadeInDown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.shendi-lang-switcher.is-open .shendi-lang-dropdown {
    display: flex;
}

body.shendi-dark-mode .shendi-lang-dropdown {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.shendi-lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--shendi-text, #1e293b);
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
    cursor: pointer;
    transition: all 0.2s ease;
}

body.shendi-dark-mode .shendi-lang-option {
    color: #e2e8f0;
}

.shendi-lang-option:hover {
    background: rgba(0, 153, 255, 0.08);
    color: var(--shendi-secondary, #0099ff);
    padding-right: 15px;
}

.shendi-lang-option.is-active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    color: #b8860b;
    font-weight: 800;
    border: 1px solid rgba(212, 175, 55, 0.25);
}

body.shendi-dark-mode .shendi-lang-option.is-active {
    color: #ffd700;
}

.shendi-lang-native {
    flex: 1;
}

.shendi-lang-sub {
    font-size: 11px;
    color: #94a3b8;
    margin-right: auto;
}

.shendi-lang-check {
    display: none;
    color: var(--shendi-accent, #d4af37);
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.shendi-lang-option.is-active .shendi-lang-check {
    display: inline-flex;
}

/* زر الترجمة العائم (Floating Language Switcher) */
.shendi-floating-translator {
    position: fixed;
    z-index: 9999;
    font-family: inherit;
}

.shendi-floating-translator.pos-bottom-right {
    bottom: 25px;
    right: 25px;
}

.shendi-floating-translator.pos-bottom-left {
    bottom: 25px;
    left: 25px;
}

.shendi-floating-lang-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #ffffff;
    border: 2px solid var(--shendi-accent, #d4af37);
    box-shadow: 0 6px 20px rgba(11, 37, 69, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.shendi-floating-lang-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
    border-color: #ffd700;
}

.shendi-floating-icon {
    font-size: 20px;
    line-height: 1;
}

.shendi-floating-active-flag {
    position: absolute;
    bottom: -3px;
    right: -3px;
    font-size: 13px;
    background: #ffffff;
    border-radius: 50%;
    padding: 1px 3px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.shendi-floating-lang-card {
    position: absolute;
    bottom: calc(100% + 12px);
    width: 260px;
    background: #ffffff;
    border: 1px solid var(--shendi-border, #e2e8f0);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    display: none;
    animation: shendiFadeInUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.shendi-floating-translator.pos-bottom-right .shendi-floating-lang-card {
    right: 0;
}

.shendi-floating-translator.pos-bottom-left .shendi-floating-lang-card {
    left: 0;
}

.shendi-floating-translator.is-active .shendi-floating-lang-card {
    display: block;
}

body.shendi-dark-mode .shendi-floating-lang-card {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.shendi-floating-lang-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
    color: #ffffff;
    font-size: 13.5px;
}

.shendi-floating-close {
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.shendi-floating-close:hover {
    color: #ffffff;
}

.shendi-floating-lang-list {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.shendi-floating-lang-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    text-align: right;
    transition: all 0.2s ease;
}

.shendi-floating-lang-item:hover {
    background: rgba(0, 153, 255, 0.06);
    border-color: rgba(0, 153, 255, 0.2);
}

.shendi-floating-lang-item.is-active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.4);
}

.shendi-floating-lang-flag {
    font-size: 20px;
}

.shendi-floating-lang-text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.shendi-floating-lang-title {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--shendi-text, #0f172a);
}

body.shendi-dark-mode .shendi-floating-lang-title {
    color: #f1f5f9;
}

.shendi-floating-lang-text small {
    font-size: 11px;
    color: #64748b;
}

.shendi-floating-lang-footer {
    padding: 8px 12px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
}

body.shendi-dark-mode .shendi-floating-lang-footer {
    background: #090e17;
    border-top-color: #1e293b;
    color: #64748b;
}

@keyframes shendiFadeInDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* ==========================================================================
   17. FULL LTR COMPATIBILITY FOR MULTILINGUAL MODE (التوافق مع اتجاه LTR)
   ========================================================================== */

html[dir="ltr"],
html.shendi-ltr-mode,
body.shendi-ltr-mode,
html.translated-ltr {
    direction: ltr !important;
    text-align: left !important;
}

/* تخصيص الخطوط للغات اللاتينية (English, French, Turkish) */
html[dir="ltr"]:not(.shendi-lang-zh-cn) body,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h1,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h2,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h3,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h4,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h5,
html[dir="ltr"]:not(.shendi-lang-zh-cn) h6,
html[dir="ltr"]:not(.shendi-lang-zh-cn) input,
html[dir="ltr"]:not(.shendi-lang-zh-cn) select,
html[dir="ltr"]:not(.shendi-lang-zh-cn) textarea,
html[dir="ltr"]:not(.shendi-lang-zh-cn) button {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* تخصيص الخطوط للغة الصينية */
html.shendi-lang-zh-cn body,
html.shendi-lang-zh-cn h1,
html.shendi-lang-zh-cn h2,
html.shendi-lang-zh-cn h3,
html.shendi-lang-zh-cn h4,
html.shendi-lang-zh-cn h5,
html.shendi-lang-zh-cn h6,
html.shendi-lang-zh-cn input,
html.shendi-lang-zh-cn select,
html.shendi-lang-zh-cn textarea,
html.shendi-lang-zh-cn button {
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif !important;
}

/* تعديل محاذاة عناصر الشريط العلوي في وضع LTR */
html[dir="ltr"] .shendi-topbar-inner {
    flex-direction: row;
}

html[dir="ltr"] .shendi-ticker-wrap {
    flex-direction: row;
}

html[dir="ltr"] .shendi-ticker-badge {
    margin-right: 15px;
    margin-left: 0;
}

html[dir="ltr"] .shendi-topbar-links {
    margin-left: auto;
    margin-right: 0;
}

/* تعديل شريط التنقل الرئيسي */
html[dir="ltr"] .shendi-brand {
    text-align: left;
}

html[dir="ltr"] .shendi-brand-text {
    text-align: left;
}

html[dir="ltr"] .shendi-nav-menu {
    flex-direction: row;
}

html[dir="ltr"] .shendi-dropdown-menu {
    left: 0;
    right: auto;
    text-align: left;
}

html[dir="ltr"] .shendi-lang-dropdown {
    left: auto;
    right: 0;
}

html[dir="ltr"] .shendi-lang-option {
    text-align: left;
}

html[dir="ltr"] .shendi-lang-option:hover {
    padding-left: 15px;
    padding-right: 12px;
}

html[dir="ltr"] .shendi-lang-sub {
    margin-left: auto;
    margin-right: 0;
}

/* تعديل الفوتر في LTR */
html[dir="ltr"] .shendi-footer-col h4::after {
    left: 0;
    right: auto;
}

html[dir="ltr"] .shendi-footer-links li a:hover {
    padding-left: 6px;
    padding-right: 0;
}

/* تعديل مسار التنقل (Breadcrumbs) */
html[dir="ltr"] .shendi-breadcrumbs {
    text-align: left;
}

/* تعديل النماذج والمدخلات في LTR */
html[dir="ltr"] .shendi-form-group label,
html[dir="ltr"] .shendi-form-group input,
html[dir="ltr"] .shendi-form-group select,
html[dir="ltr"] .shendi-form-group textarea {
    text-align: left;
}

/* تعديل أزرار الهيرو */
html[dir="ltr"] .shendi-hero-buttons {
    justify-content: flex-start;
}

html[dir="ltr"] .shendi-hero-desc {
    text-align: left;
}

