:root {  
    --primary-color: #1a237e;  
    --secondary-color: #0d47a1;  
    --accent-color: #4caf50;  
    --text-primary: #333;  
    --text-secondary: #666;  
    --card-bg: rgba(255, 255, 255, 0.95);  
    --gradient-primary: linear-gradient(135deg, #1a237e 0%, #0d47a1 100%);  
    --highlight-color: #9ccc65; /* رنگ سبز لیمویی */  
}  

* {  
    margin: 0;  
    padding: 0;  
    box-sizing: border-box;  
}  

body {  
    direction: rtl;  
    font-family: 'Noto Naskh Arabic', 'Vazir', Arial, sans-serif;  
    background: #f8f9fa;  
    color: var(--text-primary);  
    overflow-x: hidden;  
}  

.bg-pattern {  
    position: fixed;  
    top: 0;  
    left: 0;  
    right: 0;  
    bottom: 0;  
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1IiBoZWlnaHQ9IjUiPgo8cmVjdCB3aWR0aD0iNSIgaGVpZ2h0PSI1IiBmaWxsPSIjZmZmIj48L3JlY3Q+CjxyZWN0IHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNjY2MiPjwvcmVjdD4KPC9zdmc+');  
    opacity: 0.5;  
    z-index: -1;  
}  

.main-header {  
    background: var(--gradient-primary);  
    padding: 3rem 0;  
    margin-bottom: 2rem;  
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);  
}  

.header-content {  
    max-width: 1200px;  
    margin: 0 auto;  
    text-align: center;  
    padding: 0 20px;  
}  

h1 {  
    color: var(--highlight-color);  
    font-size: 3rem;  
    margin-bottom: 1rem;  
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);  
    margin-top: 0; /* حذف فضای بالایی */  
}  

.subtitle {  
    color: rgba(255, 255, 255, 0.9);  
    font-size: 1.5rem;  
    margin-bottom: 2rem;  
}  

.search-box {  
    position: relative;  
    max-width: 500px;  
    margin: 0 auto;  
}  

.search-box input {  
    width: 100%;  
    padding: 1rem 3rem 1rem 1rem;  
    border: none;  
    border-radius: 50px;  
    font-size: 1.1rem;  
    background: rgba(255, 255, 255, 0.95);  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);  
}  

.search-box i {  
    position: absolute;  
    right: 1.5rem;  
    top: 50%;  
    transform: translateY(-50%);  
    color: var(--primary-color);  
}  

.cards-container {  
    display: grid;  
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* تغییرات اینجا */  
    gap: 1rem; /* تغییرات اینجا */  
    max-width: 1200px;  
    margin: 0 auto;  
    padding: 0 20px;  
}  

.card {  
    background: var(--card-bg);  
    border-radius: 10px;  
    padding: 1rem; /* تغییرات اینجا */  
    cursor: pointer;  
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);  
    position: relative;  
    overflow: hidden;  
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);  
}  

.card::before {  
    content: '';  
    position: absolute;  
    top: 0;  
    left: 0;  
    right: 0;  
    height: 3px;  
    background: var(--gradient-primary);  
    transform: scaleX(0);  
    transition: transform 0.4s ease;  
}  

.card:hover {  
    transform: translateY(-5px);  
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);  
}  

.card:hover::before {  
    transform: scaleX(1);  
}  

.card-header {  
    font-size: 2rem;  
    color: var(--primary-color);  
    text-align: center;  
    margin-bottom: 0.5rem;  
    position: relative;  
    z-index: 1;  
}  

.card-number {  
    position: absolute;  
    top: 0;  /* تغییرات اینجا */  
    right: 0; /* تغییرات اینجا */  
    background: var(--accent-color);  
    color: white;  
    width: 30px;  
    height: 30px;  
    border-radius: 50%;  
    display: flex;  
    align-items: center;  
    justify-content: center;  
    font-size: 0.9rem;  
    font-weight: bold;  
}  

@keyframes pulse {  
    0% {  
        transform: scale(1);  
    }  
    50% {  
        transform: scale(1.01);  
    }  
    100% {  
        transform: scale(1);  
    }  
}  

.card {  
    animation: pulse 2s infinite;  
}  

.footer {  
    background: var(--gradient-primary);  
    color: white;  
    padding: 2rem 0;  
    margin-top: 3rem;  
}  

.footer-content {  
    max-width: 1200px;  
    margin: 0 auto;  
    text-align: center;  
    padding: 0 20px;  
}  

.social-links {  
    margin-top: 1rem;  
}  

.social-link {  
    color: white;  
    font-size: 1.5rem;  
    margin: 0 0.5rem;  
    transition: transform 0.3s ease;  
}  

.social-link:hover {  
    transform: scale(1.2);  
}  

@media (max-width: 768px) {  
    h1 {  
        font-size: 2rem;  
    }  
    
    .subtitle {  
        font-size: 1.2rem;  
    }  
    
    .cards-container {  
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));  
    }  
}