/* ======================================== */
/*              DGA Design System           */
/*         متوافق مع التصميم الأصلي        */
/* ======================================== */

/* ======================================== */
/*                الخطوط (مرة واحدة فقط)   */
/* ======================================== */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-Thin.ttf') format('truetype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-ExtraLight.ttf') format('truetype');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'IBM Plex Sans Arabic';
    src: url('../fonts/IBMPlexSansArabic-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ======================================== */
/*                المتغيرات (موحدة)        */
/* ======================================== */
:root {
    /* الألوان الأساسية - DGA */
    --color-brand: #1B8354;
    --color-brand-dark: #0A5C3A;
    --color-brand-light: #E8F3EE;
    
    /* الألوان الأساسية - النظام القديم */
    --primary-color: #14573a;
    --primary-dark: #166c45;
    --primary-light: #e8f5e8;
    --secondary-color: #2e7d32;
    --accent-color: #4caf50;
    
    /* الألوان المحايدة */
    --color-white: #FFFFFF;
    --color-black: #000000;
    --color-gray-50: #F9FAFB;
    --color-gray-100: #F3F4F6;
    --color-gray-200: #E5E7EB;
    --color-gray-300: #D1D5DB;
    --color-gray-400: #9CA3AF;
    --color-gray-500: #6B7280;
    --color-gray-600: #4B5563;
    --color-gray-700: #374151;
    --color-gray-800: #1F2937;
    --color-gray-900: #111827;
    
    /* ألوان النصوص */
    --text-dark: #2c3e50;
    --text-light: #666666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* المسافات */
    --container-max-width: 1280px;
    --container-padding: 20px;
    
    /* الظلال */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    
    /* الحدود */
    --border-radius-sm: 4px;
    --border-radius-md: 6px;
    --border-radius-lg: 8px;
    --border-radius-xl: 12px;
    --border-radius-2xl: 16px;
    --border-radius-full: 9999px;
    --border-radius: 8px;
    
    /* الانتقالات */
    --transition: all 0.3s ease;
    
    /* الدارك مود */
    --dark-bg: #1a1a1a;
    --dark-surface: #2d2d2d;
    --dark-text: #ffffff;
    --dark-text-secondary: #b0b0b0;
    --dark-border: #404040;
    --dark-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ======================================== */
/*                الأساسيات                */
/* ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--color-gray-900);
    line-height: 1.5;
    background-color: var(--color-white);
    overflow-x: hidden;
}

.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    width: 100%;
}

/* ======================================== */
/*                الأزرار (جميع الأنواع)   */
/* ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    font-size: 14px;
}

.btn:active {
    transform: translateY(1px);
}

/* أحجام الأزرار */
.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 16px;
}

.btn-xl {
    padding: 16px 32px;
    font-size: 18px;
}

/* أنواع الأزرار */
.btn-primary {
    background-color: var(--color-brand);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-brand-dark);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.btn-secondary:hover {
    background-color: var(--color-brand-light);
}

.btn-transparent {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-transparent:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-white {
    background-color: var(--color-white);
    color: var(--color-brand);
}

.btn-white:hover {
    background-color: var(--color-gray-100);
}

.btn-outline-white {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* أزرار الأيقونات */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--border-radius-md);
    color: var(--color-gray-600);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
}

.action-btn:hover {
    background-color: var(--color-gray-100);
    color: var(--color-brand);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

/* ======================================== */
/*              الشريط العلوي              */
/* ======================================== */
.top-bar {
    background-color: var(--color-gray-50);
    border-bottom: 1px solid var(--color-gray-200);
    height: 48px;
    display: flex;
    align-items: center;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--color-gray-600);
    font-size: 12px;
}

.info-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
}

/* ======================================== */
/*              القائمة الرئيسية           */
/* ======================================== */
.main-nav {
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-main {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    flex-shrink: 0;
}

.logo img {
    height: 64px;
    width: auto;
}

.desktop-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.menu-item {
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    color: var(--color-gray-700);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    transition: all 0.2s ease;
}

.menu-link:hover {
    color: var(--color-brand);
    background-color: var(--color-gray-50);
}

.menu-link svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

/* القوائم المنسدلة */
.has-submenu .menu-link {
    cursor: default;
}

.has-submenu:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-submenu:hover svg {
    transform: rotate(180deg);
}

.submenu {
    position: absolute;
    top: calc(100% - 5px);
    right: 0;
    width: 260px;
    background-color: var(--color-white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-gray-200);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
}

.submenu-arrow {
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    border-right: 1px solid var(--color-gray-200);
    transform: rotate(-45deg);
}

.submenu-content {
    padding: 8px 0;
}

.submenu-link {
    display: block;
    padding: 12px 20px;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    text-align: right;
    border-right: 3px solid transparent;
}

.submenu-link:hover {
    background-color: var(--color-brand-light);
    color: var(--color-brand);
    border-right-color: var(--color-brand);
    padding-right: 28px;
}

/* الأزرار اليمنى */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-btn span {
    font-size: 14px;
}

.login-btn span {
    font-size: 14px;
}

/* زر القائمة للجوال */
.mobile-menu-btn {
    display: none;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-gray-700);
}

.mobile-menu-btn:hover {
    color: var(--color-brand);
}

/* ======================================== */
/*              قائمة الجوال               */
/* ======================================== */
.mobile-menu {
    display: none;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-gray-200);
    padding: 20px 0;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
}

.mobile-menu.active {
    display: block;
}

.mobile-menu-item {
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.mobile-menu-link a {
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    flex: 1;
}

.mobile-submenu-toggle {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: var(--color-gray-500);
}

.mobile-submenu-toggle svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.mobile-submenu {
    display: none;
    padding-right: 20px;
    padding-bottom: 15px;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu a {
    display: block;
    padding: 12px 0;
    color: var(--color-gray-600);
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid var(--color-gray-100);
}

.mobile-submenu a:last-child {
    border-bottom: none;
}

.mobile-menu-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--color-gray-200);
}

.mobile-login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-700);
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
}

/* ======================================== */
/*              الهيرو (Hero)              */
/* ======================================== */
.hero {
    position: relative;
    height: 500px;
    overflow: hidden;
}

@media (min-width:1024px){
    .hero{
        height:600px;
    }
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-img:hover {
    transform: scale(1.05);
}

.hero-overlay {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    background: rgba(0,0,0,0.35);
}

.hero .container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 700px;
    text-align: right;
    animation: fadeInUp .6s ease;
}

.hero-title {
    font-size: 60px;
    color: #fff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-description {
    font-size: 20px;
    color: #fff;
    margin-bottom: 32px;
    line-height: 1.5;
}

.hero-content a {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-content a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive Hero */
@media(max-width:1024px){
    .hero-title { font-size: 50px; }
    .hero-description { font-size: 18px; }
}

@media(max-width:640px){
    .hero-title { font-size: 40px; }
    .hero-description { font-size: 16px; }
    .hero-content a { font-size: 16px; padding: 10px 20px; }
}

/* أيقونة الهيرو العائمة */
.hero-icon-link {
    position: absolute;
    left: 1821px;
    top: 726px;
    width: 35px;
    height: 40px;
    z-index: 10;
    display: block;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.hero-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.hero-icon-link:hover {
    transform: scale(1.1);
}

@media (min-width: 1920px) {
    .hero-icon-link {
        left: calc(50% + (1821px - 960px));
    }
}

@media (max-width: 1919px) {
    .hero-icon-link {
        left: auto;
        right: 99px;
        top: 726px;
    }
}

@media (max-width: 1200px) {
    .hero-icon-link {
        top: auto;
        bottom: 20px;
        right: 20px;
        width: 30px;
        height: 35px;
    }
}

@media (max-width: 768px) {
    .hero-icon-link {
        width: 25px;
        height: 30px;
        bottom: 15px;
        right: 15px;
    }
}

/* ======================================== */
/*              المحتوى الرئيسي            */
/* ======================================== */
.main-content {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 64px var(--container-padding);
}

.section {
    margin-bottom: 80px;
}

.section-gray {
    background-color: var(--color-gray-50);
    padding: 64px 0;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.section .container {
    position: relative;
}

.section-header {
    text-align: right;
    margin-bottom: 48px;
}

.section-title {
    font-size: 30px;
    font-weight: 700;
    line-height: 38px;
    color: var(--color-gray-900);
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    display: none !important;
}

.section-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-gray-600);
    max-width: 768px;
}

.section-footer {
    text-align: left;
    margin-top: 40px;
}

/* ======================================== */
/*              الإحصائيات                */
/* ======================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 48px;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-icon {
    margin-bottom: 16px;
}

.stat-icon svg {
    width: 48px;
    height: 48px;
}

.stat-value {
    font-size: 48px;
    font-weight: 400;
    line-height: 60px;
    color: var(--color-brand-dark);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    color: var(--color-gray-800);
}

/* ======================================== */
/*                الشركاء                 */
/* ======================================== */
.partners-section {
    padding: 40px 0;
}

.partners-slider {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.partners-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-behavior: smooth;
    flex: 1;
}

.partners-track::-webkit-scrollbar {
    display: none;
}

.partners-track {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.partner-item {
    flex-shrink: 0;
    border-radius: var(--border-radius-2xl);
    border: 1px solid var(--color-gray-200);
    padding: 16px;
    transition: all 0.2s ease;
}

.partner-item:hover {
    border-color: var(--color-brand);
    box-shadow: var(--shadow-md);
}

.partner-item img {
    width: 96px;
    height: 80px;
    object-fit: contain;
}

.partner-placeholder {
    width: 96px;
    height: 80px;
    background-color: var(--color-gray-100);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-400);
    font-size: 14px;
}

.slider-btn {
    padding: 12px;
    border-radius: var(--border-radius-full);
    border: 1px solid var(--color-gray-300);
    background-color: var(--color-white);
    color: var(--color-gray-600);
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.slider-btn:hover {
    background-color: var(--color-gray-50);
    color: var(--color-brand);
    border-color: var(--color-brand);
}

.slider-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* ======================================== */
/*                التذييل                 */
/* ======================================== */
.footer {
    background-color: #092A1E;
    color: var(--color-white);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-bottom: 48px;
}

.footer-col {
    text-align: right;
}

.footer-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-white);
    border-bottom: 2px solid var(--color-brand);
    padding-bottom: 8px;
    display: inline-block;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--color-gray-300);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--color-white);
}

.contact-info {
    margin-top: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-300);
    font-size: 14px;
    margin-bottom: 12px;
}

.contact-item svg {
    flex-shrink: 0;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
    justify-content: flex-end;
}

.social-link {
    color: var(--color-gray-400);
    transition: color 0.2s ease;
}

.social-link:hover {
    color: var(--color-white);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

.footer-divider {
    border: none;
    border-top: 1px solid var(--color-gray-700);
    margin: 32px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-direction: row-reverse;
}

.copyright {
    font-size: 14px;
    color: var(--color-gray-400);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    color: var(--color-gray-400);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

.footer-development {
    text-align: center;
    margin-bottom: 32px;
}

.footer-development p {
    font-size: 12px;
    color: var(--color-gray-500);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.footer-logo {
    height: 48px;
    width: auto;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.footer-logo:hover {
    opacity: 1;
}

/* ======================================== */
/*                الحركات                 */
/* ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(50%) translateY(0);
    }
    40% {
        transform: translateX(50%) translateY(-10px);
    }
    60% {
        transform: translateX(50%) translateY(-5px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* ======================================== */
/*           إخفاء شريط التمرير           */
/* ======================================== */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ======================================== */
/*                RTL                     */
/* ======================================== */
[dir="rtl"] .service-link svg,
[dir="rtl"] .news-link svg,
[dir="rtl"] .view-all-link svg {
    transform: rotate(180deg);
}

[dir="rtl"] .slider-btn-prev svg {
    transform: rotate(180deg);
}

[dir="rtl"] .slider-btn-next svg {
    transform: rotate(180deg);
}

/* ======================================== */
/*           زر عرض الكل                  */
/* ======================================== */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background-color: white;
    color: var(--color-brand);
    border: 1px solid var(--color-brand);
    border-radius: var(--border-radius-lg);
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.view-all-btn:hover {
    background-color: var(--color-brand-light);
    gap: 12px;
}

.view-all-btn svg {
    transition: transform 0.2s ease;
}

.view-all-btn:hover svg {
    transform: translateX(-4px);
}

/* ======================================== */
/*           الإكمال التلقائي للبحث        */
/* ======================================== */
.search-container {
    position: relative;
    display: inline-block;
}

.search-input {
    width: 240px;
    padding: 8px 40px 8px 16px;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-full);
    font-family: var(--font-family);
    font-size: 14px;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--color-brand);
    box-shadow: 0 0 0 3px rgba(27, 131, 84, 0.1);
}

.search-btn {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-500);
    cursor: pointer;
}

.clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--color-gray-500);
    cursor: pointer;
    display: none;
}

.search-input:not(:placeholder-shown) + .search-btn + .clear-btn {
    display: block;
}

.suggestions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    margin-top: 4px;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
}

.search-input:focus ~ .suggestions-dropdown,
.suggestions-dropdown.active {
    display: block;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--color-gray-100);
    transition: all 0.2s ease;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background-color: var(--color-brand-light);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.suggestion-category {
    font-size: 12px;
    color: var(--color-gray-500);
}

/* ======================================== */
/*           التلميحات (Tooltips)          */
/* ======================================== */
.tooltip {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-gray-900);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--border-radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--color-gray-900);
}

.action-btn:hover .tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -25px;
}

/* ======================================== */
/*           تاريخ آخر تعديل              */
/* ======================================== */
.last-updated {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    font-size: 14px;
    color: var(--color-gray-500);
    padding-top: 16px;
    margin-top: 32px;
    border-top: 1px solid var(--color-gray-200);
    margin-right: 70px;
}

.last-updated-label {
    font-weight: 600;
    color: var(--color-gray-700);
}

.platform-updated {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 12px 16px;
    background-color: rgba(27, 131, 84, 0.05);
    border-radius: var(--border-radius-full);
}

.updated-badge {
    background-color: var(--color-brand);
    color: white;
    padding: 4px 12px;
    border-radius: var(--border-radius-full);
    font-size: 12px;
    font-weight: 600;
}

.updated-date {
    font-size: 14px;
    color: var(--color-gray-700);
    font-weight: 500;
}

.updated-version {
    font-size: 12px;
    color: var(--color-gray-500);
    padding-right: 8px;
    margin-right: 8px;
    border-right: 1px solid var(--color-gray-300);
}

/* ======================================== */
/*           قسم الإنجازات والأرقام       */
/* ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-dark);
    font-weight: 600;
}

.stat-description {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

/* ======================================== */
/*           قسم القيم                     */
/* ======================================== */
.values-section-riyadh {
    padding: 80px 0;
    background: white;
}

.value-card-riyadh {
    background: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    height: 100%;
}

.value-card-riyadh:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.value-icon-riyadh {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.value-card-riyadh:hover .value-icon-riyadh {
    background: var(--primary-color);
    transform: scale(1.1);
}

.value-icon-riyadh img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.value-card-riyadh:hover .value-icon-riyadh img {
    filter: brightness(0) invert(1);
}

.value-title-riyadh {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.value-description {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ======================================== */
/*           البطاقات (للأخبار والخدمات)  */
/* ======================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.simple-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid #f0f0f0;
}

.simple-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.card-img-container {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.simple-card:hover .card-img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    height: 3em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.card-meta {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f0;
}

.details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background-color: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
    width: fit-content;
}

.details-btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(30, 107, 71, 0.3);
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* ======================================== */
/*           التنسيق الأساسي للصفحات      */
/* ======================================== */
.story-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 4rem) 80px;
    width: 100%;
    box-sizing: border-box;
}

.content-text {
    font-size: clamp(1.1rem, 3vw, 1.2rem);
    line-height: 1.9;
    color: var(--text-light);
    text-align: justify;
    margin-bottom: 2rem;
}

.section-header {
    text-align: center !important;
    margin-bottom: clamp(2rem, 5vw, 4rem) !important;
    position: relative !important;
}

.section-number {
    font-size: clamp(4rem, 15vw, 6rem);
    font-weight: 900;
    color: rgba(27, 131, 84, 0.1);
    position: absolute;
    top: clamp(-1rem, -3vw, -2rem);
    right: 0;
    left: 0;
    z-index: 1;
}

.section-subtitle {
    font-size: clamp(1rem, 3vw, 1.3rem);
    color: var(--primary-dark);
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto var(--section-spacing);
    padding: 0 clamp(1rem, 3vw, 0);
}

/* معرض الصور */
.jouf-gallary {
    display: grid;
    align-items: center;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem auto;
    padding: 0 1rem;
    max-width: 1400px;
}

.jouf-gallary img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.jouf-gallary img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

@media (max-width: 768px) {
    .jouf-gallary {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    .jouf-gallary img { height: 200px; }
}

@media (max-width: 576px) {
    .jouf-gallary {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .jouf-gallary img { height: 250px; }
}

.jouf-gallary img:active {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    width: 90vw;
    height: auto;
    max-height: 90vh;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

/* ======================================== */
/*           content-section-riyadh        */
/* ======================================== */
.content-section-riyadh {
    padding: clamp(20px, 5vw, 60px) 0;
    background: var(--bg-light);
    direction: rtl;
}

.content-card-riyadh {
    background: #ffffff;
    padding: clamp(16px, 4vw, 40px);
    border-radius: clamp(10px, 3vw, 15px);
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.content-card-riyadh:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(clamp(-2px, -0.6vw, -5px));
}

.section-title-riyadh {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    color: var(--text-dark);
    margin-bottom: clamp(8px, 2.5vw, 24px);
    padding-bottom: clamp(6px, 2vw, 16px);
    font-weight: 700;
    font-size: clamp(18px, 4.5vw, 32px);
    line-height: 1.3;
    text-align: right;
    position: relative;
}

.section-title-riyadh::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: clamp(40px, 10vw, 80px);
    height: clamp(2px, 0.6vw, 4px);
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 2px;
}

.content-text-riyadh {
    font-weight: 400;
    font-size: clamp(14px, 3.5vw, 18px);
    line-height: clamp(1.5, 1.8, 1.9);
    color: var(--text-light);
}

.content-text-riyadh p {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
    margin-bottom: 1.5rem;
    text-align: justify;
    font-size: clamp(16px, 3.9vw, 18px);
    line-height: clamp(1.6, 1.8, 2);
    color: var(--text-dark);
}

.content-text-riyadh h1, .content-text-riyadh h2, .content-text-riyadh h3,
.content-text-riyadh h4, .content-text-riyadh h5, .content-text-riyadh h6 {
    color: #14573a;
}

.content-text-riyadh li {
    font-size: 16px;
    color: #1a1a1a;
}

.content-text-riyadh a {
    color: #14573a;
}

/* ======================================== */
/*           هيرو هيدر (النسخة القديمة)    */
/* ======================================== */
.hero-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
    color: white !important;
    padding: clamp(8px, 3vw, 28px) 0 clamp(6px, 1.8vw, 12px) !important;
    border-radius: 0 0 clamp(14px, 4vw, 22px) clamp(14px, 4vw, 22px) !important;
    position: relative;
    overflow: hidden;
    margin: 0 !important;
}

.hero-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
    pointer-events: none;
    opacity: 0.3;
}

.hero-title {
    font-size: clamp(14px, 4.2vw, 24px) !important;
    line-height: 1.2;
    margin-bottom: clamp(4px, 1.5vw, 10px);
}

.hero-subtitle {
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.25;
    margin-bottom: clamp(6px, 2vw, 14px);
}

.hero-breadcrumb {
    font-size: clamp(11px, 3vw, 15px) !important;
    margin-top: clamp(4px, 1.5vw, 8px);
}

.breadcrumb-item {
    font-size: clamp(11px, 2.8vw, 15px) !important;
    padding: 1px clamp(4px, 1.5vw, 6px) !important;
    line-height: 1.1;
}

.breadcrumb-separator {
    font-size: clamp(9px, 2.2vw, 11px) !important;
    margin: 0 clamp(2px, 0.8vw, 4px);
}

/* ======================================== */
/*           التجاوب - الشاشات             */
/* ======================================== */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .top-bar-content {
        flex-direction: column;
        height: auto;
        padding: 8px 0;
    }
    
    .top-bar-actions {
        width: 100%;
        justify-content: center;
    }
    
    .top-bar-info {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-content {
        height: 70px;
    }
    
    .logo img {
        height: 48px;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 48px;
    }
    
    .hero-description {
        font-size: 16px;
        line-height: 24px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 24px;
        line-height: 32px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .service-card {
        padding: 16px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .partners-slider {
        gap: 8px;
    }
    
    .partner-item img {
        width: 80px;
        height: 64px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-logos {
        flex-wrap: wrap;
    }
    
    .cards-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .card-img-container {
        height: 180px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .story-container {
        padding: clamp(2rem, 5vw, 4rem) 20px;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 28px;
        line-height: 40px;
    }
    
    .hero-description {
        font-size: 14px;
        line-height: 22px;
    }
    
    .section-title {
        font-size: 22px;
        line-height: 30px;
    }
    
    .stat-value {
        font-size: 36px;
        line-height: 48px;
    }
    
    .logo img {
        height: 40px;
    }
    
    .action-btn span:not(.sr-only) {
        display: none;
    }
    
    .nav-actions {
        gap: 4px;
    }
    
    .search-input {
        width: 180px;
    }
    
    .view-all-btn {
        width: 100%;
        justify-content: center;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .card-img-container {
        height: 160px;
    }
}

/* ======================================== */
/*           فائدة: إخفاء نص لضعاف البصر  */
/* ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ======================================== */
/*           تحسينات إضافية               */
/* ======================================== */
.view-only-card .news-link {
    display: none;
}

.view-only-card:hover {
    transform: none;
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .service-card.clickable-card {
        display: flex;
        flex-direction: column;
    }
    
    .service-card.clickable-card .service-link {
        margin-top: 12px;
        align-self: flex-start;
    }
    
    .feedback-card {
        padding: 24px;
        margin: 0 16px;
    }
    
    .feedback-question {
        font-size: 20px;
    }
    
    .feedback-actions {
        flex-direction: column;
    }
    
    .reasons-grid {
        grid-template-columns: 1fr;
    }
    
    .platform-updated {
        flex-wrap: wrap;
    }
}

/* الترقيم */
.pagination-nav .pagination {
    justify-content: center;
    margin-top: 2rem;
}

.page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.page-link {
    color: var(--primary-color);
    border: 1px solid #dee2e6;
}

.page-link:hover {
    color: var(--primary-dark);
    background-color: #f8f9fa;
    border-color: #dee2e6;
}