:root {
    --primary-color: #4A90E2;
    --primary-light: #E8F4FF;
    --secondary-color: #FFB6C1;
    --secondary-light: #FFF5F7;
    --accent-color: #98D8C2;
    --accent-light: #F0F9F5;
    --white: #FFFFFF;
    --cream: #FFF8F0;
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-600: #757575;
    --gray-800: #424242;
    --black: #212121;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --info: #2196F3;
    --font-primary: 'Cairo', sans-serif;
    --font-secondary: 'Tajawal', sans-serif;
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-bold: 700;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 40px rgba(0,0,0,0.15);
}

/* أساسيات الصفحة */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    direction: rtl;
    text-align: right;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* شريط التنقل */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--gray-800);
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
}

.logo-icon i {
    font-size: 1.5rem;
}
/* الأيقونة نفسها */
.logo-icon img {
    height: 40px;        /* تحكم بالحجم */
    width: auto;         /* حافظ على التناسب */
    max-width: 100%;
    object-fit: contain; /* لا تشويه */
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.logo-text p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-800);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--white);
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
    min-width: 250px;
    padding: 0.5rem 0;
    display: none;
    list-style: none;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    padding: 0.75rem 1.5rem;
    display: block;
    border-radius: 0;
}

.dropdown-menu a:hover {
    background-color: var(--gray-100);
}

.search-container {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px 0 0 8px;
    font-family: var(--font-primary);
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    width: 250px;
}

.search-btn {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #3a80d2;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--gray-800);
    cursor: pointer;
}

/* قسم البطل */
.hero-section {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--white) 50%, var(--secondary-light) 100%);
    padding: 4rem 0;
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.hero-content {
    flex: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    color: var(--gray-800);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* الأدوات السريعة */
.quick-tools {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    color: var(--gray-800);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-light);
}

.tool-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tool-icon i {
    font-size: 2rem;
    color: var(--primary-color);
}

.tool-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
}

.tool-card p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.btn-tool {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-tool:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* الأقسام الرئيسية */
.main-sections {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.section-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.section-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.section-image {
    height: 180px;
    overflow: hidden;
}

.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.section-card:hover .section-image img {
    transform: scale(1.05);
}

.section-content {
    padding: 1.5rem;
}

.section-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.section-tag {
    display: inline-block;
    background-color: var(--primary-light);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all {
    text-align: center;
    margin-top: 2rem;
}

/* نصيحة اليوم */
.daily-tip {
    padding: 3rem 0;
    background: linear-gradient(135deg, var(--accent-light), var(--white));
}

.tip-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    border-left: 6px solid var(--accent-color);
}

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.tip-header h2 {
    font-size: 1.5rem;
    color: var(--gray-800);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tip-date {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.tip-content {
    margin-bottom: 2rem;
}

#daily-tip-text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--gray-800);
}

.tip-source {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--gray-300);
    color: var(--gray-600);
    font-size: 0.95rem;
}

.tip-source i {
    color: var(--success);
    margin-left: 0.5rem;
}

.btn-tip-next {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-tip-next:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* المدونة */
.latest-blog {
    padding: 4rem 0;
    background-color: var(--white);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.blog-card {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.05);
}

.blog-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.blog-content {
    padding: 1.5rem;
}

.blog-content h3 {
    margin-bottom: 1rem;
}

.blog-content h3 a {
    color: var(--gray-800);
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-content h3 a:hover {
    color: var(--primary-color);
}

.blog-excerpt {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--gray-500);
    font-size: 0.875rem;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* التذييل */
.footer {
    background: linear-gradient(135deg, var(--gray-800), var(--black));
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-logo i {
    font-size: 2rem;
    color: var(--accent-color);
}

.footer-logo h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.footer-description {
    color: var(--gray-400);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-contact {
    list-style: none;
}

.footer-contact li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-400);
}

.footer-contact i {
    color: var(--accent-color);
    width: 20px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.newsletter-form input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray-600);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-family: var(--font-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-form input::placeholder {
    color: var(--gray-500);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: var(--gray-500);
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: var(--gray-500);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: var(--white);
}

/* زر العودة للأعلى */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #3a80d2;
    transform: translateY(-3px);
}

/* الأزرار العامة */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-family: var(--font-primary);
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
}

/* التجاوب */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .search-container {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
    }
}



        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background-color: #f8f9fa;
            color: #333;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }
        
        .header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            border-radius: 10px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }
        
        .header h1 {
            font-size: 2.5rem;
            margin-bottom: 10px;
        }
        
        .header p {
            font-size: 1.2rem;
            opacity: 0.9;
        }
        
        .content {
            flex-grow: 1;
            margin-bottom: 40px;
        }
        
        .content-box {
            background-color: white;
            border-radius: 10px;
            padding: 30px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
            margin-bottom: 30px;
        }
        
        .content-box h2 {
            color: #2575fc;
            margin-bottom: 20px;
            padding-bottom: 10px;
            border-bottom: 2px solid #f0f0f0;
        }
        
        .color-options {
            display: flex;
            flex-wrap: wrap;
            gap: 15px;
            margin-top: 20px;
        }
        
        .color-option {
            width: 120px;
            padding: 10px;
            text-align: center;
            border-radius: 8px;
            cursor: pointer;
            transition: transform 0.3s;
            box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
        }
        
        .color-option:hover {
            transform: translateY(-5px);
        }
        
        .color-preview {
            width: 100%;
            height: 40px;
            border-radius: 5px;
            margin-bottom: 8px;
        }
        
        /* تنسيقات الفوتر المحسّنة */
        footer {
            background: linear-gradient(to right, #1a2a6c, #2a3b8f, #3a4cb3);
            color: #fff;
            padding: 60px 0 20px;
            margin-top: auto;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .footer-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
        }
        
        .footer-section {
            margin-bottom: 30px;
        }
        
        .footer-section h3 {
            font-size: 1.5rem;
            margin-bottom: 25px;
            position: relative;
            padding-bottom: 10px;
            color: #fff;
        }
        
        .footer-section h3:after {
            content: '';
            position: absolute;
            right: 0;
            bottom: 0;
            width: 50px;
            height: 2px;
            background-color: #ffd166;
        }
        
        .footer-section p {
            font-size: 1rem;
            line-height: 1.8;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.85);
        }
        
        .footer-links {
            list-style: none;
        }
        
        .footer-links li {
            margin-bottom: 12px;
        }
        
        .footer-links a {
            color: rgba(255, 255, 255, 0.85);
            text-decoration: none;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
        }
        
        .footer-links a i {
            margin-left: 8px;
            font-size: 0.9rem;
        }
        
        .footer-links a:hover {
            color: #ffd166;
            padding-right: 8px;
        }
        
        .contact-info {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }
        
        .contact-item {
            display: flex;
            align-items: center;
            margin-bottom: 10px;
        }
        
        .contact-item i {
            margin-left: 10px;
            font-size: 1.2rem;
            color: #ffd166;
            width: 25px;
        }
        
        .social-links {
            display: flex;
            gap: 15px;
            margin-top: 20px;
        }
        
        .social-links a {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            background-color: rgba(255, 255, 255, 0.1);
            border-radius: 50%;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }
        
        .social-links a:hover {
            background-color: #ffd166;
            transform: translateY(-3px);
        }
        
        .footer-bottom {
            text-align: center;
            padding-top: 30px;
            margin-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.9rem;
        }
        
        .newsletter-form {
            display: flex;
            margin-top: 20px;
        }
        
        .newsletter-form input {
            flex-grow: 1;
            padding: 12px 15px;
            border: none;
            border-radius: 5px 0 0 5px;
            background-color: rgba(255, 255, 255, 0.9);
            color: #333;
        }
        
        .newsletter-form button {
            background-color: #ffd166;
            color: #1a2a6c;
            border: none;
            padding: 0 20px;
            border-radius: 0 5px 5px 0;
            cursor: pointer;
            font-weight: 600;
            transition: background-color 0.3s;
        }
        
        .newsletter-form button:hover {
            background-color: #ffc145;
        }
        
        .copyright {
            font-size: 0.9rem;
            color: rgba(255, 255, 255, 0.7);
        }
        
        /* تأثيرات تفاعلية للفوتر */
        .footer-section h3, 
        .footer-links a,
        .contact-item,
        .social-links a {
            transition: all 0.3s ease;
        }
        
        /* التجاوب مع الشاشات المختلفة */
        @media (max-width: 768px) {
            .footer-container {
                grid-template-columns: 1fr;
                gap: 30px;
            }
            
            .newsletter-form {
                flex-direction: column;
            }
            
            .newsletter-form input,
            .newsletter-form button {
                width: 100%;
                border-radius: 5px;
                margin-bottom: 10px;
            }
            
            .header h1 {
                font-size: 2rem;
            }
        }
        
        .instructions {
            background-color: #fff9e6;
            border-right: 5px solid #ffd166;
            padding: 20px;
            border-radius: 8px;
            margin-bottom: 30px;
        }
        
        .instructions h3 {
            color: #1a2a6c;
            margin-bottom: 15px;
        }
        
        .instructions ul {
            padding-right: 20px;
        }
        
        .instructions li {
            margin-bottom: 10px;
        }
        
        .code-block {
            background-color: #1e1e1e;
            color: #f8f8f8;
            padding: 20px;
            border-radius: 8px;
            overflow-x: auto;
            margin-top: 30px;
            font-family: 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.5;
        }
        
        .code-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 15px;
            color: #ffd166;
        }
        
        .copy-btn {
            background-color: #2575fc;
            color: white;
            border: none;
            padding: 5px 15px;
            border-radius: 4px;
            cursor: pointer;
            font-size: 0.8rem;
        }
        
        .note {
            background-color: #e7f3ff;
            border-right: 5px solid #2575fc;
            padding: 15px;
            border-radius: 8px;
            margin-top: 20px;
        }

        /* تنسيقات الفوتر المحسّنة لموقع رعاية الرضيع */
footer {
    background: linear-gradient(to right, #1a2a6c, #2a3b8f, #3a4cb3);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-section {
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    color: #fff;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: #ffd166;
}

.footer-section p {
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-left: 8px;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #ffd166;
    padding-right: 8px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    margin-left: 10px;
    font-size: 1.2rem;
    color: #ffd166;
    width: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: #ffd166;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.newsletter-form {
    display: flex;
    margin-top: 20px;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
}

.newsletter-form button {
    background-color: #ffd166;
    color: #1a2a6c;
    border: none;
    padding: 0 20px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background-color: #ffc145;
}

/* التجاوب مع الشاشات المختلفة */
@media (max-width: 768px) {
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
        border-radius: 5px;
        margin-bottom: 10px;
    }
}


/* إخفاء القائمة افتراضياً */
.dropdown-menu {
    display: none;
    position: absolute;
    background: #fff;
    z-index: 1000;
}

/* عند الفتح */
.dropdown.open .dropdown-menu {
    display: block;
}

/* ===== جعل الهيدر والفوتر بعرض الصفحة بالكامل ===== */

/* منع أي هوامش أفقية */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* الهيدر (Navbar) بعرض كامل */
.navbar {
  width: 100%;
  left: 0;
  right: 0;
}

/* محتوى الهيدر يبقى مركزي */
.navbar .container,
.navbar .nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* الفوتر بعرض كامل */
.footer,
footer {
  width: 100%;
  left: 0;
  right: 0;
}

/* محتوى الفوتر يبقى مركزي */
.footer .container,
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}


/* ===== دعم التحكم بالقائمة في الهاتف ===== */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    box-shadow: none;
  }

  .dropdown.open .dropdown-menu {
    display: block;
  }
}

/* تحسين رأس الصفحة مع الصورة */
.page-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.page-header-content {
    flex: 1;
    max-width: 600px;
}

.page-header-content h1 {
    color: #2c3e50;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    position: relative;
    padding-bottom: 15px;
}

.page-header-content h1 i {
    color: #4CAF50;
    margin-left: 15px;
    font-size: 2.2rem;
}

.page-header-content h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(to left, #4CAF50, #2196F3);
    border-radius: 2px;
}

.page-header-content p {
    color: #5d6d7e;
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    max-width: fit-content;
}

.breadcrumb a {
    color: #4CAF50;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2c3e50;
    text-decoration: underline;
}

.breadcrumb i {
    color: #95a5a6;
    font-size: 12px;
}

.breadcrumb span {
    color: #2c3e50;
    font-weight: 600;
}

.page-header-image {
    flex: 1;
    max-width: 500px;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}

.page-header-image:hover {
    transform: translateY(-10px) rotateY(5deg);
}

.page-header-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.page-header-image:hover img {
    transform: scale(1.05);
}

/* تأثيرات زخرفية */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: linear-gradient(45deg, rgba(76, 175, 80, 0.1), rgba(33, 150, 243, 0.1));
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, rgba(33, 150, 243, 0.1), rgba(156, 39, 176, 0.1));
    border-radius: 50%;
    transform: translate(-50%, 50%);
}

.phone-number {
    direction: ltr;
    unicode-bidi: bidi-override;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}

.phone-number:hover {
    text-decoration: underline;
}

.website-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 6px 14px;
    background: #3498db;
    color: #fff;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.3s ease;
}

.website-btn:hover {
    background: #2980b9;
}

/* أنماط الأدوات الجديدة */
.tool-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1.5rem;
}

.input-section, .output-section {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.hidden {
    display: none;
}

.result-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.result-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.result-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.result-item i {
    font-size: 1.5rem;
    margin-left: 1rem;
    color: var(--primary-color);
}

.percentile-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    text-align: center;
}

.percentile-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4CAF50;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin: 0 auto 0.5rem;
}

.diagnosis-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: #fff8e1;
    border-radius: 8px;
    border-right: 4px solid #ff9800;
    margin: 1rem 0;
}

.diagnosis-severity {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}

.timeline {
    position: relative;
    padding-right: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    right: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 2px var(--primary-color);
}

.routine-overview {
    margin: 1.5rem 0;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.overview-item {
    text-align: center;
    padding: 1rem;
    background: #f0f7ff;
    border-radius: 8px;
}

.overview-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.result-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

/* استجابة للشاشات الصغيرة */
@media (max-width: 768px) {
    .tool-container {
        grid-template-columns: 1fr;
    }
    
    .result-summary,
    .percentile-grid,
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== تنسيقات نتائج جدول التطعيمات ===== */

.vaccine-schedule {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-top: 2rem;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.schedule-header {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.schedule-header h4 {
    font-size: 1.4rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.schedule-header h4 i {
    font-size: 1.5rem;
    color: #ffdd59;
}

.baby-age {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 500;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
}

.schedule-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 1px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.3s ease;
}

.schedule-row:hover {
    background-color: #f8f9fa;
}

.schedule-row.header {
    background: #f8f9fa;
    font-weight: 700;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
}

.schedule-row.header .schedule-cell {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    text-align: center;
}

.schedule-cell {
    padding: 1.25rem 1.5rem;
    text-align: right;
    display: flex;
    align-items: center;
    min-height: 70px;
}

.schedule-cell.age {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.05rem;
    justify-content: flex-end;
    padding-left: 2rem;
    border-left: 1px solid #f0f0f0;
}

.schedule-cell.vaccine {
    color: #333;
    line-height: 1.6;
    border-left: 1px solid #f0f0f0;
}

.schedule-cell.status {
    justify-content: center;
    font-weight: 600;
    border-radius: 8px;
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    min-height: auto;
}

.schedule-cell.status span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* حالات التطعيمات */
.status.completed {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.status.completed span::before {
    content: '✓';
    font-weight: bold;
    color: #27ae60;
}

.status.upcoming {
    background: rgba(52, 152, 219, 0.1);
    color: #2980b9;
    border: 1px solid rgba(52, 152, 219, 0.3);
}

.status.upcoming span::before {
    content: '🕒';
    color: #2980b9;
}

.status.overdue {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.status.overdue span::before {
    content: '⚠';
    color: #c0392b;
}

.schedule-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    flex-wrap: wrap;
}

.schedule-actions .btn {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.schedule-actions .btn i {
    font-size: 1.1rem;
}

.schedule-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* تحسينات للطباعة */
@media print {
    .vaccine-schedule {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .schedule-header {
        background: #f0f0f0 !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    
    .schedule-actions {
        display: none;
    }
}

/* تحسينات للشاشات الصغيرة */
@media (max-width: 768px) {
    .schedule-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem;
    }
    
    .schedule-row {
        grid-template-columns: 1fr;
        border: 1px solid #e9ecef;
        border-radius: 10px;
        margin-bottom: 1rem;
        overflow: hidden;
    }
    
    .schedule-row.header {
        display: none;
    }
    
    .schedule-cell {
        padding: 1rem;
        border: none;
        border-bottom: 1px solid #f0f0f0;
        min-height: auto;
    }
    
    .schedule-cell:last-child {
        border-bottom: none;
    }
    
    .schedule-cell.age {
        background: #f8f9fa;
        font-size: 1.1rem;
        padding-right: 1rem;
        justify-content: flex-end;
        border-left: none;
    }
    
    .schedule-cell.vaccine {
        font-size: 1rem;
        border-left: none;
    }
    
    .schedule-cell.status {
        justify-content: flex-end;
        margin: 0;
    }
    
    .schedule-cell.status span {
        justify-content: center;
        min-width: 120px;
    }
    
    .schedule-actions {
        flex-direction: column;
        padding: 1.25rem;
    }
    
    .schedule-actions .btn {
        min-width: 100%;
    }
}

/* تحسينات للشاشات الصغيرة جدًا */
@media (max-width: 480px) {
    .vaccine-schedule {
        margin: 1rem -1rem;
        border-radius: 0;
    }
    
    .schedule-header h4 {
        font-size: 1.2rem;
    }
    
    .baby-age {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .schedule-cell {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .schedule-cell.status span {
        min-width: 100px;
        padding: 0.4rem 0.8rem;
    }
}




/* ===== ملخص التطعيمات ===== */
.vaccine-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-5px);
}

.summary-card i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: block;
}

.summary-card:nth-child(1) i { color: #27ae60; }
.summary-card:nth-child(2) i { color: #3498db; }
.summary-card:nth-child(3) i { color: #e74c3c; }

.summary-card h5 {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.summary-card p {
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

/* ===== ملاحظات التطعيمات ===== */
.vaccine-notes {
    background: #fff9e6;
    border-right: 4px solid #ffcc00;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.vaccine-notes h5 {
    color: #b8860b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vaccine-notes ul {
    list-style: none;
    padding-right: 1rem;
}

.vaccine-notes li {
    padding: 0.5rem 0;
    position: relative;
    padding-right: 1.5rem;
}

.vaccine-notes li:before {
    content: '•';
    color: #ffcc00;
    font-weight: bold;
    position: absolute;
    right: 0;
}

/* ===== تحميل PDF ===== */
.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: white;
}

/* ===== رسوم متحركة ===== */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.status.overdue {
    animation: pulse 2s infinite;
}

/* ===== مؤشرات التقدم ===== */
.vaccine-progress {
    margin: 2rem 0;
}

.progress-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60, #2ecc71);
    border-radius: 4px;
    transition: width 1s ease;
}

.progress-stats {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.9rem;
}


/* ===== أنماط الأدوات (تضمن جدول التطعيمات) ===== */
@media (max-width: 768px) {
    .vaccine-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .vaccine-summary {
        grid-template-columns: 1fr;
    }
}

.phone-link {
    direction: ltr;
    unicode-bidi: embed;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.phone-link:hover {
    text-decoration: underline;
}
