 body {
            background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
            color: #1a1a1a;
            overflow-x: hidden;
            min-height: 100vh;
            font-family: 'Cairo', sans-serif;
        }

        nav {
            background: rgba(255, 255, 255, 0.96);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
        }

        nav.scrolled {
            padding: 0.5rem 0;
            background: rgba(255, 255, 255, 0.98);
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
        }

        .hero {
            padding: 160px 0 100px;
            position: relative;
            /*overflow: hidden;*/
            text-align: center;
            color: white;
            min-height: 80vh;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .hero-background-slider {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
        }

        .hero-background-slider .slide {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            opacity: 0;
            transition: opacity 2s ease-in-out;
        }

        .hero-background-slider .slide.active {
            opacity: 1;
        }

        .hero-overlay {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.7);
            z-index: 2;
        }

        .hero-content {
            position: relative;
            z-index: 3;
        }

        .hero h1 {
            font-size: 3.8rem;
            font-weight: 800;
        }

        .hero p {
            font-size: 1.3rem;
        }

        .search-section {
            max-width: 820px;
            margin: 2rem auto 0.3rem;  /* تقليل الهامش السفلي */
            /* <-- تم تعديل هذه القيمة */
            position: relative;
            z-index: 100;
            /* <-- هذا هو السطر المضاف المهم */
        }

        .search-container {
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 1.5rem;
            padding: 0.5rem 1rem;
            /* <-- تقليل الحشو الرأسي إلى النصف */
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }


        .search-input-container {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            /* تقليل المسافة بين الأيقونة والنص */
            position: relative;
            min-height: 28px;
            /* <-- التحكم الدقيق في الحد الأدنى للارتفاع */
        }


        .search-input {
            background: transparent;
            border: none;
            outline: none;
            color: white;
            width: 100%;
            font-size: 0.95rem;
            /* <-- تصغير إضافي لحجم الخط */
            font-weight: 400;
            /* خط أنحف لمظهر أكثر نعومة */
            padding: 0;
        }



        .search-input::placeholder {
            color: #cbd5e1;
            font-weight: 500;
        }

        .search-icon {
            color: #e2e8f0;
            font-size: 1rem;
            /* <-- حجم يتناسب مع حجم خط الإدخال */
        }

        .search-results {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 1rem;
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            z-index: 100;
            max-height: 350px;
            overflow-y: auto;
            margin-top: 0.5rem;
            display: none;
            border: 1px solid #e2e8f0;
        }

        .result-item {
            padding: 0.75rem 1.25rem;
            cursor: pointer;
            transition: all 0.2s;
            border-bottom: 1px solid #f1f5f9;
        }

        .result-item:hover {
            background: #f0f9ff;
        }

        .company-card {
            background: white;
            border-radius: 1.5rem;
            overflow: hidden;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            position: relative;
            border: 1px solid #e2e8f0;
        }

        .company-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
            border-color: rgba(14, 165, 233, 0.3);
        }

        .company-card-cover {
            height: 160px;
            overflow: hidden;
            position: relative;
            background: linear-gradient(135deg, #f0f4f8, #e2e8f0);
        }

        .company-card-cover img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.7s ease;
        }

        .company-card:hover .company-card-cover img {
            transform: scale(1.05);
        }

        .logo-badge {
            position: absolute;
            bottom: -15px;
            right: 1.25rem;
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 1.25rem;
            padding: 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
            border: 3px solid white;
            z-index: 10;
            transition: all 0.3s;
        }

        .company-card:hover .logo-badge {
            transform: scale(1.1) rotate(2deg);
        }

        .logo-badge img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .card-content {
            padding: 2rem 1.25rem 1.25rem;
        }

        .card-title {
            font-size: 1.25rem;
            font-weight: 800;
            color: #1e293b;
            margin: 0;
            line-height: 1.3;
        }

        .card-description {
            color: #4b5563;
            font-size: 0.95rem;
            line-height: 1.6;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding-top: 0.75rem;
            border-top: 1px solid #f1f5f9;
        }

        .contact-buttons {
            display: flex;
            gap: 0.5rem;
        }

        .contact-btn {
            width: 32px;
            height: 32px;
            border-radius: 0.75rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f1f5f9;
            color: #4b5563;
            font-size: 0.8rem;
            transition: all 0.2s;
            border: none;
        }

        .contact-btn:hover {
            transform: translateY(-2px);
        }

        .phone-btn:hover {
            background: #dcfce7;
            color: #16a34a;
        }

        .website-btn:hover {
            background: #dbeafe;
            color: #3b82f6;
        }

        .view-btn {
            background: var(--theme-color);
            /* <-- استخدام لون السمة الديناميكي */
            color: white;
            border: none;
            padding: 0.35rem 0.85rem;
            border-radius: 0.75rem;
            font-weight: 600;
            font-size: 0.85rem;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }

        .view-btn:hover {
            transform: translateY(-2px);
            /* تأثير حركة أفضل من translateX */
            filter: brightness(1.1);
            /* جعل اللون أفتح قليلاً عند المرور فوقه */
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
            /* ظل عام بدلاً من ظل ملون */
        }


        .section-title {
            font-size: 2.8rem;
            font-weight: 800;
            background: linear-gradient(to right, #1e293b, #0ea5e9);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            margin-bottom: 0.5rem;
            position: relative;
            display: inline-block;
        }

        .section-title::after {
            content: '';
            position: absolute;
            bottom: -6px;
            right: 0;
            width: 50px;
            height: 3px;
            background: linear-gradient(90deg, #0ea5e9, #7209b7);
            border-radius: 2px;
        }

        .section-subtitle {
            color: #4b5563;
            font-size: 1.15rem;
            margin-bottom: 2.5rem;
            font-weight: 400;
            max-width: 700px;
        }

        .category-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
            gap: 1rem;
            margin-top: 1.25rem;
        }

        .category-item {
            background: white;
            border-radius: 1.25rem;
            padding: 1rem 0.75rem;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
            border: 2px solid transparent;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
            height: 120px;
            display: flex;
            flex-direction: column;
            justify-content: center;
        }

        .category-item:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
            border-color: rgba(14, 165, 233, 0.4);
        }

        .category-item.active {
            border-color: rgba(14, 165, 233, 0.6);
            background: rgba(240, 249, 255, 0.4);
        }

        .category-item-icon {
            width: 48px;
            height: 48px;
            margin: 0 auto 0.5rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(114, 9, 183, 0.08));
            border-radius: 1rem;
            color: #0ea5e9;
            font-size: 1.4rem;
            transition: all 0.3s;
        }

        .category-item:hover .category-item-icon {
            transform: scale(1.05) rotate(2deg);
            background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(114, 9, 183, 0.15));
        }

        .category-item-name {
            font-weight: 600;
            color: #1e293b;
            font-size: 0.85rem;
            line-height: 1.3;
            margin-top: 0.25rem;
        }

        .companies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 2rem;
            margin-top: 2rem;
        }

        .btn-primary {
            background: linear-gradient(90deg, #0ea5e9, #7209b7);
            color: white;
            padding: 0.8rem 1.8rem;
            border-radius: 0.75rem;
            font-weight: 700;
            border: none;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
            box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-3px);
            box-shadow: 0 7px 20px rgba(14, 165, 233, 0.4);
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.15);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 0.8rem 1.8rem;
            border-radius: 0.75rem;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 0.75rem;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.25);
            transform: translateY(-2px);
        }

        .pagination {
            display: flex;
            justify-content: center;
            gap: 0.4rem;
            margin-top: 3rem;
        }

        .pagination-btn {
            width: 42px;
            height: 42px;
            border-radius: 0.75rem;
            background: white;
            border: 2px solid #e2e8f0;
            color: #4b5563;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1rem;
        }

        .pagination-btn:hover:not(.active) {
            background: #f1f5f9;
            border-color: #0ea5e9;
            color: #0ea5e9;
        }

        .pagination-btn.active {
            background: #0ea5e9;
            border-color: #0ea5e9;
            color: white;
            box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
        }

        /* Results Counter */
        .results-counter {
            background: linear-gradient(90deg, rgba(14, 165, 233, 0.1), rgba(114, 9, 183, 0.1));
            border-radius: 1rem;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            color: #1e293b;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 2rem;
        }

        footer {
            background: linear-gradient(135deg, #1e293b, #0f172a);
            color: #f1f5f9;
            padding: 4rem 0 2rem;
            margin-top: 4rem;
        }

        @media (max-width: 768px) {
            .hero {
                padding: 120px 0 70px;
            }

            .hero h1 {
                font-size: 2.3rem;
            }

            .hero p {
                font-size: 1.1rem;
            }
        }

        /* لضمان أن أيقونة النجمة في العنوان تكون فوق النص */
        .section-title .fa-star {
            z-index: -1;
            /* لجعلها خلف النص */
        }

        /* ... نهاية كود CSS الحالي ... */

        /* Category Tag Styles */
        .category-tag {
            display: inline-flex;
            align-items: center;
            background-color: #f1f5f9;
            /* لون رمادي فاتح */
            color: #475569;
            /* لون رمادي غامق */
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            /* لجعلها دائرية الحواف */
            font-size: 0.75rem;
            /* 12px */
            font-weight: 600;
        }