    /* ==========================================
           1. Variables & Global Styles
           ========================================== */
        :root {
            --primary-color: #0d9488;    /* teal medical */
            --primary-dark: #0f766e;
            --secondary-color: #0284c7;  /* soft blue */
            --accent-color: #f59e0b;
            --bg-light: #f8fafc;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --white: #ffffff;
            --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
            --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05);
            --radius: 12px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Tajawal', sans-serif;
        }

        body {
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
            display: flex;
            flex-direction: column;
            min-height: 100vh;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        ul {
            list-style: none;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
        }

        /* ==========================================
           2. Header & Navigation
           ========================================== */
        header {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            position: fixed;
            top: 0;
            width: 100%;
            z-index: 1000;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 80px;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-color);
            cursor: pointer;
        }

        .logo i {
            font-size: 1.8rem;
        }

        .nav-links {
            display: flex;
            gap: 25px;
        }

        .nav-links a {
            font-weight: 500;
            color: var(--text-dark);
            transition: var(--transition);
            cursor: pointer;
        }

        .nav-links a:hover,
        .nav-links a.active {
            color: var(--primary-color);
        }

        .btn-consult {
            background-color: var(--primary-color);
            color: var(--white);
            padding: 10px 20px;
            border-radius: 25px;
            font-weight: 700;
            transition: var(--transition);
        }

        .btn-consult:hover {
            background-color: var(--primary-dark);
            box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
        }

        /* التحكم بظهور الصفحات */
        .page-view {
            display: none;
        }

        .page-view.active-page {
            display: block;
        }

        /* ==========================================
           3. Hero Section
           ========================================== */
        .hero {
            padding: 150px 0 80px;
            background: linear-gradient(135deg, #e0f2fe 0%, #f0fdf4 100%);
            border-bottom-left-radius: 40px;
            border-bottom-right-radius: 40px;
        }

        .hero-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 40px;
            align-items: center;
        }

        .hero-text h1 {
            font-size: 2.8rem;
            font-weight: 800;
            color: var(--text-dark);
            margin-bottom: 20px;
            line-height: 1.2;
        }

        .hero-text h1 span {
            color: var(--primary-color);
        }

        .hero-text p {
            font-size: 1.1rem;
            color: var(--text-muted);
            margin-bottom: 30px;
        }

        .hero-buttons {
            display: flex;
            gap: 15px;
        }

        .btn-secondary {
            background: var(--white);
            color: var(--text-dark);
            padding: 12px 24px;
            border-radius: 25px;
            font-weight: 700;
            border: 1px solid #e2e8f0;
            transition: var(--transition);
        }

        .btn-secondary:hover {
            border-color: var(--primary-color);
            color: var(--primary-color);
        }

        .hero-image {
            text-align: center;
            position: relative;
        }

        .hero-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 40px;
            box-shadow: var(--shadow-md);
            display: inline-block;
            width: 100%;
            max-width: 450px;
            border: 1px solid #f1f5f9;
        }

        .hero-icon-box {
            width: 80px;
            height: 80px;
            background: #ccfbf1;
            color: var(--primary-color);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2.5rem;
            margin: 0 auto 20px;
        }

        /* ==========================================
           4. Categories & Blog Posts
           ========================================== */
        .main-section {
            padding: 80px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 50px;
        }

        .section-title h2 {
            font-size: 2.2rem;
            color: var(--text-dark);
            margin-bottom: 10px;
        }

        .section-title p {
            color: var(--text-muted);
        }

        /* Filter Controls */
        .category-filter {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            background: var(--white);
            border: 1px solid #e2e8f0;
            padding: 8px 20px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            color: var(--text-muted);
            transition: var(--transition);
        }

        .filter-btn.active, .filter-btn:hover {
            background: var(--primary-color);
            color: var(--white);
            border-color: var(--primary-color);
        }

        /* Posts Grid */
        .posts-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
            gap: 30px;
        }

        .post-card {
            background: var(--white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition);
            border: 1px solid #f1f5f9;
        }

        .post-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-md);
        }

        .post-img {
            height: 200px;
            background-color: #e2e8f0;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary-color);
            font-size: 3rem;
            position: relative;
        }

        .post-tag {
            position: absolute;
            top: 15px;
            right: 15px;
            background: rgba(255, 255, 255, 0.9);
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8rem;
            font-weight: 700;
            color: var(--primary-color);
        }

        .post-body {
            padding: 25px;
        }

        .post-meta {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 10px;
            display: flex;
            gap: 15px;
        }

        .post-title {
            font-size: 1.3rem;
            font-weight: 700;
            margin-bottom: 12px;
            line-height: 1.4;
        }

        .post-excerpt {
            color: var(--text-muted);
            font-size: 0.95rem;
            margin-bottom: 20px;
        }

        .read-more {
            color: var(--primary-color);
            font-weight: 700;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: var(--transition);
        }

        .read-more:hover {
            gap: 12px;
        }

        /* ==========================================
           5. About Page Styles (صفحة من أنا)
           ========================================== */
        .about-page-container {
            padding: 140px 0 80px;
            min-height: 70vh;
        }

        .about-card {
            background: var(--white);
            border-radius: var(--radius);
            padding: 40px;
            box-shadow: var(--shadow-sm);
            border: 1px solid #f1f5f9;
        }

        .about-header {
            margin-bottom: 30px;
            padding-bottom: 20px;
            border-bottom: 2px solid #f1f5f9;
        }

        .about-header h1 {
            font-size: 2.2rem;
            color: var(--primary-color);
            margin-bottom: 10px;
        }

        .about-content {
            min-height: 300px; /* مساحة فارغة جاهزة لإضافة المحتوى */
        }

        /* ==========================================
           6. Footer
           ========================================== */
        footer {
            background: #0f172a;
            color: var(--white);
            padding: 60px 0 20px;
            margin-top: auto;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-info h3 {
            font-size: 1.5rem;
            color: var(--primary-color);
            margin-bottom: 15px;
        }

        .footer-links h4 {
            margin-bottom: 15px;
            font-size: 1.1rem;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #94a3b8;
            transition: var(--transition);
            cursor: pointer;
        }

        .footer-links a:hover {
            color: var(--white);
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid #334155;
            color: #94a3b8;
            font-size: 0.9rem;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            .hero-content {
                grid-template-columns: 1fr;
            }
            .nav-links {
                display: none;
            }
            .hero-text h1 {
                font-size: 2.1rem;
            }
        }

/* ==========================================
   Search Box Styles
   ========================================== */
.search-box-container {
    max-width: 500px;
    margin: 0 auto 30px;
    padding: 0 10px;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper .search-icon {
    position: absolute;
    right: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

#blog-search-input {
    width: 100%;
    padding: 12px 45px 12px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 25px;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
    background: var(--white);
}

#blog-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}